diff --git a/lint-fmt/index.js b/lint-fmt/index.js index 0efb9fc1..67a4189d 100644 --- a/lint-fmt/index.js +++ b/lint-fmt/index.js @@ -3376,30 +3376,44 @@ module.exports = function (object, key, value) { /***/ 5118: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var global = __nccwpck_require__(2858); var isCallable = __nccwpck_require__(4767); var createNonEnumerableProperty = __nccwpck_require__(7754); var makeBuiltIn = __nccwpck_require__(493); -var setGlobal = __nccwpck_require__(2380); +var defineGlobalProperty = __nccwpck_require__(18); module.exports = function (O, key, value, options) { - var unsafe = options ? !!options.unsafe : false; - var simple = options ? !!options.enumerable : false; - var noTargetGet = options ? !!options.noTargetGet : false; - var name = options && options.name !== undefined ? options.name : key; + if (!options) options = {}; + var simple = options.enumerable; + var name = options.name !== undefined ? options.name : key; if (isCallable(value)) makeBuiltIn(value, name, options); - if (O === global) { + if (options.global) { if (simple) O[key] = value; - else setGlobal(key, value); - return O; - } else if (!unsafe) { - delete O[key]; - } else if (!noTargetGet && O[key]) { - simple = true; - } - if (simple) O[key] = value; - else createNonEnumerableProperty(O, key, value); - return O; + else defineGlobalProperty(key, value); + } else { + if (!options.unsafe) delete O[key]; + else if (O[key]) simple = true; + if (simple) O[key] = value; + else createNonEnumerableProperty(O, key, value); + } return O; +}; + + +/***/ }), + +/***/ 18: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var global = __nccwpck_require__(2858); + +// eslint-disable-next-line es-x/no-object-defineproperty -- safe +var defineProperty = Object.defineProperty; + +module.exports = function (key, value) { + try { + defineProperty(global, key, { value: value, configurable: true, writable: true }); + } catch (error) { + global[key] = value; + } return value; }; @@ -3611,24 +3625,24 @@ var global = __nccwpck_require__(2858); var getOwnPropertyDescriptor = (__nccwpck_require__(1590).f); var createNonEnumerableProperty = __nccwpck_require__(7754); var defineBuiltIn = __nccwpck_require__(5118); -var setGlobal = __nccwpck_require__(2380); +var defineGlobalProperty = __nccwpck_require__(18); var copyConstructorProperties = __nccwpck_require__(7976); var isForced = __nccwpck_require__(783); /* - options.target - name of the target object - options.global - target is the global object - options.stat - export as static methods of target - options.proto - export as prototype methods of target - options.real - real prototype method for the `pure` version - options.forced - export even if the native feature is available - options.bind - bind methods to the target, required for the `pure` version - options.wrap - wrap constructors to preventing global pollution, required for the `pure` version - options.unsafe - use the simple assignment of property instead of delete + defineProperty - options.sham - add a flag to not completely full polyfills - options.enumerable - export as enumerable property - options.noTargetGet - prevent calling a getter on target - options.name - the .name of the function if it does not match the key + options.target - name of the target object + options.global - target is the global object + options.stat - export as static methods of target + options.proto - export as prototype methods of target + options.real - real prototype method for the `pure` version + options.forced - export even if the native feature is available + options.bind - bind methods to the target, required for the `pure` version + options.wrap - wrap constructors to preventing global pollution, required for the `pure` version + options.unsafe - use the simple assignment of property instead of delete + defineProperty + options.sham - add a flag to not completely full polyfills + options.enumerable - export as enumerable property + options.dontCallGetSet - prevent calling a getter on target + options.name - the .name of the function if it does not match the key */ module.exports = function (options, source) { var TARGET = options.target; @@ -3638,13 +3652,13 @@ module.exports = function (options, source) { if (GLOBAL) { target = global; } else if (STATIC) { - target = global[TARGET] || setGlobal(TARGET, {}); + target = global[TARGET] || defineGlobalProperty(TARGET, {}); } else { target = (global[TARGET] || {}).prototype; } if (target) for (key in source) { sourceProperty = source[key]; - if (options.noTargetGet) { + if (options.dontCallGetSet) { descriptor = getOwnPropertyDescriptor(target, key); targetProperty = descriptor && descriptor.value; } else targetProperty = target[key]; @@ -4420,6 +4434,23 @@ Function.prototype.toString = makeBuiltIn(function toString() { }, 'toString'); +/***/ }), + +/***/ 3149: +/***/ ((module) => { + +var ceil = Math.ceil; +var floor = Math.floor; + +// `Math.trunc` method +// https://tc39.es/ecma262/#sec-math.trunc +// eslint-disable-next-line es-x/no-math-trunc -- safe +module.exports = Math.trunc || function trunc(x) { + var n = +x; + return (n > 0 ? floor : ceil)(n); +}; + + /***/ }), /***/ 4913: @@ -5203,25 +5234,6 @@ module.exports = Object.is || function is(x, y) { }; -/***/ }), - -/***/ 2380: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var global = __nccwpck_require__(2858); - -// eslint-disable-next-line es-x/no-object-defineproperty -- safe -var defineProperty = Object.defineProperty; - -module.exports = function (key, value) { - try { - defineProperty(global, key, { value: value, configurable: true, writable: true }); - } catch (error) { - global[key] = value; - } return value; -}; - - /***/ }), /***/ 8504: @@ -5262,10 +5274,10 @@ module.exports = function (key) { /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { var global = __nccwpck_require__(2858); -var setGlobal = __nccwpck_require__(2380); +var defineGlobalProperty = __nccwpck_require__(18); var SHARED = '__core-js_shared__'; -var store = global[SHARED] || setGlobal(SHARED, {}); +var store = global[SHARED] || defineGlobalProperty(SHARED, {}); module.exports = store; @@ -5281,10 +5293,10 @@ var store = __nccwpck_require__(9557); (module.exports = function (key, value) { return store[key] || (store[key] = value !== undefined ? value : {}); })('versions', []).push({ - version: '3.22.5', + version: '3.22.6', mode: IS_PURE ? 'pure' : 'global', copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)', - license: 'https://github.com/zloirock/core-js/blob/v3.22.5/LICENSE', + license: 'https://github.com/zloirock/core-js/blob/v3.22.6/LICENSE', source: 'https://github.com/zloirock/core-js' }); @@ -5582,17 +5594,16 @@ module.exports = function (it) { /***/ }), /***/ 5500: -/***/ ((module) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var ceil = Math.ceil; -var floor = Math.floor; +var trunc = __nccwpck_require__(3149); // `ToIntegerOrInfinity` abstract operation // https://tc39.es/ecma262/#sec-tointegerorinfinity module.exports = function (argument) { var number = +argument; - // eslint-disable-next-line no-self-compare -- safe - return number !== number || number === 0 ? 0 : (number > 0 ? floor : ceil)(number); + // eslint-disable-next-line no-self-compare -- NaN check + return number !== number || number === 0 ? 0 : trunc(number); };