From b8f0825d8498d95b78aed7e3dc0040d08907302d Mon Sep 17 00:00:00 2001 From: Andy Edwards Date: Tue, 12 Nov 2024 18:57:22 -0600 Subject: [PATCH] fix: target node 16 by default in new projects --- README.md | 8 +- .../init-snapshot/dist/index.js | 184 ++----- .../init-snapshot/dist/index.js.map | 2 +- .../init-snapshot/dist/package.json | 4 +- .../init-snapshot/dist/pnpm-lock.yaml | 298 ++++++----- .../init-snapshot/pnpm-lock.yaml | 298 ++++++----- .../init-snapshot/toolchain.config.cjs | 2 +- .../input-noesm/toolchain.config.cjs | 2 +- .../input-upgrade/toolchain.config.cjs | 2 +- .../noesm-snapshot/dist/index.js | 184 ++----- .../noesm-snapshot/dist/index.js.map | 2 +- .../noesm-snapshot/dist/package.json | 4 +- .../noesm-snapshot/toolchain.config.cjs | 2 +- .../upgrade-snapshot/dist/index.js | 188 +++---- .../upgrade-snapshot/dist/index.js.map | 2 +- .../upgrade-snapshot/dist/package.json | 4 +- .../upgrade-snapshot/dist/pnpm-lock.yaml | 81 +-- .../upgrade-snapshot/pnpm-lock.yaml | 81 +-- .../upgrade-snapshot/toolchain.config.cjs | 2 +- .../init-snapshot/dist/pnpm-lock.yaml | 81 ++- .../find-cycle/init-snapshot/pnpm-lock.yaml | 81 ++- .../log4jcore/init-snapshot/dist/index.js | 249 ++++----- .../log4jcore/init-snapshot/dist/index.js.map | 2 +- .../init-snapshot/dist/memoryLogProvider.js | 15 +- .../dist/memoryLogProvider.js.map | 2 +- .../init-snapshot/dist/pnpm-lock.yaml | 365 +++++++------ .../dist/writableLogFunction.d.ts | 1 + .../dist/writableLogFunction.d.ts.map | 2 +- .../init-snapshot/dist/writableLogFunction.js | 9 +- .../dist/writableLogFunction.js.map | 2 +- fixtures/log4jcore/init-snapshot/package.json | 3 +- .../log4jcore/init-snapshot/pnpm-lock.yaml | 365 +++++++------ .../init-snapshot/toolchain.config.cjs | 2 +- fixtures/log4jcore/input/package.json | 3 +- .../input/packages/bar/toolchain.config.cjs | 2 +- .../input/packages/foo/toolchain.config.cjs | 2 +- .../packages/bar/toolchain.config.cjs | 2 +- .../packages/foo/toolchain.config.cjs | 2 +- .../init-snapshot/dist/index.js | 498 +++++++++--------- .../init-snapshot/dist/index.js.map | 2 +- .../init-snapshot/dist/package.json | 1 - .../init-snapshot/dist/pnpm-lock.yaml | 438 +++++++-------- .../init-snapshot/pnpm-lock.yaml | 438 +++++++-------- .../init-snapshot/toolchain.config.cjs | 2 +- .../init-snapshot/dist/index.js | 486 ++++++++--------- .../init-snapshot/dist/index.js.map | 2 +- .../init-snapshot/dist/pnpm-lock.yaml | 360 ++++++------- .../init-snapshot/dist/simple.js | 162 +++--- .../init-snapshot/dist/simple.js.map | 2 +- .../init-snapshot/pnpm-lock.yaml | 360 ++++++------- .../init-snapshot/toolchain.config.cjs | 2 +- packages/esnext/plugins/getConfigFiles.cjs | 2 +- 52 files changed, 2382 insertions(+), 2913 deletions(-) diff --git a/README.md b/README.md index 34ee934..c645fca 100644 --- a/README.md +++ b/README.md @@ -141,7 +141,7 @@ Example: ```js /* eslint-env node, es2018 */ module.exports = { - cjsBabelEnv: { forceAllTransforms: true }, + cjsBabelEnv: { targets: { node: 16 } }, outputEsm: false, buildIgnore: ['src/**/__tests__'], } @@ -179,7 +179,7 @@ Set `outputEsm: false` in `toolchain.config.cjs`: ```js /* eslint-env node, es2018 */ module.exports = { - cjsBabelEnv: { forceAllTransforms: true }, + cjsBabelEnv: { targets: { node: 16 } }, outputEsm: false, } ``` @@ -205,7 +205,7 @@ You can put options for `@babel/preset-env` in `cjsBabelEnv`/`esmBabelEnv` in `t ```js /* eslint-env node, es2018 */ module.exports = { - cjsBabelEnv: { forceAllTransforms: true }, + cjsBabelEnv: { targets: { node: 16 } }, esmBabelEnv: { targets: { node: 16 } }, } ``` @@ -219,7 +219,7 @@ object with props `{ description: string, run: () => any }`: ```js /* eslint-env node, es2018 */ module.exports = { - cjsBabelEnv: { forceAllTransforms: true }, + cjsBabelEnv: { targets: { node: 16 } }, esmBabelEnv: { targets: { node: 16 } }, scripts: { pretest: 'echo test', diff --git a/fixtures/async-throttle/init-snapshot/dist/index.js b/fixtures/async-throttle/init-snapshot/dist/index.js index 4dc99d6..fda800d 100644 --- a/fixtures/async-throttle/init-snapshot/dist/index.js +++ b/fixtures/async-throttle/init-snapshot/dist/index.js @@ -1,160 +1,82 @@ "use strict"; -var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); -exports["default"] = void 0; -var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator")); -var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray")); -var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator")); -var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty")); -var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); -var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); -var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits")); -var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn")); -var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf")); -var _wrapNativeSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/wrapNativeSuper")); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } -var CanceledError = /*#__PURE__*/function (_Error) { - (0, _inherits2["default"])(CanceledError, _Error); - var _super = _createSuper(CanceledError); - function CanceledError() { - var _this; - (0, _classCallCheck2["default"])(this, CanceledError); - _this = _super.call(this, 'throttled invocation was canceled'); - _this.name = 'CanceledError'; - return _this; +exports.default = void 0; +class CanceledError extends Error { + constructor() { + super('throttled invocation was canceled'); + this.name = 'CanceledError'; } - return (0, _createClass2["default"])(CanceledError); -}( /*#__PURE__*/(0, _wrapNativeSuper2["default"])(Error)); -var Delay = /*#__PURE__*/function () { - function Delay(lastInvocationDone, wait) { - var _this2 = this; - (0, _classCallCheck2["default"])(this, Delay); - (0, _defineProperty2["default"])(this, "canceled", false); - var delay = new Promise(function (resolve) { - _this2.timeout = setTimeout(resolve, wait); - _this2.resolve = resolve; +} +class Delay { + canceled = false; + constructor(lastInvocationDone, wait) { + const delay = new Promise(resolve => { + this.timeout = setTimeout(resolve, wait); + this.resolve = resolve; }); - this.ready = lastInvocationDone.then(function () { - return delay; - }, function () { - return delay; + this.ready = lastInvocationDone.then(() => delay, () => delay); + } + flush() { + clearTimeout(this.timeout); + this.resolve(); + } + cancel() { + this.canceled = true; + clearTimeout(this.timeout); + this.resolve(); + } + then(handler) { + return this.ready.then(() => { + if (this.canceled) throw new CanceledError(); + return handler(); }); } - (0, _createClass2["default"])(Delay, [{ - key: "flush", - value: function flush() { - clearTimeout(this.timeout); - this.resolve(); - } - }, { - key: "cancel", - value: function cancel() { - this.canceled = true; - clearTimeout(this.timeout); - this.resolve(); - } - }, { - key: "then", - value: function then(handler) { - var _this3 = this; - return this.ready.then(function () { - if (_this3.canceled) throw new CanceledError(); - return handler(); - }); - } - }]); - return Delay; -}(); -function throttle(fn, _wait) { - var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - var wait = _wait != null && Number.isFinite(_wait) ? Math.max(_wait, 0) : 0; - var getNextArgs = options.getNextArgs || function (prev, next) { - return next; - }; - var nextArgs; - var lastInvocationDone = Promise.resolve(); - var delay = new Delay(lastInvocationDone, 0); - var nextInvocation = null; +} +function throttle(fn, _wait, options = {}) { + const wait = _wait != null && Number.isFinite(_wait) ? Math.max(_wait, 0) : 0; + const getNextArgs = options.getNextArgs || ((prev, next) => next); + let nextArgs; + let lastInvocationDone = Promise.resolve(); + let delay = new Delay(lastInvocationDone, 0); + let nextInvocation = null; function invoke() { - var args = nextArgs; + const args = nextArgs; // istanbul ignore next if (!args) throw new Error('unexpected error: nextArgs is null'); nextInvocation = null; nextArgs = null; - var result = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() { - return _regenerator["default"].wrap(function _callee$(_context) { - while (1) { - switch (_context.prev = _context.next) { - case 0: - _context.next = 2; - return fn.apply(void 0, (0, _toConsumableArray2["default"])(args)); - case 2: - return _context.abrupt("return", _context.sent); - case 3: - case "end": - return _context.stop(); - } - } - }, _callee); - }))(); - lastInvocationDone = result["catch"](function () {}); + const result = (async () => await fn(...args))(); + lastInvocationDone = result.catch(() => {}); delay = new Delay(lastInvocationDone, wait); return result; } - function wrapper() { - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } + function wrapper(...args) { nextArgs = nextArgs ? getNextArgs(nextArgs, args) : args; if (!nextArgs) throw new Error('unexpected error: nextArgs is null'); if (!nextInvocation) nextInvocation = delay.then(invoke); return nextInvocation; } - wrapper.cancel = /*#__PURE__*/(0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2() { - var prevLastInvocationDone; - return _regenerator["default"].wrap(function _callee2$(_context2) { - while (1) { - switch (_context2.prev = _context2.next) { - case 0: - prevLastInvocationDone = lastInvocationDone; - delay.cancel(); - nextInvocation = null; - nextArgs = null; - lastInvocationDone = Promise.resolve(); - delay = new Delay(lastInvocationDone, 0); - _context2.next = 8; - return prevLastInvocationDone; - case 8: - case "end": - return _context2.stop(); - } - } - }, _callee2); - })); - wrapper.flush = /*#__PURE__*/(0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3() { - return _regenerator["default"].wrap(function _callee3$(_context3) { - while (1) { - switch (_context3.prev = _context3.next) { - case 0: - delay.flush(); - _context3.next = 3; - return lastInvocationDone; - case 3: - case "end": - return _context3.stop(); - } - } - }, _callee3); - })); + wrapper.cancel = async () => { + const prevLastInvocationDone = lastInvocationDone; + delay.cancel(); + nextInvocation = null; + nextArgs = null; + lastInvocationDone = Promise.resolve(); + delay = new Delay(lastInvocationDone, 0); + await prevLastInvocationDone; + }; + wrapper.flush = async () => { + delay.flush(); + await lastInvocationDone; + }; return wrapper; } ; throttle.CanceledError = CanceledError; var _default = throttle; -exports["default"] = _default; +exports.default = _default; module.exports = exports.default; //# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/fixtures/async-throttle/init-snapshot/dist/index.js.map b/fixtures/async-throttle/init-snapshot/dist/index.js.map index b21fce1..6b00603 100644 --- a/fixtures/async-throttle/init-snapshot/dist/index.js.map +++ b/fixtures/async-throttle/init-snapshot/dist/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","names":["CanceledError","_Error","_inherits2","_super","_createSuper","_this","_classCallCheck2","call","name","_createClass2","_wrapNativeSuper2","Error","Delay","lastInvocationDone","wait","_this2","_defineProperty2","delay","Promise","resolve","timeout","setTimeout","ready","then","key","value","flush","clearTimeout","cancel","canceled","handler","_this3","throttle","fn","_wait","options","arguments","length","undefined","Number","isFinite","Math","max","getNextArgs","prev","next","nextArgs","nextInvocation","invoke","args","result","_asyncToGenerator2","_regenerator","mark","_callee","wrap","_callee$","_context","apply","_toConsumableArray2","abrupt","sent","stop","wrapper","_len","Array","_key","_callee2","prevLastInvocationDone","_callee2$","_context2","_callee3","_callee3$","_context3","_default","exports","module","default"],"sources":["src/index.js"],"sourcesContent":["// @flow\n\nclass CanceledError extends Error {\n constructor() {\n super('throttled invocation was canceled')\n this.name = 'CanceledError'\n }\n}\n\nclass Delay {\n ready: Promise\n resolve: () => void\n canceled: boolean = false\n timeout: TimeoutID\n\n constructor(lastInvocationDone: Promise, wait: number) {\n const delay = new Promise((resolve: () => void) => {\n this.timeout = setTimeout(resolve, wait)\n this.resolve = resolve\n })\n this.ready = lastInvocationDone.then(\n () => delay,\n () => delay\n )\n }\n\n flush() {\n clearTimeout(this.timeout)\n this.resolve()\n }\n\n cancel() {\n this.canceled = true\n clearTimeout(this.timeout)\n this.resolve()\n }\n\n then(handler: () => Promise): Promise {\n return this.ready.then((): Promise => {\n if (this.canceled) throw new CanceledError()\n return handler()\n })\n }\n}\n\nfunction throttle, Value>(\n fn: (...args: Args) => Value | Promise,\n _wait: ?number,\n options: {\n getNextArgs?: (args0: Args, args1: Args) => Args,\n } = {}\n): {\n (...args: Args): Promise,\n cancel: () => Promise,\n flush: () => Promise,\n} {\n const wait = _wait != null && Number.isFinite(_wait) ? Math.max(_wait, 0) : 0\n const getNextArgs = options.getNextArgs || ((prev, next) => next)\n\n let nextArgs: ?Args\n let lastInvocationDone: Promise = Promise.resolve()\n let delay: Delay = new Delay(lastInvocationDone, 0)\n let nextInvocation: ?Promise = null\n\n function invoke(): Promise {\n const args = nextArgs\n // istanbul ignore next\n if (!args) throw new Error('unexpected error: nextArgs is null')\n nextInvocation = null\n nextArgs = null\n const result = (async () => await fn(...args))()\n lastInvocationDone = result.catch(() => {})\n delay = new Delay(lastInvocationDone, wait)\n return result\n }\n\n function wrapper(...args: Args): Promise {\n nextArgs = nextArgs ? getNextArgs(nextArgs, args) : args\n if (!nextArgs) throw new Error('unexpected error: nextArgs is null')\n if (!nextInvocation) nextInvocation = delay.then(invoke)\n return nextInvocation\n }\n\n wrapper.cancel = async (): Promise => {\n const prevLastInvocationDone = lastInvocationDone\n delay.cancel()\n nextInvocation = null\n nextArgs = null\n lastInvocationDone = Promise.resolve()\n delay = new Delay(lastInvocationDone, 0)\n await prevLastInvocationDone\n }\n\n wrapper.flush = async (): Promise => {\n delay.flush()\n await lastInvocationDone\n }\n\n return wrapper\n}\n;(throttle: any).CanceledError = CanceledError\n\nexport default ((throttle: any): {\n , Value>(\n fn: (...args: Args) => Promise,\n wait: ?number,\n options?: {\n getNextArgs?: (args0: Args, args1: Args) => Args,\n }\n ): {\n (...args: Args): Promise,\n cancel: () => Promise,\n flush: () => Promise,\n },\n CanceledError: typeof CanceledError,\n})\n"],"mappings":";;;;;;;;;;;;;;;;;;;IAEMA,aAAa,0BAAAC,MAAA;EAAA,IAAAC,UAAA,aAAAF,aAAA,EAAAC,MAAA;EAAA,IAAAE,MAAA,GAAAC,YAAA,CAAAJ,aAAA;EACjB,SAAAA,cAAA,EAAc;IAAA,IAAAK,KAAA;IAAA,IAAAC,gBAAA,mBAAAN,aAAA;IACZK,KAAA,GAAAF,MAAA,CAAAI,IAAA,OAAM,mCAAmC;IACzCF,KAAA,CAAKG,IAAI,GAAG,eAAe;IAAA,OAAAH,KAAA;EAC7B;EAAC,WAAAI,aAAA,aAAAT,aAAA;AAAA,oBAAAU,iBAAA,aAJyBC,KAAK;AAAA,IAO3BC,KAAK;EAMT,SAAAA,MAAYC,kBAAgC,EAAEC,IAAY,EAAE;IAAA,IAAAC,MAAA;IAAA,IAAAT,gBAAA,mBAAAM,KAAA;IAAA,IAAAI,gBAAA,+BAHxC,KAAK;IAIvB,IAAMC,KAAK,GAAG,IAAIC,OAAO,CAAC,UAACC,OAAmB,EAAK;MACjDJ,MAAI,CAACK,OAAO,GAAGC,UAAU,CAACF,OAAO,EAAEL,IAAI,CAAC;MACxCC,MAAI,CAACI,OAAO,GAAGA,OAAO;IACxB,CAAC,CAAC;IACF,IAAI,CAACG,KAAK,GAAGT,kBAAkB,CAACU,IAAI,CAClC;MAAA,OAAMN,KAAK;IAAA,GACX;MAAA,OAAMA,KAAK;IAAA,CACb,CAAC;EACH;EAAC,IAAAR,aAAA,aAAAG,KAAA;IAAAY,GAAA;IAAAC,KAAA,EAED,SAAAC,MAAA,EAAQ;MACNC,YAAY,CAAC,IAAI,CAACP,OAAO,CAAC;MA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js","names":["CanceledError","Error","constructor","name","Delay","canceled","lastInvocationDone","wait","delay","Promise","resolve","timeout","setTimeout","ready","then","flush","clearTimeout","cancel","handler","throttle","fn","_wait","options","Number","isFinite","Math","max","getNextArgs","prev","next","nextArgs","nextInvocation","invoke","args","result","catch","wrapper","prevLastInvocationDone","_default","exports","default","module"],"sources":["src/index.js"],"sourcesContent":["// @flow\n\nclass CanceledError extends Error {\n constructor() {\n super('throttled invocation was canceled')\n this.name = 'CanceledError'\n }\n}\n\nclass Delay {\n ready: Promise\n resolve: () => void\n canceled: boolean = false\n timeout: TimeoutID\n\n constructor(lastInvocationDone: Promise, wait: number) {\n const delay = new Promise((resolve: () => void) => {\n this.timeout = setTimeout(resolve, wait)\n this.resolve = resolve\n })\n this.ready = lastInvocationDone.then(\n () => delay,\n () => delay\n )\n }\n\n flush() {\n clearTimeout(this.timeout)\n this.resolve()\n }\n\n cancel() {\n this.canceled = true\n clearTimeout(this.timeout)\n this.resolve()\n }\n\n then(handler: () => Promise): Promise {\n return this.ready.then((): Promise => {\n if (this.canceled) throw new CanceledError()\n return handler()\n })\n }\n}\n\nfunction throttle, Value>(\n fn: (...args: Args) => Value | Promise,\n _wait: ?number,\n options: {\n getNextArgs?: (args0: Args, args1: Args) => Args,\n } = {}\n): {\n (...args: Args): Promise,\n cancel: () => Promise,\n flush: () => Promise,\n} {\n const wait = _wait != null && Number.isFinite(_wait) ? Math.max(_wait, 0) : 0\n const getNextArgs = options.getNextArgs || ((prev, next) => next)\n\n let nextArgs: ?Args\n let lastInvocationDone: Promise = Promise.resolve()\n let delay: Delay = new Delay(lastInvocationDone, 0)\n let nextInvocation: ?Promise = null\n\n function invoke(): Promise {\n const args = nextArgs\n // istanbul ignore next\n if (!args) throw new Error('unexpected error: nextArgs is null')\n nextInvocation = null\n nextArgs = null\n const result = (async () => await fn(...args))()\n lastInvocationDone = result.catch(() => {})\n delay = new Delay(lastInvocationDone, wait)\n return result\n }\n\n function wrapper(...args: Args): Promise {\n nextArgs = nextArgs ? getNextArgs(nextArgs, args) : args\n if (!nextArgs) throw new Error('unexpected error: nextArgs is null')\n if (!nextInvocation) nextInvocation = delay.then(invoke)\n return nextInvocation\n }\n\n wrapper.cancel = async (): Promise => {\n const prevLastInvocationDone = lastInvocationDone\n delay.cancel()\n nextInvocation = null\n nextArgs = null\n lastInvocationDone = Promise.resolve()\n delay = new Delay(lastInvocationDone, 0)\n await prevLastInvocationDone\n }\n\n wrapper.flush = async (): Promise => {\n delay.flush()\n await lastInvocationDone\n }\n\n return wrapper\n}\n;(throttle: any).CanceledError = CanceledError\n\nexport default ((throttle: any): {\n , Value>(\n fn: (...args: Args) => Promise,\n wait: ?number,\n options?: {\n getNextArgs?: (args0: Args, args1: Args) => Args,\n }\n ): {\n (...args: Args): Promise,\n cancel: () => Promise,\n flush: () => Promise,\n },\n CanceledError: typeof CanceledError,\n})\n"],"mappings":";;;;;;AAEA,MAAMA,aAAa,SAASC,KAAK,CAAC;EAChCC,WAAWA,CAAA,EAAG;IACZ,KAAK,CAAC,mCAAmC,CAAC;IAC1C,IAAI,CAACC,IAAI,GAAG,eAAe;EAC7B;AACF;AAEA,MAAMC,KAAK,CAAC;EAGVC,QAAQ,GAAY,KAAK;EAGzBH,WAAWA,CAACI,kBAAgC,EAAEC,IAAY,EAAE;IAC1D,MAAMC,KAAK,GAAG,IAAIC,OAAO,CAAEC,OAAmB,IAAK;MACjD,IAAI,CAACC,OAAO,GAAGC,UAAU,CAACF,OAAO,EAAEH,IAAI,CAAC;MACxC,IAAI,CAACG,OAAO,GAAGA,OAAO;IACxB,CAAC,CAAC;IACF,IAAI,CAACG,KAAK,GAAGP,kBAAkB,CAACQ,IAAI,CAClC,MAAMN,KAAK,EACX,MAAMA,KACR,CAAC;EACH;EAEAO,KAAKA,CAAA,EAAG;IACNC,YAAY,CAAC,IAAI,CAACL,OAAO,CAAC;IAC1B,IAAI,CAACD,OAAO,CAAC,CAAC;EAChB;EAEAO,MAAMA,CAAA,EAAG;IACP,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,GAAG,IAAIJ,KAAK,CAACE,kBAAkB,EAAEC,IAAI,CAAC;IAC3C,OAAO2B,MAAM;EACf;EAEA,SAASE,OAAOA,CAAC,GAAGH,IAAU,EAAkB;IAC9CH,QAAQ,GAAGA,QAAQ,GAAGH,WAAW,CAACG,QAAQ,EAAEG,IAAI,CAAC,GAAGA,IAAI;IACxD,IAAI,CAACH,QAAQ,EAAE,MAAM,IAAI7B,KAAK,CAAC,oCAAoC,CAAC;IACpE,IAAI,CAAC8B,cAAc,EAAEA,cAAc,GAAGvB,KAAK,CAACM,IAAI,CAACkB,MAAM,CAAC;IACxD,OAAOD,cAAc;EACvB;EAEAK,OAAO,CAACnB,MAAM,GAAG,YAA2B;IAC1C,MAAMoB,sBAAsB,GAAG/B,kBAAkB;IACjDE,KAAK,CAACS,MAAM,CAAC,CAAC;IACdc,cAAc,GAAG,IAAI;IACrBD,QAAQ,GAAG,IAAI;IACfxB,kBAAkB,GAAGG,OAAO,CAACC,OAAO,CAAC,CAAC;IACtCF,KAAK,GAAG,IAAIJ,KAAK,CAACE,kBAAkB,EAAE,CAAC,CAAC;IACxC,MAAM+B,sBAAsB;EAC9B,CAAC;EAEDD,OAAO,CAACrB,KAAK,GAAG,YAA2B;IACzCP,KAAK,CAACO,KAAK,CAAC,CAAC;IACb,MAAMT,kBAAkB;EAC1B,CAAC;EAED,OAAO8B,OAAO;AAChB;AACA;AAAEjB,QAAQ,CAAOnB,aAAa,GAAGA,aAAa;AAAA,IAAAsC,QAAA,GAE7BnB,QAAQ;AAAAoB,OAAA,CAAAC,OAAA,GAAAF,QAAA;AAAAG,MAAA,CAAAF,OAAA,GAAAA,OAAA,CAAAC,OAAA"} diff --git a/fixtures/async-throttle/init-snapshot/dist/package.json b/fixtures/async-throttle/init-snapshot/dist/package.json index 4769ae8..758acb7 100644 --- a/fixtures/async-throttle/init-snapshot/dist/package.json +++ b/fixtures/async-throttle/init-snapshot/dist/package.json @@ -19,9 +19,7 @@ "url": "https://github.com/jcoreio/async-throttle/issues" }, "homepage": "https://github.com/jcoreio/async-throttle#readme", - "dependencies": { - "@babel/runtime": "^7.18.6" - }, + "dependencies": {}, "main": "index.js", "module": "index.mjs", "types": "index.d.ts", diff --git a/fixtures/async-throttle/init-snapshot/dist/pnpm-lock.yaml b/fixtures/async-throttle/init-snapshot/dist/pnpm-lock.yaml index 0d0def2..f6845a7 100644 --- a/fixtures/async-throttle/init-snapshot/dist/pnpm-lock.yaml +++ b/fixtures/async-throttle/init-snapshot/dist/pnpm-lock.yaml @@ -7,18 +7,18 @@ settings: dependencies: '@babel/runtime': specifier: ^7.18.6 - version: 7.25.6 + version: 7.26.0 devDependencies: '@babel/eslint-parser': specifier: ^7.12.13 - version: 7.12.13(@babel/core@7.12.10)(eslint@8.57.0) + version: 7.12.13(@babel/core@7.12.10)(eslint@8.57.1) '@babel/plugin-syntax-flow': specifier: ^7.14.5 - version: 7.24.7(@babel/core@7.12.10) + version: 7.26.0(@babel/core@7.12.10) '@babel/plugin-transform-react-jsx': specifier: ^7.14.9 - version: 7.25.2(@babel/core@7.12.10) + version: 7.25.9(@babel/core@7.12.10) '@jcoreio/eslint-plugin-implicit-dependencies': specifier: ^1.1.1 version: 1.1.1 @@ -45,10 +45,10 @@ devDependencies: version: link:../packages/typescript '@typescript-eslint/eslint-plugin': specifier: ^7.6.0 - version: 7.18.0(@typescript-eslint/parser@7.18.0)(eslint@8.57.0)(typescript@5.5.4) + version: 7.18.0(@typescript-eslint/parser@7.18.0)(eslint@8.57.1)(typescript@5.6.3) '@typescript-eslint/parser': specifier: ^7.6.0 - version: 7.18.0(eslint@8.57.0)(typescript@5.5.4) + version: 7.18.0(eslint@8.57.1)(typescript@5.6.3) chai: specifier: ^4.3.7 version: 4.5.0 @@ -60,13 +60,13 @@ devDependencies: version: 7.0.3 eslint: specifier: ^8.56.0 - version: 8.57.0 + version: 8.57.1 eslint-config-prettier: specifier: ^7.2.0 - version: 7.2.0(eslint@8.57.0) + version: 7.2.0(eslint@8.57.1) eslint-plugin-flowtype: specifier: ^8.0.3 - version: 8.0.3(@babel/plugin-syntax-flow@7.24.7)(@babel/plugin-transform-react-jsx@7.25.2)(eslint@8.57.0) + version: 8.0.3(@babel/plugin-syntax-flow@7.26.0)(@babel/plugin-transform-react-jsx@7.25.9)(eslint@8.57.1) eslint-plugin-no-only-tests: specifier: ^3.1.0 version: 3.3.0 @@ -75,7 +75,7 @@ devDependencies: version: 0.143.1 mocha: specifier: ^10.2.0 - version: 10.7.3 + version: 10.8.2 rimraf: specifier: ^3.0.2 version: 3.0.2 @@ -84,7 +84,7 @@ devDependencies: version: 9.0.3 typescript: specifier: ^5.1.0 - version: 5.5.4 + version: 5.6.3 waait: specifier: ^1.0.5 version: 1.0.5 @@ -97,12 +97,13 @@ packages: '@babel/highlight': 7.10.4 dev: true - /@babel/code-frame@7.24.7: - resolution: {integrity: sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==} + /@babel/code-frame@7.26.2: + resolution: {integrity: sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ==} engines: {node: '>=6.9.0'} dependencies: - '@babel/highlight': 7.24.7 - picocolors: 1.0.1 + '@babel/helper-validator-identifier': 7.25.9 + js-tokens: 4.0.0 + picocolors: 1.1.1 dev: true /@babel/core@7.12.10: @@ -128,7 +129,7 @@ packages: - supports-color dev: true - /@babel/eslint-parser@7.12.13(@babel/core@7.12.10)(eslint@8.57.0): + /@babel/eslint-parser@7.12.13(@babel/core@7.12.10)(eslint@8.57.1): resolution: {integrity: sha512-+VF2M8ZWXc2KVf6L0tFcv6w8IZkCc1rvN65oj6hXxhYtOanlCA6ONpgEdy/HVGmcogu4El4ohdzuyfWYxSsKow==} engines: {node: ^10.13.0 || ^12.13.0 || >=14.0.0} peerDependencies: @@ -136,7 +137,7 @@ packages: eslint: '>=7.5.0' dependencies: '@babel/core': 7.12.10 - eslint: 8.57.0 + eslint: 8.57.1 eslint-scope: 5.1.0 eslint-visitor-keys: 1.3.0 semver: 6.3.0 @@ -150,21 +151,22 @@ packages: source-map: 0.5.7 dev: true - /@babel/generator@7.25.6: - resolution: {integrity: sha512-VPC82gr1seXOpkjAAKoLhP50vx4vGNlF4msF64dSFq1P8RfB+QAuJWGHPXXPc8QyfVWwwB/TNNU4+ayZmHNbZw==} + /@babel/generator@7.26.2: + resolution: {integrity: sha512-zevQbhbau95nkoxSq3f/DC/SC+EEOUZd3DYqfSkMhY2/wfSeaHV1Ew4vk8e+x8lja31IbyuUa2uQ3JONqKbysw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.25.6 + '@babel/parser': 7.26.2 + '@babel/types': 7.26.0 '@jridgewell/gen-mapping': 0.3.5 '@jridgewell/trace-mapping': 0.3.25 - jsesc: 2.5.2 + jsesc: 3.0.2 dev: true - /@babel/helper-annotate-as-pure@7.24.7: - resolution: {integrity: sha512-BaDeOonYvhdKw+JoMVkAixAAJzG2jVPIwWoKBPdYuY9b452e2rPuI9QPYh3KpofZ3pW2akOmwZLOiOsHMiqRAg==} + /@babel/helper-annotate-as-pure@7.25.9: + resolution: {integrity: sha512-gv7320KBUFJz1RnylIg5WWYPRXKZ884AGkYpgpWW02TH66Dl+HaC1t1CKd0z3R4b6hdYEcmrNZHUmfCP+1u3/g==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 dev: true /@babel/helper-function-name@7.12.11: @@ -193,12 +195,12 @@ packages: '@babel/types': 7.12.12 dev: true - /@babel/helper-module-imports@7.24.7: - resolution: {integrity: sha512-8AyH3C+74cgCVVXow/myrynrAGv+nTVg5vKu2nZph9x7RcRwzmh0VFallJuFTZ9mx6u4eSdXZfcOzSqTUm0HCA==} + /@babel/helper-module-imports@7.25.9: + resolution: {integrity: sha512-tnUA4RsrmflIM6W6RFTLFSXITtl0wKjgpnLgXyowocVPrbYrLUXSBXDgTs8BlbmIzIdlBySRQjINYs2BAkiLtw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/traverse': 7.25.6 - '@babel/types': 7.25.6 + '@babel/traverse': 7.25.9 + '@babel/types': 7.26.0 transitivePeerDependencies: - supports-color dev: true @@ -225,8 +227,8 @@ packages: '@babel/types': 7.12.12 dev: true - /@babel/helper-plugin-utils@7.24.8: - resolution: {integrity: sha512-FFWx5142D8h2Mgr/iPVGH5G7w6jDn4jUSpZTyDnQO0Yn7Ks2Kuz6Pci8H6MPCoUJegd/UZQ3tAvfLCxQSnWWwg==} + /@babel/helper-plugin-utils@7.25.9: + resolution: {integrity: sha512-kSMlyUVdWe25rEsRGviIgOWnoT/nfABVWlqt9N19/dIPWViAOW2s9wznP5tURbs/IDuNk4gPy3YdYRgH3uxhBw==} engines: {node: '>=6.9.0'} dev: true @@ -253,8 +255,8 @@ packages: '@babel/types': 7.12.12 dev: true - /@babel/helper-string-parser@7.24.8: - resolution: {integrity: sha512-pO9KhhRcuUyGnJWwyEgnRJTSIZHiT+vMD0kPeD+so0l7mxkMT19g3pjY9GTnHySck/hDzq+dtW/4VgnMkippsQ==} + /@babel/helper-string-parser@7.25.9: + resolution: {integrity: sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==} engines: {node: '>=6.9.0'} dev: true @@ -262,8 +264,8 @@ packages: resolution: {integrity: sha512-np/lG3uARFybkoHokJUmf1QfEvRVCPbmQeUQpKow5cQ3xWrV9i3rUHodKDJPQfTVX61qKi+UdYk8kik84n7XOw==} dev: true - /@babel/helper-validator-identifier@7.24.7: - resolution: {integrity: sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==} + /@babel/helper-validator-identifier@7.25.9: + resolution: {integrity: sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==} engines: {node: '>=6.9.0'} dev: true @@ -285,16 +287,6 @@ packages: js-tokens: 4.0.0 dev: true - /@babel/highlight@7.24.7: - resolution: {integrity: sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/helper-validator-identifier': 7.24.7 - chalk: 2.4.2 - js-tokens: 4.0.0 - picocolors: 1.0.1 - dev: true - /@babel/parser@7.12.11: resolution: {integrity: sha512-N3UxG+uuF4CMYoNj8AhnbAcJF0PiuJ9KHuy1lQmkYsxTer/MAH9UBNHsBoAX/4s6NvlDD047No8mYVGGzLL4hg==} engines: {node: '>=6.0.0'} @@ -303,52 +295,52 @@ packages: '@babel/types': 7.12.12 dev: true - /@babel/parser@7.25.6: - resolution: {integrity: sha512-trGdfBdbD0l1ZPmcJ83eNxB9rbEax4ALFTF7fN386TMYbeCQbyme5cOEXQhbGXKebwGaB/J52w1mrklMcbgy6Q==} + /@babel/parser@7.26.2: + resolution: {integrity: sha512-DWMCZH9WA4Maitz2q21SRKHo9QXZxkDsbNZoVD62gusNtNBBqDg9i7uOhASfTfIGNzW+O+r7+jAlM8dwphcJKQ==} engines: {node: '>=6.0.0'} hasBin: true dependencies: - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 dev: true - /@babel/plugin-syntax-flow@7.24.7(@babel/core@7.12.10): - resolution: {integrity: sha512-9G8GYT/dxn/D1IIKOUBmGX0mnmj46mGH9NnZyJLwtCpgh5f7D2VbuKodb+2s9m1Yavh1s7ASQN8lf0eqrb1LTw==} + /@babel/plugin-syntax-flow@7.26.0(@babel/core@7.12.10): + resolution: {integrity: sha512-B+O2DnPc0iG+YXFqOxv2WNuNU97ToWjOomUQ78DouOENWUaM5sVrmet9mcomUGQFwpJd//gvUagXBSdzO1fRKg==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.12.10 - '@babel/helper-plugin-utils': 7.24.8 + '@babel/helper-plugin-utils': 7.25.9 dev: true - /@babel/plugin-syntax-jsx@7.24.7(@babel/core@7.12.10): - resolution: {integrity: sha512-6ddciUPe/mpMnOKv/U+RSd2vvVy+Yw/JfBB0ZHYjEZt9NLHmCUylNYlsbqCCS1Bffjlb0fCwC9Vqz+sBz6PsiQ==} + /@babel/plugin-syntax-jsx@7.25.9(@babel/core@7.12.10): + resolution: {integrity: sha512-ld6oezHQMZsZfp6pWtbjaNDF2tiiCYYDqQszHt5VV437lewP9aSi2Of99CK0D0XB21k7FLgnLcmQKyKzynfeAA==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.12.10 - '@babel/helper-plugin-utils': 7.24.8 + '@babel/helper-plugin-utils': 7.25.9 dev: true - /@babel/plugin-transform-react-jsx@7.25.2(@babel/core@7.12.10): - resolution: {integrity: sha512-KQsqEAVBpU82NM/B/N9j9WOdphom1SZH3R+2V7INrQUH+V9EBFwZsEJl8eBIVeQE62FxJCc70jzEZwqU7RcVqA==} + /@babel/plugin-transform-react-jsx@7.25.9(@babel/core@7.12.10): + resolution: {integrity: sha512-s5XwpQYCqGerXl+Pu6VDL3x0j2d82eiV77UJ8a2mDHAW7j9SWRqQ2y1fNo1Z74CdcYipl5Z41zvjj4Nfzq36rw==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.12.10 - '@babel/helper-annotate-as-pure': 7.24.7 - '@babel/helper-module-imports': 7.24.7 - '@babel/helper-plugin-utils': 7.24.8 - '@babel/plugin-syntax-jsx': 7.24.7(@babel/core@7.12.10) - '@babel/types': 7.25.6 + '@babel/helper-annotate-as-pure': 7.25.9 + '@babel/helper-module-imports': 7.25.9 + '@babel/helper-plugin-utils': 7.25.9 + '@babel/plugin-syntax-jsx': 7.25.9(@babel/core@7.12.10) + '@babel/types': 7.26.0 transitivePeerDependencies: - supports-color dev: true - /@babel/runtime@7.25.6: - resolution: {integrity: sha512-VBj9MYyDb9tuLq7yzqjgzt6Q+IBQLrGZfdjOekyEirZPHxXWoTSGUTMrpsfi58Up73d13NfYLv8HT9vmznjzhQ==} + /@babel/runtime@7.26.0: + resolution: {integrity: sha512-FDSOghenHTiToteC/QRlv2q3DhPZ/oOXTBoirfWNx1Cx3TMVcGWQtMMmQcSvb/JjpNeGzx8Pq/b4fKEJuWm1sw==} engines: {node: '>=6.9.0'} dependencies: regenerator-runtime: 0.14.1 @@ -361,13 +353,13 @@ packages: '@babel/types': 7.12.12 dev: true - /@babel/template@7.25.0: - resolution: {integrity: sha512-aOOgh1/5XzKvg1jvVz7AVrx2piJ2XBi227DHmbY6y+bM9H2FlN+IfecYu4Xl0cNiiVejlsCri89LUsbj8vJD9Q==} + /@babel/template@7.25.9: + resolution: {integrity: sha512-9DGttpmPvIxBb/2uwpVo3dqJ+O6RooAFOS+lB+xDqoE2PVCE8nfoHMdZLpfCQRLwvohzXISPZcgxt80xLfsuwg==} engines: {node: '>=6.9.0'} dependencies: - '@babel/code-frame': 7.24.7 - '@babel/parser': 7.25.6 - '@babel/types': 7.25.6 + '@babel/code-frame': 7.26.2 + '@babel/parser': 7.26.2 + '@babel/types': 7.26.0 dev: true /@babel/traverse@7.12.12: @@ -386,15 +378,15 @@ packages: - supports-color dev: true - /@babel/traverse@7.25.6: - resolution: {integrity: sha512-9Vrcx5ZW6UwK5tvqsj0nGpp/XzqthkT0dqIc9g1AdtygFToNtTF67XzYS//dm+SAK9cp3B9R4ZO/46p63SCjlQ==} + /@babel/traverse@7.25.9: + resolution: {integrity: sha512-ZCuvfwOwlz/bawvAuvcj8rrithP2/N55Tzz342AkTvq4qaWbGfmCk/tKhNaV2cthijKrPAA8SRJV5WWe7IBMJw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/code-frame': 7.24.7 - '@babel/generator': 7.25.6 - '@babel/parser': 7.25.6 - '@babel/template': 7.25.0 - '@babel/types': 7.25.6 + '@babel/code-frame': 7.26.2 + '@babel/generator': 7.26.2 + '@babel/parser': 7.26.2 + '@babel/template': 7.25.9 + '@babel/types': 7.26.0 debug: 4.3.1 globals: 11.12.0 transitivePeerDependencies: @@ -409,27 +401,26 @@ packages: to-fast-properties: 2.0.0 dev: true - /@babel/types@7.25.6: - resolution: {integrity: sha512-/l42B1qxpG6RdfYf343Uw1vmDjeNhneUXtzhojE7pDgfpEypmRhI6j1kr17XCVv4Cgl9HdAiQY2x0GwKm7rWCw==} + /@babel/types@7.26.0: + resolution: {integrity: sha512-Z/yiTPj+lDVnF7lWeKCIJzaIkI0vYO87dMpZ4bg4TDrFe4XXLFWL1TbXU27gBP3QccxV9mZICCrnjnYlJjXHOA==} engines: {node: '>=6.9.0'} dependencies: - '@babel/helper-string-parser': 7.24.8 - '@babel/helper-validator-identifier': 7.24.7 - to-fast-properties: 2.0.0 + '@babel/helper-string-parser': 7.25.9 + '@babel/helper-validator-identifier': 7.25.9 dev: true - /@eslint-community/eslint-utils@4.4.0(eslint@8.57.0): - resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==} + /@eslint-community/eslint-utils@4.4.1(eslint@8.57.1): + resolution: {integrity: sha512-s3O3waFUrMV8P/XaF/+ZTp1X9XBZW1a4B97ZnjQF2KYWaFD2A8KyFBsrsfSjEmjn3RGWAIuvlneuZm3CUK3jbA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 dependencies: - eslint: 8.57.0 + eslint: 8.57.1 eslint-visitor-keys: 3.4.3 dev: true - /@eslint-community/regexpp@4.11.0: - resolution: {integrity: sha512-G/M/tIiMrTAxEWRfLfQJMmGNX28IxBg4PBz8XqQhqUHLFI6TL2htpIB1iQCj144V5ee/JaKyT9/WZ0MGZWfA7A==} + /@eslint-community/regexpp@4.12.1: + resolution: {integrity: sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==} engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} dev: true @@ -438,7 +429,7 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: ajv: 6.12.6 - debug: 4.3.6(supports-color@8.1.1) + debug: 4.3.7(supports-color@8.1.1) espree: 9.6.1 globals: 13.24.0 ignore: 5.3.2 @@ -450,18 +441,18 @@ packages: - supports-color dev: true - /@eslint/js@8.57.0: - resolution: {integrity: sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==} + /@eslint/js@8.57.1: + resolution: {integrity: sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /@humanwhocodes/config-array@0.11.14: - resolution: {integrity: sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==} + /@humanwhocodes/config-array@0.13.0: + resolution: {integrity: sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==} engines: {node: '>=10.10.0'} deprecated: Use @eslint/config-array instead dependencies: '@humanwhocodes/object-schema': 2.0.3 - debug: 4.3.6(supports-color@8.1.1) + debug: 4.3.7(supports-color@8.1.1) minimatch: 3.1.2 transitivePeerDependencies: - supports-color @@ -481,7 +472,7 @@ packages: resolution: {integrity: sha512-Kg+erBdnA1sczSNNGEGIA9k7hwfnN1NrKEnACfJwbGoR6T5E/yhBbpyF5q5dEIvxHTUJ4wL5azEd3m68qq8F+Q==} engines: {node: '>=16'} dependencies: - '@babel/runtime': 7.25.6 + '@babel/runtime': 7.26.0 '@types/validate-npm-package-name': 4.0.2 pkg-up: 3.1.0 validate-npm-package-name: 5.0.1 @@ -573,7 +564,7 @@ packages: resolution: {integrity: sha512-lrpDziQipxCEeK5kWxvljWYhUvOiB2A9izZd9B2AFarYAkqZshb4lPbRs7zKEic6eGtH8V/2qJW+dPp9OtF6bw==} dev: true - /@typescript-eslint/eslint-plugin@7.18.0(@typescript-eslint/parser@7.18.0)(eslint@8.57.0)(typescript@5.5.4): + /@typescript-eslint/eslint-plugin@7.18.0(@typescript-eslint/parser@7.18.0)(eslint@8.57.1)(typescript@5.6.3): resolution: {integrity: sha512-94EQTWZ40mzBc42ATNIBimBEDltSJ9RQHCC8vc/PDbxi4k8dVwUAv4o98dk50M1zB+JGFxp43FP7f8+FP8R6Sw==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: @@ -584,23 +575,23 @@ packages: typescript: optional: true dependencies: - '@eslint-community/regexpp': 4.11.0 - '@typescript-eslint/parser': 7.18.0(eslint@8.57.0)(typescript@5.5.4) + '@eslint-community/regexpp': 4.12.1 + '@typescript-eslint/parser': 7.18.0(eslint@8.57.1)(typescript@5.6.3) '@typescript-eslint/scope-manager': 7.18.0 - '@typescript-eslint/type-utils': 7.18.0(eslint@8.57.0)(typescript@5.5.4) - '@typescript-eslint/utils': 7.18.0(eslint@8.57.0)(typescript@5.5.4) + '@typescript-eslint/type-utils': 7.18.0(eslint@8.57.1)(typescript@5.6.3) + '@typescript-eslint/utils': 7.18.0(eslint@8.57.1)(typescript@5.6.3) '@typescript-eslint/visitor-keys': 7.18.0 - eslint: 8.57.0 + eslint: 8.57.1 graphemer: 1.4.0 ignore: 5.3.2 natural-compare: 1.4.0 - ts-api-utils: 1.3.0(typescript@5.5.4) - typescript: 5.5.4 + ts-api-utils: 1.3.0(typescript@5.6.3) + typescript: 5.6.3 transitivePeerDependencies: - supports-color dev: true - /@typescript-eslint/parser@7.18.0(eslint@8.57.0)(typescript@5.5.4): + /@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.6.3): resolution: {integrity: sha512-4Z+L8I2OqhZV8qA132M4wNL30ypZGYOQVBfMgxDH/K5UX0PNqTu1c6za9ST5r9+tavvHiTWmBnKzpCJ/GlVFtg==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: @@ -612,11 +603,11 @@ packages: dependencies: '@typescript-eslint/scope-manager': 7.18.0 '@typescript-eslint/types': 7.18.0 - '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.5.4) + '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.6.3) '@typescript-eslint/visitor-keys': 7.18.0 - debug: 4.3.6(supports-color@8.1.1) - eslint: 8.57.0 - typescript: 5.5.4 + debug: 4.3.7(supports-color@8.1.1) + eslint: 8.57.1 + typescript: 5.6.3 transitivePeerDependencies: - supports-color dev: true @@ -629,7 +620,7 @@ packages: '@typescript-eslint/visitor-keys': 7.18.0 dev: true - /@typescript-eslint/type-utils@7.18.0(eslint@8.57.0)(typescript@5.5.4): + /@typescript-eslint/type-utils@7.18.0(eslint@8.57.1)(typescript@5.6.3): resolution: {integrity: sha512-XL0FJXuCLaDuX2sYqZUUSOJ2sG5/i1AAze+axqmLnSkNEVMVYLF+cbwlB2w8D1tinFuSikHmFta+P+HOofrLeA==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: @@ -639,12 +630,12 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.5.4) - '@typescript-eslint/utils': 7.18.0(eslint@8.57.0)(typescript@5.5.4) - debug: 4.3.6(supports-color@8.1.1) - eslint: 8.57.0 - ts-api-utils: 1.3.0(typescript@5.5.4) - typescript: 5.5.4 + '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.6.3) + '@typescript-eslint/utils': 7.18.0(eslint@8.57.1)(typescript@5.6.3) + debug: 4.3.7(supports-color@8.1.1) + eslint: 8.57.1 + ts-api-utils: 1.3.0(typescript@5.6.3) + typescript: 5.6.3 transitivePeerDependencies: - supports-color dev: true @@ -654,7 +645,7 @@ packages: engines: {node: ^18.18.0 || >=20.0.0} dev: true - /@typescript-eslint/typescript-estree@7.18.0(typescript@5.5.4): + /@typescript-eslint/typescript-estree@7.18.0(typescript@5.6.3): resolution: {integrity: sha512-aP1v/BSPnnyhMHts8cf1qQ6Q1IFwwRvAQGRvBFkWlo3/lH29OXA3Pts+c10nxRxIBrDnoMqzhgdwVe5f2D6OzA==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: @@ -665,28 +656,28 @@ packages: dependencies: '@typescript-eslint/types': 7.18.0 '@typescript-eslint/visitor-keys': 7.18.0 - debug: 4.3.6(supports-color@8.1.1) + debug: 4.3.7(supports-color@8.1.1) globby: 11.1.0 is-glob: 4.0.3 minimatch: 9.0.5 semver: 7.6.3 - ts-api-utils: 1.3.0(typescript@5.5.4) - typescript: 5.5.4 + ts-api-utils: 1.3.0(typescript@5.6.3) + typescript: 5.6.3 transitivePeerDependencies: - supports-color dev: true - /@typescript-eslint/utils@7.18.0(eslint@8.57.0)(typescript@5.5.4): + /@typescript-eslint/utils@7.18.0(eslint@8.57.1)(typescript@5.6.3): resolution: {integrity: sha512-kK0/rNa2j74XuHVcoCZxdFBMF+aq/vH83CXAOHieC+2Gis4mF8jJXT5eAfyD3K0sAxtPuwxaIOIOvhwzVDt/kw==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: eslint: ^8.56.0 dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) + '@eslint-community/eslint-utils': 4.4.1(eslint@8.57.1) '@typescript-eslint/scope-manager': 7.18.0 '@typescript-eslint/types': 7.18.0 - '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.5.4) - eslint: 8.57.0 + '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.6.3) + eslint: 8.57.1 transitivePeerDependencies: - supports-color - typescript @@ -704,16 +695,16 @@ packages: resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} dev: true - /acorn-jsx@5.3.2(acorn@8.12.1): + /acorn-jsx@5.3.2(acorn@8.14.0): resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} peerDependencies: acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 dependencies: - acorn: 8.12.1 + acorn: 8.14.0 dev: true - /acorn@8.12.1: - resolution: {integrity: sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==} + /acorn@8.14.0: + resolution: {integrity: sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==} engines: {node: '>=0.4.0'} hasBin: true dev: true @@ -1008,8 +999,8 @@ packages: ms: 2.1.2 dev: true - /debug@4.3.6(supports-color@8.1.1): - resolution: {integrity: sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==} + /debug@4.3.7(supports-color@8.1.1): + resolution: {integrity: sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==} engines: {node: '>=6.0'} peerDependencies: supports-color: '*' @@ -1017,7 +1008,7 @@ packages: supports-color: optional: true dependencies: - ms: 2.1.2 + ms: 2.1.3 supports-color: 8.1.1 dev: true @@ -1087,15 +1078,15 @@ packages: engines: {node: '>=10'} dev: true - /eslint-config-prettier@7.2.0(eslint@8.57.0): + /eslint-config-prettier@7.2.0(eslint@8.57.1): resolution: {integrity: sha512-rV4Qu0C3nfJKPOAhFujFxB7RMP+URFyQqqOZW9DMRD7ZDTFyjaIlETU3xzHELt++4ugC0+Jm084HQYkkJe+Ivg==} peerDependencies: eslint: '>=7.0.0' dependencies: - eslint: 8.57.0 + eslint: 8.57.1 dev: true - /eslint-plugin-flowtype@8.0.3(@babel/plugin-syntax-flow@7.24.7)(@babel/plugin-transform-react-jsx@7.25.2)(eslint@8.57.0): + /eslint-plugin-flowtype@8.0.3(@babel/plugin-syntax-flow@7.26.0)(@babel/plugin-transform-react-jsx@7.25.9)(eslint@8.57.1): resolution: {integrity: sha512-dX8l6qUL6O+fYPtpNRideCFSpmWOUVx5QcaGLVqe/vlDiBSe4vYljDWDETwnyFzpl7By/WVIu6rcrniCgH9BqQ==} engines: {node: '>=12.0.0'} peerDependencies: @@ -1103,9 +1094,9 @@ packages: '@babel/plugin-transform-react-jsx': ^7.14.9 eslint: ^8.1.0 dependencies: - '@babel/plugin-syntax-flow': 7.24.7(@babel/core@7.12.10) - '@babel/plugin-transform-react-jsx': 7.25.2(@babel/core@7.12.10) - eslint: 8.57.0 + '@babel/plugin-syntax-flow': 7.26.0(@babel/core@7.12.10) + '@babel/plugin-transform-react-jsx': 7.25.9(@babel/core@7.12.10) + eslint: 8.57.1 lodash: 4.17.21 string-natural-compare: 3.0.1 dev: true @@ -1141,23 +1132,24 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /eslint@8.57.0: - resolution: {integrity: sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==} + /eslint@8.57.1: + resolution: {integrity: sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options. hasBin: true dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) - '@eslint-community/regexpp': 4.11.0 + '@eslint-community/eslint-utils': 4.4.1(eslint@8.57.1) + '@eslint-community/regexpp': 4.12.1 '@eslint/eslintrc': 2.1.4 - '@eslint/js': 8.57.0 - '@humanwhocodes/config-array': 0.11.14 + '@eslint/js': 8.57.1 + '@humanwhocodes/config-array': 0.13.0 '@humanwhocodes/module-importer': 1.0.1 '@nodelib/fs.walk': 1.2.8 '@ungap/structured-clone': 1.2.0 ajv: 6.12.6 chalk: 4.1.0 cross-spawn: 7.0.3 - debug: 4.3.6(supports-color@8.1.1) + debug: 4.3.7(supports-color@8.1.1) doctrine: 3.0.0 escape-string-regexp: 4.0.0 eslint-scope: 7.2.2 @@ -1192,8 +1184,8 @@ packages: resolution: {integrity: sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: - acorn: 8.12.1 - acorn-jsx: 5.3.2(acorn@8.12.1) + acorn: 8.14.0 + acorn-jsx: 5.3.2(acorn@8.14.0) eslint-visitor-keys: 3.4.3 dev: true @@ -1730,6 +1722,12 @@ packages: hasBin: true dev: true + /jsesc@3.0.2: + resolution: {integrity: sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g==} + engines: {node: '>=6'} + hasBin: true + dev: true + /json-schema-traverse@0.4.1: resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==} dev: true @@ -1898,15 +1896,15 @@ packages: minimist: 1.2.5 dev: true - /mocha@10.7.3: - resolution: {integrity: sha512-uQWxAu44wwiACGqjbPYmjo7Lg8sFrS3dQe7PP2FQI+woptP4vZXSMcfMyFL/e1yFEeEpV4RtyTpZROOKmxis+A==} + /mocha@10.8.2: + resolution: {integrity: sha512-VZlYo/WE8t1tstuRmqgeyBgCbJc/lEdopaa+axcKzTBJ+UIdlAB9XnmvTCAH4pwR4ElNInaedhEBmZD8iCSVEg==} engines: {node: '>= 14.0.0'} hasBin: true dependencies: ansi-colors: 4.1.3 browser-stdout: 1.3.1 chokidar: 3.6.0 - debug: 4.3.6(supports-color@8.1.1) + debug: 4.3.7(supports-color@8.1.1) diff: 5.2.0 escape-string-regexp: 4.0.0 find-up: 5.0.0 @@ -2055,8 +2053,8 @@ packages: resolution: {integrity: sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==} dev: true - /picocolors@1.0.1: - resolution: {integrity: sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==} + /picocolors@1.1.1: + resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} dev: true /picomatch@2.2.2: @@ -2349,13 +2347,13 @@ packages: is-number: 7.0.0 dev: true - /ts-api-utils@1.3.0(typescript@5.5.4): + /ts-api-utils@1.3.0(typescript@5.6.3): resolution: {integrity: sha512-UQMIo7pb8WRomKR1/+MFVLTroIvDVtMX3K6OUir8ynLyzB8Jeriont2bTAtmNPa1ekAgN7YPDyf6V+ygrdU+eQ==} engines: {node: '>=16'} peerDependencies: typescript: '>=4.2.0' dependencies: - typescript: 5.5.4 + typescript: 5.6.3 dev: true /type-check@0.4.0: @@ -2380,8 +2378,8 @@ packages: engines: {node: '>=10'} dev: true - /typescript@5.5.4: - resolution: {integrity: sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==} + /typescript@5.6.3: + resolution: {integrity: sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==} engines: {node: '>=14.17'} hasBin: true dev: true diff --git a/fixtures/async-throttle/init-snapshot/pnpm-lock.yaml b/fixtures/async-throttle/init-snapshot/pnpm-lock.yaml index 0d0def2..f6845a7 100644 --- a/fixtures/async-throttle/init-snapshot/pnpm-lock.yaml +++ b/fixtures/async-throttle/init-snapshot/pnpm-lock.yaml @@ -7,18 +7,18 @@ settings: dependencies: '@babel/runtime': specifier: ^7.18.6 - version: 7.25.6 + version: 7.26.0 devDependencies: '@babel/eslint-parser': specifier: ^7.12.13 - version: 7.12.13(@babel/core@7.12.10)(eslint@8.57.0) + version: 7.12.13(@babel/core@7.12.10)(eslint@8.57.1) '@babel/plugin-syntax-flow': specifier: ^7.14.5 - version: 7.24.7(@babel/core@7.12.10) + version: 7.26.0(@babel/core@7.12.10) '@babel/plugin-transform-react-jsx': specifier: ^7.14.9 - version: 7.25.2(@babel/core@7.12.10) + version: 7.25.9(@babel/core@7.12.10) '@jcoreio/eslint-plugin-implicit-dependencies': specifier: ^1.1.1 version: 1.1.1 @@ -45,10 +45,10 @@ devDependencies: version: link:../packages/typescript '@typescript-eslint/eslint-plugin': specifier: ^7.6.0 - version: 7.18.0(@typescript-eslint/parser@7.18.0)(eslint@8.57.0)(typescript@5.5.4) + version: 7.18.0(@typescript-eslint/parser@7.18.0)(eslint@8.57.1)(typescript@5.6.3) '@typescript-eslint/parser': specifier: ^7.6.0 - version: 7.18.0(eslint@8.57.0)(typescript@5.5.4) + version: 7.18.0(eslint@8.57.1)(typescript@5.6.3) chai: specifier: ^4.3.7 version: 4.5.0 @@ -60,13 +60,13 @@ devDependencies: version: 7.0.3 eslint: specifier: ^8.56.0 - version: 8.57.0 + version: 8.57.1 eslint-config-prettier: specifier: ^7.2.0 - version: 7.2.0(eslint@8.57.0) + version: 7.2.0(eslint@8.57.1) eslint-plugin-flowtype: specifier: ^8.0.3 - version: 8.0.3(@babel/plugin-syntax-flow@7.24.7)(@babel/plugin-transform-react-jsx@7.25.2)(eslint@8.57.0) + version: 8.0.3(@babel/plugin-syntax-flow@7.26.0)(@babel/plugin-transform-react-jsx@7.25.9)(eslint@8.57.1) eslint-plugin-no-only-tests: specifier: ^3.1.0 version: 3.3.0 @@ -75,7 +75,7 @@ devDependencies: version: 0.143.1 mocha: specifier: ^10.2.0 - version: 10.7.3 + version: 10.8.2 rimraf: specifier: ^3.0.2 version: 3.0.2 @@ -84,7 +84,7 @@ devDependencies: version: 9.0.3 typescript: specifier: ^5.1.0 - version: 5.5.4 + version: 5.6.3 waait: specifier: ^1.0.5 version: 1.0.5 @@ -97,12 +97,13 @@ packages: '@babel/highlight': 7.10.4 dev: true - /@babel/code-frame@7.24.7: - resolution: {integrity: sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==} + /@babel/code-frame@7.26.2: + resolution: {integrity: sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ==} engines: {node: '>=6.9.0'} dependencies: - '@babel/highlight': 7.24.7 - picocolors: 1.0.1 + '@babel/helper-validator-identifier': 7.25.9 + js-tokens: 4.0.0 + picocolors: 1.1.1 dev: true /@babel/core@7.12.10: @@ -128,7 +129,7 @@ packages: - supports-color dev: true - /@babel/eslint-parser@7.12.13(@babel/core@7.12.10)(eslint@8.57.0): + /@babel/eslint-parser@7.12.13(@babel/core@7.12.10)(eslint@8.57.1): resolution: {integrity: sha512-+VF2M8ZWXc2KVf6L0tFcv6w8IZkCc1rvN65oj6hXxhYtOanlCA6ONpgEdy/HVGmcogu4El4ohdzuyfWYxSsKow==} engines: {node: ^10.13.0 || ^12.13.0 || >=14.0.0} peerDependencies: @@ -136,7 +137,7 @@ packages: eslint: '>=7.5.0' dependencies: '@babel/core': 7.12.10 - eslint: 8.57.0 + eslint: 8.57.1 eslint-scope: 5.1.0 eslint-visitor-keys: 1.3.0 semver: 6.3.0 @@ -150,21 +151,22 @@ packages: source-map: 0.5.7 dev: true - /@babel/generator@7.25.6: - resolution: {integrity: sha512-VPC82gr1seXOpkjAAKoLhP50vx4vGNlF4msF64dSFq1P8RfB+QAuJWGHPXXPc8QyfVWwwB/TNNU4+ayZmHNbZw==} + /@babel/generator@7.26.2: + resolution: {integrity: sha512-zevQbhbau95nkoxSq3f/DC/SC+EEOUZd3DYqfSkMhY2/wfSeaHV1Ew4vk8e+x8lja31IbyuUa2uQ3JONqKbysw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.25.6 + '@babel/parser': 7.26.2 + '@babel/types': 7.26.0 '@jridgewell/gen-mapping': 0.3.5 '@jridgewell/trace-mapping': 0.3.25 - jsesc: 2.5.2 + jsesc: 3.0.2 dev: true - /@babel/helper-annotate-as-pure@7.24.7: - resolution: {integrity: sha512-BaDeOonYvhdKw+JoMVkAixAAJzG2jVPIwWoKBPdYuY9b452e2rPuI9QPYh3KpofZ3pW2akOmwZLOiOsHMiqRAg==} + /@babel/helper-annotate-as-pure@7.25.9: + resolution: {integrity: sha512-gv7320KBUFJz1RnylIg5WWYPRXKZ884AGkYpgpWW02TH66Dl+HaC1t1CKd0z3R4b6hdYEcmrNZHUmfCP+1u3/g==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 dev: true /@babel/helper-function-name@7.12.11: @@ -193,12 +195,12 @@ packages: '@babel/types': 7.12.12 dev: true - /@babel/helper-module-imports@7.24.7: - resolution: {integrity: sha512-8AyH3C+74cgCVVXow/myrynrAGv+nTVg5vKu2nZph9x7RcRwzmh0VFallJuFTZ9mx6u4eSdXZfcOzSqTUm0HCA==} + /@babel/helper-module-imports@7.25.9: + resolution: {integrity: sha512-tnUA4RsrmflIM6W6RFTLFSXITtl0wKjgpnLgXyowocVPrbYrLUXSBXDgTs8BlbmIzIdlBySRQjINYs2BAkiLtw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/traverse': 7.25.6 - '@babel/types': 7.25.6 + '@babel/traverse': 7.25.9 + '@babel/types': 7.26.0 transitivePeerDependencies: - supports-color dev: true @@ -225,8 +227,8 @@ packages: '@babel/types': 7.12.12 dev: true - /@babel/helper-plugin-utils@7.24.8: - resolution: {integrity: sha512-FFWx5142D8h2Mgr/iPVGH5G7w6jDn4jUSpZTyDnQO0Yn7Ks2Kuz6Pci8H6MPCoUJegd/UZQ3tAvfLCxQSnWWwg==} + /@babel/helper-plugin-utils@7.25.9: + resolution: {integrity: sha512-kSMlyUVdWe25rEsRGviIgOWnoT/nfABVWlqt9N19/dIPWViAOW2s9wznP5tURbs/IDuNk4gPy3YdYRgH3uxhBw==} engines: {node: '>=6.9.0'} dev: true @@ -253,8 +255,8 @@ packages: '@babel/types': 7.12.12 dev: true - /@babel/helper-string-parser@7.24.8: - resolution: {integrity: sha512-pO9KhhRcuUyGnJWwyEgnRJTSIZHiT+vMD0kPeD+so0l7mxkMT19g3pjY9GTnHySck/hDzq+dtW/4VgnMkippsQ==} + /@babel/helper-string-parser@7.25.9: + resolution: {integrity: sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==} engines: {node: '>=6.9.0'} dev: true @@ -262,8 +264,8 @@ packages: resolution: {integrity: sha512-np/lG3uARFybkoHokJUmf1QfEvRVCPbmQeUQpKow5cQ3xWrV9i3rUHodKDJPQfTVX61qKi+UdYk8kik84n7XOw==} dev: true - /@babel/helper-validator-identifier@7.24.7: - resolution: {integrity: sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==} + /@babel/helper-validator-identifier@7.25.9: + resolution: {integrity: sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==} engines: {node: '>=6.9.0'} dev: true @@ -285,16 +287,6 @@ packages: js-tokens: 4.0.0 dev: true - /@babel/highlight@7.24.7: - resolution: {integrity: sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/helper-validator-identifier': 7.24.7 - chalk: 2.4.2 - js-tokens: 4.0.0 - picocolors: 1.0.1 - dev: true - /@babel/parser@7.12.11: resolution: {integrity: sha512-N3UxG+uuF4CMYoNj8AhnbAcJF0PiuJ9KHuy1lQmkYsxTer/MAH9UBNHsBoAX/4s6NvlDD047No8mYVGGzLL4hg==} engines: {node: '>=6.0.0'} @@ -303,52 +295,52 @@ packages: '@babel/types': 7.12.12 dev: true - /@babel/parser@7.25.6: - resolution: {integrity: sha512-trGdfBdbD0l1ZPmcJ83eNxB9rbEax4ALFTF7fN386TMYbeCQbyme5cOEXQhbGXKebwGaB/J52w1mrklMcbgy6Q==} + /@babel/parser@7.26.2: + resolution: {integrity: sha512-DWMCZH9WA4Maitz2q21SRKHo9QXZxkDsbNZoVD62gusNtNBBqDg9i7uOhASfTfIGNzW+O+r7+jAlM8dwphcJKQ==} engines: {node: '>=6.0.0'} hasBin: true dependencies: - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 dev: true - /@babel/plugin-syntax-flow@7.24.7(@babel/core@7.12.10): - resolution: {integrity: sha512-9G8GYT/dxn/D1IIKOUBmGX0mnmj46mGH9NnZyJLwtCpgh5f7D2VbuKodb+2s9m1Yavh1s7ASQN8lf0eqrb1LTw==} + /@babel/plugin-syntax-flow@7.26.0(@babel/core@7.12.10): + resolution: {integrity: sha512-B+O2DnPc0iG+YXFqOxv2WNuNU97ToWjOomUQ78DouOENWUaM5sVrmet9mcomUGQFwpJd//gvUagXBSdzO1fRKg==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.12.10 - '@babel/helper-plugin-utils': 7.24.8 + '@babel/helper-plugin-utils': 7.25.9 dev: true - /@babel/plugin-syntax-jsx@7.24.7(@babel/core@7.12.10): - resolution: {integrity: sha512-6ddciUPe/mpMnOKv/U+RSd2vvVy+Yw/JfBB0ZHYjEZt9NLHmCUylNYlsbqCCS1Bffjlb0fCwC9Vqz+sBz6PsiQ==} + /@babel/plugin-syntax-jsx@7.25.9(@babel/core@7.12.10): + resolution: {integrity: sha512-ld6oezHQMZsZfp6pWtbjaNDF2tiiCYYDqQszHt5VV437lewP9aSi2Of99CK0D0XB21k7FLgnLcmQKyKzynfeAA==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.12.10 - '@babel/helper-plugin-utils': 7.24.8 + '@babel/helper-plugin-utils': 7.25.9 dev: true - /@babel/plugin-transform-react-jsx@7.25.2(@babel/core@7.12.10): - resolution: {integrity: sha512-KQsqEAVBpU82NM/B/N9j9WOdphom1SZH3R+2V7INrQUH+V9EBFwZsEJl8eBIVeQE62FxJCc70jzEZwqU7RcVqA==} + /@babel/plugin-transform-react-jsx@7.25.9(@babel/core@7.12.10): + resolution: {integrity: sha512-s5XwpQYCqGerXl+Pu6VDL3x0j2d82eiV77UJ8a2mDHAW7j9SWRqQ2y1fNo1Z74CdcYipl5Z41zvjj4Nfzq36rw==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.12.10 - '@babel/helper-annotate-as-pure': 7.24.7 - '@babel/helper-module-imports': 7.24.7 - '@babel/helper-plugin-utils': 7.24.8 - '@babel/plugin-syntax-jsx': 7.24.7(@babel/core@7.12.10) - '@babel/types': 7.25.6 + '@babel/helper-annotate-as-pure': 7.25.9 + '@babel/helper-module-imports': 7.25.9 + '@babel/helper-plugin-utils': 7.25.9 + '@babel/plugin-syntax-jsx': 7.25.9(@babel/core@7.12.10) + '@babel/types': 7.26.0 transitivePeerDependencies: - supports-color dev: true - /@babel/runtime@7.25.6: - resolution: {integrity: sha512-VBj9MYyDb9tuLq7yzqjgzt6Q+IBQLrGZfdjOekyEirZPHxXWoTSGUTMrpsfi58Up73d13NfYLv8HT9vmznjzhQ==} + /@babel/runtime@7.26.0: + resolution: {integrity: sha512-FDSOghenHTiToteC/QRlv2q3DhPZ/oOXTBoirfWNx1Cx3TMVcGWQtMMmQcSvb/JjpNeGzx8Pq/b4fKEJuWm1sw==} engines: {node: '>=6.9.0'} dependencies: regenerator-runtime: 0.14.1 @@ -361,13 +353,13 @@ packages: '@babel/types': 7.12.12 dev: true - /@babel/template@7.25.0: - resolution: {integrity: sha512-aOOgh1/5XzKvg1jvVz7AVrx2piJ2XBi227DHmbY6y+bM9H2FlN+IfecYu4Xl0cNiiVejlsCri89LUsbj8vJD9Q==} + /@babel/template@7.25.9: + resolution: {integrity: sha512-9DGttpmPvIxBb/2uwpVo3dqJ+O6RooAFOS+lB+xDqoE2PVCE8nfoHMdZLpfCQRLwvohzXISPZcgxt80xLfsuwg==} engines: {node: '>=6.9.0'} dependencies: - '@babel/code-frame': 7.24.7 - '@babel/parser': 7.25.6 - '@babel/types': 7.25.6 + '@babel/code-frame': 7.26.2 + '@babel/parser': 7.26.2 + '@babel/types': 7.26.0 dev: true /@babel/traverse@7.12.12: @@ -386,15 +378,15 @@ packages: - supports-color dev: true - /@babel/traverse@7.25.6: - resolution: {integrity: sha512-9Vrcx5ZW6UwK5tvqsj0nGpp/XzqthkT0dqIc9g1AdtygFToNtTF67XzYS//dm+SAK9cp3B9R4ZO/46p63SCjlQ==} + /@babel/traverse@7.25.9: + resolution: {integrity: sha512-ZCuvfwOwlz/bawvAuvcj8rrithP2/N55Tzz342AkTvq4qaWbGfmCk/tKhNaV2cthijKrPAA8SRJV5WWe7IBMJw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/code-frame': 7.24.7 - '@babel/generator': 7.25.6 - '@babel/parser': 7.25.6 - '@babel/template': 7.25.0 - '@babel/types': 7.25.6 + '@babel/code-frame': 7.26.2 + '@babel/generator': 7.26.2 + '@babel/parser': 7.26.2 + '@babel/template': 7.25.9 + '@babel/types': 7.26.0 debug: 4.3.1 globals: 11.12.0 transitivePeerDependencies: @@ -409,27 +401,26 @@ packages: to-fast-properties: 2.0.0 dev: true - /@babel/types@7.25.6: - resolution: {integrity: sha512-/l42B1qxpG6RdfYf343Uw1vmDjeNhneUXtzhojE7pDgfpEypmRhI6j1kr17XCVv4Cgl9HdAiQY2x0GwKm7rWCw==} + /@babel/types@7.26.0: + resolution: {integrity: sha512-Z/yiTPj+lDVnF7lWeKCIJzaIkI0vYO87dMpZ4bg4TDrFe4XXLFWL1TbXU27gBP3QccxV9mZICCrnjnYlJjXHOA==} engines: {node: '>=6.9.0'} dependencies: - '@babel/helper-string-parser': 7.24.8 - '@babel/helper-validator-identifier': 7.24.7 - to-fast-properties: 2.0.0 + '@babel/helper-string-parser': 7.25.9 + '@babel/helper-validator-identifier': 7.25.9 dev: true - /@eslint-community/eslint-utils@4.4.0(eslint@8.57.0): - resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==} + /@eslint-community/eslint-utils@4.4.1(eslint@8.57.1): + resolution: {integrity: sha512-s3O3waFUrMV8P/XaF/+ZTp1X9XBZW1a4B97ZnjQF2KYWaFD2A8KyFBsrsfSjEmjn3RGWAIuvlneuZm3CUK3jbA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 dependencies: - eslint: 8.57.0 + eslint: 8.57.1 eslint-visitor-keys: 3.4.3 dev: true - /@eslint-community/regexpp@4.11.0: - resolution: {integrity: sha512-G/M/tIiMrTAxEWRfLfQJMmGNX28IxBg4PBz8XqQhqUHLFI6TL2htpIB1iQCj144V5ee/JaKyT9/WZ0MGZWfA7A==} + /@eslint-community/regexpp@4.12.1: + resolution: {integrity: sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==} engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} dev: true @@ -438,7 +429,7 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: ajv: 6.12.6 - debug: 4.3.6(supports-color@8.1.1) + debug: 4.3.7(supports-color@8.1.1) espree: 9.6.1 globals: 13.24.0 ignore: 5.3.2 @@ -450,18 +441,18 @@ packages: - supports-color dev: true - /@eslint/js@8.57.0: - resolution: {integrity: sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==} + /@eslint/js@8.57.1: + resolution: {integrity: sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /@humanwhocodes/config-array@0.11.14: - resolution: {integrity: sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==} + /@humanwhocodes/config-array@0.13.0: + resolution: {integrity: sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==} engines: {node: '>=10.10.0'} deprecated: Use @eslint/config-array instead dependencies: '@humanwhocodes/object-schema': 2.0.3 - debug: 4.3.6(supports-color@8.1.1) + debug: 4.3.7(supports-color@8.1.1) minimatch: 3.1.2 transitivePeerDependencies: - supports-color @@ -481,7 +472,7 @@ packages: resolution: {integrity: sha512-Kg+erBdnA1sczSNNGEGIA9k7hwfnN1NrKEnACfJwbGoR6T5E/yhBbpyF5q5dEIvxHTUJ4wL5azEd3m68qq8F+Q==} engines: {node: '>=16'} dependencies: - '@babel/runtime': 7.25.6 + '@babel/runtime': 7.26.0 '@types/validate-npm-package-name': 4.0.2 pkg-up: 3.1.0 validate-npm-package-name: 5.0.1 @@ -573,7 +564,7 @@ packages: resolution: {integrity: sha512-lrpDziQipxCEeK5kWxvljWYhUvOiB2A9izZd9B2AFarYAkqZshb4lPbRs7zKEic6eGtH8V/2qJW+dPp9OtF6bw==} dev: true - /@typescript-eslint/eslint-plugin@7.18.0(@typescript-eslint/parser@7.18.0)(eslint@8.57.0)(typescript@5.5.4): + /@typescript-eslint/eslint-plugin@7.18.0(@typescript-eslint/parser@7.18.0)(eslint@8.57.1)(typescript@5.6.3): resolution: {integrity: sha512-94EQTWZ40mzBc42ATNIBimBEDltSJ9RQHCC8vc/PDbxi4k8dVwUAv4o98dk50M1zB+JGFxp43FP7f8+FP8R6Sw==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: @@ -584,23 +575,23 @@ packages: typescript: optional: true dependencies: - '@eslint-community/regexpp': 4.11.0 - '@typescript-eslint/parser': 7.18.0(eslint@8.57.0)(typescript@5.5.4) + '@eslint-community/regexpp': 4.12.1 + '@typescript-eslint/parser': 7.18.0(eslint@8.57.1)(typescript@5.6.3) '@typescript-eslint/scope-manager': 7.18.0 - '@typescript-eslint/type-utils': 7.18.0(eslint@8.57.0)(typescript@5.5.4) - '@typescript-eslint/utils': 7.18.0(eslint@8.57.0)(typescript@5.5.4) + '@typescript-eslint/type-utils': 7.18.0(eslint@8.57.1)(typescript@5.6.3) + '@typescript-eslint/utils': 7.18.0(eslint@8.57.1)(typescript@5.6.3) '@typescript-eslint/visitor-keys': 7.18.0 - eslint: 8.57.0 + eslint: 8.57.1 graphemer: 1.4.0 ignore: 5.3.2 natural-compare: 1.4.0 - ts-api-utils: 1.3.0(typescript@5.5.4) - typescript: 5.5.4 + ts-api-utils: 1.3.0(typescript@5.6.3) + typescript: 5.6.3 transitivePeerDependencies: - supports-color dev: true - /@typescript-eslint/parser@7.18.0(eslint@8.57.0)(typescript@5.5.4): + /@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.6.3): resolution: {integrity: sha512-4Z+L8I2OqhZV8qA132M4wNL30ypZGYOQVBfMgxDH/K5UX0PNqTu1c6za9ST5r9+tavvHiTWmBnKzpCJ/GlVFtg==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: @@ -612,11 +603,11 @@ packages: dependencies: '@typescript-eslint/scope-manager': 7.18.0 '@typescript-eslint/types': 7.18.0 - '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.5.4) + '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.6.3) '@typescript-eslint/visitor-keys': 7.18.0 - debug: 4.3.6(supports-color@8.1.1) - eslint: 8.57.0 - typescript: 5.5.4 + debug: 4.3.7(supports-color@8.1.1) + eslint: 8.57.1 + typescript: 5.6.3 transitivePeerDependencies: - supports-color dev: true @@ -629,7 +620,7 @@ packages: '@typescript-eslint/visitor-keys': 7.18.0 dev: true - /@typescript-eslint/type-utils@7.18.0(eslint@8.57.0)(typescript@5.5.4): + /@typescript-eslint/type-utils@7.18.0(eslint@8.57.1)(typescript@5.6.3): resolution: {integrity: sha512-XL0FJXuCLaDuX2sYqZUUSOJ2sG5/i1AAze+axqmLnSkNEVMVYLF+cbwlB2w8D1tinFuSikHmFta+P+HOofrLeA==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: @@ -639,12 +630,12 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.5.4) - '@typescript-eslint/utils': 7.18.0(eslint@8.57.0)(typescript@5.5.4) - debug: 4.3.6(supports-color@8.1.1) - eslint: 8.57.0 - ts-api-utils: 1.3.0(typescript@5.5.4) - typescript: 5.5.4 + '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.6.3) + '@typescript-eslint/utils': 7.18.0(eslint@8.57.1)(typescript@5.6.3) + debug: 4.3.7(supports-color@8.1.1) + eslint: 8.57.1 + ts-api-utils: 1.3.0(typescript@5.6.3) + typescript: 5.6.3 transitivePeerDependencies: - supports-color dev: true @@ -654,7 +645,7 @@ packages: engines: {node: ^18.18.0 || >=20.0.0} dev: true - /@typescript-eslint/typescript-estree@7.18.0(typescript@5.5.4): + /@typescript-eslint/typescript-estree@7.18.0(typescript@5.6.3): resolution: {integrity: sha512-aP1v/BSPnnyhMHts8cf1qQ6Q1IFwwRvAQGRvBFkWlo3/lH29OXA3Pts+c10nxRxIBrDnoMqzhgdwVe5f2D6OzA==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: @@ -665,28 +656,28 @@ packages: dependencies: '@typescript-eslint/types': 7.18.0 '@typescript-eslint/visitor-keys': 7.18.0 - debug: 4.3.6(supports-color@8.1.1) + debug: 4.3.7(supports-color@8.1.1) globby: 11.1.0 is-glob: 4.0.3 minimatch: 9.0.5 semver: 7.6.3 - ts-api-utils: 1.3.0(typescript@5.5.4) - typescript: 5.5.4 + ts-api-utils: 1.3.0(typescript@5.6.3) + typescript: 5.6.3 transitivePeerDependencies: - supports-color dev: true - /@typescript-eslint/utils@7.18.0(eslint@8.57.0)(typescript@5.5.4): + /@typescript-eslint/utils@7.18.0(eslint@8.57.1)(typescript@5.6.3): resolution: {integrity: sha512-kK0/rNa2j74XuHVcoCZxdFBMF+aq/vH83CXAOHieC+2Gis4mF8jJXT5eAfyD3K0sAxtPuwxaIOIOvhwzVDt/kw==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: eslint: ^8.56.0 dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) + '@eslint-community/eslint-utils': 4.4.1(eslint@8.57.1) '@typescript-eslint/scope-manager': 7.18.0 '@typescript-eslint/types': 7.18.0 - '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.5.4) - eslint: 8.57.0 + '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.6.3) + eslint: 8.57.1 transitivePeerDependencies: - supports-color - typescript @@ -704,16 +695,16 @@ packages: resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} dev: true - /acorn-jsx@5.3.2(acorn@8.12.1): + /acorn-jsx@5.3.2(acorn@8.14.0): resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} peerDependencies: acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 dependencies: - acorn: 8.12.1 + acorn: 8.14.0 dev: true - /acorn@8.12.1: - resolution: {integrity: sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==} + /acorn@8.14.0: + resolution: {integrity: sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==} engines: {node: '>=0.4.0'} hasBin: true dev: true @@ -1008,8 +999,8 @@ packages: ms: 2.1.2 dev: true - /debug@4.3.6(supports-color@8.1.1): - resolution: {integrity: sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==} + /debug@4.3.7(supports-color@8.1.1): + resolution: {integrity: sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==} engines: {node: '>=6.0'} peerDependencies: supports-color: '*' @@ -1017,7 +1008,7 @@ packages: supports-color: optional: true dependencies: - ms: 2.1.2 + ms: 2.1.3 supports-color: 8.1.1 dev: true @@ -1087,15 +1078,15 @@ packages: engines: {node: '>=10'} dev: true - /eslint-config-prettier@7.2.0(eslint@8.57.0): + /eslint-config-prettier@7.2.0(eslint@8.57.1): resolution: {integrity: sha512-rV4Qu0C3nfJKPOAhFujFxB7RMP+URFyQqqOZW9DMRD7ZDTFyjaIlETU3xzHELt++4ugC0+Jm084HQYkkJe+Ivg==} peerDependencies: eslint: '>=7.0.0' dependencies: - eslint: 8.57.0 + eslint: 8.57.1 dev: true - /eslint-plugin-flowtype@8.0.3(@babel/plugin-syntax-flow@7.24.7)(@babel/plugin-transform-react-jsx@7.25.2)(eslint@8.57.0): + /eslint-plugin-flowtype@8.0.3(@babel/plugin-syntax-flow@7.26.0)(@babel/plugin-transform-react-jsx@7.25.9)(eslint@8.57.1): resolution: {integrity: sha512-dX8l6qUL6O+fYPtpNRideCFSpmWOUVx5QcaGLVqe/vlDiBSe4vYljDWDETwnyFzpl7By/WVIu6rcrniCgH9BqQ==} engines: {node: '>=12.0.0'} peerDependencies: @@ -1103,9 +1094,9 @@ packages: '@babel/plugin-transform-react-jsx': ^7.14.9 eslint: ^8.1.0 dependencies: - '@babel/plugin-syntax-flow': 7.24.7(@babel/core@7.12.10) - '@babel/plugin-transform-react-jsx': 7.25.2(@babel/core@7.12.10) - eslint: 8.57.0 + '@babel/plugin-syntax-flow': 7.26.0(@babel/core@7.12.10) + '@babel/plugin-transform-react-jsx': 7.25.9(@babel/core@7.12.10) + eslint: 8.57.1 lodash: 4.17.21 string-natural-compare: 3.0.1 dev: true @@ -1141,23 +1132,24 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /eslint@8.57.0: - resolution: {integrity: sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==} + /eslint@8.57.1: + resolution: {integrity: sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options. hasBin: true dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) - '@eslint-community/regexpp': 4.11.0 + '@eslint-community/eslint-utils': 4.4.1(eslint@8.57.1) + '@eslint-community/regexpp': 4.12.1 '@eslint/eslintrc': 2.1.4 - '@eslint/js': 8.57.0 - '@humanwhocodes/config-array': 0.11.14 + '@eslint/js': 8.57.1 + '@humanwhocodes/config-array': 0.13.0 '@humanwhocodes/module-importer': 1.0.1 '@nodelib/fs.walk': 1.2.8 '@ungap/structured-clone': 1.2.0 ajv: 6.12.6 chalk: 4.1.0 cross-spawn: 7.0.3 - debug: 4.3.6(supports-color@8.1.1) + debug: 4.3.7(supports-color@8.1.1) doctrine: 3.0.0 escape-string-regexp: 4.0.0 eslint-scope: 7.2.2 @@ -1192,8 +1184,8 @@ packages: resolution: {integrity: sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: - acorn: 8.12.1 - acorn-jsx: 5.3.2(acorn@8.12.1) + acorn: 8.14.0 + acorn-jsx: 5.3.2(acorn@8.14.0) eslint-visitor-keys: 3.4.3 dev: true @@ -1730,6 +1722,12 @@ packages: hasBin: true dev: true + /jsesc@3.0.2: + resolution: {integrity: sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g==} + engines: {node: '>=6'} + hasBin: true + dev: true + /json-schema-traverse@0.4.1: resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==} dev: true @@ -1898,15 +1896,15 @@ packages: minimist: 1.2.5 dev: true - /mocha@10.7.3: - resolution: {integrity: sha512-uQWxAu44wwiACGqjbPYmjo7Lg8sFrS3dQe7PP2FQI+woptP4vZXSMcfMyFL/e1yFEeEpV4RtyTpZROOKmxis+A==} + /mocha@10.8.2: + resolution: {integrity: sha512-VZlYo/WE8t1tstuRmqgeyBgCbJc/lEdopaa+axcKzTBJ+UIdlAB9XnmvTCAH4pwR4ElNInaedhEBmZD8iCSVEg==} engines: {node: '>= 14.0.0'} hasBin: true dependencies: ansi-colors: 4.1.3 browser-stdout: 1.3.1 chokidar: 3.6.0 - debug: 4.3.6(supports-color@8.1.1) + debug: 4.3.7(supports-color@8.1.1) diff: 5.2.0 escape-string-regexp: 4.0.0 find-up: 5.0.0 @@ -2055,8 +2053,8 @@ packages: resolution: {integrity: sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==} dev: true - /picocolors@1.0.1: - resolution: {integrity: sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==} + /picocolors@1.1.1: + resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} dev: true /picomatch@2.2.2: @@ -2349,13 +2347,13 @@ packages: is-number: 7.0.0 dev: true - /ts-api-utils@1.3.0(typescript@5.5.4): + /ts-api-utils@1.3.0(typescript@5.6.3): resolution: {integrity: sha512-UQMIo7pb8WRomKR1/+MFVLTroIvDVtMX3K6OUir8ynLyzB8Jeriont2bTAtmNPa1ekAgN7YPDyf6V+ygrdU+eQ==} engines: {node: '>=16'} peerDependencies: typescript: '>=4.2.0' dependencies: - typescript: 5.5.4 + typescript: 5.6.3 dev: true /type-check@0.4.0: @@ -2380,8 +2378,8 @@ packages: engines: {node: '>=10'} dev: true - /typescript@5.5.4: - resolution: {integrity: sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==} + /typescript@5.6.3: + resolution: {integrity: sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==} engines: {node: '>=14.17'} hasBin: true dev: true diff --git a/fixtures/async-throttle/init-snapshot/toolchain.config.cjs b/fixtures/async-throttle/init-snapshot/toolchain.config.cjs index 4920a81..c2b884d 100644 --- a/fixtures/async-throttle/init-snapshot/toolchain.config.cjs +++ b/fixtures/async-throttle/init-snapshot/toolchain.config.cjs @@ -1,6 +1,6 @@ /* eslint-env node, es2018 */ module.exports = { - cjsBabelEnv: { forceAllTransforms: true }, + cjsBabelEnv: { targets: { node: 16 } }, esmBabelEnv: { targets: { node: 16 } }, // outputEsm: false, // disables ESM output (default: true) buildIgnore: [], diff --git a/fixtures/async-throttle/input-noesm/toolchain.config.cjs b/fixtures/async-throttle/input-noesm/toolchain.config.cjs index e68695a..419c6d3 100644 --- a/fixtures/async-throttle/input-noesm/toolchain.config.cjs +++ b/fixtures/async-throttle/input-noesm/toolchain.config.cjs @@ -1,6 +1,6 @@ /* eslint-env node, es2018 */ module.exports = { - cjsBabelEnv: { forceAllTransforms: true }, + cjsBabelEnv: { targets: { node: 16 } }, esmBabelEnv: { targets: { node: 16 } }, outputEsm: false, } diff --git a/fixtures/async-throttle/input-upgrade/toolchain.config.cjs b/fixtures/async-throttle/input-upgrade/toolchain.config.cjs index 42f0d52..adf2e2c 100644 --- a/fixtures/async-throttle/input-upgrade/toolchain.config.cjs +++ b/fixtures/async-throttle/input-upgrade/toolchain.config.cjs @@ -1,5 +1,5 @@ /* eslint-env node, es2018 */ module.exports = { - cjsBabelEnv: { forceAllTransforms: true }, + cjsBabelEnv: { targets: { node: 16 } }, esmBabelEnv: { targets: { node: 16 } }, } diff --git a/fixtures/async-throttle/noesm-snapshot/dist/index.js b/fixtures/async-throttle/noesm-snapshot/dist/index.js index 4dc99d6..fda800d 100644 --- a/fixtures/async-throttle/noesm-snapshot/dist/index.js +++ b/fixtures/async-throttle/noesm-snapshot/dist/index.js @@ -1,160 +1,82 @@ "use strict"; -var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); -exports["default"] = void 0; -var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator")); -var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray")); -var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator")); -var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty")); -var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); -var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); -var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits")); -var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn")); -var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf")); -var _wrapNativeSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/wrapNativeSuper")); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } -var CanceledError = /*#__PURE__*/function (_Error) { - (0, _inherits2["default"])(CanceledError, _Error); - var _super = _createSuper(CanceledError); - function CanceledError() { - var _this; - (0, _classCallCheck2["default"])(this, CanceledError); - _this = _super.call(this, 'throttled invocation was canceled'); - _this.name = 'CanceledError'; - return _this; +exports.default = void 0; +class CanceledError extends Error { + constructor() { + super('throttled invocation was canceled'); + this.name = 'CanceledError'; } - return (0, _createClass2["default"])(CanceledError); -}( /*#__PURE__*/(0, _wrapNativeSuper2["default"])(Error)); -var Delay = /*#__PURE__*/function () { - function Delay(lastInvocationDone, wait) { - var _this2 = this; - (0, _classCallCheck2["default"])(this, Delay); - (0, _defineProperty2["default"])(this, "canceled", false); - var delay = new Promise(function (resolve) { - _this2.timeout = setTimeout(resolve, wait); - _this2.resolve = resolve; +} +class Delay { + canceled = false; + constructor(lastInvocationDone, wait) { + const delay = new Promise(resolve => { + this.timeout = setTimeout(resolve, wait); + this.resolve = resolve; }); - this.ready = lastInvocationDone.then(function () { - return delay; - }, function () { - return delay; + this.ready = lastInvocationDone.then(() => delay, () => delay); + } + flush() { + clearTimeout(this.timeout); + this.resolve(); + } + cancel() { + this.canceled = true; + clearTimeout(this.timeout); + this.resolve(); + } + then(handler) { + return this.ready.then(() => { + if (this.canceled) throw new CanceledError(); + return handler(); }); } - (0, _createClass2["default"])(Delay, [{ - key: "flush", - value: function flush() { - clearTimeout(this.timeout); - this.resolve(); - } - }, { - key: "cancel", - value: function cancel() { - this.canceled = true; - clearTimeout(this.timeout); - this.resolve(); - } - }, { - key: "then", - value: function then(handler) { - var _this3 = this; - return this.ready.then(function () { - if (_this3.canceled) throw new CanceledError(); - return handler(); - }); - } - }]); - return Delay; -}(); -function throttle(fn, _wait) { - var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - var wait = _wait != null && Number.isFinite(_wait) ? Math.max(_wait, 0) : 0; - var getNextArgs = options.getNextArgs || function (prev, next) { - return next; - }; - var nextArgs; - var lastInvocationDone = Promise.resolve(); - var delay = new Delay(lastInvocationDone, 0); - var nextInvocation = null; +} +function throttle(fn, _wait, options = {}) { + const wait = _wait != null && Number.isFinite(_wait) ? Math.max(_wait, 0) : 0; + const getNextArgs = options.getNextArgs || ((prev, next) => next); + let nextArgs; + let lastInvocationDone = Promise.resolve(); + let delay = new Delay(lastInvocationDone, 0); + let nextInvocation = null; function invoke() { - var args = nextArgs; + const args = nextArgs; // istanbul ignore next if (!args) throw new Error('unexpected error: nextArgs is null'); nextInvocation = null; nextArgs = null; - var result = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() { - return _regenerator["default"].wrap(function _callee$(_context) { - while (1) { - switch (_context.prev = _context.next) { - case 0: - _context.next = 2; - return fn.apply(void 0, (0, _toConsumableArray2["default"])(args)); - case 2: - return _context.abrupt("return", _context.sent); - case 3: - case "end": - return _context.stop(); - } - } - }, _callee); - }))(); - lastInvocationDone = result["catch"](function () {}); + const result = (async () => await fn(...args))(); + lastInvocationDone = result.catch(() => {}); delay = new Delay(lastInvocationDone, wait); return result; } - function wrapper() { - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } + function wrapper(...args) { nextArgs = nextArgs ? getNextArgs(nextArgs, args) : args; if (!nextArgs) throw new Error('unexpected error: nextArgs is null'); if (!nextInvocation) nextInvocation = delay.then(invoke); return nextInvocation; } - wrapper.cancel = /*#__PURE__*/(0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2() { - var prevLastInvocationDone; - return _regenerator["default"].wrap(function _callee2$(_context2) { - while (1) { - switch (_context2.prev = _context2.next) { - case 0: - prevLastInvocationDone = lastInvocationDone; - delay.cancel(); - nextInvocation = null; - nextArgs = null; - lastInvocationDone = Promise.resolve(); - delay = new Delay(lastInvocationDone, 0); - _context2.next = 8; - return prevLastInvocationDone; - case 8: - case "end": - return _context2.stop(); - } - } - }, _callee2); - })); - wrapper.flush = /*#__PURE__*/(0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3() { - return _regenerator["default"].wrap(function _callee3$(_context3) { - while (1) { - switch (_context3.prev = _context3.next) { - case 0: - delay.flush(); - _context3.next = 3; - return lastInvocationDone; - case 3: - case "end": - return _context3.stop(); - } - } - }, _callee3); - })); + wrapper.cancel = async () => { + const prevLastInvocationDone = lastInvocationDone; + delay.cancel(); + nextInvocation = null; + nextArgs = null; + lastInvocationDone = Promise.resolve(); + delay = new Delay(lastInvocationDone, 0); + await prevLastInvocationDone; + }; + wrapper.flush = async () => { + delay.flush(); + await lastInvocationDone; + }; return wrapper; } ; throttle.CanceledError = CanceledError; var _default = throttle; -exports["default"] = _default; +exports.default = _default; module.exports = exports.default; //# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/fixtures/async-throttle/noesm-snapshot/dist/index.js.map b/fixtures/async-throttle/noesm-snapshot/dist/index.js.map index b21fce1..6b00603 100644 --- a/fixtures/async-throttle/noesm-snapshot/dist/index.js.map +++ b/fixtures/async-throttle/noesm-snapshot/dist/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","names":["CanceledError","_Error","_inherits2","_super","_createSuper","_this","_classCallCheck2","call","name","_createClass2","_wrapNativeSuper2","Error","Delay","lastInvocationDone","wait","_this2","_defineProperty2","delay","Promise","resolve","timeout","setTimeout","ready","then","key","value","flush","clearTimeout","cancel","canceled","handler","_this3","throttle","fn","_wait","options","arguments","length","undefined","Number","isFinite","Math","max","getNextArgs","prev","next","nextArgs","nextInvocation","invoke","args","result","_asyncToGenerator2","_regenerator","mark","_callee","wrap","_callee$","_context","apply","_toConsumableArray2","abrupt","sent","stop","wrapper","_len","Array","_key","_callee2","prevLastInvocationDone","_callee2$","_context2","_callee3","_callee3$","_context3","_default","exports","module","default"],"sources":["src/index.js"],"sourcesContent":["// @flow\n\nclass CanceledError extends Error {\n constructor() {\n super('throttled invocation was canceled')\n this.name = 'CanceledError'\n }\n}\n\nclass Delay {\n ready: Promise\n resolve: () => void\n canceled: boolean = false\n timeout: TimeoutID\n\n constructor(lastInvocationDone: Promise, wait: number) {\n const delay = new Promise((resolve: () => void) => {\n this.timeout = setTimeout(resolve, wait)\n this.resolve = resolve\n })\n this.ready = lastInvocationDone.then(\n () => delay,\n () => delay\n )\n }\n\n flush() {\n clearTimeout(this.timeout)\n this.resolve()\n }\n\n cancel() {\n this.canceled = true\n clearTimeout(this.timeout)\n this.resolve()\n }\n\n then(handler: () => Promise): Promise {\n return this.ready.then((): Promise => {\n if (this.canceled) throw new CanceledError()\n return handler()\n })\n }\n}\n\nfunction throttle, Value>(\n fn: (...args: Args) => Value | Promise,\n _wait: ?number,\n options: {\n getNextArgs?: (args0: Args, args1: Args) => Args,\n } = {}\n): {\n (...args: Args): Promise,\n cancel: () => Promise,\n flush: () => Promise,\n} {\n const wait = _wait != null && Number.isFinite(_wait) ? Math.max(_wait, 0) : 0\n const getNextArgs = options.getNextArgs || ((prev, next) => next)\n\n let nextArgs: ?Args\n let lastInvocationDone: Promise = Promise.resolve()\n let delay: Delay = new Delay(lastInvocationDone, 0)\n let nextInvocation: ?Promise = null\n\n function invoke(): Promise {\n const args = nextArgs\n // istanbul ignore next\n if (!args) throw new Error('unexpected error: nextArgs is null')\n nextInvocation = null\n nextArgs = null\n const result = (async () => await fn(...args))()\n lastInvocationDone = result.catch(() => {})\n delay = new Delay(lastInvocationDone, wait)\n return result\n }\n\n function wrapper(...args: Args): Promise {\n nextArgs = nextArgs ? getNextArgs(nextArgs, args) : args\n if (!nextArgs) throw new Error('unexpected error: nextArgs is null')\n if (!nextInvocation) nextInvocation = delay.then(invoke)\n return nextInvocation\n }\n\n wrapper.cancel = async (): Promise => {\n const prevLastInvocationDone = lastInvocationDone\n delay.cancel()\n nextInvocation = null\n nextArgs = null\n lastInvocationDone = Promise.resolve()\n delay = new Delay(lastInvocationDone, 0)\n await prevLastInvocationDone\n }\n\n wrapper.flush = async (): Promise => {\n delay.flush()\n await lastInvocationDone\n }\n\n return wrapper\n}\n;(throttle: any).CanceledError = CanceledError\n\nexport default ((throttle: any): {\n , Value>(\n fn: (...args: Args) => Promise,\n wait: ?number,\n options?: {\n getNextArgs?: (args0: Args, args1: Args) => Args,\n }\n ): {\n (...args: Args): Promise,\n cancel: () => Promise,\n flush: () => Promise,\n },\n CanceledError: typeof CanceledError,\n})\n"],"mappings":";;;;;;;;;;;;;;;;;;;IAEMA,aAAa,0BAAAC,MAAA;EAAA,IAAAC,UAAA,aAAAF,aAAA,EAAAC,MAAA;EAAA,IAAAE,MAAA,GAAAC,YAAA,CAAAJ,aAAA;EACjB,SAAAA,cAAA,EAAc;IAAA,IAAAK,KAAA;IAAA,IAAAC,gBAAA,mBAAAN,aAAA;IACZK,KAAA,GAAAF,MAAA,CAAAI,IAAA,OAAM,mCAAmC;IACzCF,KAAA,CAAKG,IAAI,GAAG,eAAe;IAAA,OAAAH,KAAA;EAC7B;EAAC,WAAAI,aAAA,aAAAT,aAAA;AAAA,oBAAAU,iBAAA,aAJyBC,KAAK;AAAA,IAO3BC,KAAK;EAMT,SAAAA,MAAYC,kBAAgC,EAAEC,IAAY,EAAE;IAAA,IAAAC,MAAA;IAAA,IAAAT,gBAAA,mBAAAM,KAAA;IAAA,IAAAI,gBAAA,+BAHxC,KAAK;IAIvB,IAAMC,KAAK,GAAG,IAAIC,OAAO,CAAC,UAACC,OAAmB,EAAK;MACjDJ,MAAI,CAACK,OAAO,GAAGC,UAAU,CAACF,OAAO,EAAEL,IAAI,CAAC;MACxCC,MAAI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AkB;UAAA;UAAA;YAAA,OAAA4D,SAAA,CAAAX,IAAA;QAAA;MAAA;IAAA,GAAAS,QAAA;EAAA,CACzB;EAED,OAAOR,OAAO;AAChB;AACA;AAAE/B,QAAQ,CAAOhC,aAAa,GAAGA,aAAa;AAAA,IAAA0E,QAAA,GAE7B1C,QAAQ;AAAA2C,OAAA,cAAAD,QAAA;AAAAE,MAAA,CAAAD,OAAA,GAAAA,OAAA,CAAAE,OAAA"} +{"version":3,"file":"index.js","names":["CanceledError","Error","constructor","name","Delay","canceled","lastInvocationDone","wait","delay","Promise","resolve","timeout","setTimeout","ready","then","flush","clearTimeout","cancel","handler","throttle","fn","_wait","options","Number","isFinite","Math","max","getNextArgs","prev","next","nextArgs","nextInvocation","invoke","args","result","catch","wrapper","prevLastInvocationDone","_default","exports","default","module"],"sources":["src/index.js"],"sourcesContent":["// @flow\n\nclass CanceledError extends Error {\n constructor() {\n super('throttled invocation was canceled')\n this.name = 'CanceledError'\n }\n}\n\nclass Delay {\n ready: Promise\n resolve: () => void\n canceled: boolean = false\n timeout: TimeoutID\n\n constructor(lastInvocationDone: Promise, wait: number) {\n const delay = new Promise((resolve: () => void) => {\n this.timeout = setTimeout(resolve, wait)\n this.resolve = resolve\n })\n this.ready = lastInvocationDone.then(\n () => delay,\n () => delay\n )\n }\n\n flush() {\n clearTimeout(this.timeout)\n this.resolve()\n }\n\n cancel() {\n this.canceled = true\n clearTimeout(this.timeout)\n this.resolve()\n }\n\n then(handler: () => Promise): Promise {\n return this.ready.then((): Promise => {\n if (this.canceled) throw new CanceledError()\n return handler()\n })\n }\n}\n\nfunction throttle, Value>(\n fn: (...args: Args) => Value | Promise,\n _wait: ?number,\n options: {\n getNextArgs?: (args0: Args, args1: Args) => Args,\n } = {}\n): {\n (...args: Args): Promise,\n cancel: () => Promise,\n flush: () => Promise,\n} {\n const wait = _wait != null && Number.isFinite(_wait) ? Math.max(_wait, 0) : 0\n const getNextArgs = options.getNextArgs || ((prev, next) => next)\n\n let nextArgs: ?Args\n let lastInvocationDone: Promise = Promise.resolve()\n let delay: Delay = new Delay(lastInvocationDone, 0)\n let nextInvocation: ?Promise = null\n\n function invoke(): Promise {\n const args = nextArgs\n // istanbul ignore next\n if (!args) throw new Error('unexpected error: nextArgs is null')\n nextInvocation = null\n nextArgs = null\n const result = (async () => await fn(...args))()\n lastInvocationDone = result.catch(() => {})\n delay = new Delay(lastInvocationDone, wait)\n return result\n }\n\n function wrapper(...args: Args): Promise {\n nextArgs = nextArgs ? getNextArgs(nextArgs, args) : args\n if (!nextArgs) throw new Error('unexpected error: nextArgs is null')\n if (!nextInvocation) nextInvocation = delay.then(invoke)\n return nextInvocation\n }\n\n wrapper.cancel = async (): Promise => {\n const prevLastInvocationDone = lastInvocationDone\n delay.cancel()\n nextInvocation = null\n nextArgs = null\n lastInvocationDone = Promise.resolve()\n delay = new Delay(lastInvocationDone, 0)\n await prevLastInvocationDone\n }\n\n wrapper.flush = async (): Promise => {\n delay.flush()\n await lastInvocationDone\n }\n\n return wrapper\n}\n;(throttle: any).CanceledError = CanceledError\n\nexport default ((throttle: any): {\n , Value>(\n fn: (...args: Args) => Promise,\n wait: ?number,\n options?: {\n getNextArgs?: (args0: Args, args1: Args) => Args,\n }\n ): {\n (...args: Args): Promise,\n cancel: () => Promise,\n flush: () => Promise,\n },\n CanceledError: typeof CanceledError,\n})\n"],"mappings":";;;;;;AAEA,MAAMA,aAAa,SAASC,KAAK,CAAC;EAChCC,WAAWA,CAAA,EAAG;IACZ,KAAK,CAAC,mCAAmC,CAAC;IAC1C,IAAI,CAACC,IAAI,GAAG,eAAe;EAC7B;AACF;AAEA,MAAMC,KAAK,CAAC;EAGVC,QAAQ,GAAY,KAAK;EAGzBH,WAAWA,CAACI,kBAAgC,EAAEC,IAAY,EAAE;IAC1D,MAAMC,KAAK,GAAG,IAAIC,OAAO,CAAEC,OAAmB,IAAK;MACjD,IAAI,CAACC,OAAO,GAAGC,UAAU,CAACF,OAAO,EAAEH,IAAI,CA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7BnB,QAAQ;AAAAoB,OAAA,CAAAC,OAAA,GAAAF,QAAA;AAAAG,MAAA,CAAAF,OAAA,GAAAA,OAAA,CAAAC,OAAA"} diff --git a/fixtures/async-throttle/noesm-snapshot/dist/package.json b/fixtures/async-throttle/noesm-snapshot/dist/package.json index d0d2fdc..493b3dc 100644 --- a/fixtures/async-throttle/noesm-snapshot/dist/package.json +++ b/fixtures/async-throttle/noesm-snapshot/dist/package.json @@ -19,9 +19,7 @@ "url": "https://github.com/jcoreio/async-throttle/issues" }, "homepage": "https://github.com/jcoreio/async-throttle#readme", - "dependencies": { - "@babel/runtime": "^7.18.6" - }, + "dependencies": {}, "engines": { "node": ">=16" }, diff --git a/fixtures/async-throttle/noesm-snapshot/toolchain.config.cjs b/fixtures/async-throttle/noesm-snapshot/toolchain.config.cjs index e68695a..419c6d3 100644 --- a/fixtures/async-throttle/noesm-snapshot/toolchain.config.cjs +++ b/fixtures/async-throttle/noesm-snapshot/toolchain.config.cjs @@ -1,6 +1,6 @@ /* eslint-env node, es2018 */ module.exports = { - cjsBabelEnv: { forceAllTransforms: true }, + cjsBabelEnv: { targets: { node: 16 } }, esmBabelEnv: { targets: { node: 16 } }, outputEsm: false, } diff --git a/fixtures/async-throttle/upgrade-snapshot/dist/index.js b/fixtures/async-throttle/upgrade-snapshot/dist/index.js index 9d27093..ed5465b 100644 --- a/fixtures/async-throttle/upgrade-snapshot/dist/index.js +++ b/fixtures/async-throttle/upgrade-snapshot/dist/index.js @@ -1,99 +1,62 @@ "use strict"; -var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); -exports["default"] = exports.CanceledError = void 0; -var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator")); -var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator")); -var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray")); -var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty")); -var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); -var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); -var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits")); -var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn")); -var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf")); -var _wrapNativeSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/wrapNativeSuper")); -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } -var CanceledError = /*#__PURE__*/function (_Error) { - (0, _inherits2["default"])(CanceledError, _Error); - var _super = _createSuper(CanceledError); - function CanceledError() { - var _this; - (0, _classCallCheck2["default"])(this, CanceledError); - _this = _super.call(this, 'throttled invocation was canceled'); - _this.name = 'CanceledError'; - return _this; +exports.default = exports.CanceledError = void 0; +class CanceledError extends Error { + constructor() { + super('throttled invocation was canceled'); + this.name = 'CanceledError'; } - return (0, _createClass2["default"])(CanceledError); -}( /*#__PURE__*/(0, _wrapNativeSuper2["default"])(Error)); +} exports.CanceledError = CanceledError; -var Delay = /*#__PURE__*/function () { - function Delay(lastInvocationDone, wait) { - var _this2 = this; - (0, _classCallCheck2["default"])(this, Delay); - (0, _defineProperty2["default"])(this, "canceled", false); - var delay = new Promise(function (resolve) { - _this2.timeout = setTimeout(resolve, wait); - _this2.resolve = resolve; +class Delay { + canceled = false; + constructor(lastInvocationDone, wait) { + const delay = new Promise(resolve => { + this.timeout = setTimeout(resolve, wait); + this.resolve = resolve; }); - this.ready = lastInvocationDone.then(function () { - return delay; - }, function () { - return delay; - }).then(function () { - _this2.ready = null; + this.ready = lastInvocationDone.then(() => delay, () => delay).then(() => { + this.ready = null; }); } - (0, _createClass2["default"])(Delay, [{ - key: "flush", - value: function flush() { - clearTimeout(this.timeout); - this.resolve(); - } - }, { - key: "cancel", - value: function cancel() { - this.canceled = true; - clearTimeout(this.timeout); - this.resolve(); - } - }, { - key: "then", - value: function then(handler) { - var _this3 = this; - return (this.ready || Promise.resolve()).then(function () { - if (_this3.canceled) throw new CanceledError(); - return handler(); - }); - } - }]); - return Delay; -}(); -function throttle(fn, _wait) { - var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : { - /* :: ...null */ - }; - var wait = _wait != null && Number.isFinite(_wait) ? Math.max(_wait, 0) : 0; - var getNextArgs = options.getNextArgs || function (prev, next) { - return next; - }; - var nextArgs; - var lastInvocationDone = null; - var delay = null; - var nextInvocation = null; + flush() { + clearTimeout(this.timeout); + this.resolve(); + } + cancel() { + this.canceled = true; + clearTimeout(this.timeout); + this.resolve(); + } + then(handler) { + return (this.ready || Promise.resolve()).then(() => { + if (this.canceled) throw new CanceledError(); + return handler(); + }); + } +} +function throttle(fn, _wait, options = { + /* :: ...null */ +}) { + const wait = _wait != null && Number.isFinite(_wait) ? Math.max(_wait, 0) : 0; + const getNextArgs = options.getNextArgs || ((prev, next) => next); + let nextArgs; + let lastInvocationDone = null; + let delay = null; + let nextInvocation = null; function invoke() { - var args = nextArgs; + const args = nextArgs; // istanbul ignore next if (!args) { return Promise.reject(new Error('unexpected error: nextArgs is null')); } nextInvocation = null; nextArgs = null; - var result = Promise.resolve(fn.apply(void 0, (0, _toConsumableArray2["default"])(args))); - lastInvocationDone = result["catch"](function () {}).then(function () { + const result = Promise.resolve(fn(...args)); + lastInvocationDone = result.catch(() => {}).then(() => { lastInvocationDone = null; }); delay = new Delay(lastInvocationDone, wait); @@ -106,11 +69,8 @@ function throttle(fn, _wait) { function doInvoke() { return nextInvocation = (delay || Promise.resolve()).then(invoke); } - function wrapper() { + function wrapper(...args) { try { - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } setNextArgs(args); } catch (error) { return Promise.reject(error); @@ -140,13 +100,10 @@ function throttle(fn, _wait) { * that has been previously registered, or ignore the rejection, depending * on the runtime and your code. */ - wrapper.invokeIgnoreResult = function () { - for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - args[_key2] = arguments[_key2]; - } + wrapper.invokeIgnoreResult = (...args) => { setNextArgs(args); if (!nextInvocation) { - doInvoke()["catch"](function (err) { + doInvoke().catch(err => { if (!(err instanceof CanceledError)) { // trigger the unhandled promise rejection handler throw err; @@ -154,49 +111,26 @@ function throttle(fn, _wait) { }); } }; - wrapper.cancel = /*#__PURE__*/(0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() { + wrapper.cancel = async () => { var _delay, _delay$cancel; - var prevLastInvocationDone; - return _regenerator["default"].wrap(function _callee$(_context) { - while (1) { - switch (_context.prev = _context.next) { - case 0: - prevLastInvocationDone = lastInvocationDone; - (_delay = delay) === null || _delay === void 0 ? void 0 : (_delay$cancel = _delay.cancel) === null || _delay$cancel === void 0 ? void 0 : _delay$cancel.call(_delay); - nextInvocation = null; - nextArgs = null; - lastInvocationDone = null; - delay = null; - _context.next = 8; - return prevLastInvocationDone; - case 8: - case "end": - return _context.stop(); - } - } - }, _callee); - })); - wrapper.flush = /*#__PURE__*/(0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2() { + const prevLastInvocationDone = lastInvocationDone; + (_delay = delay) === null || _delay === void 0 ? void 0 : (_delay$cancel = _delay.cancel) === null || _delay$cancel === void 0 ? void 0 : _delay$cancel.call(_delay); + nextInvocation = null; + nextArgs = null; + lastInvocationDone = null; + delay = null; + await prevLastInvocationDone; + }; + wrapper.flush = async () => { var _delay2, _delay2$flush; - return _regenerator["default"].wrap(function _callee2$(_context2) { - while (1) { - switch (_context2.prev = _context2.next) { - case 0: - (_delay2 = delay) === null || _delay2 === void 0 ? void 0 : (_delay2$flush = _delay2.flush) === null || _delay2$flush === void 0 ? void 0 : _delay2$flush.call(_delay2); - _context2.next = 3; - return lastInvocationDone; - case 3: - case "end": - return _context2.stop(); - } - } - }, _callee2); - })); + (_delay2 = delay) === null || _delay2 === void 0 ? void 0 : (_delay2$flush = _delay2.flush) === null || _delay2$flush === void 0 ? void 0 : _delay2$flush.call(_delay2); + await lastInvocationDone; + }; return wrapper; } -var defaultExport = Object.assign(throttle, { - CanceledError: CanceledError +const defaultExport = Object.assign(throttle, { + CanceledError }); var _default = defaultExport; -exports["default"] = _default; +exports.default = _default; //# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/fixtures/async-throttle/upgrade-snapshot/dist/index.js.map b/fixtures/async-throttle/upgrade-snapshot/dist/index.js.map index c908778..db76457 100644 --- a/fixtures/async-throttle/upgrade-snapshot/dist/index.js.map +++ b/fixtures/async-throttle/upgrade-snapshot/dist/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","names":["CanceledError","_Error","_inherits2","_super","_createSuper","_this","_classCallCheck2","call","name","_createClass2","_wrapNativeSuper2","Error","exports","Delay","lastInvocationDone","wait","_this2","_defineProperty2","delay","Promise","resolve","timeout","setTimeout","ready","then","key","value","flush","clearTimeout","cancel","canceled","handler","_this3","throttle","fn","_wait","options","arguments","length","undefined","Number","isFinite","Math","max","getNextArgs","prev","next","nextArgs","nextInvocation","invoke","args","reject","result","apply","_toConsumableArray2","setNextArgs","doInvoke","wrapper","_len","Array","_key","error","invokeIgnoreResult","_len2","_key2","err","_asyncToGenerator2","_regenerator","mark","_callee","_delay","_delay$cancel","prevLastInvocationDone","wrap","_callee$","_context","stop","_callee2","_delay2","_delay2$flush","_callee2$","_context2","defaultExport","Object","assign","_default"],"sources":["src/index.js"],"sourcesContent":["// @flow\n\nexport class CanceledError extends Error {\n constructor() {\n super('throttled invocation was canceled')\n this.name = 'CanceledError'\n }\n}\n\nclass Delay {\n ready: ?Promise\n resolve: () => void\n canceled: boolean = false\n timeout: TimeoutID\n\n constructor(lastInvocationDone: Promise, wait: number) {\n const delay = new Promise((resolve: () => void) => {\n this.timeout = setTimeout(resolve, wait)\n this.resolve = resolve\n })\n this.ready = lastInvocationDone\n .then(\n () => delay,\n () => delay\n )\n .then(() => {\n this.ready = null\n })\n }\n\n flush() {\n clearTimeout(this.timeout)\n this.resolve()\n }\n\n cancel() {\n this.canceled = true\n clearTimeout(this.timeout)\n this.resolve()\n }\n\n then(handler: () => Promise): Promise {\n return (this.ready || Promise.resolve()).then((): Promise => {\n if (this.canceled) throw new CanceledError()\n return handler()\n })\n }\n}\n\ntype $Resolve = $Call<\n {\n (Promise): $Resolve,\n (V): V,\n },\n V\n>\n\nexport type ThrottledFunction, Value> = {\n (...args: Args): Promise<$Resolve>,\n invokeIgnoreResult: (...args: Args) => void,\n cancel: () => Promise,\n flush: () => Promise,\n}\n\nfunction throttle, Value>(\n fn: (...args: Args) => Value,\n _wait: ?number,\n options: {|\n getNextArgs?: (args0: Args, args1: Args) => Args,\n |} = {\n /* :: ...null */\n }\n): ThrottledFunction {\n const wait = _wait != null && Number.isFinite(_wait) ? Math.max(_wait, 0) : 0\n const getNextArgs = options.getNextArgs || ((prev, next) => next)\n\n let nextArgs: ?Args\n let lastInvocationDone: ?Promise = null\n let delay: ?Delay = null\n let nextInvocation: ?Promise = null\n\n function invoke(): Promise {\n const args = nextArgs\n // istanbul ignore next\n if (!args) {\n return Promise.reject(new Error('unexpected error: nextArgs is null'))\n }\n nextInvocation = null\n nextArgs = null\n const result = Promise.resolve(fn(...args))\n lastInvocationDone = result\n .catch(() => {})\n .then(() => {\n lastInvocationDone = null\n })\n delay = new Delay(lastInvocationDone, wait)\n return result\n }\n\n function setNextArgs(args: Args) {\n nextArgs = nextArgs ? getNextArgs(nextArgs, args) : args\n if (!nextArgs) throw new Error('unexpected error: nextArgs is null')\n }\n\n function doInvoke(): Promise {\n return (nextInvocation = (delay || Promise.resolve()).then(invoke))\n }\n function wrapper(...args: Args): Promise {\n try {\n setNextArgs(args)\n } catch (error) {\n return Promise.reject(error)\n }\n return nextInvocation || doInvoke()\n }\n\n /**\n * Calls the throttled function soon, but doesn't return a promise, catches\n * any CanceledError, and doesn't create any new promises if a call is already\n * pending.\n *\n * The throttled function should handle all errors internally,\n * e.g.:\n *\n * asyncThrottle(async () => {\n * try {\n * await foo()\n * } catch (err) {\n * // handle error\n * }\n * })\n *\n * If the throttled function throws an error or returns a promise that is\n * eventually rejected, the runtime's unhandled promise rejection handler will\n * be called, which may crash the process, route the rejection to a handler\n * that has been previously registered, or ignore the rejection, depending\n * on the runtime and your code.\n */\n wrapper.invokeIgnoreResult = (...args: Args) => {\n setNextArgs(args)\n if (!nextInvocation) {\n doInvoke().catch((err: any) => {\n if (!(err instanceof CanceledError)) {\n // trigger the unhandled promise rejection handler\n throw err\n }\n })\n }\n }\n\n wrapper.cancel = async (): Promise => {\n const prevLastInvocationDone = lastInvocationDone\n delay?.cancel?.()\n nextInvocation = null\n nextArgs = null\n lastInvocationDone = null\n delay = null\n await prevLastInvocationDone\n }\n\n wrapper.flush = async (): Promise => {\n delay?.flush?.()\n await lastInvocationDone\n }\n\n return wrapper\n}\n\nconst defaultExport: {|\n , Value>(\n fn: (...args: Args) => Value,\n wait: ?number,\n options?: {|\n getNextArgs?: (args0: Args, args1: Args) => Args,\n |}\n ): ThrottledFunction,\n|} = Object.assign(throttle, { CanceledError })\n\nexport default defaultExport\n"],"mappings":";;;;;;;;;;;;;;;;;;;IAEaA,aAAa,0BAAAC,MAAA;EAAA,IAAAC,UAAA,aAAAF,aAAA,EAAAC,MAAA;EAAA,IAAAE,MAAA,GAAAC,YAAA,CAA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IAAA,UAAAO,UAAAC,SAAA;MAAA;QAAA,QAAAA,SAAA,CAAApC,IAAA,GAAAoC,SAAA,CAAAnC,IAAA;UAAA;YACd,CAAAgC,OAAA,GAAA5D,KAAK,cAAA4D,OAAA,wBAAAC,aAAA,GAALD,OAAA,CAAOnD,KAAK,cAAAoD,aAAA,uBAAZA,aAAA,CAAAxE,IAAA,CAAAuE,OAAe,CAAC;YAAAG,SAAA,CAAAnC,IAAA;YAAA,OACVhC,kBAAkB;UAAA;UAAA;YAAA,OAAAmE,SAAA,CAAAL,IAAA;QAAA;MAAA;IAAA,GAAAC,QAAA;EAAA,CACzB;EAED,OAAOpB,OAAO;AAChB;AAEA,IAAMyB,aAQJ,GAAGC,MAAM,CAACC,MAAM,CAACnD,QAAQ,EAAE;EAAEjC,aAAa,EAAbA;AAAc,CAAC,CAAC;AAAA,IAAAqF,QAAA,GAEhCH,aAAa;AAAAtE,OAAA,cAAAyE,QAAA"} +{"version":3,"file":"index.js","names":["CanceledError","Error","constructor","name","exports","Delay","canceled","lastInvocationDone","wait","delay","Promise","resolve","timeout","setTimeout","ready","then","flush","clearTimeout","cancel","handler","throttle","fn","_wait","options","Number","isFinite","Math","max","getNextArgs","prev","next","nextArgs","nextInvocation","invoke","args","reject","result","catch","setNextArgs","doInvoke","wrapper","error","invokeIgnoreResult","err","_delay","_delay$cancel","prevLastInvocationDone","call","_delay2","_delay2$flush","defaultExport","Object","assign","_default","default"],"sources":["src/index.js"],"sourcesContent":["// @flow\n\nexport class CanceledError extends Error {\n constructor() {\n super('throttled invocation was canceled')\n this.name = 'CanceledError'\n }\n}\n\nclass Delay {\n ready: ?Promise\n resolve: () => void\n canceled: boolean = false\n timeout: TimeoutID\n\n constructor(lastInvocationDone: Promise, wait: number) {\n const delay = new Promise((resolve: () => void) => {\n this.timeout = setTimeout(resolve, wait)\n this.resolve = resolve\n })\n this.ready = lastInvocationDone\n .then(\n () => delay,\n () => delay\n )\n .then(() => {\n this.ready = null\n })\n }\n\n flush() {\n clearTimeout(this.timeout)\n this.resolve()\n }\n\n cancel() {\n this.canceled = true\n clearTimeout(this.timeout)\n this.resolve()\n }\n\n then(handler: () => Promise): Promise {\n return (this.ready || Promise.resolve()).then((): Promise => {\n if (this.canceled) throw new CanceledError()\n return handler()\n })\n }\n}\n\ntype $Resolve = $Call<\n {\n (Promise): $Resolve,\n (V): V,\n },\n V\n>\n\nexport type ThrottledFunction, Value> = {\n (...args: Args): Promise<$Resolve>,\n invokeIgnoreResult: (...args: Args) => void,\n cancel: () => Promise,\n flush: () => Promise,\n}\n\nfunction throttle, Value>(\n fn: (...args: Args) => Value,\n _wait: ?number,\n options: {|\n getNextArgs?: (args0: Args, args1: Args) => Args,\n |} = {\n /* :: ...null */\n }\n): ThrottledFunction {\n const wait = _wait != null && Number.isFinite(_wait) ? Math.max(_wait, 0) : 0\n const getNextArgs = options.getNextArgs || ((prev, next) => next)\n\n let nextArgs: ?Args\n let lastInvocationDone: ?Promise = null\n let delay: ?Delay = null\n let nextInvocation: ?Promise = null\n\n function invoke(): Promise {\n const args = nextArgs\n // istanbul ignore next\n if (!args) {\n return Promise.reject(new Error('unexpected error: nextArgs is null'))\n }\n nextInvocation = null\n nextArgs = null\n const result = Promise.resolve(fn(...args))\n lastInvocationDone = result\n .catch(() => {})\n .then(() => {\n lastInvocationDone = null\n })\n delay = new Delay(lastInvocationDone, wait)\n return result\n }\n\n function setNextArgs(args: Args) {\n nextArgs = nextArgs ? getNextArgs(nextArgs, args) : args\n if (!nextArgs) throw new Error('unexpected error: nextArgs is null')\n }\n\n function doInvoke(): Promise {\n return (nextInvocation = (delay || Promise.resolve()).then(invoke))\n }\n function wrapper(...args: Args): Promise {\n try {\n setNextArgs(args)\n } catch (error) {\n return Promise.reject(error)\n }\n return nextInvocation || doInvoke()\n }\n\n /**\n * Calls the throttled function soon, but doesn't return a promise, catches\n * any CanceledError, and doesn't create any new promises if a call is already\n * pending.\n *\n * The throttled function should handle all errors internally,\n * e.g.:\n *\n * asyncThrottle(async () => {\n * try {\n * await foo()\n * } catch (err) {\n * // handle error\n * }\n * })\n *\n * If the throttled function throws an error or returns a promise that is\n * eventually rejected, the runtime's unhandled promise rejection handler will\n * be called, which may crash the process, route the rejection to a handler\n * that has been previously registered, or ignore the rejection, depending\n * on the runtime and your code.\n */\n wrapper.invokeIgnoreResult = (...args: Args) => {\n setNextArgs(args)\n if (!nextInvocation) {\n doInvoke().catch((err: any) => {\n if (!(err instanceof CanceledError)) {\n // trigger the unhandled promise rejection handler\n throw err\n }\n })\n }\n }\n\n wrapper.cancel = async (): Promise => {\n const prevLastInvocationDone = lastInvocationDone\n delay?.cancel?.()\n nextInvocation = null\n nextArgs = null\n lastInvocationDone = null\n delay = null\n await prevLastInvocationDone\n }\n\n wrapper.flush = async (): Promise => {\n delay?.flush?.()\n await lastInvocationDone\n }\n\n return wrapper\n}\n\nconst defaultExport: {|\n , Value>(\n fn: (...args: Args) => Value,\n wait: ?number,\n options?: {|\n getNextArgs?: (args0: Args, args1: Args) => Args,\n |}\n ): ThrottledFunction,\n|} = Object.assign(throttle, { CanceledError })\n\nexport default defaultExport\n"],"mappings":";;;;;;AAEO,MAAMA,aAAa,SAASC,KAAK,CAAC;EACvCC,WAAWA,CAAA,EAAG;IACZ,KAAK,CAAC,mCAAmC,CAAC;IAC1C,IAAI,CAACC,IAAI,GAAG,eAAe;EAC7B;AACF;AAACC,OAAA,CAAAJ,aAAA,GAAAA,aAAA;AAED,MAAMK,KAAK,CAAC;EAGVC,QAAQ,GAAY,KAAK;EAGzBJ,WAAWA,CAACK,kBAAgC,EAAEC,IAAY,EAAE;IAC1D,MAAMC,KAAK,GAAG,IAAIC,OAAO,CAAEC,OAAmB,IAAK;MACjD,IAAI,CAACC,OAAO,GAAGC,UAAU,CAACF,OAAO,EAAEH,IAAI,CAAC;MACxC,IAAI,CAACG,OAAO,GAAGA,OAAO;IACxB,CAAC,CAAC;IACF,IAAI,CAACG,KAAK,GAAGP,kBAAkB,CAC5BQ,IAA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I,CAAC;IACjB,IAAI,CAACF,cAAc,EAAE;MACnBO,QAAQ,CAAC,CAAC,CAACF,KAAK,CAAEM,GAAQ,IAAK;QAC7B,IAAI,EAAEA,GAAG,YAAY3C,aAAa,CAAC,EAAE;UACnC;UACA,MAAM2C,GAAG;QACX;MACF,CAAC,CAAC;IACJ;EACF,CAAC;EAEDH,OAAO,CAACtB,MAAM,GAAG,YAA2B;IAAA,IAAA0B,MAAA,EAAAC,aAAA;IAC1C,MAAMC,sBAAsB,GAAGvC,kBAAkB;IACjD,CAAAqC,MAAA,GAAAnC,KAAK,cAAAmC,MAAA,wBAAAC,aAAA,GAALD,MAAA,CAAO1B,MAAM,cAAA2B,aAAA,uBAAbA,aAAA,CAAAE,IAAA,CAAAH,MAAgB,CAAC;IACjBZ,cAAc,GAAG,IAAI;IACrBD,QAAQ,GAAG,IAAI;IACfxB,kBAAkB,GAAG,IAAI;IACzBE,KAAK,GAAG,IAAI;IACZ,MAAMqC,sBAAsB;EAC9B,CAAC;EAEDN,OAAO,CAACxB,KAAK,GAAG,YAA2B;IAAA,IAAAgC,OAAA,EAAAC,aAAA;IACzC,CAAAD,OAAA,GAAAvC,KAAK,cAAAuC,OAAA,wBAAAC,aAAA,GAALD,OAAA,CAAOhC,KAAK,cAAAiC,aAAA,uBAAZA,aAAA,CAAAF,IAAA,CAAAC,OAAe,CAAC;IAChB,MAAMzC,kBAAkB;EAC1B,CAAC;EAED,OAAOiC,OAAO;AAChB;AAEA,MAAMU,aAQJ,GAAGC,MAAM,CAACC,MAAM,CAAChC,QAAQ,EAAE;EAAEpB;AAAc,CAAC,CAAC;AAAA,IAAAqD,QAAA,GAEhCH,aAAa;AAAA9C,OAAA,CAAAkD,OAAA,GAAAD,QAAA"} diff --git a/fixtures/async-throttle/upgrade-snapshot/dist/package.json b/fixtures/async-throttle/upgrade-snapshot/dist/package.json index 6f52b3b..d2dab82 100644 --- a/fixtures/async-throttle/upgrade-snapshot/dist/package.json +++ b/fixtures/async-throttle/upgrade-snapshot/dist/package.json @@ -19,9 +19,7 @@ "url": "https://github.com/jcoreio/async-throttle/issues" }, "homepage": "https://github.com/jcoreio/async-throttle#readme", - "dependencies": { - "@babel/runtime": "^7.18.6" - }, + "dependencies": {}, "engines": { "node": ">=16" }, diff --git a/fixtures/async-throttle/upgrade-snapshot/dist/pnpm-lock.yaml b/fixtures/async-throttle/upgrade-snapshot/dist/pnpm-lock.yaml index 144892a..ed1ee23 100644 --- a/fixtures/async-throttle/upgrade-snapshot/dist/pnpm-lock.yaml +++ b/fixtures/async-throttle/upgrade-snapshot/dist/pnpm-lock.yaml @@ -12,7 +12,7 @@ dependencies: devDependencies: '@babel/eslint-parser': specifier: ^7.12.13 - version: 7.12.13(@babel/core@7.22.9)(eslint@8.57.0) + version: 7.12.13(@babel/core@7.22.9)(eslint@8.57.1) '@babel/node': specifier: ^7.20.7 version: 7.20.7(@babel/core@7.22.9) @@ -48,10 +48,10 @@ devDependencies: version: link:../packages/typescript '@typescript-eslint/eslint-plugin': specifier: ^7.6.0 - version: 7.18.0(@typescript-eslint/parser@7.18.0)(eslint@8.57.0)(typescript@5.1.3) + version: 7.18.0(@typescript-eslint/parser@7.18.0)(eslint@8.57.1)(typescript@5.1.3) '@typescript-eslint/parser': specifier: ^7.6.0 - version: 7.18.0(eslint@8.57.0)(typescript@5.1.3) + version: 7.18.0(eslint@8.57.1)(typescript@5.1.3) chai: specifier: ^4.3.7 version: 4.3.7 @@ -66,13 +66,13 @@ devDependencies: version: 7.0.3 eslint: specifier: ^8.56.0 - version: 8.57.0 + version: 8.57.1 eslint-config-prettier: specifier: ^7.2.0 - version: 7.2.0(eslint@8.57.0) + version: 7.2.0(eslint@8.57.1) eslint-plugin-flowtype: specifier: ^8.0.3 - version: 8.0.3(@babel/plugin-syntax-flow@7.22.5)(@babel/plugin-transform-react-jsx@7.22.5)(eslint@8.57.0) + version: 8.0.3(@babel/plugin-syntax-flow@7.22.5)(@babel/plugin-transform-react-jsx@7.22.5)(eslint@8.57.1) eslint-plugin-no-only-tests: specifier: ^3.1.0 version: 3.3.0 @@ -145,7 +145,7 @@ packages: - supports-color dev: true - /@babel/eslint-parser@7.12.13(@babel/core@7.22.9)(eslint@8.57.0): + /@babel/eslint-parser@7.12.13(@babel/core@7.22.9)(eslint@8.57.1): resolution: {integrity: sha512-+VF2M8ZWXc2KVf6L0tFcv6w8IZkCc1rvN65oj6hXxhYtOanlCA6ONpgEdy/HVGmcogu4El4ohdzuyfWYxSsKow==} engines: {node: ^10.13.0 || ^12.13.0 || >=14.0.0} peerDependencies: @@ -153,7 +153,7 @@ packages: eslint: '>=7.5.0' dependencies: '@babel/core': 7.22.9 - eslint: 8.57.0 + eslint: 8.57.1 eslint-scope: 5.1.0 eslint-visitor-keys: 1.3.0 semver: 6.3.0 @@ -398,18 +398,18 @@ packages: to-fast-properties: 2.0.0 dev: true - /@eslint-community/eslint-utils@4.4.0(eslint@8.57.0): + /@eslint-community/eslint-utils@4.4.0(eslint@8.57.1): resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 dependencies: - eslint: 8.57.0 + eslint: 8.57.1 eslint-visitor-keys: 3.4.3 dev: true - /@eslint-community/regexpp@4.11.0: - resolution: {integrity: sha512-G/M/tIiMrTAxEWRfLfQJMmGNX28IxBg4PBz8XqQhqUHLFI6TL2htpIB1iQCj144V5ee/JaKyT9/WZ0MGZWfA7A==} + /@eslint-community/regexpp@4.12.1: + resolution: {integrity: sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==} engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} dev: true @@ -430,13 +430,13 @@ packages: - supports-color dev: true - /@eslint/js@8.57.0: - resolution: {integrity: sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==} + /@eslint/js@8.57.1: + resolution: {integrity: sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /@humanwhocodes/config-array@0.11.14: - resolution: {integrity: sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==} + /@humanwhocodes/config-array@0.13.0: + resolution: {integrity: sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==} engines: {node: '>=10.10.0'} deprecated: Use @eslint/config-array instead dependencies: @@ -557,7 +557,7 @@ packages: resolution: {integrity: sha512-lrpDziQipxCEeK5kWxvljWYhUvOiB2A9izZd9B2AFarYAkqZshb4lPbRs7zKEic6eGtH8V/2qJW+dPp9OtF6bw==} dev: true - /@typescript-eslint/eslint-plugin@7.18.0(@typescript-eslint/parser@7.18.0)(eslint@8.57.0)(typescript@5.1.3): + /@typescript-eslint/eslint-plugin@7.18.0(@typescript-eslint/parser@7.18.0)(eslint@8.57.1)(typescript@5.1.3): resolution: {integrity: sha512-94EQTWZ40mzBc42ATNIBimBEDltSJ9RQHCC8vc/PDbxi4k8dVwUAv4o98dk50M1zB+JGFxp43FP7f8+FP8R6Sw==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: @@ -568,13 +568,13 @@ packages: typescript: optional: true dependencies: - '@eslint-community/regexpp': 4.11.0 - '@typescript-eslint/parser': 7.18.0(eslint@8.57.0)(typescript@5.1.3) + '@eslint-community/regexpp': 4.12.1 + '@typescript-eslint/parser': 7.18.0(eslint@8.57.1)(typescript@5.1.3) '@typescript-eslint/scope-manager': 7.18.0 - '@typescript-eslint/type-utils': 7.18.0(eslint@8.57.0)(typescript@5.1.3) - '@typescript-eslint/utils': 7.18.0(eslint@8.57.0)(typescript@5.1.3) + '@typescript-eslint/type-utils': 7.18.0(eslint@8.57.1)(typescript@5.1.3) + '@typescript-eslint/utils': 7.18.0(eslint@8.57.1)(typescript@5.1.3) '@typescript-eslint/visitor-keys': 7.18.0 - eslint: 8.57.0 + eslint: 8.57.1 graphemer: 1.4.0 ignore: 5.3.2 natural-compare: 1.4.0 @@ -584,7 +584,7 @@ packages: - supports-color dev: true - /@typescript-eslint/parser@7.18.0(eslint@8.57.0)(typescript@5.1.3): + /@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.1.3): resolution: {integrity: sha512-4Z+L8I2OqhZV8qA132M4wNL30ypZGYOQVBfMgxDH/K5UX0PNqTu1c6za9ST5r9+tavvHiTWmBnKzpCJ/GlVFtg==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: @@ -599,7 +599,7 @@ packages: '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.1.3) '@typescript-eslint/visitor-keys': 7.18.0 debug: 4.3.4(supports-color@8.1.1) - eslint: 8.57.0 + eslint: 8.57.1 typescript: 5.1.3 transitivePeerDependencies: - supports-color @@ -613,7 +613,7 @@ packages: '@typescript-eslint/visitor-keys': 7.18.0 dev: true - /@typescript-eslint/type-utils@7.18.0(eslint@8.57.0)(typescript@5.1.3): + /@typescript-eslint/type-utils@7.18.0(eslint@8.57.1)(typescript@5.1.3): resolution: {integrity: sha512-XL0FJXuCLaDuX2sYqZUUSOJ2sG5/i1AAze+axqmLnSkNEVMVYLF+cbwlB2w8D1tinFuSikHmFta+P+HOofrLeA==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: @@ -624,9 +624,9 @@ packages: optional: true dependencies: '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.1.3) - '@typescript-eslint/utils': 7.18.0(eslint@8.57.0)(typescript@5.1.3) + '@typescript-eslint/utils': 7.18.0(eslint@8.57.1)(typescript@5.1.3) debug: 4.3.4(supports-color@8.1.1) - eslint: 8.57.0 + eslint: 8.57.1 ts-api-utils: 1.3.0(typescript@5.1.3) typescript: 5.1.3 transitivePeerDependencies: @@ -660,17 +660,17 @@ packages: - supports-color dev: true - /@typescript-eslint/utils@7.18.0(eslint@8.57.0)(typescript@5.1.3): + /@typescript-eslint/utils@7.18.0(eslint@8.57.1)(typescript@5.1.3): resolution: {integrity: sha512-kK0/rNa2j74XuHVcoCZxdFBMF+aq/vH83CXAOHieC+2Gis4mF8jJXT5eAfyD3K0sAxtPuwxaIOIOvhwzVDt/kw==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: eslint: ^8.56.0 dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) + '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.1) '@typescript-eslint/scope-manager': 7.18.0 '@typescript-eslint/types': 7.18.0 '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.1.3) - eslint: 8.57.0 + eslint: 8.57.1 transitivePeerDependencies: - supports-color - typescript @@ -1148,15 +1148,15 @@ packages: engines: {node: '>=10'} dev: true - /eslint-config-prettier@7.2.0(eslint@8.57.0): + /eslint-config-prettier@7.2.0(eslint@8.57.1): resolution: {integrity: sha512-rV4Qu0C3nfJKPOAhFujFxB7RMP+URFyQqqOZW9DMRD7ZDTFyjaIlETU3xzHELt++4ugC0+Jm084HQYkkJe+Ivg==} peerDependencies: eslint: '>=7.0.0' dependencies: - eslint: 8.57.0 + eslint: 8.57.1 dev: true - /eslint-plugin-flowtype@8.0.3(@babel/plugin-syntax-flow@7.22.5)(@babel/plugin-transform-react-jsx@7.22.5)(eslint@8.57.0): + /eslint-plugin-flowtype@8.0.3(@babel/plugin-syntax-flow@7.22.5)(@babel/plugin-transform-react-jsx@7.22.5)(eslint@8.57.1): resolution: {integrity: sha512-dX8l6qUL6O+fYPtpNRideCFSpmWOUVx5QcaGLVqe/vlDiBSe4vYljDWDETwnyFzpl7By/WVIu6rcrniCgH9BqQ==} engines: {node: '>=12.0.0'} peerDependencies: @@ -1166,7 +1166,7 @@ packages: dependencies: '@babel/plugin-syntax-flow': 7.22.5(@babel/core@7.22.9) '@babel/plugin-transform-react-jsx': 7.22.5(@babel/core@7.22.9) - eslint: 8.57.0 + eslint: 8.57.1 lodash: 4.17.21 string-natural-compare: 3.0.1 dev: true @@ -1202,16 +1202,17 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /eslint@8.57.0: - resolution: {integrity: sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==} + /eslint@8.57.1: + resolution: {integrity: sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options. hasBin: true dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) - '@eslint-community/regexpp': 4.11.0 + '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.1) + '@eslint-community/regexpp': 4.12.1 '@eslint/eslintrc': 2.1.4 - '@eslint/js': 8.57.0 - '@humanwhocodes/config-array': 0.11.14 + '@eslint/js': 8.57.1 + '@humanwhocodes/config-array': 0.13.0 '@humanwhocodes/module-importer': 1.0.1 '@nodelib/fs.walk': 1.2.8 '@ungap/structured-clone': 1.2.0 diff --git a/fixtures/async-throttle/upgrade-snapshot/pnpm-lock.yaml b/fixtures/async-throttle/upgrade-snapshot/pnpm-lock.yaml index 144892a..ed1ee23 100644 --- a/fixtures/async-throttle/upgrade-snapshot/pnpm-lock.yaml +++ b/fixtures/async-throttle/upgrade-snapshot/pnpm-lock.yaml @@ -12,7 +12,7 @@ dependencies: devDependencies: '@babel/eslint-parser': specifier: ^7.12.13 - version: 7.12.13(@babel/core@7.22.9)(eslint@8.57.0) + version: 7.12.13(@babel/core@7.22.9)(eslint@8.57.1) '@babel/node': specifier: ^7.20.7 version: 7.20.7(@babel/core@7.22.9) @@ -48,10 +48,10 @@ devDependencies: version: link:../packages/typescript '@typescript-eslint/eslint-plugin': specifier: ^7.6.0 - version: 7.18.0(@typescript-eslint/parser@7.18.0)(eslint@8.57.0)(typescript@5.1.3) + version: 7.18.0(@typescript-eslint/parser@7.18.0)(eslint@8.57.1)(typescript@5.1.3) '@typescript-eslint/parser': specifier: ^7.6.0 - version: 7.18.0(eslint@8.57.0)(typescript@5.1.3) + version: 7.18.0(eslint@8.57.1)(typescript@5.1.3) chai: specifier: ^4.3.7 version: 4.3.7 @@ -66,13 +66,13 @@ devDependencies: version: 7.0.3 eslint: specifier: ^8.56.0 - version: 8.57.0 + version: 8.57.1 eslint-config-prettier: specifier: ^7.2.0 - version: 7.2.0(eslint@8.57.0) + version: 7.2.0(eslint@8.57.1) eslint-plugin-flowtype: specifier: ^8.0.3 - version: 8.0.3(@babel/plugin-syntax-flow@7.22.5)(@babel/plugin-transform-react-jsx@7.22.5)(eslint@8.57.0) + version: 8.0.3(@babel/plugin-syntax-flow@7.22.5)(@babel/plugin-transform-react-jsx@7.22.5)(eslint@8.57.1) eslint-plugin-no-only-tests: specifier: ^3.1.0 version: 3.3.0 @@ -145,7 +145,7 @@ packages: - supports-color dev: true - /@babel/eslint-parser@7.12.13(@babel/core@7.22.9)(eslint@8.57.0): + /@babel/eslint-parser@7.12.13(@babel/core@7.22.9)(eslint@8.57.1): resolution: {integrity: sha512-+VF2M8ZWXc2KVf6L0tFcv6w8IZkCc1rvN65oj6hXxhYtOanlCA6ONpgEdy/HVGmcogu4El4ohdzuyfWYxSsKow==} engines: {node: ^10.13.0 || ^12.13.0 || >=14.0.0} peerDependencies: @@ -153,7 +153,7 @@ packages: eslint: '>=7.5.0' dependencies: '@babel/core': 7.22.9 - eslint: 8.57.0 + eslint: 8.57.1 eslint-scope: 5.1.0 eslint-visitor-keys: 1.3.0 semver: 6.3.0 @@ -398,18 +398,18 @@ packages: to-fast-properties: 2.0.0 dev: true - /@eslint-community/eslint-utils@4.4.0(eslint@8.57.0): + /@eslint-community/eslint-utils@4.4.0(eslint@8.57.1): resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 dependencies: - eslint: 8.57.0 + eslint: 8.57.1 eslint-visitor-keys: 3.4.3 dev: true - /@eslint-community/regexpp@4.11.0: - resolution: {integrity: sha512-G/M/tIiMrTAxEWRfLfQJMmGNX28IxBg4PBz8XqQhqUHLFI6TL2htpIB1iQCj144V5ee/JaKyT9/WZ0MGZWfA7A==} + /@eslint-community/regexpp@4.12.1: + resolution: {integrity: sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==} engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} dev: true @@ -430,13 +430,13 @@ packages: - supports-color dev: true - /@eslint/js@8.57.0: - resolution: {integrity: sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==} + /@eslint/js@8.57.1: + resolution: {integrity: sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /@humanwhocodes/config-array@0.11.14: - resolution: {integrity: sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==} + /@humanwhocodes/config-array@0.13.0: + resolution: {integrity: sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==} engines: {node: '>=10.10.0'} deprecated: Use @eslint/config-array instead dependencies: @@ -557,7 +557,7 @@ packages: resolution: {integrity: sha512-lrpDziQipxCEeK5kWxvljWYhUvOiB2A9izZd9B2AFarYAkqZshb4lPbRs7zKEic6eGtH8V/2qJW+dPp9OtF6bw==} dev: true - /@typescript-eslint/eslint-plugin@7.18.0(@typescript-eslint/parser@7.18.0)(eslint@8.57.0)(typescript@5.1.3): + /@typescript-eslint/eslint-plugin@7.18.0(@typescript-eslint/parser@7.18.0)(eslint@8.57.1)(typescript@5.1.3): resolution: {integrity: sha512-94EQTWZ40mzBc42ATNIBimBEDltSJ9RQHCC8vc/PDbxi4k8dVwUAv4o98dk50M1zB+JGFxp43FP7f8+FP8R6Sw==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: @@ -568,13 +568,13 @@ packages: typescript: optional: true dependencies: - '@eslint-community/regexpp': 4.11.0 - '@typescript-eslint/parser': 7.18.0(eslint@8.57.0)(typescript@5.1.3) + '@eslint-community/regexpp': 4.12.1 + '@typescript-eslint/parser': 7.18.0(eslint@8.57.1)(typescript@5.1.3) '@typescript-eslint/scope-manager': 7.18.0 - '@typescript-eslint/type-utils': 7.18.0(eslint@8.57.0)(typescript@5.1.3) - '@typescript-eslint/utils': 7.18.0(eslint@8.57.0)(typescript@5.1.3) + '@typescript-eslint/type-utils': 7.18.0(eslint@8.57.1)(typescript@5.1.3) + '@typescript-eslint/utils': 7.18.0(eslint@8.57.1)(typescript@5.1.3) '@typescript-eslint/visitor-keys': 7.18.0 - eslint: 8.57.0 + eslint: 8.57.1 graphemer: 1.4.0 ignore: 5.3.2 natural-compare: 1.4.0 @@ -584,7 +584,7 @@ packages: - supports-color dev: true - /@typescript-eslint/parser@7.18.0(eslint@8.57.0)(typescript@5.1.3): + /@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.1.3): resolution: {integrity: sha512-4Z+L8I2OqhZV8qA132M4wNL30ypZGYOQVBfMgxDH/K5UX0PNqTu1c6za9ST5r9+tavvHiTWmBnKzpCJ/GlVFtg==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: @@ -599,7 +599,7 @@ packages: '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.1.3) '@typescript-eslint/visitor-keys': 7.18.0 debug: 4.3.4(supports-color@8.1.1) - eslint: 8.57.0 + eslint: 8.57.1 typescript: 5.1.3 transitivePeerDependencies: - supports-color @@ -613,7 +613,7 @@ packages: '@typescript-eslint/visitor-keys': 7.18.0 dev: true - /@typescript-eslint/type-utils@7.18.0(eslint@8.57.0)(typescript@5.1.3): + /@typescript-eslint/type-utils@7.18.0(eslint@8.57.1)(typescript@5.1.3): resolution: {integrity: sha512-XL0FJXuCLaDuX2sYqZUUSOJ2sG5/i1AAze+axqmLnSkNEVMVYLF+cbwlB2w8D1tinFuSikHmFta+P+HOofrLeA==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: @@ -624,9 +624,9 @@ packages: optional: true dependencies: '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.1.3) - '@typescript-eslint/utils': 7.18.0(eslint@8.57.0)(typescript@5.1.3) + '@typescript-eslint/utils': 7.18.0(eslint@8.57.1)(typescript@5.1.3) debug: 4.3.4(supports-color@8.1.1) - eslint: 8.57.0 + eslint: 8.57.1 ts-api-utils: 1.3.0(typescript@5.1.3) typescript: 5.1.3 transitivePeerDependencies: @@ -660,17 +660,17 @@ packages: - supports-color dev: true - /@typescript-eslint/utils@7.18.0(eslint@8.57.0)(typescript@5.1.3): + /@typescript-eslint/utils@7.18.0(eslint@8.57.1)(typescript@5.1.3): resolution: {integrity: sha512-kK0/rNa2j74XuHVcoCZxdFBMF+aq/vH83CXAOHieC+2Gis4mF8jJXT5eAfyD3K0sAxtPuwxaIOIOvhwzVDt/kw==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: eslint: ^8.56.0 dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) + '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.1) '@typescript-eslint/scope-manager': 7.18.0 '@typescript-eslint/types': 7.18.0 '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.1.3) - eslint: 8.57.0 + eslint: 8.57.1 transitivePeerDependencies: - supports-color - typescript @@ -1148,15 +1148,15 @@ packages: engines: {node: '>=10'} dev: true - /eslint-config-prettier@7.2.0(eslint@8.57.0): + /eslint-config-prettier@7.2.0(eslint@8.57.1): resolution: {integrity: sha512-rV4Qu0C3nfJKPOAhFujFxB7RMP+URFyQqqOZW9DMRD7ZDTFyjaIlETU3xzHELt++4ugC0+Jm084HQYkkJe+Ivg==} peerDependencies: eslint: '>=7.0.0' dependencies: - eslint: 8.57.0 + eslint: 8.57.1 dev: true - /eslint-plugin-flowtype@8.0.3(@babel/plugin-syntax-flow@7.22.5)(@babel/plugin-transform-react-jsx@7.22.5)(eslint@8.57.0): + /eslint-plugin-flowtype@8.0.3(@babel/plugin-syntax-flow@7.22.5)(@babel/plugin-transform-react-jsx@7.22.5)(eslint@8.57.1): resolution: {integrity: sha512-dX8l6qUL6O+fYPtpNRideCFSpmWOUVx5QcaGLVqe/vlDiBSe4vYljDWDETwnyFzpl7By/WVIu6rcrniCgH9BqQ==} engines: {node: '>=12.0.0'} peerDependencies: @@ -1166,7 +1166,7 @@ packages: dependencies: '@babel/plugin-syntax-flow': 7.22.5(@babel/core@7.22.9) '@babel/plugin-transform-react-jsx': 7.22.5(@babel/core@7.22.9) - eslint: 8.57.0 + eslint: 8.57.1 lodash: 4.17.21 string-natural-compare: 3.0.1 dev: true @@ -1202,16 +1202,17 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /eslint@8.57.0: - resolution: {integrity: sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==} + /eslint@8.57.1: + resolution: {integrity: sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options. hasBin: true dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) - '@eslint-community/regexpp': 4.11.0 + '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.1) + '@eslint-community/regexpp': 4.12.1 '@eslint/eslintrc': 2.1.4 - '@eslint/js': 8.57.0 - '@humanwhocodes/config-array': 0.11.14 + '@eslint/js': 8.57.1 + '@humanwhocodes/config-array': 0.13.0 '@humanwhocodes/module-importer': 1.0.1 '@nodelib/fs.walk': 1.2.8 '@ungap/structured-clone': 1.2.0 diff --git a/fixtures/async-throttle/upgrade-snapshot/toolchain.config.cjs b/fixtures/async-throttle/upgrade-snapshot/toolchain.config.cjs index 42f0d52..adf2e2c 100644 --- a/fixtures/async-throttle/upgrade-snapshot/toolchain.config.cjs +++ b/fixtures/async-throttle/upgrade-snapshot/toolchain.config.cjs @@ -1,5 +1,5 @@ /* eslint-env node, es2018 */ module.exports = { - cjsBabelEnv: { forceAllTransforms: true }, + cjsBabelEnv: { targets: { node: 16 } }, esmBabelEnv: { targets: { node: 16 } }, } diff --git a/fixtures/find-cycle/init-snapshot/dist/pnpm-lock.yaml b/fixtures/find-cycle/init-snapshot/dist/pnpm-lock.yaml index e1635a9..08d22e1 100644 --- a/fixtures/find-cycle/init-snapshot/dist/pnpm-lock.yaml +++ b/fixtures/find-cycle/init-snapshot/dist/pnpm-lock.yaml @@ -25,7 +25,7 @@ devDependencies: version: 4.5.0 eslint: specifier: ^8.56.0 - version: 8.57.0 + version: 8.57.1 eslint-plugin-no-only-tests: specifier: ^3.1.0 version: 3.3.0 @@ -34,29 +34,29 @@ devDependencies: version: 0.64.0 mocha: specifier: ^10.2.0 - version: 10.7.3 + version: 10.8.2 packages: - /@babel/runtime@7.25.6: - resolution: {integrity: sha512-VBj9MYyDb9tuLq7yzqjgzt6Q+IBQLrGZfdjOekyEirZPHxXWoTSGUTMrpsfi58Up73d13NfYLv8HT9vmznjzhQ==} + /@babel/runtime@7.26.0: + resolution: {integrity: sha512-FDSOghenHTiToteC/QRlv2q3DhPZ/oOXTBoirfWNx1Cx3TMVcGWQtMMmQcSvb/JjpNeGzx8Pq/b4fKEJuWm1sw==} engines: {node: '>=6.9.0'} dependencies: regenerator-runtime: 0.14.1 dev: true - /@eslint-community/eslint-utils@4.4.0(eslint@8.57.0): - resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==} + /@eslint-community/eslint-utils@4.4.1(eslint@8.57.1): + resolution: {integrity: sha512-s3O3waFUrMV8P/XaF/+ZTp1X9XBZW1a4B97ZnjQF2KYWaFD2A8KyFBsrsfSjEmjn3RGWAIuvlneuZm3CUK3jbA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 dependencies: - eslint: 8.57.0 + eslint: 8.57.1 eslint-visitor-keys: 3.4.3 dev: true - /@eslint-community/regexpp@4.11.0: - resolution: {integrity: sha512-G/M/tIiMrTAxEWRfLfQJMmGNX28IxBg4PBz8XqQhqUHLFI6TL2htpIB1iQCj144V5ee/JaKyT9/WZ0MGZWfA7A==} + /@eslint-community/regexpp@4.12.1: + resolution: {integrity: sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==} engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} dev: true @@ -65,7 +65,7 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: ajv: 6.12.6 - debug: 4.3.6(supports-color@8.1.1) + debug: 4.3.7(supports-color@8.1.1) espree: 9.6.1 globals: 13.24.0 ignore: 5.3.2 @@ -77,18 +77,18 @@ packages: - supports-color dev: true - /@eslint/js@8.57.0: - resolution: {integrity: sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==} + /@eslint/js@8.57.1: + resolution: {integrity: sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /@humanwhocodes/config-array@0.11.14: - resolution: {integrity: sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==} + /@humanwhocodes/config-array@0.13.0: + resolution: {integrity: sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==} engines: {node: '>=10.10.0'} deprecated: Use @eslint/config-array instead dependencies: '@humanwhocodes/object-schema': 2.0.3 - debug: 4.3.6(supports-color@8.1.1) + debug: 4.3.7(supports-color@8.1.1) minimatch: 3.1.2 transitivePeerDependencies: - supports-color @@ -108,7 +108,7 @@ packages: resolution: {integrity: sha512-Kg+erBdnA1sczSNNGEGIA9k7hwfnN1NrKEnACfJwbGoR6T5E/yhBbpyF5q5dEIvxHTUJ4wL5azEd3m68qq8F+Q==} engines: {node: '>=16'} dependencies: - '@babel/runtime': 7.25.6 + '@babel/runtime': 7.26.0 '@types/validate-npm-package-name': 4.0.2 pkg-up: 3.1.0 validate-npm-package-name: 5.0.1 @@ -143,16 +143,16 @@ packages: resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} dev: true - /acorn-jsx@5.3.2(acorn@8.12.1): + /acorn-jsx@5.3.2(acorn@8.14.0): resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} peerDependencies: acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 dependencies: - acorn: 8.12.1 + acorn: 8.14.0 dev: true - /acorn@8.12.1: - resolution: {integrity: sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==} + /acorn@8.14.0: + resolution: {integrity: sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==} engines: {node: '>=0.4.0'} hasBin: true dev: true @@ -307,8 +307,8 @@ packages: resolution: {integrity: sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=} dev: true - /cross-spawn@7.0.3: - resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==} + /cross-spawn@7.0.5: + resolution: {integrity: sha512-ZVJrKKYunU38/76t0RMOulHOnUcbU9GbpWKAOZ0mhjr7CX6FVrH+4FrAapSOekrgFQ3f/8gwMEuIft0aKq6Hug==} engines: {node: '>= 8'} dependencies: path-key: 3.1.1 @@ -316,8 +316,8 @@ packages: which: 2.0.2 dev: true - /debug@4.3.6(supports-color@8.1.1): - resolution: {integrity: sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==} + /debug@4.3.7(supports-color@8.1.1): + resolution: {integrity: sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==} engines: {node: '>=6.0'} peerDependencies: supports-color: '*' @@ -325,7 +325,7 @@ packages: supports-color: optional: true dependencies: - ms: 2.1.2 + ms: 2.1.3 supports-color: 8.1.1 dev: true @@ -389,23 +389,24 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /eslint@8.57.0: - resolution: {integrity: sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==} + /eslint@8.57.1: + resolution: {integrity: sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options. hasBin: true dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) - '@eslint-community/regexpp': 4.11.0 + '@eslint-community/eslint-utils': 4.4.1(eslint@8.57.1) + '@eslint-community/regexpp': 4.12.1 '@eslint/eslintrc': 2.1.4 - '@eslint/js': 8.57.0 - '@humanwhocodes/config-array': 0.11.14 + '@eslint/js': 8.57.1 + '@humanwhocodes/config-array': 0.13.0 '@humanwhocodes/module-importer': 1.0.1 '@nodelib/fs.walk': 1.2.8 '@ungap/structured-clone': 1.2.0 ajv: 6.12.6 chalk: 4.1.2 - cross-spawn: 7.0.3 - debug: 4.3.6(supports-color@8.1.1) + cross-spawn: 7.0.5 + debug: 4.3.7(supports-color@8.1.1) doctrine: 3.0.0 escape-string-regexp: 4.0.0 eslint-scope: 7.2.2 @@ -440,8 +441,8 @@ packages: resolution: {integrity: sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: - acorn: 8.12.1 - acorn-jsx: 5.3.2(acorn@8.12.1) + acorn: 8.14.0 + acorn-jsx: 5.3.2(acorn@8.14.0) eslint-visitor-keys: 3.4.3 dev: true @@ -776,15 +777,15 @@ packages: brace-expansion: 2.0.1 dev: true - /mocha@10.7.3: - resolution: {integrity: sha512-uQWxAu44wwiACGqjbPYmjo7Lg8sFrS3dQe7PP2FQI+woptP4vZXSMcfMyFL/e1yFEeEpV4RtyTpZROOKmxis+A==} + /mocha@10.8.2: + resolution: {integrity: sha512-VZlYo/WE8t1tstuRmqgeyBgCbJc/lEdopaa+axcKzTBJ+UIdlAB9XnmvTCAH4pwR4ElNInaedhEBmZD8iCSVEg==} engines: {node: '>= 14.0.0'} hasBin: true dependencies: ansi-colors: 4.1.3 browser-stdout: 1.3.1 chokidar: 3.6.0 - debug: 4.3.6(supports-color@8.1.1) + debug: 4.3.7(supports-color@8.1.1) diff: 5.2.0 escape-string-regexp: 4.0.0 find-up: 5.0.0 @@ -803,10 +804,6 @@ packages: yargs-unparser: 2.0.0 dev: true - /ms@2.1.2: - resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==} - dev: true - /ms@2.1.3: resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} dev: true diff --git a/fixtures/find-cycle/init-snapshot/pnpm-lock.yaml b/fixtures/find-cycle/init-snapshot/pnpm-lock.yaml index e1635a9..08d22e1 100644 --- a/fixtures/find-cycle/init-snapshot/pnpm-lock.yaml +++ b/fixtures/find-cycle/init-snapshot/pnpm-lock.yaml @@ -25,7 +25,7 @@ devDependencies: version: 4.5.0 eslint: specifier: ^8.56.0 - version: 8.57.0 + version: 8.57.1 eslint-plugin-no-only-tests: specifier: ^3.1.0 version: 3.3.0 @@ -34,29 +34,29 @@ devDependencies: version: 0.64.0 mocha: specifier: ^10.2.0 - version: 10.7.3 + version: 10.8.2 packages: - /@babel/runtime@7.25.6: - resolution: {integrity: sha512-VBj9MYyDb9tuLq7yzqjgzt6Q+IBQLrGZfdjOekyEirZPHxXWoTSGUTMrpsfi58Up73d13NfYLv8HT9vmznjzhQ==} + /@babel/runtime@7.26.0: + resolution: {integrity: sha512-FDSOghenHTiToteC/QRlv2q3DhPZ/oOXTBoirfWNx1Cx3TMVcGWQtMMmQcSvb/JjpNeGzx8Pq/b4fKEJuWm1sw==} engines: {node: '>=6.9.0'} dependencies: regenerator-runtime: 0.14.1 dev: true - /@eslint-community/eslint-utils@4.4.0(eslint@8.57.0): - resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==} + /@eslint-community/eslint-utils@4.4.1(eslint@8.57.1): + resolution: {integrity: sha512-s3O3waFUrMV8P/XaF/+ZTp1X9XBZW1a4B97ZnjQF2KYWaFD2A8KyFBsrsfSjEmjn3RGWAIuvlneuZm3CUK3jbA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 dependencies: - eslint: 8.57.0 + eslint: 8.57.1 eslint-visitor-keys: 3.4.3 dev: true - /@eslint-community/regexpp@4.11.0: - resolution: {integrity: sha512-G/M/tIiMrTAxEWRfLfQJMmGNX28IxBg4PBz8XqQhqUHLFI6TL2htpIB1iQCj144V5ee/JaKyT9/WZ0MGZWfA7A==} + /@eslint-community/regexpp@4.12.1: + resolution: {integrity: sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==} engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} dev: true @@ -65,7 +65,7 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: ajv: 6.12.6 - debug: 4.3.6(supports-color@8.1.1) + debug: 4.3.7(supports-color@8.1.1) espree: 9.6.1 globals: 13.24.0 ignore: 5.3.2 @@ -77,18 +77,18 @@ packages: - supports-color dev: true - /@eslint/js@8.57.0: - resolution: {integrity: sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==} + /@eslint/js@8.57.1: + resolution: {integrity: sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /@humanwhocodes/config-array@0.11.14: - resolution: {integrity: sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==} + /@humanwhocodes/config-array@0.13.0: + resolution: {integrity: sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==} engines: {node: '>=10.10.0'} deprecated: Use @eslint/config-array instead dependencies: '@humanwhocodes/object-schema': 2.0.3 - debug: 4.3.6(supports-color@8.1.1) + debug: 4.3.7(supports-color@8.1.1) minimatch: 3.1.2 transitivePeerDependencies: - supports-color @@ -108,7 +108,7 @@ packages: resolution: {integrity: sha512-Kg+erBdnA1sczSNNGEGIA9k7hwfnN1NrKEnACfJwbGoR6T5E/yhBbpyF5q5dEIvxHTUJ4wL5azEd3m68qq8F+Q==} engines: {node: '>=16'} dependencies: - '@babel/runtime': 7.25.6 + '@babel/runtime': 7.26.0 '@types/validate-npm-package-name': 4.0.2 pkg-up: 3.1.0 validate-npm-package-name: 5.0.1 @@ -143,16 +143,16 @@ packages: resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} dev: true - /acorn-jsx@5.3.2(acorn@8.12.1): + /acorn-jsx@5.3.2(acorn@8.14.0): resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} peerDependencies: acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 dependencies: - acorn: 8.12.1 + acorn: 8.14.0 dev: true - /acorn@8.12.1: - resolution: {integrity: sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==} + /acorn@8.14.0: + resolution: {integrity: sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==} engines: {node: '>=0.4.0'} hasBin: true dev: true @@ -307,8 +307,8 @@ packages: resolution: {integrity: sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=} dev: true - /cross-spawn@7.0.3: - resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==} + /cross-spawn@7.0.5: + resolution: {integrity: sha512-ZVJrKKYunU38/76t0RMOulHOnUcbU9GbpWKAOZ0mhjr7CX6FVrH+4FrAapSOekrgFQ3f/8gwMEuIft0aKq6Hug==} engines: {node: '>= 8'} dependencies: path-key: 3.1.1 @@ -316,8 +316,8 @@ packages: which: 2.0.2 dev: true - /debug@4.3.6(supports-color@8.1.1): - resolution: {integrity: sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==} + /debug@4.3.7(supports-color@8.1.1): + resolution: {integrity: sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==} engines: {node: '>=6.0'} peerDependencies: supports-color: '*' @@ -325,7 +325,7 @@ packages: supports-color: optional: true dependencies: - ms: 2.1.2 + ms: 2.1.3 supports-color: 8.1.1 dev: true @@ -389,23 +389,24 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /eslint@8.57.0: - resolution: {integrity: sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==} + /eslint@8.57.1: + resolution: {integrity: sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options. hasBin: true dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) - '@eslint-community/regexpp': 4.11.0 + '@eslint-community/eslint-utils': 4.4.1(eslint@8.57.1) + '@eslint-community/regexpp': 4.12.1 '@eslint/eslintrc': 2.1.4 - '@eslint/js': 8.57.0 - '@humanwhocodes/config-array': 0.11.14 + '@eslint/js': 8.57.1 + '@humanwhocodes/config-array': 0.13.0 '@humanwhocodes/module-importer': 1.0.1 '@nodelib/fs.walk': 1.2.8 '@ungap/structured-clone': 1.2.0 ajv: 6.12.6 chalk: 4.1.2 - cross-spawn: 7.0.3 - debug: 4.3.6(supports-color@8.1.1) + cross-spawn: 7.0.5 + debug: 4.3.7(supports-color@8.1.1) doctrine: 3.0.0 escape-string-regexp: 4.0.0 eslint-scope: 7.2.2 @@ -440,8 +441,8 @@ packages: resolution: {integrity: sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: - acorn: 8.12.1 - acorn-jsx: 5.3.2(acorn@8.12.1) + acorn: 8.14.0 + acorn-jsx: 5.3.2(acorn@8.14.0) eslint-visitor-keys: 3.4.3 dev: true @@ -776,15 +777,15 @@ packages: brace-expansion: 2.0.1 dev: true - /mocha@10.7.3: - resolution: {integrity: sha512-uQWxAu44wwiACGqjbPYmjo7Lg8sFrS3dQe7PP2FQI+woptP4vZXSMcfMyFL/e1yFEeEpV4RtyTpZROOKmxis+A==} + /mocha@10.8.2: + resolution: {integrity: sha512-VZlYo/WE8t1tstuRmqgeyBgCbJc/lEdopaa+axcKzTBJ+UIdlAB9XnmvTCAH4pwR4ElNInaedhEBmZD8iCSVEg==} engines: {node: '>= 14.0.0'} hasBin: true dependencies: ansi-colors: 4.1.3 browser-stdout: 1.3.1 chokidar: 3.6.0 - debug: 4.3.6(supports-color@8.1.1) + debug: 4.3.7(supports-color@8.1.1) diff: 5.2.0 escape-string-regexp: 4.0.0 find-up: 5.0.0 @@ -803,10 +804,6 @@ packages: yargs-unparser: 2.0.0 dev: true - /ms@2.1.2: - resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==} - dev: true - /ms@2.1.3: resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} dev: true diff --git a/fixtures/log4jcore/init-snapshot/dist/index.js b/fixtures/log4jcore/init-snapshot/dist/index.js index 9d535c8..66abad4 100644 --- a/fixtures/log4jcore/init-snapshot/dist/index.js +++ b/fixtures/log4jcore/init-snapshot/dist/index.js @@ -1,45 +1,43 @@ "use strict"; -var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.LOG_LEVEL_WARN = exports.LOG_LEVEL_TRACE = exports.LOG_LEVEL_INFO = exports.LOG_LEVEL_FATAL = exports.LOG_LEVEL_ERROR = exports.LOG_LEVEL_DEBUG = void 0; exports.createDefaultLogProvider = createDefaultLogProvider; exports.createLogger = createLogger; -exports.logLevelToName = exports.defaultLogProvider = exports.defaultLogFunctionProvider = exports["default"] = void 0; +exports.logLevelToName = exports.defaultLogProvider = exports.defaultLogFunctionProvider = exports.default = void 0; exports.logger = logger; exports.resetLogLevels = resetLogLevels; exports.setLogFunctionProvider = setLogFunctionProvider; exports.setLogLevel = setLogLevel; exports.setLogProvider = setLogProvider; -var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray")); -var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); -var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); -var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty")); -var _logLevelToName; -function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } /* eslint-disable @typescript-eslint/no-explicit-any */ -var LOG_LEVEL_TRACE = 1; +const LOG_LEVEL_TRACE = 1; exports.LOG_LEVEL_TRACE = LOG_LEVEL_TRACE; -var LOG_LEVEL_DEBUG = 2; +const LOG_LEVEL_DEBUG = 2; exports.LOG_LEVEL_DEBUG = LOG_LEVEL_DEBUG; -var LOG_LEVEL_INFO = 3; +const LOG_LEVEL_INFO = 3; exports.LOG_LEVEL_INFO = LOG_LEVEL_INFO; -var LOG_LEVEL_WARN = 4; +const LOG_LEVEL_WARN = 4; exports.LOG_LEVEL_WARN = LOG_LEVEL_WARN; -var LOG_LEVEL_ERROR = 5; +const LOG_LEVEL_ERROR = 5; exports.LOG_LEVEL_ERROR = LOG_LEVEL_ERROR; -var LOG_LEVEL_FATAL = 6; +const LOG_LEVEL_FATAL = 6; exports.LOG_LEVEL_FATAL = LOG_LEVEL_FATAL; -var LOG_LEVEL_MIN = LOG_LEVEL_TRACE; -var LOG_LEVEL_MAX = LOG_LEVEL_FATAL; -var DEFAULT_LOG_LEVEL = LOG_LEVEL_INFO; -var PATH_SEPARATOR = '.'; -var logLevelToName = (_logLevelToName = {}, (0, _defineProperty2["default"])(_logLevelToName, LOG_LEVEL_TRACE, 'TRACE'), (0, _defineProperty2["default"])(_logLevelToName, LOG_LEVEL_DEBUG, 'DEBUG'), (0, _defineProperty2["default"])(_logLevelToName, LOG_LEVEL_INFO, 'INFO'), (0, _defineProperty2["default"])(_logLevelToName, LOG_LEVEL_WARN, 'WARN'), (0, _defineProperty2["default"])(_logLevelToName, LOG_LEVEL_ERROR, 'ERROR'), (0, _defineProperty2["default"])(_logLevelToName, LOG_LEVEL_FATAL, 'FATAL'), _logLevelToName); +const LOG_LEVEL_MIN = LOG_LEVEL_TRACE; +const LOG_LEVEL_MAX = LOG_LEVEL_FATAL; +const DEFAULT_LOG_LEVEL = LOG_LEVEL_INFO; +const PATH_SEPARATOR = '.'; +const logLevelToName = { + [LOG_LEVEL_TRACE]: 'TRACE', + [LOG_LEVEL_DEBUG]: 'DEBUG', + [LOG_LEVEL_INFO]: 'INFO', + [LOG_LEVEL_WARN]: 'WARN', + [LOG_LEVEL_ERROR]: 'ERROR', + [LOG_LEVEL_FATAL]: 'FATAL' +}; exports.logLevelToName = logLevelToName; function assertValidLogLevel(level) { switch (level) { @@ -51,43 +49,34 @@ function assertValidLogLevel(level) { case LOG_LEVEL_FATAL: return; default: - throw new Error("invalid log level: ".concat(level)); + throw new Error(`invalid log level: ${level}`); } } -var configuredLogLevels = {}; -var envLogLevels = {}; -var logLevelAtPath = function logLevelAtPath(path) { - return configuredLogLevels[path] || envLogLevels[path]; -}; -var envVar = function envVar(varName) { - return typeof process !== 'undefined' && process.env ? process.env[varName] : undefined; -}; // eslint-disable-line no-undef +const configuredLogLevels = {}; +const envLogLevels = {}; +const logLevelAtPath = path => configuredLogLevels[path] || envLogLevels[path]; +const envVar = varName => typeof process !== 'undefined' && process.env ? process.env[varName] : undefined; // eslint-disable-line no-undef -var calcedEnvLogLevels = false; +let calcedEnvLogLevels = false; function calcEnvLogLevels() { if (calcedEnvLogLevels) return; // walk log levels from least to most verbose, so that the most verbose setting wins if // the user sets DEBUG=foo and TRACE=foo, foo will be set to TRACE - var _loop = function _loop(_logLevel) { - var envForLevel = envVar(logLevelToName[_logLevel]); + for (let logLevel = LOG_LEVEL_MAX; logLevel >= LOG_LEVEL_MIN; --logLevel) { + const envForLevel = envVar(logLevelToName[logLevel]); if (envForLevel && typeof envForLevel === 'string') { - var targetsForLevel = envForLevel.split(',').filter(Boolean); - targetsForLevel.forEach(function (target) { - envLogLevels[target] = _logLevel; + const targetsForLevel = envForLevel.split(',').filter(Boolean); + targetsForLevel.forEach(target => { + envLogLevels[target] = logLevel; }); } - }; - for (var _logLevel = LOG_LEVEL_MAX; _logLevel >= LOG_LEVEL_MIN; --_logLevel) { - _loop(_logLevel); } calcedEnvLogLevels = true; } -var logLevelsCache = {}; +let logLevelsCache = {}; function resetLogLevels() { logLevelsCache = {}; - for (var _path in configuredLogLevels) { - delete configuredLogLevels[_path]; - } + for (const path in configuredLogLevels) delete configuredLogLevels[path]; } function setLogLevel(path, level) { assertValidLogLevel(level); @@ -99,29 +88,27 @@ function setLogLevel(path, level) { } function calcLogLevel(path) { calcEnvLogLevels(); - var levelAtExactPath = logLevelAtPath(path); + const levelAtExactPath = logLevelAtPath(path); if (levelAtExactPath != null) return levelAtExactPath; - var exactPathSplit = path.split(PATH_SEPARATOR); - for (var compareLen = exactPathSplit.length - 1; compareLen >= 0; --compareLen) { - var subPath = exactPathSplit.slice(0, compareLen).join(PATH_SEPARATOR); - var levelAtSubPath = logLevelAtPath(subPath); + const exactPathSplit = path.split(PATH_SEPARATOR); + for (let compareLen = exactPathSplit.length - 1; compareLen >= 0; --compareLen) { + const subPath = exactPathSplit.slice(0, compareLen).join(PATH_SEPARATOR); + const levelAtSubPath = logLevelAtPath(subPath); if (levelAtSubPath != null) return levelAtSubPath; } return DEFAULT_LOG_LEVEL; } function logLevel(path) { - var levelForPath = logLevelsCache[path]; + let levelForPath = logLevelsCache[path]; if (levelForPath == null) { logLevelsCache[path] = levelForPath = calcLogLevel(path); } return levelForPath; } -var hasDate = !envVar('LOG_NO_DATE'); -var defaultLogFunctionProvider = function defaultLogFunctionProvider(level) { - return level >= LOG_LEVEL_ERROR ? console.error : console.log; -}; // eslint-disable-line no-console +const hasDate = !envVar('LOG_NO_DATE'); +const defaultLogFunctionProvider = level => level >= LOG_LEVEL_ERROR ? console.error : console.log; // eslint-disable-line no-console exports.defaultLogFunctionProvider = defaultLogFunctionProvider; -var _logFunctionProvider = defaultLogFunctionProvider; +let _logFunctionProvider = defaultLogFunctionProvider; /** * Simple hook to override the logging function. For example, to always log to console.error, @@ -132,33 +119,26 @@ function setLogFunctionProvider(provider) { _logFunctionProvider = provider; } function formatDate(d) { - function part(n) { - var width = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2; + function part(n, width = 2) { return String(n).padStart(width, '0'); } - return "".concat(part(d.getFullYear(), 4), "-").concat(part(d.getMonth() + 1), "-").concat(part(d.getDate()), " ").concat(part(d.getHours()), ":").concat(part(d.getMinutes()), ":").concat(part(d.getSeconds())); + return `${part(d.getFullYear(), 4)}-${part(d.getMonth() + 1)}-${part(d.getDate())} ${part(d.getHours())}:${part(d.getMinutes())}:${part(d.getSeconds())}`; } function defaultLogFormat(loggerPath, level) { - var date = hasDate ? formatDate(new Date()) + ' ' : ''; - return "[".concat(date).concat(loggerPath, "] ").concat(logLevelToName[level]); + const date = hasDate ? formatDate(new Date()) + ' ' : ''; + return `[${date}${loggerPath}] ${logLevelToName[level]}`; } function createDefaultLogProvider(logFunc) { - return function (loggerPath, level) { - for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { - args[_key - 2] = arguments[_key]; - } - logFunc.apply(void 0, [defaultLogFormat(loggerPath, level)].concat(args)); + return (loggerPath, level, ...args) => { + logFunc(defaultLogFormat(loggerPath, level), ...args); }; } -var defaultLogProvider = function defaultLogProvider(loggerPath, level) { - var logFunc = _logFunctionProvider(level); - for (var _len2 = arguments.length, args = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { - args[_key2 - 2] = arguments[_key2]; - } - logFunc.apply(void 0, [defaultLogFormat(loggerPath, level)].concat(args)); +const defaultLogProvider = (loggerPath, level, ...args) => { + const logFunc = _logFunctionProvider(level); + logFunc(defaultLogFormat(loggerPath, level), ...args); }; exports.defaultLogProvider = defaultLogProvider; -var _logProvider = defaultLogProvider; +let _logProvider = defaultLogProvider; /** * Hook to provide a complete replacement for the log provider. @@ -167,100 +147,67 @@ var _logProvider = defaultLogProvider; function setLogProvider(provider) { _logProvider = provider; } -var loggersByPath = {}; -var LoggerImpl = /*#__PURE__*/(0, _createClass2["default"])(function LoggerImpl(_ref) { - var _this = this; - var loggerPath = _ref.loggerPath, - logProviders = _ref.logProviders; - (0, _classCallCheck2["default"])(this, LoggerImpl); - (0, _defineProperty2["default"])(this, "loggerPath", void 0); - (0, _defineProperty2["default"])(this, "_logProviders", void 0); - (0, _defineProperty2["default"])(this, "logAtLevel", function (level) { - if (level >= logLevel(_this.loggerPath)) { - for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) { - args[_key3 - 1] = arguments[_key3]; - } - var argsToLogger = args; +const loggersByPath = {}; +class LoggerImpl { + loggerPath; + _logProviders; + constructor({ + loggerPath, + logProviders + }) { + this.loggerPath = loggerPath; + this._logProviders = logProviders; + } + logAtLevel = (level, ...args) => { + if (level >= logLevel(this.loggerPath)) { + let argsToLogger = args; if (args.length === 1 && typeof args[0] === 'function') { // A single function was passed. Execute that function and log the result. // This allows debug text to only be calculated when the relevant debug level is // enabled, e.g. log.trace(() => JSON.stringify(data)) - var resolvedArgs = args[0](); + const resolvedArgs = args[0](); argsToLogger = Array.isArray(resolvedArgs) ? resolvedArgs : [resolvedArgs]; } - var _iterator = _createForOfIteratorHelper(_this._logProviders || [_logProvider]), - _step; - try { - for (_iterator.s(); !(_step = _iterator.n()).done;) { - var provider = _step.value; - provider.apply(void 0, [_this.loggerPath, level].concat((0, _toConsumableArray2["default"])(argsToLogger))); - } - } catch (err) { - _iterator.e(err); - } finally { - _iterator.f(); + for (const provider of this._logProviders || [_logProvider]) { + provider(this.loggerPath, level, ...argsToLogger); } } - }); - (0, _defineProperty2["default"])(this, "levelEnabled", function (level) { - return level >= logLevel(_this.loggerPath); - }); - (0, _defineProperty2["default"])(this, "inputLogProvider", function (loggerPath, level) { - for (var _len4 = arguments.length, args = new Array(_len4 > 2 ? _len4 - 2 : 0), _key4 = 2; _key4 < _len4; _key4++) { - args[_key4 - 2] = arguments[_key4]; - } - _this.logAtLevel.apply(_this, [level].concat(args)); - }); - (0, _defineProperty2["default"])(this, "trace", function () { - for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) { - args[_key5] = arguments[_key5]; - } - _this.logAtLevel.apply(_this, [LOG_LEVEL_TRACE].concat(args)); - }); - (0, _defineProperty2["default"])(this, "debug", function () { - for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) { - args[_key6] = arguments[_key6]; - } - _this.logAtLevel.apply(_this, [LOG_LEVEL_DEBUG].concat(args)); - }); - (0, _defineProperty2["default"])(this, "info", function () { - for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) { - args[_key7] = arguments[_key7]; - } - _this.logAtLevel.apply(_this, [LOG_LEVEL_INFO].concat(args)); - }); - (0, _defineProperty2["default"])(this, "warn", function () { - for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) { - args[_key8] = arguments[_key8]; - } - _this.logAtLevel.apply(_this, [LOG_LEVEL_WARN].concat(args)); - }); - (0, _defineProperty2["default"])(this, "error", function () { - for (var _len9 = arguments.length, args = new Array(_len9), _key9 = 0; _key9 < _len9; _key9++) { - args[_key9] = arguments[_key9]; - } - _this.logAtLevel.apply(_this, [LOG_LEVEL_ERROR].concat(args)); - }); - (0, _defineProperty2["default"])(this, "fatal", function () { - for (var _len10 = arguments.length, args = new Array(_len10), _key10 = 0; _key10 < _len10; _key10++) { - args[_key10] = arguments[_key10]; - } - _this.logAtLevel.apply(_this, [LOG_LEVEL_FATAL].concat(args)); - }); - this.loggerPath = loggerPath; - this._logProviders = logProviders; -}); + }; + levelEnabled = level => { + return level >= logLevel(this.loggerPath); + }; + inputLogProvider = (loggerPath, level, ...args) => { + this.logAtLevel(level, ...args); + }; + trace = (...args) => { + this.logAtLevel(LOG_LEVEL_TRACE, ...args); + }; + debug = (...args) => { + this.logAtLevel(LOG_LEVEL_DEBUG, ...args); + }; + info = (...args) => { + this.logAtLevel(LOG_LEVEL_INFO, ...args); + }; + warn = (...args) => { + this.logAtLevel(LOG_LEVEL_WARN, ...args); + }; + error = (...args) => { + this.logAtLevel(LOG_LEVEL_ERROR, ...args); + }; + fatal = (...args) => { + this.logAtLevel(LOG_LEVEL_FATAL, ...args); + }; +} function createLogger(options) { return new LoggerImpl(options); } -function logger() { - var loggerPath = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; - var logger = loggersByPath[loggerPath]; +function logger(loggerPath = '') { + let logger = loggersByPath[loggerPath]; if (!logger) logger = loggersByPath[loggerPath] = createLogger({ - loggerPath: loggerPath + loggerPath }); return logger; } var _default = logger; -exports["default"] = _default; +exports.default = _default; //# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/fixtures/log4jcore/init-snapshot/dist/index.js.map b/fixtures/log4jcore/init-snapshot/dist/index.js.map index 4bac593..0f07960 100644 --- a/fixtures/log4jcore/init-snapshot/dist/index.js.map +++ b/fixtures/log4jcore/init-snapshot/dist/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","names":["LOG_LEVEL_TRACE","exports","LOG_LEVEL_DEBUG","LOG_LEVEL_INFO","LOG_LEVEL_WARN","LOG_LEVEL_ERROR","LOG_LEVEL_FATAL","LOG_LEVEL_MIN","LOG_LEVEL_MAX","DEFAULT_LOG_LEVEL","PATH_SEPARATOR","logLevelToName","_logLevelToName","_defineProperty2","assertValidLogLevel","level","Error","concat","configuredLogLevels","envLogLevels","logLevelAtPath","path","envVar","varName","process","env","undefined","calcedEnvLogLevels","calcEnvLogLevels","_loop","logLevel","envForLevel","targetsForLevel","split","filter","Boolean","forEach","target","logLevelsCache","resetLogLevels","setLogLevel","calcLogLevel","levelAtExactPath","exactPathSplit","compareLen","length","subPath","slice","join","levelAtSubPath","levelForPath","hasDate","defaultLogFunctionProvider","console","error","log","_logFunctionProvider","setLogFunctionProvider","provider","formatDate","d","part","n","width","arguments","String","padStart","getFullYear","getMonth","getDate","getHours","getMinutes","getSeconds","defaultLogFormat","loggerPath","date","Date","createDefaultLogProvider","logFunc","_len","args","Array","_key","apply","defaultLogProvider","_len2","_key2","_logProvider","setLogProvider","loggersByPath","LoggerImpl","_createClass2","_ref","_this","logProviders","_classCallCheck2","_len3","_key3","argsToLogger","resolvedArgs","isArray","_iterator","_createForOfIteratorHelper","_logProviders","_step","s","done","value","_toConsumableArray2","err","e","f","_len4","_key4","logAtLevel","_len5","_key5","_len6","_key6","_len7","_key7","_len8","_key8","_len9","_key9","_len10","_key10","createLogger","options","logger","_default"],"sources":["src/index.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\n\nexport type Level = 1 | 2 | 3 | 4 | 5 | 6\n\nexport interface Logger {\n trace(...args: Array): void\n debug(...args: Array): void\n info(...args: Array): void\n warn(...args: Array): void\n error(...args: Array): void\n fatal(...args: Array): void\n logAtLevel(level: Level, ...args: Array): void\n levelEnabled(level: Level): boolean\n inputLogProvider: LogProvider\n}\n\nexport type LogProvider = (\n loggerPath: string,\n level: Level,\n ...args: Array\n) => void\n\nexport type LogFunctionProvider = (level: Level) => (...args: any[]) => any\n\nexport const LOG_LEVEL_TRACE = 1\nexport const LOG_LEVEL_DEBUG = 2\nexport const LOG_LEVEL_INFO = 3\nexport const LOG_LEVEL_WARN = 4\nexport const LOG_LEVEL_ERROR = 5\nexport const LOG_LEVEL_FATAL = 6\n\nconst LOG_LEVEL_MIN = LOG_LEVEL_TRACE\nconst LOG_LEVEL_MAX = LOG_LEVEL_FATAL\n\nconst DEFAULT_LOG_LEVEL = LOG_LEVEL_INFO\n\nconst PATH_SEPARATOR = '.'\n\nexport const logLevelToName: {\n 1: 'TRACE'\n 2: 'DEBUG'\n 3: 'INFO'\n 4: 'WARN'\n 5: 'ERROR'\n 6: 'FATAL'\n} = {\n [LOG_LEVEL_TRACE]: 'TRACE',\n [LOG_LEVEL_DEBUG]: 'DEBUG',\n [LOG_LEVEL_INFO]: 'INFO',\n [LOG_LEVEL_WARN]: 'WARN',\n [LOG_LEVEL_ERROR]: 'ERROR',\n [LOG_LEVEL_FATAL]: 'FATAL',\n}\n\nfunction assertValidLogLevel(level: Level): void {\n switch (level) {\n case LOG_LEVEL_TRACE:\n case LOG_LEVEL_DEBUG:\n case LOG_LEVEL_INFO:\n case LOG_LEVEL_WARN:\n case LOG_LEVEL_ERROR:\n case LOG_LEVEL_FATAL:\n return\n default:\n throw new Error(`invalid log level: ${level}`)\n }\n}\n\nconst configuredLogLevels: { [path: string]: Level } = {}\nconst envLogLevels: { [path: string]: Level } = {}\n\nconst logLevelAtPath = (path: string): Level | undefined =>\n configuredLogLevels[path] || envLogLevels[path]\n\nconst envVar = (varName: string): string | undefined =>\n typeof process !== 'undefined' && process.env\n ? process.env[varName]\n : undefined // eslint-disable-line no-undef\n\nlet calcedEnvLogLevels = false\nfunction calcEnvLogLevels(): void {\n if (calcedEnvLogLevels) return\n // walk log levels from least to most verbose, so that the most verbose setting wins if\n // the user sets DEBUG=foo and TRACE=foo, foo will be set to TRACE\n for (let logLevel = LOG_LEVEL_MAX; logLevel >= LOG_LEVEL_MIN; --logLevel) {\n const envForLevel = envVar((logLevelToName as any)[logLevel])\n if (envForLevel && typeof envForLevel === 'string') {\n const targetsForLevel = envForLevel.split(',').filter(Boolean)\n targetsForLevel.forEach((target: string) => {\n envLogLevels[target] = logLevel as Level\n })\n }\n }\n calcedEnvLogLevels = true\n}\n\nlet logLevelsCache: { [path: string]: Level } = {}\n\nexport function resetLogLevels(): void {\n logLevelsCache = {}\n for (const path in configuredLogLevels) delete configuredLogLevels[path]\n}\n\nexport function setLogLevel(path: string, level: Level): void {\n assertValidLogLevel(level)\n if (level !== configuredLogLevels[path]) {\n configuredLogLevels[path] = level\n // Bust the cache\n logLevelsCache = {}\n }\n}\n\nfunction calcLogLevel(path: string): Level {\n calcEnvLogLevels()\n const levelAtExactPath: Level | undefined = logLevelAtPath(path)\n if (levelAtExactPath != null) return levelAtExactPath\n const exactPathSplit = path.split(PATH_SEPARATOR)\n for (\n let compareLen = exactPathSplit.length - 1;\n compareLen >= 0;\n --compareLen\n ) {\n const subPath = exactPathSplit.slice(0, compareLen).join(PATH_SEPARATOR)\n const levelAtSubPath: Level | undefined = logLevelAtPath(subPath)\n if (levelAtSubPath != null) return levelAtSubPath\n }\n return DEFAULT_LOG_LEVEL\n}\n\nfunction logLevel(path: string): Level {\n let levelForPath: Level | undefined = logLevelsCache[path]\n if (levelForPath == null) {\n logLevelsCache[path] = levelForPath = calcLogLevel(path)\n }\n return levelForPath\n}\n\nconst hasDate = !envVar('LOG_NO_DATE')\n\nexport const defaultLogFunctionProvider: LogFunctionProvider = (level: Level) =>\n level >= LOG_LEVEL_ERROR ? console.error : console.log // eslint-disable-line no-console\n\nlet _logFunctionProvider: LogFunctionProvider = defaultLogFunctionProvider\n\n/**\n * Simple hook to override the logging function. For example, to always log to console.error,\n * call setLogFunctionProvider(() => console.error)\n * @param provider function that returns the log function based on the message's log level\n */\nexport function setLogFunctionProvider(provider: LogFunctionProvider): void {\n _logFunctionProvider = provider\n}\n\nfunction formatDate(d: Date): string {\n function part(n: number, width = 2): string {\n return String(n).padStart(width, '0')\n }\n return `${part(d.getFullYear(), 4)}-${part(d.getMonth() + 1)}-${part(\n d.getDate()\n )} ${part(d.getHours())}:${part(d.getMinutes())}:${part(d.getSeconds())}`\n}\n\nfunction defaultLogFormat(loggerPath: string, level: Level): string {\n const date = hasDate ? formatDate(new Date()) + ' ' : ''\n return `[${date}${loggerPath}] ${(logLevelToName as any)[level]}`\n}\n\nexport function createDefaultLogProvider(\n logFunc: (...args: any[]) => any\n): LogProvider {\n return (loggerPath: string, level: Level, ...args: Array): void => {\n logFunc(defaultLogFormat(loggerPath, level), ...args)\n }\n}\n\nexport const defaultLogProvider: LogProvider = (\n loggerPath: string,\n level: Level,\n ...args: Array\n) => {\n const logFunc = _logFunctionProvider(level)\n logFunc(defaultLogFormat(loggerPath, level), ...args)\n}\n\nlet _logProvider: LogProvider = defaultLogProvider\n\n/**\n * Hook to provide a complete replacement for the log provider.\n * @param provider\n */\nexport function setLogProvider(provider: LogProvider): void {\n _logProvider = provider\n}\n\nconst loggersByPath: { [loggerPath: string]: Logger } = {}\n\nclass LoggerImpl implements Logger {\n loggerPath: string\n _logProviders: LogProvider[] | undefined\n\n constructor({ loggerPath, logProviders }: CreateLoggerOptions) {\n this.loggerPath = loggerPath\n this._logProviders = logProviders\n }\n\n logAtLevel = (level: Level, ...args: Array): void => {\n if (level >= logLevel(this.loggerPath)) {\n let argsToLogger: Array = args\n if (args.length === 1 && typeof args[0] === 'function') {\n // A single function was passed. Execute that function and log the result.\n // This allows debug text to only be calculated when the relevant debug level is\n // enabled, e.g. log.trace(() => JSON.stringify(data))\n const resolvedArgs = args[0]()\n argsToLogger = Array.isArray(resolvedArgs)\n ? resolvedArgs\n : [resolvedArgs]\n }\n for (const provider of this._logProviders || [_logProvider]) {\n provider(this.loggerPath, level, ...argsToLogger)\n }\n }\n }\n levelEnabled = (level: number): boolean => {\n return level >= logLevel(this.loggerPath)\n }\n inputLogProvider: LogProvider = (\n loggerPath: string,\n level: Level,\n ...args: Array\n ): void => {\n this.logAtLevel(level, ...args)\n }\n trace = (...args: Array): void => {\n this.logAtLevel(LOG_LEVEL_TRACE, ...args)\n }\n debug = (...args: Array): void => {\n this.logAtLevel(LOG_LEVEL_DEBUG, ...args)\n }\n info = (...args: Array): void => {\n this.logAtLevel(LOG_LEVEL_INFO, ...args)\n }\n warn = (...args: Array): void => {\n this.logAtLevel(LOG_LEVEL_WARN, ...args)\n }\n error = (...args: Array): void => {\n this.logAtLevel(LOG_LEVEL_ERROR, ...args)\n }\n fatal = (...args: Array): void => {\n this.logAtLevel(LOG_LEVEL_FATAL, ...args)\n }\n}\n\nexport type CreateLoggerOptions = {\n loggerPath: string\n logProviders?: LogProvider[]\n}\n\nexport function createLogger(options: CreateLoggerOptions): Logger {\n return new LoggerImpl(options)\n}\n\nexport function logger(loggerPath = ''): Logger {\n let logger = loggersByPath[loggerPath]\n if (!logger) logger = loggersByPath[loggerPath] = createLogger({ loggerPath })\n return logger\n}\n\nexport default logger\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAwBO,IAAMA,eAAe,GAAG,CAAC;AAAAC,OAAA,CAAAD,eAAA,GAAAA,eAAA;AACzB,IAAME,eAAe,GAAG,CAAC;AAAAD,OAAA,CAAAC,eAAA,GAAAA,eAAA;AACzB,IAAMC,cAAc,GAAG,CAAC;AAAAF,OAAA,CAAAE,cAAA,GAAAA,cAAA;AACxB,IAAMC,cAAc,GAAG,CAAC;AAAAH,OAAA,CAAAG,cAAA,GAAAA,cAAA;AACxB,IAAMC,eAAe,GAAG,CAAC;AAAAJ,OAAA,CAAAI,eAAA,GAAAA,eAAA;AACzB,IAAMC,eAAe,GAAG,CAAC;AAAAL,OAAA,CAAAK,eAAA,GAAAA,eAAA;AAEhC,IAAMC,aAAa,GAAGP,eAAe;AACrC,IAAMQ,aAAa,GAAGF,eAAe;AAErC,IAAMG,iBAAiB,GAAGN,cAAc;AAExC,IAAMO,cAAc,GAAG,GAAG;AAEnB,IAAMC,cAOZ,IAAAC,eAAA,WAAAC,gBAAA,aAAAD,eAAA,EACEZ,eAAe,EAAG,OAAO,OAAAa,gBAAA,aAAAD,eAAA,EACzBV,eAAe,EAAG,OAAO,OAAAW,gBAAA,a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AGxC,aAAa,CAACf,UAAU,CAAC;EACtC,IAAI,CAACuD,MAAM,EAAEA,MAAM,GAAGxC,aAAa,CAACf,UAAU,CAAC,GAAGqD,YAAY,CAAC;IAAErD,UAAU,EAAVA;EAAW,CAAC,CAAC;EAC9E,OAAOuD,MAAM;AACf;AAAC,IAAAC,QAAA,GAEcD,MAAM;AAAAhI,OAAA,cAAAiI,QAAA"} +{"version":3,"file":"index.js","names":["LOG_LEVEL_TRACE","exports","LOG_LEVEL_DEBUG","LOG_LEVEL_INFO","LOG_LEVEL_WARN","LOG_LEVEL_ERROR","LOG_LEVEL_FATAL","LOG_LEVEL_MIN","LOG_LEVEL_MAX","DEFAULT_LOG_LEVEL","PATH_SEPARATOR","logLevelToName","assertValidLogLevel","level","Error","configuredLogLevels","envLogLevels","logLevelAtPath","path","envVar","varName","process","env","undefined","calcedEnvLogLevels","calcEnvLogLevels","logLevel","envForLevel","targetsForLevel","split","filter","Boolean","forEach","target","logLevelsCache","resetLogLevels","setLogLevel","calcLogLevel","levelAtExactPath","exactPathSplit","compareLen","length","subPath","slice","join","levelAtSubPath","levelForPath","hasDate","defaultLogFunctionProvider","console","error","log","_logFunctionProvider","setLogFunctionProvider","provider","formatDate","d","part","n","width","String","padStart","getFullYear","getMonth","getDate","getHours","getMinutes","getSeconds","defaultLogFormat","loggerPath","date","Date","createDefaultLogProvider","logFunc","args","defaultLogProvider","_logProvider","setLogProvider","loggersByPath","LoggerImpl","_logProviders","constructor","logProviders","logAtLevel","argsToLogger","resolvedArgs","Array","isArray","levelEnabled","inputLogProvider","trace","debug","info","warn","fatal","createLogger","options","logger","_default","default"],"sources":["src/index.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\n\nexport type Level = 1 | 2 | 3 | 4 | 5 | 6\n\nexport interface Logger {\n trace(...args: Array): void\n debug(...args: Array): void\n info(...args: Array): void\n warn(...args: Array): void\n error(...args: Array): void\n fatal(...args: Array): void\n logAtLevel(level: Level, ...args: Array): void\n levelEnabled(level: Level): boolean\n inputLogProvider: LogProvider\n}\n\nexport type LogProvider = (\n loggerPath: string,\n level: Level,\n ...args: Array\n) => void\n\nexport type LogFunctionProvider = (level: Level) => (...args: any[]) => any\n\nexport const LOG_LEVEL_TRACE = 1\nexport const LOG_LEVEL_DEBUG = 2\nexport const LOG_LEVEL_INFO = 3\nexport const LOG_LEVEL_WARN = 4\nexport const LOG_LEVEL_ERROR = 5\nexport const LOG_LEVEL_FATAL = 6\n\nconst LOG_LEVEL_MIN = LOG_LEVEL_TRACE\nconst LOG_LEVEL_MAX = LOG_LEVEL_FATAL\n\nconst DEFAULT_LOG_LEVEL = LOG_LEVEL_INFO\n\nconst PATH_SEPARATOR = '.'\n\nexport const logLevelToName: {\n 1: 'TRACE'\n 2: 'DEBUG'\n 3: 'INFO'\n 4: 'WARN'\n 5: 'ERROR'\n 6: 'FATAL'\n} = {\n [LOG_LEVEL_TRACE]: 'TRACE',\n [LOG_LEVEL_DEBUG]: 'DEBUG',\n [LOG_LEVEL_INFO]: 'INFO',\n [LOG_LEVEL_WARN]: 'WARN',\n [LOG_LEVEL_ERROR]: 'ERROR',\n [LOG_LEVEL_FATAL]: 'FATAL',\n}\n\nfunction assertValidLogLevel(level: Level): void {\n switch (level) {\n case LOG_LEVEL_TRACE:\n case LOG_LEVEL_DEBUG:\n case LOG_LEVEL_INFO:\n case LOG_LEVEL_WARN:\n case LOG_LEVEL_ERROR:\n case LOG_LEVEL_FATAL:\n return\n default:\n throw new Error(`invalid log level: ${level}`)\n }\n}\n\nconst configuredLogLevels: { [path: string]: Level } = {}\nconst envLogLevels: { [path: string]: Level } = {}\n\nconst logLevelAtPath = (path: string): Level | undefined =>\n configuredLogLevels[path] || envLogLevels[path]\n\nconst envVar = (varName: string): string | undefined =>\n typeof process !== 'undefined' && process.env\n ? process.env[varName]\n : undefined // eslint-disable-line no-undef\n\nlet calcedEnvLogLevels = false\nfunction calcEnvLogLevels(): void {\n if (calcedEnvLogLevels) return\n // walk log levels from least to most verbose, so that the most verbose setting wins if\n // the user sets DEBUG=foo and TRACE=foo, foo will be set to TRACE\n for (let logLevel = LOG_LEVEL_MAX; logLevel >= LOG_LEVEL_MIN; --logLevel) {\n const envForLevel = envVar((logLevelToName as any)[logLevel])\n if (envForLevel && typeof envForLevel === 'string') {\n const targetsForLevel = envForLevel.split(',').filter(Boolean)\n targetsForLevel.forEach((target: string) => {\n envLogLevels[target] = logLevel as Level\n })\n }\n }\n calcedEnvLogLevels = true\n}\n\nlet logLevelsCache: { [path: string]: Level } = {}\n\nexport function resetLogLevels(): void {\n logLevelsCache = {}\n for (const path in configuredLogLevels) delete configuredLogLevels[path]\n}\n\nexport function setLogLevel(path: string, level: Level): void {\n assertValidLogLevel(level)\n if (level !== configuredLogLevels[path]) {\n configuredLogLevels[path] = level\n // Bust the cache\n logLevelsCache = {}\n }\n}\n\nfunction calcLogLevel(path: string): Level {\n calcEnvLogLevels()\n const levelAtExactPath: Level | undefined = logLevelAtPath(path)\n if (levelAtExactPath != null) return levelAtExactPath\n const exactPathSplit = path.split(PATH_SEPARATOR)\n for (\n let compareLen = exactPathSplit.length - 1;\n compareLen >= 0;\n --compareLen\n ) {\n const subPath = exactPathSplit.slice(0, compareLen).join(PATH_SEPARATOR)\n const levelAtSubPath: Level | undefined = logLevelAtPath(subPath)\n if (levelAtSubPath != null) return levelAtSubPath\n }\n return DEFAULT_LOG_LEVEL\n}\n\nfunction logLevel(path: string): Level {\n let levelForPath: Level | undefined = logLevelsCache[path]\n if (levelForPath == null) {\n logLevelsCache[path] = levelForPath = calcLogLevel(path)\n }\n return levelForPath\n}\n\nconst hasDate = !envVar('LOG_NO_DATE')\n\nexport const defaultLogFunctionProvider: LogFunctionProvider = (level: Level) =>\n level >= LOG_LEVEL_ERROR ? console.error : console.log // eslint-disable-line no-console\n\nlet _logFunctionProvider: LogFunctionProvider = defaultLogFunctionProvider\n\n/**\n * Simple hook to override the logging function. For example, to always log to console.error,\n * call setLogFunctionProvider(() => console.error)\n * @param provider function that returns the log function based on the message's log level\n */\nexport function setLogFunctionProvider(provider: LogFunctionProvider): void {\n _logFunctionProvider = provider\n}\n\nfunction formatDate(d: Date): string {\n function part(n: number, width = 2): string {\n return String(n).padStart(width, '0')\n }\n return `${part(d.getFullYear(), 4)}-${part(d.getMonth() + 1)}-${part(\n d.getDate()\n )} ${part(d.getHours())}:${part(d.getMinutes())}:${part(d.getSeconds())}`\n}\n\nfunction defaultLogFormat(loggerPath: string, level: Level): string {\n const date = hasDate ? formatDate(new Date()) + ' ' : ''\n return `[${date}${loggerPath}] ${(logLevelToName as any)[level]}`\n}\n\nexport function createDefaultLogProvider(\n logFunc: (...args: any[]) => any\n): LogProvider {\n return (loggerPath: string, level: Level, ...args: Array): void => {\n logFunc(defaultLogFormat(loggerPath, level), ...args)\n }\n}\n\nexport const defaultLogProvider: LogProvider = (\n loggerPath: string,\n level: Level,\n ...args: Array\n) => {\n const logFunc = _logFunctionProvider(level)\n logFunc(defaultLogFormat(loggerPath, level), ...args)\n}\n\nlet _logProvider: LogProvider = defaultLogProvider\n\n/**\n * Hook to provide a complete replacement for the log provider.\n * @param provider\n */\nexport function setLogProvider(provider: LogProvider): void {\n _logProvider = provider\n}\n\nconst loggersByPath: { [loggerPath: string]: Logger } = {}\n\nclass LoggerImpl implements Logger {\n loggerPath: string\n _logProviders: LogProvider[] | undefined\n\n constructor({ loggerPath, logProviders }: CreateLoggerOptions) {\n this.loggerPath = loggerPath\n this._logProviders = logProviders\n }\n\n logAtLevel = (level: Level, ...args: Array): void => {\n if (level >= logLevel(this.loggerPath)) {\n let argsToLogger: Array = args\n if (args.length === 1 && typeof args[0] === 'function') {\n // A single function was passed. Execute that function and log the result.\n // This allows debug text to only be calculated when the relevant debug level is\n // enabled, e.g. log.trace(() => JSON.stringify(data))\n const resolvedArgs = args[0]()\n argsToLogger = Array.isArray(resolvedArgs)\n ? resolvedArgs\n : [resolvedArgs]\n }\n for (const provider of this._logProviders || [_logProvider]) {\n provider(this.loggerPath, level, ...argsToLogger)\n }\n }\n }\n levelEnabled = (level: number): boolean => {\n return level >= logLevel(this.loggerPath)\n }\n inputLogProvider: LogProvider = (\n loggerPath: string,\n level: Level,\n ...args: Array\n ): void => {\n this.logAtLevel(level, ...args)\n }\n trace = (...args: Array): void => {\n this.logAtLevel(LOG_LEVEL_TRACE, ...args)\n }\n debug = (...args: Array): void => {\n this.logAtLevel(LOG_LEVEL_DEBUG, ...args)\n }\n info = (...args: Array): void => {\n this.logAtLevel(LOG_LEVEL_INFO, ...args)\n }\n warn = (...args: Array): void => {\n this.logAtLevel(LOG_LEVEL_WARN, ...args)\n }\n error = (...args: Array): void => {\n this.logAtLevel(LOG_LEVEL_ERROR, ...args)\n }\n fatal = (...args: Array): void => {\n this.logAtLevel(LOG_LEVEL_FATAL, ...args)\n }\n}\n\nexport type CreateLoggerOptions = {\n loggerPath: string\n logProviders?: LogProvider[]\n}\n\nexport function createLogger(options: CreateLoggerOptions): Logger {\n return new LoggerImpl(options)\n}\n\nexport function logger(loggerPath = ''): Logger {\n let logger = loggersByPath[loggerPath]\n if (!logger) logger = loggersByPath[loggerPath] = createLogger({ loggerPath })\n return logger\n}\n\nexport default logger\n"],"mappings":";;;;;;;;;;;;;;AAAA;;AAwBO,MAAMA,eAAe,GAAG,CAAC;AAAAC,OAAA,CAAAD,eAAA,GAAAA,eAAA;AACzB,MAAME,eAAe,GAAG,CAAC;AAAAD,OAAA,CAAAC,eAAA,GAAAA,eAAA;AACzB,MAAMC,cAAc,GAAG,CAAC;AAAAF,OAAA,CAAAE,cAAA,GAAAA,cAAA;AACxB,MAAMC,cAAc,GAAG,CAAC;AAAAH,OAAA,CAAAG,cAAA,GAAAA,cAAA;AACxB,MAAMC,eAAe,GAAG,CAAC;AAAAJ,OAAA,CAAAI,eAAA,GAAAA,eAAA;AACzB,MAAMC,eAAe,GAAG,CAAC;AAAAL,OAAA,CAAAK,eAAA,GAAAA,eAAA;AAEhC,MAAMC,aAAa,GAAGP,eAAe;A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A,CAAC,GAAGnB,IAAgB,KAAW;IACpC,IAAI,CAACS,UAAU,CAAC/E,cAAc,EAAE,GAAGsE,IAAI,CAAC;EAC1C,CAAC;EACDxB,KAAK,GAAGA,CAAC,GAAGwB,IAAgB,KAAW;IACrC,IAAI,CAACS,UAAU,CAAC9E,eAAe,EAAE,GAAGqE,IAAI,CAAC;EAC3C,CAAC;EACDoB,KAAK,GAAGA,CAAC,GAAGpB,IAAgB,KAAW;IACrC,IAAI,CAACS,UAAU,CAAC7E,eAAe,EAAE,GAAGoE,IAAI,CAAC;EAC3C,CAAC;AACH;AAOO,SAASqB,YAAYA,CAACC,OAA4B,EAAU;EACjE,OAAO,IAAIjB,UAAU,CAACiB,OAAO,CAAC;AAChC;AAEO,SAASC,MAAMA,CAAC5B,UAAU,GAAG,EAAE,EAAU;EAC9C,IAAI4B,MAAM,GAAGnB,aAAa,CAACT,UAAU,CAAC;EACtC,IAAI,CAAC4B,MAAM,EAAEA,MAAM,GAAGnB,aAAa,CAACT,UAAU,CAAC,GAAG0B,YAAY,CAAC;IAAE1B;EAAW,CAAC,CAAC;EAC9E,OAAO4B,MAAM;AACf;AAAC,IAAAC,QAAA,GAEcD,MAAM;AAAAhG,OAAA,CAAAkG,OAAA,GAAAD,QAAA"} diff --git a/fixtures/log4jcore/init-snapshot/dist/memoryLogProvider.js b/fixtures/log4jcore/init-snapshot/dist/memoryLogProvider.js index 997c260..6c9b835 100644 --- a/fixtures/log4jcore/init-snapshot/dist/memoryLogProvider.js +++ b/fixtures/log4jcore/init-snapshot/dist/memoryLogProvider.js @@ -3,18 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true }); -exports["default"] = memoryLogProvider; +exports.default = memoryLogProvider; function memoryLogProvider() { - var messages = []; - var result = function result(loggerPath, level) { - for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { - args[_key - 2] = arguments[_key]; - } + const messages = []; + const result = (loggerPath, level, ...args) => { messages.push({ - loggerPath: loggerPath, - level: level, + loggerPath, + level, time: Date.now(), - args: args + args }); }; result.messages = messages; diff --git a/fixtures/log4jcore/init-snapshot/dist/memoryLogProvider.js.map b/fixtures/log4jcore/init-snapshot/dist/memoryLogProvider.js.map index bdb6089..af5bef1 100644 --- a/fixtures/log4jcore/init-snapshot/dist/memoryLogProvider.js.map +++ b/fixtures/log4jcore/init-snapshot/dist/memoryLogProvider.js.map @@ -1 +1 @@ -{"version":3,"file":"memoryLogProvider.js","names":["memoryLogProvider","messages","result","loggerPath","level","_len","arguments","length","args","Array","_key","push","time","Date","now","module","exports","default"],"sources":["src/memoryLogProvider.ts"],"sourcesContent":["import { Level, LogProvider } from './index'\n\nexport type MemoryLogMessage = {\n loggerPath: string\n level: Level\n time: number\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n args: any[]\n}\n\nexport interface MemoryLogProvider extends LogProvider {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (loggerPath: string, level: Level, ...args: Array): void\n messages: MemoryLogMessage[]\n}\n\nexport default function memoryLogProvider(): MemoryLogProvider {\n const messages: MemoryLogMessage[] = []\n const result: MemoryLogProvider = (\n loggerPath: string,\n level: Level,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ...args: any[]\n ): void => {\n messages.push({ loggerPath, level, time: Date.now(), args })\n }\n result.messages = messages\n return result\n}\n"],"mappings":";;;;;;AAgBe,SAASA,iBAAiBA,CAAA,EAAsB;EAC7D,IAAMC,QAA4B,GAAG,EAAE;EACvC,IAAMC,MAAyB,GAAG,SAA5BA,MAAyBA,CAC7BC,UAAkB,EAClBC,KAAY,EAGH;IAAA,SAAAC,IAAA,GAAAC,SAAA,CAAAC,MAAA,EADNC,IAAI,OAAAC,KAAA,CAAAJ,IAAA,OAAAA,IAAA,WAAAK,IAAA,MAAAA,IAAA,GAAAL,IAAA,EAAAK,IAAA;MAAJF,IAAI,CAAAE,IAAA,QAAAJ,SAAA,CAAAI,IAAA;IAAA;IAEPT,QAAQ,CAACU,IAAI,CAAC;MAAER,UAAU,EAAVA,UAAU;MAAEC,KAAK,EAALA,KAAK;MAAEQ,IAAI,EAAEC,IAAI,CAACC,GAAG,CAAC,CAAC;MAAEN,IAAI,EAAJA;IAAK,CAAC,CAAC;EAC9D,CAAC;EACDN,MAAM,CAACD,QAAQ,GAAGA,QAAQ;EAC1B,OAAOC,MAAM;AACf;AAACa,MAAA,CAAAC,OAAA,GAAAA,OAAA,CAAAC,OAAA"} +{"version":3,"file":"memoryLogProvider.js","names":["memoryLogProvider","messages","result","loggerPath","level","args","push","time","Date","now","module","exports","default"],"sources":["src/memoryLogProvider.ts"],"sourcesContent":["import { Level, LogProvider } from './index'\n\nexport type MemoryLogMessage = {\n loggerPath: string\n level: Level\n time: number\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n args: any[]\n}\n\nexport interface MemoryLogProvider extends LogProvider {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (loggerPath: string, level: Level, ...args: Array): void\n messages: MemoryLogMessage[]\n}\n\nexport default function memoryLogProvider(): MemoryLogProvider {\n const messages: MemoryLogMessage[] = []\n const result: MemoryLogProvider = (\n loggerPath: string,\n level: Level,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ...args: any[]\n ): void => {\n messages.push({ loggerPath, level, time: Date.now(), args })\n }\n result.messages = messages\n return result\n}\n"],"mappings":";;;;;;AAgBe,SAASA,iBAAiBA,CAAA,EAAsB;EAC7D,MAAMC,QAA4B,GAAG,EAAE;EACvC,MAAMC,MAAyB,GAAGA,CAChCC,UAAkB,EAClBC,KAAY,EAEZ,GAAGC,IAAW,KACL;IACTJ,QAAQ,CAACK,IAAI,CAAC;MAAEH,UAAU;MAAEC,KAAK;MAAEG,IAAI,EAAEC,IAAI,CAACC,GAAG,CAAC,CAAC;MAAEJ;IAAK,CAAC,CAAC;EAC9D,CAAC;EACDH,MAAM,CAACD,QAAQ,GAAGA,QAAQ;EAC1B,OAAOC,MAAM;AACf;AAACQ,MAAA,CAAAC,OAAA,GAAAA,OAAA,CAAAC,OAAA"} diff --git a/fixtures/log4jcore/init-snapshot/dist/pnpm-lock.yaml b/fixtures/log4jcore/init-snapshot/dist/pnpm-lock.yaml index 3441f80..f258902 100644 --- a/fixtures/log4jcore/init-snapshot/dist/pnpm-lock.yaml +++ b/fixtures/log4jcore/init-snapshot/dist/pnpm-lock.yaml @@ -7,18 +7,18 @@ settings: dependencies: '@babel/runtime': specifier: ^7.18.6 - version: 7.25.6 + version: 7.26.0 devDependencies: '@babel/plugin-syntax-flow': specifier: ^7.14.5 - version: 7.24.7(@babel/core@7.7.4) + version: 7.26.0(@babel/core@7.7.4) '@babel/plugin-transform-react-jsx': specifier: ^7.14.9 - version: 7.25.2(@babel/core@7.7.4) + version: 7.25.9(@babel/core@7.7.4) '@babel/register': specifier: ^7.22.5 - version: 7.24.6(@babel/core@7.7.4) + version: 7.25.9(@babel/core@7.7.4) '@jcoreio/eslint-plugin-implicit-dependencies': specifier: ^1.1.1 version: 1.1.1 @@ -45,7 +45,7 @@ devDependencies: version: link:../packages/typescript '@types/chai': specifier: ^4.3.5 - version: 4.3.19 + version: 4.3.20 '@types/fs-extra': specifier: ^8.0.1 version: 8.0.1 @@ -57,7 +57,10 @@ devDependencies: version: 4.14.182 '@types/mocha': specifier: ^10.0.1 - version: 10.0.7 + version: 10.0.9 + '@types/node': + specifier: ^20 + version: 20.0.0 '@types/sinon': specifier: ^10.0.2 version: 10.0.2 @@ -66,10 +69,10 @@ devDependencies: version: 3.1.1 '@typescript-eslint/eslint-plugin': specifier: ^7.6.0 - version: 7.18.0(@typescript-eslint/parser@7.18.0)(eslint@8.57.0)(typescript@5.5.4) + version: 7.18.0(@typescript-eslint/parser@7.18.0)(eslint@8.57.1)(typescript@5.4.2) '@typescript-eslint/parser': specifier: ^7.6.0 - version: 7.18.0(eslint@8.57.0)(typescript@5.5.4) + version: 7.18.0(eslint@8.57.1)(typescript@5.4.2) chai: specifier: ^4.3.7 version: 4.5.0 @@ -87,13 +90,13 @@ devDependencies: version: 4.0.0 eslint: specifier: ^8.56.0 - version: 8.57.0 + version: 8.57.1 eslint-config-prettier: specifier: ^6.5.0 - version: 6.7.0(eslint@8.57.0) + version: 6.7.0(eslint@8.57.1) eslint-plugin-flowtype: specifier: ^8.0.3 - version: 8.0.3(@babel/plugin-syntax-flow@7.24.7)(@babel/plugin-transform-react-jsx@7.25.2)(eslint@8.57.0) + version: 8.0.3(@babel/plugin-syntax-flow@7.26.0)(@babel/plugin-transform-react-jsx@7.25.9)(eslint@8.57.1) eslint-plugin-no-only-tests: specifier: ^3.1.0 version: 3.3.0 @@ -111,7 +114,7 @@ devDependencies: version: 4.17.21 mocha: specifier: ^10.2.0 - version: 10.7.3 + version: 10.8.2 opn: specifier: ^6.0.0 version: 6.0.0 @@ -138,34 +141,35 @@ devDependencies: version: 3.1.0 ts-node: specifier: ^8.6.2 - version: 8.6.2(typescript@5.5.4) + version: 8.6.2(typescript@5.4.2) typescript: - specifier: ^5.1.0 - version: 5.5.4 + specifier: '5.4' + version: 5.4.2 packages: - /@babel/code-frame@7.24.7: - resolution: {integrity: sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==} + /@babel/code-frame@7.26.2: + resolution: {integrity: sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ==} engines: {node: '>=6.9.0'} dependencies: - '@babel/highlight': 7.24.7 - picocolors: 1.0.1 + '@babel/helper-validator-identifier': 7.25.9 + js-tokens: 4.0.0 + picocolors: 1.1.1 dev: true /@babel/core@7.7.4: resolution: {integrity: sha512-+bYbx56j4nYBmpsWtnPUsKW3NdnYxbqyfrP2w9wILBuHzdfIKz9prieZK0DFPyIzkjYVUe4QkusGL07r5pXznQ==} engines: {node: '>=6.9.0'} dependencies: - '@babel/code-frame': 7.24.7 - '@babel/generator': 7.25.6 + '@babel/code-frame': 7.26.2 + '@babel/generator': 7.26.2 '@babel/helpers': 7.7.4 - '@babel/parser': 7.25.6 - '@babel/template': 7.25.0 - '@babel/traverse': 7.25.6 - '@babel/types': 7.25.6 + '@babel/parser': 7.26.2 + '@babel/template': 7.25.9 + '@babel/traverse': 7.25.9 + '@babel/types': 7.26.0 convert-source-map: 1.7.0 - debug: 4.3.6(supports-color@8.1.1) + debug: 4.3.7(supports-color@8.1.1) json5: 2.1.1 lodash: 4.17.21 resolve: 1.13.1 @@ -175,114 +179,105 @@ packages: - supports-color dev: true - /@babel/generator@7.25.6: - resolution: {integrity: sha512-VPC82gr1seXOpkjAAKoLhP50vx4vGNlF4msF64dSFq1P8RfB+QAuJWGHPXXPc8QyfVWwwB/TNNU4+ayZmHNbZw==} + /@babel/generator@7.26.2: + resolution: {integrity: sha512-zevQbhbau95nkoxSq3f/DC/SC+EEOUZd3DYqfSkMhY2/wfSeaHV1Ew4vk8e+x8lja31IbyuUa2uQ3JONqKbysw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.25.6 + '@babel/parser': 7.26.2 + '@babel/types': 7.26.0 '@jridgewell/gen-mapping': 0.3.5 '@jridgewell/trace-mapping': 0.3.25 - jsesc: 2.5.2 + jsesc: 3.0.2 dev: true - /@babel/helper-annotate-as-pure@7.24.7: - resolution: {integrity: sha512-BaDeOonYvhdKw+JoMVkAixAAJzG2jVPIwWoKBPdYuY9b452e2rPuI9QPYh3KpofZ3pW2akOmwZLOiOsHMiqRAg==} + /@babel/helper-annotate-as-pure@7.25.9: + resolution: {integrity: sha512-gv7320KBUFJz1RnylIg5WWYPRXKZ884AGkYpgpWW02TH66Dl+HaC1t1CKd0z3R4b6hdYEcmrNZHUmfCP+1u3/g==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 dev: true - /@babel/helper-module-imports@7.24.7: - resolution: {integrity: sha512-8AyH3C+74cgCVVXow/myrynrAGv+nTVg5vKu2nZph9x7RcRwzmh0VFallJuFTZ9mx6u4eSdXZfcOzSqTUm0HCA==} + /@babel/helper-module-imports@7.25.9: + resolution: {integrity: sha512-tnUA4RsrmflIM6W6RFTLFSXITtl0wKjgpnLgXyowocVPrbYrLUXSBXDgTs8BlbmIzIdlBySRQjINYs2BAkiLtw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/traverse': 7.25.6 - '@babel/types': 7.25.6 + '@babel/traverse': 7.25.9 + '@babel/types': 7.26.0 transitivePeerDependencies: - supports-color dev: true - /@babel/helper-plugin-utils@7.24.8: - resolution: {integrity: sha512-FFWx5142D8h2Mgr/iPVGH5G7w6jDn4jUSpZTyDnQO0Yn7Ks2Kuz6Pci8H6MPCoUJegd/UZQ3tAvfLCxQSnWWwg==} + /@babel/helper-plugin-utils@7.25.9: + resolution: {integrity: sha512-kSMlyUVdWe25rEsRGviIgOWnoT/nfABVWlqt9N19/dIPWViAOW2s9wznP5tURbs/IDuNk4gPy3YdYRgH3uxhBw==} engines: {node: '>=6.9.0'} dev: true - /@babel/helper-string-parser@7.24.8: - resolution: {integrity: sha512-pO9KhhRcuUyGnJWwyEgnRJTSIZHiT+vMD0kPeD+so0l7mxkMT19g3pjY9GTnHySck/hDzq+dtW/4VgnMkippsQ==} + /@babel/helper-string-parser@7.25.9: + resolution: {integrity: sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==} engines: {node: '>=6.9.0'} dev: true - /@babel/helper-validator-identifier@7.24.7: - resolution: {integrity: sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==} + /@babel/helper-validator-identifier@7.25.9: + resolution: {integrity: sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==} engines: {node: '>=6.9.0'} dev: true /@babel/helpers@7.7.4: resolution: {integrity: sha512-ak5NGZGJ6LV85Q1Zc9gn2n+ayXOizryhjSUBTdu5ih1tlVCJeuQENzc4ItyCVhINVXvIT/ZQ4mheGIsfBkpskg==} dependencies: - '@babel/template': 7.25.0 - '@babel/traverse': 7.25.6 - '@babel/types': 7.25.6 + '@babel/template': 7.25.9 + '@babel/traverse': 7.25.9 + '@babel/types': 7.26.0 transitivePeerDependencies: - supports-color dev: true - /@babel/highlight@7.24.7: - resolution: {integrity: sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/helper-validator-identifier': 7.24.7 - chalk: 2.4.2 - js-tokens: 4.0.0 - picocolors: 1.0.1 - dev: true - - /@babel/parser@7.25.6: - resolution: {integrity: sha512-trGdfBdbD0l1ZPmcJ83eNxB9rbEax4ALFTF7fN386TMYbeCQbyme5cOEXQhbGXKebwGaB/J52w1mrklMcbgy6Q==} + /@babel/parser@7.26.2: + resolution: {integrity: sha512-DWMCZH9WA4Maitz2q21SRKHo9QXZxkDsbNZoVD62gusNtNBBqDg9i7uOhASfTfIGNzW+O+r7+jAlM8dwphcJKQ==} engines: {node: '>=6.0.0'} hasBin: true dependencies: - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 dev: true - /@babel/plugin-syntax-flow@7.24.7(@babel/core@7.7.4): - resolution: {integrity: sha512-9G8GYT/dxn/D1IIKOUBmGX0mnmj46mGH9NnZyJLwtCpgh5f7D2VbuKodb+2s9m1Yavh1s7ASQN8lf0eqrb1LTw==} + /@babel/plugin-syntax-flow@7.26.0(@babel/core@7.7.4): + resolution: {integrity: sha512-B+O2DnPc0iG+YXFqOxv2WNuNU97ToWjOomUQ78DouOENWUaM5sVrmet9mcomUGQFwpJd//gvUagXBSdzO1fRKg==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.7.4 - '@babel/helper-plugin-utils': 7.24.8 + '@babel/helper-plugin-utils': 7.25.9 dev: true - /@babel/plugin-syntax-jsx@7.24.7(@babel/core@7.7.4): - resolution: {integrity: sha512-6ddciUPe/mpMnOKv/U+RSd2vvVy+Yw/JfBB0ZHYjEZt9NLHmCUylNYlsbqCCS1Bffjlb0fCwC9Vqz+sBz6PsiQ==} + /@babel/plugin-syntax-jsx@7.25.9(@babel/core@7.7.4): + resolution: {integrity: sha512-ld6oezHQMZsZfp6pWtbjaNDF2tiiCYYDqQszHt5VV437lewP9aSi2Of99CK0D0XB21k7FLgnLcmQKyKzynfeAA==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.7.4 - '@babel/helper-plugin-utils': 7.24.8 + '@babel/helper-plugin-utils': 7.25.9 dev: true - /@babel/plugin-transform-react-jsx@7.25.2(@babel/core@7.7.4): - resolution: {integrity: sha512-KQsqEAVBpU82NM/B/N9j9WOdphom1SZH3R+2V7INrQUH+V9EBFwZsEJl8eBIVeQE62FxJCc70jzEZwqU7RcVqA==} + /@babel/plugin-transform-react-jsx@7.25.9(@babel/core@7.7.4): + resolution: {integrity: sha512-s5XwpQYCqGerXl+Pu6VDL3x0j2d82eiV77UJ8a2mDHAW7j9SWRqQ2y1fNo1Z74CdcYipl5Z41zvjj4Nfzq36rw==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.7.4 - '@babel/helper-annotate-as-pure': 7.24.7 - '@babel/helper-module-imports': 7.24.7 - '@babel/helper-plugin-utils': 7.24.8 - '@babel/plugin-syntax-jsx': 7.24.7(@babel/core@7.7.4) - '@babel/types': 7.25.6 + '@babel/helper-annotate-as-pure': 7.25.9 + '@babel/helper-module-imports': 7.25.9 + '@babel/helper-plugin-utils': 7.25.9 + '@babel/plugin-syntax-jsx': 7.25.9(@babel/core@7.7.4) + '@babel/types': 7.26.0 transitivePeerDependencies: - supports-color dev: true - /@babel/register@7.24.6(@babel/core@7.7.4): - resolution: {integrity: sha512-WSuFCc2wCqMeXkz/i3yfAAsxwWflEgbVkZzivgAmXl/MxrXeoYFZOOPllbC8R8WTF7u61wSRQtDVZ1879cdu6w==} + /@babel/register@7.25.9(@babel/core@7.7.4): + resolution: {integrity: sha512-8D43jXtGsYmEeDvm4MWHYUpWf8iiXgWYx3fW7E7Wb7Oe6FWqJPl5K6TuFW0dOwNZzEE5rjlaSJYH9JjrUKJszA==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 @@ -295,57 +290,56 @@ packages: source-map-support: 0.5.16 dev: true - /@babel/runtime@7.25.6: - resolution: {integrity: sha512-VBj9MYyDb9tuLq7yzqjgzt6Q+IBQLrGZfdjOekyEirZPHxXWoTSGUTMrpsfi58Up73d13NfYLv8HT9vmznjzhQ==} + /@babel/runtime@7.26.0: + resolution: {integrity: sha512-FDSOghenHTiToteC/QRlv2q3DhPZ/oOXTBoirfWNx1Cx3TMVcGWQtMMmQcSvb/JjpNeGzx8Pq/b4fKEJuWm1sw==} engines: {node: '>=6.9.0'} dependencies: regenerator-runtime: 0.14.1 - /@babel/template@7.25.0: - resolution: {integrity: sha512-aOOgh1/5XzKvg1jvVz7AVrx2piJ2XBi227DHmbY6y+bM9H2FlN+IfecYu4Xl0cNiiVejlsCri89LUsbj8vJD9Q==} + /@babel/template@7.25.9: + resolution: {integrity: sha512-9DGttpmPvIxBb/2uwpVo3dqJ+O6RooAFOS+lB+xDqoE2PVCE8nfoHMdZLpfCQRLwvohzXISPZcgxt80xLfsuwg==} engines: {node: '>=6.9.0'} dependencies: - '@babel/code-frame': 7.24.7 - '@babel/parser': 7.25.6 - '@babel/types': 7.25.6 + '@babel/code-frame': 7.26.2 + '@babel/parser': 7.26.2 + '@babel/types': 7.26.0 dev: true - /@babel/traverse@7.25.6: - resolution: {integrity: sha512-9Vrcx5ZW6UwK5tvqsj0nGpp/XzqthkT0dqIc9g1AdtygFToNtTF67XzYS//dm+SAK9cp3B9R4ZO/46p63SCjlQ==} + /@babel/traverse@7.25.9: + resolution: {integrity: sha512-ZCuvfwOwlz/bawvAuvcj8rrithP2/N55Tzz342AkTvq4qaWbGfmCk/tKhNaV2cthijKrPAA8SRJV5WWe7IBMJw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/code-frame': 7.24.7 - '@babel/generator': 7.25.6 - '@babel/parser': 7.25.6 - '@babel/template': 7.25.0 - '@babel/types': 7.25.6 + '@babel/code-frame': 7.26.2 + '@babel/generator': 7.26.2 + '@babel/parser': 7.26.2 + '@babel/template': 7.25.9 + '@babel/types': 7.26.0 debug: 4.3.1 globals: 11.12.0 transitivePeerDependencies: - supports-color dev: true - /@babel/types@7.25.6: - resolution: {integrity: sha512-/l42B1qxpG6RdfYf343Uw1vmDjeNhneUXtzhojE7pDgfpEypmRhI6j1kr17XCVv4Cgl9HdAiQY2x0GwKm7rWCw==} + /@babel/types@7.26.0: + resolution: {integrity: sha512-Z/yiTPj+lDVnF7lWeKCIJzaIkI0vYO87dMpZ4bg4TDrFe4XXLFWL1TbXU27gBP3QccxV9mZICCrnjnYlJjXHOA==} engines: {node: '>=6.9.0'} dependencies: - '@babel/helper-string-parser': 7.24.8 - '@babel/helper-validator-identifier': 7.24.7 - to-fast-properties: 2.0.0 + '@babel/helper-string-parser': 7.25.9 + '@babel/helper-validator-identifier': 7.25.9 dev: true - /@eslint-community/eslint-utils@4.4.0(eslint@8.57.0): - resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==} + /@eslint-community/eslint-utils@4.4.1(eslint@8.57.1): + resolution: {integrity: sha512-s3O3waFUrMV8P/XaF/+ZTp1X9XBZW1a4B97ZnjQF2KYWaFD2A8KyFBsrsfSjEmjn3RGWAIuvlneuZm3CUK3jbA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 dependencies: - eslint: 8.57.0 + eslint: 8.57.1 eslint-visitor-keys: 3.4.3 dev: true - /@eslint-community/regexpp@4.11.0: - resolution: {integrity: sha512-G/M/tIiMrTAxEWRfLfQJMmGNX28IxBg4PBz8XqQhqUHLFI6TL2htpIB1iQCj144V5ee/JaKyT9/WZ0MGZWfA7A==} + /@eslint-community/regexpp@4.12.1: + resolution: {integrity: sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==} engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} dev: true @@ -354,7 +348,7 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: ajv: 6.12.6 - debug: 4.3.6(supports-color@8.1.1) + debug: 4.3.7(supports-color@8.1.1) espree: 9.6.1 globals: 13.24.0 ignore: 5.3.2 @@ -366,18 +360,18 @@ packages: - supports-color dev: true - /@eslint/js@8.57.0: - resolution: {integrity: sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==} + /@eslint/js@8.57.1: + resolution: {integrity: sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /@humanwhocodes/config-array@0.11.14: - resolution: {integrity: sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==} + /@humanwhocodes/config-array@0.13.0: + resolution: {integrity: sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==} engines: {node: '>=10.10.0'} deprecated: Use @eslint/config-array instead dependencies: '@humanwhocodes/object-schema': 2.0.3 - debug: 4.3.6(supports-color@8.1.1) + debug: 4.3.7(supports-color@8.1.1) minimatch: 3.1.2 transitivePeerDependencies: - supports-color @@ -397,7 +391,7 @@ packages: resolution: {integrity: sha512-Kg+erBdnA1sczSNNGEGIA9k7hwfnN1NrKEnACfJwbGoR6T5E/yhBbpyF5q5dEIvxHTUJ4wL5azEd3m68qq8F+Q==} engines: {node: '>=16'} dependencies: - '@babel/runtime': 7.25.6 + '@babel/runtime': 7.26.0 '@types/validate-npm-package-name': 4.0.2 pkg-up: 3.1.0 validate-npm-package-name: 5.0.1 @@ -488,21 +482,21 @@ packages: resolution: {integrity: sha512-+iTbntw2IZPb/anVDbypzfQa+ay64MW0Zo8aJ8gZPWMMK6/OubMVb6lUPMagqjOPnmtauXnFCACVl3O7ogjeqQ==} dev: true - /@types/chai@4.3.19: - resolution: {integrity: sha512-2hHHvQBVE2FiSK4eN0Br6snX9MtolHaTo/batnLjlGRhoQzlCL61iVpxoqO7SfFyOw+P/pwv+0zNHzKoGWz9Cw==} + /@types/chai@4.3.20: + resolution: {integrity: sha512-/pC9HAB5I/xMlc5FP77qjCnI16ChlJfW0tGa0IUcFn38VJrTV6DeZ60NU5KZBtaOZqjdpwTWohz5HU1RrhiYxQ==} dev: true /@types/fs-extra@8.0.1: resolution: {integrity: sha512-J00cVDALmi/hJOYsunyT52Hva5TnJeKP5yd1r+mH/ZU0mbYZflR0Z5kw5kITtKTRYMhm1JMClOFYdHnQszEvqw==} dependencies: - '@types/node': 12.12.14 + '@types/node': 20.0.0 dev: true /@types/glob@7.2.0: resolution: {integrity: sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==} dependencies: '@types/minimatch': 3.0.3 - '@types/node': 12.12.14 + '@types/node': 20.0.0 dev: true /@types/lodash@4.14.182: @@ -513,16 +507,16 @@ packages: resolution: {integrity: sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA==} dev: true - /@types/mocha@10.0.7: - resolution: {integrity: sha512-GN8yJ1mNTcFcah/wKEFIJckJx9iJLoMSzWcfRRuxz/Jk+U6KQNnml+etbtxFK8lPjzOw3zp4Ha/kjSst9fsHYw==} + /@types/mocha@10.0.9: + resolution: {integrity: sha512-sicdRoWtYevwxjOHNMPTl3vSfJM6oyW8o1wXeI7uww6b6xHg8eBznQDNSGBCDJmsE8UMxP05JgZRtsKbTqt//Q==} dev: true /@types/node@10.17.6: resolution: {integrity: sha512-0a2X6cgN3RdPBL2MIlR6Lt0KlM7fOFsutuXcdglcOq6WvLnYXgPQSh0Mx6tO1KCAE8MxbHSOSTWDoUxRq+l3DA==} dev: true - /@types/node@12.12.14: - resolution: {integrity: sha512-u/SJDyXwuihpwjXy7hOOghagLEV1KdAST6syfnOk6QZAMzZuWZqXy5aYYZbh8Jdpd4escVFP0MvftHNDb9pruA==} + /@types/node@20.0.0: + resolution: {integrity: sha512-cD2uPTDnQQCVpmRefonO98/PPijuOnnEy5oytWJFPY1N9aJCz2wJ5kSGWO+zJoed2cY2JxQh6yBuUq4vIn61hw==} dev: true /@types/sinon@10.0.2: @@ -534,14 +528,14 @@ packages: /@types/touch@3.1.1: resolution: {integrity: sha512-6qjr7Erk0b9FkZSu17wUJaWhmzUgGfQuec7eIwl9cP7V/YO/k9IcMnHSwAjxAeadC5guq9rwHcoij7PT1RkO1w==} dependencies: - '@types/node': 12.12.14 + '@types/node': 20.0.0 dev: true /@types/validate-npm-package-name@4.0.2: resolution: {integrity: sha512-lrpDziQipxCEeK5kWxvljWYhUvOiB2A9izZd9B2AFarYAkqZshb4lPbRs7zKEic6eGtH8V/2qJW+dPp9OtF6bw==} dev: true - /@typescript-eslint/eslint-plugin@7.18.0(@typescript-eslint/parser@7.18.0)(eslint@8.57.0)(typescript@5.5.4): + /@typescript-eslint/eslint-plugin@7.18.0(@typescript-eslint/parser@7.18.0)(eslint@8.57.1)(typescript@5.4.2): resolution: {integrity: sha512-94EQTWZ40mzBc42ATNIBimBEDltSJ9RQHCC8vc/PDbxi4k8dVwUAv4o98dk50M1zB+JGFxp43FP7f8+FP8R6Sw==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: @@ -552,23 +546,23 @@ packages: typescript: optional: true dependencies: - '@eslint-community/regexpp': 4.11.0 - '@typescript-eslint/parser': 7.18.0(eslint@8.57.0)(typescript@5.5.4) + '@eslint-community/regexpp': 4.12.1 + '@typescript-eslint/parser': 7.18.0(eslint@8.57.1)(typescript@5.4.2) '@typescript-eslint/scope-manager': 7.18.0 - '@typescript-eslint/type-utils': 7.18.0(eslint@8.57.0)(typescript@5.5.4) - '@typescript-eslint/utils': 7.18.0(eslint@8.57.0)(typescript@5.5.4) + '@typescript-eslint/type-utils': 7.18.0(eslint@8.57.1)(typescript@5.4.2) + '@typescript-eslint/utils': 7.18.0(eslint@8.57.1)(typescript@5.4.2) '@typescript-eslint/visitor-keys': 7.18.0 - eslint: 8.57.0 + eslint: 8.57.1 graphemer: 1.4.0 ignore: 5.3.2 natural-compare: 1.4.0 - ts-api-utils: 1.3.0(typescript@5.5.4) - typescript: 5.5.4 + ts-api-utils: 1.3.0(typescript@5.4.2) + typescript: 5.4.2 transitivePeerDependencies: - supports-color dev: true - /@typescript-eslint/parser@7.18.0(eslint@8.57.0)(typescript@5.5.4): + /@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.4.2): resolution: {integrity: sha512-4Z+L8I2OqhZV8qA132M4wNL30ypZGYOQVBfMgxDH/K5UX0PNqTu1c6za9ST5r9+tavvHiTWmBnKzpCJ/GlVFtg==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: @@ -580,11 +574,11 @@ packages: dependencies: '@typescript-eslint/scope-manager': 7.18.0 '@typescript-eslint/types': 7.18.0 - '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.5.4) + '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.4.2) '@typescript-eslint/visitor-keys': 7.18.0 - debug: 4.3.6(supports-color@8.1.1) - eslint: 8.57.0 - typescript: 5.5.4 + debug: 4.3.7(supports-color@8.1.1) + eslint: 8.57.1 + typescript: 5.4.2 transitivePeerDependencies: - supports-color dev: true @@ -597,7 +591,7 @@ packages: '@typescript-eslint/visitor-keys': 7.18.0 dev: true - /@typescript-eslint/type-utils@7.18.0(eslint@8.57.0)(typescript@5.5.4): + /@typescript-eslint/type-utils@7.18.0(eslint@8.57.1)(typescript@5.4.2): resolution: {integrity: sha512-XL0FJXuCLaDuX2sYqZUUSOJ2sG5/i1AAze+axqmLnSkNEVMVYLF+cbwlB2w8D1tinFuSikHmFta+P+HOofrLeA==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: @@ -607,12 +601,12 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.5.4) - '@typescript-eslint/utils': 7.18.0(eslint@8.57.0)(typescript@5.5.4) - debug: 4.3.6(supports-color@8.1.1) - eslint: 8.57.0 - ts-api-utils: 1.3.0(typescript@5.5.4) - typescript: 5.5.4 + '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.4.2) + '@typescript-eslint/utils': 7.18.0(eslint@8.57.1)(typescript@5.4.2) + debug: 4.3.7(supports-color@8.1.1) + eslint: 8.57.1 + ts-api-utils: 1.3.0(typescript@5.4.2) + typescript: 5.4.2 transitivePeerDependencies: - supports-color dev: true @@ -622,7 +616,7 @@ packages: engines: {node: ^18.18.0 || >=20.0.0} dev: true - /@typescript-eslint/typescript-estree@7.18.0(typescript@5.5.4): + /@typescript-eslint/typescript-estree@7.18.0(typescript@5.4.2): resolution: {integrity: sha512-aP1v/BSPnnyhMHts8cf1qQ6Q1IFwwRvAQGRvBFkWlo3/lH29OXA3Pts+c10nxRxIBrDnoMqzhgdwVe5f2D6OzA==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: @@ -633,28 +627,28 @@ packages: dependencies: '@typescript-eslint/types': 7.18.0 '@typescript-eslint/visitor-keys': 7.18.0 - debug: 4.3.6(supports-color@8.1.1) + debug: 4.3.7(supports-color@8.1.1) globby: 11.1.0 is-glob: 4.0.3 minimatch: 9.0.5 semver: 7.6.3 - ts-api-utils: 1.3.0(typescript@5.5.4) - typescript: 5.5.4 + ts-api-utils: 1.3.0(typescript@5.4.2) + typescript: 5.4.2 transitivePeerDependencies: - supports-color dev: true - /@typescript-eslint/utils@7.18.0(eslint@8.57.0)(typescript@5.5.4): + /@typescript-eslint/utils@7.18.0(eslint@8.57.1)(typescript@5.4.2): resolution: {integrity: sha512-kK0/rNa2j74XuHVcoCZxdFBMF+aq/vH83CXAOHieC+2Gis4mF8jJXT5eAfyD3K0sAxtPuwxaIOIOvhwzVDt/kw==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: eslint: ^8.56.0 dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) + '@eslint-community/eslint-utils': 4.4.1(eslint@8.57.1) '@typescript-eslint/scope-manager': 7.18.0 '@typescript-eslint/types': 7.18.0 - '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.5.4) - eslint: 8.57.0 + '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.4.2) + eslint: 8.57.1 transitivePeerDependencies: - supports-color - typescript @@ -676,16 +670,16 @@ packages: resolution: {integrity: sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==} dev: true - /acorn-jsx@5.3.2(acorn@8.12.1): + /acorn-jsx@5.3.2(acorn@8.14.0): resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} peerDependencies: acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 dependencies: - acorn: 8.12.1 + acorn: 8.14.0 dev: true - /acorn@8.12.1: - resolution: {integrity: sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==} + /acorn@8.14.0: + resolution: {integrity: sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==} engines: {node: '>=0.4.0'} hasBin: true dev: true @@ -999,8 +993,8 @@ packages: which: 1.3.1 dev: true - /cross-spawn@7.0.3: - resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==} + /cross-spawn@7.0.5: + resolution: {integrity: sha512-ZVJrKKYunU38/76t0RMOulHOnUcbU9GbpWKAOZ0mhjr7CX6FVrH+4FrAapSOekrgFQ3f/8gwMEuIft0aKq6Hug==} engines: {node: '>= 8'} dependencies: path-key: 3.1.1 @@ -1020,8 +1014,8 @@ packages: ms: 2.1.2 dev: true - /debug@4.3.6(supports-color@8.1.1): - resolution: {integrity: sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==} + /debug@4.3.7(supports-color@8.1.1): + resolution: {integrity: sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==} engines: {node: '>=6.0'} peerDependencies: supports-color: '*' @@ -1029,7 +1023,7 @@ packages: supports-color: optional: true dependencies: - ms: 2.1.2 + ms: 2.1.3 supports-color: 8.1.1 dev: true @@ -1127,17 +1121,17 @@ packages: engines: {node: '>=10'} dev: true - /eslint-config-prettier@6.7.0(eslint@8.57.0): + /eslint-config-prettier@6.7.0(eslint@8.57.1): resolution: {integrity: sha512-FamQVKM3jjUVwhG4hEMnbtsq7xOIDm+SY5iBPfR8gKsJoAB2IQnNF+bk1+8Fy44Nq7PPJaLvkRxILYdJWoguKQ==} hasBin: true peerDependencies: eslint: '>=3.14.1' dependencies: - eslint: 8.57.0 + eslint: 8.57.1 get-stdin: 6.0.0 dev: true - /eslint-plugin-flowtype@8.0.3(@babel/plugin-syntax-flow@7.24.7)(@babel/plugin-transform-react-jsx@7.25.2)(eslint@8.57.0): + /eslint-plugin-flowtype@8.0.3(@babel/plugin-syntax-flow@7.26.0)(@babel/plugin-transform-react-jsx@7.25.9)(eslint@8.57.1): resolution: {integrity: sha512-dX8l6qUL6O+fYPtpNRideCFSpmWOUVx5QcaGLVqe/vlDiBSe4vYljDWDETwnyFzpl7By/WVIu6rcrniCgH9BqQ==} engines: {node: '>=12.0.0'} peerDependencies: @@ -1145,9 +1139,9 @@ packages: '@babel/plugin-transform-react-jsx': ^7.14.9 eslint: ^8.1.0 dependencies: - '@babel/plugin-syntax-flow': 7.24.7(@babel/core@7.7.4) - '@babel/plugin-transform-react-jsx': 7.25.2(@babel/core@7.7.4) - eslint: 8.57.0 + '@babel/plugin-syntax-flow': 7.26.0(@babel/core@7.7.4) + '@babel/plugin-transform-react-jsx': 7.25.9(@babel/core@7.7.4) + eslint: 8.57.1 lodash: 4.17.21 string-natural-compare: 3.0.1 dev: true @@ -1170,23 +1164,24 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /eslint@8.57.0: - resolution: {integrity: sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==} + /eslint@8.57.1: + resolution: {integrity: sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options. hasBin: true dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) - '@eslint-community/regexpp': 4.11.0 + '@eslint-community/eslint-utils': 4.4.1(eslint@8.57.1) + '@eslint-community/regexpp': 4.12.1 '@eslint/eslintrc': 2.1.4 - '@eslint/js': 8.57.0 - '@humanwhocodes/config-array': 0.11.14 + '@eslint/js': 8.57.1 + '@humanwhocodes/config-array': 0.13.0 '@humanwhocodes/module-importer': 1.0.1 '@nodelib/fs.walk': 1.2.8 '@ungap/structured-clone': 1.2.0 ajv: 6.12.6 chalk: 4.1.2 - cross-spawn: 7.0.3 - debug: 4.3.6(supports-color@8.1.1) + cross-spawn: 7.0.5 + debug: 4.3.7(supports-color@8.1.1) doctrine: 3.0.0 escape-string-regexp: 4.0.0 eslint-scope: 7.2.2 @@ -1221,8 +1216,8 @@ packages: resolution: {integrity: sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: - acorn: 8.12.1 - acorn-jsx: 5.3.2(acorn@8.12.1) + acorn: 8.14.0 + acorn-jsx: 5.3.2(acorn@8.14.0) eslint-visitor-keys: 3.4.3 dev: true @@ -1798,9 +1793,9 @@ packages: argparse: 2.0.1 dev: true - /jsesc@2.5.2: - resolution: {integrity: sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==} - engines: {node: '>=4'} + /jsesc@3.0.2: + resolution: {integrity: sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g==} + engines: {node: '>=6'} hasBin: true dev: true @@ -2017,15 +2012,15 @@ packages: minimist: 0.0.8 dev: true - /mocha@10.7.3: - resolution: {integrity: sha512-uQWxAu44wwiACGqjbPYmjo7Lg8sFrS3dQe7PP2FQI+woptP4vZXSMcfMyFL/e1yFEeEpV4RtyTpZROOKmxis+A==} + /mocha@10.8.2: + resolution: {integrity: sha512-VZlYo/WE8t1tstuRmqgeyBgCbJc/lEdopaa+axcKzTBJ+UIdlAB9XnmvTCAH4pwR4ElNInaedhEBmZD8iCSVEg==} engines: {node: '>= 14.0.0'} hasBin: true dependencies: ansi-colors: 4.1.3 browser-stdout: 1.3.1 chokidar: 3.6.0 - debug: 4.3.6(supports-color@8.1.1) + debug: 4.3.7(supports-color@8.1.1) diff: 5.2.0 escape-string-regexp: 4.0.0 find-up: 5.0.0 @@ -2225,8 +2220,8 @@ packages: resolution: {integrity: sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==} dev: true - /picocolors@1.0.1: - resolution: {integrity: sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==} + /picocolors@1.1.1: + resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} dev: true /picomatch@2.3.1: @@ -2287,7 +2282,7 @@ packages: /promisify-child-process@3.1.1: resolution: {integrity: sha512-683UHZEP4Bm75BvBujEe87AdE9lxnoWpcU5pEw4FG9HCSwwZC9pF7HUj3QmlDAvhyvulkWHLZs1lVRBNTvkbXQ==} dependencies: - '@babel/runtime': 7.25.6 + '@babel/runtime': 7.26.0 dev: true /punycode@2.1.1: @@ -2561,11 +2556,6 @@ packages: xtend: 4.0.2 dev: true - /to-fast-properties@2.0.0: - resolution: {integrity: sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==} - engines: {node: '>=4'} - dev: true - /to-file@0.2.0: resolution: {integrity: sha512-xLyYVRKJQTwy2tKMOLD0M0yL+YSZVgMAzkaY9hh7GhzgBBHSIWARDkgPx8krPPm0mW5CgoIFsQEdKRFOyIRdqg==} engines: {node: '>=0.10.0'} @@ -2600,16 +2590,16 @@ packages: nopt: 1.0.10 dev: true - /ts-api-utils@1.3.0(typescript@5.5.4): + /ts-api-utils@1.3.0(typescript@5.4.2): resolution: {integrity: sha512-UQMIo7pb8WRomKR1/+MFVLTroIvDVtMX3K6OUir8ynLyzB8Jeriont2bTAtmNPa1ekAgN7YPDyf6V+ygrdU+eQ==} engines: {node: '>=16'} peerDependencies: typescript: '>=4.2.0' dependencies: - typescript: 5.5.4 + typescript: 5.4.2 dev: true - /ts-node@8.6.2(typescript@5.5.4): + /ts-node@8.6.2(typescript@5.4.2): resolution: {integrity: sha512-4mZEbofxGqLL2RImpe3zMJukvEvcO1XP8bj8ozBPySdCUXEcU5cIRwR0aM3R+VoZq7iXc8N86NC0FspGRqP4gg==} engines: {node: '>=6.0.0'} hasBin: true @@ -2620,7 +2610,7 @@ packages: diff: 4.0.2 make-error: 1.3.5 source-map-support: 0.5.16 - typescript: 5.5.4 + typescript: 5.4.2 yn: 3.1.1 dev: true @@ -2646,10 +2636,9 @@ packages: engines: {node: '>=10'} dev: true - /typescript@5.5.4: - resolution: {integrity: sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==} + /typescript@5.4.2: + resolution: {integrity: sha512-+2/g0Fds1ERlP6JsakQQDXjZdZMM+rqpamFZJEKh4kwTIn3iDkgKtby0CeNd5ATNZ4Ry1ax15TMx0W2V+miizQ==} engines: {node: '>=14.17'} - hasBin: true dev: true /unc-path-regex@0.1.2: diff --git a/fixtures/log4jcore/init-snapshot/dist/writableLogFunction.d.ts b/fixtures/log4jcore/init-snapshot/dist/writableLogFunction.d.ts index 905f3ff..e4b54cd 100644 --- a/fixtures/log4jcore/init-snapshot/dist/writableLogFunction.d.ts +++ b/fixtures/log4jcore/init-snapshot/dist/writableLogFunction.d.ts @@ -1,3 +1,4 @@ +/// import { Writable } from 'stream'; export default function writableLogFunction(writable: Writable): (...args: any[]) => any; //# sourceMappingURL=writableLogFunction.d.ts.map \ No newline at end of file diff --git a/fixtures/log4jcore/init-snapshot/dist/writableLogFunction.d.ts.map b/fixtures/log4jcore/init-snapshot/dist/writableLogFunction.d.ts.map index 1b9c516..0309344 100644 --- a/fixtures/log4jcore/init-snapshot/dist/writableLogFunction.d.ts.map +++ b/fixtures/log4jcore/init-snapshot/dist/writableLogFunction.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"writableLogFunction.d.ts","sourceRoot":"","sources":["src/writableLogFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAA;AAGjC,MAAM,CAAC,OAAO,UAAU,mBAAmB,CACzC,QAAQ,EAAE,QAAQ,GACjB,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAKzB"} +{"version":3,"file":"writableLogFunction.d.ts","sourceRoot":"","sources":["src/writableLogFunction.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAA;AAGjC,MAAM,CAAC,OAAO,UAAU,mBAAmB,CACzC,QAAQ,EAAE,QAAQ,GACjB,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAKzB"} diff --git a/fixtures/log4jcore/init-snapshot/dist/writableLogFunction.js b/fixtures/log4jcore/init-snapshot/dist/writableLogFunction.js index 55f8ff7..fb8dcea 100644 --- a/fixtures/log4jcore/init-snapshot/dist/writableLogFunction.js +++ b/fixtures/log4jcore/init-snapshot/dist/writableLogFunction.js @@ -4,15 +4,12 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau Object.defineProperty(exports, "__esModule", { value: true }); -exports["default"] = writableLogFunction; +exports.default = writableLogFunction; var _util = _interopRequireDefault(require("util")); function writableLogFunction(writable) { // eslint-disable-next-line @typescript-eslint/no-explicit-any - return function (format) { - for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } - writable.write(_util["default"].format.apply(_util["default"], [format].concat(args)) + '\n'); + return (format, ...args) => { + writable.write(_util.default.format(format, ...args) + '\n'); }; } module.exports = exports.default; diff --git a/fixtures/log4jcore/init-snapshot/dist/writableLogFunction.js.map b/fixtures/log4jcore/init-snapshot/dist/writableLogFunction.js.map index 4579b74..5cd5caf 100644 --- a/fixtures/log4jcore/init-snapshot/dist/writableLogFunction.js.map +++ b/fixtures/log4jcore/init-snapshot/dist/writableLogFunction.js.map @@ -1 +1 @@ -{"version":3,"file":"writableLogFunction.js","names":["_util","_interopRequireDefault","require","writableLogFunction","writable","format","_len","arguments","length","args","Array","_key","write","util","apply","concat","module","exports","default"],"sources":["src/writableLogFunction.ts"],"sourcesContent":["import { Writable } from 'stream'\nimport util from 'util'\n\nexport default function writableLogFunction(\n writable: Writable\n): (...args: any[]) => any {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return (format: any, ...args: any[]): void => {\n writable.write(util.format(format, ...args) + '\\n')\n }\n}\n"],"mappings":";;;;;;;AACA,IAAAA,KAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEe,SAASC,mBAAmBA,CACzCC,QAAkB,EACO;EACzB;EACA,OAAO,UAACC,MAAW,EAA2B;IAAA,SAAAC,IAAA,GAAAC,SAAA,CAAAC,MAAA,EAAtBC,IAAI,OAAAC,KAAA,CAAAJ,IAAA,OAAAA,IAAA,WAAAK,IAAA,MAAAA,IAAA,GAAAL,IAAA,EAAAK,IAAA;MAAJF,IAAI,CAAAE,IAAA,QAAAJ,SAAA,CAAAI,IAAA;IAAA;IAC1BP,QAAQ,CAACQ,KAAK,CAACC,gBAAI,CAACR,MAAM,CAAAS,KAAA,CAAXD,gBAAI,GAAQR,MAAM,EAAAU,MAAA,CAAKN,IAAI,EAAC,GAAG,IAAI,CAAC;EACrD,CAAC;AACH;AAACO,MAAA,CAAAC,OAAA,GAAAA,OAAA,CAAAC,OAAA"} +{"version":3,"file":"writableLogFunction.js","names":["_util","_interopRequireDefault","require","writableLogFunction","writable","format","args","write","util","module","exports","default"],"sources":["src/writableLogFunction.ts"],"sourcesContent":["import { Writable } from 'stream'\nimport util from 'util'\n\nexport default function writableLogFunction(\n writable: Writable\n): (...args: any[]) => any {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return (format: any, ...args: any[]): void => {\n writable.write(util.format(format, ...args) + '\\n')\n }\n}\n"],"mappings":";;;;;;;AACA,IAAAA,KAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEe,SAASC,mBAAmBA,CACzCC,QAAkB,EACO;EACzB;EACA,OAAO,CAACC,MAAW,EAAE,GAAGC,IAAW,KAAW;IAC5CF,QAAQ,CAACG,KAAK,CAACC,aAAI,CAACH,MAAM,CAACA,MAAM,EAAE,GAAGC,IAAI,CAAC,GAAG,IAAI,CAAC;EACrD,CAAC;AACH;AAACG,MAAA,CAAAC,OAAA,GAAAA,OAAA,CAAAC,OAAA"} diff --git a/fixtures/log4jcore/init-snapshot/package.json b/fixtures/log4jcore/init-snapshot/package.json index 52f240e..7d1cc53 100644 --- a/fixtures/log4jcore/init-snapshot/package.json +++ b/fixtures/log4jcore/init-snapshot/package.json @@ -43,6 +43,7 @@ "@types/glob": "^7.2.0", "@types/lodash": "^4.14.182", "@types/mocha": "^10.0.1", + "@types/node": "^20", "@types/sinon": "^10.0.2", "@types/touch": "^3.1.1", "@typescript-eslint/eslint-plugin": "^7.6.0", @@ -70,7 +71,7 @@ "sinon": "^11.1.1", "touch": "^3.1.0", "ts-node": "^8.6.2", - "typescript": "^5.1.0" + "typescript": "5.4" }, "main": "dist/index.js", "module": "dist/index.mjs", diff --git a/fixtures/log4jcore/init-snapshot/pnpm-lock.yaml b/fixtures/log4jcore/init-snapshot/pnpm-lock.yaml index 3441f80..f258902 100644 --- a/fixtures/log4jcore/init-snapshot/pnpm-lock.yaml +++ b/fixtures/log4jcore/init-snapshot/pnpm-lock.yaml @@ -7,18 +7,18 @@ settings: dependencies: '@babel/runtime': specifier: ^7.18.6 - version: 7.25.6 + version: 7.26.0 devDependencies: '@babel/plugin-syntax-flow': specifier: ^7.14.5 - version: 7.24.7(@babel/core@7.7.4) + version: 7.26.0(@babel/core@7.7.4) '@babel/plugin-transform-react-jsx': specifier: ^7.14.9 - version: 7.25.2(@babel/core@7.7.4) + version: 7.25.9(@babel/core@7.7.4) '@babel/register': specifier: ^7.22.5 - version: 7.24.6(@babel/core@7.7.4) + version: 7.25.9(@babel/core@7.7.4) '@jcoreio/eslint-plugin-implicit-dependencies': specifier: ^1.1.1 version: 1.1.1 @@ -45,7 +45,7 @@ devDependencies: version: link:../packages/typescript '@types/chai': specifier: ^4.3.5 - version: 4.3.19 + version: 4.3.20 '@types/fs-extra': specifier: ^8.0.1 version: 8.0.1 @@ -57,7 +57,10 @@ devDependencies: version: 4.14.182 '@types/mocha': specifier: ^10.0.1 - version: 10.0.7 + version: 10.0.9 + '@types/node': + specifier: ^20 + version: 20.0.0 '@types/sinon': specifier: ^10.0.2 version: 10.0.2 @@ -66,10 +69,10 @@ devDependencies: version: 3.1.1 '@typescript-eslint/eslint-plugin': specifier: ^7.6.0 - version: 7.18.0(@typescript-eslint/parser@7.18.0)(eslint@8.57.0)(typescript@5.5.4) + version: 7.18.0(@typescript-eslint/parser@7.18.0)(eslint@8.57.1)(typescript@5.4.2) '@typescript-eslint/parser': specifier: ^7.6.0 - version: 7.18.0(eslint@8.57.0)(typescript@5.5.4) + version: 7.18.0(eslint@8.57.1)(typescript@5.4.2) chai: specifier: ^4.3.7 version: 4.5.0 @@ -87,13 +90,13 @@ devDependencies: version: 4.0.0 eslint: specifier: ^8.56.0 - version: 8.57.0 + version: 8.57.1 eslint-config-prettier: specifier: ^6.5.0 - version: 6.7.0(eslint@8.57.0) + version: 6.7.0(eslint@8.57.1) eslint-plugin-flowtype: specifier: ^8.0.3 - version: 8.0.3(@babel/plugin-syntax-flow@7.24.7)(@babel/plugin-transform-react-jsx@7.25.2)(eslint@8.57.0) + version: 8.0.3(@babel/plugin-syntax-flow@7.26.0)(@babel/plugin-transform-react-jsx@7.25.9)(eslint@8.57.1) eslint-plugin-no-only-tests: specifier: ^3.1.0 version: 3.3.0 @@ -111,7 +114,7 @@ devDependencies: version: 4.17.21 mocha: specifier: ^10.2.0 - version: 10.7.3 + version: 10.8.2 opn: specifier: ^6.0.0 version: 6.0.0 @@ -138,34 +141,35 @@ devDependencies: version: 3.1.0 ts-node: specifier: ^8.6.2 - version: 8.6.2(typescript@5.5.4) + version: 8.6.2(typescript@5.4.2) typescript: - specifier: ^5.1.0 - version: 5.5.4 + specifier: '5.4' + version: 5.4.2 packages: - /@babel/code-frame@7.24.7: - resolution: {integrity: sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==} + /@babel/code-frame@7.26.2: + resolution: {integrity: sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ==} engines: {node: '>=6.9.0'} dependencies: - '@babel/highlight': 7.24.7 - picocolors: 1.0.1 + '@babel/helper-validator-identifier': 7.25.9 + js-tokens: 4.0.0 + picocolors: 1.1.1 dev: true /@babel/core@7.7.4: resolution: {integrity: sha512-+bYbx56j4nYBmpsWtnPUsKW3NdnYxbqyfrP2w9wILBuHzdfIKz9prieZK0DFPyIzkjYVUe4QkusGL07r5pXznQ==} engines: {node: '>=6.9.0'} dependencies: - '@babel/code-frame': 7.24.7 - '@babel/generator': 7.25.6 + '@babel/code-frame': 7.26.2 + '@babel/generator': 7.26.2 '@babel/helpers': 7.7.4 - '@babel/parser': 7.25.6 - '@babel/template': 7.25.0 - '@babel/traverse': 7.25.6 - '@babel/types': 7.25.6 + '@babel/parser': 7.26.2 + '@babel/template': 7.25.9 + '@babel/traverse': 7.25.9 + '@babel/types': 7.26.0 convert-source-map: 1.7.0 - debug: 4.3.6(supports-color@8.1.1) + debug: 4.3.7(supports-color@8.1.1) json5: 2.1.1 lodash: 4.17.21 resolve: 1.13.1 @@ -175,114 +179,105 @@ packages: - supports-color dev: true - /@babel/generator@7.25.6: - resolution: {integrity: sha512-VPC82gr1seXOpkjAAKoLhP50vx4vGNlF4msF64dSFq1P8RfB+QAuJWGHPXXPc8QyfVWwwB/TNNU4+ayZmHNbZw==} + /@babel/generator@7.26.2: + resolution: {integrity: sha512-zevQbhbau95nkoxSq3f/DC/SC+EEOUZd3DYqfSkMhY2/wfSeaHV1Ew4vk8e+x8lja31IbyuUa2uQ3JONqKbysw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.25.6 + '@babel/parser': 7.26.2 + '@babel/types': 7.26.0 '@jridgewell/gen-mapping': 0.3.5 '@jridgewell/trace-mapping': 0.3.25 - jsesc: 2.5.2 + jsesc: 3.0.2 dev: true - /@babel/helper-annotate-as-pure@7.24.7: - resolution: {integrity: sha512-BaDeOonYvhdKw+JoMVkAixAAJzG2jVPIwWoKBPdYuY9b452e2rPuI9QPYh3KpofZ3pW2akOmwZLOiOsHMiqRAg==} + /@babel/helper-annotate-as-pure@7.25.9: + resolution: {integrity: sha512-gv7320KBUFJz1RnylIg5WWYPRXKZ884AGkYpgpWW02TH66Dl+HaC1t1CKd0z3R4b6hdYEcmrNZHUmfCP+1u3/g==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 dev: true - /@babel/helper-module-imports@7.24.7: - resolution: {integrity: sha512-8AyH3C+74cgCVVXow/myrynrAGv+nTVg5vKu2nZph9x7RcRwzmh0VFallJuFTZ9mx6u4eSdXZfcOzSqTUm0HCA==} + /@babel/helper-module-imports@7.25.9: + resolution: {integrity: sha512-tnUA4RsrmflIM6W6RFTLFSXITtl0wKjgpnLgXyowocVPrbYrLUXSBXDgTs8BlbmIzIdlBySRQjINYs2BAkiLtw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/traverse': 7.25.6 - '@babel/types': 7.25.6 + '@babel/traverse': 7.25.9 + '@babel/types': 7.26.0 transitivePeerDependencies: - supports-color dev: true - /@babel/helper-plugin-utils@7.24.8: - resolution: {integrity: sha512-FFWx5142D8h2Mgr/iPVGH5G7w6jDn4jUSpZTyDnQO0Yn7Ks2Kuz6Pci8H6MPCoUJegd/UZQ3tAvfLCxQSnWWwg==} + /@babel/helper-plugin-utils@7.25.9: + resolution: {integrity: sha512-kSMlyUVdWe25rEsRGviIgOWnoT/nfABVWlqt9N19/dIPWViAOW2s9wznP5tURbs/IDuNk4gPy3YdYRgH3uxhBw==} engines: {node: '>=6.9.0'} dev: true - /@babel/helper-string-parser@7.24.8: - resolution: {integrity: sha512-pO9KhhRcuUyGnJWwyEgnRJTSIZHiT+vMD0kPeD+so0l7mxkMT19g3pjY9GTnHySck/hDzq+dtW/4VgnMkippsQ==} + /@babel/helper-string-parser@7.25.9: + resolution: {integrity: sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==} engines: {node: '>=6.9.0'} dev: true - /@babel/helper-validator-identifier@7.24.7: - resolution: {integrity: sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==} + /@babel/helper-validator-identifier@7.25.9: + resolution: {integrity: sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==} engines: {node: '>=6.9.0'} dev: true /@babel/helpers@7.7.4: resolution: {integrity: sha512-ak5NGZGJ6LV85Q1Zc9gn2n+ayXOizryhjSUBTdu5ih1tlVCJeuQENzc4ItyCVhINVXvIT/ZQ4mheGIsfBkpskg==} dependencies: - '@babel/template': 7.25.0 - '@babel/traverse': 7.25.6 - '@babel/types': 7.25.6 + '@babel/template': 7.25.9 + '@babel/traverse': 7.25.9 + '@babel/types': 7.26.0 transitivePeerDependencies: - supports-color dev: true - /@babel/highlight@7.24.7: - resolution: {integrity: sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/helper-validator-identifier': 7.24.7 - chalk: 2.4.2 - js-tokens: 4.0.0 - picocolors: 1.0.1 - dev: true - - /@babel/parser@7.25.6: - resolution: {integrity: sha512-trGdfBdbD0l1ZPmcJ83eNxB9rbEax4ALFTF7fN386TMYbeCQbyme5cOEXQhbGXKebwGaB/J52w1mrklMcbgy6Q==} + /@babel/parser@7.26.2: + resolution: {integrity: sha512-DWMCZH9WA4Maitz2q21SRKHo9QXZxkDsbNZoVD62gusNtNBBqDg9i7uOhASfTfIGNzW+O+r7+jAlM8dwphcJKQ==} engines: {node: '>=6.0.0'} hasBin: true dependencies: - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 dev: true - /@babel/plugin-syntax-flow@7.24.7(@babel/core@7.7.4): - resolution: {integrity: sha512-9G8GYT/dxn/D1IIKOUBmGX0mnmj46mGH9NnZyJLwtCpgh5f7D2VbuKodb+2s9m1Yavh1s7ASQN8lf0eqrb1LTw==} + /@babel/plugin-syntax-flow@7.26.0(@babel/core@7.7.4): + resolution: {integrity: sha512-B+O2DnPc0iG+YXFqOxv2WNuNU97ToWjOomUQ78DouOENWUaM5sVrmet9mcomUGQFwpJd//gvUagXBSdzO1fRKg==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.7.4 - '@babel/helper-plugin-utils': 7.24.8 + '@babel/helper-plugin-utils': 7.25.9 dev: true - /@babel/plugin-syntax-jsx@7.24.7(@babel/core@7.7.4): - resolution: {integrity: sha512-6ddciUPe/mpMnOKv/U+RSd2vvVy+Yw/JfBB0ZHYjEZt9NLHmCUylNYlsbqCCS1Bffjlb0fCwC9Vqz+sBz6PsiQ==} + /@babel/plugin-syntax-jsx@7.25.9(@babel/core@7.7.4): + resolution: {integrity: sha512-ld6oezHQMZsZfp6pWtbjaNDF2tiiCYYDqQszHt5VV437lewP9aSi2Of99CK0D0XB21k7FLgnLcmQKyKzynfeAA==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.7.4 - '@babel/helper-plugin-utils': 7.24.8 + '@babel/helper-plugin-utils': 7.25.9 dev: true - /@babel/plugin-transform-react-jsx@7.25.2(@babel/core@7.7.4): - resolution: {integrity: sha512-KQsqEAVBpU82NM/B/N9j9WOdphom1SZH3R+2V7INrQUH+V9EBFwZsEJl8eBIVeQE62FxJCc70jzEZwqU7RcVqA==} + /@babel/plugin-transform-react-jsx@7.25.9(@babel/core@7.7.4): + resolution: {integrity: sha512-s5XwpQYCqGerXl+Pu6VDL3x0j2d82eiV77UJ8a2mDHAW7j9SWRqQ2y1fNo1Z74CdcYipl5Z41zvjj4Nfzq36rw==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.7.4 - '@babel/helper-annotate-as-pure': 7.24.7 - '@babel/helper-module-imports': 7.24.7 - '@babel/helper-plugin-utils': 7.24.8 - '@babel/plugin-syntax-jsx': 7.24.7(@babel/core@7.7.4) - '@babel/types': 7.25.6 + '@babel/helper-annotate-as-pure': 7.25.9 + '@babel/helper-module-imports': 7.25.9 + '@babel/helper-plugin-utils': 7.25.9 + '@babel/plugin-syntax-jsx': 7.25.9(@babel/core@7.7.4) + '@babel/types': 7.26.0 transitivePeerDependencies: - supports-color dev: true - /@babel/register@7.24.6(@babel/core@7.7.4): - resolution: {integrity: sha512-WSuFCc2wCqMeXkz/i3yfAAsxwWflEgbVkZzivgAmXl/MxrXeoYFZOOPllbC8R8WTF7u61wSRQtDVZ1879cdu6w==} + /@babel/register@7.25.9(@babel/core@7.7.4): + resolution: {integrity: sha512-8D43jXtGsYmEeDvm4MWHYUpWf8iiXgWYx3fW7E7Wb7Oe6FWqJPl5K6TuFW0dOwNZzEE5rjlaSJYH9JjrUKJszA==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 @@ -295,57 +290,56 @@ packages: source-map-support: 0.5.16 dev: true - /@babel/runtime@7.25.6: - resolution: {integrity: sha512-VBj9MYyDb9tuLq7yzqjgzt6Q+IBQLrGZfdjOekyEirZPHxXWoTSGUTMrpsfi58Up73d13NfYLv8HT9vmznjzhQ==} + /@babel/runtime@7.26.0: + resolution: {integrity: sha512-FDSOghenHTiToteC/QRlv2q3DhPZ/oOXTBoirfWNx1Cx3TMVcGWQtMMmQcSvb/JjpNeGzx8Pq/b4fKEJuWm1sw==} engines: {node: '>=6.9.0'} dependencies: regenerator-runtime: 0.14.1 - /@babel/template@7.25.0: - resolution: {integrity: sha512-aOOgh1/5XzKvg1jvVz7AVrx2piJ2XBi227DHmbY6y+bM9H2FlN+IfecYu4Xl0cNiiVejlsCri89LUsbj8vJD9Q==} + /@babel/template@7.25.9: + resolution: {integrity: sha512-9DGttpmPvIxBb/2uwpVo3dqJ+O6RooAFOS+lB+xDqoE2PVCE8nfoHMdZLpfCQRLwvohzXISPZcgxt80xLfsuwg==} engines: {node: '>=6.9.0'} dependencies: - '@babel/code-frame': 7.24.7 - '@babel/parser': 7.25.6 - '@babel/types': 7.25.6 + '@babel/code-frame': 7.26.2 + '@babel/parser': 7.26.2 + '@babel/types': 7.26.0 dev: true - /@babel/traverse@7.25.6: - resolution: {integrity: sha512-9Vrcx5ZW6UwK5tvqsj0nGpp/XzqthkT0dqIc9g1AdtygFToNtTF67XzYS//dm+SAK9cp3B9R4ZO/46p63SCjlQ==} + /@babel/traverse@7.25.9: + resolution: {integrity: sha512-ZCuvfwOwlz/bawvAuvcj8rrithP2/N55Tzz342AkTvq4qaWbGfmCk/tKhNaV2cthijKrPAA8SRJV5WWe7IBMJw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/code-frame': 7.24.7 - '@babel/generator': 7.25.6 - '@babel/parser': 7.25.6 - '@babel/template': 7.25.0 - '@babel/types': 7.25.6 + '@babel/code-frame': 7.26.2 + '@babel/generator': 7.26.2 + '@babel/parser': 7.26.2 + '@babel/template': 7.25.9 + '@babel/types': 7.26.0 debug: 4.3.1 globals: 11.12.0 transitivePeerDependencies: - supports-color dev: true - /@babel/types@7.25.6: - resolution: {integrity: sha512-/l42B1qxpG6RdfYf343Uw1vmDjeNhneUXtzhojE7pDgfpEypmRhI6j1kr17XCVv4Cgl9HdAiQY2x0GwKm7rWCw==} + /@babel/types@7.26.0: + resolution: {integrity: sha512-Z/yiTPj+lDVnF7lWeKCIJzaIkI0vYO87dMpZ4bg4TDrFe4XXLFWL1TbXU27gBP3QccxV9mZICCrnjnYlJjXHOA==} engines: {node: '>=6.9.0'} dependencies: - '@babel/helper-string-parser': 7.24.8 - '@babel/helper-validator-identifier': 7.24.7 - to-fast-properties: 2.0.0 + '@babel/helper-string-parser': 7.25.9 + '@babel/helper-validator-identifier': 7.25.9 dev: true - /@eslint-community/eslint-utils@4.4.0(eslint@8.57.0): - resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==} + /@eslint-community/eslint-utils@4.4.1(eslint@8.57.1): + resolution: {integrity: sha512-s3O3waFUrMV8P/XaF/+ZTp1X9XBZW1a4B97ZnjQF2KYWaFD2A8KyFBsrsfSjEmjn3RGWAIuvlneuZm3CUK3jbA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 dependencies: - eslint: 8.57.0 + eslint: 8.57.1 eslint-visitor-keys: 3.4.3 dev: true - /@eslint-community/regexpp@4.11.0: - resolution: {integrity: sha512-G/M/tIiMrTAxEWRfLfQJMmGNX28IxBg4PBz8XqQhqUHLFI6TL2htpIB1iQCj144V5ee/JaKyT9/WZ0MGZWfA7A==} + /@eslint-community/regexpp@4.12.1: + resolution: {integrity: sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==} engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} dev: true @@ -354,7 +348,7 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: ajv: 6.12.6 - debug: 4.3.6(supports-color@8.1.1) + debug: 4.3.7(supports-color@8.1.1) espree: 9.6.1 globals: 13.24.0 ignore: 5.3.2 @@ -366,18 +360,18 @@ packages: - supports-color dev: true - /@eslint/js@8.57.0: - resolution: {integrity: sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==} + /@eslint/js@8.57.1: + resolution: {integrity: sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /@humanwhocodes/config-array@0.11.14: - resolution: {integrity: sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==} + /@humanwhocodes/config-array@0.13.0: + resolution: {integrity: sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==} engines: {node: '>=10.10.0'} deprecated: Use @eslint/config-array instead dependencies: '@humanwhocodes/object-schema': 2.0.3 - debug: 4.3.6(supports-color@8.1.1) + debug: 4.3.7(supports-color@8.1.1) minimatch: 3.1.2 transitivePeerDependencies: - supports-color @@ -397,7 +391,7 @@ packages: resolution: {integrity: sha512-Kg+erBdnA1sczSNNGEGIA9k7hwfnN1NrKEnACfJwbGoR6T5E/yhBbpyF5q5dEIvxHTUJ4wL5azEd3m68qq8F+Q==} engines: {node: '>=16'} dependencies: - '@babel/runtime': 7.25.6 + '@babel/runtime': 7.26.0 '@types/validate-npm-package-name': 4.0.2 pkg-up: 3.1.0 validate-npm-package-name: 5.0.1 @@ -488,21 +482,21 @@ packages: resolution: {integrity: sha512-+iTbntw2IZPb/anVDbypzfQa+ay64MW0Zo8aJ8gZPWMMK6/OubMVb6lUPMagqjOPnmtauXnFCACVl3O7ogjeqQ==} dev: true - /@types/chai@4.3.19: - resolution: {integrity: sha512-2hHHvQBVE2FiSK4eN0Br6snX9MtolHaTo/batnLjlGRhoQzlCL61iVpxoqO7SfFyOw+P/pwv+0zNHzKoGWz9Cw==} + /@types/chai@4.3.20: + resolution: {integrity: sha512-/pC9HAB5I/xMlc5FP77qjCnI16ChlJfW0tGa0IUcFn38VJrTV6DeZ60NU5KZBtaOZqjdpwTWohz5HU1RrhiYxQ==} dev: true /@types/fs-extra@8.0.1: resolution: {integrity: sha512-J00cVDALmi/hJOYsunyT52Hva5TnJeKP5yd1r+mH/ZU0mbYZflR0Z5kw5kITtKTRYMhm1JMClOFYdHnQszEvqw==} dependencies: - '@types/node': 12.12.14 + '@types/node': 20.0.0 dev: true /@types/glob@7.2.0: resolution: {integrity: sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==} dependencies: '@types/minimatch': 3.0.3 - '@types/node': 12.12.14 + '@types/node': 20.0.0 dev: true /@types/lodash@4.14.182: @@ -513,16 +507,16 @@ packages: resolution: {integrity: sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA==} dev: true - /@types/mocha@10.0.7: - resolution: {integrity: sha512-GN8yJ1mNTcFcah/wKEFIJckJx9iJLoMSzWcfRRuxz/Jk+U6KQNnml+etbtxFK8lPjzOw3zp4Ha/kjSst9fsHYw==} + /@types/mocha@10.0.9: + resolution: {integrity: sha512-sicdRoWtYevwxjOHNMPTl3vSfJM6oyW8o1wXeI7uww6b6xHg8eBznQDNSGBCDJmsE8UMxP05JgZRtsKbTqt//Q==} dev: true /@types/node@10.17.6: resolution: {integrity: sha512-0a2X6cgN3RdPBL2MIlR6Lt0KlM7fOFsutuXcdglcOq6WvLnYXgPQSh0Mx6tO1KCAE8MxbHSOSTWDoUxRq+l3DA==} dev: true - /@types/node@12.12.14: - resolution: {integrity: sha512-u/SJDyXwuihpwjXy7hOOghagLEV1KdAST6syfnOk6QZAMzZuWZqXy5aYYZbh8Jdpd4escVFP0MvftHNDb9pruA==} + /@types/node@20.0.0: + resolution: {integrity: sha512-cD2uPTDnQQCVpmRefonO98/PPijuOnnEy5oytWJFPY1N9aJCz2wJ5kSGWO+zJoed2cY2JxQh6yBuUq4vIn61hw==} dev: true /@types/sinon@10.0.2: @@ -534,14 +528,14 @@ packages: /@types/touch@3.1.1: resolution: {integrity: sha512-6qjr7Erk0b9FkZSu17wUJaWhmzUgGfQuec7eIwl9cP7V/YO/k9IcMnHSwAjxAeadC5guq9rwHcoij7PT1RkO1w==} dependencies: - '@types/node': 12.12.14 + '@types/node': 20.0.0 dev: true /@types/validate-npm-package-name@4.0.2: resolution: {integrity: sha512-lrpDziQipxCEeK5kWxvljWYhUvOiB2A9izZd9B2AFarYAkqZshb4lPbRs7zKEic6eGtH8V/2qJW+dPp9OtF6bw==} dev: true - /@typescript-eslint/eslint-plugin@7.18.0(@typescript-eslint/parser@7.18.0)(eslint@8.57.0)(typescript@5.5.4): + /@typescript-eslint/eslint-plugin@7.18.0(@typescript-eslint/parser@7.18.0)(eslint@8.57.1)(typescript@5.4.2): resolution: {integrity: sha512-94EQTWZ40mzBc42ATNIBimBEDltSJ9RQHCC8vc/PDbxi4k8dVwUAv4o98dk50M1zB+JGFxp43FP7f8+FP8R6Sw==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: @@ -552,23 +546,23 @@ packages: typescript: optional: true dependencies: - '@eslint-community/regexpp': 4.11.0 - '@typescript-eslint/parser': 7.18.0(eslint@8.57.0)(typescript@5.5.4) + '@eslint-community/regexpp': 4.12.1 + '@typescript-eslint/parser': 7.18.0(eslint@8.57.1)(typescript@5.4.2) '@typescript-eslint/scope-manager': 7.18.0 - '@typescript-eslint/type-utils': 7.18.0(eslint@8.57.0)(typescript@5.5.4) - '@typescript-eslint/utils': 7.18.0(eslint@8.57.0)(typescript@5.5.4) + '@typescript-eslint/type-utils': 7.18.0(eslint@8.57.1)(typescript@5.4.2) + '@typescript-eslint/utils': 7.18.0(eslint@8.57.1)(typescript@5.4.2) '@typescript-eslint/visitor-keys': 7.18.0 - eslint: 8.57.0 + eslint: 8.57.1 graphemer: 1.4.0 ignore: 5.3.2 natural-compare: 1.4.0 - ts-api-utils: 1.3.0(typescript@5.5.4) - typescript: 5.5.4 + ts-api-utils: 1.3.0(typescript@5.4.2) + typescript: 5.4.2 transitivePeerDependencies: - supports-color dev: true - /@typescript-eslint/parser@7.18.0(eslint@8.57.0)(typescript@5.5.4): + /@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.4.2): resolution: {integrity: sha512-4Z+L8I2OqhZV8qA132M4wNL30ypZGYOQVBfMgxDH/K5UX0PNqTu1c6za9ST5r9+tavvHiTWmBnKzpCJ/GlVFtg==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: @@ -580,11 +574,11 @@ packages: dependencies: '@typescript-eslint/scope-manager': 7.18.0 '@typescript-eslint/types': 7.18.0 - '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.5.4) + '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.4.2) '@typescript-eslint/visitor-keys': 7.18.0 - debug: 4.3.6(supports-color@8.1.1) - eslint: 8.57.0 - typescript: 5.5.4 + debug: 4.3.7(supports-color@8.1.1) + eslint: 8.57.1 + typescript: 5.4.2 transitivePeerDependencies: - supports-color dev: true @@ -597,7 +591,7 @@ packages: '@typescript-eslint/visitor-keys': 7.18.0 dev: true - /@typescript-eslint/type-utils@7.18.0(eslint@8.57.0)(typescript@5.5.4): + /@typescript-eslint/type-utils@7.18.0(eslint@8.57.1)(typescript@5.4.2): resolution: {integrity: sha512-XL0FJXuCLaDuX2sYqZUUSOJ2sG5/i1AAze+axqmLnSkNEVMVYLF+cbwlB2w8D1tinFuSikHmFta+P+HOofrLeA==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: @@ -607,12 +601,12 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.5.4) - '@typescript-eslint/utils': 7.18.0(eslint@8.57.0)(typescript@5.5.4) - debug: 4.3.6(supports-color@8.1.1) - eslint: 8.57.0 - ts-api-utils: 1.3.0(typescript@5.5.4) - typescript: 5.5.4 + '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.4.2) + '@typescript-eslint/utils': 7.18.0(eslint@8.57.1)(typescript@5.4.2) + debug: 4.3.7(supports-color@8.1.1) + eslint: 8.57.1 + ts-api-utils: 1.3.0(typescript@5.4.2) + typescript: 5.4.2 transitivePeerDependencies: - supports-color dev: true @@ -622,7 +616,7 @@ packages: engines: {node: ^18.18.0 || >=20.0.0} dev: true - /@typescript-eslint/typescript-estree@7.18.0(typescript@5.5.4): + /@typescript-eslint/typescript-estree@7.18.0(typescript@5.4.2): resolution: {integrity: sha512-aP1v/BSPnnyhMHts8cf1qQ6Q1IFwwRvAQGRvBFkWlo3/lH29OXA3Pts+c10nxRxIBrDnoMqzhgdwVe5f2D6OzA==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: @@ -633,28 +627,28 @@ packages: dependencies: '@typescript-eslint/types': 7.18.0 '@typescript-eslint/visitor-keys': 7.18.0 - debug: 4.3.6(supports-color@8.1.1) + debug: 4.3.7(supports-color@8.1.1) globby: 11.1.0 is-glob: 4.0.3 minimatch: 9.0.5 semver: 7.6.3 - ts-api-utils: 1.3.0(typescript@5.5.4) - typescript: 5.5.4 + ts-api-utils: 1.3.0(typescript@5.4.2) + typescript: 5.4.2 transitivePeerDependencies: - supports-color dev: true - /@typescript-eslint/utils@7.18.0(eslint@8.57.0)(typescript@5.5.4): + /@typescript-eslint/utils@7.18.0(eslint@8.57.1)(typescript@5.4.2): resolution: {integrity: sha512-kK0/rNa2j74XuHVcoCZxdFBMF+aq/vH83CXAOHieC+2Gis4mF8jJXT5eAfyD3K0sAxtPuwxaIOIOvhwzVDt/kw==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: eslint: ^8.56.0 dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) + '@eslint-community/eslint-utils': 4.4.1(eslint@8.57.1) '@typescript-eslint/scope-manager': 7.18.0 '@typescript-eslint/types': 7.18.0 - '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.5.4) - eslint: 8.57.0 + '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.4.2) + eslint: 8.57.1 transitivePeerDependencies: - supports-color - typescript @@ -676,16 +670,16 @@ packages: resolution: {integrity: sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==} dev: true - /acorn-jsx@5.3.2(acorn@8.12.1): + /acorn-jsx@5.3.2(acorn@8.14.0): resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} peerDependencies: acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 dependencies: - acorn: 8.12.1 + acorn: 8.14.0 dev: true - /acorn@8.12.1: - resolution: {integrity: sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==} + /acorn@8.14.0: + resolution: {integrity: sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==} engines: {node: '>=0.4.0'} hasBin: true dev: true @@ -999,8 +993,8 @@ packages: which: 1.3.1 dev: true - /cross-spawn@7.0.3: - resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==} + /cross-spawn@7.0.5: + resolution: {integrity: sha512-ZVJrKKYunU38/76t0RMOulHOnUcbU9GbpWKAOZ0mhjr7CX6FVrH+4FrAapSOekrgFQ3f/8gwMEuIft0aKq6Hug==} engines: {node: '>= 8'} dependencies: path-key: 3.1.1 @@ -1020,8 +1014,8 @@ packages: ms: 2.1.2 dev: true - /debug@4.3.6(supports-color@8.1.1): - resolution: {integrity: sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==} + /debug@4.3.7(supports-color@8.1.1): + resolution: {integrity: sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==} engines: {node: '>=6.0'} peerDependencies: supports-color: '*' @@ -1029,7 +1023,7 @@ packages: supports-color: optional: true dependencies: - ms: 2.1.2 + ms: 2.1.3 supports-color: 8.1.1 dev: true @@ -1127,17 +1121,17 @@ packages: engines: {node: '>=10'} dev: true - /eslint-config-prettier@6.7.0(eslint@8.57.0): + /eslint-config-prettier@6.7.0(eslint@8.57.1): resolution: {integrity: sha512-FamQVKM3jjUVwhG4hEMnbtsq7xOIDm+SY5iBPfR8gKsJoAB2IQnNF+bk1+8Fy44Nq7PPJaLvkRxILYdJWoguKQ==} hasBin: true peerDependencies: eslint: '>=3.14.1' dependencies: - eslint: 8.57.0 + eslint: 8.57.1 get-stdin: 6.0.0 dev: true - /eslint-plugin-flowtype@8.0.3(@babel/plugin-syntax-flow@7.24.7)(@babel/plugin-transform-react-jsx@7.25.2)(eslint@8.57.0): + /eslint-plugin-flowtype@8.0.3(@babel/plugin-syntax-flow@7.26.0)(@babel/plugin-transform-react-jsx@7.25.9)(eslint@8.57.1): resolution: {integrity: sha512-dX8l6qUL6O+fYPtpNRideCFSpmWOUVx5QcaGLVqe/vlDiBSe4vYljDWDETwnyFzpl7By/WVIu6rcrniCgH9BqQ==} engines: {node: '>=12.0.0'} peerDependencies: @@ -1145,9 +1139,9 @@ packages: '@babel/plugin-transform-react-jsx': ^7.14.9 eslint: ^8.1.0 dependencies: - '@babel/plugin-syntax-flow': 7.24.7(@babel/core@7.7.4) - '@babel/plugin-transform-react-jsx': 7.25.2(@babel/core@7.7.4) - eslint: 8.57.0 + '@babel/plugin-syntax-flow': 7.26.0(@babel/core@7.7.4) + '@babel/plugin-transform-react-jsx': 7.25.9(@babel/core@7.7.4) + eslint: 8.57.1 lodash: 4.17.21 string-natural-compare: 3.0.1 dev: true @@ -1170,23 +1164,24 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /eslint@8.57.0: - resolution: {integrity: sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==} + /eslint@8.57.1: + resolution: {integrity: sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options. hasBin: true dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) - '@eslint-community/regexpp': 4.11.0 + '@eslint-community/eslint-utils': 4.4.1(eslint@8.57.1) + '@eslint-community/regexpp': 4.12.1 '@eslint/eslintrc': 2.1.4 - '@eslint/js': 8.57.0 - '@humanwhocodes/config-array': 0.11.14 + '@eslint/js': 8.57.1 + '@humanwhocodes/config-array': 0.13.0 '@humanwhocodes/module-importer': 1.0.1 '@nodelib/fs.walk': 1.2.8 '@ungap/structured-clone': 1.2.0 ajv: 6.12.6 chalk: 4.1.2 - cross-spawn: 7.0.3 - debug: 4.3.6(supports-color@8.1.1) + cross-spawn: 7.0.5 + debug: 4.3.7(supports-color@8.1.1) doctrine: 3.0.0 escape-string-regexp: 4.0.0 eslint-scope: 7.2.2 @@ -1221,8 +1216,8 @@ packages: resolution: {integrity: sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: - acorn: 8.12.1 - acorn-jsx: 5.3.2(acorn@8.12.1) + acorn: 8.14.0 + acorn-jsx: 5.3.2(acorn@8.14.0) eslint-visitor-keys: 3.4.3 dev: true @@ -1798,9 +1793,9 @@ packages: argparse: 2.0.1 dev: true - /jsesc@2.5.2: - resolution: {integrity: sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==} - engines: {node: '>=4'} + /jsesc@3.0.2: + resolution: {integrity: sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g==} + engines: {node: '>=6'} hasBin: true dev: true @@ -2017,15 +2012,15 @@ packages: minimist: 0.0.8 dev: true - /mocha@10.7.3: - resolution: {integrity: sha512-uQWxAu44wwiACGqjbPYmjo7Lg8sFrS3dQe7PP2FQI+woptP4vZXSMcfMyFL/e1yFEeEpV4RtyTpZROOKmxis+A==} + /mocha@10.8.2: + resolution: {integrity: sha512-VZlYo/WE8t1tstuRmqgeyBgCbJc/lEdopaa+axcKzTBJ+UIdlAB9XnmvTCAH4pwR4ElNInaedhEBmZD8iCSVEg==} engines: {node: '>= 14.0.0'} hasBin: true dependencies: ansi-colors: 4.1.3 browser-stdout: 1.3.1 chokidar: 3.6.0 - debug: 4.3.6(supports-color@8.1.1) + debug: 4.3.7(supports-color@8.1.1) diff: 5.2.0 escape-string-regexp: 4.0.0 find-up: 5.0.0 @@ -2225,8 +2220,8 @@ packages: resolution: {integrity: sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==} dev: true - /picocolors@1.0.1: - resolution: {integrity: sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==} + /picocolors@1.1.1: + resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} dev: true /picomatch@2.3.1: @@ -2287,7 +2282,7 @@ packages: /promisify-child-process@3.1.1: resolution: {integrity: sha512-683UHZEP4Bm75BvBujEe87AdE9lxnoWpcU5pEw4FG9HCSwwZC9pF7HUj3QmlDAvhyvulkWHLZs1lVRBNTvkbXQ==} dependencies: - '@babel/runtime': 7.25.6 + '@babel/runtime': 7.26.0 dev: true /punycode@2.1.1: @@ -2561,11 +2556,6 @@ packages: xtend: 4.0.2 dev: true - /to-fast-properties@2.0.0: - resolution: {integrity: sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==} - engines: {node: '>=4'} - dev: true - /to-file@0.2.0: resolution: {integrity: sha512-xLyYVRKJQTwy2tKMOLD0M0yL+YSZVgMAzkaY9hh7GhzgBBHSIWARDkgPx8krPPm0mW5CgoIFsQEdKRFOyIRdqg==} engines: {node: '>=0.10.0'} @@ -2600,16 +2590,16 @@ packages: nopt: 1.0.10 dev: true - /ts-api-utils@1.3.0(typescript@5.5.4): + /ts-api-utils@1.3.0(typescript@5.4.2): resolution: {integrity: sha512-UQMIo7pb8WRomKR1/+MFVLTroIvDVtMX3K6OUir8ynLyzB8Jeriont2bTAtmNPa1ekAgN7YPDyf6V+ygrdU+eQ==} engines: {node: '>=16'} peerDependencies: typescript: '>=4.2.0' dependencies: - typescript: 5.5.4 + typescript: 5.4.2 dev: true - /ts-node@8.6.2(typescript@5.5.4): + /ts-node@8.6.2(typescript@5.4.2): resolution: {integrity: sha512-4mZEbofxGqLL2RImpe3zMJukvEvcO1XP8bj8ozBPySdCUXEcU5cIRwR0aM3R+VoZq7iXc8N86NC0FspGRqP4gg==} engines: {node: '>=6.0.0'} hasBin: true @@ -2620,7 +2610,7 @@ packages: diff: 4.0.2 make-error: 1.3.5 source-map-support: 0.5.16 - typescript: 5.5.4 + typescript: 5.4.2 yn: 3.1.1 dev: true @@ -2646,10 +2636,9 @@ packages: engines: {node: '>=10'} dev: true - /typescript@5.5.4: - resolution: {integrity: sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==} + /typescript@5.4.2: + resolution: {integrity: sha512-+2/g0Fds1ERlP6JsakQQDXjZdZMM+rqpamFZJEKh4kwTIn3iDkgKtby0CeNd5ATNZ4Ry1ax15TMx0W2V+miizQ==} engines: {node: '>=14.17'} - hasBin: true dev: true /unc-path-regex@0.1.2: diff --git a/fixtures/log4jcore/init-snapshot/toolchain.config.cjs b/fixtures/log4jcore/init-snapshot/toolchain.config.cjs index 9cca0cb..27dcec5 100644 --- a/fixtures/log4jcore/init-snapshot/toolchain.config.cjs +++ b/fixtures/log4jcore/init-snapshot/toolchain.config.cjs @@ -1,6 +1,6 @@ /* eslint-env node, es2018 */ module.exports = { - cjsBabelEnv: { forceAllTransforms: true }, + cjsBabelEnv: { targets: { node: 16 } }, esmBabelEnv: { targets: { node: 16 } }, // outputEsm: false, // disables ESM output (default: true) buildIgnore: ['src/**/*.test.ts'], diff --git a/fixtures/log4jcore/input/package.json b/fixtures/log4jcore/input/package.json index f0ce086..b6d247a 100644 --- a/fixtures/log4jcore/input/package.json +++ b/fixtures/log4jcore/input/package.json @@ -83,6 +83,7 @@ "@types/glob": "^7.2.0", "@types/lodash": "^4.14.182", "@types/mocha": "^8.2.2", + "@types/node": "^20", "@types/sinon": "^10.0.2", "@types/touch": "^3.1.1", "@typescript-eslint/eslint-plugin": "^2.7.0", @@ -119,7 +120,7 @@ "sinon": "^11.1.1", "touch": "^3.1.0", "ts-node": "^8.6.2", - "typescript": "^3.7.2" + "typescript": "5.4" }, "dependencies": {}, "renovate": { diff --git a/fixtures/monorepo/input/packages/bar/toolchain.config.cjs b/fixtures/monorepo/input/packages/bar/toolchain.config.cjs index 9c10799..24d3894 100644 --- a/fixtures/monorepo/input/packages/bar/toolchain.config.cjs +++ b/fixtures/monorepo/input/packages/bar/toolchain.config.cjs @@ -1,6 +1,6 @@ /* eslint-env node, es2018 */ module.exports = { - cjsBabelEnv: { forceAllTransforms: true }, + cjsBabelEnv: { targets: { node: 16 } }, // esmBabelEnv: { targets: { node: 16 } }, outputEsm: false, // disables ESM output (default: true) // esWrapper: true, // outputs ES module wrappers for CJS modules (default: false) diff --git a/fixtures/monorepo/input/packages/foo/toolchain.config.cjs b/fixtures/monorepo/input/packages/foo/toolchain.config.cjs index 9c10799..24d3894 100644 --- a/fixtures/monorepo/input/packages/foo/toolchain.config.cjs +++ b/fixtures/monorepo/input/packages/foo/toolchain.config.cjs @@ -1,6 +1,6 @@ /* eslint-env node, es2018 */ module.exports = { - cjsBabelEnv: { forceAllTransforms: true }, + cjsBabelEnv: { targets: { node: 16 } }, // esmBabelEnv: { targets: { node: 16 } }, outputEsm: false, // disables ESM output (default: true) // esWrapper: true, // outputs ES module wrappers for CJS modules (default: false) diff --git a/fixtures/monorepo/prepublish-snapshot/packages/bar/toolchain.config.cjs b/fixtures/monorepo/prepublish-snapshot/packages/bar/toolchain.config.cjs index 9c10799..24d3894 100644 --- a/fixtures/monorepo/prepublish-snapshot/packages/bar/toolchain.config.cjs +++ b/fixtures/monorepo/prepublish-snapshot/packages/bar/toolchain.config.cjs @@ -1,6 +1,6 @@ /* eslint-env node, es2018 */ module.exports = { - cjsBabelEnv: { forceAllTransforms: true }, + cjsBabelEnv: { targets: { node: 16 } }, // esmBabelEnv: { targets: { node: 16 } }, outputEsm: false, // disables ESM output (default: true) // esWrapper: true, // outputs ES module wrappers for CJS modules (default: false) diff --git a/fixtures/monorepo/prepublish-snapshot/packages/foo/toolchain.config.cjs b/fixtures/monorepo/prepublish-snapshot/packages/foo/toolchain.config.cjs index 9c10799..24d3894 100644 --- a/fixtures/monorepo/prepublish-snapshot/packages/foo/toolchain.config.cjs +++ b/fixtures/monorepo/prepublish-snapshot/packages/foo/toolchain.config.cjs @@ -1,6 +1,6 @@ /* eslint-env node, es2018 */ module.exports = { - cjsBabelEnv: { forceAllTransforms: true }, + cjsBabelEnv: { targets: { node: 16 } }, // esmBabelEnv: { targets: { node: 16 } }, outputEsm: false, // disables ESM output (default: true) // esWrapper: true, // outputs ES module wrappers for CJS modules (default: false) diff --git a/fixtures/react-view-slider-ts/init-snapshot/dist/index.js b/fixtures/react-view-slider-ts/init-snapshot/dist/index.js index 0e977cf..54f47ec 100644 --- a/fixtures/react-view-slider-ts/init-snapshot/dist/index.js +++ b/fixtures/react-view-slider-ts/init-snapshot/dist/index.js @@ -1,40 +1,30 @@ "use strict"; -var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); -var _typeof = require("@babel/runtime/helpers/typeof"); Object.defineProperty(exports, "__esModule", { value: true }); -exports.defaultProps = exports["default"] = void 0; -var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); -var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); -var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized")); -var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits")); -var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn")); -var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf")); -var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty")); +exports.defaultProps = exports.default = void 0; var React = _interopRequireWildcard(require("react")); var _inlineStylePrefixer = require("inline-style-prefixer"); -function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } -function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } -function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } -function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } /* @flow */ /* eslint-env browser */ -var fillStyle = { +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } +/* @flow */ +/* eslint-env browser */ + +const fillStyle = { position: 'absolute', top: 0, left: 0, right: 0, bottom: 0 }; -var baseViewStyle = { +const baseViewStyle = { display: 'inline-block', verticalAlign: 'top', whiteSpace: 'normal', width: '100%' }; -var defaultProps = { +const defaultProps = { animateHeight: true, transitionDuration: 500, transitionTimingFunction: 'ease', @@ -47,263 +37,251 @@ var defaultProps = { }; exports.defaultProps = defaultProps; function applyDefaults(props) { - var result = _objectSpread({}, props); - for (var key in defaultProps) { + const result = { + ...props + }; + for (const key in defaultProps) { if (Object.prototype.hasOwnProperty.call(defaultProps, key) && props[key] == null) { result[key] = defaultProps[key]; } } return result; } -var ViewSlider = /*#__PURE__*/function (_React$Component) { - (0, _inherits2["default"])(ViewSlider, _React$Component); - var _super = _createSuper(ViewSlider); - function ViewSlider() { - var _this; - (0, _classCallCheck2["default"])(this, ViewSlider); - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; +class ViewSlider extends React.Component { + state = { + height: undefined, + transitioning: false, + activeView: this.props.activeView, + numViews: this.props.numViews, + // this is used to determine the correct transitionState for the previous active view. + prevActiveView: undefined + }; + root; + viewport; + views = []; + timeouts = {}; + lastProps = this.props; + lastDefaultedProps; + getDefaultedProps = () => { + if (this.lastProps !== this.props || !this.lastDefaultedProps) { + this.lastProps = this.props; + this.lastDefaultedProps = applyDefaults(this.props); } - _this = _super.call.apply(_super, [this].concat(args)); - (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "state", { - height: undefined, - transitioning: false, - activeView: _this.props.activeView, - numViews: _this.props.numViews, - // this is used to determine the correct transitionState for the previous active view. - prevActiveView: undefined - }); - (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "root", void 0); - (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "viewport", void 0); - (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "views", []); - (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "timeouts", {}); - (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "lastProps", _this.props); - (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "lastDefaultedProps", void 0); - (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "getDefaultedProps", function () { - if (_this.lastProps !== _this.props || !_this.lastDefaultedProps) { - _this.lastProps = _this.props; - _this.lastDefaultedProps = applyDefaults(_this.props); + return this.lastDefaultedProps; + }; + measureHeight = node => { + if (!node) return undefined; + return node.clientHeight; + }; + setTimeout(name, callback, delay) { + if (this.timeouts[name]) clearTimeout(this.timeouts[name]); + this.timeouts[name] = setTimeout(callback, delay); + } + componentDidUpdate() { + const { + activeView, + transitionDuration, + keepViewsMounted + } = this.getDefaultedProps(); + let newState; + if (activeView !== this.state.activeView && this.state.height === undefined) { + if (keepViewsMounted) { + // scroll all views except the current back to the top + for (let i = 0; i < this.views.length; i++) { + if (i === this.state.activeView) continue; + const view = this.views[i]; + if (view) view.scrollTop = 0; + } + } + // phase 1: set current height + newState = { + height: this.measureHeight(this.views[this.state.activeView]) + }; + } else if (this.state.height !== undefined && !this.state.transitioning) { + // phase 2: enable transitions + newState = { + transitioning: true + }; + } else if (activeView !== this.state.activeView) { + // phase 3: change height/activeView + newState = { + activeView, + numViews: Math.max(this.state.numViews, activeView + 1), + prevActiveView: this.state.activeView, + height: this.measureHeight(this.views[activeView]) + }; + } + const finalNewState = newState; + if (!finalNewState) return; + this.setState({ + ...this.state, + ...finalNewState + }, () => { + if (finalNewState.activeView != null) { + this.setTimeout('onTransitionEnd', this.onTransitionEnd, transitionDuration); } - return _this.lastDefaultedProps; - }); - (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "measureHeight", function (node) { - if (!node) return undefined; - return node.clientHeight; - }); - (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onTransitionEnd", function (event) { - // ignore transitionend events from deeper components - if (event && event.target !== _this.viewport) return; - // phase 0: unset height and disable transitions - _this.setState({ - height: undefined, - numViews: _this.props.numViews, - prevActiveView: undefined, - transitioning: false - }, function () { - var onSlideTransitionEnd = _this.props.onSlideTransitionEnd; - if (onSlideTransitionEnd) onSlideTransitionEnd(); - }); }); - (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "getTransitionState", function (childIndex) { - var _this$state = _this.state, - activeView = _this$state.activeView, - prevActiveView = _this$state.prevActiveView; - if (prevActiveView == null) return childIndex === activeView ? 'in' : 'out'; - if (childIndex === activeView) return 'entering'; - if (childIndex === prevActiveView) return 'leaving'; - return 'out'; + } + onTransitionEnd = event => { + // ignore transitionend events from deeper components + if (event && event.target !== this.viewport) return; + // phase 0: unset height and disable transitions + this.setState({ + height: undefined, + numViews: this.props.numViews, + prevActiveView: undefined, + transitioning: false + }, () => { + const { + onSlideTransitionEnd + } = this.props; + if (onSlideTransitionEnd) onSlideTransitionEnd(); }); - (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "renderView", function (index) { - var _this$getDefaultedPro = _this.getDefaultedProps(), - fillParent = _this$getDefaultedPro.fillParent, - prefixer = _this$getDefaultedPro.prefixer, - keepViewsMounted = _this$getDefaultedPro.keepViewsMounted, - spacing = _this$getDefaultedPro.spacing, - rtl = _this$getDefaultedPro.rtl, - viewStyle = _this$getDefaultedPro.viewStyle, - innerViewWrapperStyle = _this$getDefaultedPro.innerViewWrapperStyle; - var _this$state2 = _this.state, - activeView = _this$state2.activeView, - transitioning = _this$state2.transitioning; - var style = _objectSpread(_objectSpread({}, baseViewStyle), viewStyle); - if (fillParent) { - Object.assign(style, fillStyle); - style.overflow = 'auto'; - if (rtl) style.right = "".concat(index * spacing * 100, "%");else style.left = "".concat(index * spacing * 100, "%"); - } else if (index > 0) { - if (rtl) style.marginRight = "".concat((spacing - 1) * 100, "%");else style.marginLeft = "".concat((spacing - 1) * 100, "%"); - } + }; + componentWillUnmount() { + for (const name in this.timeouts) clearTimeout(this.timeouts[name]); + } + getTransitionState = childIndex => { + const { + activeView, + prevActiveView + } = this.state; + if (prevActiveView == null) return childIndex === activeView ? 'in' : 'out'; + if (childIndex === activeView) return 'entering'; + if (childIndex === prevActiveView) return 'leaving'; + return 'out'; + }; + renderView = index => { + const { + fillParent, + prefixer, + keepViewsMounted, + spacing, + rtl, + viewStyle, + innerViewWrapperStyle + } = this.getDefaultedProps(); + const { + activeView, + transitioning + } = this.state; + const style = { + ...baseViewStyle, + ...viewStyle + }; + if (fillParent) { + Object.assign(style, fillStyle); + style.overflow = 'auto'; + if (rtl) style.right = `${index * spacing * 100}%`;else style.left = `${index * spacing * 100}%`; + } else if (index > 0) { + if (rtl) style.marginRight = `${(spacing - 1) * 100}%`;else style.marginLeft = `${(spacing - 1) * 100}%`; + } - // when not transitioning, render empty placeholder divs before the active view to push it into the right - // horizontal position - if (!transitioning && activeView !== index && !keepViewsMounted) { - return /*#__PURE__*/React.createElement("div", { - key: index, - style: prefixer(style) - }); - } + // when not transitioning, render empty placeholder divs before the active view to push it into the right + // horizontal position + if (!transitioning && activeView !== index && !keepViewsMounted) { return /*#__PURE__*/React.createElement("div", { key: index, - style: prefixer(style), - ref: function ref(c) { - return _this.views[index] = c !== null && c !== void 0 ? c : undefined; - } - }, /*#__PURE__*/React.createElement("div", { - style: prefixer(_objectSpread({ - width: '100%' - }, innerViewWrapperStyle)) - }, _this.props.renderView({ - index: index, - active: index === activeView, - transitionState: _this.getTransitionState(index) - }))); - }); - (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "animateHeight", function () { - var _this$getDefaultedPro2 = _this.getDefaultedProps(), - animateHeight = _this$getDefaultedPro2.animateHeight, - fillParent = _this$getDefaultedPro2.fillParent, - keepViewsMounted = _this$getDefaultedPro2.keepViewsMounted; - return animateHeight && !fillParent && !keepViewsMounted; - }); - (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "rootRef", function (node) { - _this.root = node !== null && node !== void 0 ? node : undefined; - var _this$getDefaultedPro3 = _this.getDefaultedProps(), - rootRef = _this$getDefaultedPro3.rootRef; - if (rootRef) rootRef(node); - }); - (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "viewportRef", function (node) { - _this.viewport = node !== null && node !== void 0 ? node : undefined; - var _this$getDefaultedPro4 = _this.getDefaultedProps(), - viewportRef = _this$getDefaultedPro4.viewportRef; - if (viewportRef) viewportRef(node); - }); - return _this; - } - (0, _createClass2["default"])(ViewSlider, [{ - key: "setTimeout", - value: function (_setTimeout) { - function setTimeout(_x, _x2, _x3) { - return _setTimeout.apply(this, arguments); - } - setTimeout.toString = function () { - return _setTimeout.toString(); - }; - return setTimeout; - }(function (name, callback, delay) { - if (this.timeouts[name]) clearTimeout(this.timeouts[name]); - this.timeouts[name] = setTimeout(callback, delay); - }) - }, { - key: "componentDidUpdate", - value: function componentDidUpdate() { - var _this2 = this; - var _this$getDefaultedPro5 = this.getDefaultedProps(), - activeView = _this$getDefaultedPro5.activeView, - transitionDuration = _this$getDefaultedPro5.transitionDuration, - keepViewsMounted = _this$getDefaultedPro5.keepViewsMounted; - var newState; - if (activeView !== this.state.activeView && this.state.height === undefined) { - if (keepViewsMounted) { - // scroll all views except the current back to the top - for (var i = 0; i < this.views.length; i++) { - if (i === this.state.activeView) continue; - var view = this.views[i]; - if (view) view.scrollTop = 0; - } - } - // phase 1: set current height - newState = { - height: this.measureHeight(this.views[this.state.activeView]) - }; - } else if (this.state.height !== undefined && !this.state.transitioning) { - // phase 2: enable transitions - newState = { - transitioning: true - }; - } else if (activeView !== this.state.activeView) { - // phase 3: change height/activeView - newState = { - activeView: activeView, - numViews: Math.max(this.state.numViews, activeView + 1), - prevActiveView: this.state.activeView, - height: this.measureHeight(this.views[activeView]) - }; - } - var finalNewState = newState; - if (!finalNewState) return; - this.setState(_objectSpread(_objectSpread({}, this.state), finalNewState), function () { - if (finalNewState.activeView != null) { - _this2.setTimeout('onTransitionEnd', _this2.onTransitionEnd, transitionDuration); - } + style: prefixer(style) }); } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - for (var _name in this.timeouts) { - clearTimeout(this.timeouts[_name]); - } + return /*#__PURE__*/React.createElement("div", { + key: index, + style: prefixer(style), + ref: c => this.views[index] = c ?? undefined + }, /*#__PURE__*/React.createElement("div", { + style: prefixer({ + width: '100%', + ...innerViewWrapperStyle + }) + }, this.props.renderView({ + index, + active: index === activeView, + transitionState: this.getTransitionState(index) + }))); + }; + animateHeight = () => { + const { + animateHeight, + fillParent, + keepViewsMounted + } = this.getDefaultedProps(); + return animateHeight && !fillParent && !keepViewsMounted; + }; + rootRef = node => { + this.root = node ?? undefined; + const { + rootRef + } = this.getDefaultedProps(); + if (rootRef) rootRef(node); + }; + viewportRef = node => { + this.viewport = node ?? undefined; + const { + viewportRef + } = this.getDefaultedProps(); + if (viewportRef) viewportRef(node); + }; + render() { + const { + style, + className, + viewportClassName, + viewportStyle, + prefixer, + fillParent, + transitionDuration, + transitionTimingFunction, + keepViewsMounted, + rtl, + spacing + } = this.getDefaultedProps(); + const animateHeight = this.animateHeight(); + const { + activeView, + numViews, + height, + transitioning + } = this.state; + const finalOuterStyle = { + transitionProperty: 'height', + transitionDuration: `${transitionDuration}ms`, + transitionTimingFunction, + overflow: 'hidden', + height: animateHeight && height != null ? height : undefined, + ...style + }; + const finalViewportStyle = { + position: 'relative', + transform: `translateX(calc(${activeView * spacing * (rtl ? 100 : -100)}% + 0px))`, + whiteSpace: 'nowrap', + minHeight: '100%', + direction: rtl ? 'rtl' : 'ltr', + transition: transitioning ? `transform ${transitionTimingFunction} ${transitionDuration}ms` : undefined, + ...viewportStyle + }; + if (fillParent) { + Object.assign(finalOuterStyle, fillStyle); + Object.assign(finalViewportStyle, fillStyle); } - }, { - key: "render", - value: function render() { - var _this$getDefaultedPro6 = this.getDefaultedProps(), - style = _this$getDefaultedPro6.style, - className = _this$getDefaultedPro6.className, - viewportClassName = _this$getDefaultedPro6.viewportClassName, - viewportStyle = _this$getDefaultedPro6.viewportStyle, - prefixer = _this$getDefaultedPro6.prefixer, - fillParent = _this$getDefaultedPro6.fillParent, - transitionDuration = _this$getDefaultedPro6.transitionDuration, - transitionTimingFunction = _this$getDefaultedPro6.transitionTimingFunction, - keepViewsMounted = _this$getDefaultedPro6.keepViewsMounted, - rtl = _this$getDefaultedPro6.rtl, - spacing = _this$getDefaultedPro6.spacing; - var animateHeight = this.animateHeight(); - var _this$state3 = this.state, - activeView = _this$state3.activeView, - numViews = _this$state3.numViews, - height = _this$state3.height, - transitioning = _this$state3.transitioning; - var finalOuterStyle = _objectSpread({ - transitionProperty: 'height', - transitionDuration: "".concat(transitionDuration, "ms"), - transitionTimingFunction: transitionTimingFunction, - overflow: 'hidden', - height: animateHeight && height != null ? height : undefined - }, style); - var finalViewportStyle = _objectSpread({ - position: 'relative', - transform: "translateX(calc(".concat(activeView * spacing * (rtl ? 100 : -100), "% + 0px))"), - whiteSpace: 'nowrap', - minHeight: '100%', - direction: rtl ? 'rtl' : 'ltr', - transition: transitioning ? "transform ".concat(transitionTimingFunction, " ").concat(transitionDuration, "ms") : undefined - }, viewportStyle); - if (fillParent) { - Object.assign(finalOuterStyle, fillStyle); - Object.assign(finalViewportStyle, fillStyle); - } - // when not transitioning, render empty placeholder divs before the active view to push it into the right - // horizontal position - var views = []; - for (var i = 0; i < (transitioning || keepViewsMounted ? numViews : activeView + 1); i++) { - views[i] = this.renderView(i); - } - return /*#__PURE__*/React.createElement("div", { - style: prefixer(finalOuterStyle), - className: className, - ref: this.rootRef - }, /*#__PURE__*/React.createElement("div", { - className: viewportClassName, - style: prefixer(finalViewportStyle), - ref: this.viewportRef, - onTransitionEnd: this.onTransitionEnd - }, views)); + // when not transitioning, render empty placeholder divs before the active view to push it into the right + // horizontal position + const views = []; + for (let i = 0; i < (transitioning || keepViewsMounted ? numViews : activeView + 1); i++) { + views[i] = this.renderView(i); } - }]); - return ViewSlider; -}(React.Component); -exports["default"] = ViewSlider; + return /*#__PURE__*/React.createElement("div", { + style: prefixer(finalOuterStyle), + className: className, + ref: this.rootRef + }, /*#__PURE__*/React.createElement("div", { + className: viewportClassName, + style: prefixer(finalViewportStyle), + ref: this.viewportRef, + onTransitionEnd: this.onTransitionEnd + }, views)); + } +} +exports.default = ViewSlider; //# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/fixtures/react-view-slider-ts/init-snapshot/dist/index.js.map b/fixtures/react-view-slider-ts/init-snapshot/dist/index.js.map index 4ab2b8a..ac6c830 100644 --- a/fixtures/react-view-slider-ts/init-snapshot/dist/index.js.map +++ b/fixtures/react-view-slider-ts/init-snapshot/dist/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","names":["React","_interopRequireWildcard","require","_inlineStylePrefixer","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","valueOf","e","ownKeys","object","enumerableOnly","keys","getOwnPropertySymbols","symbols","filter","sym","enumerable","push","_objectSpread","target","i","length","source","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","fillStyle","position","top","left","right","bottom","baseViewStyle","display","verticalAlign","whiteSpace","width","defaultProps","animateHeight","transitionDuration","transitionTimingFunction","keepViewsMounted","prefixer","prefix","style","viewportStyle","rtl","spacing","exports","applyDefaults","props","ViewSlider","_React$Component","_inherits2","_super","_this","_classCallCheck2","_len","args","Array","_key","concat","_assertThisInitialized2","height","undefined","transitioning","activeView","numViews","prevActiveView","lastProps","lastDefaultedProps","node","clientHeight","event","viewport","setState","onSlideTransitionEnd","childIndex","_this$state","state","index","_this$getDefaultedPro","getDefaultedProps","fillParent","viewStyle","innerViewWrapperStyle","_this$state2","assign","overflow","marginRight","marginLeft","createElement","ref","c","views","renderView","active","transitionState","getTransitionState","_this$getDefaultedPro2","root","_this$getDefaultedPro3","rootRef","_this$getDefaultedPro4","viewportRef","_createClass2","value","_setTimeout","setTimeout","_x","_x2","_x3","toString","name","callback","delay","timeouts","clearTimeout","componentDidUpdate","_this2","_this$getDefaultedPro5","newState","view","scrollTop","measureHeight","Math","max","finalNewState","onTransitionEnd","componentWillUnmount","render","_this$getDefaultedPro6","className","viewportClassName","_this$state3","finalOuterStyle","transitionProperty","finalViewportStyle","transform","minHeight","direction","transition","Component"],"sources":["src/index.tsx"],"sourcesContent":["/* @flow */\n/* eslint-env browser */\n\nimport * as React from 'react'\nimport { prefix, Prefix as Prefixer } from 'inline-style-prefixer'\n\ntype TransitionState = 'in' | 'out' | 'entering' | 'leaving'\n\nexport type ViewProps = {\n index: number\n active: boolean\n transitionState: TransitionState\n}\n\nexport type DefaultProps = {\n animateHeight: boolean\n keepViewsMounted: boolean\n transitionDuration: number\n transitionTimingFunction: string\n prefixer: Prefixer\n style: Record\n viewportStyle: Record\n rtl: boolean\n spacing: number\n}\n\nexport type Props = {\n activeView: number\n numViews: number\n renderView: (props: ViewProps) => React.ReactNode\n keepViewsMounted?: boolean\n animateHeight?: boolean\n transitionDuration?: number\n transitionTimingFunction?: string\n onSlideTransitionEnd?: () => unknown\n prefixer?: Prefixer\n fillParent?: boolean\n className?: string\n style?: Record\n viewportClassName?: string\n viewportStyle?: Record\n viewStyle?: Record\n innerViewWrapperStyle?: Record\n rootRef?: (node: React.ElementRef<'div'>) => unknown\n viewportRef?: (node: React.ElementRef<'div'>) => unknown\n rtl?: boolean\n spacing?: number\n}\n\ntype DefaultedProps = {\n activeView: number\n numViews: number\n renderView: (props: ViewProps) => React.ReactNode\n keepViewsMounted: boolean\n animateHeight: boolean\n transitionDuration: number\n transitionTimingFunction: string\n prefixer: Prefixer\n fillParent?: boolean\n className?: string\n style: Record\n viewportClassName?: string\n viewportStyle: Record\n viewStyle?: Record\n innerViewWrapperStyle?: Record\n rootRef?: (node: React.ElementRef<'div'> | null) => unknown\n viewportRef?: (node: React.ElementRef<'div'> | null) => unknown\n rtl: boolean\n spacing: number\n}\n\nexport type State = {\n height?: number\n transitioning: boolean\n activeView: number\n numViews: number\n prevActiveView?: number\n}\n\nconst fillStyle = {\n position: 'absolute',\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n}\n\nconst baseViewStyle = {\n display: 'inline-block',\n verticalAlign: 'top',\n whiteSpace: 'normal',\n width: '100%',\n}\n\nexport const defaultProps: DefaultProps = {\n animateHeight: true,\n transitionDuration: 500,\n transitionTimingFunction: 'ease',\n keepViewsMounted: false,\n prefixer: prefix,\n style: {},\n viewportStyle: {},\n rtl: false,\n spacing: 1,\n}\n\nfunction applyDefaults(props: Props): DefaultedProps {\n const result: any = { ...props }\n for (const key in defaultProps) {\n if (\n Object.prototype.hasOwnProperty.call(defaultProps, key) &&\n (props as any)[key] == null\n ) {\n result[key] = (defaultProps as any)[key]\n }\n }\n return result\n}\n\nexport default class ViewSlider extends React.Component {\n state: State = {\n height: undefined,\n transitioning: false,\n activeView: this.props.activeView,\n numViews: this.props.numViews,\n // this is used to determine the correct transitionState for the previous active view.\n prevActiveView: undefined,\n }\n root: HTMLDivElement | undefined\n viewport: HTMLDivElement | undefined\n views: Array = []\n timeouts: { [name: string]: any } = {}\n lastProps: Props = this.props\n lastDefaultedProps: DefaultedProps | undefined\n\n getDefaultedProps = (): DefaultedProps => {\n if (this.lastProps !== this.props || !this.lastDefaultedProps) {\n this.lastProps = this.props\n this.lastDefaultedProps = applyDefaults(this.props)\n }\n return this.lastDefaultedProps\n }\n\n measureHeight = (node: HTMLElement | undefined): number | undefined => {\n if (!node) return undefined\n return node.clientHeight\n }\n\n setTimeout(name: string, callback: () => any, delay: number) {\n if (this.timeouts[name]) clearTimeout(this.timeouts[name])\n this.timeouts[name] = setTimeout(callback, delay)\n }\n\n componentDidUpdate() {\n const { activeView, transitionDuration, keepViewsMounted } =\n this.getDefaultedProps()\n let newState: Partial | undefined\n\n if (\n activeView !== this.state.activeView &&\n this.state.height === undefined\n ) {\n if (keepViewsMounted) {\n // scroll all views except the current back to the top\n for (let i = 0; i < this.views.length; i++) {\n if (i === this.state.activeView) continue\n const view = this.views[i]\n if (view) view.scrollTop = 0\n }\n }\n // phase 1: set current height\n newState = {\n height: this.measureHeight(this.views[this.state.activeView]),\n }\n } else if (this.state.height !== undefined && !this.state.transitioning) {\n // phase 2: enable transitions\n newState = { transitioning: true }\n } else if (activeView !== this.state.activeView) {\n // phase 3: change height/activeView\n newState = {\n activeView,\n numViews: Math.max(this.state.numViews, activeView + 1),\n prevActiveView: this.state.activeView,\n height: this.measureHeight(this.views[activeView]),\n }\n }\n\n const finalNewState = newState\n if (!finalNewState) return\n\n this.setState({ ...this.state, ...finalNewState }, () => {\n if (finalNewState.activeView != null) {\n this.setTimeout(\n 'onTransitionEnd',\n this.onTransitionEnd,\n transitionDuration\n )\n }\n })\n }\n\n onTransitionEnd = (event?: React.TransitionEvent) => {\n // ignore transitionend events from deeper components\n if (event && event.target !== this.viewport) return\n // phase 0: unset height and disable transitions\n this.setState(\n {\n height: undefined,\n numViews: this.props.numViews,\n prevActiveView: undefined,\n transitioning: false,\n },\n () => {\n const { onSlideTransitionEnd } = this.props\n if (onSlideTransitionEnd) onSlideTransitionEnd()\n }\n )\n }\n\n componentWillUnmount() {\n for (const name in this.timeouts) clearTimeout(this.timeouts[name])\n }\n\n getTransitionState: (childIndex: number) => TransitionState = (\n childIndex: number\n ): TransitionState => {\n const { activeView, prevActiveView } = this.state\n if (prevActiveView == null) return childIndex === activeView ? 'in' : 'out'\n if (childIndex === activeView) return 'entering'\n if (childIndex === prevActiveView) return 'leaving'\n return 'out'\n }\n\n renderView = (index: number): React.ReactNode => {\n const {\n fillParent,\n prefixer,\n keepViewsMounted,\n spacing,\n rtl,\n viewStyle,\n innerViewWrapperStyle,\n } = this.getDefaultedProps()\n const { activeView, transitioning } = this.state\n\n const style: any = { ...baseViewStyle, ...viewStyle }\n if (fillParent) {\n Object.assign(style, fillStyle)\n style.overflow = 'auto'\n if (rtl) style.right = `${index * spacing * 100}%`\n else style.left = `${index * spacing * 100}%`\n } else if (index > 0) {\n if (rtl) style.marginRight = `${(spacing - 1) * 100}%`\n else style.marginLeft = `${(spacing - 1) * 100}%`\n }\n\n // when not transitioning, render empty placeholder divs before the active view to push it into the right\n // horizontal position\n if (!transitioning && activeView !== index && !keepViewsMounted) {\n return
\n }\n return (\n (this.views[index] = c ?? undefined)}\n >\n
\n {this.props.renderView({\n index,\n active: index === activeView,\n transitionState: this.getTransitionState(index),\n })}\n
\n
\n )\n }\n\n animateHeight = (): boolean => {\n const { animateHeight, fillParent, keepViewsMounted } =\n this.getDefaultedProps()\n return animateHeight && !fillParent && !keepViewsMounted\n }\n\n rootRef = (node: React.ElementRef<'div'> | null) => {\n this.root = node ?? undefined\n const { rootRef } = this.getDefaultedProps()\n if (rootRef) rootRef(node)\n }\n viewportRef = (node: React.ElementRef<'div'> | null) => {\n this.viewport = node ?? undefined\n const { viewportRef } = this.getDefaultedProps()\n if (viewportRef) viewportRef(node)\n }\n\n render(): React.ReactElement<'div'> {\n const {\n style,\n className,\n viewportClassName,\n viewportStyle,\n prefixer,\n fillParent,\n transitionDuration,\n transitionTimingFunction,\n keepViewsMounted,\n rtl,\n spacing,\n } = this.getDefaultedProps()\n const animateHeight = this.animateHeight()\n const { activeView, numViews, height, transitioning } = this.state\n\n const finalOuterStyle = {\n transitionProperty: 'height',\n transitionDuration: `${transitionDuration}ms`,\n transitionTimingFunction,\n overflow: 'hidden',\n height: animateHeight && height != null ? height : undefined,\n ...style,\n }\n\n const finalViewportStyle = {\n position: 'relative',\n transform: `translateX(calc(${\n activeView * spacing * (rtl ? 100 : -100)\n }% + 0px))`,\n whiteSpace: 'nowrap',\n minHeight: '100%',\n direction: rtl ? 'rtl' : 'ltr',\n transition: transitioning\n ? `transform ${transitionTimingFunction} ${transitionDuration}ms`\n : undefined,\n ...viewportStyle,\n }\n if (fillParent) {\n Object.assign(finalOuterStyle, fillStyle)\n Object.assign(finalViewportStyle, fillStyle)\n }\n\n // when not transitioning, render empty placeholder divs before the active view to push it into the right\n // horizontal position\n const views: React.ReactNode[] = []\n for (\n let i = 0;\n i < (transitioning || keepViewsMounted ? numViews : activeView + 1);\n i++\n ) {\n views[i] = this.renderView(i)\n }\n\n return (\n \n \n {views}\n \n \n )\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;AAGA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,oBAAA,GAAAD,OAAA;AAAkE,SAAAE,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAJ,wBAAAQ,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,aAAAE,OAAA,CAAAF,GAAA,yBAAAA,GAAA,uCAAAA,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAA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C,GAAG,EAAE,IAAI,CAACU;MAAQ,gBAElB7I,KAAA,CAAAkI,aAAA;QACEyC,SAAS,EAAEC,iBAAkB;QAC7BzF,KAAK,EAAEF,QAAQ,CAAC+F,kBAAkB,CAAS;QAC3C7C,GAAG,EAAE,IAAI,CAACY,WAAY;QACtBwB,eAAe,EAAE,IAAI,CAACA;MAAgB,GAErClC,KACE,CACF,CAAC;IAEV;EAAC;EAAA,OAAA3C,UAAA;AAAA,EAvPqC1F,KAAK,CAACqL,SAAS;AAAA9F,OAAA,cAAAG,UAAA"} +{"version":3,"file":"index.js","names":["React","_interopRequireWildcard","require","_inlineStylePrefixer","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","fillStyle","position","top","left","right","bottom","baseViewStyle","display","verticalAlign","whiteSpace","width","defaultProps","animateHeight","transitionDuration","transitionTimingFunction","keepViewsMounted","prefixer","prefix","style","viewportStyle","rtl","spacing","exports","applyDefaults","props","result","ViewSlider","Component","state","height","undefined","transitioning","activeView","numViews","prevActiveView","root","viewport","views","timeouts","lastProps","lastDefaultedProps","getDefaultedProps","measureHeight","node","clientHeight","setTimeout","name","callback","delay","clearTimeout","componentDidUpdate","newState","i","length","view","scrollTop","Math","max","finalNewState","setState","onTransitionEnd","event","target","onSlideTransitionEnd","componentWillUnmount","getTransitionState","childIndex","renderView","index","fillParent","viewStyle","innerViewWrapperStyle","assign","overflow","marginRight","marginLeft","createElement","ref","c","active","transitionState","rootRef","viewportRef","render","className","viewportClassName","finalOuterStyle","transitionProperty","finalViewportStyle","transform","minHeight","direction","transition"],"sources":["src/index.tsx"],"sourcesContent":["/* @flow */\n/* eslint-env browser */\n\nimport * as React from 'react'\nimport { prefix, Prefix as Prefixer } from 'inline-style-prefixer'\n\ntype TransitionState = 'in' | 'out' | 'entering' | 'leaving'\n\nexport type ViewProps = {\n index: number\n active: boolean\n transitionState: TransitionState\n}\n\nexport type DefaultProps = {\n animateHeight: boolean\n keepViewsMounted: boolean\n transitionDuration: number\n transitionTimingFunction: string\n prefixer: Prefixer\n style: Record\n viewportStyle: Record\n rtl: boolean\n spacing: number\n}\n\nexport type Props = {\n activeView: number\n numViews: number\n renderView: (props: ViewProps) => React.ReactNode\n keepViewsMounted?: boolean\n animateHeight?: boolean\n transitionDuration?: number\n transitionTimingFunction?: string\n onSlideTransitionEnd?: () => unknown\n prefixer?: Prefixer\n fillParent?: boolean\n className?: string\n style?: Record\n viewportClassName?: string\n viewportStyle?: Record\n viewStyle?: Record\n innerViewWrapperStyle?: Record\n rootRef?: (node: React.ElementRef<'div'>) => unknown\n viewportRef?: (node: React.ElementRef<'div'>) => unknown\n rtl?: boolean\n spacing?: number\n}\n\ntype DefaultedProps = {\n activeView: number\n numViews: number\n renderView: (props: ViewProps) => React.ReactNode\n keepViewsMounted: boolean\n animateHeight: boolean\n transitionDuration: number\n transitionTimingFunction: string\n prefixer: Prefixer\n fillParent?: boolean\n className?: string\n style: Record\n viewportClassName?: string\n viewportStyle: Record\n viewStyle?: Record\n innerViewWrapperStyle?: Record\n rootRef?: (node: React.ElementRef<'div'> | null) => unknown\n viewportRef?: (node: React.ElementRef<'div'> | null) => unknown\n rtl: boolean\n spacing: number\n}\n\nexport type State = {\n height?: number\n transitioning: boolean\n activeView: number\n numViews: number\n prevActiveView?: number\n}\n\nconst fillStyle = {\n position: 'absolute',\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n}\n\nconst baseViewStyle = {\n display: 'inline-block',\n verticalAlign: 'top',\n whiteSpace: 'normal',\n width: '100%',\n}\n\nexport const defaultProps: DefaultProps = {\n animateHeight: true,\n transitionDuration: 500,\n transitionTimingFunction: 'ease',\n keepViewsMounted: false,\n prefixer: prefix,\n style: {},\n viewportStyle: {},\n rtl: false,\n spacing: 1,\n}\n\nfunction applyDefaults(props: Props): DefaultedProps {\n const result: any = { ...props }\n for (const key in defaultProps) {\n if (\n Object.prototype.hasOwnProperty.call(defaultProps, key) &&\n (props as any)[key] == null\n ) {\n result[key] = (defaultProps as any)[key]\n }\n }\n return result\n}\n\nexport default class ViewSlider extends React.Component {\n state: State = {\n height: undefined,\n transitioning: false,\n activeView: this.props.activeView,\n numViews: this.props.numViews,\n // this is used to determine the correct transitionState for the previous active view.\n prevActiveView: undefined,\n }\n root: HTMLDivElement | undefined\n viewport: HTMLDivElement | undefined\n views: Array = []\n timeouts: { [name: string]: any } = {}\n lastProps: Props = this.props\n lastDefaultedProps: DefaultedProps | undefined\n\n getDefaultedProps = (): DefaultedProps => {\n if (this.lastProps !== this.props || !this.lastDefaultedProps) {\n this.lastProps = this.props\n this.lastDefaultedProps = applyDefaults(this.props)\n }\n return this.lastDefaultedProps\n }\n\n measureHeight = (node: HTMLElement | undefined): number | undefined => {\n if (!node) return undefined\n return node.clientHeight\n }\n\n setTimeout(name: string, callback: () => any, delay: number) {\n if (this.timeouts[name]) clearTimeout(this.timeouts[name])\n this.timeouts[name] = setTimeout(callback, delay)\n }\n\n componentDidUpdate() {\n const { activeView, transitionDuration, keepViewsMounted } =\n this.getDefaultedProps()\n let newState: Partial | undefined\n\n if (\n activeView !== this.state.activeView &&\n this.state.height === undefined\n ) {\n if (keepViewsMounted) {\n // scroll all views except the current back to the top\n for (let i = 0; i < this.views.length; i++) {\n if (i === this.state.activeView) continue\n const view = this.views[i]\n if (view) view.scrollTop = 0\n }\n }\n // phase 1: set current height\n newState = {\n height: this.measureHeight(this.views[this.state.activeView]),\n }\n } else if (this.state.height !== undefined && !this.state.transitioning) {\n // phase 2: enable transitions\n newState = { transitioning: true }\n } else if (activeView !== this.state.activeView) {\n // phase 3: change height/activeView\n newState = {\n activeView,\n numViews: Math.max(this.state.numViews, activeView + 1),\n prevActiveView: this.state.activeView,\n height: this.measureHeight(this.views[activeView]),\n }\n }\n\n const finalNewState = newState\n if (!finalNewState) return\n\n this.setState({ ...this.state, ...finalNewState }, () => {\n if (finalNewState.activeView != null) {\n this.setTimeout(\n 'onTransitionEnd',\n this.onTransitionEnd,\n transitionDuration\n )\n }\n })\n }\n\n onTransitionEnd = (event?: React.TransitionEvent) => {\n // ignore transitionend events from deeper components\n if (event && event.target !== this.viewport) return\n // phase 0: unset height and disable transitions\n this.setState(\n {\n height: undefined,\n numViews: this.props.numViews,\n prevActiveView: undefined,\n transitioning: false,\n },\n () => {\n const { onSlideTransitionEnd } = this.props\n if (onSlideTransitionEnd) onSlideTransitionEnd()\n }\n )\n }\n\n componentWillUnmount() {\n for (const name in this.timeouts) clearTimeout(this.timeouts[name])\n }\n\n getTransitionState: (childIndex: number) => TransitionState = (\n childIndex: number\n ): TransitionState => {\n const { activeView, prevActiveView } = this.state\n if (prevActiveView == null) return childIndex === activeView ? 'in' : 'out'\n if (childIndex === activeView) return 'entering'\n if (childIndex === prevActiveView) return 'leaving'\n return 'out'\n }\n\n renderView = (index: number): React.ReactNode => {\n const {\n fillParent,\n prefixer,\n keepViewsMounted,\n spacing,\n rtl,\n viewStyle,\n innerViewWrapperStyle,\n } = this.getDefaultedProps()\n const { activeView, transitioning } = this.state\n\n const style: any = { ...baseViewStyle, ...viewStyle }\n if (fillParent) {\n Object.assign(style, fillStyle)\n style.overflow = 'auto'\n if (rtl) style.right = `${index * spacing * 100}%`\n else style.left = `${index * spacing * 100}%`\n } else if (index > 0) {\n if (rtl) style.marginRight = `${(spacing - 1) * 100}%`\n else style.marginLeft = `${(spacing - 1) * 100}%`\n }\n\n // when not transitioning, render empty placeholder divs before the active view to push it into the right\n // horizontal position\n if (!transitioning && activeView !== index && !keepViewsMounted) {\n return
\n }\n return (\n (this.views[index] = c ?? undefined)}\n >\n
\n {this.props.renderView({\n index,\n active: index === activeView,\n transitionState: this.getTransitionState(index),\n })}\n
\n
\n )\n }\n\n animateHeight = (): boolean => {\n const { animateHeight, fillParent, keepViewsMounted } =\n this.getDefaultedProps()\n return animateHeight && !fillParent && !keepViewsMounted\n }\n\n rootRef = (node: React.ElementRef<'div'> | null) => {\n this.root = node ?? undefined\n const { rootRef } = this.getDefaultedProps()\n if (rootRef) rootRef(node)\n }\n viewportRef = (node: React.ElementRef<'div'> | null) => {\n this.viewport = node ?? undefined\n const { viewportRef } = this.getDefaultedProps()\n if (viewportRef) viewportRef(node)\n }\n\n render(): React.ReactElement<'div'> {\n const {\n style,\n className,\n viewportClassName,\n viewportStyle,\n prefixer,\n fillParent,\n transitionDuration,\n transitionTimingFunction,\n keepViewsMounted,\n rtl,\n spacing,\n } = this.getDefaultedProps()\n const animateHeight = this.animateHeight()\n const { activeView, numViews, height, transitioning } = this.state\n\n const finalOuterStyle = {\n transitionProperty: 'height',\n transitionDuration: `${transitionDuration}ms`,\n transitionTimingFunction,\n overflow: 'hidden',\n height: animateHeight && height != null ? height : undefined,\n ...style,\n }\n\n const finalViewportStyle = {\n position: 'relative',\n transform: `translateX(calc(${\n activeView * spacing * (rtl ? 100 : -100)\n }% + 0px))`,\n whiteSpace: 'nowrap',\n minHeight: '100%',\n direction: rtl ? 'rtl' : 'ltr',\n transition: transitioning\n ? `transform ${transitionTimingFunction} ${transitionDuration}ms`\n : undefined,\n ...viewportStyle,\n }\n if (fillParent) {\n Object.assign(finalOuterStyle, fillStyle)\n Object.assign(finalViewportStyle, fillStyle)\n }\n\n // when not transitioning, render empty placeholder divs before the active view to push it into the right\n // horizontal position\n const views: React.ReactNode[] = []\n for (\n let i = 0;\n i < (transitioning || keepViewsMounted ? numViews : activeView + 1);\n i++\n ) {\n views[i] = this.renderView(i)\n }\n\n return (\n \n \n {views}\n \n \n )\n }\n}\n"],"mappings":";;;;;;AAGA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,oBAAA,GAAAD,OAAA;AAAkE,SAAAE,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,W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AG,mBACVzD,UAAU,GAAGX,OAAO,IAAID,GAAG,GAAG,GAAG,GAAG,CAAC,GAAG,CACzC,WAAU;MACXX,UAAU,EAAE,QAAQ;MACpBiF,SAAS,EAAE,MAAM;MACjBC,SAAS,EAAEvE,GAAG,GAAG,KAAK,GAAG,KAAK;MAC9BwE,UAAU,EAAE7D,aAAa,GACpB,aAAYjB,wBAAyB,IAAGD,kBAAmB,IAAG,GAC/DiB,SAAS;MACb,GAAGX;IACL,CAAC;IACD,IAAIkD,UAAU,EAAE;MACd9E,MAAM,CAACiF,MAAM,CAACc,eAAe,EAAEtF,SAAS,CAAC;MACzCT,MAAM,CAACiF,MAAM,CAACgB,kBAAkB,EAAExF,SAAS,CAAC;IAC9C;;IAEA;IACA;IACA,MAAMqC,KAAwB,GAAG,EAAE;IACnC,KACE,IAAIe,CAAC,GAAG,CAAC,EACTA,CAAC,IAAIrB,aAAa,IAAIhB,gBAAgB,GAAGkB,QAAQ,GAAGD,UAAU,GAAG,CAAC,CAAC,EACnEoB,CAAC,EAAE,EACH;MACAf,KAAK,CAACe,CAAC,CAAC,GAAG,IAAI,CAACe,UAAU,CAACf,CAAC,CAAC;IAC/B;IAEA,oBACE9E,KAAA,CAAAsG,aAAA;MACE1D,KAAK,EAAEF,QAAQ,CAACsE,eAAe,CAAE;MACjCF,SAAS,EAAEA,SAAU;MACrBP,GAAG,EAAE,IAAI,CAACI;IAAQ,gBAElB3G,KAAA,CAAAsG,aAAA;MACEQ,SAAS,EAAEC,iBAAkB;MAC7BnE,KAAK,EAAEF,QAAQ,CAACwE,kBAAkB,CAAS;MAC3CX,GAAG,EAAE,IAAI,CAACK,WAAY;MACtBtB,eAAe,EAAE,IAAI,CAACA;IAAgB,GAErCvB,KACE,CACF,CAAC;EAEV;AACF;AAACf,OAAA,CAAArC,OAAA,GAAAyC,UAAA"} diff --git a/fixtures/react-view-slider-ts/init-snapshot/dist/package.json b/fixtures/react-view-slider-ts/init-snapshot/dist/package.json index 8005b4b..ac59017 100644 --- a/fixtures/react-view-slider-ts/init-snapshot/dist/package.json +++ b/fixtures/react-view-slider-ts/init-snapshot/dist/package.json @@ -19,7 +19,6 @@ }, "homepage": "https://github.com/jcoreio/react-view-slider#readme", "dependencies": { - "@babel/runtime": "^7.18.6", "@types/mocha": "^10.0.0", "@types/react": "^18.0.14", "inline-style-prefixer": "^5.0.0", diff --git a/fixtures/react-view-slider-ts/init-snapshot/dist/pnpm-lock.yaml b/fixtures/react-view-slider-ts/init-snapshot/dist/pnpm-lock.yaml index 5aa2d40..5099feb 100644 --- a/fixtures/react-view-slider-ts/init-snapshot/dist/pnpm-lock.yaml +++ b/fixtures/react-view-slider-ts/init-snapshot/dist/pnpm-lock.yaml @@ -7,7 +7,7 @@ settings: dependencies: '@babel/runtime': specifier: ^7.18.6 - version: 7.25.6 + version: 7.26.0 '@types/mocha': specifier: ^10.0.0 version: 10.0.0 @@ -24,10 +24,10 @@ dependencies: devDependencies: '@babel/plugin-syntax-flow': specifier: ^7.14.5 - version: 7.24.7(@babel/core@7.4.3) + version: 7.26.0(@babel/core@7.4.3) '@babel/plugin-transform-react-jsx': specifier: ^7.14.9 - version: 7.25.2(@babel/core@7.4.3) + version: 7.25.9(@babel/core@7.4.3) '@jcoreio/eslint-plugin-implicit-dependencies': specifier: ^1.1.1 version: 1.1.1 @@ -60,7 +60,7 @@ devDependencies: version: 13.3.0(react-dom@18.0.0)(react@18.0.0) '@types/chai': specifier: ^4.3.5 - version: 4.3.19 + version: 4.3.20 '@types/inline-style-prefixer': specifier: ^5.0.0 version: 5.0.0 @@ -69,10 +69,10 @@ devDependencies: version: 17.0.0 '@typescript-eslint/eslint-plugin': specifier: ^7.6.0 - version: 7.18.0(@typescript-eslint/parser@7.18.0)(eslint@8.57.0)(typescript@5.5.4) + version: 7.18.0(@typescript-eslint/parser@7.18.0)(eslint@8.57.1)(typescript@5.6.3) '@typescript-eslint/parser': specifier: ^7.6.0 - version: 7.18.0(eslint@8.57.0)(typescript@5.5.4) + version: 7.18.0(eslint@8.57.1)(typescript@5.6.3) babel-plugin-lodash: specifier: ^3.3.4 version: 3.3.4 @@ -90,19 +90,19 @@ devDependencies: version: 2.0.0 eslint: specifier: ^8.56.0 - version: 8.57.0 + version: 8.57.1 eslint-config-prettier: specifier: ^3.3.0 - version: 3.6.0(eslint@8.57.0) + version: 3.6.0(eslint@8.57.1) eslint-plugin-flowtype: specifier: ^8.0.3 - version: 8.0.3(@babel/plugin-syntax-flow@7.24.7)(@babel/plugin-transform-react-jsx@7.25.2)(eslint@8.57.0) + version: 8.0.3(@babel/plugin-syntax-flow@7.26.0)(@babel/plugin-transform-react-jsx@7.25.9)(eslint@8.57.1) eslint-plugin-no-only-tests: specifier: ^3.1.0 version: 3.3.0 eslint-plugin-react: specifier: ^7.32.2 - version: 7.35.0(eslint@8.57.0) + version: 7.35.0(eslint@8.57.1) flow-bin: specifier: ^0.113.0 version: 0.113.0 @@ -120,7 +120,7 @@ devDependencies: version: 22.1.0 mocha: specifier: ^10.2.0 - version: 10.7.3 + version: 10.8.2 react: specifier: ^18.0.0 version: 18.0.0 @@ -135,29 +135,30 @@ devDependencies: version: 14.0.0 typescript: specifier: ^5.1.0 - version: 5.5.4 + version: 5.6.3 packages: - /@babel/code-frame@7.24.7: - resolution: {integrity: sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==} + /@babel/code-frame@7.26.2: + resolution: {integrity: sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ==} engines: {node: '>=6.9.0'} dependencies: - '@babel/highlight': 7.24.7 - picocolors: 1.0.1 + '@babel/helper-validator-identifier': 7.25.9 + js-tokens: 4.0.0 + picocolors: 1.1.1 dev: true /@babel/core@7.4.3: resolution: {integrity: sha512-oDpASqKFlbspQfzAE7yaeTmdljSH2ADIvBlb0RwbStltTuWa0+7CCI1fYVINNv9saHPa1W7oaKeuNuKj+RQCvA==} engines: {node: '>=6.9.0'} dependencies: - '@babel/code-frame': 7.24.7 + '@babel/code-frame': 7.26.2 '@babel/generator': 7.4.0 '@babel/helpers': 7.4.3 '@babel/parser': 7.4.3 '@babel/template': 7.4.0 '@babel/traverse': 7.4.3 - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 convert-source-map: 1.6.0 debug: 4.1.1 json5: 2.1.0 @@ -169,31 +170,32 @@ packages: - supports-color dev: true - /@babel/generator@7.25.6: - resolution: {integrity: sha512-VPC82gr1seXOpkjAAKoLhP50vx4vGNlF4msF64dSFq1P8RfB+QAuJWGHPXXPc8QyfVWwwB/TNNU4+ayZmHNbZw==} + /@babel/generator@7.26.2: + resolution: {integrity: sha512-zevQbhbau95nkoxSq3f/DC/SC+EEOUZd3DYqfSkMhY2/wfSeaHV1Ew4vk8e+x8lja31IbyuUa2uQ3JONqKbysw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.25.6 + '@babel/parser': 7.26.2 + '@babel/types': 7.26.0 '@jridgewell/gen-mapping': 0.3.5 '@jridgewell/trace-mapping': 0.3.25 - jsesc: 2.5.2 + jsesc: 3.0.2 dev: true /@babel/generator@7.4.0: resolution: {integrity: sha512-/v5I+a1jhGSKLgZDcmAUZ4K/VePi43eRkUs3yePW1HB1iANOD5tqJXwGSG4BZhSksP8J9ejSlwGeTiiOFZOrXQ==} dependencies: - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 jsesc: 2.5.2 lodash: 4.17.11 source-map: 0.5.7 trim-right: 1.0.1 dev: true - /@babel/helper-annotate-as-pure@7.24.7: - resolution: {integrity: sha512-BaDeOonYvhdKw+JoMVkAixAAJzG2jVPIwWoKBPdYuY9b452e2rPuI9QPYh3KpofZ3pW2akOmwZLOiOsHMiqRAg==} + /@babel/helper-annotate-as-pure@7.25.9: + resolution: {integrity: sha512-gv7320KBUFJz1RnylIg5WWYPRXKZ884AGkYpgpWW02TH66Dl+HaC1t1CKd0z3R4b6hdYEcmrNZHUmfCP+1u3/g==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 dev: true /@babel/helper-function-name@7.1.0: @@ -201,49 +203,49 @@ packages: dependencies: '@babel/helper-get-function-arity': 7.0.0 '@babel/template': 7.4.0 - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 dev: true /@babel/helper-get-function-arity@7.0.0: resolution: {integrity: sha512-r2DbJeg4svYvt3HOS74U4eWKsUAMRH01Z1ds1zx8KNTPtpTL5JAsdFv8BNyOpVqdFhHkkRDIg5B4AsxmkjAlmQ==} dependencies: - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 dev: true /@babel/helper-module-imports@7.0.0: resolution: {integrity: sha512-aP/hlLq01DWNEiDg4Jn23i+CXxW/owM4WpDLFUbpjxe4NS3BhLVZQ5i7E0ZrxuQ/vwekIeciyamgB1UIYxxM6A==} dependencies: - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 dev: true - /@babel/helper-module-imports@7.24.7: - resolution: {integrity: sha512-8AyH3C+74cgCVVXow/myrynrAGv+nTVg5vKu2nZph9x7RcRwzmh0VFallJuFTZ9mx6u4eSdXZfcOzSqTUm0HCA==} + /@babel/helper-module-imports@7.25.9: + resolution: {integrity: sha512-tnUA4RsrmflIM6W6RFTLFSXITtl0wKjgpnLgXyowocVPrbYrLUXSBXDgTs8BlbmIzIdlBySRQjINYs2BAkiLtw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/traverse': 7.25.6 - '@babel/types': 7.25.6 + '@babel/traverse': 7.25.9 + '@babel/types': 7.26.0 transitivePeerDependencies: - supports-color dev: true - /@babel/helper-plugin-utils@7.24.8: - resolution: {integrity: sha512-FFWx5142D8h2Mgr/iPVGH5G7w6jDn4jUSpZTyDnQO0Yn7Ks2Kuz6Pci8H6MPCoUJegd/UZQ3tAvfLCxQSnWWwg==} + /@babel/helper-plugin-utils@7.25.9: + resolution: {integrity: sha512-kSMlyUVdWe25rEsRGviIgOWnoT/nfABVWlqt9N19/dIPWViAOW2s9wznP5tURbs/IDuNk4gPy3YdYRgH3uxhBw==} engines: {node: '>=6.9.0'} dev: true /@babel/helper-split-export-declaration@7.4.0: resolution: {integrity: sha512-7Cuc6JZiYShaZnybDmfwhY4UYHzI6rlqhWjaIqbsJGsIqPimEYy5uh3akSRLMg65LSdSEnJ8a8/bWQN6u2oMGw==} dependencies: - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 dev: true - /@babel/helper-string-parser@7.24.8: - resolution: {integrity: sha512-pO9KhhRcuUyGnJWwyEgnRJTSIZHiT+vMD0kPeD+so0l7mxkMT19g3pjY9GTnHySck/hDzq+dtW/4VgnMkippsQ==} + /@babel/helper-string-parser@7.25.9: + resolution: {integrity: sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==} engines: {node: '>=6.9.0'} dev: true - /@babel/helper-validator-identifier@7.24.7: - resolution: {integrity: sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==} + /@babel/helper-validator-identifier@7.25.9: + resolution: {integrity: sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==} engines: {node: '>=6.9.0'} dev: true @@ -252,27 +254,17 @@ packages: dependencies: '@babel/template': 7.4.0 '@babel/traverse': 7.4.3 - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 transitivePeerDependencies: - supports-color dev: true - /@babel/highlight@7.24.7: - resolution: {integrity: sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/helper-validator-identifier': 7.24.7 - chalk: 2.4.2 - js-tokens: 4.0.0 - picocolors: 1.0.1 - dev: true - - /@babel/parser@7.25.6: - resolution: {integrity: sha512-trGdfBdbD0l1ZPmcJ83eNxB9rbEax4ALFTF7fN386TMYbeCQbyme5cOEXQhbGXKebwGaB/J52w1mrklMcbgy6Q==} + /@babel/parser@7.26.2: + resolution: {integrity: sha512-DWMCZH9WA4Maitz2q21SRKHo9QXZxkDsbNZoVD62gusNtNBBqDg9i7uOhASfTfIGNzW+O+r7+jAlM8dwphcJKQ==} engines: {node: '>=6.0.0'} hasBin: true dependencies: - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 dev: true /@babel/parser@7.4.3: @@ -280,78 +272,78 @@ packages: engines: {node: '>=6.0.0'} hasBin: true dependencies: - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 dev: true - /@babel/plugin-syntax-flow@7.24.7(@babel/core@7.4.3): - resolution: {integrity: sha512-9G8GYT/dxn/D1IIKOUBmGX0mnmj46mGH9NnZyJLwtCpgh5f7D2VbuKodb+2s9m1Yavh1s7ASQN8lf0eqrb1LTw==} + /@babel/plugin-syntax-flow@7.26.0(@babel/core@7.4.3): + resolution: {integrity: sha512-B+O2DnPc0iG+YXFqOxv2WNuNU97ToWjOomUQ78DouOENWUaM5sVrmet9mcomUGQFwpJd//gvUagXBSdzO1fRKg==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.4.3 - '@babel/helper-plugin-utils': 7.24.8 + '@babel/helper-plugin-utils': 7.25.9 dev: true - /@babel/plugin-syntax-jsx@7.24.7(@babel/core@7.4.3): - resolution: {integrity: sha512-6ddciUPe/mpMnOKv/U+RSd2vvVy+Yw/JfBB0ZHYjEZt9NLHmCUylNYlsbqCCS1Bffjlb0fCwC9Vqz+sBz6PsiQ==} + /@babel/plugin-syntax-jsx@7.25.9(@babel/core@7.4.3): + resolution: {integrity: sha512-ld6oezHQMZsZfp6pWtbjaNDF2tiiCYYDqQszHt5VV437lewP9aSi2Of99CK0D0XB21k7FLgnLcmQKyKzynfeAA==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.4.3 - '@babel/helper-plugin-utils': 7.24.8 + '@babel/helper-plugin-utils': 7.25.9 dev: true - /@babel/plugin-transform-react-jsx@7.25.2(@babel/core@7.4.3): - resolution: {integrity: sha512-KQsqEAVBpU82NM/B/N9j9WOdphom1SZH3R+2V7INrQUH+V9EBFwZsEJl8eBIVeQE62FxJCc70jzEZwqU7RcVqA==} + /@babel/plugin-transform-react-jsx@7.25.9(@babel/core@7.4.3): + resolution: {integrity: sha512-s5XwpQYCqGerXl+Pu6VDL3x0j2d82eiV77UJ8a2mDHAW7j9SWRqQ2y1fNo1Z74CdcYipl5Z41zvjj4Nfzq36rw==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.4.3 - '@babel/helper-annotate-as-pure': 7.24.7 - '@babel/helper-module-imports': 7.24.7 - '@babel/helper-plugin-utils': 7.24.8 - '@babel/plugin-syntax-jsx': 7.24.7(@babel/core@7.4.3) - '@babel/types': 7.25.6 + '@babel/helper-annotate-as-pure': 7.25.9 + '@babel/helper-module-imports': 7.25.9 + '@babel/helper-plugin-utils': 7.25.9 + '@babel/plugin-syntax-jsx': 7.25.9(@babel/core@7.4.3) + '@babel/types': 7.26.0 transitivePeerDependencies: - supports-color dev: true - /@babel/runtime@7.25.6: - resolution: {integrity: sha512-VBj9MYyDb9tuLq7yzqjgzt6Q+IBQLrGZfdjOekyEirZPHxXWoTSGUTMrpsfi58Up73d13NfYLv8HT9vmznjzhQ==} + /@babel/runtime@7.26.0: + resolution: {integrity: sha512-FDSOghenHTiToteC/QRlv2q3DhPZ/oOXTBoirfWNx1Cx3TMVcGWQtMMmQcSvb/JjpNeGzx8Pq/b4fKEJuWm1sw==} engines: {node: '>=6.9.0'} dependencies: regenerator-runtime: 0.14.1 - /@babel/template@7.25.0: - resolution: {integrity: sha512-aOOgh1/5XzKvg1jvVz7AVrx2piJ2XBi227DHmbY6y+bM9H2FlN+IfecYu4Xl0cNiiVejlsCri89LUsbj8vJD9Q==} + /@babel/template@7.25.9: + resolution: {integrity: sha512-9DGttpmPvIxBb/2uwpVo3dqJ+O6RooAFOS+lB+xDqoE2PVCE8nfoHMdZLpfCQRLwvohzXISPZcgxt80xLfsuwg==} engines: {node: '>=6.9.0'} dependencies: - '@babel/code-frame': 7.24.7 - '@babel/parser': 7.25.6 - '@babel/types': 7.25.6 + '@babel/code-frame': 7.26.2 + '@babel/parser': 7.26.2 + '@babel/types': 7.26.0 dev: true /@babel/template@7.4.0: resolution: {integrity: sha512-SOWwxxClTTh5NdbbYZ0BmaBVzxzTh2tO/TeLTbF6MO6EzVhHTnff8CdBXx3mEtazFBoysmEM6GU/wF+SuSx4Fw==} dependencies: - '@babel/code-frame': 7.24.7 + '@babel/code-frame': 7.26.2 '@babel/parser': 7.4.3 - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 dev: true - /@babel/traverse@7.25.6: - resolution: {integrity: sha512-9Vrcx5ZW6UwK5tvqsj0nGpp/XzqthkT0dqIc9g1AdtygFToNtTF67XzYS//dm+SAK9cp3B9R4ZO/46p63SCjlQ==} + /@babel/traverse@7.25.9: + resolution: {integrity: sha512-ZCuvfwOwlz/bawvAuvcj8rrithP2/N55Tzz342AkTvq4qaWbGfmCk/tKhNaV2cthijKrPAA8SRJV5WWe7IBMJw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/code-frame': 7.24.7 - '@babel/generator': 7.25.6 - '@babel/parser': 7.25.6 - '@babel/template': 7.25.0 - '@babel/types': 7.25.6 - debug: 4.3.6(supports-color@8.1.1) + '@babel/code-frame': 7.26.2 + '@babel/generator': 7.26.2 + '@babel/parser': 7.26.2 + '@babel/template': 7.25.9 + '@babel/types': 7.26.0 + debug: 4.3.7(supports-color@8.1.1) globals: 11.11.0 transitivePeerDependencies: - supports-color @@ -360,12 +352,12 @@ packages: /@babel/traverse@7.4.3: resolution: {integrity: sha512-HmA01qrtaCwwJWpSKpA948cBvU5BrmviAief/b3AVw936DtcdsTexlbyzNuDnthwhOQ37xshn7hvQaEQk7ISYQ==} dependencies: - '@babel/code-frame': 7.24.7 + '@babel/code-frame': 7.26.2 '@babel/generator': 7.4.0 '@babel/helper-function-name': 7.1.0 '@babel/helper-split-export-declaration': 7.4.0 '@babel/parser': 7.4.3 - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 debug: 4.1.1 globals: 11.11.0 lodash: 4.17.11 @@ -373,13 +365,12 @@ packages: - supports-color dev: true - /@babel/types@7.25.6: - resolution: {integrity: sha512-/l42B1qxpG6RdfYf343Uw1vmDjeNhneUXtzhojE7pDgfpEypmRhI6j1kr17XCVv4Cgl9HdAiQY2x0GwKm7rWCw==} + /@babel/types@7.26.0: + resolution: {integrity: sha512-Z/yiTPj+lDVnF7lWeKCIJzaIkI0vYO87dMpZ4bg4TDrFe4XXLFWL1TbXU27gBP3QccxV9mZICCrnjnYlJjXHOA==} engines: {node: '>=6.9.0'} dependencies: - '@babel/helper-string-parser': 7.24.8 - '@babel/helper-validator-identifier': 7.24.7 - to-fast-properties: 2.0.0 + '@babel/helper-string-parser': 7.25.9 + '@babel/helper-validator-identifier': 7.25.9 dev: true /@babel/types@7.4.0: @@ -390,18 +381,18 @@ packages: to-fast-properties: 2.0.0 dev: true - /@eslint-community/eslint-utils@4.4.0(eslint@8.57.0): - resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==} + /@eslint-community/eslint-utils@4.4.1(eslint@8.57.1): + resolution: {integrity: sha512-s3O3waFUrMV8P/XaF/+ZTp1X9XBZW1a4B97ZnjQF2KYWaFD2A8KyFBsrsfSjEmjn3RGWAIuvlneuZm3CUK3jbA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 dependencies: - eslint: 8.57.0 + eslint: 8.57.1 eslint-visitor-keys: 3.4.3 dev: true - /@eslint-community/regexpp@4.11.0: - resolution: {integrity: sha512-G/M/tIiMrTAxEWRfLfQJMmGNX28IxBg4PBz8XqQhqUHLFI6TL2htpIB1iQCj144V5ee/JaKyT9/WZ0MGZWfA7A==} + /@eslint-community/regexpp@4.12.1: + resolution: {integrity: sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==} engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} dev: true @@ -410,7 +401,7 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: ajv: 6.12.6 - debug: 4.3.6(supports-color@8.1.1) + debug: 4.3.7(supports-color@8.1.1) espree: 9.6.1 globals: 13.24.0 ignore: 5.3.2 @@ -422,18 +413,18 @@ packages: - supports-color dev: true - /@eslint/js@8.57.0: - resolution: {integrity: sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==} + /@eslint/js@8.57.1: + resolution: {integrity: sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /@humanwhocodes/config-array@0.11.14: - resolution: {integrity: sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==} + /@humanwhocodes/config-array@0.13.0: + resolution: {integrity: sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==} engines: {node: '>=10.10.0'} deprecated: Use @eslint/config-array instead dependencies: '@humanwhocodes/object-schema': 2.0.3 - debug: 4.3.6(supports-color@8.1.1) + debug: 4.3.7(supports-color@8.1.1) minimatch: 3.1.2 transitivePeerDependencies: - supports-color @@ -453,7 +444,7 @@ packages: resolution: {integrity: sha512-Kg+erBdnA1sczSNNGEGIA9k7hwfnN1NrKEnACfJwbGoR6T5E/yhBbpyF5q5dEIvxHTUJ4wL5azEd3m68qq8F+Q==} engines: {node: '>=16'} dependencies: - '@babel/runtime': 7.25.6 + '@babel/runtime': 7.26.0 '@types/validate-npm-package-name': 4.0.2 pkg-up: 3.1.0 validate-npm-package-name: 5.0.1 @@ -550,8 +541,8 @@ packages: resolution: {integrity: sha512-/DiOQ5xBxgdYRC8LNk7U+RWat0S3qRLeIw3ZIkMQ9kkVlRmwD/Eg8k8CqIpD6GW7u20JIUOfMKbxtiLutpjQ4g==} engines: {node: '>=12'} dependencies: - '@babel/code-frame': 7.24.7 - '@babel/runtime': 7.25.6 + '@babel/code-frame': 7.26.2 + '@babel/runtime': 7.26.0 '@types/aria-query': 5.0.4 aria-query: 5.1.3 chalk: 4.1.2 @@ -567,9 +558,9 @@ packages: react: ^18.0.0 react-dom: ^18.0.0 dependencies: - '@babel/runtime': 7.25.6 + '@babel/runtime': 7.26.0 '@testing-library/dom': 8.20.1 - '@types/react-dom': 18.3.0 + '@types/react-dom': 18.3.1 react: 18.0.0 react-dom: 18.0.0(react@18.0.0) dev: true @@ -583,8 +574,8 @@ packages: resolution: {integrity: sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==} dev: true - /@types/chai@4.3.19: - resolution: {integrity: sha512-2hHHvQBVE2FiSK4eN0Br6snX9MtolHaTo/batnLjlGRhoQzlCL61iVpxoqO7SfFyOw+P/pwv+0zNHzKoGWz9Cw==} + /@types/chai@4.3.20: + resolution: {integrity: sha512-/pC9HAB5I/xMlc5FP77qjCnI16ChlJfW0tGa0IUcFn38VJrTV6DeZ60NU5KZBtaOZqjdpwTWohz5HU1RrhiYxQ==} dev: true /@types/inline-style-prefixer@5.0.0: @@ -598,8 +589,8 @@ packages: /@types/prop-types@15.7.0: resolution: {integrity: sha512-eItQyV43bj4rR3JPV0Skpl1SncRCdziTEK9/v8VwXmV6d/qOUO8/EuWeHBbCZcsfSHfzI5UyMJLCSXtxxznyZg==} - /@types/react-dom@18.3.0: - resolution: {integrity: sha512-EhwApuTmMBmXuFOikhQLIBUn6uFg81SwLMOAUgodJF14SOBOCMdU04gDoYi0WOJJHD144TL32z4yDqCW3dnkQg==} + /@types/react-dom@18.3.1: + resolution: {integrity: sha512-qW1Mfv8taImTthu4KoXgDfLuk4bydU6Q/TkADnDWWHwi4NX4BR+LWfTp2sVmTqRrsHvyDDTelgelxJ+SsejKKQ==} dependencies: '@types/react': 18.0.14 dev: true @@ -628,7 +619,7 @@ packages: resolution: {integrity: sha512-lrpDziQipxCEeK5kWxvljWYhUvOiB2A9izZd9B2AFarYAkqZshb4lPbRs7zKEic6eGtH8V/2qJW+dPp9OtF6bw==} dev: true - /@typescript-eslint/eslint-plugin@7.18.0(@typescript-eslint/parser@7.18.0)(eslint@8.57.0)(typescript@5.5.4): + /@typescript-eslint/eslint-plugin@7.18.0(@typescript-eslint/parser@7.18.0)(eslint@8.57.1)(typescript@5.6.3): resolution: {integrity: sha512-94EQTWZ40mzBc42ATNIBimBEDltSJ9RQHCC8vc/PDbxi4k8dVwUAv4o98dk50M1zB+JGFxp43FP7f8+FP8R6Sw==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: @@ -639,23 +630,23 @@ packages: typescript: optional: true dependencies: - '@eslint-community/regexpp': 4.11.0 - '@typescript-eslint/parser': 7.18.0(eslint@8.57.0)(typescript@5.5.4) + '@eslint-community/regexpp': 4.12.1 + '@typescript-eslint/parser': 7.18.0(eslint@8.57.1)(typescript@5.6.3) '@typescript-eslint/scope-manager': 7.18.0 - '@typescript-eslint/type-utils': 7.18.0(eslint@8.57.0)(typescript@5.5.4) - '@typescript-eslint/utils': 7.18.0(eslint@8.57.0)(typescript@5.5.4) + '@typescript-eslint/type-utils': 7.18.0(eslint@8.57.1)(typescript@5.6.3) + '@typescript-eslint/utils': 7.18.0(eslint@8.57.1)(typescript@5.6.3) '@typescript-eslint/visitor-keys': 7.18.0 - eslint: 8.57.0 + eslint: 8.57.1 graphemer: 1.4.0 ignore: 5.3.2 natural-compare: 1.4.0 - ts-api-utils: 1.3.0(typescript@5.5.4) - typescript: 5.5.4 + ts-api-utils: 1.3.0(typescript@5.6.3) + typescript: 5.6.3 transitivePeerDependencies: - supports-color dev: true - /@typescript-eslint/parser@7.18.0(eslint@8.57.0)(typescript@5.5.4): + /@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.6.3): resolution: {integrity: sha512-4Z+L8I2OqhZV8qA132M4wNL30ypZGYOQVBfMgxDH/K5UX0PNqTu1c6za9ST5r9+tavvHiTWmBnKzpCJ/GlVFtg==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: @@ -667,11 +658,11 @@ packages: dependencies: '@typescript-eslint/scope-manager': 7.18.0 '@typescript-eslint/types': 7.18.0 - '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.5.4) + '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.6.3) '@typescript-eslint/visitor-keys': 7.18.0 - debug: 4.3.6(supports-color@8.1.1) - eslint: 8.57.0 - typescript: 5.5.4 + debug: 4.3.7(supports-color@8.1.1) + eslint: 8.57.1 + typescript: 5.6.3 transitivePeerDependencies: - supports-color dev: true @@ -684,7 +675,7 @@ packages: '@typescript-eslint/visitor-keys': 7.18.0 dev: true - /@typescript-eslint/type-utils@7.18.0(eslint@8.57.0)(typescript@5.5.4): + /@typescript-eslint/type-utils@7.18.0(eslint@8.57.1)(typescript@5.6.3): resolution: {integrity: sha512-XL0FJXuCLaDuX2sYqZUUSOJ2sG5/i1AAze+axqmLnSkNEVMVYLF+cbwlB2w8D1tinFuSikHmFta+P+HOofrLeA==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: @@ -694,12 +685,12 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.5.4) - '@typescript-eslint/utils': 7.18.0(eslint@8.57.0)(typescript@5.5.4) - debug: 4.3.6(supports-color@8.1.1) - eslint: 8.57.0 - ts-api-utils: 1.3.0(typescript@5.5.4) - typescript: 5.5.4 + '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.6.3) + '@typescript-eslint/utils': 7.18.0(eslint@8.57.1)(typescript@5.6.3) + debug: 4.3.7(supports-color@8.1.1) + eslint: 8.57.1 + ts-api-utils: 1.3.0(typescript@5.6.3) + typescript: 5.6.3 transitivePeerDependencies: - supports-color dev: true @@ -709,7 +700,7 @@ packages: engines: {node: ^18.18.0 || >=20.0.0} dev: true - /@typescript-eslint/typescript-estree@7.18.0(typescript@5.5.4): + /@typescript-eslint/typescript-estree@7.18.0(typescript@5.6.3): resolution: {integrity: sha512-aP1v/BSPnnyhMHts8cf1qQ6Q1IFwwRvAQGRvBFkWlo3/lH29OXA3Pts+c10nxRxIBrDnoMqzhgdwVe5f2D6OzA==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: @@ -720,28 +711,28 @@ packages: dependencies: '@typescript-eslint/types': 7.18.0 '@typescript-eslint/visitor-keys': 7.18.0 - debug: 4.3.6(supports-color@8.1.1) + debug: 4.3.7(supports-color@8.1.1) globby: 11.1.0 is-glob: 4.0.3 minimatch: 9.0.5 semver: 7.6.3 - ts-api-utils: 1.3.0(typescript@5.5.4) - typescript: 5.5.4 + ts-api-utils: 1.3.0(typescript@5.6.3) + typescript: 5.6.3 transitivePeerDependencies: - supports-color dev: true - /@typescript-eslint/utils@7.18.0(eslint@8.57.0)(typescript@5.5.4): + /@typescript-eslint/utils@7.18.0(eslint@8.57.1)(typescript@5.6.3): resolution: {integrity: sha512-kK0/rNa2j74XuHVcoCZxdFBMF+aq/vH83CXAOHieC+2Gis4mF8jJXT5eAfyD3K0sAxtPuwxaIOIOvhwzVDt/kw==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: eslint: ^8.56.0 dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) + '@eslint-community/eslint-utils': 4.4.1(eslint@8.57.1) '@typescript-eslint/scope-manager': 7.18.0 '@typescript-eslint/types': 7.18.0 - '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.5.4) - eslint: 8.57.0 + '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.6.3) + eslint: 8.57.1 transitivePeerDependencies: - supports-color - typescript @@ -764,16 +755,16 @@ packages: deprecated: Use your platform's native atob() and btoa() methods instead dev: true - /acorn-jsx@5.3.2(acorn@8.12.1): + /acorn-jsx@5.3.2(acorn@8.14.0): resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} peerDependencies: acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 dependencies: - acorn: 8.12.1 + acorn: 8.14.0 dev: true - /acorn@8.12.1: - resolution: {integrity: sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==} + /acorn@8.14.0: + resolution: {integrity: sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==} engines: {node: '>=0.4.0'} hasBin: true dev: true @@ -813,13 +804,6 @@ packages: engines: {node: '>=8'} dev: true - /ansi-styles@3.2.1: - resolution: {integrity: sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==} - engines: {node: '>=4'} - dependencies: - color-convert: 1.9.1 - dev: true - /ansi-styles@4.3.0: resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} engines: {node: '>=8'} @@ -1065,15 +1049,6 @@ packages: type-detect: 4.1.0 dev: true - /chalk@2.4.2: - resolution: {integrity: sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==} - engines: {node: '>=4'} - dependencies: - ansi-styles: 3.2.1 - escape-string-regexp: 1.0.5 - supports-color: 5.5.0 - dev: true - /chalk@4.1.2: resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} engines: {node: '>=10'} @@ -1120,12 +1095,6 @@ packages: engines: {node: '>=0.8'} dev: true - /color-convert@1.9.1: - resolution: {integrity: sha512-mjGanIiwQJskCC18rPR6OmrZ6fm2Lc7PeGFYwCmy5J34wC6F1PzdGL6xeMfmgicfYcNLGuVFA3WzXtIDCQSZxQ==} - dependencies: - color-name: 1.1.4 - dev: true - /color-convert@2.0.1: resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} engines: {node: '>=7.0.0'} @@ -1201,8 +1170,8 @@ packages: which: 1.3.1 dev: true - /cross-spawn@7.0.3: - resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==} + /cross-spawn@7.0.5: + resolution: {integrity: sha512-ZVJrKKYunU38/76t0RMOulHOnUcbU9GbpWKAOZ0mhjr7CX6FVrH+4FrAapSOekrgFQ3f/8gwMEuIft0aKq6Hug==} engines: {node: '>= 8'} dependencies: path-key: 3.1.1 @@ -1275,8 +1244,8 @@ packages: ms: 2.1.1 dev: true - /debug@4.3.6(supports-color@8.1.1): - resolution: {integrity: sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==} + /debug@4.3.7(supports-color@8.1.1): + resolution: {integrity: sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==} engines: {node: '>=6.0'} peerDependencies: supports-color: '*' @@ -1284,7 +1253,7 @@ packages: supports-color: optional: true dependencies: - ms: 2.1.2 + ms: 2.1.3 supports-color: 8.1.1 dev: true @@ -1321,7 +1290,7 @@ packages: object-is: 1.1.6 object-keys: 1.1.1 object.assign: 4.1.5 - regexp.prototype.flags: 1.5.2 + regexp.prototype.flags: 1.5.3 side-channel: 1.0.6 which-boxed-primitive: 1.0.2 which-collection: 1.0.2 @@ -1455,10 +1424,10 @@ packages: is-string: 1.0.7 is-typed-array: 1.1.13 is-weakref: 1.0.2 - object-inspect: 1.13.2 + object-inspect: 1.13.3 object-keys: 1.1.1 object.assign: 4.1.5 - regexp.prototype.flags: 1.5.2 + regexp.prototype.flags: 1.5.3 safe-array-concat: 1.1.2 safe-regex-test: 1.0.3 string.prototype.trim: 1.2.9 @@ -1564,16 +1533,16 @@ packages: engines: {node: '>=10'} dev: true - /eslint-config-prettier@3.6.0(eslint@8.57.0): + /eslint-config-prettier@3.6.0(eslint@8.57.1): resolution: {integrity: sha512-ixJ4U3uTLXwJts4rmSVW/lMXjlGwCijhBJHk8iVqKKSifeI0qgFEfWl8L63isfc8Od7EiBALF6BX3jKLluf/jQ==} peerDependencies: eslint: '>=3.14.1' dependencies: - eslint: 8.57.0 + eslint: 8.57.1 get-stdin: 6.0.0 dev: true - /eslint-plugin-flowtype@8.0.3(@babel/plugin-syntax-flow@7.24.7)(@babel/plugin-transform-react-jsx@7.25.2)(eslint@8.57.0): + /eslint-plugin-flowtype@8.0.3(@babel/plugin-syntax-flow@7.26.0)(@babel/plugin-transform-react-jsx@7.25.9)(eslint@8.57.1): resolution: {integrity: sha512-dX8l6qUL6O+fYPtpNRideCFSpmWOUVx5QcaGLVqe/vlDiBSe4vYljDWDETwnyFzpl7By/WVIu6rcrniCgH9BqQ==} engines: {node: '>=12.0.0'} peerDependencies: @@ -1581,9 +1550,9 @@ packages: '@babel/plugin-transform-react-jsx': ^7.14.9 eslint: ^8.1.0 dependencies: - '@babel/plugin-syntax-flow': 7.24.7(@babel/core@7.4.3) - '@babel/plugin-transform-react-jsx': 7.25.2(@babel/core@7.4.3) - eslint: 8.57.0 + '@babel/plugin-syntax-flow': 7.26.0(@babel/core@7.4.3) + '@babel/plugin-transform-react-jsx': 7.25.9(@babel/core@7.4.3) + eslint: 8.57.1 lodash: 4.17.21 string-natural-compare: 3.0.1 dev: true @@ -1593,7 +1562,7 @@ packages: engines: {node: '>=5.0.0'} dev: true - /eslint-plugin-react@7.35.0(eslint@8.57.0): + /eslint-plugin-react@7.35.0(eslint@8.57.1): resolution: {integrity: sha512-v501SSMOWv8gerHkk+IIQBkcGRGrO2nfybfj5pLxuJNFTPxxA3PSryhXTK+9pNbtkggheDdsC0E9Q8CuPk6JKA==} engines: {node: '>=4'} peerDependencies: @@ -1605,7 +1574,7 @@ packages: array.prototype.tosorted: 1.1.4 doctrine: 2.1.0 es-iterator-helpers: 1.0.19 - eslint: 8.57.0 + eslint: 8.57.1 estraverse: 5.3.0 hasown: 2.0.2 jsx-ast-utils: 3.3.5 @@ -1633,23 +1602,24 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /eslint@8.57.0: - resolution: {integrity: sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==} + /eslint@8.57.1: + resolution: {integrity: sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options. hasBin: true dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) - '@eslint-community/regexpp': 4.11.0 + '@eslint-community/eslint-utils': 4.4.1(eslint@8.57.1) + '@eslint-community/regexpp': 4.12.1 '@eslint/eslintrc': 2.1.4 - '@eslint/js': 8.57.0 - '@humanwhocodes/config-array': 0.11.14 + '@eslint/js': 8.57.1 + '@humanwhocodes/config-array': 0.13.0 '@humanwhocodes/module-importer': 1.0.1 '@nodelib/fs.walk': 1.2.8 '@ungap/structured-clone': 1.2.0 ajv: 6.12.6 chalk: 4.1.2 - cross-spawn: 7.0.3 - debug: 4.3.6(supports-color@8.1.1) + cross-spawn: 7.0.5 + debug: 4.3.7(supports-color@8.1.1) doctrine: 3.0.0 escape-string-regexp: 4.0.0 eslint-scope: 7.2.2 @@ -1684,8 +1654,8 @@ packages: resolution: {integrity: sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: - acorn: 8.12.1 - acorn-jsx: 5.3.2(acorn@8.12.1) + acorn: 8.14.0 + acorn-jsx: 5.3.2(acorn@8.14.0) eslint-visitor-keys: 3.4.3 dev: true @@ -1886,8 +1856,8 @@ packages: is-callable: 1.1.4 dev: true - /form-data@4.0.0: - resolution: {integrity: sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==} + /form-data@4.0.1: + resolution: {integrity: sha512-tzN8e4TX8+kkxGPK8D5u0FNmjPUjw3lwC9lSLxxoB/+GtsJG91CO8bSWy73APlgAZzZbXEYZJuxjkHH2w+Ezhw==} engines: {node: '>= 6'} dependencies: asynckit: 0.4.0 @@ -2122,11 +2092,6 @@ packages: resolution: {integrity: sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==} dev: true - /has-flag@3.0.0: - resolution: {integrity: sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==} - engines: {node: '>=4'} - dev: true - /has-flag@4.0.0: resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} engines: {node: '>=8'} @@ -2637,13 +2602,13 @@ packages: data-urls: 4.0.0 decimal.js: 10.4.3 domexception: 4.0.0 - form-data: 4.0.0 + form-data: 4.0.1 html-encoding-sniffer: 3.0.0 http-proxy-agent: 5.0.0 https-proxy-agent: 5.0.1 is-potential-custom-element-name: 1.0.1 - nwsapi: 2.2.12 - parse5: 7.1.2 + nwsapi: 2.2.13 + parse5: 7.2.1 rrweb-cssom: 0.6.0 saxes: 6.0.0 symbol-tree: 3.2.4 @@ -2667,6 +2632,12 @@ packages: hasBin: true dev: true + /jsesc@3.0.2: + resolution: {integrity: sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g==} + engines: {node: '>=6'} + hasBin: true + dev: true + /json-buffer@3.0.1: resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==} dev: true @@ -2886,15 +2857,15 @@ packages: minimist: 0.0.8 dev: true - /mocha@10.7.3: - resolution: {integrity: sha512-uQWxAu44wwiACGqjbPYmjo7Lg8sFrS3dQe7PP2FQI+woptP4vZXSMcfMyFL/e1yFEeEpV4RtyTpZROOKmxis+A==} + /mocha@10.8.2: + resolution: {integrity: sha512-VZlYo/WE8t1tstuRmqgeyBgCbJc/lEdopaa+axcKzTBJ+UIdlAB9XnmvTCAH4pwR4ElNInaedhEBmZD8iCSVEg==} engines: {node: '>= 14.0.0'} hasBin: true dependencies: ansi-colors: 4.1.3 browser-stdout: 1.3.1 chokidar: 3.6.0 - debug: 4.3.6(supports-color@8.1.1) + debug: 4.3.7(supports-color@8.1.1) diff: 5.2.0 escape-string-regexp: 4.0.0 find-up: 5.0.0 @@ -2917,10 +2888,6 @@ packages: resolution: {integrity: sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==} dev: true - /ms@2.1.2: - resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==} - dev: true - /ms@2.1.3: resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} dev: true @@ -2940,7 +2907,7 @@ packages: '@sinonjs/fake-timers': 11.3.1 '@sinonjs/text-encoding': 0.7.3 just-extend: 6.2.0 - path-to-regexp: 6.2.2 + path-to-regexp: 6.3.0 dev: true /normalize-path@3.0.0: @@ -2958,16 +2925,16 @@ packages: sort-keys: 1.1.2 dev: true - /nwsapi@2.2.12: - resolution: {integrity: sha512-qXDmcVlZV4XRtKFzddidpfVP4oMSGhga+xdMc25mv8kaLUHtgzCDhUxkrN8exkGdTlLNaXj7CV3GtON7zuGZ+w==} + /nwsapi@2.2.13: + resolution: {integrity: sha512-cTGB9ptp9dY9A5VbMSe7fQBcl/tt22Vcqdq8+eN93rblOuE0aCFu4aZ2vMwct/2t+lFnosm8RkQW1I0Omb1UtQ==} dev: true /object-assign@4.1.1: resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==} engines: {node: '>=0.10.0'} - /object-inspect@1.13.2: - resolution: {integrity: sha512-IRZSRuzJiynemAXPYtPe5BoI/RESNYR7TYm50MC5Mqbd3Jmw5y790sErYw3V6SryFJD64b74qQQs9wn5Bg/k3g==} + /object-inspect@1.13.3: + resolution: {integrity: sha512-kDCGIbxkDSXE3euJZZXzc6to7fCrKHNI/hSRQnRuQ+BWjFNzZwiFF8fj/6o2t2G9/jTj8PSIYTfCLelLZEeRpA==} engines: {node: '>= 0.4'} dev: true @@ -3095,8 +3062,8 @@ packages: engines: {node: '>=0.10.0'} dev: true - /parse5@7.1.2: - resolution: {integrity: sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==} + /parse5@7.2.1: + resolution: {integrity: sha512-BuBYQYlv1ckiPdQi/ohiivi9Sagc9JG+Ozs0r7b/0iK3sKmrb0b9FdWdBbOdx6hBCM/F9Ir82ofnBhtZOjCRPQ==} dependencies: entities: 4.5.0 dev: true @@ -3134,8 +3101,8 @@ packages: resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} dev: true - /path-to-regexp@6.2.2: - resolution: {integrity: sha512-GQX3SSMokngb36+whdpRXE+3f9V8UzyAorlYvOGx87ufGHehNTn5lCxrKtLyZ4Yl/wEKnNnr98ZzOwwDZV5ogw==} + /path-to-regexp@6.3.0: + resolution: {integrity: sha512-Yhpw4T9C6hPpgPeA28us07OJeqZ5EzQTkbfwuhsUg0c237RomFoETJgmp2sa3F/41gfLE6G5cqcYwznmeEeOlQ==} dev: true /path-type@4.0.0: @@ -3147,8 +3114,8 @@ packages: resolution: {integrity: sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==} dev: true - /picocolors@1.0.1: - resolution: {integrity: sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==} + /picocolors@1.1.1: + resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} dev: true /picomatch@2.3.1: @@ -3224,8 +3191,10 @@ packages: react-is: 16.13.1 dev: true - /psl@1.9.0: - resolution: {integrity: sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==} + /psl@1.10.0: + resolution: {integrity: sha512-KSKHEbjAnpUuAUserOq0FxGXCUrzC3WniuSJhvdbs102rL55266ZcHBqLWOsG30spQMlPdpy7icATiAQehg/iA==} + dependencies: + punycode: 2.3.1 dev: true /punycode@2.1.1: @@ -3324,8 +3293,8 @@ packages: /regenerator-runtime@0.14.1: resolution: {integrity: sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==} - /regexp.prototype.flags@1.5.2: - resolution: {integrity: sha512-NcDiDkTLuPR+++OCKB0nWafEmhg/Da8aUPLPMQbK+bxKKCm1/S5he+AqYa4PlMCVBalb4/yxIRub6qkEx5yJbw==} + /regexp.prototype.flags@1.5.3: + resolution: {integrity: sha512-vqlC04+RQoFalODCbCumG2xIOvapzVMHwsyIGM/SIE8fRhFFsXeH8/QQ+s0T0kDAhKc4k30s73/0ydkHQz6HlQ==} engines: {node: '>= 0.4'} dependencies: call-bind: 1.0.7 @@ -3536,7 +3505,7 @@ packages: call-bind: 1.0.7 es-errors: 1.3.0 get-intrinsic: 1.2.4 - object-inspect: 1.13.2 + object-inspect: 1.13.3 dev: true /sinon@14.0.0: @@ -3605,7 +3574,7 @@ packages: gopd: 1.0.1 has-symbols: 1.0.3 internal-slot: 1.0.7 - regexp.prototype.flags: 1.5.2 + regexp.prototype.flags: 1.5.3 set-function-name: 2.0.2 side-channel: 1.0.6 dev: true @@ -3692,13 +3661,6 @@ packages: engines: {node: '>=0.10.0'} dev: true - /supports-color@5.5.0: - resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==} - engines: {node: '>=4'} - dependencies: - has-flag: 3.0.0 - dev: true - /supports-color@7.2.0: resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} engines: {node: '>=8'} @@ -3770,7 +3732,7 @@ packages: resolution: {integrity: sha512-Loo5UUvLD9ScZ6jh8beX1T6sO1w2/MpCRpEP7V280GKMVUQ0Jzar2U3UJPsrdbziLEMMhu3Ujnq//rhiFuIeag==} engines: {node: '>=6'} dependencies: - psl: 1.9.0 + psl: 1.10.0 punycode: 2.1.1 universalify: 0.2.0 url-parse: 1.5.10 @@ -3795,13 +3757,13 @@ packages: engines: {node: '>=0.10.0'} dev: true - /ts-api-utils@1.3.0(typescript@5.5.4): + /ts-api-utils@1.3.0(typescript@5.6.3): resolution: {integrity: sha512-UQMIo7pb8WRomKR1/+MFVLTroIvDVtMX3K6OUir8ynLyzB8Jeriont2bTAtmNPa1ekAgN7YPDyf6V+ygrdU+eQ==} engines: {node: '>=16'} peerDependencies: typescript: '>=4.2.0' dependencies: - typescript: 5.5.4 + typescript: 5.6.3 dev: true /type-check@0.4.0: @@ -3870,8 +3832,8 @@ packages: possible-typed-array-names: 1.0.0 dev: true - /typescript@5.5.4: - resolution: {integrity: sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==} + /typescript@5.6.3: + resolution: {integrity: sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==} engines: {node: '>=14.17'} hasBin: true dev: true diff --git a/fixtures/react-view-slider-ts/init-snapshot/pnpm-lock.yaml b/fixtures/react-view-slider-ts/init-snapshot/pnpm-lock.yaml index 5aa2d40..5099feb 100644 --- a/fixtures/react-view-slider-ts/init-snapshot/pnpm-lock.yaml +++ b/fixtures/react-view-slider-ts/init-snapshot/pnpm-lock.yaml @@ -7,7 +7,7 @@ settings: dependencies: '@babel/runtime': specifier: ^7.18.6 - version: 7.25.6 + version: 7.26.0 '@types/mocha': specifier: ^10.0.0 version: 10.0.0 @@ -24,10 +24,10 @@ dependencies: devDependencies: '@babel/plugin-syntax-flow': specifier: ^7.14.5 - version: 7.24.7(@babel/core@7.4.3) + version: 7.26.0(@babel/core@7.4.3) '@babel/plugin-transform-react-jsx': specifier: ^7.14.9 - version: 7.25.2(@babel/core@7.4.3) + version: 7.25.9(@babel/core@7.4.3) '@jcoreio/eslint-plugin-implicit-dependencies': specifier: ^1.1.1 version: 1.1.1 @@ -60,7 +60,7 @@ devDependencies: version: 13.3.0(react-dom@18.0.0)(react@18.0.0) '@types/chai': specifier: ^4.3.5 - version: 4.3.19 + version: 4.3.20 '@types/inline-style-prefixer': specifier: ^5.0.0 version: 5.0.0 @@ -69,10 +69,10 @@ devDependencies: version: 17.0.0 '@typescript-eslint/eslint-plugin': specifier: ^7.6.0 - version: 7.18.0(@typescript-eslint/parser@7.18.0)(eslint@8.57.0)(typescript@5.5.4) + version: 7.18.0(@typescript-eslint/parser@7.18.0)(eslint@8.57.1)(typescript@5.6.3) '@typescript-eslint/parser': specifier: ^7.6.0 - version: 7.18.0(eslint@8.57.0)(typescript@5.5.4) + version: 7.18.0(eslint@8.57.1)(typescript@5.6.3) babel-plugin-lodash: specifier: ^3.3.4 version: 3.3.4 @@ -90,19 +90,19 @@ devDependencies: version: 2.0.0 eslint: specifier: ^8.56.0 - version: 8.57.0 + version: 8.57.1 eslint-config-prettier: specifier: ^3.3.0 - version: 3.6.0(eslint@8.57.0) + version: 3.6.0(eslint@8.57.1) eslint-plugin-flowtype: specifier: ^8.0.3 - version: 8.0.3(@babel/plugin-syntax-flow@7.24.7)(@babel/plugin-transform-react-jsx@7.25.2)(eslint@8.57.0) + version: 8.0.3(@babel/plugin-syntax-flow@7.26.0)(@babel/plugin-transform-react-jsx@7.25.9)(eslint@8.57.1) eslint-plugin-no-only-tests: specifier: ^3.1.0 version: 3.3.0 eslint-plugin-react: specifier: ^7.32.2 - version: 7.35.0(eslint@8.57.0) + version: 7.35.0(eslint@8.57.1) flow-bin: specifier: ^0.113.0 version: 0.113.0 @@ -120,7 +120,7 @@ devDependencies: version: 22.1.0 mocha: specifier: ^10.2.0 - version: 10.7.3 + version: 10.8.2 react: specifier: ^18.0.0 version: 18.0.0 @@ -135,29 +135,30 @@ devDependencies: version: 14.0.0 typescript: specifier: ^5.1.0 - version: 5.5.4 + version: 5.6.3 packages: - /@babel/code-frame@7.24.7: - resolution: {integrity: sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==} + /@babel/code-frame@7.26.2: + resolution: {integrity: sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ==} engines: {node: '>=6.9.0'} dependencies: - '@babel/highlight': 7.24.7 - picocolors: 1.0.1 + '@babel/helper-validator-identifier': 7.25.9 + js-tokens: 4.0.0 + picocolors: 1.1.1 dev: true /@babel/core@7.4.3: resolution: {integrity: sha512-oDpASqKFlbspQfzAE7yaeTmdljSH2ADIvBlb0RwbStltTuWa0+7CCI1fYVINNv9saHPa1W7oaKeuNuKj+RQCvA==} engines: {node: '>=6.9.0'} dependencies: - '@babel/code-frame': 7.24.7 + '@babel/code-frame': 7.26.2 '@babel/generator': 7.4.0 '@babel/helpers': 7.4.3 '@babel/parser': 7.4.3 '@babel/template': 7.4.0 '@babel/traverse': 7.4.3 - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 convert-source-map: 1.6.0 debug: 4.1.1 json5: 2.1.0 @@ -169,31 +170,32 @@ packages: - supports-color dev: true - /@babel/generator@7.25.6: - resolution: {integrity: sha512-VPC82gr1seXOpkjAAKoLhP50vx4vGNlF4msF64dSFq1P8RfB+QAuJWGHPXXPc8QyfVWwwB/TNNU4+ayZmHNbZw==} + /@babel/generator@7.26.2: + resolution: {integrity: sha512-zevQbhbau95nkoxSq3f/DC/SC+EEOUZd3DYqfSkMhY2/wfSeaHV1Ew4vk8e+x8lja31IbyuUa2uQ3JONqKbysw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.25.6 + '@babel/parser': 7.26.2 + '@babel/types': 7.26.0 '@jridgewell/gen-mapping': 0.3.5 '@jridgewell/trace-mapping': 0.3.25 - jsesc: 2.5.2 + jsesc: 3.0.2 dev: true /@babel/generator@7.4.0: resolution: {integrity: sha512-/v5I+a1jhGSKLgZDcmAUZ4K/VePi43eRkUs3yePW1HB1iANOD5tqJXwGSG4BZhSksP8J9ejSlwGeTiiOFZOrXQ==} dependencies: - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 jsesc: 2.5.2 lodash: 4.17.11 source-map: 0.5.7 trim-right: 1.0.1 dev: true - /@babel/helper-annotate-as-pure@7.24.7: - resolution: {integrity: sha512-BaDeOonYvhdKw+JoMVkAixAAJzG2jVPIwWoKBPdYuY9b452e2rPuI9QPYh3KpofZ3pW2akOmwZLOiOsHMiqRAg==} + /@babel/helper-annotate-as-pure@7.25.9: + resolution: {integrity: sha512-gv7320KBUFJz1RnylIg5WWYPRXKZ884AGkYpgpWW02TH66Dl+HaC1t1CKd0z3R4b6hdYEcmrNZHUmfCP+1u3/g==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 dev: true /@babel/helper-function-name@7.1.0: @@ -201,49 +203,49 @@ packages: dependencies: '@babel/helper-get-function-arity': 7.0.0 '@babel/template': 7.4.0 - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 dev: true /@babel/helper-get-function-arity@7.0.0: resolution: {integrity: sha512-r2DbJeg4svYvt3HOS74U4eWKsUAMRH01Z1ds1zx8KNTPtpTL5JAsdFv8BNyOpVqdFhHkkRDIg5B4AsxmkjAlmQ==} dependencies: - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 dev: true /@babel/helper-module-imports@7.0.0: resolution: {integrity: sha512-aP/hlLq01DWNEiDg4Jn23i+CXxW/owM4WpDLFUbpjxe4NS3BhLVZQ5i7E0ZrxuQ/vwekIeciyamgB1UIYxxM6A==} dependencies: - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 dev: true - /@babel/helper-module-imports@7.24.7: - resolution: {integrity: sha512-8AyH3C+74cgCVVXow/myrynrAGv+nTVg5vKu2nZph9x7RcRwzmh0VFallJuFTZ9mx6u4eSdXZfcOzSqTUm0HCA==} + /@babel/helper-module-imports@7.25.9: + resolution: {integrity: sha512-tnUA4RsrmflIM6W6RFTLFSXITtl0wKjgpnLgXyowocVPrbYrLUXSBXDgTs8BlbmIzIdlBySRQjINYs2BAkiLtw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/traverse': 7.25.6 - '@babel/types': 7.25.6 + '@babel/traverse': 7.25.9 + '@babel/types': 7.26.0 transitivePeerDependencies: - supports-color dev: true - /@babel/helper-plugin-utils@7.24.8: - resolution: {integrity: sha512-FFWx5142D8h2Mgr/iPVGH5G7w6jDn4jUSpZTyDnQO0Yn7Ks2Kuz6Pci8H6MPCoUJegd/UZQ3tAvfLCxQSnWWwg==} + /@babel/helper-plugin-utils@7.25.9: + resolution: {integrity: sha512-kSMlyUVdWe25rEsRGviIgOWnoT/nfABVWlqt9N19/dIPWViAOW2s9wznP5tURbs/IDuNk4gPy3YdYRgH3uxhBw==} engines: {node: '>=6.9.0'} dev: true /@babel/helper-split-export-declaration@7.4.0: resolution: {integrity: sha512-7Cuc6JZiYShaZnybDmfwhY4UYHzI6rlqhWjaIqbsJGsIqPimEYy5uh3akSRLMg65LSdSEnJ8a8/bWQN6u2oMGw==} dependencies: - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 dev: true - /@babel/helper-string-parser@7.24.8: - resolution: {integrity: sha512-pO9KhhRcuUyGnJWwyEgnRJTSIZHiT+vMD0kPeD+so0l7mxkMT19g3pjY9GTnHySck/hDzq+dtW/4VgnMkippsQ==} + /@babel/helper-string-parser@7.25.9: + resolution: {integrity: sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==} engines: {node: '>=6.9.0'} dev: true - /@babel/helper-validator-identifier@7.24.7: - resolution: {integrity: sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==} + /@babel/helper-validator-identifier@7.25.9: + resolution: {integrity: sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==} engines: {node: '>=6.9.0'} dev: true @@ -252,27 +254,17 @@ packages: dependencies: '@babel/template': 7.4.0 '@babel/traverse': 7.4.3 - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 transitivePeerDependencies: - supports-color dev: true - /@babel/highlight@7.24.7: - resolution: {integrity: sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/helper-validator-identifier': 7.24.7 - chalk: 2.4.2 - js-tokens: 4.0.0 - picocolors: 1.0.1 - dev: true - - /@babel/parser@7.25.6: - resolution: {integrity: sha512-trGdfBdbD0l1ZPmcJ83eNxB9rbEax4ALFTF7fN386TMYbeCQbyme5cOEXQhbGXKebwGaB/J52w1mrklMcbgy6Q==} + /@babel/parser@7.26.2: + resolution: {integrity: sha512-DWMCZH9WA4Maitz2q21SRKHo9QXZxkDsbNZoVD62gusNtNBBqDg9i7uOhASfTfIGNzW+O+r7+jAlM8dwphcJKQ==} engines: {node: '>=6.0.0'} hasBin: true dependencies: - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 dev: true /@babel/parser@7.4.3: @@ -280,78 +272,78 @@ packages: engines: {node: '>=6.0.0'} hasBin: true dependencies: - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 dev: true - /@babel/plugin-syntax-flow@7.24.7(@babel/core@7.4.3): - resolution: {integrity: sha512-9G8GYT/dxn/D1IIKOUBmGX0mnmj46mGH9NnZyJLwtCpgh5f7D2VbuKodb+2s9m1Yavh1s7ASQN8lf0eqrb1LTw==} + /@babel/plugin-syntax-flow@7.26.0(@babel/core@7.4.3): + resolution: {integrity: sha512-B+O2DnPc0iG+YXFqOxv2WNuNU97ToWjOomUQ78DouOENWUaM5sVrmet9mcomUGQFwpJd//gvUagXBSdzO1fRKg==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.4.3 - '@babel/helper-plugin-utils': 7.24.8 + '@babel/helper-plugin-utils': 7.25.9 dev: true - /@babel/plugin-syntax-jsx@7.24.7(@babel/core@7.4.3): - resolution: {integrity: sha512-6ddciUPe/mpMnOKv/U+RSd2vvVy+Yw/JfBB0ZHYjEZt9NLHmCUylNYlsbqCCS1Bffjlb0fCwC9Vqz+sBz6PsiQ==} + /@babel/plugin-syntax-jsx@7.25.9(@babel/core@7.4.3): + resolution: {integrity: sha512-ld6oezHQMZsZfp6pWtbjaNDF2tiiCYYDqQszHt5VV437lewP9aSi2Of99CK0D0XB21k7FLgnLcmQKyKzynfeAA==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.4.3 - '@babel/helper-plugin-utils': 7.24.8 + '@babel/helper-plugin-utils': 7.25.9 dev: true - /@babel/plugin-transform-react-jsx@7.25.2(@babel/core@7.4.3): - resolution: {integrity: sha512-KQsqEAVBpU82NM/B/N9j9WOdphom1SZH3R+2V7INrQUH+V9EBFwZsEJl8eBIVeQE62FxJCc70jzEZwqU7RcVqA==} + /@babel/plugin-transform-react-jsx@7.25.9(@babel/core@7.4.3): + resolution: {integrity: sha512-s5XwpQYCqGerXl+Pu6VDL3x0j2d82eiV77UJ8a2mDHAW7j9SWRqQ2y1fNo1Z74CdcYipl5Z41zvjj4Nfzq36rw==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.4.3 - '@babel/helper-annotate-as-pure': 7.24.7 - '@babel/helper-module-imports': 7.24.7 - '@babel/helper-plugin-utils': 7.24.8 - '@babel/plugin-syntax-jsx': 7.24.7(@babel/core@7.4.3) - '@babel/types': 7.25.6 + '@babel/helper-annotate-as-pure': 7.25.9 + '@babel/helper-module-imports': 7.25.9 + '@babel/helper-plugin-utils': 7.25.9 + '@babel/plugin-syntax-jsx': 7.25.9(@babel/core@7.4.3) + '@babel/types': 7.26.0 transitivePeerDependencies: - supports-color dev: true - /@babel/runtime@7.25.6: - resolution: {integrity: sha512-VBj9MYyDb9tuLq7yzqjgzt6Q+IBQLrGZfdjOekyEirZPHxXWoTSGUTMrpsfi58Up73d13NfYLv8HT9vmznjzhQ==} + /@babel/runtime@7.26.0: + resolution: {integrity: sha512-FDSOghenHTiToteC/QRlv2q3DhPZ/oOXTBoirfWNx1Cx3TMVcGWQtMMmQcSvb/JjpNeGzx8Pq/b4fKEJuWm1sw==} engines: {node: '>=6.9.0'} dependencies: regenerator-runtime: 0.14.1 - /@babel/template@7.25.0: - resolution: {integrity: sha512-aOOgh1/5XzKvg1jvVz7AVrx2piJ2XBi227DHmbY6y+bM9H2FlN+IfecYu4Xl0cNiiVejlsCri89LUsbj8vJD9Q==} + /@babel/template@7.25.9: + resolution: {integrity: sha512-9DGttpmPvIxBb/2uwpVo3dqJ+O6RooAFOS+lB+xDqoE2PVCE8nfoHMdZLpfCQRLwvohzXISPZcgxt80xLfsuwg==} engines: {node: '>=6.9.0'} dependencies: - '@babel/code-frame': 7.24.7 - '@babel/parser': 7.25.6 - '@babel/types': 7.25.6 + '@babel/code-frame': 7.26.2 + '@babel/parser': 7.26.2 + '@babel/types': 7.26.0 dev: true /@babel/template@7.4.0: resolution: {integrity: sha512-SOWwxxClTTh5NdbbYZ0BmaBVzxzTh2tO/TeLTbF6MO6EzVhHTnff8CdBXx3mEtazFBoysmEM6GU/wF+SuSx4Fw==} dependencies: - '@babel/code-frame': 7.24.7 + '@babel/code-frame': 7.26.2 '@babel/parser': 7.4.3 - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 dev: true - /@babel/traverse@7.25.6: - resolution: {integrity: sha512-9Vrcx5ZW6UwK5tvqsj0nGpp/XzqthkT0dqIc9g1AdtygFToNtTF67XzYS//dm+SAK9cp3B9R4ZO/46p63SCjlQ==} + /@babel/traverse@7.25.9: + resolution: {integrity: sha512-ZCuvfwOwlz/bawvAuvcj8rrithP2/N55Tzz342AkTvq4qaWbGfmCk/tKhNaV2cthijKrPAA8SRJV5WWe7IBMJw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/code-frame': 7.24.7 - '@babel/generator': 7.25.6 - '@babel/parser': 7.25.6 - '@babel/template': 7.25.0 - '@babel/types': 7.25.6 - debug: 4.3.6(supports-color@8.1.1) + '@babel/code-frame': 7.26.2 + '@babel/generator': 7.26.2 + '@babel/parser': 7.26.2 + '@babel/template': 7.25.9 + '@babel/types': 7.26.0 + debug: 4.3.7(supports-color@8.1.1) globals: 11.11.0 transitivePeerDependencies: - supports-color @@ -360,12 +352,12 @@ packages: /@babel/traverse@7.4.3: resolution: {integrity: sha512-HmA01qrtaCwwJWpSKpA948cBvU5BrmviAief/b3AVw936DtcdsTexlbyzNuDnthwhOQ37xshn7hvQaEQk7ISYQ==} dependencies: - '@babel/code-frame': 7.24.7 + '@babel/code-frame': 7.26.2 '@babel/generator': 7.4.0 '@babel/helper-function-name': 7.1.0 '@babel/helper-split-export-declaration': 7.4.0 '@babel/parser': 7.4.3 - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 debug: 4.1.1 globals: 11.11.0 lodash: 4.17.11 @@ -373,13 +365,12 @@ packages: - supports-color dev: true - /@babel/types@7.25.6: - resolution: {integrity: sha512-/l42B1qxpG6RdfYf343Uw1vmDjeNhneUXtzhojE7pDgfpEypmRhI6j1kr17XCVv4Cgl9HdAiQY2x0GwKm7rWCw==} + /@babel/types@7.26.0: + resolution: {integrity: sha512-Z/yiTPj+lDVnF7lWeKCIJzaIkI0vYO87dMpZ4bg4TDrFe4XXLFWL1TbXU27gBP3QccxV9mZICCrnjnYlJjXHOA==} engines: {node: '>=6.9.0'} dependencies: - '@babel/helper-string-parser': 7.24.8 - '@babel/helper-validator-identifier': 7.24.7 - to-fast-properties: 2.0.0 + '@babel/helper-string-parser': 7.25.9 + '@babel/helper-validator-identifier': 7.25.9 dev: true /@babel/types@7.4.0: @@ -390,18 +381,18 @@ packages: to-fast-properties: 2.0.0 dev: true - /@eslint-community/eslint-utils@4.4.0(eslint@8.57.0): - resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==} + /@eslint-community/eslint-utils@4.4.1(eslint@8.57.1): + resolution: {integrity: sha512-s3O3waFUrMV8P/XaF/+ZTp1X9XBZW1a4B97ZnjQF2KYWaFD2A8KyFBsrsfSjEmjn3RGWAIuvlneuZm3CUK3jbA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 dependencies: - eslint: 8.57.0 + eslint: 8.57.1 eslint-visitor-keys: 3.4.3 dev: true - /@eslint-community/regexpp@4.11.0: - resolution: {integrity: sha512-G/M/tIiMrTAxEWRfLfQJMmGNX28IxBg4PBz8XqQhqUHLFI6TL2htpIB1iQCj144V5ee/JaKyT9/WZ0MGZWfA7A==} + /@eslint-community/regexpp@4.12.1: + resolution: {integrity: sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==} engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} dev: true @@ -410,7 +401,7 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: ajv: 6.12.6 - debug: 4.3.6(supports-color@8.1.1) + debug: 4.3.7(supports-color@8.1.1) espree: 9.6.1 globals: 13.24.0 ignore: 5.3.2 @@ -422,18 +413,18 @@ packages: - supports-color dev: true - /@eslint/js@8.57.0: - resolution: {integrity: sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==} + /@eslint/js@8.57.1: + resolution: {integrity: sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /@humanwhocodes/config-array@0.11.14: - resolution: {integrity: sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==} + /@humanwhocodes/config-array@0.13.0: + resolution: {integrity: sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==} engines: {node: '>=10.10.0'} deprecated: Use @eslint/config-array instead dependencies: '@humanwhocodes/object-schema': 2.0.3 - debug: 4.3.6(supports-color@8.1.1) + debug: 4.3.7(supports-color@8.1.1) minimatch: 3.1.2 transitivePeerDependencies: - supports-color @@ -453,7 +444,7 @@ packages: resolution: {integrity: sha512-Kg+erBdnA1sczSNNGEGIA9k7hwfnN1NrKEnACfJwbGoR6T5E/yhBbpyF5q5dEIvxHTUJ4wL5azEd3m68qq8F+Q==} engines: {node: '>=16'} dependencies: - '@babel/runtime': 7.25.6 + '@babel/runtime': 7.26.0 '@types/validate-npm-package-name': 4.0.2 pkg-up: 3.1.0 validate-npm-package-name: 5.0.1 @@ -550,8 +541,8 @@ packages: resolution: {integrity: sha512-/DiOQ5xBxgdYRC8LNk7U+RWat0S3qRLeIw3ZIkMQ9kkVlRmwD/Eg8k8CqIpD6GW7u20JIUOfMKbxtiLutpjQ4g==} engines: {node: '>=12'} dependencies: - '@babel/code-frame': 7.24.7 - '@babel/runtime': 7.25.6 + '@babel/code-frame': 7.26.2 + '@babel/runtime': 7.26.0 '@types/aria-query': 5.0.4 aria-query: 5.1.3 chalk: 4.1.2 @@ -567,9 +558,9 @@ packages: react: ^18.0.0 react-dom: ^18.0.0 dependencies: - '@babel/runtime': 7.25.6 + '@babel/runtime': 7.26.0 '@testing-library/dom': 8.20.1 - '@types/react-dom': 18.3.0 + '@types/react-dom': 18.3.1 react: 18.0.0 react-dom: 18.0.0(react@18.0.0) dev: true @@ -583,8 +574,8 @@ packages: resolution: {integrity: sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==} dev: true - /@types/chai@4.3.19: - resolution: {integrity: sha512-2hHHvQBVE2FiSK4eN0Br6snX9MtolHaTo/batnLjlGRhoQzlCL61iVpxoqO7SfFyOw+P/pwv+0zNHzKoGWz9Cw==} + /@types/chai@4.3.20: + resolution: {integrity: sha512-/pC9HAB5I/xMlc5FP77qjCnI16ChlJfW0tGa0IUcFn38VJrTV6DeZ60NU5KZBtaOZqjdpwTWohz5HU1RrhiYxQ==} dev: true /@types/inline-style-prefixer@5.0.0: @@ -598,8 +589,8 @@ packages: /@types/prop-types@15.7.0: resolution: {integrity: sha512-eItQyV43bj4rR3JPV0Skpl1SncRCdziTEK9/v8VwXmV6d/qOUO8/EuWeHBbCZcsfSHfzI5UyMJLCSXtxxznyZg==} - /@types/react-dom@18.3.0: - resolution: {integrity: sha512-EhwApuTmMBmXuFOikhQLIBUn6uFg81SwLMOAUgodJF14SOBOCMdU04gDoYi0WOJJHD144TL32z4yDqCW3dnkQg==} + /@types/react-dom@18.3.1: + resolution: {integrity: sha512-qW1Mfv8taImTthu4KoXgDfLuk4bydU6Q/TkADnDWWHwi4NX4BR+LWfTp2sVmTqRrsHvyDDTelgelxJ+SsejKKQ==} dependencies: '@types/react': 18.0.14 dev: true @@ -628,7 +619,7 @@ packages: resolution: {integrity: sha512-lrpDziQipxCEeK5kWxvljWYhUvOiB2A9izZd9B2AFarYAkqZshb4lPbRs7zKEic6eGtH8V/2qJW+dPp9OtF6bw==} dev: true - /@typescript-eslint/eslint-plugin@7.18.0(@typescript-eslint/parser@7.18.0)(eslint@8.57.0)(typescript@5.5.4): + /@typescript-eslint/eslint-plugin@7.18.0(@typescript-eslint/parser@7.18.0)(eslint@8.57.1)(typescript@5.6.3): resolution: {integrity: sha512-94EQTWZ40mzBc42ATNIBimBEDltSJ9RQHCC8vc/PDbxi4k8dVwUAv4o98dk50M1zB+JGFxp43FP7f8+FP8R6Sw==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: @@ -639,23 +630,23 @@ packages: typescript: optional: true dependencies: - '@eslint-community/regexpp': 4.11.0 - '@typescript-eslint/parser': 7.18.0(eslint@8.57.0)(typescript@5.5.4) + '@eslint-community/regexpp': 4.12.1 + '@typescript-eslint/parser': 7.18.0(eslint@8.57.1)(typescript@5.6.3) '@typescript-eslint/scope-manager': 7.18.0 - '@typescript-eslint/type-utils': 7.18.0(eslint@8.57.0)(typescript@5.5.4) - '@typescript-eslint/utils': 7.18.0(eslint@8.57.0)(typescript@5.5.4) + '@typescript-eslint/type-utils': 7.18.0(eslint@8.57.1)(typescript@5.6.3) + '@typescript-eslint/utils': 7.18.0(eslint@8.57.1)(typescript@5.6.3) '@typescript-eslint/visitor-keys': 7.18.0 - eslint: 8.57.0 + eslint: 8.57.1 graphemer: 1.4.0 ignore: 5.3.2 natural-compare: 1.4.0 - ts-api-utils: 1.3.0(typescript@5.5.4) - typescript: 5.5.4 + ts-api-utils: 1.3.0(typescript@5.6.3) + typescript: 5.6.3 transitivePeerDependencies: - supports-color dev: true - /@typescript-eslint/parser@7.18.0(eslint@8.57.0)(typescript@5.5.4): + /@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.6.3): resolution: {integrity: sha512-4Z+L8I2OqhZV8qA132M4wNL30ypZGYOQVBfMgxDH/K5UX0PNqTu1c6za9ST5r9+tavvHiTWmBnKzpCJ/GlVFtg==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: @@ -667,11 +658,11 @@ packages: dependencies: '@typescript-eslint/scope-manager': 7.18.0 '@typescript-eslint/types': 7.18.0 - '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.5.4) + '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.6.3) '@typescript-eslint/visitor-keys': 7.18.0 - debug: 4.3.6(supports-color@8.1.1) - eslint: 8.57.0 - typescript: 5.5.4 + debug: 4.3.7(supports-color@8.1.1) + eslint: 8.57.1 + typescript: 5.6.3 transitivePeerDependencies: - supports-color dev: true @@ -684,7 +675,7 @@ packages: '@typescript-eslint/visitor-keys': 7.18.0 dev: true - /@typescript-eslint/type-utils@7.18.0(eslint@8.57.0)(typescript@5.5.4): + /@typescript-eslint/type-utils@7.18.0(eslint@8.57.1)(typescript@5.6.3): resolution: {integrity: sha512-XL0FJXuCLaDuX2sYqZUUSOJ2sG5/i1AAze+axqmLnSkNEVMVYLF+cbwlB2w8D1tinFuSikHmFta+P+HOofrLeA==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: @@ -694,12 +685,12 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.5.4) - '@typescript-eslint/utils': 7.18.0(eslint@8.57.0)(typescript@5.5.4) - debug: 4.3.6(supports-color@8.1.1) - eslint: 8.57.0 - ts-api-utils: 1.3.0(typescript@5.5.4) - typescript: 5.5.4 + '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.6.3) + '@typescript-eslint/utils': 7.18.0(eslint@8.57.1)(typescript@5.6.3) + debug: 4.3.7(supports-color@8.1.1) + eslint: 8.57.1 + ts-api-utils: 1.3.0(typescript@5.6.3) + typescript: 5.6.3 transitivePeerDependencies: - supports-color dev: true @@ -709,7 +700,7 @@ packages: engines: {node: ^18.18.0 || >=20.0.0} dev: true - /@typescript-eslint/typescript-estree@7.18.0(typescript@5.5.4): + /@typescript-eslint/typescript-estree@7.18.0(typescript@5.6.3): resolution: {integrity: sha512-aP1v/BSPnnyhMHts8cf1qQ6Q1IFwwRvAQGRvBFkWlo3/lH29OXA3Pts+c10nxRxIBrDnoMqzhgdwVe5f2D6OzA==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: @@ -720,28 +711,28 @@ packages: dependencies: '@typescript-eslint/types': 7.18.0 '@typescript-eslint/visitor-keys': 7.18.0 - debug: 4.3.6(supports-color@8.1.1) + debug: 4.3.7(supports-color@8.1.1) globby: 11.1.0 is-glob: 4.0.3 minimatch: 9.0.5 semver: 7.6.3 - ts-api-utils: 1.3.0(typescript@5.5.4) - typescript: 5.5.4 + ts-api-utils: 1.3.0(typescript@5.6.3) + typescript: 5.6.3 transitivePeerDependencies: - supports-color dev: true - /@typescript-eslint/utils@7.18.0(eslint@8.57.0)(typescript@5.5.4): + /@typescript-eslint/utils@7.18.0(eslint@8.57.1)(typescript@5.6.3): resolution: {integrity: sha512-kK0/rNa2j74XuHVcoCZxdFBMF+aq/vH83CXAOHieC+2Gis4mF8jJXT5eAfyD3K0sAxtPuwxaIOIOvhwzVDt/kw==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: eslint: ^8.56.0 dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) + '@eslint-community/eslint-utils': 4.4.1(eslint@8.57.1) '@typescript-eslint/scope-manager': 7.18.0 '@typescript-eslint/types': 7.18.0 - '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.5.4) - eslint: 8.57.0 + '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.6.3) + eslint: 8.57.1 transitivePeerDependencies: - supports-color - typescript @@ -764,16 +755,16 @@ packages: deprecated: Use your platform's native atob() and btoa() methods instead dev: true - /acorn-jsx@5.3.2(acorn@8.12.1): + /acorn-jsx@5.3.2(acorn@8.14.0): resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} peerDependencies: acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 dependencies: - acorn: 8.12.1 + acorn: 8.14.0 dev: true - /acorn@8.12.1: - resolution: {integrity: sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==} + /acorn@8.14.0: + resolution: {integrity: sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==} engines: {node: '>=0.4.0'} hasBin: true dev: true @@ -813,13 +804,6 @@ packages: engines: {node: '>=8'} dev: true - /ansi-styles@3.2.1: - resolution: {integrity: sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==} - engines: {node: '>=4'} - dependencies: - color-convert: 1.9.1 - dev: true - /ansi-styles@4.3.0: resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} engines: {node: '>=8'} @@ -1065,15 +1049,6 @@ packages: type-detect: 4.1.0 dev: true - /chalk@2.4.2: - resolution: {integrity: sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==} - engines: {node: '>=4'} - dependencies: - ansi-styles: 3.2.1 - escape-string-regexp: 1.0.5 - supports-color: 5.5.0 - dev: true - /chalk@4.1.2: resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} engines: {node: '>=10'} @@ -1120,12 +1095,6 @@ packages: engines: {node: '>=0.8'} dev: true - /color-convert@1.9.1: - resolution: {integrity: sha512-mjGanIiwQJskCC18rPR6OmrZ6fm2Lc7PeGFYwCmy5J34wC6F1PzdGL6xeMfmgicfYcNLGuVFA3WzXtIDCQSZxQ==} - dependencies: - color-name: 1.1.4 - dev: true - /color-convert@2.0.1: resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} engines: {node: '>=7.0.0'} @@ -1201,8 +1170,8 @@ packages: which: 1.3.1 dev: true - /cross-spawn@7.0.3: - resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==} + /cross-spawn@7.0.5: + resolution: {integrity: sha512-ZVJrKKYunU38/76t0RMOulHOnUcbU9GbpWKAOZ0mhjr7CX6FVrH+4FrAapSOekrgFQ3f/8gwMEuIft0aKq6Hug==} engines: {node: '>= 8'} dependencies: path-key: 3.1.1 @@ -1275,8 +1244,8 @@ packages: ms: 2.1.1 dev: true - /debug@4.3.6(supports-color@8.1.1): - resolution: {integrity: sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==} + /debug@4.3.7(supports-color@8.1.1): + resolution: {integrity: sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==} engines: {node: '>=6.0'} peerDependencies: supports-color: '*' @@ -1284,7 +1253,7 @@ packages: supports-color: optional: true dependencies: - ms: 2.1.2 + ms: 2.1.3 supports-color: 8.1.1 dev: true @@ -1321,7 +1290,7 @@ packages: object-is: 1.1.6 object-keys: 1.1.1 object.assign: 4.1.5 - regexp.prototype.flags: 1.5.2 + regexp.prototype.flags: 1.5.3 side-channel: 1.0.6 which-boxed-primitive: 1.0.2 which-collection: 1.0.2 @@ -1455,10 +1424,10 @@ packages: is-string: 1.0.7 is-typed-array: 1.1.13 is-weakref: 1.0.2 - object-inspect: 1.13.2 + object-inspect: 1.13.3 object-keys: 1.1.1 object.assign: 4.1.5 - regexp.prototype.flags: 1.5.2 + regexp.prototype.flags: 1.5.3 safe-array-concat: 1.1.2 safe-regex-test: 1.0.3 string.prototype.trim: 1.2.9 @@ -1564,16 +1533,16 @@ packages: engines: {node: '>=10'} dev: true - /eslint-config-prettier@3.6.0(eslint@8.57.0): + /eslint-config-prettier@3.6.0(eslint@8.57.1): resolution: {integrity: sha512-ixJ4U3uTLXwJts4rmSVW/lMXjlGwCijhBJHk8iVqKKSifeI0qgFEfWl8L63isfc8Od7EiBALF6BX3jKLluf/jQ==} peerDependencies: eslint: '>=3.14.1' dependencies: - eslint: 8.57.0 + eslint: 8.57.1 get-stdin: 6.0.0 dev: true - /eslint-plugin-flowtype@8.0.3(@babel/plugin-syntax-flow@7.24.7)(@babel/plugin-transform-react-jsx@7.25.2)(eslint@8.57.0): + /eslint-plugin-flowtype@8.0.3(@babel/plugin-syntax-flow@7.26.0)(@babel/plugin-transform-react-jsx@7.25.9)(eslint@8.57.1): resolution: {integrity: sha512-dX8l6qUL6O+fYPtpNRideCFSpmWOUVx5QcaGLVqe/vlDiBSe4vYljDWDETwnyFzpl7By/WVIu6rcrniCgH9BqQ==} engines: {node: '>=12.0.0'} peerDependencies: @@ -1581,9 +1550,9 @@ packages: '@babel/plugin-transform-react-jsx': ^7.14.9 eslint: ^8.1.0 dependencies: - '@babel/plugin-syntax-flow': 7.24.7(@babel/core@7.4.3) - '@babel/plugin-transform-react-jsx': 7.25.2(@babel/core@7.4.3) - eslint: 8.57.0 + '@babel/plugin-syntax-flow': 7.26.0(@babel/core@7.4.3) + '@babel/plugin-transform-react-jsx': 7.25.9(@babel/core@7.4.3) + eslint: 8.57.1 lodash: 4.17.21 string-natural-compare: 3.0.1 dev: true @@ -1593,7 +1562,7 @@ packages: engines: {node: '>=5.0.0'} dev: true - /eslint-plugin-react@7.35.0(eslint@8.57.0): + /eslint-plugin-react@7.35.0(eslint@8.57.1): resolution: {integrity: sha512-v501SSMOWv8gerHkk+IIQBkcGRGrO2nfybfj5pLxuJNFTPxxA3PSryhXTK+9pNbtkggheDdsC0E9Q8CuPk6JKA==} engines: {node: '>=4'} peerDependencies: @@ -1605,7 +1574,7 @@ packages: array.prototype.tosorted: 1.1.4 doctrine: 2.1.0 es-iterator-helpers: 1.0.19 - eslint: 8.57.0 + eslint: 8.57.1 estraverse: 5.3.0 hasown: 2.0.2 jsx-ast-utils: 3.3.5 @@ -1633,23 +1602,24 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /eslint@8.57.0: - resolution: {integrity: sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==} + /eslint@8.57.1: + resolution: {integrity: sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options. hasBin: true dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) - '@eslint-community/regexpp': 4.11.0 + '@eslint-community/eslint-utils': 4.4.1(eslint@8.57.1) + '@eslint-community/regexpp': 4.12.1 '@eslint/eslintrc': 2.1.4 - '@eslint/js': 8.57.0 - '@humanwhocodes/config-array': 0.11.14 + '@eslint/js': 8.57.1 + '@humanwhocodes/config-array': 0.13.0 '@humanwhocodes/module-importer': 1.0.1 '@nodelib/fs.walk': 1.2.8 '@ungap/structured-clone': 1.2.0 ajv: 6.12.6 chalk: 4.1.2 - cross-spawn: 7.0.3 - debug: 4.3.6(supports-color@8.1.1) + cross-spawn: 7.0.5 + debug: 4.3.7(supports-color@8.1.1) doctrine: 3.0.0 escape-string-regexp: 4.0.0 eslint-scope: 7.2.2 @@ -1684,8 +1654,8 @@ packages: resolution: {integrity: sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: - acorn: 8.12.1 - acorn-jsx: 5.3.2(acorn@8.12.1) + acorn: 8.14.0 + acorn-jsx: 5.3.2(acorn@8.14.0) eslint-visitor-keys: 3.4.3 dev: true @@ -1886,8 +1856,8 @@ packages: is-callable: 1.1.4 dev: true - /form-data@4.0.0: - resolution: {integrity: sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==} + /form-data@4.0.1: + resolution: {integrity: sha512-tzN8e4TX8+kkxGPK8D5u0FNmjPUjw3lwC9lSLxxoB/+GtsJG91CO8bSWy73APlgAZzZbXEYZJuxjkHH2w+Ezhw==} engines: {node: '>= 6'} dependencies: asynckit: 0.4.0 @@ -2122,11 +2092,6 @@ packages: resolution: {integrity: sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==} dev: true - /has-flag@3.0.0: - resolution: {integrity: sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==} - engines: {node: '>=4'} - dev: true - /has-flag@4.0.0: resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} engines: {node: '>=8'} @@ -2637,13 +2602,13 @@ packages: data-urls: 4.0.0 decimal.js: 10.4.3 domexception: 4.0.0 - form-data: 4.0.0 + form-data: 4.0.1 html-encoding-sniffer: 3.0.0 http-proxy-agent: 5.0.0 https-proxy-agent: 5.0.1 is-potential-custom-element-name: 1.0.1 - nwsapi: 2.2.12 - parse5: 7.1.2 + nwsapi: 2.2.13 + parse5: 7.2.1 rrweb-cssom: 0.6.0 saxes: 6.0.0 symbol-tree: 3.2.4 @@ -2667,6 +2632,12 @@ packages: hasBin: true dev: true + /jsesc@3.0.2: + resolution: {integrity: sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g==} + engines: {node: '>=6'} + hasBin: true + dev: true + /json-buffer@3.0.1: resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==} dev: true @@ -2886,15 +2857,15 @@ packages: minimist: 0.0.8 dev: true - /mocha@10.7.3: - resolution: {integrity: sha512-uQWxAu44wwiACGqjbPYmjo7Lg8sFrS3dQe7PP2FQI+woptP4vZXSMcfMyFL/e1yFEeEpV4RtyTpZROOKmxis+A==} + /mocha@10.8.2: + resolution: {integrity: sha512-VZlYo/WE8t1tstuRmqgeyBgCbJc/lEdopaa+axcKzTBJ+UIdlAB9XnmvTCAH4pwR4ElNInaedhEBmZD8iCSVEg==} engines: {node: '>= 14.0.0'} hasBin: true dependencies: ansi-colors: 4.1.3 browser-stdout: 1.3.1 chokidar: 3.6.0 - debug: 4.3.6(supports-color@8.1.1) + debug: 4.3.7(supports-color@8.1.1) diff: 5.2.0 escape-string-regexp: 4.0.0 find-up: 5.0.0 @@ -2917,10 +2888,6 @@ packages: resolution: {integrity: sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==} dev: true - /ms@2.1.2: - resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==} - dev: true - /ms@2.1.3: resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} dev: true @@ -2940,7 +2907,7 @@ packages: '@sinonjs/fake-timers': 11.3.1 '@sinonjs/text-encoding': 0.7.3 just-extend: 6.2.0 - path-to-regexp: 6.2.2 + path-to-regexp: 6.3.0 dev: true /normalize-path@3.0.0: @@ -2958,16 +2925,16 @@ packages: sort-keys: 1.1.2 dev: true - /nwsapi@2.2.12: - resolution: {integrity: sha512-qXDmcVlZV4XRtKFzddidpfVP4oMSGhga+xdMc25mv8kaLUHtgzCDhUxkrN8exkGdTlLNaXj7CV3GtON7zuGZ+w==} + /nwsapi@2.2.13: + resolution: {integrity: sha512-cTGB9ptp9dY9A5VbMSe7fQBcl/tt22Vcqdq8+eN93rblOuE0aCFu4aZ2vMwct/2t+lFnosm8RkQW1I0Omb1UtQ==} dev: true /object-assign@4.1.1: resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==} engines: {node: '>=0.10.0'} - /object-inspect@1.13.2: - resolution: {integrity: sha512-IRZSRuzJiynemAXPYtPe5BoI/RESNYR7TYm50MC5Mqbd3Jmw5y790sErYw3V6SryFJD64b74qQQs9wn5Bg/k3g==} + /object-inspect@1.13.3: + resolution: {integrity: sha512-kDCGIbxkDSXE3euJZZXzc6to7fCrKHNI/hSRQnRuQ+BWjFNzZwiFF8fj/6o2t2G9/jTj8PSIYTfCLelLZEeRpA==} engines: {node: '>= 0.4'} dev: true @@ -3095,8 +3062,8 @@ packages: engines: {node: '>=0.10.0'} dev: true - /parse5@7.1.2: - resolution: {integrity: sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==} + /parse5@7.2.1: + resolution: {integrity: sha512-BuBYQYlv1ckiPdQi/ohiivi9Sagc9JG+Ozs0r7b/0iK3sKmrb0b9FdWdBbOdx6hBCM/F9Ir82ofnBhtZOjCRPQ==} dependencies: entities: 4.5.0 dev: true @@ -3134,8 +3101,8 @@ packages: resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} dev: true - /path-to-regexp@6.2.2: - resolution: {integrity: sha512-GQX3SSMokngb36+whdpRXE+3f9V8UzyAorlYvOGx87ufGHehNTn5lCxrKtLyZ4Yl/wEKnNnr98ZzOwwDZV5ogw==} + /path-to-regexp@6.3.0: + resolution: {integrity: sha512-Yhpw4T9C6hPpgPeA28us07OJeqZ5EzQTkbfwuhsUg0c237RomFoETJgmp2sa3F/41gfLE6G5cqcYwznmeEeOlQ==} dev: true /path-type@4.0.0: @@ -3147,8 +3114,8 @@ packages: resolution: {integrity: sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==} dev: true - /picocolors@1.0.1: - resolution: {integrity: sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==} + /picocolors@1.1.1: + resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} dev: true /picomatch@2.3.1: @@ -3224,8 +3191,10 @@ packages: react-is: 16.13.1 dev: true - /psl@1.9.0: - resolution: {integrity: sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==} + /psl@1.10.0: + resolution: {integrity: sha512-KSKHEbjAnpUuAUserOq0FxGXCUrzC3WniuSJhvdbs102rL55266ZcHBqLWOsG30spQMlPdpy7icATiAQehg/iA==} + dependencies: + punycode: 2.3.1 dev: true /punycode@2.1.1: @@ -3324,8 +3293,8 @@ packages: /regenerator-runtime@0.14.1: resolution: {integrity: sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==} - /regexp.prototype.flags@1.5.2: - resolution: {integrity: sha512-NcDiDkTLuPR+++OCKB0nWafEmhg/Da8aUPLPMQbK+bxKKCm1/S5he+AqYa4PlMCVBalb4/yxIRub6qkEx5yJbw==} + /regexp.prototype.flags@1.5.3: + resolution: {integrity: sha512-vqlC04+RQoFalODCbCumG2xIOvapzVMHwsyIGM/SIE8fRhFFsXeH8/QQ+s0T0kDAhKc4k30s73/0ydkHQz6HlQ==} engines: {node: '>= 0.4'} dependencies: call-bind: 1.0.7 @@ -3536,7 +3505,7 @@ packages: call-bind: 1.0.7 es-errors: 1.3.0 get-intrinsic: 1.2.4 - object-inspect: 1.13.2 + object-inspect: 1.13.3 dev: true /sinon@14.0.0: @@ -3605,7 +3574,7 @@ packages: gopd: 1.0.1 has-symbols: 1.0.3 internal-slot: 1.0.7 - regexp.prototype.flags: 1.5.2 + regexp.prototype.flags: 1.5.3 set-function-name: 2.0.2 side-channel: 1.0.6 dev: true @@ -3692,13 +3661,6 @@ packages: engines: {node: '>=0.10.0'} dev: true - /supports-color@5.5.0: - resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==} - engines: {node: '>=4'} - dependencies: - has-flag: 3.0.0 - dev: true - /supports-color@7.2.0: resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} engines: {node: '>=8'} @@ -3770,7 +3732,7 @@ packages: resolution: {integrity: sha512-Loo5UUvLD9ScZ6jh8beX1T6sO1w2/MpCRpEP7V280GKMVUQ0Jzar2U3UJPsrdbziLEMMhu3Ujnq//rhiFuIeag==} engines: {node: '>=6'} dependencies: - psl: 1.9.0 + psl: 1.10.0 punycode: 2.1.1 universalify: 0.2.0 url-parse: 1.5.10 @@ -3795,13 +3757,13 @@ packages: engines: {node: '>=0.10.0'} dev: true - /ts-api-utils@1.3.0(typescript@5.5.4): + /ts-api-utils@1.3.0(typescript@5.6.3): resolution: {integrity: sha512-UQMIo7pb8WRomKR1/+MFVLTroIvDVtMX3K6OUir8ynLyzB8Jeriont2bTAtmNPa1ekAgN7YPDyf6V+ygrdU+eQ==} engines: {node: '>=16'} peerDependencies: typescript: '>=4.2.0' dependencies: - typescript: 5.5.4 + typescript: 5.6.3 dev: true /type-check@0.4.0: @@ -3870,8 +3832,8 @@ packages: possible-typed-array-names: 1.0.0 dev: true - /typescript@5.5.4: - resolution: {integrity: sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==} + /typescript@5.6.3: + resolution: {integrity: sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==} engines: {node: '>=14.17'} hasBin: true dev: true diff --git a/fixtures/react-view-slider-ts/init-snapshot/toolchain.config.cjs b/fixtures/react-view-slider-ts/init-snapshot/toolchain.config.cjs index 75b77e1..1a49731 100644 --- a/fixtures/react-view-slider-ts/init-snapshot/toolchain.config.cjs +++ b/fixtures/react-view-slider-ts/init-snapshot/toolchain.config.cjs @@ -1,6 +1,6 @@ /* eslint-env node, es2018 */ module.exports = { - cjsBabelEnv: { forceAllTransforms: true }, + cjsBabelEnv: { targets: { node: 16 } }, esmBabelEnv: { targets: { node: 16 } }, // outputEsm: false, // disables ESM output (default: true) buildIgnore: ['src/**/__tests__'], diff --git a/fixtures/react-view-slider/init-snapshot/dist/index.js b/fixtures/react-view-slider/init-snapshot/dist/index.js index 904386b..02b84fc 100644 --- a/fixtures/react-view-slider/init-snapshot/dist/index.js +++ b/fixtures/react-view-slider/init-snapshot/dist/index.js @@ -1,45 +1,34 @@ "use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); -var _typeof = require("@babel/runtime/helpers/typeof"); Object.defineProperty(exports, "__esModule", { value: true }); -exports.defaultProps = exports["default"] = void 0; -var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); -var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); -var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized")); -var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits")); -var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn")); -var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf")); -var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty")); +exports.defaultProps = exports.default = void 0; var React = _interopRequireWildcard(require("react")); var _inlineStylePrefixer = _interopRequireDefault(require("inline-style-prefixer")); -function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } -function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } -function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } -function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } /* eslint-env browser */ -var fillStyle = { +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } +/* eslint-env browser */ +const fillStyle = { position: 'absolute', top: 0, left: 0, right: 0, bottom: 0 }; -var baseViewStyle = { +const baseViewStyle = { display: 'inline-block', verticalAlign: 'top', whiteSpace: 'normal', width: '100%' }; -var defaultProps = { +const defaultProps = { animateHeight: true, transitionDuration: 500, transitionTimingFunction: 'ease', keepViewsMounted: false, - prefixer: new _inlineStylePrefixer["default"](), + prefixer: new _inlineStylePrefixer.default(), style: {}, viewportStyle: {}, rtl: false, @@ -47,259 +36,244 @@ var defaultProps = { }; exports.defaultProps = defaultProps; function applyDefaults(props) { - var result = _objectSpread({}, props); - for (var key in defaultProps) { + const result = { + ...props + }; + for (const key in defaultProps) { if (Object.prototype.hasOwnProperty.call(defaultProps, key) && props[key] == null) { result[key] = defaultProps[key]; } } return result; } -var ViewSlider = /*#__PURE__*/function (_React$Component) { - (0, _inherits2["default"])(ViewSlider, _React$Component); - var _super = _createSuper(ViewSlider); - function ViewSlider() { - var _this; - (0, _classCallCheck2["default"])(this, ViewSlider); - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; +class ViewSlider extends React.Component { + state = { + height: undefined, + transitioning: false, + activeView: this.props.activeView, + numViews: this.props.numViews, + // this is used to determine the correct transitionState for the previous active view. + prevActiveView: null + }; + views = []; + timeouts = {}; + lastProps = this.props; + getDefaultedProps = () => { + if (this.lastProps !== this.props || !this.lastDefaultedProps) { + this.lastProps = this.props; + this.lastDefaultedProps = applyDefaults(this.props); } - _this = _super.call.apply(_super, [this].concat(args)); - (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "state", { - height: undefined, - transitioning: false, - activeView: _this.props.activeView, - numViews: _this.props.numViews, - // this is used to determine the correct transitionState for the previous active view. - prevActiveView: null - }); - (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "views", []); - (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "timeouts", {}); - (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "lastProps", _this.props); - (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "getDefaultedProps", function () { - if (_this.lastProps !== _this.props || !_this.lastDefaultedProps) { - _this.lastProps = _this.props; - _this.lastDefaultedProps = applyDefaults(_this.props); + return this.lastDefaultedProps; + }; + measureHeight = node => { + if (!node) return null; + return node.clientHeight; + }; + setTimeout(name, callback, delay) { + if (this.timeouts[name]) clearTimeout(this.timeouts[name]); + this.timeouts[name] = setTimeout(callback, delay); + } + componentDidUpdate() { + const { + activeView, + transitionDuration, + keepViewsMounted + } = this.getDefaultedProps(); + let newState; + if (activeView !== this.state.activeView && this.state.height === undefined) { + if (keepViewsMounted) { + // scroll all views except the current back to the top + for (let i = 0; i < this.views.length; i++) { + if (i === this.state.activeView) continue; + if (this.views[i]) this.views[i].scrollTop = 0; + } + } + // phase 1: set current height + newState = { + height: this.measureHeight(this.views[this.state.activeView]) + }; + } else if (this.state.height !== undefined && !this.state.transitioning) { + // phase 2: enable transitions + newState = { + transitioning: true + }; + } else if (activeView !== this.state.activeView) { + // phase 3: change height/activeView + newState = { + activeView, + numViews: Math.max(this.state.numViews, activeView + 1), + prevActiveView: this.state.activeView, + height: this.measureHeight(this.views[activeView]) + }; + } + const finalNewState = newState; + if (!finalNewState) return; + this.setState(finalNewState, () => { + if (finalNewState.activeView != null) { + this.setTimeout('onTransitionEnd', this.onTransitionEnd, transitionDuration); } - return _this.lastDefaultedProps; - }); - (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "measureHeight", function (node) { - if (!node) return null; - return node.clientHeight; - }); - (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onTransitionEnd", function (event) { - // ignore transitionend events from deeper components - if (event && event.target !== _this.viewport) return; - // phase 0: unset height and disable transitions - _this.setState({ - height: undefined, - numViews: _this.props.numViews, - prevActiveView: null, - transitioning: false - }, function () { - var onSlideTransitionEnd = _this.props.onSlideTransitionEnd; - if (onSlideTransitionEnd) onSlideTransitionEnd(); - }); }); - (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "getTransitionState", function (childIndex) { - var _this$state = _this.state, - activeView = _this$state.activeView, - prevActiveView = _this$state.prevActiveView; - if (prevActiveView == null) return childIndex === activeView ? 'in' : 'out'; - if (childIndex === activeView) return 'entering'; - if (childIndex === prevActiveView) return 'leaving'; - return 'out'; + } + onTransitionEnd = event => { + // ignore transitionend events from deeper components + if (event && event.target !== this.viewport) return; + // phase 0: unset height and disable transitions + this.setState({ + height: undefined, + numViews: this.props.numViews, + prevActiveView: null, + transitioning: false + }, () => { + const { + onSlideTransitionEnd + } = this.props; + if (onSlideTransitionEnd) onSlideTransitionEnd(); }); - (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "renderView", function (index) { - var _this$getDefaultedPro = _this.getDefaultedProps(), - fillParent = _this$getDefaultedPro.fillParent, - prefixer = _this$getDefaultedPro.prefixer, - keepViewsMounted = _this$getDefaultedPro.keepViewsMounted, - spacing = _this$getDefaultedPro.spacing, - rtl = _this$getDefaultedPro.rtl, - viewStyle = _this$getDefaultedPro.viewStyle, - innerViewWrapperStyle = _this$getDefaultedPro.innerViewWrapperStyle; - var _this$state2 = _this.state, - activeView = _this$state2.activeView, - transitioning = _this$state2.transitioning; - var style = _objectSpread(_objectSpread({}, baseViewStyle), viewStyle); - if (fillParent) { - Object.assign(style, fillStyle); - style.overflow = 'auto'; - if (rtl) style.right = "".concat(index * spacing * 100, "%");else style.left = "".concat(index * spacing * 100, "%"); - } else if (index > 0) { - if (rtl) style.marginRight = "".concat((spacing - 1) * 100, "%");else style.marginLeft = "".concat((spacing - 1) * 100, "%"); - } + }; + componentWillUnmount() { + for (let name in this.timeouts) clearTimeout(this.timeouts[name]); + } + getTransitionState = childIndex => { + const { + activeView, + prevActiveView + } = this.state; + if (prevActiveView == null) return childIndex === activeView ? 'in' : 'out'; + if (childIndex === activeView) return 'entering'; + if (childIndex === prevActiveView) return 'leaving'; + return 'out'; + }; + renderView = index => { + const { + fillParent, + prefixer, + keepViewsMounted, + spacing, + rtl, + viewStyle, + innerViewWrapperStyle + } = this.getDefaultedProps(); + const { + activeView, + transitioning + } = this.state; + const style = { + ...baseViewStyle, + ...viewStyle + }; + if (fillParent) { + Object.assign(style, fillStyle); + style.overflow = 'auto'; + if (rtl) style.right = `${index * spacing * 100}%`;else style.left = `${index * spacing * 100}%`; + } else if (index > 0) { + if (rtl) style.marginRight = `${(spacing - 1) * 100}%`;else style.marginLeft = `${(spacing - 1) * 100}%`; + } - // when not transitioning, render empty placeholder divs before the active view to push it into the right - // horizontal position - if (!transitioning && activeView !== index && !keepViewsMounted) { - return /*#__PURE__*/React.createElement("div", { - key: index, - style: prefixer.prefix(style) - }); - } + // when not transitioning, render empty placeholder divs before the active view to push it into the right + // horizontal position + if (!transitioning && activeView !== index && !keepViewsMounted) { return /*#__PURE__*/React.createElement("div", { key: index, - style: prefixer.prefix(style), - ref: function ref(c) { - return _this.views[index] = c; - } - }, /*#__PURE__*/React.createElement("div", { - style: prefixer.prefix(_objectSpread({ - width: '100%' - }, innerViewWrapperStyle)) - }, _this.props.renderView({ - index: index, - active: index === activeView, - transitionState: _this.getTransitionState(index) - }))); - }); - (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "animateHeight", function () { - var _this$getDefaultedPro2 = _this.getDefaultedProps(), - animateHeight = _this$getDefaultedPro2.animateHeight, - fillParent = _this$getDefaultedPro2.fillParent, - keepViewsMounted = _this$getDefaultedPro2.keepViewsMounted; - return animateHeight && !fillParent && !keepViewsMounted; - }); - (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "rootRef", function (node) { - _this.root = node; - var _this$getDefaultedPro3 = _this.getDefaultedProps(), - rootRef = _this$getDefaultedPro3.rootRef; - if (rootRef) rootRef(node); - }); - (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "viewportRef", function (node) { - _this.viewport = node; - var _this$getDefaultedPro4 = _this.getDefaultedProps(), - viewportRef = _this$getDefaultedPro4.viewportRef; - if (viewportRef) viewportRef(node); - }); - return _this; - } - (0, _createClass2["default"])(ViewSlider, [{ - key: "setTimeout", - value: function (_setTimeout) { - function setTimeout(_x, _x2, _x3) { - return _setTimeout.apply(this, arguments); - } - setTimeout.toString = function () { - return _setTimeout.toString(); - }; - return setTimeout; - }(function (name, callback, delay) { - if (this.timeouts[name]) clearTimeout(this.timeouts[name]); - this.timeouts[name] = setTimeout(callback, delay); - }) - }, { - key: "componentDidUpdate", - value: function componentDidUpdate() { - var _this2 = this; - var _this$getDefaultedPro5 = this.getDefaultedProps(), - activeView = _this$getDefaultedPro5.activeView, - transitionDuration = _this$getDefaultedPro5.transitionDuration, - keepViewsMounted = _this$getDefaultedPro5.keepViewsMounted; - var newState; - if (activeView !== this.state.activeView && this.state.height === undefined) { - if (keepViewsMounted) { - // scroll all views except the current back to the top - for (var i = 0; i < this.views.length; i++) { - if (i === this.state.activeView) continue; - if (this.views[i]) this.views[i].scrollTop = 0; - } - } - // phase 1: set current height - newState = { - height: this.measureHeight(this.views[this.state.activeView]) - }; - } else if (this.state.height !== undefined && !this.state.transitioning) { - // phase 2: enable transitions - newState = { - transitioning: true - }; - } else if (activeView !== this.state.activeView) { - // phase 3: change height/activeView - newState = { - activeView: activeView, - numViews: Math.max(this.state.numViews, activeView + 1), - prevActiveView: this.state.activeView, - height: this.measureHeight(this.views[activeView]) - }; - } - var finalNewState = newState; - if (!finalNewState) return; - this.setState(finalNewState, function () { - if (finalNewState.activeView != null) { - _this2.setTimeout('onTransitionEnd', _this2.onTransitionEnd, transitionDuration); - } + style: prefixer.prefix(style) }); } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - for (var _name in this.timeouts) { - clearTimeout(this.timeouts[_name]); - } + return /*#__PURE__*/React.createElement("div", { + key: index, + style: prefixer.prefix(style), + ref: c => this.views[index] = c + }, /*#__PURE__*/React.createElement("div", { + style: prefixer.prefix({ + width: '100%', + ...innerViewWrapperStyle + }) + }, this.props.renderView({ + index, + active: index === activeView, + transitionState: this.getTransitionState(index) + }))); + }; + animateHeight = () => { + const { + animateHeight, + fillParent, + keepViewsMounted + } = this.getDefaultedProps(); + return animateHeight && !fillParent && !keepViewsMounted; + }; + rootRef = node => { + this.root = node; + const { + rootRef + } = this.getDefaultedProps(); + if (rootRef) rootRef(node); + }; + viewportRef = node => { + this.viewport = node; + const { + viewportRef + } = this.getDefaultedProps(); + if (viewportRef) viewportRef(node); + }; + render() { + const { + style, + className, + viewportClassName, + viewportStyle, + prefixer, + fillParent, + transitionDuration, + transitionTimingFunction, + keepViewsMounted, + rtl, + spacing + } = this.getDefaultedProps(); + const animateHeight = this.animateHeight(); + const { + activeView, + numViews, + height, + transitioning + } = this.state; + const finalOuterStyle = { + transitionProperty: 'height', + transitionDuration: `${transitionDuration}ms`, + transitionTimingFunction, + overflow: 'hidden', + height: animateHeight && height != null ? height : undefined, + ...style + }; + const finalViewportStyle = { + position: 'relative', + transform: `translateX(calc(${activeView * spacing * (rtl ? 100 : -100)}% + 0px))`, + whiteSpace: 'nowrap', + minHeight: '100%', + direction: rtl ? 'rtl' : 'ltr', + transition: transitioning ? `transform ${transitionTimingFunction} ${transitionDuration}ms` : undefined, + ...viewportStyle + }; + if (fillParent) { + Object.assign(finalOuterStyle, fillStyle); + Object.assign(finalViewportStyle, fillStyle); } - }, { - key: "render", - value: function render() { - var _this$getDefaultedPro6 = this.getDefaultedProps(), - style = _this$getDefaultedPro6.style, - className = _this$getDefaultedPro6.className, - viewportClassName = _this$getDefaultedPro6.viewportClassName, - viewportStyle = _this$getDefaultedPro6.viewportStyle, - prefixer = _this$getDefaultedPro6.prefixer, - fillParent = _this$getDefaultedPro6.fillParent, - transitionDuration = _this$getDefaultedPro6.transitionDuration, - transitionTimingFunction = _this$getDefaultedPro6.transitionTimingFunction, - keepViewsMounted = _this$getDefaultedPro6.keepViewsMounted, - rtl = _this$getDefaultedPro6.rtl, - spacing = _this$getDefaultedPro6.spacing; - var animateHeight = this.animateHeight(); - var _this$state3 = this.state, - activeView = _this$state3.activeView, - numViews = _this$state3.numViews, - height = _this$state3.height, - transitioning = _this$state3.transitioning; - var finalOuterStyle = _objectSpread({ - transitionProperty: 'height', - transitionDuration: "".concat(transitionDuration, "ms"), - transitionTimingFunction: transitionTimingFunction, - overflow: 'hidden', - height: animateHeight && height != null ? height : undefined - }, style); - var finalViewportStyle = _objectSpread({ - position: 'relative', - transform: "translateX(calc(".concat(activeView * spacing * (rtl ? 100 : -100), "% + 0px))"), - whiteSpace: 'nowrap', - minHeight: '100%', - direction: rtl ? 'rtl' : 'ltr', - transition: transitioning ? "transform ".concat(transitionTimingFunction, " ").concat(transitionDuration, "ms") : undefined - }, viewportStyle); - if (fillParent) { - Object.assign(finalOuterStyle, fillStyle); - Object.assign(finalViewportStyle, fillStyle); - } - // when not transitioning, render empty placeholder divs before the active view to push it into the right - // horizontal position - var views = []; - for (var i = 0; i < (transitioning || keepViewsMounted ? numViews : activeView + 1); i++) { - views[i] = this.renderView(i); - } - return /*#__PURE__*/React.createElement("div", { - style: prefixer.prefix(finalOuterStyle), - className: className, - ref: this.rootRef - }, /*#__PURE__*/React.createElement("div", { - className: viewportClassName, - style: prefixer.prefix(finalViewportStyle), - ref: this.viewportRef, - onTransitionEnd: this.onTransitionEnd - }, views)); + // when not transitioning, render empty placeholder divs before the active view to push it into the right + // horizontal position + const views = []; + for (let i = 0; i < (transitioning || keepViewsMounted ? numViews : activeView + 1); i++) { + views[i] = this.renderView(i); } - }]); - return ViewSlider; -}(React.Component); -exports["default"] = ViewSlider; + return /*#__PURE__*/React.createElement("div", { + style: prefixer.prefix(finalOuterStyle), + className: className, + ref: this.rootRef + }, /*#__PURE__*/React.createElement("div", { + className: viewportClassName, + style: prefixer.prefix(finalViewportStyle), + ref: this.viewportRef, + onTransitionEnd: this.onTransitionEnd + }, views)); + } +} +exports.default = ViewSlider; //# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/fixtures/react-view-slider/init-snapshot/dist/index.js.map b/fixtures/react-view-slider/init-snapshot/dist/index.js.map index 95f07d6..c43ac55 100644 --- a/fixtures/react-view-slider/init-snapshot/dist/index.js.map +++ b/fixtures/react-view-slider/init-snapshot/dist/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","names":["React","_interopRequireWildcard","require","_inlineStylePrefixer","_interopRequireDefault","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","valueOf","e","ownKeys","object","enumerableOnly","keys","getOwnPropertySymbols","symbols","filter","sym","enumerable","push","_objectSpread","target","i","length","source","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","fillStyle","position","top","left","right","bottom","baseViewStyle","display","verticalAlign","whiteSpace","width","defaultProps","animateHeight","transitionDuration","transitionTimingFunction","keepViewsMounted","prefixer","Prefixer","style","viewportStyle","rtl","spacing","exports","applyDefaults","props","ViewSlider","_React$Component","_inherits2","_super","_this","_classCallCheck2","_len","args","Array","_key","concat","_assertThisInitialized2","height","undefined","transitioning","activeView","numViews","prevActiveView","lastProps","lastDefaultedProps","node","clientHeight","event","viewport","setState","onSlideTransitionEnd","childIndex","_this$state","state","index","_this$getDefaultedPro","getDefaultedProps","fillParent","viewStyle","innerViewWrapperStyle","_this$state2","assign","overflow","marginRight","marginLeft","createElement","prefix","ref","c","views","renderView","active","transitionState","getTransitionState","_this$getDefaultedPro2","root","_this$getDefaultedPro3","rootRef","_this$getDefaultedPro4","viewportRef","_createClass2","value","_setTimeout","setTimeout","_x","_x2","_x3","toString","name","callback","delay","timeouts","clearTimeout","componentDidUpdate","_this2","_this$getDefaultedPro5","newState","scrollTop","measureHeight","Math","max","finalNewState","onTransitionEnd","componentWillUnmount","render","_this$getDefaultedPro6","className","viewportClassName","_this$state3","finalOuterStyle","transitionProperty","finalViewportStyle","transform","minHeight","direction","transition","Component"],"sources":["src/index.js"],"sourcesContent":["/* @flow */\n/* eslint-env browser */\n\nimport * as React from 'react'\nimport Prefixer from 'inline-style-prefixer'\n\ntype TransitionState = 'in' | 'out' | 'entering' | 'leaving'\n\nexport type ViewProps = {\n index: number,\n active: boolean,\n transitionState: TransitionState,\n}\n\nexport type DefaultProps = {\n animateHeight: boolean,\n keepViewsMounted: boolean,\n transitionDuration: number,\n transitionTimingFunction: string,\n prefixer: Prefixer,\n style: Object,\n viewportStyle: Object,\n rtl: boolean,\n spacing: number,\n}\n\nexport type Props = {\n activeView: number,\n numViews: number,\n renderView: (props: ViewProps) => React.Node,\n keepViewsMounted?: ?boolean,\n animateHeight?: ?boolean,\n transitionDuration?: ?number,\n transitionTimingFunction?: ?string,\n onSlideTransitionEnd?: ?() => mixed,\n prefixer?: ?Prefixer,\n fillParent?: ?boolean,\n className?: ?string,\n style?: ?Object,\n viewportClassName?: ?string,\n viewportStyle?: ?Object,\n viewStyle?: ?Object,\n innerViewWrapperStyle?: ?Object,\n rootRef?: ?(node: ?React.ElementRef<'div'>) => mixed,\n viewportRef?: ?(node: ?React.ElementRef<'div'>) => mixed,\n rtl?: ?boolean,\n spacing?: ?number,\n}\n\ntype DefaultedProps = {\n activeView: number,\n numViews: number,\n renderView: (props: ViewProps) => React.Node,\n keepViewsMounted: boolean,\n animateHeight: boolean,\n transitionDuration: number,\n transitionTimingFunction: string,\n prefixer: Prefixer,\n fillParent?: boolean,\n className?: string,\n style: Object,\n viewportClassName?: ?string,\n viewportStyle: Object,\n viewStyle?: ?Object,\n innerViewWrapperStyle?: ?Object,\n rootRef?: ?(node: ?React.ElementRef<'div'>) => mixed,\n viewportRef?: ?(node: ?React.ElementRef<'div'>) => mixed,\n rtl: boolean,\n spacing: number,\n}\n\nexport type State = {\n height: ?number,\n transitioning: boolean,\n activeView: number,\n numViews: number,\n prevActiveView: ?number,\n}\n\nconst fillStyle = {\n position: 'absolute',\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n}\n\nconst baseViewStyle = {\n display: 'inline-block',\n verticalAlign: 'top',\n whiteSpace: 'normal',\n width: '100%',\n}\n\nexport const defaultProps: DefaultProps = {\n animateHeight: true,\n transitionDuration: 500,\n transitionTimingFunction: 'ease',\n keepViewsMounted: false,\n prefixer: new Prefixer(),\n style: {},\n viewportStyle: {},\n rtl: false,\n spacing: 1,\n}\n\nfunction applyDefaults(props: Props): DefaultedProps {\n const result: any = { ...props }\n for (const key in defaultProps) {\n if (\n Object.prototype.hasOwnProperty.call(defaultProps, key) &&\n props[key] == null\n ) {\n result[key] = defaultProps[key]\n }\n }\n return result\n}\n\nexport default class ViewSlider extends React.Component {\n state: State = {\n height: undefined,\n transitioning: false,\n activeView: this.props.activeView,\n numViews: this.props.numViews,\n // this is used to determine the correct transitionState for the previous active view.\n prevActiveView: null,\n }\n root: ?HTMLDivElement\n viewport: ?HTMLDivElement\n views: Array = []\n timeouts: { [name: string]: any } = {}\n lastProps: Props = this.props\n lastDefaultedProps: ?DefaultedProps\n\n getDefaultedProps = (): DefaultedProps => {\n if (this.lastProps !== this.props || !this.lastDefaultedProps) {\n this.lastProps = this.props\n this.lastDefaultedProps = applyDefaults(this.props)\n }\n return this.lastDefaultedProps\n }\n\n measureHeight = (node: ?HTMLElement): ?number => {\n if (!node) return null\n return node.clientHeight\n }\n\n setTimeout(name: string, callback: () => any, delay: number) {\n if (this.timeouts[name]) clearTimeout(this.timeouts[name])\n this.timeouts[name] = setTimeout(callback, delay)\n }\n\n componentDidUpdate() {\n const { activeView, transitionDuration, keepViewsMounted } =\n this.getDefaultedProps()\n let newState: ?$Shape\n\n if (\n activeView !== this.state.activeView &&\n this.state.height === undefined\n ) {\n if (keepViewsMounted) {\n // scroll all views except the current back to the top\n for (let i = 0; i < this.views.length; i++) {\n if (i === this.state.activeView) continue\n if (this.views[i]) this.views[i].scrollTop = 0\n }\n }\n // phase 1: set current height\n newState = {\n height: this.measureHeight(this.views[this.state.activeView]),\n }\n } else if (this.state.height !== undefined && !this.state.transitioning) {\n // phase 2: enable transitions\n newState = { transitioning: true }\n } else if (activeView !== this.state.activeView) {\n // phase 3: change height/activeView\n newState = {\n activeView,\n numViews: Math.max(this.state.numViews, activeView + 1),\n prevActiveView: this.state.activeView,\n height: this.measureHeight(this.views[activeView]),\n }\n }\n\n const finalNewState = newState\n if (!finalNewState) return\n\n this.setState(finalNewState, () => {\n if (finalNewState.activeView != null) {\n this.setTimeout(\n 'onTransitionEnd',\n this.onTransitionEnd,\n transitionDuration\n )\n }\n })\n }\n\n onTransitionEnd = (event?: Event) => {\n // ignore transitionend events from deeper components\n if (event && event.target !== this.viewport) return\n // phase 0: unset height and disable transitions\n this.setState(\n {\n height: undefined,\n numViews: this.props.numViews,\n prevActiveView: null,\n transitioning: false,\n },\n () => {\n const { onSlideTransitionEnd } = this.props\n if (onSlideTransitionEnd) onSlideTransitionEnd()\n }\n )\n }\n\n componentWillUnmount() {\n for (let name in this.timeouts) clearTimeout(this.timeouts[name])\n }\n\n getTransitionState: (childIndex: number) => TransitionState = (\n childIndex: number\n ): TransitionState => {\n const { activeView, prevActiveView } = this.state\n if (prevActiveView == null) return childIndex === activeView ? 'in' : 'out'\n if (childIndex === activeView) return 'entering'\n if (childIndex === prevActiveView) return 'leaving'\n return 'out'\n }\n\n renderView = (index: number): React.Node => {\n const {\n fillParent,\n prefixer,\n keepViewsMounted,\n spacing,\n rtl,\n viewStyle,\n innerViewWrapperStyle,\n } = this.getDefaultedProps()\n const { activeView, transitioning } = this.state\n\n const style: Object = { ...baseViewStyle, ...viewStyle }\n if (fillParent) {\n Object.assign(style, fillStyle)\n style.overflow = 'auto'\n if (rtl) style.right = `${index * spacing * 100}%`\n else style.left = `${index * spacing * 100}%`\n } else if (index > 0) {\n if (rtl) style.marginRight = `${(spacing - 1) * 100}%`\n else style.marginLeft = `${(spacing - 1) * 100}%`\n }\n\n // when not transitioning, render empty placeholder divs before the active view to push it into the right\n // horizontal position\n if (!transitioning && activeView !== index && !keepViewsMounted) {\n return
\n }\n return (\n (this.views[index] = c)}\n >\n \n {this.props.renderView({\n index,\n active: index === activeView,\n transitionState: this.getTransitionState(index),\n })}\n
\n \n )\n }\n\n animateHeight = (): boolean => {\n const { animateHeight, fillParent, keepViewsMounted } =\n this.getDefaultedProps()\n return animateHeight && !fillParent && !keepViewsMounted\n }\n\n rootRef = (node: ?React.ElementRef<'div'>) => {\n this.root = node\n const { rootRef } = this.getDefaultedProps()\n if (rootRef) rootRef(node)\n }\n viewportRef = (node: ?React.ElementRef<'div'>) => {\n this.viewport = node\n const { viewportRef } = this.getDefaultedProps()\n if (viewportRef) viewportRef(node)\n }\n\n render(): React.Element<'div'> {\n const {\n style,\n className,\n viewportClassName,\n viewportStyle,\n prefixer,\n fillParent,\n transitionDuration,\n transitionTimingFunction,\n keepViewsMounted,\n rtl,\n spacing,\n } = this.getDefaultedProps()\n const animateHeight = this.animateHeight()\n const { activeView, numViews, height, transitioning } = this.state\n\n const finalOuterStyle = {\n transitionProperty: 'height',\n transitionDuration: `${transitionDuration}ms`,\n transitionTimingFunction,\n overflow: 'hidden',\n height: animateHeight && height != null ? height : undefined,\n ...style,\n }\n\n const finalViewportStyle = {\n position: 'relative',\n transform: `translateX(calc(${\n activeView * spacing * (rtl ? 100 : -100)\n }% + 0px))`,\n whiteSpace: 'nowrap',\n minHeight: '100%',\n direction: rtl ? 'rtl' : 'ltr',\n transition: transitioning\n ? `transform ${transitionTimingFunction} ${transitionDuration}ms`\n : undefined,\n ...viewportStyle,\n }\n if (fillParent) {\n Object.assign(finalOuterStyle, fillStyle)\n Object.assign(finalViewportStyle, fillStyle)\n }\n\n // when not transitioning, render empty placeholder divs before the active view to push it into the right\n // horizontal position\n const views = []\n for (\n let i = 0;\n i < (transitioning || keepViewsMounted ? numViews : activeView + 1);\n i++\n ) {\n views[i] = this.renderView(i)\n }\n\n return (\n \n \n {views}\n \n \n )\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;AAGA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,oBAAA,GAAAC,sBAAA,CAAAF,OAAA;AAA4C,SAAAG,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAL,wBAAAS,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,aAAAE,OAAA,CAAAF,GAAA,yBAAAA,GAAA,uCAAAA,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAX,GAAA,QAAAW,GAAA,kBAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAd,GAAA,EAAAW,GAAA,SAAAI,IAAA,GAAAR,qBAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAV,GAAA,EAAAW,GAAA,cAAAI,IAAA,KAAAA,I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U,EAAE5E,aAAa,gBAAAJ,MAAA,CACRrB,wBAAwB,OAAAqB,MAAA,CAAItB,kBAAkB,UAC3DyB;MAAS,GACVnB,aAAa,CACjB;MACD,IAAIsC,UAAU,EAAE;QACdzG,MAAM,CAAC6G,MAAM,CAACgD,eAAe,EAAE7G,SAAS,CAAC;QACzChD,MAAM,CAAC6G,MAAM,CAACkD,kBAAkB,EAAE/G,SAAS,CAAC;MAC9C;;MAEA;MACA;MACA,IAAMqE,KAAK,GAAG,EAAE;MAChB,KACE,IAAI5E,CAAC,GAAG,CAAC,EACTA,CAAC,IAAI8C,aAAa,IAAIxB,gBAAgB,GAAG0B,QAAQ,GAAGD,UAAU,GAAG,CAAC,CAAC,EACnE/C,CAAC,EAAE,EACH;QACA4E,KAAK,CAAC5E,CAAC,CAAC,GAAG,IAAI,CAAC6E,UAAU,CAAC7E,CAAC,CAAC;MAC/B;MAEA,oBACE3D,KAAA,CAAAmI,aAAA;QACE/C,KAAK,EAAEF,QAAQ,CAACkD,MAAM,CAAC2C,eAAe,CAAE;QACxCH,SAAS,EAAEA,SAAU;QACrBvC,GAAG,EAAE,IAAI,CAACU;MAAQ,gBAElB/I,KAAA,CAAAmI,aAAA;QACEyC,SAAS,EAAEC,iBAAkB;QAC7BzF,KAAK,EAAEF,QAAQ,CAACkD,MAAM,CAAC6C,kBAAkB,CAAE;QAC3C5C,GAAG,EAAE,IAAI,CAACY,WAAY;QACtBuB,eAAe,EAAE,IAAI,CAACA;MAAgB,GAErCjC,KACE,CACF,CAAC;IAEV;EAAC;EAAA,OAAA5C,UAAA;AAAA,EAxPqC3F,KAAK,CAACsL,SAAS;AAAA9F,OAAA,cAAAG,UAAA"} +{"version":3,"file":"index.js","names":["React","_interopRequireWildcard","require","_inlineStylePrefixer","_interopRequireDefault","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","fillStyle","position","top","left","right","bottom","baseViewStyle","display","verticalAlign","whiteSpace","width","defaultProps","animateHeight","transitionDuration","transitionTimingFunction","keepViewsMounted","prefixer","Prefixer","style","viewportStyle","rtl","spacing","exports","applyDefaults","props","result","ViewSlider","Component","state","height","undefined","transitioning","activeView","numViews","prevActiveView","views","timeouts","lastProps","getDefaultedProps","lastDefaultedProps","measureHeight","node","clientHeight","setTimeout","name","callback","delay","clearTimeout","componentDidUpdate","newState","i","length","scrollTop","Math","max","finalNewState","setState","onTransitionEnd","event","target","viewport","onSlideTransitionEnd","componentWillUnmount","getTransitionState","childIndex","renderView","index","fillParent","viewStyle","innerViewWrapperStyle","assign","overflow","marginRight","marginLeft","createElement","prefix","ref","c","active","transitionState","rootRef","root","viewportRef","render","className","viewportClassName","finalOuterStyle","transitionProperty","finalViewportStyle","transform","minHeight","direction","transition"],"sources":["src/index.js"],"sourcesContent":["/* @flow */\n/* eslint-env browser */\n\nimport * as React from 'react'\nimport Prefixer from 'inline-style-prefixer'\n\ntype TransitionState = 'in' | 'out' | 'entering' | 'leaving'\n\nexport type ViewProps = {\n index: number,\n active: boolean,\n transitionState: TransitionState,\n}\n\nexport type DefaultProps = {\n animateHeight: boolean,\n keepViewsMounted: boolean,\n transitionDuration: number,\n transitionTimingFunction: string,\n prefixer: Prefixer,\n style: Object,\n viewportStyle: Object,\n rtl: boolean,\n spacing: number,\n}\n\nexport type Props = {\n activeView: number,\n numViews: number,\n renderView: (props: ViewProps) => React.Node,\n keepViewsMounted?: ?boolean,\n animateHeight?: ?boolean,\n transitionDuration?: ?number,\n transitionTimingFunction?: ?string,\n onSlideTransitionEnd?: ?() => mixed,\n prefixer?: ?Prefixer,\n fillParent?: ?boolean,\n className?: ?string,\n style?: ?Object,\n viewportClassName?: ?string,\n viewportStyle?: ?Object,\n viewStyle?: ?Object,\n innerViewWrapperStyle?: ?Object,\n rootRef?: ?(node: ?React.ElementRef<'div'>) => mixed,\n viewportRef?: ?(node: ?React.ElementRef<'div'>) => mixed,\n rtl?: ?boolean,\n spacing?: ?number,\n}\n\ntype DefaultedProps = {\n activeView: number,\n numViews: number,\n renderView: (props: ViewProps) => React.Node,\n keepViewsMounted: boolean,\n animateHeight: boolean,\n transitionDuration: number,\n transitionTimingFunction: string,\n prefixer: Prefixer,\n fillParent?: boolean,\n className?: string,\n style: Object,\n viewportClassName?: ?string,\n viewportStyle: Object,\n viewStyle?: ?Object,\n innerViewWrapperStyle?: ?Object,\n rootRef?: ?(node: ?React.ElementRef<'div'>) => mixed,\n viewportRef?: ?(node: ?React.ElementRef<'div'>) => mixed,\n rtl: boolean,\n spacing: number,\n}\n\nexport type State = {\n height: ?number,\n transitioning: boolean,\n activeView: number,\n numViews: number,\n prevActiveView: ?number,\n}\n\nconst fillStyle = {\n position: 'absolute',\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n}\n\nconst baseViewStyle = {\n display: 'inline-block',\n verticalAlign: 'top',\n whiteSpace: 'normal',\n width: '100%',\n}\n\nexport const defaultProps: DefaultProps = {\n animateHeight: true,\n transitionDuration: 500,\n transitionTimingFunction: 'ease',\n keepViewsMounted: false,\n prefixer: new Prefixer(),\n style: {},\n viewportStyle: {},\n rtl: false,\n spacing: 1,\n}\n\nfunction applyDefaults(props: Props): DefaultedProps {\n const result: any = { ...props }\n for (const key in defaultProps) {\n if (\n Object.prototype.hasOwnProperty.call(defaultProps, key) &&\n props[key] == null\n ) {\n result[key] = defaultProps[key]\n }\n }\n return result\n}\n\nexport default class ViewSlider extends React.Component {\n state: State = {\n height: undefined,\n transitioning: false,\n activeView: this.props.activeView,\n numViews: this.props.numViews,\n // this is used to determine the correct transitionState for the previous active view.\n prevActiveView: null,\n }\n root: ?HTMLDivElement\n viewport: ?HTMLDivElement\n views: Array = []\n timeouts: { [name: string]: any } = {}\n lastProps: Props = this.props\n lastDefaultedProps: ?DefaultedProps\n\n getDefaultedProps = (): DefaultedProps => {\n if (this.lastProps !== this.props || !this.lastDefaultedProps) {\n this.lastProps = this.props\n this.lastDefaultedProps = applyDefaults(this.props)\n }\n return this.lastDefaultedProps\n }\n\n measureHeight = (node: ?HTMLElement): ?number => {\n if (!node) return null\n return node.clientHeight\n }\n\n setTimeout(name: string, callback: () => any, delay: number) {\n if (this.timeouts[name]) clearTimeout(this.timeouts[name])\n this.timeouts[name] = setTimeout(callback, delay)\n }\n\n componentDidUpdate() {\n const { activeView, transitionDuration, keepViewsMounted } =\n this.getDefaultedProps()\n let newState: ?$Shape\n\n if (\n activeView !== this.state.activeView &&\n this.state.height === undefined\n ) {\n if (keepViewsMounted) {\n // scroll all views except the current back to the top\n for (let i = 0; i < this.views.length; i++) {\n if (i === this.state.activeView) continue\n if (this.views[i]) this.views[i].scrollTop = 0\n }\n }\n // phase 1: set current height\n newState = {\n height: this.measureHeight(this.views[this.state.activeView]),\n }\n } else if (this.state.height !== undefined && !this.state.transitioning) {\n // phase 2: enable transitions\n newState = { transitioning: true }\n } else if (activeView !== this.state.activeView) {\n // phase 3: change height/activeView\n newState = {\n activeView,\n numViews: Math.max(this.state.numViews, activeView + 1),\n prevActiveView: this.state.activeView,\n height: this.measureHeight(this.views[activeView]),\n }\n }\n\n const finalNewState = newState\n if (!finalNewState) return\n\n this.setState(finalNewState, () => {\n if (finalNewState.activeView != null) {\n this.setTimeout(\n 'onTransitionEnd',\n this.onTransitionEnd,\n transitionDuration\n )\n }\n })\n }\n\n onTransitionEnd = (event?: Event) => {\n // ignore transitionend events from deeper components\n if (event && event.target !== this.viewport) return\n // phase 0: unset height and disable transitions\n this.setState(\n {\n height: undefined,\n numViews: this.props.numViews,\n prevActiveView: null,\n transitioning: false,\n },\n () => {\n const { onSlideTransitionEnd } = this.props\n if (onSlideTransitionEnd) onSlideTransitionEnd()\n }\n )\n }\n\n componentWillUnmount() {\n for (let name in this.timeouts) clearTimeout(this.timeouts[name])\n }\n\n getTransitionState: (childIndex: number) => TransitionState = (\n childIndex: number\n ): TransitionState => {\n const { activeView, prevActiveView } = this.state\n if (prevActiveView == null) return childIndex === activeView ? 'in' : 'out'\n if (childIndex === activeView) return 'entering'\n if (childIndex === prevActiveView) return 'leaving'\n return 'out'\n }\n\n renderView = (index: number): React.Node => {\n const {\n fillParent,\n prefixer,\n keepViewsMounted,\n spacing,\n rtl,\n viewStyle,\n innerViewWrapperStyle,\n } = this.getDefaultedProps()\n const { activeView, transitioning } = this.state\n\n const style: Object = { ...baseViewStyle, ...viewStyle }\n if (fillParent) {\n Object.assign(style, fillStyle)\n style.overflow = 'auto'\n if (rtl) style.right = `${index * spacing * 100}%`\n else style.left = `${index * spacing * 100}%`\n } else if (index > 0) {\n if (rtl) style.marginRight = `${(spacing - 1) * 100}%`\n else style.marginLeft = `${(spacing - 1) * 100}%`\n }\n\n // when not transitioning, render empty placeholder divs before the active view to push it into the right\n // horizontal position\n if (!transitioning && activeView !== index && !keepViewsMounted) {\n return
\n }\n return (\n (this.views[index] = c)}\n >\n \n {this.props.renderView({\n index,\n active: index === activeView,\n transitionState: this.getTransitionState(index),\n })}\n
\n \n )\n }\n\n animateHeight = (): boolean => {\n const { animateHeight, fillParent, keepViewsMounted } =\n this.getDefaultedProps()\n return animateHeight && !fillParent && !keepViewsMounted\n }\n\n rootRef = (node: ?React.ElementRef<'div'>) => {\n this.root = node\n const { rootRef } = this.getDefaultedProps()\n if (rootRef) rootRef(node)\n }\n viewportRef = (node: ?React.ElementRef<'div'>) => {\n this.viewport = node\n const { viewportRef } = this.getDefaultedProps()\n if (viewportRef) viewportRef(node)\n }\n\n render(): React.Element<'div'> {\n const {\n style,\n className,\n viewportClassName,\n viewportStyle,\n prefixer,\n fillParent,\n transitionDuration,\n transitionTimingFunction,\n keepViewsMounted,\n rtl,\n spacing,\n } = this.getDefaultedProps()\n const animateHeight = this.animateHeight()\n const { activeView, numViews, height, transitioning } = this.state\n\n const finalOuterStyle = {\n transitionProperty: 'height',\n transitionDuration: `${transitionDuration}ms`,\n transitionTimingFunction,\n overflow: 'hidden',\n height: animateHeight && height != null ? height : undefined,\n ...style,\n }\n\n const finalViewportStyle = {\n position: 'relative',\n transform: `translateX(calc(${\n activeView * spacing * (rtl ? 100 : -100)\n }% + 0px))`,\n whiteSpace: 'nowrap',\n minHeight: '100%',\n direction: rtl ? 'rtl' : 'ltr',\n transition: transitioning\n ? `transform ${transitionTimingFunction} ${transitionDuration}ms`\n : undefined,\n ...viewportStyle,\n }\n if (fillParent) {\n Object.assign(finalOuterStyle, fillStyle)\n Object.assign(finalViewportStyle, fillStyle)\n }\n\n // when not transitioning, render empty placeholder divs before the active view to push it into the right\n // horizontal position\n const views = []\n for (\n let i = 0;\n i < (transitioning || keepViewsMounted ? numViews : activeView + 1);\n i++\n ) {\n views[i] = this.renderView(i)\n }\n\n return (\n \n \n {views}\n \n \n )\n }\n}\n"],"mappings":";;;;;;;AAGA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,oBAAA,GAAAC,sBAAA,CAAAF,OAAA;AAA4C,SAAAG,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAL,wBAAAS,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAX,GAAA,QAAAW,GAAA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AGkB,QAAQ,GAAGD,UAAU,GAAG,CAAC,CAAC,EACnEkB,CAAC,EAAE,EACH;MACAf,KAAK,CAACe,CAAC,CAAC,GAAG,IAAI,CAACe,UAAU,CAACf,CAAC,CAAC;IAC/B;IAEA,oBACE7E,KAAA,CAAAqG,aAAA;MACExD,KAAK,EAAEF,QAAQ,CAAC2D,MAAM,CAACW,eAAe,CAAE;MACxCF,SAAS,EAAEA,SAAU;MACrBR,GAAG,EAAE,IAAI,CAACI;IAAQ,gBAElB3G,KAAA,CAAAqG,aAAA;MACEU,SAAS,EAAEC,iBAAkB;MAC7BnE,KAAK,EAAEF,QAAQ,CAAC2D,MAAM,CAACa,kBAAkB,CAAE;MAC3CZ,GAAG,EAAE,IAAI,CAACM,WAAY;MACtBzB,eAAe,EAAE,IAAI,CAACA;IAAgB,GAErCtB,KACE,CACF,CAAC;EAEV;AACF;AAACb,OAAA,CAAArC,OAAA,GAAAyC,UAAA"} diff --git a/fixtures/react-view-slider/init-snapshot/dist/pnpm-lock.yaml b/fixtures/react-view-slider/init-snapshot/dist/pnpm-lock.yaml index 835f99f..be4700b 100644 --- a/fixtures/react-view-slider/init-snapshot/dist/pnpm-lock.yaml +++ b/fixtures/react-view-slider/init-snapshot/dist/pnpm-lock.yaml @@ -7,7 +7,7 @@ settings: dependencies: '@babel/runtime': specifier: ^7.18.6 - version: 7.25.6 + version: 7.26.0 inline-style-prefixer: specifier: ^4.0.0 version: 4.0.2 @@ -18,10 +18,10 @@ dependencies: devDependencies: '@babel/plugin-syntax-flow': specifier: ^7.14.5 - version: 7.24.7(@babel/core@7.4.3) + version: 7.26.0(@babel/core@7.4.3) '@babel/plugin-transform-react-jsx': specifier: ^7.14.9 - version: 7.25.2(@babel/core@7.4.3) + version: 7.25.9(@babel/core@7.4.3) '@jcoreio/eslint-plugin-implicit-dependencies': specifier: ^1.1.1 version: 1.1.1 @@ -66,19 +66,19 @@ devDependencies: version: 2.0.0 eslint: specifier: ^8.56.0 - version: 8.57.0 + version: 8.57.1 eslint-config-prettier: specifier: ^3.3.0 - version: 3.6.0(eslint@8.57.0) + version: 3.6.0(eslint@8.57.1) eslint-plugin-flowtype: specifier: ^8.0.3 - version: 8.0.3(@babel/plugin-syntax-flow@7.24.7)(@babel/plugin-transform-react-jsx@7.25.2)(eslint@8.57.0) + version: 8.0.3(@babel/plugin-syntax-flow@7.26.0)(@babel/plugin-transform-react-jsx@7.25.9)(eslint@8.57.1) eslint-plugin-no-only-tests: specifier: ^3.1.0 version: 3.3.0 eslint-plugin-react: specifier: ^7.32.2 - version: 7.35.0(eslint@8.57.0) + version: 7.35.0(eslint@8.57.1) flow-bin: specifier: ^0.113.0 version: 0.113.0 @@ -96,7 +96,7 @@ devDependencies: version: 22.1.0 mocha: specifier: ^10.2.0 - version: 10.7.3 + version: 10.8.2 react: specifier: ^18.0.0 version: 18.0.0 @@ -112,25 +112,26 @@ devDependencies: packages: - /@babel/code-frame@7.24.7: - resolution: {integrity: sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==} + /@babel/code-frame@7.26.2: + resolution: {integrity: sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ==} engines: {node: '>=6.9.0'} dependencies: - '@babel/highlight': 7.24.7 - picocolors: 1.0.1 + '@babel/helper-validator-identifier': 7.25.9 + js-tokens: 4.0.0 + picocolors: 1.1.1 dev: true /@babel/core@7.4.3: resolution: {integrity: sha512-oDpASqKFlbspQfzAE7yaeTmdljSH2ADIvBlb0RwbStltTuWa0+7CCI1fYVINNv9saHPa1W7oaKeuNuKj+RQCvA==} engines: {node: '>=6.9.0'} dependencies: - '@babel/code-frame': 7.24.7 + '@babel/code-frame': 7.26.2 '@babel/generator': 7.4.0 '@babel/helpers': 7.4.3 '@babel/parser': 7.4.3 '@babel/template': 7.4.0 '@babel/traverse': 7.4.3 - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 convert-source-map: 1.6.0 debug: 4.1.1 json5: 2.1.0 @@ -142,31 +143,32 @@ packages: - supports-color dev: true - /@babel/generator@7.25.6: - resolution: {integrity: sha512-VPC82gr1seXOpkjAAKoLhP50vx4vGNlF4msF64dSFq1P8RfB+QAuJWGHPXXPc8QyfVWwwB/TNNU4+ayZmHNbZw==} + /@babel/generator@7.26.2: + resolution: {integrity: sha512-zevQbhbau95nkoxSq3f/DC/SC+EEOUZd3DYqfSkMhY2/wfSeaHV1Ew4vk8e+x8lja31IbyuUa2uQ3JONqKbysw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.25.6 + '@babel/parser': 7.26.2 + '@babel/types': 7.26.0 '@jridgewell/gen-mapping': 0.3.5 '@jridgewell/trace-mapping': 0.3.25 - jsesc: 2.5.2 + jsesc: 3.0.2 dev: true /@babel/generator@7.4.0: resolution: {integrity: sha512-/v5I+a1jhGSKLgZDcmAUZ4K/VePi43eRkUs3yePW1HB1iANOD5tqJXwGSG4BZhSksP8J9ejSlwGeTiiOFZOrXQ==} dependencies: - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 jsesc: 2.5.2 lodash: 4.17.11 source-map: 0.5.7 trim-right: 1.0.1 dev: true - /@babel/helper-annotate-as-pure@7.24.7: - resolution: {integrity: sha512-BaDeOonYvhdKw+JoMVkAixAAJzG2jVPIwWoKBPdYuY9b452e2rPuI9QPYh3KpofZ3pW2akOmwZLOiOsHMiqRAg==} + /@babel/helper-annotate-as-pure@7.25.9: + resolution: {integrity: sha512-gv7320KBUFJz1RnylIg5WWYPRXKZ884AGkYpgpWW02TH66Dl+HaC1t1CKd0z3R4b6hdYEcmrNZHUmfCP+1u3/g==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 dev: true /@babel/helper-function-name@7.1.0: @@ -174,13 +176,13 @@ packages: dependencies: '@babel/helper-get-function-arity': 7.0.0 '@babel/template': 7.4.0 - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 dev: true /@babel/helper-get-function-arity@7.0.0: resolution: {integrity: sha512-r2DbJeg4svYvt3HOS74U4eWKsUAMRH01Z1ds1zx8KNTPtpTL5JAsdFv8BNyOpVqdFhHkkRDIg5B4AsxmkjAlmQ==} dependencies: - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 dev: true /@babel/helper-module-imports@7.0.0: @@ -189,34 +191,34 @@ packages: '@babel/types': 7.4.0 dev: true - /@babel/helper-module-imports@7.24.7: - resolution: {integrity: sha512-8AyH3C+74cgCVVXow/myrynrAGv+nTVg5vKu2nZph9x7RcRwzmh0VFallJuFTZ9mx6u4eSdXZfcOzSqTUm0HCA==} + /@babel/helper-module-imports@7.25.9: + resolution: {integrity: sha512-tnUA4RsrmflIM6W6RFTLFSXITtl0wKjgpnLgXyowocVPrbYrLUXSBXDgTs8BlbmIzIdlBySRQjINYs2BAkiLtw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/traverse': 7.25.6 - '@babel/types': 7.25.6 + '@babel/traverse': 7.25.9 + '@babel/types': 7.26.0 transitivePeerDependencies: - supports-color dev: true - /@babel/helper-plugin-utils@7.24.8: - resolution: {integrity: sha512-FFWx5142D8h2Mgr/iPVGH5G7w6jDn4jUSpZTyDnQO0Yn7Ks2Kuz6Pci8H6MPCoUJegd/UZQ3tAvfLCxQSnWWwg==} + /@babel/helper-plugin-utils@7.25.9: + resolution: {integrity: sha512-kSMlyUVdWe25rEsRGviIgOWnoT/nfABVWlqt9N19/dIPWViAOW2s9wznP5tURbs/IDuNk4gPy3YdYRgH3uxhBw==} engines: {node: '>=6.9.0'} dev: true /@babel/helper-split-export-declaration@7.4.0: resolution: {integrity: sha512-7Cuc6JZiYShaZnybDmfwhY4UYHzI6rlqhWjaIqbsJGsIqPimEYy5uh3akSRLMg65LSdSEnJ8a8/bWQN6u2oMGw==} dependencies: - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 dev: true - /@babel/helper-string-parser@7.24.8: - resolution: {integrity: sha512-pO9KhhRcuUyGnJWwyEgnRJTSIZHiT+vMD0kPeD+so0l7mxkMT19g3pjY9GTnHySck/hDzq+dtW/4VgnMkippsQ==} + /@babel/helper-string-parser@7.25.9: + resolution: {integrity: sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==} engines: {node: '>=6.9.0'} dev: true - /@babel/helper-validator-identifier@7.24.7: - resolution: {integrity: sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==} + /@babel/helper-validator-identifier@7.25.9: + resolution: {integrity: sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==} engines: {node: '>=6.9.0'} dev: true @@ -225,27 +227,17 @@ packages: dependencies: '@babel/template': 7.4.0 '@babel/traverse': 7.4.3 - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 transitivePeerDependencies: - supports-color dev: true - /@babel/highlight@7.24.7: - resolution: {integrity: sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/helper-validator-identifier': 7.24.7 - chalk: 2.4.2 - js-tokens: 4.0.0 - picocolors: 1.0.1 - dev: true - - /@babel/parser@7.25.6: - resolution: {integrity: sha512-trGdfBdbD0l1ZPmcJ83eNxB9rbEax4ALFTF7fN386TMYbeCQbyme5cOEXQhbGXKebwGaB/J52w1mrklMcbgy6Q==} + /@babel/parser@7.26.2: + resolution: {integrity: sha512-DWMCZH9WA4Maitz2q21SRKHo9QXZxkDsbNZoVD62gusNtNBBqDg9i7uOhASfTfIGNzW+O+r7+jAlM8dwphcJKQ==} engines: {node: '>=6.0.0'} hasBin: true dependencies: - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 dev: true /@babel/parser@7.4.3: @@ -253,78 +245,78 @@ packages: engines: {node: '>=6.0.0'} hasBin: true dependencies: - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 dev: true - /@babel/plugin-syntax-flow@7.24.7(@babel/core@7.4.3): - resolution: {integrity: sha512-9G8GYT/dxn/D1IIKOUBmGX0mnmj46mGH9NnZyJLwtCpgh5f7D2VbuKodb+2s9m1Yavh1s7ASQN8lf0eqrb1LTw==} + /@babel/plugin-syntax-flow@7.26.0(@babel/core@7.4.3): + resolution: {integrity: sha512-B+O2DnPc0iG+YXFqOxv2WNuNU97ToWjOomUQ78DouOENWUaM5sVrmet9mcomUGQFwpJd//gvUagXBSdzO1fRKg==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.4.3 - '@babel/helper-plugin-utils': 7.24.8 + '@babel/helper-plugin-utils': 7.25.9 dev: true - /@babel/plugin-syntax-jsx@7.24.7(@babel/core@7.4.3): - resolution: {integrity: sha512-6ddciUPe/mpMnOKv/U+RSd2vvVy+Yw/JfBB0ZHYjEZt9NLHmCUylNYlsbqCCS1Bffjlb0fCwC9Vqz+sBz6PsiQ==} + /@babel/plugin-syntax-jsx@7.25.9(@babel/core@7.4.3): + resolution: {integrity: sha512-ld6oezHQMZsZfp6pWtbjaNDF2tiiCYYDqQszHt5VV437lewP9aSi2Of99CK0D0XB21k7FLgnLcmQKyKzynfeAA==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.4.3 - '@babel/helper-plugin-utils': 7.24.8 + '@babel/helper-plugin-utils': 7.25.9 dev: true - /@babel/plugin-transform-react-jsx@7.25.2(@babel/core@7.4.3): - resolution: {integrity: sha512-KQsqEAVBpU82NM/B/N9j9WOdphom1SZH3R+2V7INrQUH+V9EBFwZsEJl8eBIVeQE62FxJCc70jzEZwqU7RcVqA==} + /@babel/plugin-transform-react-jsx@7.25.9(@babel/core@7.4.3): + resolution: {integrity: sha512-s5XwpQYCqGerXl+Pu6VDL3x0j2d82eiV77UJ8a2mDHAW7j9SWRqQ2y1fNo1Z74CdcYipl5Z41zvjj4Nfzq36rw==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.4.3 - '@babel/helper-annotate-as-pure': 7.24.7 - '@babel/helper-module-imports': 7.24.7 - '@babel/helper-plugin-utils': 7.24.8 - '@babel/plugin-syntax-jsx': 7.24.7(@babel/core@7.4.3) - '@babel/types': 7.25.6 + '@babel/helper-annotate-as-pure': 7.25.9 + '@babel/helper-module-imports': 7.25.9 + '@babel/helper-plugin-utils': 7.25.9 + '@babel/plugin-syntax-jsx': 7.25.9(@babel/core@7.4.3) + '@babel/types': 7.26.0 transitivePeerDependencies: - supports-color dev: true - /@babel/runtime@7.25.6: - resolution: {integrity: sha512-VBj9MYyDb9tuLq7yzqjgzt6Q+IBQLrGZfdjOekyEirZPHxXWoTSGUTMrpsfi58Up73d13NfYLv8HT9vmznjzhQ==} + /@babel/runtime@7.26.0: + resolution: {integrity: sha512-FDSOghenHTiToteC/QRlv2q3DhPZ/oOXTBoirfWNx1Cx3TMVcGWQtMMmQcSvb/JjpNeGzx8Pq/b4fKEJuWm1sw==} engines: {node: '>=6.9.0'} dependencies: regenerator-runtime: 0.14.1 - /@babel/template@7.25.0: - resolution: {integrity: sha512-aOOgh1/5XzKvg1jvVz7AVrx2piJ2XBi227DHmbY6y+bM9H2FlN+IfecYu4Xl0cNiiVejlsCri89LUsbj8vJD9Q==} + /@babel/template@7.25.9: + resolution: {integrity: sha512-9DGttpmPvIxBb/2uwpVo3dqJ+O6RooAFOS+lB+xDqoE2PVCE8nfoHMdZLpfCQRLwvohzXISPZcgxt80xLfsuwg==} engines: {node: '>=6.9.0'} dependencies: - '@babel/code-frame': 7.24.7 - '@babel/parser': 7.25.6 - '@babel/types': 7.25.6 + '@babel/code-frame': 7.26.2 + '@babel/parser': 7.26.2 + '@babel/types': 7.26.0 dev: true /@babel/template@7.4.0: resolution: {integrity: sha512-SOWwxxClTTh5NdbbYZ0BmaBVzxzTh2tO/TeLTbF6MO6EzVhHTnff8CdBXx3mEtazFBoysmEM6GU/wF+SuSx4Fw==} dependencies: - '@babel/code-frame': 7.24.7 + '@babel/code-frame': 7.26.2 '@babel/parser': 7.4.3 - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 dev: true - /@babel/traverse@7.25.6: - resolution: {integrity: sha512-9Vrcx5ZW6UwK5tvqsj0nGpp/XzqthkT0dqIc9g1AdtygFToNtTF67XzYS//dm+SAK9cp3B9R4ZO/46p63SCjlQ==} + /@babel/traverse@7.25.9: + resolution: {integrity: sha512-ZCuvfwOwlz/bawvAuvcj8rrithP2/N55Tzz342AkTvq4qaWbGfmCk/tKhNaV2cthijKrPAA8SRJV5WWe7IBMJw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/code-frame': 7.24.7 - '@babel/generator': 7.25.6 - '@babel/parser': 7.25.6 - '@babel/template': 7.25.0 - '@babel/types': 7.25.6 - debug: 4.3.6(supports-color@8.1.1) + '@babel/code-frame': 7.26.2 + '@babel/generator': 7.26.2 + '@babel/parser': 7.26.2 + '@babel/template': 7.25.9 + '@babel/types': 7.26.0 + debug: 4.3.7(supports-color@8.1.1) globals: 11.11.0 transitivePeerDependencies: - supports-color @@ -333,12 +325,12 @@ packages: /@babel/traverse@7.4.3: resolution: {integrity: sha512-HmA01qrtaCwwJWpSKpA948cBvU5BrmviAief/b3AVw936DtcdsTexlbyzNuDnthwhOQ37xshn7hvQaEQk7ISYQ==} dependencies: - '@babel/code-frame': 7.24.7 + '@babel/code-frame': 7.26.2 '@babel/generator': 7.4.0 '@babel/helper-function-name': 7.1.0 '@babel/helper-split-export-declaration': 7.4.0 '@babel/parser': 7.4.3 - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 debug: 4.1.1 globals: 11.11.0 lodash: 4.17.11 @@ -346,13 +338,12 @@ packages: - supports-color dev: true - /@babel/types@7.25.6: - resolution: {integrity: sha512-/l42B1qxpG6RdfYf343Uw1vmDjeNhneUXtzhojE7pDgfpEypmRhI6j1kr17XCVv4Cgl9HdAiQY2x0GwKm7rWCw==} + /@babel/types@7.26.0: + resolution: {integrity: sha512-Z/yiTPj+lDVnF7lWeKCIJzaIkI0vYO87dMpZ4bg4TDrFe4XXLFWL1TbXU27gBP3QccxV9mZICCrnjnYlJjXHOA==} engines: {node: '>=6.9.0'} dependencies: - '@babel/helper-string-parser': 7.24.8 - '@babel/helper-validator-identifier': 7.24.7 - to-fast-properties: 2.0.0 + '@babel/helper-string-parser': 7.25.9 + '@babel/helper-validator-identifier': 7.25.9 dev: true /@babel/types@7.4.0: @@ -363,18 +354,18 @@ packages: to-fast-properties: 2.0.0 dev: true - /@eslint-community/eslint-utils@4.4.0(eslint@8.57.0): - resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==} + /@eslint-community/eslint-utils@4.4.1(eslint@8.57.1): + resolution: {integrity: sha512-s3O3waFUrMV8P/XaF/+ZTp1X9XBZW1a4B97ZnjQF2KYWaFD2A8KyFBsrsfSjEmjn3RGWAIuvlneuZm3CUK3jbA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 dependencies: - eslint: 8.57.0 + eslint: 8.57.1 eslint-visitor-keys: 3.4.3 dev: true - /@eslint-community/regexpp@4.11.0: - resolution: {integrity: sha512-G/M/tIiMrTAxEWRfLfQJMmGNX28IxBg4PBz8XqQhqUHLFI6TL2htpIB1iQCj144V5ee/JaKyT9/WZ0MGZWfA7A==} + /@eslint-community/regexpp@4.12.1: + resolution: {integrity: sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==} engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} dev: true @@ -383,7 +374,7 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: ajv: 6.12.6 - debug: 4.3.6(supports-color@8.1.1) + debug: 4.3.7(supports-color@8.1.1) espree: 9.6.1 globals: 13.24.0 ignore: 5.3.2 @@ -395,18 +386,18 @@ packages: - supports-color dev: true - /@eslint/js@8.57.0: - resolution: {integrity: sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==} + /@eslint/js@8.57.1: + resolution: {integrity: sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /@humanwhocodes/config-array@0.11.14: - resolution: {integrity: sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==} + /@humanwhocodes/config-array@0.13.0: + resolution: {integrity: sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==} engines: {node: '>=10.10.0'} deprecated: Use @eslint/config-array instead dependencies: '@humanwhocodes/object-schema': 2.0.3 - debug: 4.3.6(supports-color@8.1.1) + debug: 4.3.7(supports-color@8.1.1) minimatch: 3.1.2 transitivePeerDependencies: - supports-color @@ -426,7 +417,7 @@ packages: resolution: {integrity: sha512-Kg+erBdnA1sczSNNGEGIA9k7hwfnN1NrKEnACfJwbGoR6T5E/yhBbpyF5q5dEIvxHTUJ4wL5azEd3m68qq8F+Q==} engines: {node: '>=16'} dependencies: - '@babel/runtime': 7.25.6 + '@babel/runtime': 7.26.0 '@types/validate-npm-package-name': 4.0.2 pkg-up: 3.1.0 validate-npm-package-name: 5.0.1 @@ -523,8 +514,8 @@ packages: resolution: {integrity: sha512-/DiOQ5xBxgdYRC8LNk7U+RWat0S3qRLeIw3ZIkMQ9kkVlRmwD/Eg8k8CqIpD6GW7u20JIUOfMKbxtiLutpjQ4g==} engines: {node: '>=12'} dependencies: - '@babel/code-frame': 7.24.7 - '@babel/runtime': 7.25.6 + '@babel/code-frame': 7.26.2 + '@babel/runtime': 7.26.0 '@types/aria-query': 5.0.4 aria-query: 5.1.3 chalk: 4.1.2 @@ -540,9 +531,9 @@ packages: react: ^18.0.0 react-dom: ^18.0.0 dependencies: - '@babel/runtime': 7.25.6 + '@babel/runtime': 7.26.0 '@testing-library/dom': 8.20.1 - '@types/react-dom': 18.3.0 + '@types/react-dom': 18.3.1 react: 18.0.0 react-dom: 18.0.0(react@18.0.0) dev: true @@ -560,8 +551,8 @@ packages: resolution: {integrity: sha512-eItQyV43bj4rR3JPV0Skpl1SncRCdziTEK9/v8VwXmV6d/qOUO8/EuWeHBbCZcsfSHfzI5UyMJLCSXtxxznyZg==} dev: true - /@types/react-dom@18.3.0: - resolution: {integrity: sha512-EhwApuTmMBmXuFOikhQLIBUn6uFg81SwLMOAUgodJF14SOBOCMdU04gDoYi0WOJJHD144TL32z4yDqCW3dnkQg==} + /@types/react-dom@18.3.1: + resolution: {integrity: sha512-qW1Mfv8taImTthu4KoXgDfLuk4bydU6Q/TkADnDWWHwi4NX4BR+LWfTp2sVmTqRrsHvyDDTelgelxJ+SsejKKQ==} dependencies: '@types/react': 16.8.13 dev: true @@ -586,16 +577,16 @@ packages: deprecated: Use your platform's native atob() and btoa() methods instead dev: true - /acorn-jsx@5.3.2(acorn@8.12.1): + /acorn-jsx@5.3.2(acorn@8.14.0): resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} peerDependencies: acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 dependencies: - acorn: 8.12.1 + acorn: 8.14.0 dev: true - /acorn@8.12.1: - resolution: {integrity: sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==} + /acorn@8.14.0: + resolution: {integrity: sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==} engines: {node: '>=0.4.0'} hasBin: true dev: true @@ -635,13 +626,6 @@ packages: engines: {node: '>=8'} dev: true - /ansi-styles@3.2.1: - resolution: {integrity: sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==} - engines: {node: '>=4'} - dependencies: - color-convert: 1.9.1 - dev: true - /ansi-styles@4.3.0: resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} engines: {node: '>=8'} @@ -886,15 +870,6 @@ packages: type-detect: 4.1.0 dev: true - /chalk@2.4.2: - resolution: {integrity: sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==} - engines: {node: '>=4'} - dependencies: - ansi-styles: 3.2.1 - escape-string-regexp: 1.0.5 - supports-color: 5.5.0 - dev: true - /chalk@4.1.2: resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} engines: {node: '>=10'} @@ -941,12 +916,6 @@ packages: engines: {node: '>=0.8'} dev: true - /color-convert@1.9.1: - resolution: {integrity: sha512-mjGanIiwQJskCC18rPR6OmrZ6fm2Lc7PeGFYwCmy5J34wC6F1PzdGL6xeMfmgicfYcNLGuVFA3WzXtIDCQSZxQ==} - dependencies: - color-name: 1.1.4 - dev: true - /color-convert@2.0.1: resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} engines: {node: '>=7.0.0'} @@ -1022,8 +991,8 @@ packages: which: 1.3.1 dev: true - /cross-spawn@7.0.3: - resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==} + /cross-spawn@7.0.5: + resolution: {integrity: sha512-ZVJrKKYunU38/76t0RMOulHOnUcbU9GbpWKAOZ0mhjr7CX6FVrH+4FrAapSOekrgFQ3f/8gwMEuIft0aKq6Hug==} engines: {node: '>= 8'} dependencies: path-key: 3.1.1 @@ -1097,8 +1066,8 @@ packages: ms: 2.1.1 dev: true - /debug@4.3.6(supports-color@8.1.1): - resolution: {integrity: sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==} + /debug@4.3.7(supports-color@8.1.1): + resolution: {integrity: sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==} engines: {node: '>=6.0'} peerDependencies: supports-color: '*' @@ -1106,7 +1075,7 @@ packages: supports-color: optional: true dependencies: - ms: 2.1.2 + ms: 2.1.3 supports-color: 8.1.1 dev: true @@ -1143,7 +1112,7 @@ packages: object-is: 1.1.6 object-keys: 1.1.1 object.assign: 4.1.5 - regexp.prototype.flags: 1.5.2 + regexp.prototype.flags: 1.5.3 side-channel: 1.0.6 which-boxed-primitive: 1.0.2 which-collection: 1.0.2 @@ -1270,10 +1239,10 @@ packages: is-string: 1.0.7 is-typed-array: 1.1.13 is-weakref: 1.0.2 - object-inspect: 1.13.2 + object-inspect: 1.13.3 object-keys: 1.1.1 object.assign: 4.1.5 - regexp.prototype.flags: 1.5.2 + regexp.prototype.flags: 1.5.3 safe-array-concat: 1.1.2 safe-regex-test: 1.0.3 string.prototype.trim: 1.2.9 @@ -1379,16 +1348,16 @@ packages: engines: {node: '>=10'} dev: true - /eslint-config-prettier@3.6.0(eslint@8.57.0): + /eslint-config-prettier@3.6.0(eslint@8.57.1): resolution: {integrity: sha512-ixJ4U3uTLXwJts4rmSVW/lMXjlGwCijhBJHk8iVqKKSifeI0qgFEfWl8L63isfc8Od7EiBALF6BX3jKLluf/jQ==} peerDependencies: eslint: '>=3.14.1' dependencies: - eslint: 8.57.0 + eslint: 8.57.1 get-stdin: 6.0.0 dev: true - /eslint-plugin-flowtype@8.0.3(@babel/plugin-syntax-flow@7.24.7)(@babel/plugin-transform-react-jsx@7.25.2)(eslint@8.57.0): + /eslint-plugin-flowtype@8.0.3(@babel/plugin-syntax-flow@7.26.0)(@babel/plugin-transform-react-jsx@7.25.9)(eslint@8.57.1): resolution: {integrity: sha512-dX8l6qUL6O+fYPtpNRideCFSpmWOUVx5QcaGLVqe/vlDiBSe4vYljDWDETwnyFzpl7By/WVIu6rcrniCgH9BqQ==} engines: {node: '>=12.0.0'} peerDependencies: @@ -1396,9 +1365,9 @@ packages: '@babel/plugin-transform-react-jsx': ^7.14.9 eslint: ^8.1.0 dependencies: - '@babel/plugin-syntax-flow': 7.24.7(@babel/core@7.4.3) - '@babel/plugin-transform-react-jsx': 7.25.2(@babel/core@7.4.3) - eslint: 8.57.0 + '@babel/plugin-syntax-flow': 7.26.0(@babel/core@7.4.3) + '@babel/plugin-transform-react-jsx': 7.25.9(@babel/core@7.4.3) + eslint: 8.57.1 lodash: 4.17.21 string-natural-compare: 3.0.1 dev: true @@ -1408,7 +1377,7 @@ packages: engines: {node: '>=5.0.0'} dev: true - /eslint-plugin-react@7.35.0(eslint@8.57.0): + /eslint-plugin-react@7.35.0(eslint@8.57.1): resolution: {integrity: sha512-v501SSMOWv8gerHkk+IIQBkcGRGrO2nfybfj5pLxuJNFTPxxA3PSryhXTK+9pNbtkggheDdsC0E9Q8CuPk6JKA==} engines: {node: '>=4'} peerDependencies: @@ -1420,7 +1389,7 @@ packages: array.prototype.tosorted: 1.1.4 doctrine: 2.1.0 es-iterator-helpers: 1.0.19 - eslint: 8.57.0 + eslint: 8.57.1 estraverse: 5.3.0 hasown: 2.0.2 jsx-ast-utils: 3.3.5 @@ -1448,23 +1417,24 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /eslint@8.57.0: - resolution: {integrity: sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==} + /eslint@8.57.1: + resolution: {integrity: sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options. hasBin: true dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) - '@eslint-community/regexpp': 4.11.0 + '@eslint-community/eslint-utils': 4.4.1(eslint@8.57.1) + '@eslint-community/regexpp': 4.12.1 '@eslint/eslintrc': 2.1.4 - '@eslint/js': 8.57.0 - '@humanwhocodes/config-array': 0.11.14 + '@eslint/js': 8.57.1 + '@humanwhocodes/config-array': 0.13.0 '@humanwhocodes/module-importer': 1.0.1 '@nodelib/fs.walk': 1.2.8 '@ungap/structured-clone': 1.2.0 ajv: 6.12.6 chalk: 4.1.2 - cross-spawn: 7.0.3 - debug: 4.3.6(supports-color@8.1.1) + cross-spawn: 7.0.5 + debug: 4.3.7(supports-color@8.1.1) doctrine: 3.0.0 escape-string-regexp: 4.0.0 eslint-scope: 7.2.2 @@ -1499,8 +1469,8 @@ packages: resolution: {integrity: sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: - acorn: 8.12.1 - acorn-jsx: 5.3.2(acorn@8.12.1) + acorn: 8.14.0 + acorn-jsx: 5.3.2(acorn@8.14.0) eslint-visitor-keys: 3.4.3 dev: true @@ -1690,8 +1660,8 @@ packages: is-callable: 1.1.4 dev: true - /form-data@4.0.0: - resolution: {integrity: sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==} + /form-data@4.0.1: + resolution: {integrity: sha512-tzN8e4TX8+kkxGPK8D5u0FNmjPUjw3lwC9lSLxxoB/+GtsJG91CO8bSWy73APlgAZzZbXEYZJuxjkHH2w+Ezhw==} engines: {node: '>= 6'} dependencies: asynckit: 0.4.0 @@ -1914,11 +1884,6 @@ packages: resolution: {integrity: sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==} dev: true - /has-flag@3.0.0: - resolution: {integrity: sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==} - engines: {node: '>=4'} - dev: true - /has-flag@4.0.0: resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} engines: {node: '>=8'} @@ -2430,13 +2395,13 @@ packages: data-urls: 4.0.0 decimal.js: 10.4.3 domexception: 4.0.0 - form-data: 4.0.0 + form-data: 4.0.1 html-encoding-sniffer: 3.0.0 http-proxy-agent: 5.0.0 https-proxy-agent: 5.0.1 is-potential-custom-element-name: 1.0.1 - nwsapi: 2.2.12 - parse5: 7.1.2 + nwsapi: 2.2.13 + parse5: 7.2.1 rrweb-cssom: 0.6.0 saxes: 6.0.0 symbol-tree: 3.2.4 @@ -2460,6 +2425,12 @@ packages: hasBin: true dev: true + /jsesc@3.0.2: + resolution: {integrity: sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g==} + engines: {node: '>=6'} + hasBin: true + dev: true + /json-buffer@3.0.1: resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==} dev: true @@ -2659,15 +2630,15 @@ packages: minimist: 0.0.8 dev: true - /mocha@10.7.3: - resolution: {integrity: sha512-uQWxAu44wwiACGqjbPYmjo7Lg8sFrS3dQe7PP2FQI+woptP4vZXSMcfMyFL/e1yFEeEpV4RtyTpZROOKmxis+A==} + /mocha@10.8.2: + resolution: {integrity: sha512-VZlYo/WE8t1tstuRmqgeyBgCbJc/lEdopaa+axcKzTBJ+UIdlAB9XnmvTCAH4pwR4ElNInaedhEBmZD8iCSVEg==} engines: {node: '>= 14.0.0'} hasBin: true dependencies: ansi-colors: 4.1.3 browser-stdout: 1.3.1 chokidar: 3.6.0 - debug: 4.3.6(supports-color@8.1.1) + debug: 4.3.7(supports-color@8.1.1) diff: 5.2.0 escape-string-regexp: 4.0.0 find-up: 5.0.0 @@ -2690,10 +2661,6 @@ packages: resolution: {integrity: sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==} dev: true - /ms@2.1.2: - resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==} - dev: true - /ms@2.1.3: resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} dev: true @@ -2713,7 +2680,7 @@ packages: '@sinonjs/fake-timers': 11.3.1 '@sinonjs/text-encoding': 0.7.3 just-extend: 6.2.0 - path-to-regexp: 6.2.2 + path-to-regexp: 6.3.0 dev: true /normalize-path@3.0.0: @@ -2731,16 +2698,16 @@ packages: sort-keys: 1.1.2 dev: true - /nwsapi@2.2.12: - resolution: {integrity: sha512-qXDmcVlZV4XRtKFzddidpfVP4oMSGhga+xdMc25mv8kaLUHtgzCDhUxkrN8exkGdTlLNaXj7CV3GtON7zuGZ+w==} + /nwsapi@2.2.13: + resolution: {integrity: sha512-cTGB9ptp9dY9A5VbMSe7fQBcl/tt22Vcqdq8+eN93rblOuE0aCFu4aZ2vMwct/2t+lFnosm8RkQW1I0Omb1UtQ==} dev: true /object-assign@4.1.1: resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==} engines: {node: '>=0.10.0'} - /object-inspect@1.13.2: - resolution: {integrity: sha512-IRZSRuzJiynemAXPYtPe5BoI/RESNYR7TYm50MC5Mqbd3Jmw5y790sErYw3V6SryFJD64b74qQQs9wn5Bg/k3g==} + /object-inspect@1.13.3: + resolution: {integrity: sha512-kDCGIbxkDSXE3euJZZXzc6to7fCrKHNI/hSRQnRuQ+BWjFNzZwiFF8fj/6o2t2G9/jTj8PSIYTfCLelLZEeRpA==} engines: {node: '>= 0.4'} dev: true @@ -2868,8 +2835,8 @@ packages: engines: {node: '>=0.10.0'} dev: true - /parse5@7.1.2: - resolution: {integrity: sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==} + /parse5@7.2.1: + resolution: {integrity: sha512-BuBYQYlv1ckiPdQi/ohiivi9Sagc9JG+Ozs0r7b/0iK3sKmrb0b9FdWdBbOdx6hBCM/F9Ir82ofnBhtZOjCRPQ==} dependencies: entities: 4.5.0 dev: true @@ -2907,16 +2874,16 @@ packages: resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} dev: true - /path-to-regexp@6.2.2: - resolution: {integrity: sha512-GQX3SSMokngb36+whdpRXE+3f9V8UzyAorlYvOGx87ufGHehNTn5lCxrKtLyZ4Yl/wEKnNnr98ZzOwwDZV5ogw==} + /path-to-regexp@6.3.0: + resolution: {integrity: sha512-Yhpw4T9C6hPpgPeA28us07OJeqZ5EzQTkbfwuhsUg0c237RomFoETJgmp2sa3F/41gfLE6G5cqcYwznmeEeOlQ==} dev: true /pathval@1.1.1: resolution: {integrity: sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==} dev: true - /picocolors@1.0.1: - resolution: {integrity: sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==} + /picocolors@1.1.1: + resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} dev: true /picomatch@2.3.1: @@ -2992,8 +2959,10 @@ packages: react-is: 16.13.1 dev: true - /psl@1.9.0: - resolution: {integrity: sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==} + /psl@1.10.0: + resolution: {integrity: sha512-KSKHEbjAnpUuAUserOq0FxGXCUrzC3WniuSJhvdbs102rL55266ZcHBqLWOsG30spQMlPdpy7icATiAQehg/iA==} + dependencies: + punycode: 2.3.1 dev: true /punycode@2.1.1: @@ -3092,8 +3061,8 @@ packages: /regenerator-runtime@0.14.1: resolution: {integrity: sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==} - /regexp.prototype.flags@1.5.2: - resolution: {integrity: sha512-NcDiDkTLuPR+++OCKB0nWafEmhg/Da8aUPLPMQbK+bxKKCm1/S5he+AqYa4PlMCVBalb4/yxIRub6qkEx5yJbw==} + /regexp.prototype.flags@1.5.3: + resolution: {integrity: sha512-vqlC04+RQoFalODCbCumG2xIOvapzVMHwsyIGM/SIE8fRhFFsXeH8/QQ+s0T0kDAhKc4k30s73/0ydkHQz6HlQ==} engines: {node: '>= 0.4'} dependencies: call-bind: 1.0.7 @@ -3298,7 +3267,7 @@ packages: call-bind: 1.0.7 es-errors: 1.3.0 get-intrinsic: 1.2.4 - object-inspect: 1.13.2 + object-inspect: 1.13.3 dev: true /sinon@14.0.0: @@ -3362,7 +3331,7 @@ packages: gopd: 1.0.1 has-symbols: 1.0.3 internal-slot: 1.0.7 - regexp.prototype.flags: 1.5.2 + regexp.prototype.flags: 1.5.3 set-function-name: 2.0.2 side-channel: 1.0.6 dev: true @@ -3449,13 +3418,6 @@ packages: engines: {node: '>=0.10.0'} dev: true - /supports-color@5.5.0: - resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==} - engines: {node: '>=4'} - dependencies: - has-flag: 3.0.0 - dev: true - /supports-color@7.2.0: resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} engines: {node: '>=8'} @@ -3527,7 +3489,7 @@ packages: resolution: {integrity: sha512-Loo5UUvLD9ScZ6jh8beX1T6sO1w2/MpCRpEP7V280GKMVUQ0Jzar2U3UJPsrdbziLEMMhu3Ujnq//rhiFuIeag==} engines: {node: '>=6'} dependencies: - psl: 1.9.0 + psl: 1.10.0 punycode: 2.1.1 universalify: 0.2.0 url-parse: 1.5.10 diff --git a/fixtures/react-view-slider/init-snapshot/dist/simple.js b/fixtures/react-view-slider/init-snapshot/dist/simple.js index fbe86eb..9db67d3 100644 --- a/fixtures/react-view-slider/init-snapshot/dist/simple.js +++ b/fixtures/react-view-slider/init-snapshot/dist/simple.js @@ -1,110 +1,94 @@ "use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); -var _typeof = require("@babel/runtime/helpers/typeof"); Object.defineProperty(exports, "__esModule", { value: true }); exports.createSimpleViewSlider = createSimpleViewSlider; -exports["default"] = void 0; +exports.default = void 0; var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")); -var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties")); -var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray")); -var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); -var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); -var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized")); -var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits")); -var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn")); -var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf")); -var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty")); var React = _interopRequireWildcard(require("react")); var _inlineStylePrefixer = _interopRequireDefault(require("inline-style-prefixer")); var _index = _interopRequireDefault(require("./index.js")); -var _excluded = ["children", "spacing", "rtl", "keepViewsMounted", "keepPrecedingViewsMounted"]; -function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } -function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /* eslint-env browser */ -function defaultRenderView(_ref) { - var index = _ref.index; +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } +/* eslint-env browser */ +function defaultRenderView({ + index +}) { return this.state.views[index]; } -function createSimpleViewSlider(ViewSlider) { - var renderView = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultRenderView; - return /*#__PURE__*/function (_React$Component) { - (0, _inherits2["default"])(SimpleViewSlider, _React$Component); - var _super = _createSuper(SimpleViewSlider); - function SimpleViewSlider(props) { - var _this; - (0, _classCallCheck2["default"])(this, SimpleViewSlider); - _this = _super.call(this, props); - (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "renderView", renderView.bind((0, _assertThisInitialized2["default"])(_this))); - (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "handleSlideTransitionEnd", function () { - if (!_this.props.keepViewsMounted) { - var _this$state = _this.state, - views = _this$state.views, - activeView = _this$state.activeView; - if (activeView < views.length - 1) { - _this.setState({ - views: views.slice(0, activeView + 1) - }, function () { - var onSlideTransitionEnd = _this.props.onSlideTransitionEnd; - if (onSlideTransitionEnd) onSlideTransitionEnd(); - }); - } - } - }); - var child = React.Children.only(props.children); - var _activeView = parseInt(child.key); - var _views = []; - _views[_activeView] = child; - _this.state = { - views: _views, - activeView: _activeView +function createSimpleViewSlider(ViewSlider, renderView = defaultRenderView) { + return class SimpleViewSlider extends React.Component { + constructor(props) { + super(props); + const child = React.Children.only(props.children); + const activeView = parseInt(child.key); + const views = []; + views[activeView] = child; + this.state = { + views, + activeView }; - return _this; } - (0, _createClass2["default"])(SimpleViewSlider, [{ - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - if (prevProps.children !== this.props.children) { - var child = React.Children.only(this.props.children); - var activeView = parseInt(child.key); - var views = (0, _toConsumableArray2["default"])(this.state.views); - views[activeView] = child; + componentDidUpdate(prevProps) { + if (prevProps.children !== this.props.children) { + const child = React.Children.only(this.props.children); + const activeView = parseInt(child.key); + const views = [...this.state.views]; + views[activeView] = child; + this.setState({ + views, + activeView + }); + } + } + renderView = renderView.bind(this); + handleSlideTransitionEnd = () => { + if (!this.props.keepViewsMounted) { + const { + views, + activeView + } = this.state; + if (activeView < views.length - 1) { this.setState({ - views: views, - activeView: activeView + views: views.slice(0, activeView + 1) + }, () => { + const { + onSlideTransitionEnd + } = this.props; + if (onSlideTransitionEnd) onSlideTransitionEnd(); }); } } - }, { - key: "render", - value: function render() { - var _this$props = this.props, - children = _this$props.children, - spacing = _this$props.spacing, - rtl = _this$props.rtl, - keepViewsMounted = _this$props.keepViewsMounted, - keepPrecedingViewsMounted = _this$props.keepPrecedingViewsMounted, - props = (0, _objectWithoutProperties2["default"])(_this$props, _excluded); - var _this$state2 = this.state, - activeView = _this$state2.activeView, - views = _this$state2.views; - return /*#__PURE__*/React.createElement(ViewSlider, (0, _extends2["default"])({}, props, { - keepViewsMounted: keepViewsMounted || keepPrecedingViewsMounted, - spacing: spacing, - rtl: rtl, - renderView: this.renderView, - numViews: views.length, - activeView: activeView, - onSlideTransitionEnd: this.handleSlideTransitionEnd - })); - } - }]); - return SimpleViewSlider; - }(React.Component); + }; + render() { + const { + children, + // eslint-disable-line no-unused-vars + // Flow's React.ComponentType + defaultProps is foobar... + spacing, + rtl, + keepViewsMounted, + keepPrecedingViewsMounted, + ...props + } = this.props; + const { + activeView, + views + } = this.state; + return /*#__PURE__*/React.createElement(ViewSlider, (0, _extends2.default)({}, props, { + keepViewsMounted: keepViewsMounted || keepPrecedingViewsMounted, + spacing: spacing, + rtl: rtl, + renderView: this.renderView, + numViews: views.length, + activeView: activeView, + onSlideTransitionEnd: this.handleSlideTransitionEnd + })); + } + }; } -var _default = createSimpleViewSlider(_index["default"]); -exports["default"] = _default; +var _default = createSimpleViewSlider(_index.default); +exports.default = _default; //# sourceMappingURL=simple.js.map \ No newline at end of file diff --git a/fixtures/react-view-slider/init-snapshot/dist/simple.js.map b/fixtures/react-view-slider/init-snapshot/dist/simple.js.map index 56894a0..0d70921 100644 --- a/fixtures/react-view-slider/init-snapshot/dist/simple.js.map +++ b/fixtures/react-view-slider/init-snapshot/dist/simple.js.map @@ -1 +1 @@ -{"version":3,"file":"simple.js","names":["React","_interopRequireWildcard","require","_inlineStylePrefixer","_interopRequireDefault","_index","_excluded","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","valueOf","e","defaultRenderView","_ref","index","state","views","createSimpleViewSlider","ViewSlider","renderView","length","undefined","_React$Component","_inherits2","SimpleViewSlider","_super","props","_this","_classCallCheck2","_defineProperty2","_assertThisInitialized2","bind","keepViewsMounted","_this$state","activeView","setState","slice","onSlideTransitionEnd","child","Children","only","children","parseInt","_createClass2","value","componentDidUpdate","prevProps","_toConsumableArray2","render","_this$props","spacing","rtl","keepPrecedingViewsMounted","_objectWithoutProperties2","_this$state2","createElement","_extends2","numViews","handleSlideTransitionEnd","Component","_default","exports"],"sources":["src/simple.js"],"sourcesContent":["/* @flow */\n/* eslint-env browser */\n\nimport * as React from 'react'\nimport Prefixer from 'inline-style-prefixer'\nimport ViewSlider from './index'\nimport type { Props as ViewSliderProps, ViewProps } from './index'\n\nexport type Props = {\n children?: any,\n keepViewsMounted?: ?boolean,\n keepPrecedingViewsMounted?: ?boolean,\n animateHeight?: ?boolean,\n transitionDuration?: ?number,\n transitionTimingFunction?: ?string,\n onSlideTransitionEnd?: ?() => mixed,\n prefixer?: ?Prefixer,\n fillParent?: ?boolean,\n className?: ?string,\n style?: ?Object,\n viewportClassName?: ?string,\n viewportStyle?: ?Object,\n viewStyle?: ?Object,\n innerViewWrapperStyle?: ?Object,\n rootRef?: ?(node: ?React.ElementRef<'div'>) => mixed,\n viewportRef?: ?(node: ?React.ElementRef<'div'>) => mixed,\n rtl?: ?boolean,\n spacing?: ?number,\n}\n\nexport type State = {\n views: Array,\n activeView: number,\n}\n\nfunction defaultRenderView({ index }: ViewProps): React.Element<'div'> {\n return this.state.views[index]\n}\n\nexport function createSimpleViewSlider(\n ViewSlider: React.ComponentType,\n renderView: (props: ViewProps) => React.Node = defaultRenderView\n): Class> {\n return class SimpleViewSlider extends React.Component {\n state: State\n\n constructor(props: Props) {\n super(props)\n const child = React.Children.only(props.children)\n const activeView = parseInt(child.key)\n const views = []\n views[activeView] = child\n this.state = { views, activeView }\n }\n\n componentDidUpdate(prevProps: Props) {\n if (prevProps.children !== this.props.children) {\n const child = React.Children.only(this.props.children)\n const activeView = parseInt(child.key)\n const views = [...this.state.views]\n views[activeView] = child\n this.setState({ views, activeView })\n }\n }\n\n renderView = renderView.bind(this)\n\n handleSlideTransitionEnd = () => {\n if (!this.props.keepViewsMounted) {\n const { views, activeView } = this.state\n if (activeView < views.length - 1) {\n this.setState(\n {\n views: views.slice(0, activeView + 1),\n },\n () => {\n const { onSlideTransitionEnd } = this.props\n if (onSlideTransitionEnd) onSlideTransitionEnd()\n }\n )\n }\n }\n }\n\n render(): React.Node {\n const {\n children, // eslint-disable-line no-unused-vars\n // Flow's React.ComponentType + defaultProps is foobar...\n spacing,\n rtl,\n keepViewsMounted,\n keepPrecedingViewsMounted,\n ...props\n } = this.props\n const { activeView, views } = this.state\n return (\n \n )\n }\n }\n}\n\nexport default createSimpleViewSlider(ViewSlider)\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAGA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,oBAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,MAAA,GAAAD,sBAAA,CAAAF,OAAA;AAAgC,IAAAI,SAAA;AAAA,SAAAC,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAP,wBAAAW,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,aAAAE,OAAA,CAAAF,GAAA,yBAAAA,GAAA,uCAAAA,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAX,GAAA,QAAAW,GAAA,kBAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAd,GAAA,EAAAW,GAAA,SAAAI,IAAA,GAAAR,qBAAA,GAAAC,MAAA,CAAAE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AU,MAAAsC,SAAA,iBACL9B,KAAK;UACTM,gBAAgB,EAAEA,gBAAgB,IAAIoB,yBAA0B;UAChEF,OAAO,EAAGA,OAAc;UACxBC,GAAG,EAAGA,GAAU;UAChBhC,UAAU,EAAE,IAAI,CAACA,UAAW;UAC5BsC,QAAQ,EAAEzC,KAAK,CAACI,MAAO;UACvBc,UAAU,EAAEA,UAAW;UACvBG,oBAAoB,EAAE,IAAI,CAACqB;QAAyB,EACrD,CAAC;MAEN;IAAC;IAAA,OAAAlC,gBAAA;EAAA,EAhEmC7D,KAAK,CAACgG,SAAS;AAkEvD;AAAC,IAAAC,QAAA,GAEc3C,sBAAsB,CAACC,iBAAU,CAAC;AAAA2C,OAAA,cAAAD,QAAA"} +{"version":3,"file":"simple.js","names":["React","_interopRequireWildcard","require","_inlineStylePrefixer","_interopRequireDefault","_index","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","defaultRenderView","index","state","views","createSimpleViewSlider","ViewSlider","renderView","SimpleViewSlider","Component","constructor","props","child","Children","only","children","activeView","parseInt","componentDidUpdate","prevProps","setState","bind","handleSlideTransitionEnd","keepViewsMounted","length","slice","onSlideTransitionEnd","render","spacing","rtl","keepPrecedingViewsMounted","createElement","_extends2","numViews","_default","exports"],"sources":["src/simple.js"],"sourcesContent":["/* @flow */\n/* eslint-env browser */\n\nimport * as React from 'react'\nimport Prefixer from 'inline-style-prefixer'\nimport ViewSlider from './index'\nimport type { Props as ViewSliderProps, ViewProps } from './index'\n\nexport type Props = {\n children?: any,\n keepViewsMounted?: ?boolean,\n keepPrecedingViewsMounted?: ?boolean,\n animateHeight?: ?boolean,\n transitionDuration?: ?number,\n transitionTimingFunction?: ?string,\n onSlideTransitionEnd?: ?() => mixed,\n prefixer?: ?Prefixer,\n fillParent?: ?boolean,\n className?: ?string,\n style?: ?Object,\n viewportClassName?: ?string,\n viewportStyle?: ?Object,\n viewStyle?: ?Object,\n innerViewWrapperStyle?: ?Object,\n rootRef?: ?(node: ?React.ElementRef<'div'>) => mixed,\n viewportRef?: ?(node: ?React.ElementRef<'div'>) => mixed,\n rtl?: ?boolean,\n spacing?: ?number,\n}\n\nexport type State = {\n views: Array,\n activeView: number,\n}\n\nfunction defaultRenderView({ index }: ViewProps): React.Element<'div'> {\n return this.state.views[index]\n}\n\nexport function createSimpleViewSlider(\n ViewSlider: React.ComponentType,\n renderView: (props: ViewProps) => React.Node = defaultRenderView\n): Class> {\n return class SimpleViewSlider extends React.Component {\n state: State\n\n constructor(props: Props) {\n super(props)\n const child = React.Children.only(props.children)\n const activeView = parseInt(child.key)\n const views = []\n views[activeView] = child\n this.state = { views, activeView }\n }\n\n componentDidUpdate(prevProps: Props) {\n if (prevProps.children !== this.props.children) {\n const child = React.Children.only(this.props.children)\n const activeView = parseInt(child.key)\n const views = [...this.state.views]\n views[activeView] = child\n this.setState({ views, activeView })\n }\n }\n\n renderView = renderView.bind(this)\n\n handleSlideTransitionEnd = () => {\n if (!this.props.keepViewsMounted) {\n const { views, activeView } = this.state\n if (activeView < views.length - 1) {\n this.setState(\n {\n views: views.slice(0, activeView + 1),\n },\n () => {\n const { onSlideTransitionEnd } = this.props\n if (onSlideTransitionEnd) onSlideTransitionEnd()\n }\n )\n }\n }\n }\n\n render(): React.Node {\n const {\n children, // eslint-disable-line no-unused-vars\n // Flow's React.ComponentType + defaultProps is foobar...\n spacing,\n rtl,\n keepViewsMounted,\n keepPrecedingViewsMounted,\n ...props\n } = this.props\n const { activeView, views } = this.state\n return (\n \n )\n }\n }\n}\n\nexport default createSimpleViewSlider(ViewSlider)\n"],"mappings":";;;;;;;;;AAGA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,oBAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,MAAA,GAAAD,sBAAA,CAAAF,O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,CAACoB,MAAM,GAAG,CAAC,EAAE;UACjC,IAAI,CAACJ,QAAQ,CACX;YACEhB,KAAK,EAAEA,KAAK,CAACqB,KAAK,CAAC,CAAC,EAAET,UAAU,GAAG,CAAC;UACtC,CAAC,EACD,MAAM;YACJ,MAAM;cAAEU;YAAqB,CAAC,GAAG,IAAI,CAACf,KAAK;YAC3C,IAAIe,oBAAoB,EAAEA,oBAAoB,CAAC,CAAC;UAClD,CACF,CAAC;QACH;MACF;IACF,CAAC;IAEDC,MAAMA,CAAA,EAAe;MACnB,MAAM;QACJZ,QAAQ;QAAE;QACV;QACAa,OAAO;QACPC,GAAG;QACHN,gBAAgB;QAChBO,yBAAyB;QACzB,GAAGnB;MACL,CAAC,GAAG,IAAI,CAACA,KAAK;MACd,MAAM;QAAEK,UAAU;QAAEZ;MAAM,CAAC,GAAG,IAAI,CAACD,KAAK;MACxC,oBACE9B,KAAA,CAAA0D,aAAA,CAACzB,UAAU,MAAA0B,SAAA,CAAA9C,OAAA,MACLyB,KAAK;QACTY,gBAAgB,EAAEA,gBAAgB,IAAIO,yBAA0B;QAChEF,OAAO,EAAGA,OAAc;QACxBC,GAAG,EAAGA,GAAU;QAChBtB,UAAU,EAAE,IAAI,CAACA,UAAW;QAC5B0B,QAAQ,EAAE7B,KAAK,CAACoB,MAAO;QACvBR,UAAU,EAAEA,UAAW;QACvBU,oBAAoB,EAAE,IAAI,CAACJ;MAAyB,EACrD,CAAC;IAEN;EACF,CAAC;AACH;AAAC,IAAAY,QAAA,GAEc7B,sBAAsB,CAACC,cAAU,CAAC;AAAA6B,OAAA,CAAAjD,OAAA,GAAAgD,QAAA"} diff --git a/fixtures/react-view-slider/init-snapshot/pnpm-lock.yaml b/fixtures/react-view-slider/init-snapshot/pnpm-lock.yaml index 835f99f..be4700b 100644 --- a/fixtures/react-view-slider/init-snapshot/pnpm-lock.yaml +++ b/fixtures/react-view-slider/init-snapshot/pnpm-lock.yaml @@ -7,7 +7,7 @@ settings: dependencies: '@babel/runtime': specifier: ^7.18.6 - version: 7.25.6 + version: 7.26.0 inline-style-prefixer: specifier: ^4.0.0 version: 4.0.2 @@ -18,10 +18,10 @@ dependencies: devDependencies: '@babel/plugin-syntax-flow': specifier: ^7.14.5 - version: 7.24.7(@babel/core@7.4.3) + version: 7.26.0(@babel/core@7.4.3) '@babel/plugin-transform-react-jsx': specifier: ^7.14.9 - version: 7.25.2(@babel/core@7.4.3) + version: 7.25.9(@babel/core@7.4.3) '@jcoreio/eslint-plugin-implicit-dependencies': specifier: ^1.1.1 version: 1.1.1 @@ -66,19 +66,19 @@ devDependencies: version: 2.0.0 eslint: specifier: ^8.56.0 - version: 8.57.0 + version: 8.57.1 eslint-config-prettier: specifier: ^3.3.0 - version: 3.6.0(eslint@8.57.0) + version: 3.6.0(eslint@8.57.1) eslint-plugin-flowtype: specifier: ^8.0.3 - version: 8.0.3(@babel/plugin-syntax-flow@7.24.7)(@babel/plugin-transform-react-jsx@7.25.2)(eslint@8.57.0) + version: 8.0.3(@babel/plugin-syntax-flow@7.26.0)(@babel/plugin-transform-react-jsx@7.25.9)(eslint@8.57.1) eslint-plugin-no-only-tests: specifier: ^3.1.0 version: 3.3.0 eslint-plugin-react: specifier: ^7.32.2 - version: 7.35.0(eslint@8.57.0) + version: 7.35.0(eslint@8.57.1) flow-bin: specifier: ^0.113.0 version: 0.113.0 @@ -96,7 +96,7 @@ devDependencies: version: 22.1.0 mocha: specifier: ^10.2.0 - version: 10.7.3 + version: 10.8.2 react: specifier: ^18.0.0 version: 18.0.0 @@ -112,25 +112,26 @@ devDependencies: packages: - /@babel/code-frame@7.24.7: - resolution: {integrity: sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==} + /@babel/code-frame@7.26.2: + resolution: {integrity: sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ==} engines: {node: '>=6.9.0'} dependencies: - '@babel/highlight': 7.24.7 - picocolors: 1.0.1 + '@babel/helper-validator-identifier': 7.25.9 + js-tokens: 4.0.0 + picocolors: 1.1.1 dev: true /@babel/core@7.4.3: resolution: {integrity: sha512-oDpASqKFlbspQfzAE7yaeTmdljSH2ADIvBlb0RwbStltTuWa0+7CCI1fYVINNv9saHPa1W7oaKeuNuKj+RQCvA==} engines: {node: '>=6.9.0'} dependencies: - '@babel/code-frame': 7.24.7 + '@babel/code-frame': 7.26.2 '@babel/generator': 7.4.0 '@babel/helpers': 7.4.3 '@babel/parser': 7.4.3 '@babel/template': 7.4.0 '@babel/traverse': 7.4.3 - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 convert-source-map: 1.6.0 debug: 4.1.1 json5: 2.1.0 @@ -142,31 +143,32 @@ packages: - supports-color dev: true - /@babel/generator@7.25.6: - resolution: {integrity: sha512-VPC82gr1seXOpkjAAKoLhP50vx4vGNlF4msF64dSFq1P8RfB+QAuJWGHPXXPc8QyfVWwwB/TNNU4+ayZmHNbZw==} + /@babel/generator@7.26.2: + resolution: {integrity: sha512-zevQbhbau95nkoxSq3f/DC/SC+EEOUZd3DYqfSkMhY2/wfSeaHV1Ew4vk8e+x8lja31IbyuUa2uQ3JONqKbysw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.25.6 + '@babel/parser': 7.26.2 + '@babel/types': 7.26.0 '@jridgewell/gen-mapping': 0.3.5 '@jridgewell/trace-mapping': 0.3.25 - jsesc: 2.5.2 + jsesc: 3.0.2 dev: true /@babel/generator@7.4.0: resolution: {integrity: sha512-/v5I+a1jhGSKLgZDcmAUZ4K/VePi43eRkUs3yePW1HB1iANOD5tqJXwGSG4BZhSksP8J9ejSlwGeTiiOFZOrXQ==} dependencies: - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 jsesc: 2.5.2 lodash: 4.17.11 source-map: 0.5.7 trim-right: 1.0.1 dev: true - /@babel/helper-annotate-as-pure@7.24.7: - resolution: {integrity: sha512-BaDeOonYvhdKw+JoMVkAixAAJzG2jVPIwWoKBPdYuY9b452e2rPuI9QPYh3KpofZ3pW2akOmwZLOiOsHMiqRAg==} + /@babel/helper-annotate-as-pure@7.25.9: + resolution: {integrity: sha512-gv7320KBUFJz1RnylIg5WWYPRXKZ884AGkYpgpWW02TH66Dl+HaC1t1CKd0z3R4b6hdYEcmrNZHUmfCP+1u3/g==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 dev: true /@babel/helper-function-name@7.1.0: @@ -174,13 +176,13 @@ packages: dependencies: '@babel/helper-get-function-arity': 7.0.0 '@babel/template': 7.4.0 - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 dev: true /@babel/helper-get-function-arity@7.0.0: resolution: {integrity: sha512-r2DbJeg4svYvt3HOS74U4eWKsUAMRH01Z1ds1zx8KNTPtpTL5JAsdFv8BNyOpVqdFhHkkRDIg5B4AsxmkjAlmQ==} dependencies: - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 dev: true /@babel/helper-module-imports@7.0.0: @@ -189,34 +191,34 @@ packages: '@babel/types': 7.4.0 dev: true - /@babel/helper-module-imports@7.24.7: - resolution: {integrity: sha512-8AyH3C+74cgCVVXow/myrynrAGv+nTVg5vKu2nZph9x7RcRwzmh0VFallJuFTZ9mx6u4eSdXZfcOzSqTUm0HCA==} + /@babel/helper-module-imports@7.25.9: + resolution: {integrity: sha512-tnUA4RsrmflIM6W6RFTLFSXITtl0wKjgpnLgXyowocVPrbYrLUXSBXDgTs8BlbmIzIdlBySRQjINYs2BAkiLtw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/traverse': 7.25.6 - '@babel/types': 7.25.6 + '@babel/traverse': 7.25.9 + '@babel/types': 7.26.0 transitivePeerDependencies: - supports-color dev: true - /@babel/helper-plugin-utils@7.24.8: - resolution: {integrity: sha512-FFWx5142D8h2Mgr/iPVGH5G7w6jDn4jUSpZTyDnQO0Yn7Ks2Kuz6Pci8H6MPCoUJegd/UZQ3tAvfLCxQSnWWwg==} + /@babel/helper-plugin-utils@7.25.9: + resolution: {integrity: sha512-kSMlyUVdWe25rEsRGviIgOWnoT/nfABVWlqt9N19/dIPWViAOW2s9wznP5tURbs/IDuNk4gPy3YdYRgH3uxhBw==} engines: {node: '>=6.9.0'} dev: true /@babel/helper-split-export-declaration@7.4.0: resolution: {integrity: sha512-7Cuc6JZiYShaZnybDmfwhY4UYHzI6rlqhWjaIqbsJGsIqPimEYy5uh3akSRLMg65LSdSEnJ8a8/bWQN6u2oMGw==} dependencies: - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 dev: true - /@babel/helper-string-parser@7.24.8: - resolution: {integrity: sha512-pO9KhhRcuUyGnJWwyEgnRJTSIZHiT+vMD0kPeD+so0l7mxkMT19g3pjY9GTnHySck/hDzq+dtW/4VgnMkippsQ==} + /@babel/helper-string-parser@7.25.9: + resolution: {integrity: sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==} engines: {node: '>=6.9.0'} dev: true - /@babel/helper-validator-identifier@7.24.7: - resolution: {integrity: sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==} + /@babel/helper-validator-identifier@7.25.9: + resolution: {integrity: sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==} engines: {node: '>=6.9.0'} dev: true @@ -225,27 +227,17 @@ packages: dependencies: '@babel/template': 7.4.0 '@babel/traverse': 7.4.3 - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 transitivePeerDependencies: - supports-color dev: true - /@babel/highlight@7.24.7: - resolution: {integrity: sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/helper-validator-identifier': 7.24.7 - chalk: 2.4.2 - js-tokens: 4.0.0 - picocolors: 1.0.1 - dev: true - - /@babel/parser@7.25.6: - resolution: {integrity: sha512-trGdfBdbD0l1ZPmcJ83eNxB9rbEax4ALFTF7fN386TMYbeCQbyme5cOEXQhbGXKebwGaB/J52w1mrklMcbgy6Q==} + /@babel/parser@7.26.2: + resolution: {integrity: sha512-DWMCZH9WA4Maitz2q21SRKHo9QXZxkDsbNZoVD62gusNtNBBqDg9i7uOhASfTfIGNzW+O+r7+jAlM8dwphcJKQ==} engines: {node: '>=6.0.0'} hasBin: true dependencies: - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 dev: true /@babel/parser@7.4.3: @@ -253,78 +245,78 @@ packages: engines: {node: '>=6.0.0'} hasBin: true dependencies: - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 dev: true - /@babel/plugin-syntax-flow@7.24.7(@babel/core@7.4.3): - resolution: {integrity: sha512-9G8GYT/dxn/D1IIKOUBmGX0mnmj46mGH9NnZyJLwtCpgh5f7D2VbuKodb+2s9m1Yavh1s7ASQN8lf0eqrb1LTw==} + /@babel/plugin-syntax-flow@7.26.0(@babel/core@7.4.3): + resolution: {integrity: sha512-B+O2DnPc0iG+YXFqOxv2WNuNU97ToWjOomUQ78DouOENWUaM5sVrmet9mcomUGQFwpJd//gvUagXBSdzO1fRKg==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.4.3 - '@babel/helper-plugin-utils': 7.24.8 + '@babel/helper-plugin-utils': 7.25.9 dev: true - /@babel/plugin-syntax-jsx@7.24.7(@babel/core@7.4.3): - resolution: {integrity: sha512-6ddciUPe/mpMnOKv/U+RSd2vvVy+Yw/JfBB0ZHYjEZt9NLHmCUylNYlsbqCCS1Bffjlb0fCwC9Vqz+sBz6PsiQ==} + /@babel/plugin-syntax-jsx@7.25.9(@babel/core@7.4.3): + resolution: {integrity: sha512-ld6oezHQMZsZfp6pWtbjaNDF2tiiCYYDqQszHt5VV437lewP9aSi2Of99CK0D0XB21k7FLgnLcmQKyKzynfeAA==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.4.3 - '@babel/helper-plugin-utils': 7.24.8 + '@babel/helper-plugin-utils': 7.25.9 dev: true - /@babel/plugin-transform-react-jsx@7.25.2(@babel/core@7.4.3): - resolution: {integrity: sha512-KQsqEAVBpU82NM/B/N9j9WOdphom1SZH3R+2V7INrQUH+V9EBFwZsEJl8eBIVeQE62FxJCc70jzEZwqU7RcVqA==} + /@babel/plugin-transform-react-jsx@7.25.9(@babel/core@7.4.3): + resolution: {integrity: sha512-s5XwpQYCqGerXl+Pu6VDL3x0j2d82eiV77UJ8a2mDHAW7j9SWRqQ2y1fNo1Z74CdcYipl5Z41zvjj4Nfzq36rw==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.4.3 - '@babel/helper-annotate-as-pure': 7.24.7 - '@babel/helper-module-imports': 7.24.7 - '@babel/helper-plugin-utils': 7.24.8 - '@babel/plugin-syntax-jsx': 7.24.7(@babel/core@7.4.3) - '@babel/types': 7.25.6 + '@babel/helper-annotate-as-pure': 7.25.9 + '@babel/helper-module-imports': 7.25.9 + '@babel/helper-plugin-utils': 7.25.9 + '@babel/plugin-syntax-jsx': 7.25.9(@babel/core@7.4.3) + '@babel/types': 7.26.0 transitivePeerDependencies: - supports-color dev: true - /@babel/runtime@7.25.6: - resolution: {integrity: sha512-VBj9MYyDb9tuLq7yzqjgzt6Q+IBQLrGZfdjOekyEirZPHxXWoTSGUTMrpsfi58Up73d13NfYLv8HT9vmznjzhQ==} + /@babel/runtime@7.26.0: + resolution: {integrity: sha512-FDSOghenHTiToteC/QRlv2q3DhPZ/oOXTBoirfWNx1Cx3TMVcGWQtMMmQcSvb/JjpNeGzx8Pq/b4fKEJuWm1sw==} engines: {node: '>=6.9.0'} dependencies: regenerator-runtime: 0.14.1 - /@babel/template@7.25.0: - resolution: {integrity: sha512-aOOgh1/5XzKvg1jvVz7AVrx2piJ2XBi227DHmbY6y+bM9H2FlN+IfecYu4Xl0cNiiVejlsCri89LUsbj8vJD9Q==} + /@babel/template@7.25.9: + resolution: {integrity: sha512-9DGttpmPvIxBb/2uwpVo3dqJ+O6RooAFOS+lB+xDqoE2PVCE8nfoHMdZLpfCQRLwvohzXISPZcgxt80xLfsuwg==} engines: {node: '>=6.9.0'} dependencies: - '@babel/code-frame': 7.24.7 - '@babel/parser': 7.25.6 - '@babel/types': 7.25.6 + '@babel/code-frame': 7.26.2 + '@babel/parser': 7.26.2 + '@babel/types': 7.26.0 dev: true /@babel/template@7.4.0: resolution: {integrity: sha512-SOWwxxClTTh5NdbbYZ0BmaBVzxzTh2tO/TeLTbF6MO6EzVhHTnff8CdBXx3mEtazFBoysmEM6GU/wF+SuSx4Fw==} dependencies: - '@babel/code-frame': 7.24.7 + '@babel/code-frame': 7.26.2 '@babel/parser': 7.4.3 - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 dev: true - /@babel/traverse@7.25.6: - resolution: {integrity: sha512-9Vrcx5ZW6UwK5tvqsj0nGpp/XzqthkT0dqIc9g1AdtygFToNtTF67XzYS//dm+SAK9cp3B9R4ZO/46p63SCjlQ==} + /@babel/traverse@7.25.9: + resolution: {integrity: sha512-ZCuvfwOwlz/bawvAuvcj8rrithP2/N55Tzz342AkTvq4qaWbGfmCk/tKhNaV2cthijKrPAA8SRJV5WWe7IBMJw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/code-frame': 7.24.7 - '@babel/generator': 7.25.6 - '@babel/parser': 7.25.6 - '@babel/template': 7.25.0 - '@babel/types': 7.25.6 - debug: 4.3.6(supports-color@8.1.1) + '@babel/code-frame': 7.26.2 + '@babel/generator': 7.26.2 + '@babel/parser': 7.26.2 + '@babel/template': 7.25.9 + '@babel/types': 7.26.0 + debug: 4.3.7(supports-color@8.1.1) globals: 11.11.0 transitivePeerDependencies: - supports-color @@ -333,12 +325,12 @@ packages: /@babel/traverse@7.4.3: resolution: {integrity: sha512-HmA01qrtaCwwJWpSKpA948cBvU5BrmviAief/b3AVw936DtcdsTexlbyzNuDnthwhOQ37xshn7hvQaEQk7ISYQ==} dependencies: - '@babel/code-frame': 7.24.7 + '@babel/code-frame': 7.26.2 '@babel/generator': 7.4.0 '@babel/helper-function-name': 7.1.0 '@babel/helper-split-export-declaration': 7.4.0 '@babel/parser': 7.4.3 - '@babel/types': 7.25.6 + '@babel/types': 7.26.0 debug: 4.1.1 globals: 11.11.0 lodash: 4.17.11 @@ -346,13 +338,12 @@ packages: - supports-color dev: true - /@babel/types@7.25.6: - resolution: {integrity: sha512-/l42B1qxpG6RdfYf343Uw1vmDjeNhneUXtzhojE7pDgfpEypmRhI6j1kr17XCVv4Cgl9HdAiQY2x0GwKm7rWCw==} + /@babel/types@7.26.0: + resolution: {integrity: sha512-Z/yiTPj+lDVnF7lWeKCIJzaIkI0vYO87dMpZ4bg4TDrFe4XXLFWL1TbXU27gBP3QccxV9mZICCrnjnYlJjXHOA==} engines: {node: '>=6.9.0'} dependencies: - '@babel/helper-string-parser': 7.24.8 - '@babel/helper-validator-identifier': 7.24.7 - to-fast-properties: 2.0.0 + '@babel/helper-string-parser': 7.25.9 + '@babel/helper-validator-identifier': 7.25.9 dev: true /@babel/types@7.4.0: @@ -363,18 +354,18 @@ packages: to-fast-properties: 2.0.0 dev: true - /@eslint-community/eslint-utils@4.4.0(eslint@8.57.0): - resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==} + /@eslint-community/eslint-utils@4.4.1(eslint@8.57.1): + resolution: {integrity: sha512-s3O3waFUrMV8P/XaF/+ZTp1X9XBZW1a4B97ZnjQF2KYWaFD2A8KyFBsrsfSjEmjn3RGWAIuvlneuZm3CUK3jbA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 dependencies: - eslint: 8.57.0 + eslint: 8.57.1 eslint-visitor-keys: 3.4.3 dev: true - /@eslint-community/regexpp@4.11.0: - resolution: {integrity: sha512-G/M/tIiMrTAxEWRfLfQJMmGNX28IxBg4PBz8XqQhqUHLFI6TL2htpIB1iQCj144V5ee/JaKyT9/WZ0MGZWfA7A==} + /@eslint-community/regexpp@4.12.1: + resolution: {integrity: sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==} engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} dev: true @@ -383,7 +374,7 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: ajv: 6.12.6 - debug: 4.3.6(supports-color@8.1.1) + debug: 4.3.7(supports-color@8.1.1) espree: 9.6.1 globals: 13.24.0 ignore: 5.3.2 @@ -395,18 +386,18 @@ packages: - supports-color dev: true - /@eslint/js@8.57.0: - resolution: {integrity: sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==} + /@eslint/js@8.57.1: + resolution: {integrity: sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /@humanwhocodes/config-array@0.11.14: - resolution: {integrity: sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==} + /@humanwhocodes/config-array@0.13.0: + resolution: {integrity: sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==} engines: {node: '>=10.10.0'} deprecated: Use @eslint/config-array instead dependencies: '@humanwhocodes/object-schema': 2.0.3 - debug: 4.3.6(supports-color@8.1.1) + debug: 4.3.7(supports-color@8.1.1) minimatch: 3.1.2 transitivePeerDependencies: - supports-color @@ -426,7 +417,7 @@ packages: resolution: {integrity: sha512-Kg+erBdnA1sczSNNGEGIA9k7hwfnN1NrKEnACfJwbGoR6T5E/yhBbpyF5q5dEIvxHTUJ4wL5azEd3m68qq8F+Q==} engines: {node: '>=16'} dependencies: - '@babel/runtime': 7.25.6 + '@babel/runtime': 7.26.0 '@types/validate-npm-package-name': 4.0.2 pkg-up: 3.1.0 validate-npm-package-name: 5.0.1 @@ -523,8 +514,8 @@ packages: resolution: {integrity: sha512-/DiOQ5xBxgdYRC8LNk7U+RWat0S3qRLeIw3ZIkMQ9kkVlRmwD/Eg8k8CqIpD6GW7u20JIUOfMKbxtiLutpjQ4g==} engines: {node: '>=12'} dependencies: - '@babel/code-frame': 7.24.7 - '@babel/runtime': 7.25.6 + '@babel/code-frame': 7.26.2 + '@babel/runtime': 7.26.0 '@types/aria-query': 5.0.4 aria-query: 5.1.3 chalk: 4.1.2 @@ -540,9 +531,9 @@ packages: react: ^18.0.0 react-dom: ^18.0.0 dependencies: - '@babel/runtime': 7.25.6 + '@babel/runtime': 7.26.0 '@testing-library/dom': 8.20.1 - '@types/react-dom': 18.3.0 + '@types/react-dom': 18.3.1 react: 18.0.0 react-dom: 18.0.0(react@18.0.0) dev: true @@ -560,8 +551,8 @@ packages: resolution: {integrity: sha512-eItQyV43bj4rR3JPV0Skpl1SncRCdziTEK9/v8VwXmV6d/qOUO8/EuWeHBbCZcsfSHfzI5UyMJLCSXtxxznyZg==} dev: true - /@types/react-dom@18.3.0: - resolution: {integrity: sha512-EhwApuTmMBmXuFOikhQLIBUn6uFg81SwLMOAUgodJF14SOBOCMdU04gDoYi0WOJJHD144TL32z4yDqCW3dnkQg==} + /@types/react-dom@18.3.1: + resolution: {integrity: sha512-qW1Mfv8taImTthu4KoXgDfLuk4bydU6Q/TkADnDWWHwi4NX4BR+LWfTp2sVmTqRrsHvyDDTelgelxJ+SsejKKQ==} dependencies: '@types/react': 16.8.13 dev: true @@ -586,16 +577,16 @@ packages: deprecated: Use your platform's native atob() and btoa() methods instead dev: true - /acorn-jsx@5.3.2(acorn@8.12.1): + /acorn-jsx@5.3.2(acorn@8.14.0): resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} peerDependencies: acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 dependencies: - acorn: 8.12.1 + acorn: 8.14.0 dev: true - /acorn@8.12.1: - resolution: {integrity: sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==} + /acorn@8.14.0: + resolution: {integrity: sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==} engines: {node: '>=0.4.0'} hasBin: true dev: true @@ -635,13 +626,6 @@ packages: engines: {node: '>=8'} dev: true - /ansi-styles@3.2.1: - resolution: {integrity: sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==} - engines: {node: '>=4'} - dependencies: - color-convert: 1.9.1 - dev: true - /ansi-styles@4.3.0: resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} engines: {node: '>=8'} @@ -886,15 +870,6 @@ packages: type-detect: 4.1.0 dev: true - /chalk@2.4.2: - resolution: {integrity: sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==} - engines: {node: '>=4'} - dependencies: - ansi-styles: 3.2.1 - escape-string-regexp: 1.0.5 - supports-color: 5.5.0 - dev: true - /chalk@4.1.2: resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} engines: {node: '>=10'} @@ -941,12 +916,6 @@ packages: engines: {node: '>=0.8'} dev: true - /color-convert@1.9.1: - resolution: {integrity: sha512-mjGanIiwQJskCC18rPR6OmrZ6fm2Lc7PeGFYwCmy5J34wC6F1PzdGL6xeMfmgicfYcNLGuVFA3WzXtIDCQSZxQ==} - dependencies: - color-name: 1.1.4 - dev: true - /color-convert@2.0.1: resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} engines: {node: '>=7.0.0'} @@ -1022,8 +991,8 @@ packages: which: 1.3.1 dev: true - /cross-spawn@7.0.3: - resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==} + /cross-spawn@7.0.5: + resolution: {integrity: sha512-ZVJrKKYunU38/76t0RMOulHOnUcbU9GbpWKAOZ0mhjr7CX6FVrH+4FrAapSOekrgFQ3f/8gwMEuIft0aKq6Hug==} engines: {node: '>= 8'} dependencies: path-key: 3.1.1 @@ -1097,8 +1066,8 @@ packages: ms: 2.1.1 dev: true - /debug@4.3.6(supports-color@8.1.1): - resolution: {integrity: sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==} + /debug@4.3.7(supports-color@8.1.1): + resolution: {integrity: sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==} engines: {node: '>=6.0'} peerDependencies: supports-color: '*' @@ -1106,7 +1075,7 @@ packages: supports-color: optional: true dependencies: - ms: 2.1.2 + ms: 2.1.3 supports-color: 8.1.1 dev: true @@ -1143,7 +1112,7 @@ packages: object-is: 1.1.6 object-keys: 1.1.1 object.assign: 4.1.5 - regexp.prototype.flags: 1.5.2 + regexp.prototype.flags: 1.5.3 side-channel: 1.0.6 which-boxed-primitive: 1.0.2 which-collection: 1.0.2 @@ -1270,10 +1239,10 @@ packages: is-string: 1.0.7 is-typed-array: 1.1.13 is-weakref: 1.0.2 - object-inspect: 1.13.2 + object-inspect: 1.13.3 object-keys: 1.1.1 object.assign: 4.1.5 - regexp.prototype.flags: 1.5.2 + regexp.prototype.flags: 1.5.3 safe-array-concat: 1.1.2 safe-regex-test: 1.0.3 string.prototype.trim: 1.2.9 @@ -1379,16 +1348,16 @@ packages: engines: {node: '>=10'} dev: true - /eslint-config-prettier@3.6.0(eslint@8.57.0): + /eslint-config-prettier@3.6.0(eslint@8.57.1): resolution: {integrity: sha512-ixJ4U3uTLXwJts4rmSVW/lMXjlGwCijhBJHk8iVqKKSifeI0qgFEfWl8L63isfc8Od7EiBALF6BX3jKLluf/jQ==} peerDependencies: eslint: '>=3.14.1' dependencies: - eslint: 8.57.0 + eslint: 8.57.1 get-stdin: 6.0.0 dev: true - /eslint-plugin-flowtype@8.0.3(@babel/plugin-syntax-flow@7.24.7)(@babel/plugin-transform-react-jsx@7.25.2)(eslint@8.57.0): + /eslint-plugin-flowtype@8.0.3(@babel/plugin-syntax-flow@7.26.0)(@babel/plugin-transform-react-jsx@7.25.9)(eslint@8.57.1): resolution: {integrity: sha512-dX8l6qUL6O+fYPtpNRideCFSpmWOUVx5QcaGLVqe/vlDiBSe4vYljDWDETwnyFzpl7By/WVIu6rcrniCgH9BqQ==} engines: {node: '>=12.0.0'} peerDependencies: @@ -1396,9 +1365,9 @@ packages: '@babel/plugin-transform-react-jsx': ^7.14.9 eslint: ^8.1.0 dependencies: - '@babel/plugin-syntax-flow': 7.24.7(@babel/core@7.4.3) - '@babel/plugin-transform-react-jsx': 7.25.2(@babel/core@7.4.3) - eslint: 8.57.0 + '@babel/plugin-syntax-flow': 7.26.0(@babel/core@7.4.3) + '@babel/plugin-transform-react-jsx': 7.25.9(@babel/core@7.4.3) + eslint: 8.57.1 lodash: 4.17.21 string-natural-compare: 3.0.1 dev: true @@ -1408,7 +1377,7 @@ packages: engines: {node: '>=5.0.0'} dev: true - /eslint-plugin-react@7.35.0(eslint@8.57.0): + /eslint-plugin-react@7.35.0(eslint@8.57.1): resolution: {integrity: sha512-v501SSMOWv8gerHkk+IIQBkcGRGrO2nfybfj5pLxuJNFTPxxA3PSryhXTK+9pNbtkggheDdsC0E9Q8CuPk6JKA==} engines: {node: '>=4'} peerDependencies: @@ -1420,7 +1389,7 @@ packages: array.prototype.tosorted: 1.1.4 doctrine: 2.1.0 es-iterator-helpers: 1.0.19 - eslint: 8.57.0 + eslint: 8.57.1 estraverse: 5.3.0 hasown: 2.0.2 jsx-ast-utils: 3.3.5 @@ -1448,23 +1417,24 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /eslint@8.57.0: - resolution: {integrity: sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==} + /eslint@8.57.1: + resolution: {integrity: sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options. hasBin: true dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) - '@eslint-community/regexpp': 4.11.0 + '@eslint-community/eslint-utils': 4.4.1(eslint@8.57.1) + '@eslint-community/regexpp': 4.12.1 '@eslint/eslintrc': 2.1.4 - '@eslint/js': 8.57.0 - '@humanwhocodes/config-array': 0.11.14 + '@eslint/js': 8.57.1 + '@humanwhocodes/config-array': 0.13.0 '@humanwhocodes/module-importer': 1.0.1 '@nodelib/fs.walk': 1.2.8 '@ungap/structured-clone': 1.2.0 ajv: 6.12.6 chalk: 4.1.2 - cross-spawn: 7.0.3 - debug: 4.3.6(supports-color@8.1.1) + cross-spawn: 7.0.5 + debug: 4.3.7(supports-color@8.1.1) doctrine: 3.0.0 escape-string-regexp: 4.0.0 eslint-scope: 7.2.2 @@ -1499,8 +1469,8 @@ packages: resolution: {integrity: sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: - acorn: 8.12.1 - acorn-jsx: 5.3.2(acorn@8.12.1) + acorn: 8.14.0 + acorn-jsx: 5.3.2(acorn@8.14.0) eslint-visitor-keys: 3.4.3 dev: true @@ -1690,8 +1660,8 @@ packages: is-callable: 1.1.4 dev: true - /form-data@4.0.0: - resolution: {integrity: sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==} + /form-data@4.0.1: + resolution: {integrity: sha512-tzN8e4TX8+kkxGPK8D5u0FNmjPUjw3lwC9lSLxxoB/+GtsJG91CO8bSWy73APlgAZzZbXEYZJuxjkHH2w+Ezhw==} engines: {node: '>= 6'} dependencies: asynckit: 0.4.0 @@ -1914,11 +1884,6 @@ packages: resolution: {integrity: sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==} dev: true - /has-flag@3.0.0: - resolution: {integrity: sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==} - engines: {node: '>=4'} - dev: true - /has-flag@4.0.0: resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} engines: {node: '>=8'} @@ -2430,13 +2395,13 @@ packages: data-urls: 4.0.0 decimal.js: 10.4.3 domexception: 4.0.0 - form-data: 4.0.0 + form-data: 4.0.1 html-encoding-sniffer: 3.0.0 http-proxy-agent: 5.0.0 https-proxy-agent: 5.0.1 is-potential-custom-element-name: 1.0.1 - nwsapi: 2.2.12 - parse5: 7.1.2 + nwsapi: 2.2.13 + parse5: 7.2.1 rrweb-cssom: 0.6.0 saxes: 6.0.0 symbol-tree: 3.2.4 @@ -2460,6 +2425,12 @@ packages: hasBin: true dev: true + /jsesc@3.0.2: + resolution: {integrity: sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g==} + engines: {node: '>=6'} + hasBin: true + dev: true + /json-buffer@3.0.1: resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==} dev: true @@ -2659,15 +2630,15 @@ packages: minimist: 0.0.8 dev: true - /mocha@10.7.3: - resolution: {integrity: sha512-uQWxAu44wwiACGqjbPYmjo7Lg8sFrS3dQe7PP2FQI+woptP4vZXSMcfMyFL/e1yFEeEpV4RtyTpZROOKmxis+A==} + /mocha@10.8.2: + resolution: {integrity: sha512-VZlYo/WE8t1tstuRmqgeyBgCbJc/lEdopaa+axcKzTBJ+UIdlAB9XnmvTCAH4pwR4ElNInaedhEBmZD8iCSVEg==} engines: {node: '>= 14.0.0'} hasBin: true dependencies: ansi-colors: 4.1.3 browser-stdout: 1.3.1 chokidar: 3.6.0 - debug: 4.3.6(supports-color@8.1.1) + debug: 4.3.7(supports-color@8.1.1) diff: 5.2.0 escape-string-regexp: 4.0.0 find-up: 5.0.0 @@ -2690,10 +2661,6 @@ packages: resolution: {integrity: sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==} dev: true - /ms@2.1.2: - resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==} - dev: true - /ms@2.1.3: resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} dev: true @@ -2713,7 +2680,7 @@ packages: '@sinonjs/fake-timers': 11.3.1 '@sinonjs/text-encoding': 0.7.3 just-extend: 6.2.0 - path-to-regexp: 6.2.2 + path-to-regexp: 6.3.0 dev: true /normalize-path@3.0.0: @@ -2731,16 +2698,16 @@ packages: sort-keys: 1.1.2 dev: true - /nwsapi@2.2.12: - resolution: {integrity: sha512-qXDmcVlZV4XRtKFzddidpfVP4oMSGhga+xdMc25mv8kaLUHtgzCDhUxkrN8exkGdTlLNaXj7CV3GtON7zuGZ+w==} + /nwsapi@2.2.13: + resolution: {integrity: sha512-cTGB9ptp9dY9A5VbMSe7fQBcl/tt22Vcqdq8+eN93rblOuE0aCFu4aZ2vMwct/2t+lFnosm8RkQW1I0Omb1UtQ==} dev: true /object-assign@4.1.1: resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==} engines: {node: '>=0.10.0'} - /object-inspect@1.13.2: - resolution: {integrity: sha512-IRZSRuzJiynemAXPYtPe5BoI/RESNYR7TYm50MC5Mqbd3Jmw5y790sErYw3V6SryFJD64b74qQQs9wn5Bg/k3g==} + /object-inspect@1.13.3: + resolution: {integrity: sha512-kDCGIbxkDSXE3euJZZXzc6to7fCrKHNI/hSRQnRuQ+BWjFNzZwiFF8fj/6o2t2G9/jTj8PSIYTfCLelLZEeRpA==} engines: {node: '>= 0.4'} dev: true @@ -2868,8 +2835,8 @@ packages: engines: {node: '>=0.10.0'} dev: true - /parse5@7.1.2: - resolution: {integrity: sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==} + /parse5@7.2.1: + resolution: {integrity: sha512-BuBYQYlv1ckiPdQi/ohiivi9Sagc9JG+Ozs0r7b/0iK3sKmrb0b9FdWdBbOdx6hBCM/F9Ir82ofnBhtZOjCRPQ==} dependencies: entities: 4.5.0 dev: true @@ -2907,16 +2874,16 @@ packages: resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} dev: true - /path-to-regexp@6.2.2: - resolution: {integrity: sha512-GQX3SSMokngb36+whdpRXE+3f9V8UzyAorlYvOGx87ufGHehNTn5lCxrKtLyZ4Yl/wEKnNnr98ZzOwwDZV5ogw==} + /path-to-regexp@6.3.0: + resolution: {integrity: sha512-Yhpw4T9C6hPpgPeA28us07OJeqZ5EzQTkbfwuhsUg0c237RomFoETJgmp2sa3F/41gfLE6G5cqcYwznmeEeOlQ==} dev: true /pathval@1.1.1: resolution: {integrity: sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==} dev: true - /picocolors@1.0.1: - resolution: {integrity: sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==} + /picocolors@1.1.1: + resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} dev: true /picomatch@2.3.1: @@ -2992,8 +2959,10 @@ packages: react-is: 16.13.1 dev: true - /psl@1.9.0: - resolution: {integrity: sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==} + /psl@1.10.0: + resolution: {integrity: sha512-KSKHEbjAnpUuAUserOq0FxGXCUrzC3WniuSJhvdbs102rL55266ZcHBqLWOsG30spQMlPdpy7icATiAQehg/iA==} + dependencies: + punycode: 2.3.1 dev: true /punycode@2.1.1: @@ -3092,8 +3061,8 @@ packages: /regenerator-runtime@0.14.1: resolution: {integrity: sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==} - /regexp.prototype.flags@1.5.2: - resolution: {integrity: sha512-NcDiDkTLuPR+++OCKB0nWafEmhg/Da8aUPLPMQbK+bxKKCm1/S5he+AqYa4PlMCVBalb4/yxIRub6qkEx5yJbw==} + /regexp.prototype.flags@1.5.3: + resolution: {integrity: sha512-vqlC04+RQoFalODCbCumG2xIOvapzVMHwsyIGM/SIE8fRhFFsXeH8/QQ+s0T0kDAhKc4k30s73/0ydkHQz6HlQ==} engines: {node: '>= 0.4'} dependencies: call-bind: 1.0.7 @@ -3298,7 +3267,7 @@ packages: call-bind: 1.0.7 es-errors: 1.3.0 get-intrinsic: 1.2.4 - object-inspect: 1.13.2 + object-inspect: 1.13.3 dev: true /sinon@14.0.0: @@ -3362,7 +3331,7 @@ packages: gopd: 1.0.1 has-symbols: 1.0.3 internal-slot: 1.0.7 - regexp.prototype.flags: 1.5.2 + regexp.prototype.flags: 1.5.3 set-function-name: 2.0.2 side-channel: 1.0.6 dev: true @@ -3449,13 +3418,6 @@ packages: engines: {node: '>=0.10.0'} dev: true - /supports-color@5.5.0: - resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==} - engines: {node: '>=4'} - dependencies: - has-flag: 3.0.0 - dev: true - /supports-color@7.2.0: resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} engines: {node: '>=8'} @@ -3527,7 +3489,7 @@ packages: resolution: {integrity: sha512-Loo5UUvLD9ScZ6jh8beX1T6sO1w2/MpCRpEP7V280GKMVUQ0Jzar2U3UJPsrdbziLEMMhu3Ujnq//rhiFuIeag==} engines: {node: '>=6'} dependencies: - psl: 1.9.0 + psl: 1.10.0 punycode: 2.1.1 universalify: 0.2.0 url-parse: 1.5.10 diff --git a/fixtures/react-view-slider/init-snapshot/toolchain.config.cjs b/fixtures/react-view-slider/init-snapshot/toolchain.config.cjs index 4920a81..c2b884d 100644 --- a/fixtures/react-view-slider/init-snapshot/toolchain.config.cjs +++ b/fixtures/react-view-slider/init-snapshot/toolchain.config.cjs @@ -1,6 +1,6 @@ /* eslint-env node, es2018 */ module.exports = { - cjsBabelEnv: { forceAllTransforms: true }, + cjsBabelEnv: { targets: { node: 16 } }, esmBabelEnv: { targets: { node: 16 } }, // outputEsm: false, // disables ESM output (default: true) buildIgnore: [], diff --git a/packages/esnext/plugins/getConfigFiles.cjs b/packages/esnext/plugins/getConfigFiles.cjs index abb6793..26ed468 100644 --- a/packages/esnext/plugins/getConfigFiles.cjs +++ b/packages/esnext/plugins/getConfigFiles.cjs @@ -16,7 +16,7 @@ module.exports = [ return dedent` /* eslint-env node, es2018 */ module.exports = { - cjsBabelEnv: { forceAllTransforms: true }, + cjsBabelEnv: { targets: { node: 16 } }, ${outputEsm ? '' : '// '}esmBabelEnv: { targets: { node: 16 } }, ${ outputEsm ? '// ' : ''