From 981116f8abaffaeb45b71b29687e52a2c3688caa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Gu=C3=A9rout?= Date: Thu, 23 Nov 2023 10:30:54 +0100 Subject: [PATCH 01/12] Use ESM imports --- .eslintrc | 18 +- .../create-per-distribution-package-json.sh | 17 + README.md | 69 +- index.js | 15 - index.mjs | 33 + lib/{accumulateData.js => accumulateData.mjs} | 6 +- lib/compose.js | 9 - lib/compose.mjs | 7 + lib/{concatStreams.js => concatStreams.mjs} | 8 +- lib/filterData.js | 7 - lib/filterData.mjs | 5 + lib/{flattenArray.js => flattenArray.mjs} | 6 +- lib/{groupData.js => groupData.mjs} | 8 +- lib/{mergeStreams.js => mergeStreams.mjs} | 10 +- lib/{oleoduc.js => oleoduc.mjs} | 14 +- lib/{readLineByLine.js => readLineByLine.mjs} | 10 +- lib/{transformData.js => transformData.mjs} | 6 +- ...ansformIntoCSV.js => transformIntoCSV.mjs} | 6 +- ...sformIntoJSON.js => transformIntoJSON.mjs} | 6 +- ...transformStream.js => transformStream.mjs} | 6 +- lib/utils/{Duplexer.js => Duplexer.mjs} | 6 +- lib/utils/decorateWithAsyncIterator.js | 7 - lib/utils/decorateWithAsyncIterator.mjs | 5 + ...WithPromise.js => decorateWithPromise.mjs} | 4 +- lib/utils/{parseArgs.js => parseArgs.mjs} | 4 +- ...toAsyncIterator.js => toAsyncIterator.mjs} | 6 +- lib/{writeData.js => writeData.mjs} | 10 +- lib/{writeToStdout.js => writeToStdout.mjs} | 6 +- package-lock.json | 4110 ++++++++++++----- package.json | 18 +- rollup.cjs.config.mjs | 11 + rollup.config.mjs | 11 - rollup.mjs.config.mjs | 8 + ...teData-test.js => accumulateData-test.mjs} | 6 +- test/{compose-test.js => compose-test.mjs} | 9 +- ...Streams-test.js => concatStreams-test.mjs} | 7 +- ...lterData-tests.js => filterData-tests.mjs} | 6 +- ...tenArray-test.js => flattenArray-test.mjs} | 8 +- .../{groupData-test.js => groupData-test.mjs} | 6 +- ...eStreams-test.js => mergeStreams-test.mjs} | 6 +- test/{oleoduc-test.js => oleoduc-test.mjs} | 7 +- test/{parallel-test.js => parallel-test.mjs} | 8 +- test/{pipeline-test.js => pipeline-test.mjs} | 11 +- ...ByLine-test.js => readLineByLine-test.mjs} | 6 +- test/{testUtils.js => testUtils.mjs} | 14 +- ...rator-test.js => toAsyncIterator-test.mjs} | 8 +- ...ormData-test.js => transformData-test.mjs} | 6 +- ...oCSV-test.js => transformIntoCSV-test.mjs} | 7 +- ...SON-test.js => transformIntoJSON-test.mjs} | 6 +- ...tream-test.js => transformStream-test.mjs} | 10 +- .../{writeData-test.js => writeData-test.mjs} | 6 +- ...oStdout-test.js => writeToStdout-test.mjs} | 4 +- 52 files changed, 3291 insertions(+), 1322 deletions(-) create mode 100644 .tools/create-per-distribution-package-json.sh delete mode 100644 index.js create mode 100644 index.mjs rename lib/{accumulateData.js => accumulateData.mjs} (82%) delete mode 100644 lib/compose.js create mode 100644 lib/compose.mjs rename lib/{concatStreams.js => concatStreams.mjs} (82%) delete mode 100644 lib/filterData.js create mode 100644 lib/filterData.mjs rename lib/{flattenArray.js => flattenArray.mjs} (90%) rename lib/{groupData.js => groupData.mjs} (78%) rename lib/{mergeStreams.js => mergeStreams.mjs} (72%) rename lib/{oleoduc.js => oleoduc.mjs} (81%) rename lib/{readLineByLine.js => readLineByLine.mjs} (66%) rename lib/{transformData.js => transformData.mjs} (76%) rename lib/{transformIntoCSV.js => transformIntoCSV.mjs} (89%) rename lib/{transformIntoJSON.js => transformIntoJSON.mjs} (91%) rename lib/{transformStream.js => transformStream.mjs} (88%) rename lib/utils/{Duplexer.js => Duplexer.mjs} (85%) delete mode 100644 lib/utils/decorateWithAsyncIterator.js create mode 100644 lib/utils/decorateWithAsyncIterator.mjs rename lib/utils/{decorateWithPromise.js => decorateWithPromise.mjs} (81%) rename lib/utils/{parseArgs.js => parseArgs.mjs} (81%) rename lib/utils/{toAsyncIterator.js => toAsyncIterator.mjs} (85%) rename lib/{writeData.js => writeData.mjs} (92%) rename lib/{writeToStdout.js => writeToStdout.mjs} (73%) create mode 100644 rollup.cjs.config.mjs delete mode 100644 rollup.config.mjs create mode 100644 rollup.mjs.config.mjs rename test/{accumulateData-test.js => accumulateData-test.mjs} (92%) rename test/{compose-test.js => compose-test.mjs} (94%) rename test/{concatStreams-test.js => concatStreams-test.mjs} (91%) rename test/{filterData-tests.js => filterData-tests.mjs} (93%) rename test/{flattenArray-test.js => flattenArray-test.mjs} (86%) rename test/{groupData-test.js => groupData-test.mjs} (87%) rename test/{mergeStreams-test.js => mergeStreams-test.mjs} (83%) rename test/{oleoduc-test.js => oleoduc-test.mjs} (95%) rename test/{parallel-test.js => parallel-test.mjs} (95%) rename test/{pipeline-test.js => pipeline-test.mjs} (87%) rename test/{readLineByLine-test.js => readLineByLine-test.mjs} (92%) rename test/{testUtils.js => testUtils.mjs} (62%) rename test/{toAsyncIterator-test.js => toAsyncIterator-test.mjs} (82%) rename test/{transformData-test.js => transformData-test.mjs} (93%) rename test/{transformIntoCSV-test.js => transformIntoCSV-test.mjs} (95%) rename test/{transformIntoJSON-test.js => transformIntoJSON-test.mjs} (95%) rename test/{transformStream-test.js => transformStream-test.mjs} (87%) rename test/{writeData-test.js => writeData-test.mjs} (94%) rename test/{writeToStdout-test.js => writeToStdout-test.mjs} (78%) diff --git a/.eslintrc b/.eslintrc index 73f5ea8..ea68209 100644 --- a/.eslintrc +++ b/.eslintrc @@ -14,10 +14,24 @@ "mocha": true }, "plugins": [ - "mocha" + "mocha", + "import" ], "rules": { + "import/extensions": [ + "error", + "always" + ], "mocha/no-skipped-tests": "error", - "mocha/no-exclusive-tests": "error" + "mocha/no-exclusive-tests": "error", + "node/no-unpublished-import": [ + "error", + { + "allowModules": [ + "slow-stream", + "@rollup/plugin-commonjs" + ] + } + ] } } diff --git a/.tools/create-per-distribution-package-json.sh b/.tools/create-per-distribution-package-json.sh new file mode 100644 index 0000000..fc3f32b --- /dev/null +++ b/.tools/create-per-distribution-package-json.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env bash +set -euo pipefail + +readonly PROJECT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/.." + +cat >"${PROJECT_DIR}/dist/cjs/package.json" <"${PROJECT_DIR}/dist/mjs/package.json" < `"${v || ''}"`,//Values will be enclosed in double quotes + columns: { + fullname: (data) => `${data.firstName} ${data.lastName}`, + date: () => new Date().toISOString(), + }, + }), + createWriteStream("/path/to/file") +); + +// --> Output CSV file +` +fullname|date +John Doe|2021-03-12T21:34:13.085Z +Robert Hue|2021-03-12T21:34:13.085Z +` +``` + ## transformIntoJSON([options]) Allows data to be streamed as if it were a json string @@ -582,7 +612,6 @@ await oleoduc( // Json Output '[{ user: "John Doe" }, { user: "Robert Hue" }]' - ``` Stream data as if it where a json object with an array property inside @@ -603,36 +632,6 @@ await oleoduc( '{ other: "data", users: [{ user: "John Doe" }, { user: "Robert Hue" }] }' ``` -Stream data as if it where a csv with options - -```js -const { oleoduc, transformIntoCSV } = require("oleoduc"); -const { Readable } = require("stream"); -const { createWriteStream } = require("fs"); - -const source = Readable.from([{ firstname: "John", lastname: "Doe" }, { firstname: "Robert", lastname: "Hue" }]); - -await oleoduc( - source, - transformIntoCSV({ - sepatator: "|", - mapper: (v) => `"${v || ''}"`,//Values will be enclosed in double quotes - columns: { - fullname: (data) => `${data.firstName} ${data.lastName}`, - date: () => new Date().toISOString(), - }, - }), - createWriteStream("/path/to/file") -); - -// --> Output CSV file -` -fullname|date -John Doe|2021-03-12T21:34:13.085Z -Robert Hue|2021-03-12T21:34:13.085Z -` -``` - ## transformStream([options]) Allows chunks of a sub-stream to be streamed as if each was part of the source diff --git a/index.js b/index.js deleted file mode 100644 index 1aa61c7..0000000 --- a/index.js +++ /dev/null @@ -1,15 +0,0 @@ -module.exports.oleoduc = require("./lib/oleoduc.js").oleoduc; -module.exports.compose = require("./lib/compose.js").compose; -module.exports.transformData = require("./lib/transformData.js").transformData; -module.exports.transformIntoJSON = require("./lib/transformIntoJSON.js").transformIntoJSON; -module.exports.transformIntoCSV = require("./lib/transformIntoCSV.js").transformIntoCSV; -module.exports.transformStream = require("./lib/transformStream.js").transformStream; -module.exports.filterData = require("./lib/filterData.js").filterData; -module.exports.accumulateData = require("./lib/accumulateData.js").accumulateData; -module.exports.groupData = require("./lib/groupData.js").groupData; -module.exports.readLineByLine = require("./lib/readLineByLine.js").readLineByLine; -module.exports.flattenArray = require("./lib/flattenArray.js").flattenArray; -module.exports.mergeStreams = require("./lib/mergeStreams.js").mergeStreams; -module.exports.concatStreams = require("./lib/concatStreams.js").concatStreams; -module.exports.writeData = require("./lib/writeData.js").writeData; -module.exports.writeToStdout = require("./lib/writeToStdout.js").writeToStdout; diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..a7b2263 --- /dev/null +++ b/index.mjs @@ -0,0 +1,33 @@ +import { oleoduc } from "./lib/oleoduc.mjs"; +import { compose } from "./lib/compose.mjs"; +import { transformData } from "./lib/transformData.mjs"; +import { transformIntoJSON } from "./lib/transformIntoJSON.mjs"; +import { transformIntoCSV } from "./lib/transformIntoCSV.mjs"; +import { transformStream } from "./lib/transformStream.mjs"; +import { filterData } from "./lib/filterData.mjs"; +import { accumulateData } from "./lib/accumulateData.mjs"; +import { groupData } from "./lib/groupData.mjs"; +import { readLineByLine } from "./lib/readLineByLine.mjs"; +import { flattenArray } from "./lib/flattenArray.mjs"; +import { mergeStreams } from "./lib/mergeStreams.mjs"; +import { concatStreams } from "./lib/concatStreams.mjs"; +import { writeData } from "./lib/writeData.mjs"; +import { writeToStdout } from "./lib/writeToStdout.mjs"; + +export { + oleoduc, + compose, + transformData, + transformIntoJSON, + transformIntoCSV, + transformStream, + filterData, + accumulateData, + groupData, + readLineByLine, + flattenArray, + mergeStreams, + concatStreams, + writeData, + writeToStdout, +}; diff --git a/lib/accumulateData.js b/lib/accumulateData.mjs similarity index 82% rename from lib/accumulateData.js rename to lib/accumulateData.mjs index 954ed7b..8c88a22 100644 --- a/lib/accumulateData.js +++ b/lib/accumulateData.mjs @@ -1,6 +1,6 @@ -const { Transform } = require("stream"); +import { Transform } from "stream"; -function accumulateData(accumulate, options = {}) { +export function accumulateData(accumulate, options = {}) { const { accumulator, ...rest } = options; let acc = accumulator === undefined ? null : accumulator; let flushed = false; @@ -31,5 +31,3 @@ function accumulateData(accumulate, options = {}) { }, }); } - -module.exports = { accumulateData }; diff --git a/lib/compose.js b/lib/compose.js deleted file mode 100644 index d18585b..0000000 --- a/lib/compose.js +++ /dev/null @@ -1,9 +0,0 @@ -const { oleoduc } = require("./oleoduc"); -const { parseArgs } = require("./utils/parseArgs"); - -function compose(...args) { - const { streams, options } = parseArgs(args, { promisify: false }); - return oleoduc(streams, options); -} - -module.exports = { compose }; diff --git a/lib/compose.mjs b/lib/compose.mjs new file mode 100644 index 0000000..f355595 --- /dev/null +++ b/lib/compose.mjs @@ -0,0 +1,7 @@ +import { oleoduc } from "./oleoduc.mjs"; +import { parseArgs } from "./utils/parseArgs.mjs"; + +export function compose(...args) { + const { streams, options } = parseArgs(args, { promisify: false }); + return oleoduc(streams, options); +} diff --git a/lib/concatStreams.js b/lib/concatStreams.mjs similarity index 82% rename from lib/concatStreams.js rename to lib/concatStreams.mjs index c740a84..e06a2bc 100644 --- a/lib/concatStreams.js +++ b/lib/concatStreams.mjs @@ -1,5 +1,5 @@ -const { PassThrough } = require("stream"); -const { parseArgs } = require("./utils/parseArgs"); +import { PassThrough } from "stream"; +import { parseArgs } from "./utils/parseArgs.mjs"; class ArrayCursor { constructor(array) { @@ -16,7 +16,7 @@ function isFunction(streams) { return streams.length === 1 && typeof streams[0] === "function"; } -function concatStreams(...args) { +export function concatStreams(...args) { const { streams, options } = parseArgs(args); const cursor = isFunction(streams) ? { next: streams[0] } : new ArrayCursor(streams); const passThrough = new PassThrough({ objectMode: true, ...options }); @@ -37,5 +37,3 @@ function concatStreams(...args) { return passThrough; } - -module.exports = { concatStreams }; diff --git a/lib/filterData.js b/lib/filterData.js deleted file mode 100644 index 67519cd..0000000 --- a/lib/filterData.js +++ /dev/null @@ -1,7 +0,0 @@ -const { transformData } = require("./transformData"); - -function filterData(filter, options = {}) { - return transformData((data) => data, { ...options, filter }); -} - -module.exports = { filterData }; diff --git a/lib/filterData.mjs b/lib/filterData.mjs new file mode 100644 index 0000000..acd07b6 --- /dev/null +++ b/lib/filterData.mjs @@ -0,0 +1,5 @@ +import { transformData } from "./transformData.mjs"; + +export function filterData(filter, options = {}) { + return transformData((data) => data, { ...options, filter }); +} diff --git a/lib/flattenArray.js b/lib/flattenArray.mjs similarity index 90% rename from lib/flattenArray.js rename to lib/flattenArray.mjs index 053adf1..845c3bf 100644 --- a/lib/flattenArray.js +++ b/lib/flattenArray.mjs @@ -1,4 +1,4 @@ -const { Transform } = require("stream"); +import { Transform } from "stream"; /** * Inspired by https://stackoverflow.com/a/43811543/122975 @@ -38,8 +38,6 @@ class TransformArray extends Transform { } } -function flattenArray(options = {}) { +export function flattenArray(options = {}) { return new TransformArray({ objectMode: true, ...options }); } - -module.exports = { flattenArray }; diff --git a/lib/groupData.js b/lib/groupData.mjs similarity index 78% rename from lib/groupData.js rename to lib/groupData.mjs index afd98b6..0bb93a9 100644 --- a/lib/groupData.js +++ b/lib/groupData.mjs @@ -1,5 +1,5 @@ -const { compose } = require("./compose"); -const { accumulateData } = require("./accumulateData"); +import { compose } from "./compose.mjs"; +import { accumulateData } from "./accumulateData.mjs"; function parseOptionalArgs(...args) { const options = { @@ -14,7 +14,7 @@ function parseOptionalArgs(...args) { }; } -function groupData(...args) { +export function groupData(...args) { const { shouldFlush, options } = parseOptionalArgs(...args); return compose( @@ -29,5 +29,3 @@ function groupData(...args) { }, options) ); } - -module.exports = { groupData }; diff --git a/lib/mergeStreams.js b/lib/mergeStreams.mjs similarity index 72% rename from lib/mergeStreams.js rename to lib/mergeStreams.mjs index fefceb8..2da9f0c 100644 --- a/lib/mergeStreams.js +++ b/lib/mergeStreams.mjs @@ -1,8 +1,8 @@ -const { PassThrough } = require("stream"); -const { decorateWithAsyncIterator } = require("./utils/decorateWithAsyncIterator"); -const { parseArgs } = require("./utils/parseArgs"); +import { PassThrough } from "stream"; +import { decorateWithAsyncIterator } from "./utils/decorateWithAsyncIterator.mjs"; +import { parseArgs } from "./utils/parseArgs.mjs"; -function mergeStreams(...args) { +export function mergeStreams(...args) { const { streams, options } = parseArgs(args); const last = streams[streams.length - 1]; const passThrough = new PassThrough(options); @@ -29,5 +29,3 @@ function mergeStreams(...args) { return passThrough; } - -module.exports = { mergeStreams }; diff --git a/lib/oleoduc.js b/lib/oleoduc.mjs similarity index 81% rename from lib/oleoduc.js rename to lib/oleoduc.mjs index 66d559a..d876eca 100644 --- a/lib/oleoduc.js +++ b/lib/oleoduc.mjs @@ -1,8 +1,8 @@ -const { PassThrough } = require("stream"); -const { decorateWithPromise } = require("./utils/decorateWithPromise"); -const { decorateWithAsyncIterator } = require("./utils/decorateWithAsyncIterator"); -const { parseArgs } = require("./utils/parseArgs"); -const { Duplexer } = require("./utils/Duplexer"); +import { PassThrough } from "stream"; +import { decorateWithPromise } from "./utils/decorateWithPromise.mjs"; +import { decorateWithAsyncIterator } from "./utils/decorateWithAsyncIterator.mjs"; +import { parseArgs } from "./utils/parseArgs.mjs"; +import { Duplexer } from "./utils/Duplexer.mjs"; function pipeStreamsTogether(streams, wrapper) { for (const [i, stream] of streams.entries()) { @@ -34,7 +34,7 @@ function getWrapper(first, last, options = {}) { return wrapper; } -function oleoduc(...args) { +export function oleoduc(...args) { const { streams, options: { promisify, ...rest }, @@ -70,5 +70,3 @@ function oleoduc(...args) { return wrapper; } - -module.exports = { oleoduc }; diff --git a/lib/readLineByLine.js b/lib/readLineByLine.mjs similarity index 66% rename from lib/readLineByLine.js rename to lib/readLineByLine.mjs index 3b29955..0d8d0c0 100644 --- a/lib/readLineByLine.js +++ b/lib/readLineByLine.mjs @@ -1,8 +1,8 @@ -const { accumulateData } = require("./accumulateData"); -const { flattenArray } = require("./flattenArray"); -const { compose } = require("./compose"); +import { accumulateData } from "./accumulateData.mjs"; +import { flattenArray } from "./flattenArray.mjs"; +import { compose } from "./compose.mjs"; -function readLineByLine() { +export function readLineByLine() { return compose( accumulateData( (acc, data, flush) => { @@ -22,5 +22,3 @@ function readLineByLine() { flattenArray() ); } - -module.exports = { readLineByLine }; diff --git a/lib/transformData.js b/lib/transformData.mjs similarity index 76% rename from lib/transformData.js rename to lib/transformData.mjs index 388d87a..4f53dcf 100644 --- a/lib/transformData.js +++ b/lib/transformData.mjs @@ -1,6 +1,6 @@ -const transform = require("parallel-transform"); +import transform from "parallel-transform"; -function transformData(handleChunk, options = {}) { +export function transformData(handleChunk, options = {}) { const { filter, parallel, ...rest } = options; const filterChunk = (value) => !filter || filter(value); const maxParallel = parallel || 1; @@ -17,5 +17,3 @@ function transformData(handleChunk, options = {}) { } }); } - -module.exports = { transformData }; diff --git a/lib/transformIntoCSV.js b/lib/transformIntoCSV.mjs similarity index 89% rename from lib/transformIntoCSV.js rename to lib/transformIntoCSV.mjs index 9081dd6..61ddf89 100644 --- a/lib/transformIntoCSV.js +++ b/lib/transformIntoCSV.mjs @@ -1,6 +1,6 @@ -const { Transform } = require("stream"); +import { Transform } from "stream"; -function transformIntoCSV(options = {}) { +export function transformIntoCSV(options = {}) { const bom = options.bom; const separator = options.separator || ";"; const mapper = options.mapper || ((v) => v); @@ -45,5 +45,3 @@ function transformIntoCSV(options = {}) { }, }); } - -module.exports = { transformIntoCSV }; diff --git a/lib/transformIntoJSON.js b/lib/transformIntoJSON.mjs similarity index 91% rename from lib/transformIntoJSON.js rename to lib/transformIntoJSON.mjs index c3c9783..9d81b43 100644 --- a/lib/transformIntoJSON.js +++ b/lib/transformIntoJSON.mjs @@ -1,6 +1,6 @@ -const { Transform } = require("stream"); +import { Transform } from "stream"; -function transformIntoJSON(options = {}) { +export function transformIntoJSON(options = {}) { let chunksSent = 0; return new Transform({ readableObjectMode: false, @@ -49,5 +49,3 @@ function transformIntoJSON(options = {}) { }, }); } - -module.exports = { transformIntoJSON }; diff --git a/lib/transformStream.js b/lib/transformStream.mjs similarity index 88% rename from lib/transformStream.js rename to lib/transformStream.mjs index 68970cb..83d60a8 100644 --- a/lib/transformStream.js +++ b/lib/transformStream.mjs @@ -1,4 +1,4 @@ -const { Transform } = require("stream"); +import { Transform } from "stream"; class TransformStream extends Transform { constructor(handleChunk, options) { @@ -39,8 +39,6 @@ class TransformStream extends Transform { } } -function transformStream(handleChunk, options = {}) { +export function transformStream(handleChunk, options = {}) { return new TransformStream(handleChunk, { objectMode: true, ...options }); } - -module.exports = { transformStream }; diff --git a/lib/utils/Duplexer.js b/lib/utils/Duplexer.mjs similarity index 85% rename from lib/utils/Duplexer.js rename to lib/utils/Duplexer.mjs index ed610c9..d0fe6f8 100644 --- a/lib/utils/Duplexer.js +++ b/lib/utils/Duplexer.mjs @@ -1,6 +1,6 @@ -const { Duplex } = require("stream"); +import { Duplex } from "stream"; -class Duplexer extends Duplex { +export class Duplexer extends Duplex { constructor(input, output, options) { super(options || { writableObjectMode: true, readableObjectMode: true }); this.input = input; @@ -23,5 +23,3 @@ class Duplexer extends Duplex { this.output.resume(); } } - -module.exports = { Duplexer }; diff --git a/lib/utils/decorateWithAsyncIterator.js b/lib/utils/decorateWithAsyncIterator.js deleted file mode 100644 index 9eb5424..0000000 --- a/lib/utils/decorateWithAsyncIterator.js +++ /dev/null @@ -1,7 +0,0 @@ -const { toAsyncIterator } = require("./toAsyncIterator"); - -function decorateWithAsyncIterator(stream) { - stream[Symbol.asyncIterator] = () => toAsyncIterator(stream); -} - -module.exports = { decorateWithAsyncIterator }; diff --git a/lib/utils/decorateWithAsyncIterator.mjs b/lib/utils/decorateWithAsyncIterator.mjs new file mode 100644 index 0000000..fd39e4f --- /dev/null +++ b/lib/utils/decorateWithAsyncIterator.mjs @@ -0,0 +1,5 @@ +import { toAsyncIterator } from "./toAsyncIterator.mjs"; + +export function decorateWithAsyncIterator(stream) { + stream[Symbol.asyncIterator] = () => toAsyncIterator(stream); +} diff --git a/lib/utils/decorateWithPromise.js b/lib/utils/decorateWithPromise.mjs similarity index 81% rename from lib/utils/decorateWithPromise.js rename to lib/utils/decorateWithPromise.mjs index a7c0c31..f68d315 100644 --- a/lib/utils/decorateWithPromise.js +++ b/lib/utils/decorateWithPromise.mjs @@ -1,4 +1,4 @@ -function decorateWithPromise(stream, promise) { +export function decorateWithPromise(stream, promise) { const descriptors = ["then", "catch", "finally"].map((property) => { return [property, Reflect.getOwnPropertyDescriptor(Promise.prototype, property)]; }); @@ -9,5 +9,3 @@ function decorateWithPromise(stream, promise) { } return stream; } - -module.exports = { decorateWithPromise }; diff --git a/lib/utils/parseArgs.js b/lib/utils/parseArgs.mjs similarity index 81% rename from lib/utils/parseArgs.js rename to lib/utils/parseArgs.mjs index e52a297..74e1440 100644 --- a/lib/utils/parseArgs.js +++ b/lib/utils/parseArgs.mjs @@ -1,4 +1,4 @@ -function parseArgs(args, defaults = {}) { +export function parseArgs(args, defaults = {}) { const last = args[args.length - 1]; const hasOption = typeof last === "object" && !Array.isArray(last) && typeof last.pipe !== "function"; const options = { @@ -12,5 +12,3 @@ function parseArgs(args, defaults = {}) { options, }; } - -module.exports = { parseArgs }; diff --git a/lib/utils/toAsyncIterator.js b/lib/utils/toAsyncIterator.mjs similarity index 85% rename from lib/utils/toAsyncIterator.js rename to lib/utils/toAsyncIterator.mjs index b6e180e..680c774 100644 --- a/lib/utils/toAsyncIterator.js +++ b/lib/utils/toAsyncIterator.mjs @@ -1,4 +1,4 @@ -const { Readable } = require("stream"); +import { Readable } from "stream"; /** * Adapted from @@ -8,7 +8,7 @@ const { Readable } = require("stream"); * @param options * @returns {AsyncGenerator<*, void, *>} */ -async function* toAsyncIterator(stream, options = {}) { +export async function* toAsyncIterator(stream, options = {}) { const chunkSize = options.chunkSize || 1; if (typeof stream.read !== "function") { stream = Readable.wrap(stream, { objectMode: true }); @@ -34,5 +34,3 @@ async function* toAsyncIterator(stream, options = {}) { await Promise.race([onEnded, onReadable]); } } - -module.exports = { toAsyncIterator }; diff --git a/lib/writeData.js b/lib/writeData.mjs similarity index 92% rename from lib/writeData.js rename to lib/writeData.mjs index f85804a..3fb378a 100644 --- a/lib/writeData.js +++ b/lib/writeData.mjs @@ -1,6 +1,6 @@ -const { Writable } = require("stream"); -const cyclist = require("cyclist"); -const { inherits } = require("util"); +import { Writable } from "stream"; +import cyclist from "cyclist"; +import { inherits } from "util"; const ParallelWrite = function (maxParallel, opts, onWrite) { if (!(this instanceof ParallelWrite)) return new ParallelWrite(maxParallel, opts, onWrite); @@ -93,7 +93,7 @@ ParallelWrite.prototype._drained = function () { return this._flushed ? !diff : diff < this._maxParallel; }; -function writeData(handleChunk, options = {}) { +export function writeData(handleChunk, options = {}) { return ParallelWrite(options.parallel || 1, { objectMode: true }, async (chunk, callback) => { try { const res = await handleChunk(chunk); @@ -103,5 +103,3 @@ function writeData(handleChunk, options = {}) { } }); } - -module.exports = { writeData }; diff --git a/lib/writeToStdout.js b/lib/writeToStdout.mjs similarity index 73% rename from lib/writeToStdout.js rename to lib/writeToStdout.mjs index 23b2da0..3fbd93d 100644 --- a/lib/writeToStdout.js +++ b/lib/writeToStdout.mjs @@ -1,6 +1,6 @@ -const { Writable } = require("stream"); +import { Writable } from "stream"; -function writeToStdout() { +export function writeToStdout() { return new Writable({ write(chunk, encoding, callback) { //write to stdout as a side effect and honor finish event @@ -9,5 +9,3 @@ function writeToStdout() { }, }); } - -module.exports = { writeToStdout }; diff --git a/package-lock.json b/package-lock.json index 638bbf5..4368219 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,24 +1,50 @@ { "name": "oleoduc", "version": "0.8.1", - "lockfileVersion": 1, + "lockfileVersion": 3, "requires": true, - "dependencies": { - "@babel/code-frame": { + "packages": { + "": { + "name": "oleoduc", + "version": "0.8.1", + "license": "Apache-2.0", + "dependencies": { + "cyclist": "1.0.1", + "parallel-transform": "1.2.0" + }, + "devDependencies": { + "@rollup/plugin-commonjs": "22.0.0", + "eslint": "7.32.0", + "eslint-config-prettier": "8.3.0", + "eslint-plugin-import": "2.29.0", + "eslint-plugin-mocha": "9.0.0", + "eslint-plugin-node": "11.1.0", + "eslint-plugin-prettier": "4.0.0", + "mocha": "10.2.0", + "nyc": "15.1.0", + "prettier": "2.6.2", + "rollup": "2.74.1", + "slow-stream": "0.0.4" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/@babel/code-frame": { "version": "7.10.1", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.1.tgz", "integrity": "sha512-IGhtTmpjGbYzcEDOw7DcQtbQSXcG9ftmAXtWTu9V936vDye4xjjekktFAtgZsWpzTj/X01jocB46mTywm/4SZw==", "dev": true, - "requires": { + "dependencies": { "@babel/highlight": "^7.10.1" } }, - "@babel/core": { + "node_modules/@babel/core": { "version": "7.10.2", "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.10.2.tgz", "integrity": "sha512-KQmV9yguEjQsXqyOUGKjS4+3K8/DlOCE2pZcq4augdQmtTy5iv5EHtmMSJ7V4c1BIPjuwtZYqYLCq9Ga+hGBRQ==", "dev": true, - "requires": { + "dependencies": { "@babel/code-frame": "^7.10.1", "@babel/generator": "^7.10.2", "@babel/helper-module-transforms": "^7.10.1", @@ -36,71 +62,79 @@ "semver": "^5.4.1", "source-map": "^0.5.0" }, - "dependencies": { - "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true - } + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/core/node_modules/semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true, + "bin": { + "semver": "bin/semver" } }, - "@babel/generator": { + "node_modules/@babel/generator": { "version": "7.10.2", "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.10.2.tgz", "integrity": "sha512-AxfBNHNu99DTMvlUPlt1h2+Hn7knPpH5ayJ8OqDWSeLld+Fi2AYBTC/IejWDM9Edcii4UzZRCsbUt0WlSDsDsA==", "dev": true, - "requires": { + "dependencies": { "@babel/types": "^7.10.2", "jsesc": "^2.5.1", "lodash": "^4.17.13", "source-map": "^0.5.0" } }, - "@babel/helper-function-name": { + "node_modules/@babel/helper-function-name": { "version": "7.10.1", "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.10.1.tgz", "integrity": "sha512-fcpumwhs3YyZ/ttd5Rz0xn0TpIwVkN7X0V38B9TWNfVF42KEkhkAAuPCQ3oXmtTRtiPJrmZ0TrfS0GKF0eMaRQ==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-get-function-arity": "^7.10.1", "@babel/template": "^7.10.1", "@babel/types": "^7.10.1" } }, - "@babel/helper-get-function-arity": { + "node_modules/@babel/helper-get-function-arity": { "version": "7.10.1", "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.10.1.tgz", "integrity": "sha512-F5qdXkYGOQUb0hpRaPoetF9AnsXknKjWMZ+wmsIRsp5ge5sFh4c3h1eH2pRTTuy9KKAA2+TTYomGXAtEL2fQEw==", "dev": true, - "requires": { + "dependencies": { "@babel/types": "^7.10.1" } }, - "@babel/helper-member-expression-to-functions": { + "node_modules/@babel/helper-member-expression-to-functions": { "version": "7.10.1", "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.10.1.tgz", "integrity": "sha512-u7XLXeM2n50gb6PWJ9hoO5oO7JFPaZtrh35t8RqKLT1jFKj9IWeD1zrcrYp1q1qiZTdEarfDWfTIP8nGsu0h5g==", "dev": true, - "requires": { + "dependencies": { "@babel/types": "^7.10.1" } }, - "@babel/helper-module-imports": { + "node_modules/@babel/helper-module-imports": { "version": "7.10.1", "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.10.1.tgz", "integrity": "sha512-SFxgwYmZ3HZPyZwJRiVNLRHWuW2OgE5k2nrVs6D9Iv4PPnXVffuEHy83Sfx/l4SqF+5kyJXjAyUmrG7tNm+qVg==", "dev": true, - "requires": { + "dependencies": { "@babel/types": "^7.10.1" } }, - "@babel/helper-module-transforms": { + "node_modules/@babel/helper-module-transforms": { "version": "7.10.1", "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.10.1.tgz", "integrity": "sha512-RLHRCAzyJe7Q7sF4oy2cB+kRnU4wDZY/H2xJFGof+M+SJEGhZsb+GFj5j1AD8NiSaVBJ+Pf0/WObiXu/zxWpFg==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-module-imports": "^7.10.1", "@babel/helper-replace-supers": "^7.10.1", "@babel/helper-simple-access": "^7.10.1", @@ -110,110 +144,117 @@ "lodash": "^4.17.13" } }, - "@babel/helper-optimise-call-expression": { + "node_modules/@babel/helper-optimise-call-expression": { "version": "7.10.1", "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.10.1.tgz", "integrity": "sha512-a0DjNS1prnBsoKx83dP2falChcs7p3i8VMzdrSbfLhuQra/2ENC4sbri34dz/rWmDADsmF1q5GbfaXydh0Jbjg==", "dev": true, - "requires": { + "dependencies": { "@babel/types": "^7.10.1" } }, - "@babel/helper-replace-supers": { + "node_modules/@babel/helper-replace-supers": { "version": "7.10.1", "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.10.1.tgz", "integrity": "sha512-SOwJzEfpuQwInzzQJGjGaiG578UYmyi2Xw668klPWV5n07B73S0a9btjLk/52Mlcxa+5AdIYqws1KyXRfMoB7A==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-member-expression-to-functions": "^7.10.1", "@babel/helper-optimise-call-expression": "^7.10.1", "@babel/traverse": "^7.10.1", "@babel/types": "^7.10.1" } }, - "@babel/helper-simple-access": { + "node_modules/@babel/helper-simple-access": { "version": "7.10.1", "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.10.1.tgz", "integrity": "sha512-VSWpWzRzn9VtgMJBIWTZ+GP107kZdQ4YplJlCmIrjoLVSi/0upixezHCDG8kpPVTBJpKfxTH01wDhh+jS2zKbw==", "dev": true, - "requires": { + "dependencies": { "@babel/template": "^7.10.1", "@babel/types": "^7.10.1" } }, - "@babel/helper-split-export-declaration": { + "node_modules/@babel/helper-split-export-declaration": { "version": "7.10.1", "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.10.1.tgz", "integrity": "sha512-UQ1LVBPrYdbchNhLwj6fetj46BcFwfS4NllJo/1aJsT+1dLTEnXJL0qHqtY7gPzF8S2fXBJamf1biAXV3X077g==", "dev": true, - "requires": { + "dependencies": { "@babel/types": "^7.10.1" } }, - "@babel/helper-validator-identifier": { + "node_modules/@babel/helper-validator-identifier": { "version": "7.10.1", "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.10.1.tgz", "integrity": "sha512-5vW/JXLALhczRCWP0PnFDMCJAchlBvM7f4uk/jXritBnIa6E1KmqmtrS3yn1LAnxFBypQ3eneLuXjsnfQsgILw==", "dev": true }, - "@babel/helpers": { + "node_modules/@babel/helpers": { "version": "7.10.1", "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.10.1.tgz", "integrity": "sha512-muQNHF+IdU6wGgkaJyhhEmI54MOZBKsFfsXFhboz1ybwJ1Kl7IHlbm2a++4jwrmY5UYsgitt5lfqo1wMFcHmyw==", "dev": true, - "requires": { + "dependencies": { "@babel/template": "^7.10.1", "@babel/traverse": "^7.10.1", "@babel/types": "^7.10.1" } }, - "@babel/highlight": { + "node_modules/@babel/highlight": { "version": "7.10.1", "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.1.tgz", "integrity": "sha512-8rMof+gVP8mxYZApLF/JgNDAkdKa+aJt3ZYxF8z6+j/hpeXL7iMsKCPHa2jNMHu/qqBwzQF4OHNoYi8dMA/rYg==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-validator-identifier": "^7.10.1", "chalk": "^2.0.0", "js-tokens": "^4.0.0" - }, + } + }, + "node_modules/@babel/highlight/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, "dependencies": { - "chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - } + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" } }, - "@babel/parser": { + "node_modules/@babel/parser": { "version": "7.10.2", "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.10.2.tgz", "integrity": "sha512-PApSXlNMJyB4JiGVhCOlzKIif+TKFTvu0aQAhnTvfP/z3vVSN6ZypH5bfUNwFXXjRQtUEBNFd2PtmCmG2Py3qQ==", - "dev": true + "dev": true, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } }, - "@babel/template": { + "node_modules/@babel/template": { "version": "7.10.1", "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.10.1.tgz", "integrity": "sha512-OQDg6SqvFSsc9A0ej6SKINWrpJiNonRIniYondK2ViKhB06i3c0s+76XUft71iqBEe9S1OKsHwPAjfHnuvnCig==", "dev": true, - "requires": { + "dependencies": { "@babel/code-frame": "^7.10.1", "@babel/parser": "^7.10.1", "@babel/types": "^7.10.1" } }, - "@babel/traverse": { + "node_modules/@babel/traverse": { "version": "7.10.1", "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.10.1.tgz", "integrity": "sha512-C/cTuXeKt85K+p08jN6vMDz8vSV0vZcI0wmQ36o6mjbuo++kPMdpOYw23W2XH04dbRt9/nMEfA4W3eR21CD+TQ==", "dev": true, - "requires": { + "dependencies": { "@babel/code-frame": "^7.10.1", "@babel/generator": "^7.10.1", "@babel/helper-function-name": "^7.10.1", @@ -223,33 +264,34 @@ "debug": "^4.1.0", "globals": "^11.1.0", "lodash": "^4.17.13" - }, - "dependencies": { - "globals": { - "version": "11.12.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", - "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", - "dev": true - } } }, - "@babel/types": { + "node_modules/@babel/traverse/node_modules/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/types": { "version": "7.10.2", "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.10.2.tgz", "integrity": "sha512-AD3AwWBSz0AWF0AkCN9VPiWrvldXq+/e3cHa4J89vo4ymjz1XwrBFFVZmkJTsQIPNk+ZVomPSXUJqq8yyjZsng==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-validator-identifier": "^7.10.1", "lodash": "^4.17.13", "to-fast-properties": "^2.0.0" } }, - "@eslint/eslintrc": { + "node_modules/@eslint/eslintrc": { "version": "0.4.3", "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.4.3.tgz", "integrity": "sha512-J6KFFz5QCYUJq3pf0mjEcCJVERbzv71PUIDczuh9JkwGEzced6CO5ADLHB1rbf/+oPBtoPfMYNOpGDzCANlbXw==", "dev": true, - "requires": { + "dependencies": { "ajv": "^6.12.4", "debug": "^4.1.1", "espree": "^7.3.0", @@ -259,92 +301,117 @@ "js-yaml": "^3.13.1", "minimatch": "^3.0.4", "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" } }, - "@humanwhocodes/config-array": { + "node_modules/@humanwhocodes/config-array": { "version": "0.5.0", "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.5.0.tgz", "integrity": "sha512-FagtKFz74XrTl7y6HCzQpwDfXP0yhxe9lHLD1UZxjvZIcbyRz8zTFF/yYNfSfzU414eDwZ1SrO0Qvtyf+wFMQg==", "dev": true, - "requires": { + "dependencies": { "@humanwhocodes/object-schema": "^1.2.0", "debug": "^4.1.1", "minimatch": "^3.0.4" + }, + "engines": { + "node": ">=10.10.0" } }, - "@humanwhocodes/object-schema": { + "node_modules/@humanwhocodes/object-schema": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.0.tgz", "integrity": "sha512-wdppn25U8z/2yiaT6YGquE6X8sSv7hNMWSXYSSU1jGv/yd6XqjXgTDJ8KP4NgjTXfJ3GbRjeeb8RTV7a/VpM+w==", "dev": true }, - "@istanbuljs/load-nyc-config": { + "node_modules/@istanbuljs/load-nyc-config": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", "dev": true, - "requires": { + "dependencies": { "camelcase": "^5.3.1", "find-up": "^4.1.0", "get-package-type": "^0.1.0", "js-yaml": "^3.13.1", "resolve-from": "^5.0.0" }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, "dependencies": { - "find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "requires": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - } - }, - "locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "requires": { - "p-locate": "^4.1.0" - } - }, - "p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "requires": { - "p-limit": "^2.2.0" - } - }, - "path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true - }, - "resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "dev": true - } + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "engines": { + "node": ">=8" } }, - "@istanbuljs/schema": { + "node_modules/@istanbuljs/schema": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.2.tgz", "integrity": "sha512-tsAQNx32a8CoFhjhijUIhI4kccIAgmGhy8LZMZgGfmXcpMbPRUqn5LWmgRttILi6yeGmBJd2xsPkFMs0PzgPCw==", - "dev": true + "dev": true, + "engines": { + "node": ">=8" + } }, - "@rollup/plugin-commonjs": { + "node_modules/@rollup/plugin-commonjs": { "version": "22.0.0", "resolved": "https://registry.npmjs.org/@rollup/plugin-commonjs/-/plugin-commonjs-22.0.0.tgz", "integrity": "sha512-Ktvf2j+bAO+30awhbYoCaXpBcyPmJbaEUYClQns/+6SNCYFURbvBiNbWgHITEsIgDDWCDUclWRKEuf8cwZCFoQ==", "dev": true, - "requires": { + "dependencies": { "@rollup/pluginutils": "^3.1.0", "commondir": "^1.0.1", "estree-walker": "^2.0.1", @@ -352,426 +419,808 @@ "is-reference": "^1.2.1", "magic-string": "^0.25.7", "resolve": "^1.17.0" + }, + "engines": { + "node": ">= 12.0.0" + }, + "peerDependencies": { + "rollup": "^2.68.0" } }, - "@rollup/pluginutils": { + "node_modules/@rollup/pluginutils": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-3.1.0.tgz", "integrity": "sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==", "dev": true, - "requires": { + "dependencies": { "@types/estree": "0.0.39", "estree-walker": "^1.0.1", "picomatch": "^2.2.2" }, - "dependencies": { - "estree-walker": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-1.0.1.tgz", - "integrity": "sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==", - "dev": true - } + "engines": { + "node": ">= 8.0.0" + }, + "peerDependencies": { + "rollup": "^1.20.0||^2.0.0" } }, - "@types/color-name": { + "node_modules/@rollup/pluginutils/node_modules/estree-walker": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-1.0.1.tgz", + "integrity": "sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==", + "dev": true + }, + "node_modules/@types/color-name": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz", "integrity": "sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==", "dev": true }, - "@types/estree": { + "node_modules/@types/estree": { "version": "0.0.39", "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.39.tgz", "integrity": "sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==", "dev": true }, - "@ungap/promise-all-settled": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@ungap/promise-all-settled/-/promise-all-settled-1.1.2.tgz", - "integrity": "sha512-sL/cEvJWAnClXw0wHk85/2L0G6Sj8UB0Ctc1TEMbKSsmpRosqhwj9gWgFRZSrBr2f9tiXISwNhCPmlfqUqyb9Q==", + "node_modules/@types/json5": { + "version": "0.0.29", + "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", + "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", "dev": true }, - "acorn": { + "node_modules/acorn": { "version": "7.4.1", "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", - "dev": true + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } }, - "acorn-jsx": { + "node_modules/acorn-jsx": { "version": "5.3.2", "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true + "dev": true, + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } }, - "aggregate-error": { + "node_modules/aggregate-error": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.0.1.tgz", "integrity": "sha512-quoaXsZ9/BLNae5yiNoUz+Nhkwz83GhWwtYFglcjEQB2NDHCIpApbqXxIFnm4Pq/Nvhrsq5sYJFyohrrxnTGAA==", "dev": true, - "requires": { + "dependencies": { "clean-stack": "^2.0.0", "indent-string": "^4.0.0" + }, + "engines": { + "node": ">=8" } }, - "ajv": { + "node_modules/ajv": { "version": "6.12.6", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", "dev": true, - "requires": { + "dependencies": { "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", "json-schema-traverse": "^0.4.1", "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" } }, - "ansi-colors": { + "node_modules/ansi-colors": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==", - "dev": true + "dev": true, + "engines": { + "node": ">=6" + } }, - "ansi-regex": { + "node_modules/ansi-regex": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true + "dev": true, + "engines": { + "node": ">=8" + } }, - "ansi-styles": { + "node_modules/ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, - "requires": { + "dependencies": { "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" } }, - "anymatch": { + "node_modules/anymatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==", "dev": true, - "requires": { + "dependencies": { "normalize-path": "^3.0.0", "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" } }, - "append-transform": { + "node_modules/append-transform": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/append-transform/-/append-transform-2.0.0.tgz", "integrity": "sha512-7yeyCEurROLQJFv5Xj4lEGTy0borxepjFv1g22oAdqFu//SrAlDl1O1Nxx15SH1RoliUml6p8dwJW9jvZughhg==", "dev": true, - "requires": { + "dependencies": { "default-require-extensions": "^3.0.0" + }, + "engines": { + "node": ">=8" } }, - "archy": { + "node_modules/archy": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/archy/-/archy-1.0.0.tgz", "integrity": "sha1-+cjBN1fMHde8N5rHeyxipcKGjEA=", "dev": true }, - "argparse": { + "node_modules/argparse": { "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", "dev": true, - "requires": { + "dependencies": { "sprintf-js": "~1.0.2" } }, - "astral-regex": { + "node_modules/array-buffer-byte-length": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz", + "integrity": "sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "is-array-buffer": "^3.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array-includes": { + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.7.tgz", + "integrity": "sha512-dlcsNBIiWhPkHdOEEKnehA+RNUWDc4UqFtnIXU4uuYDPtA4LDkr7qip2p0VvFAEXNDr0yWZ9PJyIRiGjRLQzwQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "get-intrinsic": "^1.2.1", + "is-string": "^1.0.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.findlastindex": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.3.tgz", + "integrity": "sha512-LzLoiOMAxvy+Gd3BAq3B7VeIgPdo+Q8hthvKtXybMvRV0jrXfJM/t8mw7nNlpEcVlVUnCnM2KSX4XU5HmpodOA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "es-shim-unscopables": "^1.0.0", + "get-intrinsic": "^1.2.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.flat": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.2.tgz", + "integrity": "sha512-djYB+Zx2vLewY8RWlNCUdHjDXs2XOgm602S9E7P/UpHgfeHL00cRiIF+IN/G/aUJ7kGPb6yO/ErDI5V2s8iycA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "es-shim-unscopables": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.flatmap": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.2.tgz", + "integrity": "sha512-Ewyx0c9PmpcsByhSW4r+9zDU7sGjFc86qf/kKtuSCRdhfbk0SNLLkaT5qvcHnRGgc5NP/ly/y+qkXkqONX54CQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "es-shim-unscopables": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/arraybuffer.prototype.slice": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.2.tgz", + "integrity": "sha512-yMBKppFur/fbHu9/6USUe03bZ4knMYiwFBcyiaXB8Go0qNehwX6inYPzK9U0NeQvGxKthcmHcaR8P5MStSRBAw==", + "dev": true, + "dependencies": { + "array-buffer-byte-length": "^1.0.0", + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "get-intrinsic": "^1.2.1", + "is-array-buffer": "^3.0.2", + "is-shared-array-buffer": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/astral-regex": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", - "dev": true + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/available-typed-arrays": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", + "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, - "balanced-match": { + "node_modules/balanced-match": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", "dev": true }, - "binary-extensions": { + "node_modules/binary-extensions": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", - "dev": true + "dev": true, + "engines": { + "node": ">=8" + } }, - "brace-expansion": { + "node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "dev": true, - "requires": { + "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, - "braces": { + "node_modules/braces": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", "dev": true, - "requires": { + "dependencies": { "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" } }, - "browser-stdout": { + "node_modules/browser-stdout": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", "dev": true }, - "caching-transform": { + "node_modules/caching-transform": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/caching-transform/-/caching-transform-4.0.0.tgz", "integrity": "sha512-kpqOvwXnjjN44D89K5ccQC+RUrsy7jB/XLlRrx0D7/2HNcTPqzsb6XgYoErwko6QsV184CA2YgS1fxDiiDZMWA==", "dev": true, - "requires": { + "dependencies": { "hasha": "^5.0.0", "make-dir": "^3.0.0", "package-hash": "^4.0.0", "write-file-atomic": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/call-bind": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.5.tgz", + "integrity": "sha512-C3nQxfFZxFRVoJoGKKI8y3MOEo129NQ+FgQ08iye+Mk4zNZZGdjfs06bVTr+DBSlA66Q2VEcMki/cUCP4SercQ==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.1", + "set-function-length": "^1.1.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "callsites": { + "node_modules/callsites": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true + "dev": true, + "engines": { + "node": ">=6" + } }, - "camelcase": { + "node_modules/camelcase": { "version": "5.3.1", "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", - "dev": true + "dev": true, + "engines": { + "node": ">=6" + } }, - "chalk": { + "node_modules/chalk": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", "dev": true, - "requires": { + "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/chalk/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/chalk/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/chalk/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/chalk/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/chalk/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" } }, - "chokidar": { + "node_modules/chokidar": { "version": "3.5.3", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", "dev": true, - "requires": { + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ], + "dependencies": { "anymatch": "~3.1.2", "braces": "~3.0.2", - "fsevents": "~2.3.2", "glob-parent": "~5.1.2", "is-binary-path": "~2.1.0", "is-glob": "~4.0.1", "normalize-path": "~3.0.0", "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" } }, - "clean-stack": { + "node_modules/clean-stack": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", - "dev": true + "dev": true, + "engines": { + "node": ">=6" + } }, - "cliui": { + "node_modules/cliui": { "version": "7.0.4", "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", "dev": true, - "requires": { + "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.0", "wrap-ansi": "^7.0.0" } }, - "color-convert": { + "node_modules/color-convert": { "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", "dev": true, - "requires": { + "dependencies": { "color-name": "1.1.3" } }, - "color-name": { + "node_modules/color-name": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", "dev": true }, - "commondir": { + "node_modules/commondir": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=", "dev": true }, - "concat-map": { + "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", "dev": true }, - "convert-source-map": { + "node_modules/convert-source-map": { "version": "1.7.0", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.7.0.tgz", "integrity": "sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA==", "dev": true, - "requires": { + "dependencies": { "safe-buffer": "~5.1.1" } }, - "core-util-is": { + "node_modules/core-util-is": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" }, - "cross-spawn": { + "node_modules/cross-spawn": { "version": "7.0.3", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", "dev": true, - "requires": { + "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" } }, - "cyclist": { + "node_modules/cyclist": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/cyclist/-/cyclist-1.0.1.tgz", "integrity": "sha1-WW6WmP0MgOEgOMK4LW6xs1tiJNk=" }, - "debug": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.3.tgz", - "integrity": "sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==", + "node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", "dev": true, - "requires": { + "dependencies": { "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } } }, - "decamelize": { + "node_modules/decamelize": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "deep-is": { + "node_modules/deep-is": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz", "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=", "dev": true }, - "default-require-extensions": { + "node_modules/default-require-extensions": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/default-require-extensions/-/default-require-extensions-3.0.0.tgz", "integrity": "sha512-ek6DpXq/SCpvjhpFsLFRVtIxJCRw6fUR42lYMVZuUMK7n8eMz4Uh5clckdBjEpLhn/gEBZo7hDJnJcwdKLKQjg==", "dev": true, - "requires": { + "dependencies": { "strip-bom": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/define-data-property": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.1.tgz", + "integrity": "sha512-E7uGkTzkk1d0ByLeSc6ZsFS79Axg+m1P/VsgYsxHgiuc3tFSj+MjMIwe90FC4lOAZzNBdY7kkO2P2wKdsQ1vgQ==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.2.1", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" } }, - "diff": { + "node_modules/define-properties": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", + "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", + "dev": true, + "dependencies": { + "define-data-property": "^1.0.1", + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/diff": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/diff/-/diff-5.0.0.tgz", "integrity": "sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w==", - "dev": true + "dev": true, + "engines": { + "node": ">=0.3.1" + } }, - "doctrine": { + "node_modules/doctrine": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", "dev": true, - "requires": { + "dependencies": { "esutils": "^2.0.2" + }, + "engines": { + "node": ">=6.0.0" } }, - "emoji-regex": { + "node_modules/emoji-regex": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", "dev": true }, - "enquirer": { + "node_modules/enquirer": { "version": "2.3.6", "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz", "integrity": "sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==", "dev": true, - "requires": { + "dependencies": { "ansi-colors": "^4.1.1" + }, + "engines": { + "node": ">=8.6" } }, - "es6-error": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz", + "node_modules/es-abstract": { + "version": "1.22.3", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.22.3.tgz", + "integrity": "sha512-eiiY8HQeYfYH2Con2berK+To6GrK2RxbPawDkGq4UiCQQfZHb6wX9qQqkbpPqaxQFcl8d9QzZqo0tGE0VcrdwA==", + "dev": true, + "dependencies": { + "array-buffer-byte-length": "^1.0.0", + "arraybuffer.prototype.slice": "^1.0.2", + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.5", + "es-set-tostringtag": "^2.0.1", + "es-to-primitive": "^1.2.1", + "function.prototype.name": "^1.1.6", + "get-intrinsic": "^1.2.2", + "get-symbol-description": "^1.0.0", + "globalthis": "^1.0.3", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.0", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "hasown": "^2.0.0", + "internal-slot": "^1.0.5", + "is-array-buffer": "^3.0.2", + "is-callable": "^1.2.7", + "is-negative-zero": "^2.0.2", + "is-regex": "^1.1.4", + "is-shared-array-buffer": "^1.0.2", + "is-string": "^1.0.7", + "is-typed-array": "^1.1.12", + "is-weakref": "^1.0.2", + "object-inspect": "^1.13.1", + "object-keys": "^1.1.1", + "object.assign": "^4.1.4", + "regexp.prototype.flags": "^1.5.1", + "safe-array-concat": "^1.0.1", + "safe-regex-test": "^1.0.0", + "string.prototype.trim": "^1.2.8", + "string.prototype.trimend": "^1.0.7", + "string.prototype.trimstart": "^1.0.7", + "typed-array-buffer": "^1.0.0", + "typed-array-byte-length": "^1.0.0", + "typed-array-byte-offset": "^1.0.0", + "typed-array-length": "^1.0.4", + "unbox-primitive": "^1.0.2", + "which-typed-array": "^1.1.13" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/es-set-tostringtag": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.2.tgz", + "integrity": "sha512-BuDyupZt65P9D2D2vA/zqcI3G5xRsklm5N3xCwuiy+/vKy8i0ifdsQP1sLgO4tZDSCaQUSnmC48khknGMV3D2Q==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.2.2", + "has-tostringtag": "^1.0.0", + "hasown": "^2.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-shim-unscopables": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.2.tgz", + "integrity": "sha512-J3yBRXCzDu4ULnQwxyToo/OjdMx6akgVC7K6few0a7F/0wLtmKKN7I73AH5T2836UuXRqN7Qg+IIUw/+YJksRw==", + "dev": true, + "dependencies": { + "hasown": "^2.0.0" + } + }, + "node_modules/es-to-primitive": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", + "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "dev": true, + "dependencies": { + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/es6-error": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz", "integrity": "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==", "dev": true }, - "escalade": { + "node_modules/escalade": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", - "dev": true + "dev": true, + "engines": { + "node": ">=6" + } }, - "escape-string-regexp": { + "node_modules/escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.8.0" + } }, - "eslint": { + "node_modules/eslint": { "version": "7.32.0", "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.32.0.tgz", "integrity": "sha512-VHZ8gX+EDfz+97jGcgyGCyRia/dPOd6Xh9yPv8Bl1+SoaIwD+a/vlrOmGRUyOYu7MwUhc7CxqeaDZU13S4+EpA==", "dev": true, - "requires": { + "dependencies": { "@babel/code-frame": "7.12.11", "@eslint/eslintrc": "^0.4.3", "@humanwhocodes/config-array": "^0.5.0", @@ -813,132 +1262,203 @@ "text-table": "^0.2.0", "v8-compile-cache": "^2.0.3" }, - "dependencies": { - "@babel/code-frame": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.11.tgz", - "integrity": "sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw==", - "dev": true, - "requires": { - "@babel/highlight": "^7.10.4" - } - }, - "@babel/helper-validator-identifier": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.12.11.tgz", - "integrity": "sha512-np/lG3uARFybkoHokJUmf1QfEvRVCPbmQeUQpKow5cQ3xWrV9i3rUHodKDJPQfTVX61qKi+UdYk8kik84n7XOw==", - "dev": true - }, - "@babel/highlight": { - "version": "7.13.8", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.13.8.tgz", - "integrity": "sha512-4vrIhfJyfNf+lCtXC2ck1rKSzDwciqF7IWFhXXrSOUC2O5DrVp+w4c6ed4AllTxhTkUP5x2tYj41VaxdVMMRDw==", - "dev": true, - "requires": { - "@babel/helper-validator-identifier": "^7.12.11", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - }, - "dependencies": { - "chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - }, - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true - } - } - }, - "escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true - }, - "eslint-utils": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz", - "integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==", - "dev": true, - "requires": { - "eslint-visitor-keys": "^1.1.0" - }, - "dependencies": { - "eslint-visitor-keys": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", - "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", - "dev": true - } - } - }, - "eslint-visitor-keys": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.0.0.tgz", - "integrity": "sha512-QudtT6av5WXels9WjIM7qz1XD1cWGvX4gGXvp/zBn9nXG02D0utdU3Em2m/QjTnrsk6bBjmCygl3rmj118msQQ==", - "dev": true - } + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, - "eslint-config-prettier": { + "node_modules/eslint-config-prettier": { "version": "8.3.0", "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.3.0.tgz", "integrity": "sha512-BgZuLUSeKzvlL/VUjx/Yb787VQ26RU3gGjA3iiFvdsp/2bMfVIWUVP7tjxtjS0e+HP409cPlPvNkQloz8C91ew==", - "dev": true + "dev": true, + "bin": { + "eslint-config-prettier": "bin/cli.js" + }, + "peerDependencies": { + "eslint": ">=7.0.0" + } + }, + "node_modules/eslint-import-resolver-node": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz", + "integrity": "sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==", + "dev": true, + "dependencies": { + "debug": "^3.2.7", + "is-core-module": "^2.13.0", + "resolve": "^1.22.4" + } + }, + "node_modules/eslint-import-resolver-node/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-module-utils": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.0.tgz", + "integrity": "sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==", + "dev": true, + "dependencies": { + "debug": "^3.2.7" + }, + "engines": { + "node": ">=4" + }, + "peerDependenciesMeta": { + "eslint": { + "optional": true + } + } }, - "eslint-plugin-es": { + "node_modules/eslint-module-utils/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-plugin-es": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/eslint-plugin-es/-/eslint-plugin-es-3.0.1.tgz", "integrity": "sha512-GUmAsJaN4Fc7Gbtl8uOBlayo2DqhwWvEzykMHSCZHU3XdJ+NSzzZcVhXh3VxX5icqQ+oQdIEawXX8xkR3mIFmQ==", "dev": true, - "requires": { + "dependencies": { "eslint-utils": "^2.0.0", "regexpp": "^3.0.0" + }, + "engines": { + "node": ">=8.10.0" + }, + "funding": { + "url": "https://github.com/sponsors/mysticatea" + }, + "peerDependencies": { + "eslint": ">=4.19.1" } }, - "eslint-plugin-mocha": { + "node_modules/eslint-plugin-import": { + "version": "2.29.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.29.0.tgz", + "integrity": "sha512-QPOO5NO6Odv5lpoTkddtutccQjysJuFxoPS7fAHO+9m9udNHvTCPSAMW9zGAYj8lAIdr40I8yPCdUYrncXtrwg==", + "dev": true, + "dependencies": { + "array-includes": "^3.1.7", + "array.prototype.findlastindex": "^1.2.3", + "array.prototype.flat": "^1.3.2", + "array.prototype.flatmap": "^1.3.2", + "debug": "^3.2.7", + "doctrine": "^2.1.0", + "eslint-import-resolver-node": "^0.3.9", + "eslint-module-utils": "^2.8.0", + "hasown": "^2.0.0", + "is-core-module": "^2.13.1", + "is-glob": "^4.0.3", + "minimatch": "^3.1.2", + "object.fromentries": "^2.0.7", + "object.groupby": "^1.0.1", + "object.values": "^1.1.7", + "semver": "^6.3.1", + "tsconfig-paths": "^3.14.2" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8" + } + }, + "node_modules/eslint-plugin-import/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-plugin-import/node_modules/doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "dev": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eslint-plugin-import/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/eslint-plugin-mocha": { "version": "9.0.0", "resolved": "https://registry.npmjs.org/eslint-plugin-mocha/-/eslint-plugin-mocha-9.0.0.tgz", "integrity": "sha512-d7knAcQj1jPCzZf3caeBIn3BnW6ikcvfz0kSqQpwPYcVGLoJV5sz0l0OJB2LR8I7dvTDbqq1oV6ylhSgzA10zg==", "dev": true, - "requires": { + "dependencies": { "eslint-utils": "^3.0.0", "ramda": "^0.27.1" }, + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "eslint": ">=7.0.0" + } + }, + "node_modules/eslint-plugin-mocha/node_modules/eslint-utils": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", + "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", + "dev": true, "dependencies": { - "eslint-utils": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", - "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", - "dev": true, - "requires": { - "eslint-visitor-keys": "^2.0.0" - } - }, - "eslint-visitor-keys": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", - "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", - "dev": true - } + "eslint-visitor-keys": "^2.0.0" + }, + "engines": { + "node": "^10.0.0 || ^12.0.0 || >= 14.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/mysticatea" + }, + "peerDependencies": { + "eslint": ">=5" + } + }, + "node_modules/eslint-plugin-mocha/node_modules/eslint-visitor-keys": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", + "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", + "dev": true, + "engines": { + "node": ">=10" } }, - "eslint-plugin-node": { + "node_modules/eslint-plugin-node": { "version": "11.1.0", "resolved": "https://registry.npmjs.org/eslint-plugin-node/-/eslint-plugin-node-11.1.0.tgz", "integrity": "sha512-oUwtPJ1W0SKD0Tr+wqu92c5xuCeQqB3hSCHasn/ZgjFdA9iDGNkNf2Zi9ztY7X+hNuMib23LNGRm6+uN+KLE3g==", "dev": true, - "requires": { + "dependencies": { "eslint-plugin-es": "^3.0.0", "eslint-utils": "^2.0.0", "ignore": "^5.1.1", @@ -946,512 +1466,1163 @@ "resolve": "^1.10.1", "semver": "^6.1.0" }, - "dependencies": { - "ignore": { - "version": "5.1.8", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.1.8.tgz", - "integrity": "sha512-BMpfD7PpiETpBl/A6S498BaIJ6Y/ABT93ETbby2fP00v4EbvPBXWEoaR1UBPKs3iR53pJY7EtZk5KACI57i1Uw==", - "dev": true - }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } + "engines": { + "node": ">=8.10.0" + }, + "peerDependencies": { + "eslint": ">=5.16.0" + } + }, + "node_modules/eslint-plugin-node/node_modules/ignore": { + "version": "5.1.8", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.1.8.tgz", + "integrity": "sha512-BMpfD7PpiETpBl/A6S498BaIJ6Y/ABT93ETbby2fP00v4EbvPBXWEoaR1UBPKs3iR53pJY7EtZk5KACI57i1Uw==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/eslint-plugin-node/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" } }, - "eslint-plugin-prettier": { + "node_modules/eslint-plugin-prettier": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.0.0.tgz", "integrity": "sha512-98MqmCJ7vJodoQK359bqQWaxOE0CS8paAz/GgjaZLyex4TTk3g9HugoO89EqWCrFiOqn9EVvcoo7gZzONCWVwQ==", "dev": true, - "requires": { + "dependencies": { "prettier-linter-helpers": "^1.0.0" + }, + "engines": { + "node": ">=6.0.0" + }, + "peerDependencies": { + "eslint": ">=7.28.0", + "prettier": ">=2.0.0" + }, + "peerDependenciesMeta": { + "eslint-config-prettier": { + "optional": true + } } }, - "eslint-scope": { + "node_modules/eslint-scope": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", "dev": true, - "requires": { + "dependencies": { "esrecurse": "^4.3.0", "estraverse": "^4.1.1" + }, + "engines": { + "node": ">=8.0.0" } }, - "eslint-utils": { + "node_modules/eslint-utils": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.0.0.tgz", "integrity": "sha512-0HCPuJv+7Wv1bACm8y5/ECVfYdfsAm9xmVb7saeFlxjPYALefjhbYoCkBjPdPzGH8wWyTpAez82Fh3VKYEZ8OA==", "dev": true, - "requires": { + "dependencies": { "eslint-visitor-keys": "^1.1.0" + }, + "engines": { + "node": ">=6" } }, - "eslint-visitor-keys": { + "node_modules/eslint-visitor-keys": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/eslint/node_modules/@babel/code-frame": { + "version": "7.12.11", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.11.tgz", + "integrity": "sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw==", + "dev": true, + "dependencies": { + "@babel/highlight": "^7.10.4" + } + }, + "node_modules/eslint/node_modules/@babel/helper-validator-identifier": { + "version": "7.12.11", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.12.11.tgz", + "integrity": "sha512-np/lG3uARFybkoHokJUmf1QfEvRVCPbmQeUQpKow5cQ3xWrV9i3rUHodKDJPQfTVX61qKi+UdYk8kik84n7XOw==", "dev": true }, - "espree": { + "node_modules/eslint/node_modules/@babel/highlight": { + "version": "7.13.8", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.13.8.tgz", + "integrity": "sha512-4vrIhfJyfNf+lCtXC2ck1rKSzDwciqF7IWFhXXrSOUC2O5DrVp+w4c6ed4AllTxhTkUP5x2tYj41VaxdVMMRDw==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.12.11", + "chalk": "^2.0.0", + "js-tokens": "^4.0.0" + } + }, + "node_modules/eslint/node_modules/@babel/highlight/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/eslint/node_modules/@babel/highlight/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/eslint/node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/eslint-utils": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz", + "integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==", + "dev": true, + "dependencies": { + "eslint-visitor-keys": "^1.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/mysticatea" + } + }, + "node_modules/eslint/node_modules/eslint-utils/node_modules/eslint-visitor-keys": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", + "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/eslint/node_modules/eslint-visitor-keys": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.0.0.tgz", + "integrity": "sha512-QudtT6av5WXels9WjIM7qz1XD1cWGvX4gGXvp/zBn9nXG02D0utdU3Em2m/QjTnrsk6bBjmCygl3rmj118msQQ==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/espree": { "version": "7.3.1", "resolved": "https://registry.npmjs.org/espree/-/espree-7.3.1.tgz", "integrity": "sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g==", "dev": true, - "requires": { + "dependencies": { "acorn": "^7.4.0", "acorn-jsx": "^5.3.1", "eslint-visitor-keys": "^1.3.0" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" } }, - "esprima": { + "node_modules/esprima": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true + "dev": true, + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } }, - "esquery": { + "node_modules/esquery": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz", "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", "dev": true, - "requires": { + "dependencies": { "estraverse": "^5.1.0" }, - "dependencies": { - "estraverse": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz", - "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", - "dev": true - } + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esquery/node_modules/estraverse": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz", + "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", + "dev": true, + "engines": { + "node": ">=4.0" } }, - "esrecurse": { + "node_modules/esrecurse": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", "dev": true, - "requires": { + "dependencies": { "estraverse": "^5.2.0" }, - "dependencies": { - "estraverse": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz", - "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", - "dev": true - } + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esrecurse/node_modules/estraverse": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz", + "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", + "dev": true, + "engines": { + "node": ">=4.0" } }, - "estraverse": { + "node_modules/estraverse": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "dev": true + "dev": true, + "engines": { + "node": ">=4.0" + } }, - "estree-walker": { + "node_modules/estree-walker": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", "dev": true }, - "esutils": { + "node_modules/esutils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "fast-deep-equal": { + "node_modules/fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", "dev": true }, - "fast-diff": { + "node_modules/fast-diff": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.2.0.tgz", "integrity": "sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==", "dev": true }, - "fast-json-stable-stringify": { + "node_modules/fast-json-stable-stringify": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", "dev": true }, - "fast-levenshtein": { + "node_modules/fast-levenshtein": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", "dev": true }, - "file-entry-cache": { + "node_modules/file-entry-cache": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", "dev": true, - "requires": { + "dependencies": { "flat-cache": "^3.0.4" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" } }, - "fill-range": { + "node_modules/fill-range": { "version": "7.0.1", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", "dev": true, - "requires": { + "dependencies": { "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" } }, - "find-cache-dir": { + "node_modules/find-cache-dir": { "version": "3.3.1", "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.1.tgz", "integrity": "sha512-t2GDMt3oGC/v+BMwzmllWDuJF/xcDtE5j/fCGbqDD7OLuJkj0cfh1YSA5VKPvwMeLFLNDBkwOKZ2X85jGLVftQ==", "dev": true, - "requires": { + "dependencies": { "commondir": "^1.0.1", "make-dir": "^3.0.2", "pkg-dir": "^4.1.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/avajs/find-cache-dir?sponsor=1" } }, - "find-up": { + "node_modules/find-up": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", "dev": true, - "requires": { + "dependencies": { "locate-path": "^6.0.0", "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "flat": { + "node_modules/flat": { "version": "5.0.2", "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==", - "dev": true + "dev": true, + "bin": { + "flat": "cli.js" + } }, - "flat-cache": { + "node_modules/flat-cache": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", "dev": true, - "requires": { + "dependencies": { "flatted": "^3.1.0", "rimraf": "^3.0.2" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" } }, - "flatted": { + "node_modules/flatted": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.1.1.tgz", "integrity": "sha512-zAoAQiudy+r5SvnSw3KJy5os/oRJYHzrzja/tBDqrZtNhUw8bt6y8OBzMWcjWr+8liV8Eb6yOhw8WZ7VFZ5ZzA==", "dev": true }, - "foreground-child": { + "node_modules/for-each": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", + "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", + "dev": true, + "dependencies": { + "is-callable": "^1.1.3" + } + }, + "node_modules/foreground-child": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-2.0.0.tgz", "integrity": "sha512-dCIq9FpEcyQyXKCkyzmlPTFNgrCzPudOe+mhvJU5zAtlBnGVy2yKxtfsxK2tQBThwq225jcvBjpw1Gr40uzZCA==", "dev": true, - "requires": { + "dependencies": { "cross-spawn": "^7.0.0", "signal-exit": "^3.0.2" + }, + "engines": { + "node": ">=8.0.0" } }, - "fromentries": { + "node_modules/fromentries": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/fromentries/-/fromentries-1.2.0.tgz", "integrity": "sha512-33X7H/wdfO99GdRLLgkjUrD4geAFdq/Uv0kl3HD4da6HDixd2GUg8Mw7dahLCV9r/EARkmtYBB6Tch4EEokFTQ==", "dev": true }, - "fs.realpath": { + "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", "dev": true }, - "fsevents": { + "node_modules/fsevents": { "version": "2.3.2", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", "dev": true, - "optional": true + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/function.prototype.name": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.6.tgz", + "integrity": "sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "functions-have-names": "^1.2.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, - "functional-red-black-tree": { + "node_modules/functional-red-black-tree": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", "dev": true }, - "gensync": { + "node_modules/functions-have-names": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", + "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gensync": { "version": "1.0.0-beta.1", "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.1.tgz", "integrity": "sha512-r8EC6NO1sngH/zdD9fiRDLdcgnbayXah+mLgManTaIZJqEC1MZstmnox8KpnI2/fxQwrp5OpCOYWLp4rBl4Jcg==", - "dev": true + "dev": true, + "engines": { + "node": ">=6.9.0" + } }, - "get-caller-file": { + "node_modules/get-caller-file": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "dev": true + "dev": true, + "engines": { + "node": "6.* || 8.* || >= 10.*" + } }, - "get-package-type": { + "node_modules/get-intrinsic": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.2.tgz", + "integrity": "sha512-0gSo4ml/0j98Y3lngkFEot/zhiCeWsbYIlZ+uZOVgzLyLaUw7wxUL+nCTP0XJvJg1AXulJRI3UJi8GsbDuxdGA==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.2", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "hasown": "^2.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-package-type": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", - "dev": true + "dev": true, + "engines": { + "node": ">=8.0.0" + } }, - "glob": { + "node_modules/get-symbol-description": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", + "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/glob": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==", "dev": true, - "requires": { + "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", "inherits": "2", "minimatch": "^3.0.4", "once": "^1.3.0", "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "glob-parent": { + "node_modules/glob-parent": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", "dev": true, - "requires": { + "dependencies": { "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" } }, - "globals": { + "node_modules/globals": { "version": "13.11.0", "resolved": "https://registry.npmjs.org/globals/-/globals-13.11.0.tgz", "integrity": "sha512-08/xrJ7wQjK9kkkRoI3OFUBbLx4f+6x3SGwcPvQ0QH6goFDrOU2oyAWrmh3dJezu65buo+HBMzAMQy6rovVC3g==", "dev": true, - "requires": { + "dependencies": { "type-fest": "^0.20.2" }, - "dependencies": { - "type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "dev": true - } + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "graceful-fs": { + "node_modules/globals/node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/globalthis": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", + "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", + "dev": true, + "dependencies": { + "define-properties": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gopd": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", + "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.1.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/graceful-fs": { "version": "4.2.4", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.4.tgz", "integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==", "dev": true }, - "growl": { - "version": "1.10.5", - "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz", - "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==", - "dev": true + "node_modules/has-bigints": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", + "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, - "has-flag": { + "node_modules/has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/has-property-descriptors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.1.tgz", + "integrity": "sha512-VsX8eaIewvas0xnvinAe9bw4WfIeODpGYikiWYLH+dma0Jw6KHYqWiWfhQlgOVK8D6PvjubK5Uc4P0iIhIcNVg==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.2.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", + "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, - "hasha": { + "node_modules/has-tostringtag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", + "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", + "dev": true, + "dependencies": { + "has-symbols": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasha": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/hasha/-/hasha-5.2.0.tgz", "integrity": "sha512-2W+jKdQbAdSIrggA8Q35Br8qKadTrqCTC8+XZvBWepKDK6m9XkX6Iz1a2yh2KP01kzAR/dpuMeUnocoLYDcskw==", "dev": true, - "requires": { + "dependencies": { "is-stream": "^2.0.0", "type-fest": "^0.8.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/hasown": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.0.tgz", + "integrity": "sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" } }, - "he": { + "node_modules/he": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", - "dev": true + "dev": true, + "bin": { + "he": "bin/he" + } }, - "html-escaper": { + "node_modules/html-escaper": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", "dev": true }, - "ignore": { + "node_modules/ignore": { "version": "4.0.6", "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", - "dev": true + "dev": true, + "engines": { + "node": ">= 4" + } }, - "import-fresh": { + "node_modules/import-fresh": { "version": "3.3.0", "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", "dev": true, - "requires": { + "dependencies": { "parent-module": "^1.0.0", "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "imurmurhash": { + "node_modules/imurmurhash": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.8.19" + } }, - "indent-string": { + "node_modules/indent-string": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", - "dev": true + "dev": true, + "engines": { + "node": ">=8" + } }, - "inflight": { + "node_modules/inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", "dev": true, - "requires": { + "dependencies": { "once": "^1.3.0", "wrappy": "1" } }, - "inherits": { + "node_modules/inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" }, - "is-binary-path": { + "node_modules/internal-slot": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.6.tgz", + "integrity": "sha512-Xj6dv+PsbtwyPpEflsejS+oIZxmMlV44zAhG479uYu89MsjcYOhCFnNyKrkJrihbsiasQyY0afoCl/9BLR65bg==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.2.2", + "hasown": "^2.0.0", + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/is-array-buffer": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz", + "integrity": "sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.0", + "is-typed-array": "^1.1.10" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-bigint": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", + "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", + "dev": true, + "dependencies": { + "has-bigints": "^1.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-binary-path": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", "dev": true, - "requires": { + "dependencies": { "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-boolean-object": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", + "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-callable": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", + "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-core-module": { + "version": "2.13.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz", + "integrity": "sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==", + "dev": true, + "dependencies": { + "hasown": "^2.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-date-object": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", + "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "is-extglob": { + "node_modules/is-extglob": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "is-fullwidth-code-point": { + "node_modules/is-fullwidth-code-point": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true + "dev": true, + "engines": { + "node": ">=8" + } }, - "is-glob": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", - "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", "dev": true, - "requires": { + "dependencies": { "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-negative-zero": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", + "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "is-number": { + "node_modules/is-number": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true + "dev": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-number-object": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", + "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, - "is-plain-obj": { + "node_modules/is-plain-obj": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==", - "dev": true + "dev": true, + "engines": { + "node": ">=8" + } }, - "is-reference": { + "node_modules/is-reference": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/is-reference/-/is-reference-1.2.1.tgz", "integrity": "sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==", "dev": true, - "requires": { + "dependencies": { "@types/estree": "*" } }, - "is-stream": { + "node_modules/is-regex": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", + "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-shared-array-buffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", + "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-stream": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.0.tgz", "integrity": "sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw==", - "dev": true + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-string": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", + "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-symbol": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", + "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", + "dev": true, + "dependencies": { + "has-symbols": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-typed-array": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.12.tgz", + "integrity": "sha512-Z14TF2JNG8Lss5/HMqt0//T9JeHXttXy5pH/DBU4vi98ozO2btxzq9MwYDZYnKwU8nRsz/+GVFVRDq3DkVuSPg==", + "dev": true, + "dependencies": { + "which-typed-array": "^1.1.11" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, - "is-typedarray": { + "node_modules/is-typedarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", "dev": true }, - "is-unicode-supported": { + "node_modules/is-unicode-supported": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", - "dev": true + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-weakref": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", + "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, - "is-windows": { + "node_modules/is-windows": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "isarray": { + "node_modules/isarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" }, - "isexe": { + "node_modules/isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", "dev": true }, - "istanbul-lib-coverage": { + "node_modules/istanbul-lib-coverage": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.0.0.tgz", "integrity": "sha512-UiUIqxMgRDET6eR+o5HbfRYP1l0hqkWOs7vNxC/mggutCMUIhWMm8gAHb8tHlyfD3/l6rlgNA5cKdDzEAf6hEg==", - "dev": true + "dev": true, + "engines": { + "node": ">=8" + } }, - "istanbul-lib-hook": { + "node_modules/istanbul-lib-hook": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/istanbul-lib-hook/-/istanbul-lib-hook-3.0.0.tgz", "integrity": "sha512-Pt/uge1Q9s+5VAZ+pCo16TYMWPBIl+oaNIjgLQxcX0itS6ueeaA+pEfThZpH8WxhFgCiEb8sAJY6MdUKgiIWaQ==", "dev": true, - "requires": { + "dependencies": { "append-transform": "^2.0.0" + }, + "engines": { + "node": ">=8" } }, - "istanbul-lib-instrument": { + "node_modules/istanbul-lib-instrument": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-4.0.3.tgz", "integrity": "sha512-BXgQl9kf4WTCPCCpmFGoJkz/+uhvm7h7PFKUYxh7qarQd3ER33vHG//qaE8eN25l07YqZPpHXU9I09l/RD5aGQ==", "dev": true, - "requires": { + "dependencies": { "@babel/core": "^7.7.5", "@istanbuljs/schema": "^0.1.2", "istanbul-lib-coverage": "^3.0.0", "semver": "^6.3.0" }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-instrument/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" } }, - "istanbul-lib-processinfo": { + "node_modules/istanbul-lib-processinfo": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/istanbul-lib-processinfo/-/istanbul-lib-processinfo-2.0.2.tgz", "integrity": "sha512-kOwpa7z9hme+IBPZMzQ5vdQj8srYgAtaRqeI48NGmAQ+/5yKiHLV0QbYqQpxsdEF0+w14SoB8YbnHKcXE2KnYw==", "dev": true, - "requires": { + "dependencies": { "archy": "^1.0.0", "cross-spawn": "^7.0.0", "istanbul-lib-coverage": "^3.0.0-alpha.1", @@ -1460,351 +2631,463 @@ "rimraf": "^3.0.0", "uuid": "^3.3.3" }, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-processinfo/node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, "dependencies": { - "rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "dev": true, - "requires": { - "glob": "^7.1.3" - } - } + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "istanbul-lib-report": { + "node_modules/istanbul-lib-report": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==", "dev": true, - "requires": { + "dependencies": { "istanbul-lib-coverage": "^3.0.0", "make-dir": "^3.0.0", "supports-color": "^7.1.0" }, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-report/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-report/node_modules/supports-color": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz", + "integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==", + "dev": true, "dependencies": { - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz", - "integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" } }, - "istanbul-lib-source-maps": { + "node_modules/istanbul-lib-source-maps": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.0.tgz", "integrity": "sha512-c16LpFRkR8vQXyHZ5nLpY35JZtzj1PQY1iZmesUbf1FZHbIupcWfjgOXBY9YHkLEQ6puz1u4Dgj6qmU/DisrZg==", "dev": true, - "requires": { + "dependencies": { "debug": "^4.1.1", "istanbul-lib-coverage": "^3.0.0", "source-map": "^0.6.1" }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-source-maps/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" } }, - "istanbul-reports": { + "node_modules/istanbul-reports": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.0.2.tgz", "integrity": "sha512-9tZvz7AiR3PEDNGiV9vIouQ/EAcqMXFmkcA1CDFTwOB98OZVDL0PH9glHotf5Ugp6GCOTypfzGWI/OqjWNCRUw==", "dev": true, - "requires": { + "dependencies": { "html-escaper": "^2.0.0", "istanbul-lib-report": "^3.0.0" + }, + "engines": { + "node": ">=8" } }, - "js-tokens": { + "node_modules/js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", "dev": true }, - "js-yaml": { + "node_modules/js-yaml": { "version": "3.14.0", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.0.tgz", "integrity": "sha512-/4IbIeHcD9VMHFqDR/gQ7EdZdLimOvW2DdcxFjdyyZ9NsbS+ccrXqVWDtab/lRl5AlUqmpBx8EhPaWR+OtY17A==", "dev": true, - "requires": { + "dependencies": { "argparse": "^1.0.7", "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" } }, - "jsesc": { + "node_modules/jsesc": { "version": "2.5.2", "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", - "dev": true + "dev": true, + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=4" + } }, - "json-schema-traverse": { + "node_modules/json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", "dev": true }, - "json-stable-stringify-without-jsonify": { + "node_modules/json-stable-stringify-without-jsonify": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=", "dev": true }, - "json5": { + "node_modules/json5": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/json5/-/json5-2.1.3.tgz", "integrity": "sha512-KXPvOm8K9IJKFM0bmdn8QXh7udDh1g/giieX0NLCaMnb4hEiVFqnop2ImTXCc5e0/oHz3LTqmHGtExn5hfMkOA==", "dev": true, - "requires": { + "dependencies": { "minimist": "^1.2.5" + }, + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" } }, - "levn": { + "node_modules/levn": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", "dev": true, - "requires": { + "dependencies": { "prelude-ls": "^1.2.1", "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" } }, - "locate-path": { + "node_modules/locate-path": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", "dev": true, - "requires": { + "dependencies": { "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "lodash": { + "node_modules/lodash": { "version": "4.17.21", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", "dev": true }, - "lodash.clonedeep": { + "node_modules/lodash.clonedeep": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", "integrity": "sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=", "dev": true }, - "lodash.flattendeep": { + "node_modules/lodash.flattendeep": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/lodash.flattendeep/-/lodash.flattendeep-4.4.0.tgz", "integrity": "sha1-+wMJF/hqMTTlvJvsDWngAT3f7bI=", "dev": true }, - "lodash.merge": { + "node_modules/lodash.merge": { "version": "4.6.2", "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", "dev": true }, - "lodash.truncate": { + "node_modules/lodash.truncate": { "version": "4.4.2", "resolved": "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz", "integrity": "sha1-WjUNoLERO4N+z//VgSy+WNbq4ZM=", "dev": true }, - "log-symbols": { + "node_modules/log-symbols": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", "dev": true, - "requires": { + "dependencies": { "chalk": "^4.1.0", "is-unicode-supported": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "lru-cache": { + "node_modules/lru-cache": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", "dev": true, - "requires": { + "dependencies": { "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" } }, - "magic-string": { + "node_modules/magic-string": { "version": "0.25.9", "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.9.tgz", "integrity": "sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==", "dev": true, - "requires": { + "dependencies": { "sourcemap-codec": "^1.4.8" } }, - "make-dir": { + "node_modules/make-dir": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", "dev": true, - "requires": { + "dependencies": { "semver": "^6.0.0" }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "minimatch": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "node_modules/make-dir/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", "dev": true, - "requires": { - "brace-expansion": "^1.1.7" + "bin": { + "semver": "bin/semver.js" } }, - "minimist": { + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { "version": "1.2.6", "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==", "dev": true }, - "mocha": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-9.2.2.tgz", - "integrity": "sha512-L6XC3EdwT6YrIk0yXpavvLkn8h+EU+Y5UcCHKECyMbdUIxyMuZj4bX4U9e1nvnvUUvQVsV2VHQr5zLdcUkhW/g==", + "node_modules/mocha": { + "version": "10.2.0", + "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.2.0.tgz", + "integrity": "sha512-IDY7fl/BecMwFHzoqF2sg/SHHANeBoMMXFlS9r0OXKDssYE1M5O43wUY/9BVPeIvfH2zmEbBfseqN9gBQZzXkg==", "dev": true, - "requires": { - "@ungap/promise-all-settled": "1.1.2", + "dependencies": { "ansi-colors": "4.1.1", "browser-stdout": "1.3.1", "chokidar": "3.5.3", - "debug": "4.3.3", + "debug": "4.3.4", "diff": "5.0.0", "escape-string-regexp": "4.0.0", "find-up": "5.0.0", "glob": "7.2.0", - "growl": "1.10.5", "he": "1.2.0", "js-yaml": "4.1.0", "log-symbols": "4.1.0", - "minimatch": "4.2.1", + "minimatch": "5.0.1", "ms": "2.1.3", - "nanoid": "3.3.1", + "nanoid": "3.3.3", "serialize-javascript": "6.0.0", "strip-json-comments": "3.1.1", "supports-color": "8.1.1", - "which": "2.0.2", - "workerpool": "6.2.0", + "workerpool": "6.2.1", "yargs": "16.2.0", "yargs-parser": "20.2.4", "yargs-unparser": "2.0.0" }, + "bin": { + "_mocha": "bin/_mocha", + "mocha": "bin/mocha.js" + }, + "engines": { + "node": ">= 14.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mochajs" + } + }, + "node_modules/mocha/node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "node_modules/mocha/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, "dependencies": { - "argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true - }, - "escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dev": true, - "requires": { - "argparse": "^2.0.1" - } - }, - "minimatch": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-4.2.1.tgz", - "integrity": "sha512-9Uq1ChtSZO+Mxa/CL1eGizn2vRn3MlLgzhT0Iz8zaY8NdvxvB0d5QdPFmCKf7JKA9Lerx5vRrnwO03jsSfGG9g==", - "dev": true, - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true - }, - "supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "balanced-match": "^1.0.0" + } + }, + "node_modules/mocha/node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/mocha/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/mocha/node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/mocha/node_modules/minimatch": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.0.1.tgz", + "integrity": "sha512-nLDxIFRyhDblz3qMuq+SoRZED4+miJ/G+tdDrjkkkRnjAsBexeGpgjLEQ0blJy7rHhR2b93rhQY4SvyWu9v03g==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/mocha/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true + }, + "node_modules/mocha/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" } }, - "ms": { + "node_modules/ms": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", "dev": true }, - "nanoid": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.1.tgz", - "integrity": "sha512-n6Vs/3KGyxPQd6uO0eH4Bv0ojGSUvuLlIHtC3Y0kEO23YRge8H9x1GCzLn28YX0H66pMkxuaeESFq4tKISKwdw==", - "dev": true + "node_modules/nanoid": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.3.tgz", + "integrity": "sha512-p1sjXuopFs0xg+fPASzQ28agW1oHD7xDsd9Xkf3T15H3c/cifrFHVwrh74PdoklAPi+i7MdRsE47vm2r6JoB+w==", + "dev": true, + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } }, - "natural-compare": { + "node_modules/natural-compare": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", "dev": true }, - "node-preload": { + "node_modules/node-preload": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/node-preload/-/node-preload-0.2.1.tgz", "integrity": "sha512-RM5oyBy45cLEoHqCeh+MNuFAxO0vTFBLskvQbOKnEE7YTTSN4tbN8QWDIPQ6L+WvKsB/qLEGpYe2ZZ9d4W9OIQ==", "dev": true, - "requires": { + "dependencies": { "process-on-spawn": "^1.0.0" + }, + "engines": { + "node": ">=8" } }, - "normalize-path": { + "node_modules/normalize-path": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "nyc": { + "node_modules/nyc": { "version": "15.1.0", "resolved": "https://registry.npmjs.org/nyc/-/nyc-15.1.0.tgz", "integrity": "sha512-jMW04n9SxKdKi1ZMGhvUTHBN0EICCRkHemEoE5jm6mTYcqcdas0ATzgUgejlQUHMvpnOZqGB5Xxsv9KxJW1j8A==", "dev": true, - "requires": { + "dependencies": { "@istanbuljs/load-nyc-config": "^1.0.0", "@istanbuljs/schema": "^0.1.2", "caching-transform": "^4.0.0", @@ -1833,374 +3116,582 @@ "test-exclude": "^6.0.0", "yargs": "^15.0.2" }, + "bin": { + "nyc": "bin/nyc.js" + }, + "engines": { + "node": ">=8.9" + } + }, + "node_modules/nyc/node_modules/ansi-styles": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz", + "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==", + "dev": true, + "dependencies": { + "@types/color-name": "^1.1.1", + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/nyc/node_modules/cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "dev": true, "dependencies": { - "ansi-styles": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz", - "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==", - "dev": true, - "requires": { - "@types/color-name": "^1.1.1", - "color-convert": "^2.0.1" - } - }, - "cliui": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", - "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", - "dev": true, - "requires": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^6.2.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "requires": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - } - }, - "locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "requires": { - "p-locate": "^4.1.0" - } - }, - "p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "requires": { - "p-limit": "^2.2.0" - } - }, - "path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true - }, - "resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "dev": true - }, - "rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "dev": true, - "requires": { - "glob": "^7.1.3" - } - }, - "wrap-ansi": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", - "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", - "dev": true, - "requires": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - } - }, - "yargs": { - "version": "15.3.1", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.3.1.tgz", - "integrity": "sha512-92O1HWEjw27sBfgmXiixJWT5hRBp2eobqXicLtPBIDBhYB+1HpwZlXmbW2luivBJHBzki+7VyCLRtAkScbTBQA==", - "dev": true, - "requires": { - "cliui": "^6.0.0", - "decamelize": "^1.2.0", - "find-up": "^4.1.0", - "get-caller-file": "^2.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", - "string-width": "^4.2.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^18.1.1" - } - }, - "yargs-parser": { - "version": "18.1.3", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", - "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", - "dev": true, - "requires": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" - } - } + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" + } + }, + "node_modules/nyc/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/nyc/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/nyc/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/nyc/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/nyc/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/nyc/node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/nyc/node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/nyc/node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/nyc/node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/nyc/node_modules/yargs": { + "version": "15.3.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.3.1.tgz", + "integrity": "sha512-92O1HWEjw27sBfgmXiixJWT5hRBp2eobqXicLtPBIDBhYB+1HpwZlXmbW2luivBJHBzki+7VyCLRtAkScbTBQA==", + "dev": true, + "dependencies": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/nyc/node_modules/yargs-parser": { + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "dev": true, + "dependencies": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + }, + "engines": { + "node": ">=6" } }, - "once": { + "node_modules/object-inspect": { + "version": "1.13.1", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz", + "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "dev": true, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.assign": { + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz", + "integrity": "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "has-symbols": "^1.0.3", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.fromentries": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.7.tgz", + "integrity": "sha512-UPbPHML6sL8PI/mOqPwsH4G6iyXcCGzLin8KvEPenOZN5lpCNBZZQ+V62vdjB1mQHrmqGQt5/OJzemUA+KJmEA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.groupby": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/object.groupby/-/object.groupby-1.0.1.tgz", + "integrity": "sha512-HqaQtqLnp/8Bn4GL16cj+CUYbnpe1bh0TtEaWvybszDG4tgxCJuRpV8VGuvNaI1fAnI4lUJzDG55MXcOH4JZcQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "get-intrinsic": "^1.2.1" + } + }, + "node_modules/object.values": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.7.tgz", + "integrity": "sha512-aU6xnDFYT3x17e/f0IiiwlGPTy2jzMySGfUB4fq6z7CV8l85CWHDk5ErhyhpfDHhrOMwGFhSQkhMGHaIotA6Ng==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", "dev": true, - "requires": { + "dependencies": { "wrappy": "1" } }, - "optionator": { + "node_modules/optionator": { "version": "0.9.1", "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", "dev": true, - "requires": { + "dependencies": { "deep-is": "^0.1.3", "fast-levenshtein": "^2.0.6", "levn": "^0.4.1", "prelude-ls": "^1.2.1", "type-check": "^0.4.0", "word-wrap": "^1.2.3" + }, + "engines": { + "node": ">= 0.8.0" } }, - "p-limit": { + "node_modules/p-limit": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", "dev": true, - "requires": { + "dependencies": { "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "p-locate": { + "node_modules/p-locate": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", "dev": true, - "requires": { + "dependencies": { "p-limit": "^3.0.2" }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate/node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, "dependencies": { - "p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "requires": { - "yocto-queue": "^0.1.0" - } - } + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "p-map": { + "node_modules/p-map": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/p-map/-/p-map-3.0.0.tgz", "integrity": "sha512-d3qXVTF/s+W+CdJ5A29wywV2n8CQQYahlgz2bFiA+4eVNJbHJodPZ+/gXwPGh0bOqA+j8S+6+ckmvLGPk1QpxQ==", "dev": true, - "requires": { + "dependencies": { "aggregate-error": "^3.0.0" + }, + "engines": { + "node": ">=8" } }, - "p-try": { + "node_modules/p-try": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true + "dev": true, + "engines": { + "node": ">=6" + } }, - "package-hash": { + "node_modules/package-hash": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/package-hash/-/package-hash-4.0.0.tgz", "integrity": "sha512-whdkPIooSu/bASggZ96BWVvZTRMOFxnyUG5PnTSGKoJE2gd5mbVNmR2Nj20QFzxYYgAXpoqC+AiXzl+UMRh7zQ==", "dev": true, - "requires": { + "dependencies": { "graceful-fs": "^4.1.15", "hasha": "^5.0.0", "lodash.flattendeep": "^4.4.0", "release-zalgo": "^1.0.0" + }, + "engines": { + "node": ">=8" } }, - "parallel-transform": { + "node_modules/parallel-transform": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/parallel-transform/-/parallel-transform-1.2.0.tgz", "integrity": "sha512-P2vSmIu38uIlvdcU7fDkyrxj33gTUy/ABO5ZUbGowxNCopBq/OoD42bP4UmMrJoPyk4Uqf0mu3mtWBhHCZD8yg==", - "requires": { + "dependencies": { "cyclist": "^1.0.1", "inherits": "^2.0.3", "readable-stream": "^2.1.5" } }, - "parent-module": { + "node_modules/parent-module": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", "dev": true, - "requires": { + "dependencies": { "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" } }, - "path-exists": { + "node_modules/path-exists": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true + "dev": true, + "engines": { + "node": ">=8" + } }, - "path-is-absolute": { + "node_modules/path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "path-key": { + "node_modules/path-key": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true + "dev": true, + "engines": { + "node": ">=8" + } }, - "path-parse": { + "node_modules/path-parse": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", "dev": true }, - "picomatch": { + "node_modules/picomatch": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true + "dev": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } }, - "pkg-dir": { + "node_modules/pkg-dir": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", "dev": true, - "requires": { + "dependencies": { "find-up": "^4.0.0" }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-dir/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, "dependencies": { - "find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "requires": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - } - }, - "locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "requires": { - "p-locate": "^4.1.0" - } - }, - "p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "requires": { - "p-limit": "^2.2.0" - } - }, - "path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true - } + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-dir/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-dir/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-dir/node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "engines": { + "node": ">=8" } }, - "prelude-ls": { + "node_modules/prelude-ls": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.8.0" + } }, - "prettier": { + "node_modules/prettier": { "version": "2.6.2", "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.6.2.tgz", "integrity": "sha512-PkUpF+qoXTqhOeWL9fu7As8LXsIUZ1WYaJiY/a7McAQzxjk82OF0tibkFXVCDImZtWxbvojFjerkiLb0/q8mew==", - "dev": true + "dev": true, + "bin": { + "prettier": "bin-prettier.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } }, - "prettier-linter-helpers": { + "node_modules/prettier-linter-helpers": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", "dev": true, - "requires": { + "dependencies": { "fast-diff": "^1.1.2" + }, + "engines": { + "node": ">=6.0.0" } }, - "process-nextick-args": { + "node_modules/process-nextick-args": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" }, - "process-on-spawn": { + "node_modules/process-on-spawn": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/process-on-spawn/-/process-on-spawn-1.0.0.tgz", "integrity": "sha512-1WsPDsUSMmZH5LeMLegqkPDrsGgsWwk1Exipy2hvB0o/F0ASzbpIctSCcZIK1ykJvtTJULEH+20WOFjMvGnCTg==", "dev": true, - "requires": { + "dependencies": { "fromentries": "^1.2.0" + }, + "engines": { + "node": ">=8" } }, - "progress": { + "node_modules/progress": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", - "dev": true + "dev": true, + "engines": { + "node": ">=0.4.0" + } }, - "punycode": { + "node_modules/punycode": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", - "dev": true + "dev": true, + "engines": { + "node": ">=6" + } }, - "ramda": { + "node_modules/ramda": { "version": "0.27.1", "resolved": "https://registry.npmjs.org/ramda/-/ramda-0.27.1.tgz", "integrity": "sha512-PgIdVpn5y5Yns8vqb8FzBUEYn98V3xcPgawAkkgj0YJ0qDsnHCiNmZYfOGMgOvoB0eWFLpYbhxUR3mxfDIMvpw==", "dev": true }, - "randombytes": { + "node_modules/randombytes": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", "dev": true, - "requires": { + "dependencies": { "safe-buffer": "^5.1.0" } }, - "readable-stream": { + "node_modules/readable-stream": { "version": "2.3.7", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", - "requires": { + "dependencies": { "core-util-is": "~1.0.0", "inherits": "~2.0.3", "isarray": "~1.0.0", @@ -2210,192 +3701,361 @@ "util-deprecate": "~1.0.1" } }, - "readdirp": { + "node_modules/readdirp": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", "dev": true, - "requires": { + "dependencies": { "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/regexp.prototype.flags": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.1.tgz", + "integrity": "sha512-sy6TXMN+hnP/wMy+ISxg3krXx7BAtWVO4UouuCN/ziM9UEne0euamVNafDfvC83bRNr95y0V5iijeDQFUNpvrg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "set-function-name": "^2.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "regexpp": { + "node_modules/regexpp": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.1.0.tgz", "integrity": "sha512-ZOIzd8yVsQQA7j8GCSlPGXwg5PfmA1mrq0JP4nGhh54LaKN3xdai/vHUDu74pKwV8OxseMS65u2NImosQcSD0Q==", - "dev": true + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/mysticatea" + } }, - "release-zalgo": { + "node_modules/release-zalgo": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/release-zalgo/-/release-zalgo-1.0.0.tgz", "integrity": "sha1-CXALflB0Mpc5Mw5TXFqQ+2eFFzA=", "dev": true, - "requires": { + "dependencies": { "es6-error": "^4.0.1" + }, + "engines": { + "node": ">=4" } }, - "require-directory": { + "node_modules/require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "require-from-string": { + "node_modules/require-from-string": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "require-main-filename": { + "node_modules/require-main-filename": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", "dev": true }, - "resolve": { - "version": "1.17.0", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.17.0.tgz", - "integrity": "sha512-ic+7JYiV8Vi2yzQGFWOkiZD5Z9z7O2Zhm9XMaTxdJExKasieFCr+yXZ/WmXsckHiKl12ar0y6XiXDx3m4RHn1w==", + "node_modules/resolve": { + "version": "1.22.8", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", + "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", "dev": true, - "requires": { - "path-parse": "^1.0.6" + "dependencies": { + "is-core-module": "^2.13.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "resolve-from": { + "node_modules/resolve-from": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true + "dev": true, + "engines": { + "node": ">=4" + } }, - "rimraf": { + "node_modules/rimraf": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", "dev": true, - "requires": { + "dependencies": { "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "rollup": { + "node_modules/rollup": { "version": "2.74.1", "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.74.1.tgz", "integrity": "sha512-K2zW7kV8Voua5eGkbnBtWYfMIhYhT9Pel2uhBk2WO5eMee161nPze/XRfvEQPFYz7KgrCCnmh2Wy0AMFLGGmMA==", "dev": true, - "requires": { + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=10.0.0" + }, + "optionalDependencies": { "fsevents": "~2.3.2" } }, - "safe-buffer": { + "node_modules/safe-array-concat": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.0.1.tgz", + "integrity": "sha512-6XbUAseYE2KtOuGueyeobCySj9L4+66Tn6KQMOPQJrAJEowYKW/YR/MGJZl7FdydUdaFu4LYyDZjxf4/Nmo23Q==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.1", + "has-symbols": "^1.0.3", + "isarray": "^2.0.5" + }, + "engines": { + "node": ">=0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/safe-array-concat/node_modules/isarray": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", + "dev": true + }, + "node_modules/safe-buffer": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" }, - "semver": { + "node_modules/safe-regex-test": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz", + "integrity": "sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.3", + "is-regex": "^1.1.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/semver": { "version": "7.3.4", "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.4.tgz", "integrity": "sha512-tCfb2WLjqFAtXn4KEdxIhalnRtoKFN7nAwj0B3ZXCbQloV2tq5eDbcTmT68JJD3nRJq24/XgxtQKFIpQdtvmVw==", "dev": true, - "requires": { + "dependencies": { "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" } }, - "serialize-javascript": { + "node_modules/serialize-javascript": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz", "integrity": "sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==", "dev": true, - "requires": { + "dependencies": { "randombytes": "^2.1.0" } }, - "set-blocking": { + "node_modules/set-blocking": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", "dev": true }, - "shebang-command": { + "node_modules/set-function-length": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.1.1.tgz", + "integrity": "sha512-VoaqjbBJKiWtg4yRcKBQ7g7wnGnLV3M8oLvVWwOk2PdYY6PEFegR1vezXR0tw6fZGF9csVakIRjrJiy2veSBFQ==", + "dev": true, + "dependencies": { + "define-data-property": "^1.1.1", + "get-intrinsic": "^1.2.1", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/set-function-name": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.1.tgz", + "integrity": "sha512-tMNCiqYVkXIZgc2Hnoy2IvC/f8ezc5koaRFkCjrpWzGpCd3qbZXPzVy9MAZzK1ch/X0jvSkojys3oqJN0qCmdA==", + "dev": true, + "dependencies": { + "define-data-property": "^1.0.1", + "functions-have-names": "^1.2.3", + "has-property-descriptors": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", "dev": true, - "requires": { + "dependencies": { "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" } }, - "shebang-regex": { + "node_modules/shebang-regex": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/side-channel": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", + "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.0", + "get-intrinsic": "^1.0.2", + "object-inspect": "^1.9.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, - "signal-exit": { + "node_modules/signal-exit": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz", "integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==", "dev": true }, - "slice-ansi": { + "node_modules/slice-ansi": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", "dev": true, - "requires": { + "dependencies": { "ansi-styles": "^4.0.0", "astral-regex": "^2.0.0", "is-fullwidth-code-point": "^3.0.0" }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/slice-ansi?sponsor=1" + } + }, + "node_modules/slice-ansi/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/slice-ansi/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - } + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" } }, - "slow-stream": { + "node_modules/slice-ansi/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/slow-stream": { "version": "0.0.4", "resolved": "https://registry.npmjs.org/slow-stream/-/slow-stream-0.0.4.tgz", "integrity": "sha1-v8Ygyxbw1++s1VjfsUiWm40nedA=", + "deprecated": "no longer maintained", "dev": true }, - "source-map": { + "node_modules/source-map": { "version": "0.5.7", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "sourcemap-codec": { + "node_modules/sourcemap-codec": { "version": "1.4.8", "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz", "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==", + "deprecated": "Please use @jridgewell/sourcemap-codec instead", "dev": true }, - "spawn-wrap": { + "node_modules/spawn-wrap": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/spawn-wrap/-/spawn-wrap-2.0.0.tgz", "integrity": "sha512-EeajNjfN9zMnULLwhZZQU3GWBoFNkbngTUPfaawT4RkMiviTxcX0qfhVbGey39mfctfDHkWtuecgQ8NJcyQWHg==", "dev": true, - "requires": { + "dependencies": { "foreground-child": "^2.0.0", "is-windows": "^1.0.2", "make-dir": "^3.0.0", @@ -2403,79 +4063,161 @@ "signal-exit": "^3.0.2", "which": "^2.0.1" }, + "engines": { + "node": ">=8" + } + }, + "node_modules/spawn-wrap/node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, "dependencies": { - "rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "dev": true, - "requires": { - "glob": "^7.1.3" - } - } + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "sprintf-js": { + "node_modules/sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", "dev": true }, - "string-width": { + "node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/string-width": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.0.tgz", "integrity": "sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==", "dev": true, - "requires": { + "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" } }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "requires": { - "safe-buffer": "~5.1.0" + "node_modules/string.prototype.trim": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.8.tgz", + "integrity": "sha512-lfjY4HcixfQXOfaqCvcBuOIapyaroTXhbkfJN3gcB1OtyupngWK4sEET9Knd0cXd28kTUqu/kHoV4HKSJdnjiQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimend": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.7.tgz", + "integrity": "sha512-Ni79DqeB72ZFq1uH/L6zJ+DKZTkOtPIHovb3YZHQViE+HDouuU4mBrLOLDn5Dde3RF8qw5qVETEjhu9locMLvA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimstart": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.7.tgz", + "integrity": "sha512-NGhtDFu3jCEm7B4Fy0DpLewdJQOZcQ0rGbwQ/+stjnrp2i+rlKeCvos9hOIeCmqwratM47OBxY7uFZzjxHXmrg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "strip-ansi": { + "node_modules/strip-ansi": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", "dev": true, - "requires": { + "dependencies": { "ansi-regex": "^5.0.0" + }, + "engines": { + "node": ">=8" } }, - "strip-bom": { + "node_modules/strip-bom": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", - "dev": true + "dev": true, + "engines": { + "node": ">=8" + } }, - "strip-json-comments": { + "node_modules/strip-json-comments": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, - "supports-color": { + "node_modules/supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, - "requires": { + "dependencies": { "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "table": { + "node_modules/table": { "version": "6.7.1", "resolved": "https://registry.npmjs.org/table/-/table-6.7.1.tgz", "integrity": "sha512-ZGum47Yi6KOOFDE8m223td53ath2enHcYLgOCjGr5ngu8bdIARQk6mN/wRMv4yMRcHnCSnHbCEha4sobQx5yWg==", "dev": true, - "requires": { + "dependencies": { "ajv": "^8.0.1", "lodash.clonedeep": "^4.5.0", "lodash.truncate": "^4.4.2", @@ -2483,209 +4225,403 @@ "string-width": "^4.2.0", "strip-ansi": "^6.0.0" }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/table/node_modules/ajv": { + "version": "8.6.3", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.6.3.tgz", + "integrity": "sha512-SMJOdDP6LqTkD0Uq8qLi+gMwSt0imXLSV080qFVwJCpH9U6Mb+SUGHAXM0KNbcBPguytWyvFxcHgMLe2D2XSpw==", + "dev": true, "dependencies": { - "ajv": { - "version": "8.6.3", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.6.3.tgz", - "integrity": "sha512-SMJOdDP6LqTkD0Uq8qLi+gMwSt0imXLSV080qFVwJCpH9U6Mb+SUGHAXM0KNbcBPguytWyvFxcHgMLe2D2XSpw==", - "dev": true, - "requires": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - } - }, - "json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "dev": true - } + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" } }, - "test-exclude": { + "node_modules/table/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + }, + "node_modules/test-exclude": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", "dev": true, - "requires": { + "dependencies": { "@istanbuljs/schema": "^0.1.2", "glob": "^7.1.4", "minimatch": "^3.0.4" + }, + "engines": { + "node": ">=8" } }, - "text-table": { + "node_modules/text-table": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=", "dev": true }, - "to-fast-properties": { + "node_modules/to-fast-properties": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=", - "dev": true + "dev": true, + "engines": { + "node": ">=4" + } }, - "to-regex-range": { + "node_modules/to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", "dev": true, - "requires": { + "dependencies": { "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/tsconfig-paths": { + "version": "3.14.2", + "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz", + "integrity": "sha512-o/9iXgCYc5L/JxCHPe3Hvh8Q/2xm5Z+p18PESBU6Ff33695QnCHBEjcytY2q19ua7Mbl/DavtBOLq+oG0RCL+g==", + "dev": true, + "dependencies": { + "@types/json5": "^0.0.29", + "json5": "^1.0.2", + "minimist": "^1.2.6", + "strip-bom": "^3.0.0" + } + }, + "node_modules/tsconfig-paths/node_modules/json5": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", + "dev": true, + "dependencies": { + "minimist": "^1.2.0" + }, + "bin": { + "json5": "lib/cli.js" + } + }, + "node_modules/tsconfig-paths/node_modules/strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", + "dev": true, + "engines": { + "node": ">=4" } }, - "type-check": { + "node_modules/type-check": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", "dev": true, - "requires": { + "dependencies": { "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" } }, - "type-fest": { + "node_modules/type-fest": { "version": "0.8.1", "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", - "dev": true + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/typed-array-buffer": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.0.tgz", + "integrity": "sha512-Y8KTSIglk9OZEr8zywiIHG/kmQ7KWyjseXs1CbSo8vC42w7hg2HgYTxSWwP0+is7bWDc1H+Fo026CpHFwm8tkw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.1", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/typed-array-byte-length": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.0.tgz", + "integrity": "sha512-Or/+kvLxNpeQ9DtSydonMxCx+9ZXOswtwJn17SNLvhptaXYDJvkFFP5zbfU/uLmvnBJlI4yrnXRxpdWH/M5tNA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "has-proto": "^1.0.1", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typed-array-byte-offset": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.0.tgz", + "integrity": "sha512-RD97prjEt9EL8YgAgpOkf3O4IF9lhJFr9g0htQkm0rchFp/Vx7LW5Q8fSXXub7BXAODyUQohRMyOc3faCPd0hg==", + "dev": true, + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "has-proto": "^1.0.1", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typed-array-length": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz", + "integrity": "sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "is-typed-array": "^1.1.9" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, - "typedarray-to-buffer": { + "node_modules/typedarray-to-buffer": { "version": "3.1.5", "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", "dev": true, - "requires": { + "dependencies": { "is-typedarray": "^1.0.0" } }, - "uri-js": { + "node_modules/unbox-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", + "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-bigints": "^1.0.2", + "has-symbols": "^1.0.3", + "which-boxed-primitive": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/uri-js": { "version": "4.4.1", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", "dev": true, - "requires": { + "dependencies": { "punycode": "^2.1.0" } }, - "util-deprecate": { + "node_modules/util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" }, - "uuid": { + "node_modules/uuid": { "version": "3.4.0", "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", - "dev": true + "deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.", + "dev": true, + "bin": { + "uuid": "bin/uuid" + } }, - "v8-compile-cache": { + "node_modules/v8-compile-cache": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.2.0.tgz", "integrity": "sha512-gTpR5XQNKFwOd4clxfnhaqvfqMpqEwr4tOtCyz4MtYZX2JYhfr1JvBFKdS+7K/9rfpZR3VLX+YWBbKoxCgS43Q==", "dev": true }, - "which": { + "node_modules/which": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", "dev": true, - "requires": { + "dependencies": { "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/which-boxed-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", + "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", + "dev": true, + "dependencies": { + "is-bigint": "^1.0.1", + "is-boolean-object": "^1.1.0", + "is-number-object": "^1.0.4", + "is-string": "^1.0.5", + "is-symbol": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "which-module": { + "node_modules/which-module": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", "dev": true }, - "word-wrap": { + "node_modules/which-typed-array": { + "version": "1.1.13", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.13.tgz", + "integrity": "sha512-P5Nra0qjSncduVPEAr7xhoF5guty49ArDTwzJ/yNuPIbZppyRxFQsRCWrocxIY+CnMVG+qfbU2FmDKyvSGClow==", + "dev": true, + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.4", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/word-wrap": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "workerpool": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.2.0.tgz", - "integrity": "sha512-Rsk5qQHJ9eowMH28Jwhe8HEbmdYDX4lwoMWshiCXugjtHqMD9ZbiqSDLxcsfdqsETPzVUtX5s1Z5kStiIM6l4A==", + "node_modules/workerpool": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.2.1.tgz", + "integrity": "sha512-ILEIE97kDZvF9Wb9f6h5aXK4swSlKGUcOEGiIYb2OOu/IrDU9iwj0fD//SsA6E5ibwJxpEvhullJY4Sl4GcpAw==", "dev": true }, - "wrap-ansi": { + "node_modules/wrap-ansi": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", "dev": true, - "requires": { + "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", "strip-ansi": "^6.0.0" }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - } + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" } }, - "wrappy": { + "node_modules/wrap-ansi/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", "dev": true }, - "write-file-atomic": { + "node_modules/write-file-atomic": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", "dev": true, - "requires": { + "dependencies": { "imurmurhash": "^0.1.4", "is-typedarray": "^1.0.0", "signal-exit": "^3.0.2", "typedarray-to-buffer": "^3.1.5" } }, - "y18n": { + "node_modules/y18n": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", "dev": true }, - "yallist": { + "node_modules/yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", "dev": true }, - "yargs": { + "node_modules/yargs": { "version": "16.2.0", "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", "dev": true, - "requires": { + "dependencies": { "cliui": "^7.0.2", "escalade": "^3.1.1", "get-caller-file": "^2.0.5", @@ -2694,52 +4630,78 @@ "y18n": "^5.0.5", "yargs-parser": "^20.2.2" }, - "dependencies": { - "y18n": { - "version": "5.0.5", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.5.tgz", - "integrity": "sha512-hsRUr4FFrvhhRH12wOdfs38Gy7k2FFzB9qgN9v3aLykRq0dRcdcpz5C9FxdS2NuhOrI/628b/KSTJ3rwHysYSg==", - "dev": true - } + "engines": { + "node": ">=10" } }, - "yargs-parser": { + "node_modules/yargs-parser": { "version": "20.2.4", "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.4.tgz", "integrity": "sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA==", - "dev": true + "dev": true, + "engines": { + "node": ">=10" + } }, - "yargs-unparser": { + "node_modules/yargs-unparser": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-2.0.0.tgz", "integrity": "sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==", "dev": true, - "requires": { + "dependencies": { "camelcase": "^6.0.0", "decamelize": "^4.0.0", "flat": "^5.0.2", "is-plain-obj": "^2.1.0" }, - "dependencies": { - "camelcase": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.2.0.tgz", - "integrity": "sha512-c7wVvbw3f37nuobQNtgsgG9POC9qMbNuMQmTCqZv23b6MIz0fcYpBiOlv9gEN/hdLdnZTDQhg6e9Dq5M1vKvfg==", - "dev": true - }, - "decamelize": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz", - "integrity": "sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==", - "dev": true - } + "engines": { + "node": ">=10" + } + }, + "node_modules/yargs-unparser/node_modules/camelcase": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.2.0.tgz", + "integrity": "sha512-c7wVvbw3f37nuobQNtgsgG9POC9qMbNuMQmTCqZv23b6MIz0fcYpBiOlv9gEN/hdLdnZTDQhg6e9Dq5M1vKvfg==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/yargs-unparser/node_modules/decamelize": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz", + "integrity": "sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/yargs/node_modules/y18n": { + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.5.tgz", + "integrity": "sha512-hsRUr4FFrvhhRH12wOdfs38Gy7k2FFzB9qgN9v3aLykRq0dRcdcpz5C9FxdS2NuhOrI/628b/KSTJ3rwHysYSg==", + "dev": true, + "engines": { + "node": ">=10" } }, - "yocto-queue": { + "node_modules/yocto-queue": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } } } } diff --git a/package.json b/package.json index 76b1dd6..fcd699d 100644 --- a/package.json +++ b/package.json @@ -13,21 +13,22 @@ "transform", "parallel" ], - "main": "./index.js", - "module": "./dist/bundle.mjs", + "main": "dist/cjs/index.js", + "module": "dist/mjs/index.js", "exports": { ".": { - "require": "./index.js", - "import": "./dist/bundle.mjs" + "import": "./dist/mjs/index.js", + "require": "./dist/cjs/index.js" } }, "scripts": { - "build": "npx rollup --config rollup.config.mjs", + "build": "npx rollup --config rollup.mjs.config.mjs && npx rollup --config rollup.cjs.config.mjs && bash .tools/create-per-distribution-package-json.sh", "hooks": "git config core.hooksPath .tools/git-hooks && chmod +x .tools/git-hooks/*", "test": "mocha --recursive --exit --timeout 1000 test/", "coverage": "nyc --temp-dir .coverage/.nyc_output --report-dir .coverage --reporter=lcov --reporter=html npm test", - "lint": "eslint index.js test/", - "release": "bash .tools/release.sh master" + "lint": "eslint index.mjs test/", + "release": "bash .tools/release.sh master", + "clean": "rm -rf dist/" }, "repository": { "type": "git", @@ -47,10 +48,11 @@ "@rollup/plugin-commonjs": "22.0.0", "eslint": "7.32.0", "eslint-config-prettier": "8.3.0", + "eslint-plugin-import": "2.29.0", "eslint-plugin-mocha": "9.0.0", "eslint-plugin-node": "11.1.0", "eslint-plugin-prettier": "4.0.0", - "mocha": "9.2.2", + "mocha": "10.2.0", "nyc": "15.1.0", "prettier": "2.6.2", "rollup": "2.74.1", diff --git a/rollup.cjs.config.mjs b/rollup.cjs.config.mjs new file mode 100644 index 0000000..7288a07 --- /dev/null +++ b/rollup.cjs.config.mjs @@ -0,0 +1,11 @@ +import commonjs from "@rollup/plugin-commonjs"; + +export default { + input: "./index.mjs", + output: { + file: "./dist/cjs/index.js", + format: "cjs", + sourcemap: true, + }, + plugins: [commonjs()], +}; diff --git a/rollup.config.mjs b/rollup.config.mjs deleted file mode 100644 index ec2a176..0000000 --- a/rollup.config.mjs +++ /dev/null @@ -1,11 +0,0 @@ -import commonjs from '@rollup/plugin-commonjs'; - -export default { - input: './index.js', - output: { - file: './dist/bundle.mjs', - format: 'esm', - sourcemap: true - }, - plugins: [commonjs()] -}; diff --git a/rollup.mjs.config.mjs b/rollup.mjs.config.mjs new file mode 100644 index 0000000..b1dd08e --- /dev/null +++ b/rollup.mjs.config.mjs @@ -0,0 +1,8 @@ +export default { + input: "./index.mjs", + output: { + file: "./dist/mjs/index.js", + format: "esm", + sourcemap: true, + }, +}; diff --git a/test/accumulateData-test.js b/test/accumulateData-test.mjs similarity index 92% rename from test/accumulateData-test.js rename to test/accumulateData-test.mjs index 8801e04..f1580a2 100644 --- a/test/accumulateData-test.js +++ b/test/accumulateData-test.mjs @@ -1,6 +1,6 @@ -const assert = require("assert"); -const { accumulateData, writeData } = require("../index"); -const { createStream } = require("./testUtils.js"); +import assert from "assert"; +import { accumulateData, writeData } from "../index.mjs"; +import { createStream } from "./testUtils.mjs"; describe("accumulateData", () => { it("can accumulateData by grouping them (flush)", (done) => { diff --git a/test/compose-test.js b/test/compose-test.mjs similarity index 94% rename from test/compose-test.js rename to test/compose-test.mjs index b364962..047b9c6 100644 --- a/test/compose-test.js +++ b/test/compose-test.mjs @@ -1,8 +1,7 @@ -const assert = require("assert"); -const { createStream } = require("./testUtils.js"); -const { compose, transformData, writeData, oleoduc, flattenArray } = require("../index"); -// eslint-disable-next-line node/no-unpublished-require -const SlowStream = require("slow-stream"); +import assert from "assert"; +import SlowStream from "slow-stream"; +import { createStream } from "./testUtils.mjs"; +import { compose, transformData, writeData, oleoduc, flattenArray } from "../index.mjs"; describe("compose", () => { it("can compose streams", (done) => { diff --git a/test/concatStreams-test.js b/test/concatStreams-test.mjs similarity index 91% rename from test/concatStreams-test.js rename to test/concatStreams-test.mjs index 4f5067c..264f195 100644 --- a/test/concatStreams-test.js +++ b/test/concatStreams-test.mjs @@ -1,7 +1,6 @@ -const assert = require("assert"); -const { concatStreams, writeData } = require("../index"); -const { streamArray } = require("./testUtils"); -const { delay } = require("./testUtils.js"); +import assert from "assert"; +import { concatStreams, writeData } from "../index.mjs"; +import { delay, streamArray } from "./testUtils.mjs"; describe("concatStreams", () => { it("can concat streams", (done) => { diff --git a/test/filterData-tests.js b/test/filterData-tests.mjs similarity index 93% rename from test/filterData-tests.js rename to test/filterData-tests.mjs index 1d57c01..454815c 100644 --- a/test/filterData-tests.js +++ b/test/filterData-tests.mjs @@ -1,6 +1,6 @@ -const assert = require("assert"); -const { createStream } = require("./testUtils.js"); -const { filterData } = require("../index"); +import assert from "assert"; +import { createStream } from "./testUtils.mjs"; +import { filterData } from "../index.mjs"; describe("filterData", () => { it("should filter (ignore empty)", (done) => { diff --git a/test/flattenArray-test.js b/test/flattenArray-test.mjs similarity index 86% rename from test/flattenArray-test.js rename to test/flattenArray-test.mjs index 1f06c1d..1d5cfb9 100644 --- a/test/flattenArray-test.js +++ b/test/flattenArray-test.mjs @@ -1,7 +1,7 @@ -const assert = require("assert"); -const { flattenArray, accumulateData, writeData } = require("../index"); -const { streamArray } = require("./testUtils"); -const SlowStream = require("slow-stream"); // eslint-disable-line node/no-unpublished-require +import assert from "assert"; +import SlowStream from "slow-stream"; +import { flattenArray, accumulateData, writeData } from "../index.mjs"; +import { streamArray } from "./testUtils.mjs"; describe("flattenArray", () => { it("can flat map an array", (done) => { diff --git a/test/groupData-test.js b/test/groupData-test.mjs similarity index 87% rename from test/groupData-test.js rename to test/groupData-test.mjs index 3703ffd..60e6906 100644 --- a/test/groupData-test.js +++ b/test/groupData-test.mjs @@ -1,6 +1,6 @@ -const assert = require("assert"); -const { createStream } = require("./testUtils.js"); -const { groupData, writeData } = require("../index"); +import assert from "assert"; +import { createStream } from "./testUtils.mjs"; +import { groupData, writeData } from "../index.mjs"; describe("groupData", () => { it("can create group of data", (done) => { diff --git a/test/mergeStreams-test.js b/test/mergeStreams-test.mjs similarity index 83% rename from test/mergeStreams-test.js rename to test/mergeStreams-test.mjs index 684c381..a890919 100644 --- a/test/mergeStreams-test.js +++ b/test/mergeStreams-test.mjs @@ -1,6 +1,6 @@ -const assert = require("assert"); -const { mergeStreams, writeData } = require("../index"); -const { streamArray } = require("./testUtils"); +import assert from "assert"; +import { mergeStreams, writeData } from "../index.mjs"; +import { streamArray } from "./testUtils.mjs"; describe("mergeStreams", () => { it("can merge streams", (done) => { diff --git a/test/oleoduc-test.js b/test/oleoduc-test.mjs similarity index 95% rename from test/oleoduc-test.js rename to test/oleoduc-test.mjs index ff4e8f5..ca343aa 100644 --- a/test/oleoduc-test.js +++ b/test/oleoduc-test.mjs @@ -1,7 +1,6 @@ -const assert = require("assert"); -const { createStream } = require("./testUtils.js"); -const { oleoduc, transformData, writeData, compose } = require("../index"); -const { delay } = require("./testUtils"); +import assert from "assert"; +import { createStream, delay } from "./testUtils.mjs"; +import { oleoduc, transformData, writeData, compose } from "../index.mjs"; describe("oleoduc", () => { it("can create oleoduc", async () => { diff --git a/test/parallel-test.js b/test/parallel-test.mjs similarity index 95% rename from test/parallel-test.js rename to test/parallel-test.mjs index b436f07..9934445 100644 --- a/test/parallel-test.js +++ b/test/parallel-test.mjs @@ -1,7 +1,7 @@ -const assert = require("assert"); -const { createStream } = require("./testUtils.js"); -const { transformData, writeData, filterData } = require("../index"); -const { delay } = require("./testUtils"); +import assert from "assert"; +import { createStream } from "./testUtils.mjs"; +import { transformData, writeData, filterData } from "../index.mjs"; +import { delay } from "./testUtils.mjs"; describe("parallel", () => { it("can run parallel task with order preserved", (done) => { diff --git a/test/pipeline-test.js b/test/pipeline-test.mjs similarity index 87% rename from test/pipeline-test.js rename to test/pipeline-test.mjs index ec98ca2..ecf18c2 100644 --- a/test/pipeline-test.js +++ b/test/pipeline-test.mjs @@ -1,9 +1,8 @@ -const assert = require("assert"); -const { pipeline } = require("stream"); -const { createStream } = require("./testUtils.js"); -const { promisify } = require("util"); -const { transformData, writeData } = require("../index"); -const { delay } = require("./testUtils"); +import assert from "assert"; +import { pipeline } from "stream"; +import { promisify } from "util"; +import { createStream, delay } from "./testUtils.mjs"; +import { transformData, writeData } from "../index.mjs"; describe("pipeline", () => { it("can create pipeline from stream", (done) => { diff --git a/test/readLineByLine-test.js b/test/readLineByLine-test.mjs similarity index 92% rename from test/readLineByLine-test.js rename to test/readLineByLine-test.mjs index 1a47038..ef788c3 100644 --- a/test/readLineByLine-test.js +++ b/test/readLineByLine-test.mjs @@ -1,6 +1,6 @@ -const assert = require("assert"); -const { createStream } = require("./testUtils.js"); -const { readLineByLine, writeData, oleoduc } = require("../index"); +import assert from "assert"; +import { createStream } from "./testUtils.mjs"; +import { readLineByLine, writeData, oleoduc } from "../index.mjs"; describe("readLineByLine", () => { it("can read a stream line by line", (done) => { diff --git a/test/testUtils.js b/test/testUtils.mjs similarity index 62% rename from test/testUtils.js rename to test/testUtils.mjs index 88e6c55..3265ec4 100644 --- a/test/testUtils.js +++ b/test/testUtils.mjs @@ -1,6 +1,6 @@ -const { Readable } = require("stream"); +import { Readable } from "stream"; -function delay(callback, delay) { +export function delay(callback, delay) { return new Promise((resolve) => { return setTimeout(async () => { resolve(callback()); @@ -8,7 +8,7 @@ function delay(callback, delay) { }); } -function streamArray(items) { +export function streamArray(items) { return new Readable({ objectMode: true, read() { @@ -17,15 +17,9 @@ function streamArray(items) { }); } -function createStream() { +export function createStream() { return new Readable({ objectMode: true, read() {}, }); } - -module.exports = { - createStream, - streamArray, - delay, -}; diff --git a/test/toAsyncIterator-test.js b/test/toAsyncIterator-test.mjs similarity index 82% rename from test/toAsyncIterator-test.js rename to test/toAsyncIterator-test.mjs index d4e9186..ce4aee8 100644 --- a/test/toAsyncIterator-test.js +++ b/test/toAsyncIterator-test.mjs @@ -1,7 +1,7 @@ -const assert = require("assert"); -const { createStream } = require("./testUtils.js"); -const { toAsyncIterator } = require("../lib/utils/toAsyncIterator"); -const { transformData, oleoduc } = require("../index"); +import assert from "assert"; +import { createStream } from "./testUtils.mjs"; +import { toAsyncIterator } from "../lib/utils/toAsyncIterator.mjs"; +import { transformData, oleoduc } from "../index.mjs"; describe("toAsyncIterator", () => { it("can convert a readable stream into an iterator", async () => { diff --git a/test/transformData-test.js b/test/transformData-test.mjs similarity index 93% rename from test/transformData-test.js rename to test/transformData-test.mjs index 8092b94..bd4a257 100644 --- a/test/transformData-test.js +++ b/test/transformData-test.mjs @@ -1,6 +1,6 @@ -const assert = require("assert"); -const { createStream } = require("./testUtils.js"); -const { transformData, writeData } = require("../index"); +import assert from "assert"; +import { createStream } from "./testUtils.mjs"; +import { transformData, writeData } from "../index.mjs"; describe("transformData", () => { it("should transformData", (done) => { diff --git a/test/transformIntoCSV-test.js b/test/transformIntoCSV-test.mjs similarity index 95% rename from test/transformIntoCSV-test.js rename to test/transformIntoCSV-test.mjs index b7240bf..c377c6b 100644 --- a/test/transformIntoCSV-test.js +++ b/test/transformIntoCSV-test.mjs @@ -1,7 +1,6 @@ -const assert = require("assert"); -const { createStream } = require("./testUtils.js"); -const { transformIntoCSV, writeData } = require("../index"); -const { delay } = require("./testUtils"); +import assert from "assert"; +import { createStream, delay } from "./testUtils.mjs"; +import { transformIntoCSV, writeData } from "../index.mjs"; describe("transformIntoCSV", () => { it("should transform object into a csv", (done) => { diff --git a/test/transformIntoJSON-test.js b/test/transformIntoJSON-test.mjs similarity index 95% rename from test/transformIntoJSON-test.js rename to test/transformIntoJSON-test.mjs index 9be7488..f22cf23 100644 --- a/test/transformIntoJSON-test.js +++ b/test/transformIntoJSON-test.mjs @@ -1,6 +1,6 @@ -const assert = require("assert"); -const { createStream } = require("./testUtils.js"); -const { transformIntoJSON } = require("../index"); +import assert from "assert"; +import { createStream } from "./testUtils.mjs"; +import { transformIntoJSON } from "../index.mjs"; describe("transformIntoJSON", () => { it("can stream a json array", (done) => { diff --git a/test/transformStream-test.js b/test/transformStream-test.mjs similarity index 87% rename from test/transformStream-test.js rename to test/transformStream-test.mjs index 6c33819..a31ccb2 100644 --- a/test/transformStream-test.js +++ b/test/transformStream-test.mjs @@ -1,8 +1,8 @@ -const assert = require("assert"); -const { streamArray, createStream, delay } = require("./testUtils.js"); -const { writeData } = require("../index.js"); -const { transformStream } = require("../lib/transformStream.js"); -const SlowStream = require("slow-stream"); // eslint-disable-line node/no-unpublished-require +import assert from "assert"; +import SlowStream from "slow-stream"; +import { streamArray, createStream, delay } from "./testUtils.mjs"; +import { writeData } from "../index.mjs"; +import { transformStream } from "../lib/transformStream.mjs"; describe("transformStream", () => { it("should transform data into a stream", (done) => { diff --git a/test/writeData-test.js b/test/writeData-test.mjs similarity index 94% rename from test/writeData-test.js rename to test/writeData-test.mjs index 8d8897d..62ca799 100644 --- a/test/writeData-test.js +++ b/test/writeData-test.mjs @@ -1,6 +1,6 @@ -const assert = require("assert"); -const { createStream } = require("./testUtils.js"); -const { writeData } = require("../index"); +import assert from "assert"; +import { createStream } from "./testUtils.mjs"; +import { writeData } from "../index.mjs"; describe("writeData", () => { it("should writeData", (done) => { diff --git a/test/writeToStdout-test.js b/test/writeToStdout-test.mjs similarity index 78% rename from test/writeToStdout-test.js rename to test/writeToStdout-test.mjs index ea191a4..f1d4c52 100644 --- a/test/writeToStdout-test.js +++ b/test/writeToStdout-test.mjs @@ -1,5 +1,5 @@ -const { createStream } = require("./testUtils.js"); -const { writeToStdout } = require("../index"); +import { createStream } from "./testUtils.mjs"; +import { writeToStdout } from "../index.mjs"; describe("writeToStdout", () => { it("should write to stdout", (done) => { From 0558e4e6a77815e98949efbd2c2ad332ba3cdd3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Gu=C3=A9rout?= Date: Fri, 24 Nov 2023 00:01:32 +0100 Subject: [PATCH 02/12] Move to typescript --- .eslintrc | 37 - .eslintrc.json | 55 + .mocharc.json | 7 + .tools/build.sh | 27 + .../create-per-distribution-package-json.sh | 17 - index.mjs | 33 - package-lock.json | 2854 ++++++++++++----- package.json | 29 +- rollup.cjs.config.mjs | 11 - rollup.mjs.config.mjs | 8 - .../accumulateData.ts | 2 +- lib/compose.mjs => src/compose.ts | 4 +- lib/concatStreams.mjs => src/concatStreams.ts | 5 +- lib/filterData.mjs => src/filterData.ts | 2 +- lib/flattenArray.mjs => src/flattenArray.ts | 2 + lib/groupData.mjs => src/groupData.ts | 6 +- src/index.ts | 33 + lib/mergeStreams.mjs => src/mergeStreams.ts | 4 +- lib/oleoduc.mjs => src/oleoduc.ts | 10 +- .../readLineByLine.ts | 10 +- lib/transformData.mjs => src/transformData.ts | 2 +- .../transformIntoCSV.ts | 2 +- .../transformIntoJSON.ts | 2 +- .../transformStream.ts | 4 +- .../Duplexer.mjs => src/utils/Duplexer.ts | 2 + .../utils/decorateWithAsyncIterator.ts | 2 +- .../utils/decorateWithPromise.ts | 2 + .../parseArgs.mjs => src/utils/parseArgs.ts | 0 .../utils/toAsyncIterator.ts | 5 +- lib/writeData.mjs => src/writeData.ts | 7 +- lib/writeToStdout.mjs => src/writeToStdout.ts | 0 ...teData-test.mjs => accumulateData-test.ts} | 18 +- test/{compose-test.mjs => compose-test.ts} | 60 +- ...Streams-test.mjs => concatStreams-test.ts} | 16 +- ...lterData-tests.mjs => filterData-tests.ts} | 20 +- ...tenArray-test.mjs => flattenArray-test.ts} | 18 +- .../{groupData-test.mjs => groupData-test.ts} | 14 +- ...eStreams-test.mjs => mergeStreams-test.ts} | 10 +- test/{oleoduc-test.mjs => oleoduc-test.ts} | 56 +- test/{parallel-test.mjs => parallel-test.ts} | 59 +- test/{pipeline-test.mjs => pipeline-test.ts} | 22 +- ...ByLine-test.mjs => readLineByLine-test.ts} | 24 +- test/{testUtils.mjs => testUtils.ts} | 2 +- ...rator-test.mjs => toAsyncIterator-test.ts} | 16 +- ...ormData-test.mjs => transformData-test.ts} | 28 +- ...oCSV-test.mjs => transformIntoCSV-test.ts} | 40 +- ...SON-test.mjs => transformIntoJSON-test.ts} | 18 +- ...tream-test.mjs => transformStream-test.ts} | 27 +- .../{writeData-test.mjs => writeData-test.ts} | 36 +- ...oStdout-test.mjs => writeToStdout-test.ts} | 4 +- tsconfig.cjs.json | 9 + tsconfig.json | 16 + tsconfig.test.json | 8 + 53 files changed, 2521 insertions(+), 1184 deletions(-) delete mode 100644 .eslintrc create mode 100644 .eslintrc.json create mode 100644 .mocharc.json create mode 100644 .tools/build.sh delete mode 100644 .tools/create-per-distribution-package-json.sh delete mode 100644 index.mjs delete mode 100644 rollup.cjs.config.mjs delete mode 100644 rollup.mjs.config.mjs rename lib/accumulateData.mjs => src/accumulateData.ts (91%) rename lib/compose.mjs => src/compose.ts (61%) rename lib/concatStreams.mjs => src/concatStreams.ts (90%) rename lib/filterData.mjs => src/filterData.ts (69%) rename lib/flattenArray.mjs => src/flattenArray.ts (97%) rename lib/groupData.mjs => src/groupData.ts (84%) create mode 100644 src/index.ts rename lib/mergeStreams.mjs => src/mergeStreams.ts (91%) rename lib/oleoduc.mjs => src/oleoduc.ts (92%) rename lib/readLineByLine.mjs => src/readLineByLine.ts (70%) rename lib/transformData.mjs => src/transformData.ts (88%) rename lib/transformIntoCSV.mjs => src/transformIntoCSV.ts (95%) rename lib/transformIntoJSON.mjs => src/transformIntoJSON.ts (96%) rename lib/transformStream.mjs => src/transformStream.ts (95%) rename lib/utils/Duplexer.mjs => src/utils/Duplexer.ts (93%) rename lib/utils/decorateWithAsyncIterator.mjs => src/utils/decorateWithAsyncIterator.ts (67%) rename lib/utils/decorateWithPromise.mjs => src/utils/decorateWithPromise.ts (92%) rename lib/utils/parseArgs.mjs => src/utils/parseArgs.ts (100%) rename lib/utils/toAsyncIterator.mjs => src/utils/toAsyncIterator.ts (85%) rename lib/writeData.mjs => src/writeData.ts (93%) rename lib/writeToStdout.mjs => src/writeToStdout.ts (100%) rename test/{accumulateData-test.mjs => accumulateData-test.ts} (80%) rename test/{compose-test.mjs => compose-test.ts} (76%) rename test/{concatStreams-test.mjs => concatStreams-test.ts} (79%) rename test/{filterData-tests.mjs => filterData-tests.ts} (79%) rename test/{flattenArray-test.mjs => flattenArray-test.ts} (79%) rename test/{groupData-test.mjs => groupData-test.ts} (74%) rename test/{mergeStreams-test.mjs => mergeStreams-test.ts} (71%) rename test/{oleoduc-test.mjs => oleoduc-test.ts} (71%) rename test/{parallel-test.mjs => parallel-test.ts} (78%) rename test/{pipeline-test.mjs => pipeline-test.ts} (82%) rename test/{readLineByLine-test.mjs => readLineByLine-test.ts} (77%) rename test/{testUtils.mjs => testUtils.ts} (91%) rename test/{toAsyncIterator-test.mjs => toAsyncIterator-test.ts} (68%) rename test/{transformData-test.mjs => transformData-test.ts} (78%) rename test/{transformIntoCSV-test.mjs => transformIntoCSV-test.ts} (80%) rename test/{transformIntoJSON-test.mjs => transformIntoJSON-test.ts} (79%) rename test/{transformStream-test.mjs => transformStream-test.ts} (78%) rename test/{writeData-test.mjs => writeData-test.ts} (74%) rename test/{writeToStdout-test.mjs => writeToStdout-test.ts} (79%) create mode 100644 tsconfig.cjs.json create mode 100644 tsconfig.json create mode 100644 tsconfig.test.json diff --git a/.eslintrc b/.eslintrc deleted file mode 100644 index ea68209..0000000 --- a/.eslintrc +++ /dev/null @@ -1,37 +0,0 @@ -{ - "root": true, - "extends": [ - "eslint:recommended", - "plugin:node/recommended", - "plugin:prettier/recommended" - ], - "parserOptions": { - "ecmaVersion": 2018 - }, - "env": { - "node": true, - "es6": true, - "mocha": true - }, - "plugins": [ - "mocha", - "import" - ], - "rules": { - "import/extensions": [ - "error", - "always" - ], - "mocha/no-skipped-tests": "error", - "mocha/no-exclusive-tests": "error", - "node/no-unpublished-import": [ - "error", - { - "allowModules": [ - "slow-stream", - "@rollup/plugin-commonjs" - ] - } - ] - } -} diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..d77a7b8 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,55 @@ +{ + "root": true, + "extends": [ + "eslint:recommended", + "plugin:import/recommended", + "plugin:import/typescript", + "plugin:node/recommended", + "plugin:@typescript-eslint/recommended", + "plugin:prettier/recommended" + ], + "parser": "@typescript-eslint/parser", + "parserOptions": { + "project": ["tsconfig.test.json"], + "sourceType": "module" + }, + "settings": { + "import/resolver": { + "typescript": true, + "node": true + } + }, + "plugins": [ + "@typescript-eslint", + "mocha" + ], + "env": { + "node": true, + "es6": true, + "mocha": true + }, + "rules": { + "quote-props": ["error", "consistent"], + "mocha/no-skipped-tests": "error", + "mocha/no-exclusive-tests": "error", + "node/no-unpublished-import": [ + "error", { + "allowModules": ["slow-stream"] + } + ], + "node/no-unsupported-features/es-syntax": [ + "error", + { + "version": ">=13.0.0", + "ignores": ["modules"] + } + ], + "node/no-missing-import": [ + "error", { + "allowModules": [], + "resolvePaths": ["/path/to/a/modules/directory"], + "tryExtensions": [".js", ".ts"] + } + ] + } +} diff --git a/.mocharc.json b/.mocharc.json new file mode 100644 index 0000000..de04a6c --- /dev/null +++ b/.mocharc.json @@ -0,0 +1,7 @@ +{ + "extension": ["ts"], + "node-option": [ + "experimental-specifier-resolution=node", + "loader=ts-node/esm" + ] +} diff --git a/.tools/build.sh b/.tools/build.sh new file mode 100644 index 0000000..dc5eeee --- /dev/null +++ b/.tools/build.sh @@ -0,0 +1,27 @@ +#!/usr/bin/env bash +set -euo pipefail + +readonly PROJECT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/.." + +rm -rf "${PROJECT_DIR}/dist" + +cd "${PROJECT_DIR}" + +echo "Building oleoduc (esm version)..." +tsc -p tsconfig.json +cat >"./dist/mjs/package.json" <"./dist/cjs/package.json" <"${PROJECT_DIR}/dist/cjs/package.json" <"${PROJECT_DIR}/dist/mjs/package.json" <= 10" } }, + "node_modules/@aashutoshrathi/word-wrap": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", + "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@ampproject/remapping": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz", + "integrity": "sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==", + "dev": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, "node_modules/@babel/code-frame": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.1.tgz", - "integrity": "sha512-IGhtTmpjGbYzcEDOw7DcQtbQSXcG9ftmAXtWTu9V936vDye4xjjekktFAtgZsWpzTj/X01jocB46mTywm/4SZw==", + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.23.4.tgz", + "integrity": "sha512-r1IONyb6Ia+jYR2vvIDhdWdlTGhqbBoFqLTQidzZ4kepUFH15ejXvFHxCVbtl7BOXIudsIubf4E81xeA3h3IXA==", + "dev": true, + "dependencies": { + "@babel/highlight": "^7.23.4", + "chalk": "^2.4.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/code-frame/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "dependencies": { - "@babel/highlight": "^7.10.1" + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/code-frame/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/code-frame/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/@babel/code-frame/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/code-frame/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.23.3.tgz", + "integrity": "sha512-BmR4bWbDIoFJmJ9z2cZ8Gmm2MXgEDgjdWgpKmKWUt54UGFJdlj31ECtbaDvCG/qVdG3AQ1SfpZEs01lUFbzLOQ==", + "dev": true, + "engines": { + "node": ">=6.9.0" } }, "node_modules/@babel/core": { - "version": "7.10.2", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.10.2.tgz", - "integrity": "sha512-KQmV9yguEjQsXqyOUGKjS4+3K8/DlOCE2pZcq4augdQmtTy5iv5EHtmMSJ7V4c1BIPjuwtZYqYLCq9Ga+hGBRQ==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.10.1", - "@babel/generator": "^7.10.2", - "@babel/helper-module-transforms": "^7.10.1", - "@babel/helpers": "^7.10.1", - "@babel/parser": "^7.10.2", - "@babel/template": "^7.10.1", - "@babel/traverse": "^7.10.1", - "@babel/types": "^7.10.2", - "convert-source-map": "^1.7.0", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.23.3.tgz", + "integrity": "sha512-Jg+msLuNuCJDyBvFv5+OKOUjWMZgd85bKjbICd3zWrKAo+bJ49HJufi7CQE0q0uR8NGyO6xkCACScNqyjHSZew==", + "dev": true, + "dependencies": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.22.13", + "@babel/generator": "^7.23.3", + "@babel/helper-compilation-targets": "^7.22.15", + "@babel/helper-module-transforms": "^7.23.3", + "@babel/helpers": "^7.23.2", + "@babel/parser": "^7.23.3", + "@babel/template": "^7.22.15", + "@babel/traverse": "^7.23.3", + "@babel/types": "^7.23.3", + "convert-source-map": "^2.0.0", "debug": "^4.1.0", - "gensync": "^1.0.0-beta.1", - "json5": "^2.1.2", - "lodash": "^4.17.13", - "resolve": "^1.3.2", - "semver": "^5.4.1", - "source-map": "^0.5.0" + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" }, "engines": { "node": ">=6.9.0" @@ -70,146 +165,240 @@ "url": "https://opencollective.com/babel" } }, + "node_modules/@babel/core/node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true + }, "node_modules/@babel/core/node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, "bin": { - "semver": "bin/semver" + "semver": "bin/semver.js" } }, "node_modules/@babel/generator": { - "version": "7.10.2", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.10.2.tgz", - "integrity": "sha512-AxfBNHNu99DTMvlUPlt1h2+Hn7knPpH5ayJ8OqDWSeLld+Fi2AYBTC/IejWDM9Edcii4UzZRCsbUt0WlSDsDsA==", + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.4.tgz", + "integrity": "sha512-esuS49Cga3HcThFNebGhlgsrVLkvhqvYDTzgjfFFlHJcIfLe5jFmRRfCQ1KuBfc4Jrtn3ndLgKWAKjBE+IraYQ==", "dev": true, "dependencies": { - "@babel/types": "^7.10.2", - "jsesc": "^2.5.1", - "lodash": "^4.17.13", - "source-map": "^0.5.0" + "@babel/types": "^7.23.4", + "@jridgewell/gen-mapping": "^0.3.2", + "@jridgewell/trace-mapping": "^0.3.17", + "jsesc": "^2.5.1" + }, + "engines": { + "node": ">=6.9.0" } }, - "node_modules/@babel/helper-function-name": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.10.1.tgz", - "integrity": "sha512-fcpumwhs3YyZ/ttd5Rz0xn0TpIwVkN7X0V38B9TWNfVF42KEkhkAAuPCQ3oXmtTRtiPJrmZ0TrfS0GKF0eMaRQ==", + "node_modules/@babel/generator/node_modules/@jridgewell/trace-mapping": { + "version": "0.3.20", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.20.tgz", + "integrity": "sha512-R8LcPeWZol2zR8mmH3JeKQ6QRCFb7XgUhV9ZlGhHLGyg4wpPiPZNQOOWhFZhxKw8u//yTbNGI42Bx/3paXEQ+Q==", "dev": true, "dependencies": { - "@babel/helper-get-function-arity": "^7.10.1", - "@babel/template": "^7.10.1", - "@babel/types": "^7.10.1" + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" } }, - "node_modules/@babel/helper-get-function-arity": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.10.1.tgz", - "integrity": "sha512-F5qdXkYGOQUb0hpRaPoetF9AnsXknKjWMZ+wmsIRsp5ge5sFh4c3h1eH2pRTTuy9KKAA2+TTYomGXAtEL2fQEw==", + "node_modules/@babel/helper-compilation-targets": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.15.tgz", + "integrity": "sha512-y6EEzULok0Qvz8yyLkCvVX+02ic+By2UdOhylwUOvOn9dvYc9mKICJuuU1n1XBI02YWsNsnrY1kc6DVbjcXbtw==", "dev": true, "dependencies": { - "@babel/types": "^7.10.1" + "@babel/compat-data": "^7.22.9", + "@babel/helper-validator-option": "^7.22.15", + "browserslist": "^4.21.9", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" } }, - "node_modules/@babel/helper-member-expression-to-functions": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.10.1.tgz", - "integrity": "sha512-u7XLXeM2n50gb6PWJ9hoO5oO7JFPaZtrh35t8RqKLT1jFKj9IWeD1zrcrYp1q1qiZTdEarfDWfTIP8nGsu0h5g==", + "node_modules/@babel/helper-compilation-targets/node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", "dev": true, "dependencies": { - "@babel/types": "^7.10.1" + "yallist": "^3.0.2" } }, - "node_modules/@babel/helper-module-imports": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.10.1.tgz", - "integrity": "sha512-SFxgwYmZ3HZPyZwJRiVNLRHWuW2OgE5k2nrVs6D9Iv4PPnXVffuEHy83Sfx/l4SqF+5kyJXjAyUmrG7tNm+qVg==", + "node_modules/@babel/helper-compilation-targets/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/helper-compilation-targets/node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + }, + "node_modules/@babel/helper-environment-visitor": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz", + "integrity": "sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-function-name": { + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz", + "integrity": "sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==", "dev": true, "dependencies": { - "@babel/types": "^7.10.1" + "@babel/template": "^7.22.15", + "@babel/types": "^7.23.0" + }, + "engines": { + "node": ">=6.9.0" } }, - "node_modules/@babel/helper-module-transforms": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.10.1.tgz", - "integrity": "sha512-RLHRCAzyJe7Q7sF4oy2cB+kRnU4wDZY/H2xJFGof+M+SJEGhZsb+GFj5j1AD8NiSaVBJ+Pf0/WObiXu/zxWpFg==", + "node_modules/@babel/helper-hoist-variables": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz", + "integrity": "sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==", "dev": true, "dependencies": { - "@babel/helper-module-imports": "^7.10.1", - "@babel/helper-replace-supers": "^7.10.1", - "@babel/helper-simple-access": "^7.10.1", - "@babel/helper-split-export-declaration": "^7.10.1", - "@babel/template": "^7.10.1", - "@babel/types": "^7.10.1", - "lodash": "^4.17.13" + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" } }, - "node_modules/@babel/helper-optimise-call-expression": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.10.1.tgz", - "integrity": "sha512-a0DjNS1prnBsoKx83dP2falChcs7p3i8VMzdrSbfLhuQra/2ENC4sbri34dz/rWmDADsmF1q5GbfaXydh0Jbjg==", + "node_modules/@babel/helper-module-imports": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.22.15.tgz", + "integrity": "sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w==", "dev": true, "dependencies": { - "@babel/types": "^7.10.1" + "@babel/types": "^7.22.15" + }, + "engines": { + "node": ">=6.9.0" } }, - "node_modules/@babel/helper-replace-supers": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.10.1.tgz", - "integrity": "sha512-SOwJzEfpuQwInzzQJGjGaiG578UYmyi2Xw668klPWV5n07B73S0a9btjLk/52Mlcxa+5AdIYqws1KyXRfMoB7A==", + "node_modules/@babel/helper-module-transforms": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.23.3.tgz", + "integrity": "sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==", "dev": true, "dependencies": { - "@babel/helper-member-expression-to-functions": "^7.10.1", - "@babel/helper-optimise-call-expression": "^7.10.1", - "@babel/traverse": "^7.10.1", - "@babel/types": "^7.10.1" + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-module-imports": "^7.22.15", + "@babel/helper-simple-access": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/helper-validator-identifier": "^7.22.20" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" } }, "node_modules/@babel/helper-simple-access": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.10.1.tgz", - "integrity": "sha512-VSWpWzRzn9VtgMJBIWTZ+GP107kZdQ4YplJlCmIrjoLVSi/0upixezHCDG8kpPVTBJpKfxTH01wDhh+jS2zKbw==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.22.5.tgz", + "integrity": "sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==", "dev": true, "dependencies": { - "@babel/template": "^7.10.1", - "@babel/types": "^7.10.1" + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" } }, "node_modules/@babel/helper-split-export-declaration": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.10.1.tgz", - "integrity": "sha512-UQ1LVBPrYdbchNhLwj6fetj46BcFwfS4NllJo/1aJsT+1dLTEnXJL0qHqtY7gPzF8S2fXBJamf1biAXV3X077g==", + "version": "7.22.6", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz", + "integrity": "sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==", "dev": true, "dependencies": { - "@babel/types": "^7.10.1" + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.23.4.tgz", + "integrity": "sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==", + "dev": true, + "engines": { + "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-identifier": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.10.1.tgz", - "integrity": "sha512-5vW/JXLALhczRCWP0PnFDMCJAchlBvM7f4uk/jXritBnIa6E1KmqmtrS3yn1LAnxFBypQ3eneLuXjsnfQsgILw==", - "dev": true + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz", + "integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.22.15.tgz", + "integrity": "sha512-bMn7RmyFjY/mdECUbgn9eoSY4vqvacUnS9i9vGAGttgFWesO6B4CYWA7XlpbWgBt71iv/hfbPlynohStqnu5hA==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } }, "node_modules/@babel/helpers": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.10.1.tgz", - "integrity": "sha512-muQNHF+IdU6wGgkaJyhhEmI54MOZBKsFfsXFhboz1ybwJ1Kl7IHlbm2a++4jwrmY5UYsgitt5lfqo1wMFcHmyw==", + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.23.4.tgz", + "integrity": "sha512-HfcMizYz10cr3h29VqyfGL6ZWIjTwWfvYBMsBVGwpcbhNGe3wQ1ZXZRPzZoAHhd9OqHadHqjQ89iVKINXnbzuw==", "dev": true, "dependencies": { - "@babel/template": "^7.10.1", - "@babel/traverse": "^7.10.1", - "@babel/types": "^7.10.1" + "@babel/template": "^7.22.15", + "@babel/traverse": "^7.23.4", + "@babel/types": "^7.23.4" + }, + "engines": { + "node": ">=6.9.0" } }, "node_modules/@babel/highlight": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.1.tgz", - "integrity": "sha512-8rMof+gVP8mxYZApLF/JgNDAkdKa+aJt3ZYxF8z6+j/hpeXL7iMsKCPHa2jNMHu/qqBwzQF4OHNoYi8dMA/rYg==", + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.23.4.tgz", + "integrity": "sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A==", "dev": true, "dependencies": { - "@babel/helper-validator-identifier": "^7.10.1", - "chalk": "^2.0.0", + "@babel/helper-validator-identifier": "^7.22.20", + "chalk": "^2.4.2", "js-tokens": "^4.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" } }, "node_modules/@babel/highlight/node_modules/chalk": { @@ -226,10 +415,40 @@ "node": ">=4" } }, + "node_modules/@babel/highlight/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/@babel/highlight/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/@babel/parser": { - "version": "7.10.2", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.10.2.tgz", - "integrity": "sha512-PApSXlNMJyB4JiGVhCOlzKIif+TKFTvu0aQAhnTvfP/z3vVSN6ZypH5bfUNwFXXjRQtUEBNFd2PtmCmG2Py3qQ==", + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.4.tgz", + "integrity": "sha512-vf3Xna6UEprW+7t6EtOmFpHNAuxw3xqPZghy+brsnusscJRW5BMUzzHZc5ICjULee81WeUV2jjakG09MDglJXQ==", "dev": true, "bin": { "parser": "bin/babel-parser.js" @@ -239,31 +458,38 @@ } }, "node_modules/@babel/template": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.10.1.tgz", - "integrity": "sha512-OQDg6SqvFSsc9A0ej6SKINWrpJiNonRIniYondK2ViKhB06i3c0s+76XUft71iqBEe9S1OKsHwPAjfHnuvnCig==", + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.15.tgz", + "integrity": "sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==", "dev": true, "dependencies": { - "@babel/code-frame": "^7.10.1", - "@babel/parser": "^7.10.1", - "@babel/types": "^7.10.1" + "@babel/code-frame": "^7.22.13", + "@babel/parser": "^7.22.15", + "@babel/types": "^7.22.15" + }, + "engines": { + "node": ">=6.9.0" } }, "node_modules/@babel/traverse": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.10.1.tgz", - "integrity": "sha512-C/cTuXeKt85K+p08jN6vMDz8vSV0vZcI0wmQ36o6mjbuo++kPMdpOYw23W2XH04dbRt9/nMEfA4W3eR21CD+TQ==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.10.1", - "@babel/generator": "^7.10.1", - "@babel/helper-function-name": "^7.10.1", - "@babel/helper-split-export-declaration": "^7.10.1", - "@babel/parser": "^7.10.1", - "@babel/types": "^7.10.1", + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.4.tgz", + "integrity": "sha512-IYM8wSUwunWTB6tFC2dkKZhxbIjHoWemdK+3f8/wq8aKhbUscxD5MX72ubd90fxvFknaLPeGw5ycU84V1obHJg==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.23.4", + "@babel/generator": "^7.23.4", + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-function-name": "^7.23.0", + "@babel/helper-hoist-variables": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/parser": "^7.23.4", + "@babel/types": "^7.23.4", "debug": "^4.1.0", - "globals": "^11.1.0", - "lodash": "^4.17.13" + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" } }, "node_modules/@babel/traverse/node_modules/globals": { @@ -276,202 +502,608 @@ } }, "node_modules/@babel/types": { - "version": "7.10.2", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.10.2.tgz", - "integrity": "sha512-AD3AwWBSz0AWF0AkCN9VPiWrvldXq+/e3cHa4J89vo4ymjz1XwrBFFVZmkJTsQIPNk+ZVomPSXUJqq8yyjZsng==", + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.4.tgz", + "integrity": "sha512-7uIFwVYpoplT5jp/kVv6EF93VaJ8H+Yn5IczYiaAi98ajzjfoZfslet/e0sLh+wVBjb2qqIut1b0S26VSafsSQ==", "dev": true, "dependencies": { - "@babel/helper-validator-identifier": "^7.10.1", - "lodash": "^4.17.13", + "@babel/helper-string-parser": "^7.23.4", + "@babel/helper-validator-identifier": "^7.22.20", "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@cspotcode/source-map-support": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", + "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "0.3.9" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", + "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", + "dev": true, + "dependencies": { + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.10.0", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.10.0.tgz", + "integrity": "sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==", + "dev": true, + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.3.tgz", + "integrity": "sha512-yZzuIG+jnVu6hNSzFEN07e8BxF3uAzYtQb6uDkaYZLo6oYZDCq454c5kB8zxnzfCYyP4MIuyBn10L0DqwujTmA==", + "dev": true, + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.6.0", + "globals": "^13.19.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, - "node_modules/@eslint/eslintrc": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.4.3.tgz", - "integrity": "sha512-J6KFFz5QCYUJq3pf0mjEcCJVERbzv71PUIDczuh9JkwGEzced6CO5ADLHB1rbf/+oPBtoPfMYNOpGDzCANlbXw==", - "dev": true, - "dependencies": { - "ajv": "^6.12.4", - "debug": "^4.1.1", - "espree": "^7.3.0", - "globals": "^13.9.0", - "ignore": "^4.0.6", - "import-fresh": "^3.2.1", - "js-yaml": "^3.13.1", - "minimatch": "^3.0.4", - "strip-json-comments": "^3.1.1" - }, - "engines": { - "node": "^10.12.0 || >=12.0.0" - } + "node_modules/@eslint/eslintrc/node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "node_modules/@eslint/eslintrc/node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/@eslint/js": { + "version": "8.54.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.54.0.tgz", + "integrity": "sha512-ut5V+D+fOoWPgGGNj83GGjnntO39xDy6DWxO0wb7Jp3DcMX0TfIqdzHF85VTQkerdyGmuuMD9AKAo5KiNlf/AQ==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/@humanwhocodes/config-array": { + "version": "0.11.13", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.13.tgz", + "integrity": "sha512-JSBDMiDKSzQVngfRjOdFXgFfklaXI4K9nLF49Auh21lmBWRLIK3+xTErTWD4KU54pb6coM6ESE7Awz/FNU3zgQ==", + "dev": true, + "dependencies": { + "@humanwhocodes/object-schema": "^2.0.1", + "debug": "^4.1.1", + "minimatch": "^3.0.5" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/object-schema": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.1.tgz", + "integrity": "sha512-dvuCeX5fC9dXgJn9t+X5atfmgQAzUOWqS1254Gh0m6i8wKd10ebXkfNKiRK+1GWi/yTvvLDHpoxLr0xxxeslWw==", + "dev": true + }, + "node_modules/@istanbuljs/load-nyc-config": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", + "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", + "dev": true, + "dependencies": { + "camelcase": "^5.3.1", + "find-up": "^4.1.0", + "get-package-type": "^0.1.0", + "js-yaml": "^3.13.1", + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/schema": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.2.tgz", + "integrity": "sha512-tsAQNx32a8CoFhjhijUIhI4kccIAgmGhy8LZMZgGfmXcpMbPRUqn5LWmgRttILi6yeGmBJd2xsPkFMs0PzgPCw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", + "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", + "dev": true, + "dependencies": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz", + "integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/set-array": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", + "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.15", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", + "dev": true + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", + "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@pkgr/utils": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/@pkgr/utils/-/utils-2.4.2.tgz", + "integrity": "sha512-POgTXhjrTfbTV63DiFXav4lBHiICLKKwDeaKn9Nphwj7WH6m0hMMCaJkMyRWjgtPFyRKRVoMXXjczsTQRDEhYw==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.3", + "fast-glob": "^3.3.0", + "is-glob": "^4.0.3", + "open": "^9.1.0", + "picocolors": "^1.0.0", + "tslib": "^2.6.0" + }, + "engines": { + "node": "^12.20.0 || ^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/unts" + } + }, + "node_modules/@tsconfig/node10": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz", + "integrity": "sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==", + "dev": true + }, + "node_modules/@tsconfig/node12": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", + "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", + "dev": true + }, + "node_modules/@tsconfig/node14": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", + "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", + "dev": true + }, + "node_modules/@tsconfig/node16": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz", + "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==", + "dev": true + }, + "node_modules/@types/color-name": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz", + "integrity": "sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==", + "dev": true + }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true + }, + "node_modules/@types/json5": { + "version": "0.0.29", + "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", + "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", + "dev": true }, - "node_modules/@humanwhocodes/config-array": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.5.0.tgz", - "integrity": "sha512-FagtKFz74XrTl7y6HCzQpwDfXP0yhxe9lHLD1UZxjvZIcbyRz8zTFF/yYNfSfzU414eDwZ1SrO0Qvtyf+wFMQg==", + "node_modules/@types/mocha": { + "version": "10.0.6", + "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-10.0.6.tgz", + "integrity": "sha512-dJvrYWxP/UcXm36Qn36fxhUKu8A/xMRXVT2cliFF1Z7UA9liG5Psj3ezNSZw+5puH2czDXRLcXQxf8JbJt0ejg==", + "dev": true + }, + "node_modules/@types/node": { + "version": "20.9.4", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.9.4.tgz", + "integrity": "sha512-wmyg8HUhcn6ACjsn8oKYjkN/zUzQeNtMy44weTJSM6p4MMzEOuKbA3OjJ267uPCOW7Xex9dyrNTful8XTQYoDA==", "dev": true, + "peer": true, "dependencies": { - "@humanwhocodes/object-schema": "^1.2.0", - "debug": "^4.1.1", - "minimatch": "^3.0.4" - }, - "engines": { - "node": ">=10.10.0" + "undici-types": "~5.26.4" } }, - "node_modules/@humanwhocodes/object-schema": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.0.tgz", - "integrity": "sha512-wdppn25U8z/2yiaT6YGquE6X8sSv7hNMWSXYSSU1jGv/yd6XqjXgTDJ8KP4NgjTXfJ3GbRjeeb8RTV7a/VpM+w==", + "node_modules/@types/semver": { + "version": "7.5.6", + "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.6.tgz", + "integrity": "sha512-dn1l8LaMea/IjDoHNd9J52uBbInB796CDffS6VdIxvqYCPSG0V0DzHp76GpaWnlhg88uYyPbXCDIowa86ybd5A==", "dev": true }, - "node_modules/@istanbuljs/load-nyc-config": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", - "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "6.12.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.12.0.tgz", + "integrity": "sha512-XOpZ3IyJUIV1b15M7HVOpgQxPPF7lGXgsfcEIu3yDxFPaf/xZKt7s9QO/pbk7vpWQyVulpJbu4E5LwpZiQo4kA==", "dev": true, "dependencies": { - "camelcase": "^5.3.1", - "find-up": "^4.1.0", - "get-package-type": "^0.1.0", - "js-yaml": "^3.13.1", - "resolve-from": "^5.0.0" + "@eslint-community/regexpp": "^4.5.1", + "@typescript-eslint/scope-manager": "6.12.0", + "@typescript-eslint/type-utils": "6.12.0", + "@typescript-eslint/utils": "6.12.0", + "@typescript-eslint/visitor-keys": "6.12.0", + "debug": "^4.3.4", + "graphemer": "^1.4.0", + "ignore": "^5.2.4", + "natural-compare": "^1.4.0", + "semver": "^7.5.4", + "ts-api-utils": "^1.0.1" }, "engines": { - "node": ">=8" + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^6.0.0 || ^6.0.0-alpha", + "eslint": "^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "node_modules/@typescript-eslint/parser": { + "version": "6.12.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.12.0.tgz", + "integrity": "sha512-s8/jNFPKPNRmXEnNXfuo1gemBdVmpQsK1pcu+QIvuNJuhFzGrpD7WjOcvDc/+uEdfzSYpNu7U/+MmbScjoQ6vg==", "dev": true, "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" + "@typescript-eslint/scope-manager": "6.12.0", + "@typescript-eslint/types": "6.12.0", + "@typescript-eslint/typescript-estree": "6.12.0", + "@typescript-eslint/visitor-keys": "6.12.0", + "debug": "^4.3.4" }, "engines": { - "node": ">=8" + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "node_modules/@typescript-eslint/scope-manager": { + "version": "6.12.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.12.0.tgz", + "integrity": "sha512-5gUvjg+XdSj8pcetdL9eXJzQNTl3RD7LgUiYTl8Aabdi8hFkaGSYnaS6BLc0BGNaDH+tVzVwmKtWvu0jLgWVbw==", "dev": true, "dependencies": { - "p-locate": "^4.1.0" + "@typescript-eslint/types": "6.12.0", + "@typescript-eslint/visitor-keys": "6.12.0" }, "engines": { - "node": ">=8" + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "node_modules/@typescript-eslint/type-utils": { + "version": "6.12.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.12.0.tgz", + "integrity": "sha512-WWmRXxhm1X8Wlquj+MhsAG4dU/Blvf1xDgGaYCzfvStP2NwPQh6KBvCDbiOEvaE0filhranjIlK/2fSTVwtBng==", "dev": true, "dependencies": { - "p-limit": "^2.2.0" + "@typescript-eslint/typescript-estree": "6.12.0", + "@typescript-eslint/utils": "6.12.0", + "debug": "^4.3.4", + "ts-api-utils": "^1.0.1" }, "engines": { - "node": ">=8" - } - }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, - "engines": { - "node": ">=8" + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "node_modules/@typescript-eslint/types": { + "version": "6.12.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.12.0.tgz", + "integrity": "sha512-MA16p/+WxM5JG/F3RTpRIcuOghWO30//VEOvzubM8zuOOBYXsP+IfjoCXXiIfy2Ta8FRh9+IO9QLlaFQUU+10Q==", "dev": true, "engines": { - "node": ">=8" + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/@istanbuljs/schema": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.2.tgz", - "integrity": "sha512-tsAQNx32a8CoFhjhijUIhI4kccIAgmGhy8LZMZgGfmXcpMbPRUqn5LWmgRttILi6yeGmBJd2xsPkFMs0PzgPCw==", + "node_modules/@typescript-eslint/typescript-estree": { + "version": "6.12.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.12.0.tgz", + "integrity": "sha512-vw9E2P9+3UUWzhgjyyVczLWxZ3GuQNT7QpnIY3o5OMeLO/c8oHljGc8ZpryBMIyympiAAaKgw9e5Hl9dCWFOYw==", "dev": true, + "dependencies": { + "@typescript-eslint/types": "6.12.0", + "@typescript-eslint/visitor-keys": "6.12.0", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "semver": "^7.5.4", + "ts-api-utils": "^1.0.1" + }, "engines": { - "node": ">=8" + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, - "node_modules/@rollup/plugin-commonjs": { - "version": "22.0.0", - "resolved": "https://registry.npmjs.org/@rollup/plugin-commonjs/-/plugin-commonjs-22.0.0.tgz", - "integrity": "sha512-Ktvf2j+bAO+30awhbYoCaXpBcyPmJbaEUYClQns/+6SNCYFURbvBiNbWgHITEsIgDDWCDUclWRKEuf8cwZCFoQ==", + "node_modules/@typescript-eslint/utils": { + "version": "6.12.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.12.0.tgz", + "integrity": "sha512-LywPm8h3tGEbgfyjYnu3dauZ0U7R60m+miXgKcZS8c7QALO9uWJdvNoP+duKTk2XMWc7/Q3d/QiCuLN9X6SWyQ==", "dev": true, "dependencies": { - "@rollup/pluginutils": "^3.1.0", - "commondir": "^1.0.1", - "estree-walker": "^2.0.1", - "glob": "^7.1.6", - "is-reference": "^1.2.1", - "magic-string": "^0.25.7", - "resolve": "^1.17.0" + "@eslint-community/eslint-utils": "^4.4.0", + "@types/json-schema": "^7.0.12", + "@types/semver": "^7.5.0", + "@typescript-eslint/scope-manager": "6.12.0", + "@typescript-eslint/types": "6.12.0", + "@typescript-eslint/typescript-estree": "6.12.0", + "semver": "^7.5.4" }, "engines": { - "node": ">= 12.0.0" + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "rollup": "^2.68.0" + "eslint": "^7.0.0 || ^8.0.0" } }, - "node_modules/@rollup/pluginutils": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-3.1.0.tgz", - "integrity": "sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==", + "node_modules/@typescript-eslint/visitor-keys": { + "version": "6.12.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.12.0.tgz", + "integrity": "sha512-rg3BizTZHF1k3ipn8gfrzDXXSFKyOEB5zxYXInQ6z0hUvmQlhaZQzK+YmHmNViMA9HzW5Q9+bPPt90bU6GQwyw==", "dev": true, "dependencies": { - "@types/estree": "0.0.39", - "estree-walker": "^1.0.1", - "picomatch": "^2.2.2" + "@typescript-eslint/types": "6.12.0", + "eslint-visitor-keys": "^3.4.1" }, "engines": { - "node": ">= 8.0.0" + "node": "^16.0.0 || >=18.0.0" }, - "peerDependencies": { - "rollup": "^1.20.0||^2.0.0" + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/@rollup/pluginutils/node_modules/estree-walker": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-1.0.1.tgz", - "integrity": "sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==", - "dev": true - }, - "node_modules/@types/color-name": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz", - "integrity": "sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==", - "dev": true - }, - "node_modules/@types/estree": { - "version": "0.0.39", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.39.tgz", - "integrity": "sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==", - "dev": true + "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } }, - "node_modules/@types/json5": { - "version": "0.0.29", - "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", - "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", + "node_modules/@ungap/structured-clone": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", + "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", "dev": true }, "node_modules/acorn": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", - "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", + "version": "8.11.2", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.2.tgz", + "integrity": "sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w==", "dev": true, "bin": { "acorn": "bin/acorn" @@ -489,6 +1121,15 @@ "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" } }, + "node_modules/acorn-walk": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.0.tgz", + "integrity": "sha512-FS7hV565M5l1R08MXqo8odwMTB02C2UqzB17RVgu9EyuYFBqJZ3/ZY97sQD5FewVu1UyDFc1yztUDrAwT0EypA==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, "node_modules/aggregate-error": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.0.1.tgz", @@ -536,18 +1177,6 @@ "node": ">=8" } }, - "node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/anymatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", @@ -579,6 +1208,12 @@ "integrity": "sha1-+cjBN1fMHde8N5rHeyxipcKGjEA=", "dev": true }, + "node_modules/arg": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", + "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", + "dev": true + }, "node_modules/argparse": { "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", @@ -620,6 +1255,15 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/array.prototype.findlastindex": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.3.tgz", @@ -696,13 +1340,17 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/astral-regex": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", - "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", + "node_modules/assert": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/assert/-/assert-2.1.0.tgz", + "integrity": "sha512-eLHpSK/Y4nhMJ07gDaAzoX/XAKS8PSaojml3M0DM4JpV1LAi5JOJ/p6H/XWrl8L+DzVEvVCW1z3vWAaB9oTsQw==", "dev": true, - "engines": { - "node": ">=8" + "dependencies": { + "call-bind": "^1.0.2", + "is-nan": "^1.3.2", + "object-is": "^1.1.5", + "object.assign": "^4.1.4", + "util": "^0.12.5" } }, "node_modules/available-typed-arrays": { @@ -723,6 +1371,15 @@ "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", "dev": true }, + "node_modules/big-integer": { + "version": "1.6.52", + "resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.52.tgz", + "integrity": "sha512-QxD8cf2eVqJOOz63z6JIN9BzvVs/dlySa5HGSBH5xtR8dPteIRQnBxxKqkNTiT6jbDTF6jAfrd4oMcND9RGbQg==", + "dev": true, + "engines": { + "node": ">=0.6" + } + }, "node_modules/binary-extensions": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", @@ -732,6 +1389,18 @@ "node": ">=8" } }, + "node_modules/bplist-parser": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.2.0.tgz", + "integrity": "sha512-z0M+byMThzQmD9NILRniCUXYsYpjwnlO8N5uCFaCqIOpqRsJCrQL9NK3JsD67CN5a08nF5oIL2bD6loTdHOuKw==", + "dev": true, + "dependencies": { + "big-integer": "^1.6.44" + }, + "engines": { + "node": ">= 5.10.0" + } + }, "node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", @@ -760,6 +1429,53 @@ "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", "dev": true }, + "node_modules/browserslist": { + "version": "4.22.1", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.22.1.tgz", + "integrity": "sha512-FEVc202+2iuClEhZhrWy6ZiAcRLvNMyYcxZ8raemul1DYVOVdFsbqckWLdsixQZCpJlwe77Z3UTalE7jsjnKfQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "caniuse-lite": "^1.0.30001541", + "electron-to-chromium": "^1.4.535", + "node-releases": "^2.0.13", + "update-browserslist-db": "^1.0.13" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/bundle-name": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/bundle-name/-/bundle-name-3.0.0.tgz", + "integrity": "sha512-PKA4BeSvBpQKQ8iPOGCSiell+N8P+Tf1DlwqmYhpe2gAhKPHn8EYOxVT+ShuGmhg8lN8XiSlS80yiExKXrURlw==", + "dev": true, + "dependencies": { + "run-applescript": "^5.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/caching-transform": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/caching-transform/-/caching-transform-4.0.0.tgz", @@ -807,6 +1523,26 @@ "node": ">=6" } }, + "node_modules/caniuse-lite": { + "version": "1.0.30001564", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001564.tgz", + "integrity": "sha512-DqAOf+rhof+6GVx1y+xzbFPeOumfQnhYzVnZD6LAXijR77yPtm9mfOcqOnT3mpnJiZVT+kwLAFnRlZcIz+c6bg==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ] + }, "node_modules/chalk": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", @@ -856,15 +1592,6 @@ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, - "node_modules/chalk/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/chalk/node_modules/supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", @@ -936,7 +1663,7 @@ "node_modules/color-name": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", "dev": true }, "node_modules/commondir": { @@ -965,6 +1692,12 @@ "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" }, + "node_modules/create-require": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", + "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", + "dev": true + }, "node_modules/cross-spawn": { "version": "7.0.3", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", @@ -1007,15 +1740,49 @@ "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", "dev": true, "engines": { - "node": ">=0.10.0" + "node": ">=0.10.0" + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true + }, + "node_modules/default-browser": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/default-browser/-/default-browser-4.0.0.tgz", + "integrity": "sha512-wX5pXO1+BrhMkSbROFsyxUm0i/cJEScyNhA4PPxc41ICuv05ZZB/MX28s8aZx6xjmatvebIapF6hLEKEcpneUA==", + "dev": true, + "dependencies": { + "bundle-name": "^3.0.0", + "default-browser-id": "^3.0.0", + "execa": "^7.1.1", + "titleize": "^3.0.0" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/default-browser-id": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/default-browser-id/-/default-browser-id-3.0.0.tgz", + "integrity": "sha512-OZ1y3y0SqSICtE8DE4S8YOE9UZOJ8wO16fKWVP5J1Qz42kV9jcnMVFrEE/noXb/ss3Q4pZIH79kxofzyNNtUNA==", + "dev": true, + "dependencies": { + "bplist-parser": "^0.2.0", + "untildify": "^4.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/deep-is": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz", - "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=", - "dev": true - }, "node_modules/default-require-extensions": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/default-require-extensions/-/default-require-extensions-3.0.0.tgz", @@ -1042,6 +1809,18 @@ "node": ">= 0.4" } }, + "node_modules/define-lazy-prop": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-3.0.0.tgz", + "integrity": "sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/define-properties": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", @@ -1068,6 +1847,18 @@ "node": ">=0.3.1" } }, + "node_modules/dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "dev": true, + "dependencies": { + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/doctrine": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", @@ -1080,22 +1871,29 @@ "node": ">=6.0.0" } }, + "node_modules/electron-to-chromium": { + "version": "1.4.593", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.593.tgz", + "integrity": "sha512-c7+Hhj87zWmdpmjDONbvNKNo24tvmD4mjal1+qqTYTrlF0/sNpAcDlU0Ki84ftA/5yj3BF2QhSGEC0Rky6larg==", + "dev": true + }, "node_modules/emoji-regex": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", "dev": true }, - "node_modules/enquirer": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz", - "integrity": "sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==", + "node_modules/enhanced-resolve": { + "version": "5.15.0", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.15.0.tgz", + "integrity": "sha512-LXYT42KJ7lpIKECr2mAXIaMldcNCh/7E0KBKOu4KSfkHmP+mZmSs+8V5gBAqisWBy0OO4W5Oyys0GO1Y8KtdKg==", "dev": true, "dependencies": { - "ansi-colors": "^4.1.1" + "graceful-fs": "^4.2.4", + "tapable": "^2.2.0" }, "engines": { - "node": ">=8.6" + "node": ">=10.13.0" } }, "node_modules/es-abstract": { @@ -1206,76 +2004,65 @@ "node": ">=6" } }, - "node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true, - "engines": { - "node": ">=0.8.0" - } - }, "node_modules/eslint": { - "version": "7.32.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.32.0.tgz", - "integrity": "sha512-VHZ8gX+EDfz+97jGcgyGCyRia/dPOd6Xh9yPv8Bl1+SoaIwD+a/vlrOmGRUyOYu7MwUhc7CxqeaDZU13S4+EpA==", - "dev": true, - "dependencies": { - "@babel/code-frame": "7.12.11", - "@eslint/eslintrc": "^0.4.3", - "@humanwhocodes/config-array": "^0.5.0", - "ajv": "^6.10.0", + "version": "8.54.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.54.0.tgz", + "integrity": "sha512-NY0DfAkM8BIZDVl6PgSa1ttZbx3xHgJzSNJKYcQglem6CppHyMhRIQkBVSSMaSRnLhig3jsDbEzOjwCVt4AmmA==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.6.1", + "@eslint/eslintrc": "^2.1.3", + "@eslint/js": "8.54.0", + "@humanwhocodes/config-array": "^0.11.13", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", + "@ungap/structured-clone": "^1.2.0", + "ajv": "^6.12.4", "chalk": "^4.0.0", "cross-spawn": "^7.0.2", - "debug": "^4.0.1", + "debug": "^4.3.2", "doctrine": "^3.0.0", - "enquirer": "^2.3.5", "escape-string-regexp": "^4.0.0", - "eslint-scope": "^5.1.1", - "eslint-utils": "^2.1.0", - "eslint-visitor-keys": "^2.0.0", - "espree": "^7.3.1", - "esquery": "^1.4.0", + "eslint-scope": "^7.2.2", + "eslint-visitor-keys": "^3.4.3", + "espree": "^9.6.1", + "esquery": "^1.4.2", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", "file-entry-cache": "^6.0.1", - "functional-red-black-tree": "^1.0.1", - "glob-parent": "^5.1.2", - "globals": "^13.6.0", - "ignore": "^4.0.6", - "import-fresh": "^3.0.0", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "globals": "^13.19.0", + "graphemer": "^1.4.0", + "ignore": "^5.2.0", "imurmurhash": "^0.1.4", "is-glob": "^4.0.0", - "js-yaml": "^3.13.1", + "is-path-inside": "^3.0.3", + "js-yaml": "^4.1.0", "json-stable-stringify-without-jsonify": "^1.0.1", "levn": "^0.4.1", "lodash.merge": "^4.6.2", - "minimatch": "^3.0.4", + "minimatch": "^3.1.2", "natural-compare": "^1.4.0", - "optionator": "^0.9.1", - "progress": "^2.0.0", - "regexpp": "^3.1.0", - "semver": "^7.2.1", - "strip-ansi": "^6.0.0", - "strip-json-comments": "^3.1.0", - "table": "^6.0.9", - "text-table": "^0.2.0", - "v8-compile-cache": "^2.0.3" + "optionator": "^0.9.3", + "strip-ansi": "^6.0.1", + "text-table": "^0.2.0" }, "bin": { "eslint": "bin/eslint.js" }, "engines": { - "node": "^10.12.0 || >=12.0.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, "funding": { "url": "https://opencollective.com/eslint" } }, "node_modules/eslint-config-prettier": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.3.0.tgz", - "integrity": "sha512-BgZuLUSeKzvlL/VUjx/Yb787VQ26RU3gGjA3iiFvdsp/2bMfVIWUVP7tjxtjS0e+HP409cPlPvNkQloz8C91ew==", + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.0.0.tgz", + "integrity": "sha512-IcJsTkJae2S35pRsRAwoCE+925rJJStOdkKnLVgtE+tEpqU0EVVM7OqrwxqgptKdX29NUwC82I5pXsGFIgSevw==", "dev": true, "bin": { "eslint-config-prettier": "bin/cli.js" @@ -1304,6 +2091,31 @@ "ms": "^2.1.1" } }, + "node_modules/eslint-import-resolver-typescript": { + "version": "3.6.1", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-3.6.1.tgz", + "integrity": "sha512-xgdptdoi5W3niYeuQxKmzVDTATvLYqhpwmykwsh7f6HIOStGWEIL9iqZgQDF9u9OEzrRwR8no5q2VT+bjAujTg==", + "dev": true, + "dependencies": { + "debug": "^4.3.4", + "enhanced-resolve": "^5.12.0", + "eslint-module-utils": "^2.7.4", + "fast-glob": "^3.3.1", + "get-tsconfig": "^4.5.0", + "is-core-module": "^2.11.0", + "is-glob": "^4.0.3" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/unts/projects/eslint-import-resolver-ts" + }, + "peerDependencies": { + "eslint": "*", + "eslint-plugin-import": "*" + } + }, "node_modules/eslint-module-utils": { "version": "2.8.0", "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.0.tgz", @@ -1401,6 +2213,18 @@ "node": ">=0.10.0" } }, + "node_modules/eslint-plugin-import/node_modules/json5": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", + "dev": true, + "dependencies": { + "minimist": "^1.2.0" + }, + "bin": { + "json5": "lib/cli.js" + } + }, "node_modules/eslint-plugin-import/node_modules/semver": { "version": "6.3.1", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", @@ -1410,17 +2234,38 @@ "semver": "bin/semver.js" } }, + "node_modules/eslint-plugin-import/node_modules/strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/eslint-plugin-import/node_modules/tsconfig-paths": { + "version": "3.14.2", + "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz", + "integrity": "sha512-o/9iXgCYc5L/JxCHPe3Hvh8Q/2xm5Z+p18PESBU6Ff33695QnCHBEjcytY2q19ua7Mbl/DavtBOLq+oG0RCL+g==", + "dev": true, + "dependencies": { + "@types/json5": "^0.0.29", + "json5": "^1.0.2", + "minimist": "^1.2.6", + "strip-bom": "^3.0.0" + } + }, "node_modules/eslint-plugin-mocha": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-mocha/-/eslint-plugin-mocha-9.0.0.tgz", - "integrity": "sha512-d7knAcQj1jPCzZf3caeBIn3BnW6ikcvfz0kSqQpwPYcVGLoJV5sz0l0OJB2LR8I7dvTDbqq1oV6ylhSgzA10zg==", + "version": "10.2.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-mocha/-/eslint-plugin-mocha-10.2.0.tgz", + "integrity": "sha512-ZhdxzSZnd1P9LqDPF0DBcFLpRIGdh1zkF2JHnQklKQOvrQtT73kdP5K9V2mzvbLR+cCAO9OI48NXK/Ax9/ciCQ==", "dev": true, "dependencies": { "eslint-utils": "^3.0.0", - "ramda": "^0.27.1" + "rambda": "^7.4.0" }, "engines": { - "node": ">=12.0.0" + "node": ">=14.0.0" }, "peerDependencies": { "eslint": ">=7.0.0" @@ -1473,15 +2318,6 @@ "eslint": ">=5.16.0" } }, - "node_modules/eslint-plugin-node/node_modules/ignore": { - "version": "5.1.8", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.1.8.tgz", - "integrity": "sha512-BMpfD7PpiETpBl/A6S498BaIJ6Y/ABT93ETbby2fP00v4EbvPBXWEoaR1UBPKs3iR53pJY7EtZk5KACI57i1Uw==", - "dev": true, - "engines": { - "node": ">= 4" - } - }, "node_modules/eslint-plugin-node/node_modules/semver": { "version": "6.3.0", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", @@ -1492,37 +2328,48 @@ } }, "node_modules/eslint-plugin-prettier": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.0.0.tgz", - "integrity": "sha512-98MqmCJ7vJodoQK359bqQWaxOE0CS8paAz/GgjaZLyex4TTk3g9HugoO89EqWCrFiOqn9EVvcoo7gZzONCWVwQ==", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.0.1.tgz", + "integrity": "sha512-m3u5RnR56asrwV/lDC4GHorlW75DsFfmUcjfCYylTUs85dBRnB7VM6xG8eCMJdeDRnppzmxZVf1GEPJvl1JmNg==", "dev": true, "dependencies": { - "prettier-linter-helpers": "^1.0.0" + "prettier-linter-helpers": "^1.0.0", + "synckit": "^0.8.5" }, "engines": { - "node": ">=6.0.0" + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/prettier" }, "peerDependencies": { - "eslint": ">=7.28.0", - "prettier": ">=2.0.0" + "@types/eslint": ">=8.0.0", + "eslint": ">=8.0.0", + "prettier": ">=3.0.0" }, "peerDependenciesMeta": { + "@types/eslint": { + "optional": true + }, "eslint-config-prettier": { "optional": true } } }, "node_modules/eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", + "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", "dev": true, "dependencies": { "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" + "estraverse": "^5.2.0" }, "engines": { - "node": ">=8.0.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, "node_modules/eslint-utils": { @@ -1546,55 +2393,12 @@ "node": ">=4" } }, - "node_modules/eslint/node_modules/@babel/code-frame": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.11.tgz", - "integrity": "sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw==", - "dev": true, - "dependencies": { - "@babel/highlight": "^7.10.4" - } - }, - "node_modules/eslint/node_modules/@babel/helper-validator-identifier": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.12.11.tgz", - "integrity": "sha512-np/lG3uARFybkoHokJUmf1QfEvRVCPbmQeUQpKow5cQ3xWrV9i3rUHodKDJPQfTVX61qKi+UdYk8kik84n7XOw==", + "node_modules/eslint/node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", "dev": true }, - "node_modules/eslint/node_modules/@babel/highlight": { - "version": "7.13.8", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.13.8.tgz", - "integrity": "sha512-4vrIhfJyfNf+lCtXC2ck1rKSzDwciqF7IWFhXXrSOUC2O5DrVp+w4c6ed4AllTxhTkUP5x2tYj41VaxdVMMRDw==", - "dev": true, - "dependencies": { - "@babel/helper-validator-identifier": "^7.12.11", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - } - }, - "node_modules/eslint/node_modules/@babel/highlight/node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/eslint/node_modules/@babel/highlight/node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true, - "engines": { - "node": ">=0.8.0" - } - }, "node_modules/eslint/node_modules/escape-string-regexp": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", @@ -1607,51 +2411,69 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/eslint/node_modules/eslint-utils": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz", - "integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==", + "node_modules/eslint/node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", "dev": true, - "dependencies": { - "eslint-visitor-keys": "^1.1.0" - }, "engines": { - "node": ">=6" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, "funding": { - "url": "https://github.com/sponsors/mysticatea" + "url": "https://opencollective.com/eslint" } }, - "node_modules/eslint/node_modules/eslint-utils/node_modules/eslint-visitor-keys": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", - "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", + "node_modules/eslint/node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", "dev": true, + "dependencies": { + "is-glob": "^4.0.3" + }, "engines": { - "node": ">=4" + "node": ">=10.13.0" } }, - "node_modules/eslint/node_modules/eslint-visitor-keys": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.0.0.tgz", - "integrity": "sha512-QudtT6av5WXels9WjIM7qz1XD1cWGvX4gGXvp/zBn9nXG02D0utdU3Em2m/QjTnrsk6bBjmCygl3rmj118msQQ==", + "node_modules/eslint/node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", "dev": true, - "engines": { - "node": ">=10" + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" } }, "node_modules/espree": { - "version": "7.3.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-7.3.1.tgz", - "integrity": "sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g==", + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", + "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", "dev": true, "dependencies": { - "acorn": "^7.4.0", - "acorn-jsx": "^5.3.1", - "eslint-visitor-keys": "^1.3.0" + "acorn": "^8.9.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" }, "engines": { - "node": "^10.12.0 || >=12.0.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/espree/node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, "node_modules/esprima": { @@ -1668,9 +2490,9 @@ } }, "node_modules/esquery": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz", - "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", + "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", "dev": true, "dependencies": { "estraverse": "^5.1.0" @@ -1679,15 +2501,6 @@ "node": ">=0.10" } }, - "node_modules/esquery/node_modules/estraverse": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz", - "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", - "dev": true, - "engines": { - "node": ">=4.0" - } - }, "node_modules/esrecurse": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", @@ -1700,30 +2513,15 @@ "node": ">=4.0" } }, - "node_modules/esrecurse/node_modules/estraverse": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz", - "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", - "dev": true, - "engines": { - "node": ">=4.0" - } - }, "node_modules/estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", "dev": true, "engines": { "node": ">=4.0" } }, - "node_modules/estree-walker": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", - "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", - "dev": true - }, "node_modules/esutils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", @@ -1733,6 +2531,41 @@ "node": ">=0.10.0" } }, + "node_modules/execa": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-7.2.0.tgz", + "integrity": "sha512-UduyVP7TLB5IcAQl+OzLyLcS/l32W/GLg+AhHJ+ow40FOk2U3SAllPwR44v4vmdFwIWqpdwxxpQbF1n5ta9seA==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.1", + "human-signals": "^4.3.0", + "is-stream": "^3.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^5.1.0", + "onetime": "^6.0.0", + "signal-exit": "^3.0.7", + "strip-final-newline": "^3.0.0" + }, + "engines": { + "node": "^14.18.0 || ^16.14.0 || >=18.0.0" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/execa/node_modules/is-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", + "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", @@ -1745,6 +2578,22 @@ "integrity": "sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==", "dev": true }, + "node_modules/fast-glob": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", + "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8.6.0" + } + }, "node_modules/fast-json-stable-stringify": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", @@ -1754,9 +2603,18 @@ "node_modules/fast-levenshtein": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", "dev": true }, + "node_modules/fastq": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", + "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", + "dev": true, + "dependencies": { + "reusify": "^1.0.4" + } + }, "node_modules/file-entry-cache": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", @@ -1876,20 +2734,6 @@ "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", "dev": true }, - "node_modules/fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", - "dev": true, - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, "node_modules/function-bind": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", @@ -1917,12 +2761,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/functional-red-black-tree": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", - "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", - "dev": true - }, "node_modules/functions-have-names": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", @@ -1933,9 +2771,9 @@ } }, "node_modules/gensync": { - "version": "1.0.0-beta.1", - "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.1.tgz", - "integrity": "sha512-r8EC6NO1sngH/zdD9fiRDLdcgnbayXah+mLgManTaIZJqEC1MZstmnox8KpnI2/fxQwrp5OpCOYWLp4rBl4Jcg==", + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", "dev": true, "engines": { "node": ">=6.9.0" @@ -1974,6 +2812,18 @@ "node": ">=8.0.0" } }, + "node_modules/get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/get-symbol-description": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", @@ -1990,6 +2840,18 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/get-tsconfig": { + "version": "4.7.2", + "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.7.2.tgz", + "integrity": "sha512-wuMsz4leaj5hbGgg4IvDU0bqJagpftG5l5cXIAvo8uZrqn0NJqwtfupTN00VnkQJPcIRrxYrm1Ue24btpCha2A==", + "dev": true, + "dependencies": { + "resolve-pkg-maps": "^1.0.0" + }, + "funding": { + "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" + } + }, "node_modules/glob": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", @@ -2023,9 +2885,9 @@ } }, "node_modules/globals": { - "version": "13.11.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.11.0.tgz", - "integrity": "sha512-08/xrJ7wQjK9kkkRoI3OFUBbLx4f+6x3SGwcPvQ0QH6goFDrOU2oyAWrmh3dJezu65buo+HBMzAMQy6rovVC3g==", + "version": "13.23.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.23.0.tgz", + "integrity": "sha512-XAmF0RjlrjY23MA51q3HltdlGxUpXPvg0GioKiD9X6HD28iMjo2dKC8Vqwm7lne4GNr78+RHTfliktR6ZH09wA==", "dev": true, "dependencies": { "type-fest": "^0.20.2" @@ -2064,6 +2926,26 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/globby": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", + "dev": true, + "dependencies": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/gopd": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", @@ -2077,9 +2959,15 @@ } }, "node_modules/graceful-fs": { - "version": "4.2.4", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.4.tgz", - "integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==", + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true + }, + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", "dev": true }, "node_modules/has-bigints": { @@ -2092,12 +2980,12 @@ } }, "node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, "engines": { - "node": ">=4" + "node": ">=8" } }, "node_modules/has-property-descriptors": { @@ -2191,10 +3079,19 @@ "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", "dev": true }, + "node_modules/human-signals": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-4.3.1.tgz", + "integrity": "sha512-nZXjEF2nbo7lIw3mgYjItAfgQXog3OjJogSbKa2CQIIvSGWcKgeJnQlNXip6NglNzYH45nSRiEVimMvYL8DDqQ==", + "dev": true, + "engines": { + "node": ">=14.18.0" + } + }, "node_modules/ignore": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", - "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.0.tgz", + "integrity": "sha512-g7dmpshy+gD7mh88OC9NwSGTKoc3kyLAZQRU1mt53Aw/vnvfXnbC+F/7F7QoYVKbV+KNvJx8wArewKy1vXMtlg==", "dev": true, "engines": { "node": ">= 4" @@ -2263,6 +3160,22 @@ "node": ">= 0.4" } }, + "node_modules/is-arguments": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz", + "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-array-buffer": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz", @@ -2356,6 +3269,21 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-docker": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-3.0.0.tgz", + "integrity": "sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==", + "dev": true, + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/is-extglob": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", @@ -2374,6 +3302,21 @@ "node": ">=8" } }, + "node_modules/is-generator-function": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.0.10.tgz", + "integrity": "sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-glob": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", @@ -2386,6 +3329,40 @@ "node": ">=0.10.0" } }, + "node_modules/is-inside-container": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-inside-container/-/is-inside-container-1.0.0.tgz", + "integrity": "sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==", + "dev": true, + "dependencies": { + "is-docker": "^3.0.0" + }, + "bin": { + "is-inside-container": "cli.js" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-nan": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/is-nan/-/is-nan-1.3.2.tgz", + "integrity": "sha512-E+zBKpQ2t6MEo1VsonYmluk9NxGrbzpeeLC2xIViuO2EjU2xsXsBPwTr3Ykv9l08UYEVEdWeRZNouaZqF6RN0w==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.0", + "define-properties": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-negative-zero": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", @@ -2422,6 +3399,15 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/is-plain-obj": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", @@ -2431,15 +3417,6 @@ "node": ">=8" } }, - "node_modules/is-reference": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/is-reference/-/is-reference-1.2.1.tgz", - "integrity": "sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==", - "dev": true, - "dependencies": { - "@types/estree": "*" - } - }, "node_modules/is-regex": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", @@ -2561,6 +3538,33 @@ "node": ">=0.10.0" } }, + "node_modules/is-wsl": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", + "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", + "dev": true, + "dependencies": { + "is-docker": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-wsl/node_modules/is-docker": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", + "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", + "dev": true, + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/isarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", @@ -2573,9 +3577,9 @@ "dev": true }, "node_modules/istanbul-lib-coverage": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.0.0.tgz", - "integrity": "sha512-UiUIqxMgRDET6eR+o5HbfRYP1l0hqkWOs7vNxC/mggutCMUIhWMm8gAHb8tHlyfD3/l6rlgNA5cKdDzEAf6hEg==", + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", + "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", "dev": true, "engines": { "node": ">=8" @@ -2664,15 +3668,6 @@ "node": ">=8" } }, - "node_modules/istanbul-lib-report/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/istanbul-lib-report/node_modules/supports-color": { "version": "7.1.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz", @@ -2699,19 +3694,10 @@ "node": ">=8" } }, - "node_modules/istanbul-lib-source-maps/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/istanbul-reports": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.0.2.tgz", - "integrity": "sha512-9tZvz7AiR3PEDNGiV9vIouQ/EAcqMXFmkcA1CDFTwOB98OZVDL0PH9glHotf5Ugp6GCOTypfzGWI/OqjWNCRUw==", + "version": "3.1.6", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.6.tgz", + "integrity": "sha512-TLgnMkKg3iTDsQ9PbPTdpfAK2DzjF9mqUG7RMgcQl8oFjad8ob4laGxv5XV5U9MAfx8D6tSJiUyuAwzLicaxlg==", "dev": true, "dependencies": { "html-escaper": "^2.0.0", @@ -2765,13 +3751,10 @@ "dev": true }, "node_modules/json5": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.1.3.tgz", - "integrity": "sha512-KXPvOm8K9IJKFM0bmdn8QXh7udDh1g/giieX0NLCaMnb4hEiVFqnop2ImTXCc5e0/oHz3LTqmHGtExn5hfMkOA==", + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", "dev": true, - "dependencies": { - "minimist": "^1.2.5" - }, "bin": { "json5": "lib/cli.js" }, @@ -2807,18 +3790,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", - "dev": true - }, - "node_modules/lodash.clonedeep": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", - "integrity": "sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=", - "dev": true - }, "node_modules/lodash.flattendeep": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/lodash.flattendeep/-/lodash.flattendeep-4.4.0.tgz", @@ -2831,12 +3802,6 @@ "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", "dev": true }, - "node_modules/lodash.truncate": { - "version": "4.4.2", - "resolved": "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz", - "integrity": "sha1-WjUNoLERO4N+z//VgSy+WNbq4ZM=", - "dev": true - }, "node_modules/log-symbols": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", @@ -2865,15 +3830,6 @@ "node": ">=10" } }, - "node_modules/magic-string": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.9.tgz", - "integrity": "sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==", - "dev": true, - "dependencies": { - "sourcemap-codec": "^1.4.8" - } - }, "node_modules/make-dir": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", @@ -2898,6 +3854,52 @@ "semver": "bin/semver.js" } }, + "node_modules/make-error": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "dev": true + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "dev": true, + "dependencies": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mimic-fn": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz", + "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", @@ -2983,15 +3985,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/mocha/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/mocha/node_modules/js-yaml": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", @@ -3022,21 +4015,6 @@ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", "dev": true }, - "node_modules/mocha/node_modules/supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" - } - }, "node_modules/ms": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", @@ -3073,6 +4051,12 @@ "node": ">=8" } }, + "node_modules/node-releases": { + "version": "2.0.13", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.13.tgz", + "integrity": "sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==", + "dev": true + }, "node_modules/normalize-path": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", @@ -3082,6 +4066,33 @@ "node": ">=0.10.0" } }, + "node_modules/npm-run-path": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.1.0.tgz", + "integrity": "sha512-sJOdmRGrY2sjNTRMbSvluQqg+8X7ZK61yvzBEIDhz4f8z1TZFYABsqjjCBd/0PUNE9M6QDgHJXQkGUEm7Q+l9Q==", + "dev": true, + "dependencies": { + "path-key": "^4.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/npm-run-path/node_modules/path-key": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz", + "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/nyc": { "version": "15.1.0", "resolved": "https://registry.npmjs.org/nyc/-/nyc-15.1.0.tgz", @@ -3296,6 +4307,22 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/object-is": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/object-is/-/object-is-1.1.5.tgz", + "integrity": "sha512-3cyDsyHgtmi7I7DfSSI2LDp6SK2lwvtbg0p0R1e0RvTqF5ceGx+K2dfSjm1bKDMVCFEDAQvy+o8c6a7VujOddw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/object-keys": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", @@ -3378,18 +4405,51 @@ "wrappy": "1" } }, + "node_modules/onetime": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz", + "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==", + "dev": true, + "dependencies": { + "mimic-fn": "^4.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/open": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/open/-/open-9.1.0.tgz", + "integrity": "sha512-OS+QTnw1/4vrf+9hh1jc1jnYjzSG4ttTBB8UxOwAnInG3Uo4ssetzC1ihqaIHjLJnA5GGlRl6QlZXOTQhRBUvg==", + "dev": true, + "dependencies": { + "default-browser": "^4.0.0", + "define-lazy-prop": "^3.0.0", + "is-inside-container": "^1.0.0", + "is-wsl": "^2.2.0" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/optionator": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", - "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", + "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", "dev": true, "dependencies": { + "@aashutoshrathi/word-wrap": "^1.2.3", "deep-is": "^0.1.3", "fast-levenshtein": "^2.0.6", "levn": "^0.4.1", "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.3" + "type-check": "^0.4.0" }, "engines": { "node": ">= 0.8.0" @@ -3531,6 +4591,21 @@ "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", "dev": true }, + "node_modules/path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "dev": true + }, "node_modules/picomatch": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", @@ -3611,15 +4686,15 @@ } }, "node_modules/prettier": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.6.2.tgz", - "integrity": "sha512-PkUpF+qoXTqhOeWL9fu7As8LXsIUZ1WYaJiY/a7McAQzxjk82OF0tibkFXVCDImZtWxbvojFjerkiLb0/q8mew==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.1.0.tgz", + "integrity": "sha512-TQLvXjq5IAibjh8EpBIkNKxO749UEWABoiIZehEPiY4GNpVdhaFKqSTu+QrlU6D2dPAfubRmtJTi4K4YkQ5eXw==", "dev": true, "bin": { - "prettier": "bin-prettier.js" + "prettier": "bin/prettier.cjs" }, "engines": { - "node": ">=10.13.0" + "node": ">=14" }, "funding": { "url": "https://github.com/prettier/prettier?sponsor=1" @@ -3654,28 +4729,39 @@ "node": ">=8" } }, - "node_modules/progress": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", - "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", - "dev": true, - "engines": { - "node": ">=0.4.0" - } - }, "node_modules/punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", "dev": true, "engines": { "node": ">=6" } }, - "node_modules/ramda": { - "version": "0.27.1", - "resolved": "https://registry.npmjs.org/ramda/-/ramda-0.27.1.tgz", - "integrity": "sha512-PgIdVpn5y5Yns8vqb8FzBUEYn98V3xcPgawAkkgj0YJ0qDsnHCiNmZYfOGMgOvoB0eWFLpYbhxUR3mxfDIMvpw==", + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/rambda": { + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/rambda/-/rambda-7.5.0.tgz", + "integrity": "sha512-y/M9weqWAH4iopRd7EHDEQQvpFPHj1AA3oHozE9tfITHUtTR7Z9PSlIRRG2l1GuW7sefC1cXFfIcF+cgnShdBA==", "dev": true }, "node_modules/randombytes": { @@ -3763,15 +4849,6 @@ "node": ">=0.10.0" } }, - "node_modules/require-from-string": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/require-main-filename": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", @@ -3804,6 +4881,25 @@ "node": ">=4" } }, + "node_modules/resolve-pkg-maps": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", + "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==", + "dev": true, + "funding": { + "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" + } + }, + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true, + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, "node_modules/rimraf": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", @@ -3819,19 +4915,119 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/rollup": { - "version": "2.74.1", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.74.1.tgz", - "integrity": "sha512-K2zW7kV8Voua5eGkbnBtWYfMIhYhT9Pel2uhBk2WO5eMee161nPze/XRfvEQPFYz7KgrCCnmh2Wy0AMFLGGmMA==", + "node_modules/run-applescript": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/run-applescript/-/run-applescript-5.0.0.tgz", + "integrity": "sha512-XcT5rBksx1QdIhlFOCtgZkB99ZEouFZ1E2Kc2LHqNW13U3/74YGdkQRmThTwxy4QIyookibDKYZOPqX//6BlAg==", "dev": true, - "bin": { - "rollup": "dist/bin/rollup" + "dependencies": { + "execa": "^5.0.0" }, "engines": { - "node": ">=10.0.0" + "node": ">=12" }, - "optionalDependencies": { - "fsevents": "~2.3.2" + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/run-applescript/node_modules/execa": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/run-applescript/node_modules/human-signals": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "dev": true, + "engines": { + "node": ">=10.17.0" + } + }, + "node_modules/run-applescript/node_modules/mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/run-applescript/node_modules/npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/run-applescript/node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/run-applescript/node_modules/strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "queue-microtask": "^1.2.2" } }, "node_modules/safe-array-concat": { @@ -3878,9 +5074,9 @@ } }, "node_modules/semver": { - "version": "7.3.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.4.tgz", - "integrity": "sha512-tCfb2WLjqFAtXn4KEdxIhalnRtoKFN7nAwj0B3ZXCbQloV2tq5eDbcTmT68JJD3nRJq24/XgxtQKFIpQdtvmVw==", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "dev": true, "dependencies": { "lru-cache": "^6.0.0" @@ -3972,61 +5168,20 @@ } }, "node_modules/signal-exit": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz", - "integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==", + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", "dev": true }, - "node_modules/slice-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", - "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "astral-regex": "^2.0.0", - "is-fullwidth-code-point": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/slice-ansi?sponsor=1" - } - }, - "node_modules/slice-ansi/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, "engines": { "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/slice-ansi/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" } }, - "node_modules/slice-ansi/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, "node_modules/slow-stream": { "version": "0.0.4", "resolved": "https://registry.npmjs.org/slow-stream/-/slow-stream-0.0.4.tgz", @@ -4035,21 +5190,14 @@ "dev": true }, "node_modules/source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "dev": true, "engines": { "node": ">=0.10.0" } }, - "node_modules/sourcemap-codec": { - "version": "1.4.8", - "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz", - "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==", - "deprecated": "Please use @jridgewell/sourcemap-codec instead", - "dev": true - }, "node_modules/spawn-wrap": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/spawn-wrap/-/spawn-wrap-2.0.0.tgz", @@ -4097,14 +5245,14 @@ } }, "node_modules/string-width": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.0.tgz", - "integrity": "sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==", + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "dev": true, "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.0" + "strip-ansi": "^6.0.1" }, "engines": { "node": ">=8" @@ -4156,12 +5304,12 @@ } }, "node_modules/strip-ansi": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", - "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, "dependencies": { - "ansi-regex": "^5.0.0" + "ansi-regex": "^5.0.1" }, "engines": { "node": ">=8" @@ -4176,6 +5324,18 @@ "node": ">=8" } }, + "node_modules/strip-final-newline": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz", + "integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/strip-json-comments": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", @@ -4189,15 +5349,18 @@ } }, "node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "dev": true, "dependencies": { - "has-flag": "^3.0.0" + "has-flag": "^4.0.0" }, "engines": { - "node": ">=4" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" } }, "node_modules/supports-preserve-symlinks-flag": { @@ -4212,44 +5375,30 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/table": { - "version": "6.7.1", - "resolved": "https://registry.npmjs.org/table/-/table-6.7.1.tgz", - "integrity": "sha512-ZGum47Yi6KOOFDE8m223td53ath2enHcYLgOCjGr5ngu8bdIARQk6mN/wRMv4yMRcHnCSnHbCEha4sobQx5yWg==", + "node_modules/synckit": { + "version": "0.8.5", + "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.8.5.tgz", + "integrity": "sha512-L1dapNV6vu2s/4Sputv8xGsCdAVlb5nRDMFU/E27D44l5U6cw1g0dGd45uLc+OXjNMmF4ntiMdCimzcjFKQI8Q==", "dev": true, "dependencies": { - "ajv": "^8.0.1", - "lodash.clonedeep": "^4.5.0", - "lodash.truncate": "^4.4.2", - "slice-ansi": "^4.0.0", - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0" + "@pkgr/utils": "^2.3.1", + "tslib": "^2.5.0" }, "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/table/node_modules/ajv": { - "version": "8.6.3", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.6.3.tgz", - "integrity": "sha512-SMJOdDP6LqTkD0Uq8qLi+gMwSt0imXLSV080qFVwJCpH9U6Mb+SUGHAXM0KNbcBPguytWyvFxcHgMLe2D2XSpw==", - "dev": true, - "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" + "node": "^14.18.0 || >=16.0.0" }, "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" + "url": "https://opencollective.com/unts" } }, - "node_modules/table/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "dev": true + "node_modules/tapable": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", + "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", + "dev": true, + "engines": { + "node": ">=6" + } }, "node_modules/test-exclude": { "version": "6.0.0", @@ -4271,6 +5420,18 @@ "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=", "dev": true }, + "node_modules/titleize": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/titleize/-/titleize-3.0.0.tgz", + "integrity": "sha512-KxVu8EYHDPBdUYdKZdKtU2aj2XfEx9AfjXxE/Aj0vT06w2icA09Vus1rh6eSu1y01akYg6BjIK/hxyLJINoMLQ==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/to-fast-properties": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", @@ -4292,39 +5453,76 @@ "node": ">=8.0" } }, - "node_modules/tsconfig-paths": { - "version": "3.14.2", - "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz", - "integrity": "sha512-o/9iXgCYc5L/JxCHPe3Hvh8Q/2xm5Z+p18PESBU6Ff33695QnCHBEjcytY2q19ua7Mbl/DavtBOLq+oG0RCL+g==", + "node_modules/ts-api-utils": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.0.3.tgz", + "integrity": "sha512-wNMeqtMz5NtwpT/UZGY5alT+VoKdSsOOP/kqHFcUW1P/VRhH2wJ48+DN2WwUliNbQ976ETwDL0Ifd2VVvgonvg==", "dev": true, - "dependencies": { - "@types/json5": "^0.0.29", - "json5": "^1.0.2", - "minimist": "^1.2.6", - "strip-bom": "^3.0.0" + "engines": { + "node": ">=16.13.0" + }, + "peerDependencies": { + "typescript": ">=4.2.0" } }, - "node_modules/tsconfig-paths/node_modules/json5": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", - "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", + "node_modules/ts-node": { + "version": "10.9.1", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz", + "integrity": "sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==", "dev": true, "dependencies": { - "minimist": "^1.2.0" + "@cspotcode/source-map-support": "^0.8.0", + "@tsconfig/node10": "^1.0.7", + "@tsconfig/node12": "^1.0.7", + "@tsconfig/node14": "^1.0.0", + "@tsconfig/node16": "^1.0.2", + "acorn": "^8.4.1", + "acorn-walk": "^8.1.1", + "arg": "^4.1.0", + "create-require": "^1.1.0", + "diff": "^4.0.1", + "make-error": "^1.1.1", + "v8-compile-cache-lib": "^3.0.1", + "yn": "3.1.1" }, "bin": { - "json5": "lib/cli.js" + "ts-node": "dist/bin.js", + "ts-node-cwd": "dist/bin-cwd.js", + "ts-node-esm": "dist/bin-esm.js", + "ts-node-script": "dist/bin-script.js", + "ts-node-transpile-only": "dist/bin-transpile.js", + "ts-script": "dist/bin-script-deprecated.js" + }, + "peerDependencies": { + "@swc/core": ">=1.2.50", + "@swc/wasm": ">=1.2.50", + "@types/node": "*", + "typescript": ">=2.7" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "@swc/wasm": { + "optional": true + } } }, - "node_modules/tsconfig-paths/node_modules/strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", + "node_modules/ts-node/node_modules/diff": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", "dev": true, "engines": { - "node": ">=4" + "node": ">=0.3.1" } }, + "node_modules/tslib": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", + "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==", + "dev": true + }, "node_modules/type-check": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", @@ -4420,6 +5618,19 @@ "is-typedarray": "^1.0.0" } }, + "node_modules/typescript": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.2.tgz", + "integrity": "sha512-6l+RyNy7oAHDfxC4FzSJcz9vnjTKxrLpDG5M2Vu4SHRVNg6xzqZp6LYSR9zjqQTu8DU/f5xwxUdADOkbrIX2gQ==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, "node_modules/unbox-primitive": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", @@ -4435,6 +5646,52 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "dev": true, + "peer": true + }, + "node_modules/untildify": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/untildify/-/untildify-4.0.0.tgz", + "integrity": "sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.0.13", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz", + "integrity": "sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "escalade": "^3.1.1", + "picocolors": "^1.0.0" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, "node_modules/uri-js": { "version": "4.4.1", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", @@ -4444,6 +5701,19 @@ "punycode": "^2.1.0" } }, + "node_modules/util": { + "version": "0.12.5", + "resolved": "https://registry.npmjs.org/util/-/util-0.12.5.tgz", + "integrity": "sha512-kZf/K6hEIrWHI6XqOFUiiMa+79wE/D8Q+NCNAWclkyg3b4d2k7s0QGepNjiABc+aR3N1PAyHL7p6UcLY6LmrnA==", + "dev": true, + "dependencies": { + "inherits": "^2.0.3", + "is-arguments": "^1.0.4", + "is-generator-function": "^1.0.7", + "is-typed-array": "^1.1.3", + "which-typed-array": "^1.1.2" + } + }, "node_modules/util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", @@ -4459,10 +5729,10 @@ "uuid": "bin/uuid" } }, - "node_modules/v8-compile-cache": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.2.0.tgz", - "integrity": "sha512-gTpR5XQNKFwOd4clxfnhaqvfqMpqEwr4tOtCyz4MtYZX2JYhfr1JvBFKdS+7K/9rfpZR3VLX+YWBbKoxCgS43Q==", + "node_modules/v8-compile-cache-lib": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", + "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", "dev": true }, "node_modules/which": { @@ -4521,15 +5791,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/word-wrap": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", - "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/workerpool": { "version": "6.2.1", "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.2.1.tgz", @@ -4691,6 +5952,15 @@ "node": ">=10" } }, + "node_modules/yn": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", + "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", + "dev": true, + "engines": { + "node": ">=6" + } + }, "node_modules/yocto-queue": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", diff --git a/package.json b/package.json index fcd699d..31fb300 100644 --- a/package.json +++ b/package.json @@ -22,13 +22,13 @@ } }, "scripts": { - "build": "npx rollup --config rollup.mjs.config.mjs && npx rollup --config rollup.cjs.config.mjs && bash .tools/create-per-distribution-package-json.sh", + "build": "bash .tools/build.sh", "hooks": "git config core.hooksPath .tools/git-hooks && chmod +x .tools/git-hooks/*", - "test": "mocha --recursive --exit --timeout 1000 test/", + "test": "mocha test/", "coverage": "nyc --temp-dir .coverage/.nyc_output --report-dir .coverage --reporter=lcov --reporter=html npm test", - "lint": "eslint index.mjs test/", + "lint": "eslint src/index.ts test/", "release": "bash .tools/release.sh master", - "clean": "rm -rf dist/" + "ts": "tsc -p tsconfig.test.json --showConfig" }, "repository": { "type": "git", @@ -45,18 +45,23 @@ "parallel-transform": "1.2.0" }, "devDependencies": { - "@rollup/plugin-commonjs": "22.0.0", - "eslint": "7.32.0", - "eslint-config-prettier": "8.3.0", + "@types/mocha": "10.0.6", + "@typescript-eslint/eslint-plugin": "6.12.0", + "@typescript-eslint/parser": "6.12.0", + "assert": "2.1.0", + "eslint": "8.54.0", + "eslint-config-prettier": "9.0.0", + "eslint-import-resolver-typescript": "3.6.1", "eslint-plugin-import": "2.29.0", - "eslint-plugin-mocha": "9.0.0", + "eslint-plugin-mocha": "10.2.0", "eslint-plugin-node": "11.1.0", - "eslint-plugin-prettier": "4.0.0", + "eslint-plugin-prettier": "5.0.1", "mocha": "10.2.0", "nyc": "15.1.0", - "prettier": "2.6.2", - "rollup": "2.74.1", - "slow-stream": "0.0.4" + "prettier": "3.1.0", + "slow-stream": "0.0.4", + "ts-node": "10.9.1", + "typescript": "5.3.2" }, "prettier": { "printWidth": 120 diff --git a/rollup.cjs.config.mjs b/rollup.cjs.config.mjs deleted file mode 100644 index 7288a07..0000000 --- a/rollup.cjs.config.mjs +++ /dev/null @@ -1,11 +0,0 @@ -import commonjs from "@rollup/plugin-commonjs"; - -export default { - input: "./index.mjs", - output: { - file: "./dist/cjs/index.js", - format: "cjs", - sourcemap: true, - }, - plugins: [commonjs()], -}; diff --git a/rollup.mjs.config.mjs b/rollup.mjs.config.mjs deleted file mode 100644 index b1dd08e..0000000 --- a/rollup.mjs.config.mjs +++ /dev/null @@ -1,8 +0,0 @@ -export default { - input: "./index.mjs", - output: { - file: "./dist/mjs/index.js", - format: "esm", - sourcemap: true, - }, -}; diff --git a/lib/accumulateData.mjs b/src/accumulateData.ts similarity index 91% rename from lib/accumulateData.mjs rename to src/accumulateData.ts index 8c88a22..ceeba99 100644 --- a/lib/accumulateData.mjs +++ b/src/accumulateData.ts @@ -1,6 +1,6 @@ import { Transform } from "stream"; -export function accumulateData(accumulate, options = {}) { +export function accumulateData(accumulate, options: any = {}) { const { accumulator, ...rest } = options; let acc = accumulator === undefined ? null : accumulator; let flushed = false; diff --git a/lib/compose.mjs b/src/compose.ts similarity index 61% rename from lib/compose.mjs rename to src/compose.ts index f355595..e1068c3 100644 --- a/lib/compose.mjs +++ b/src/compose.ts @@ -1,5 +1,5 @@ -import { oleoduc } from "./oleoduc.mjs"; -import { parseArgs } from "./utils/parseArgs.mjs"; +import { oleoduc } from "./oleoduc"; +import { parseArgs } from "./utils/parseArgs"; export function compose(...args) { const { streams, options } = parseArgs(args, { promisify: false }); diff --git a/lib/concatStreams.mjs b/src/concatStreams.ts similarity index 90% rename from lib/concatStreams.mjs rename to src/concatStreams.ts index e06a2bc..f42f749 100644 --- a/lib/concatStreams.mjs +++ b/src/concatStreams.ts @@ -1,7 +1,10 @@ import { PassThrough } from "stream"; -import { parseArgs } from "./utils/parseArgs.mjs"; +import { parseArgs } from "./utils/parseArgs"; class ArrayCursor { + private array: any; + private cpt: number; + constructor(array) { this.array = array; this.cpt = 0; diff --git a/lib/filterData.mjs b/src/filterData.ts similarity index 69% rename from lib/filterData.mjs rename to src/filterData.ts index acd07b6..d8984b2 100644 --- a/lib/filterData.mjs +++ b/src/filterData.ts @@ -1,4 +1,4 @@ -import { transformData } from "./transformData.mjs"; +import { transformData } from "./transformData"; export function filterData(filter, options = {}) { return transformData((data) => data, { ...options, filter }); diff --git a/lib/flattenArray.mjs b/src/flattenArray.ts similarity index 97% rename from lib/flattenArray.mjs rename to src/flattenArray.ts index 845c3bf..17480ba 100644 --- a/lib/flattenArray.mjs +++ b/src/flattenArray.ts @@ -4,6 +4,8 @@ import { Transform } from "stream"; * Inspired by https://stackoverflow.com/a/43811543/122975 */ class TransformArray extends Transform { + private _resumeTransform: any; + constructor(options) { super(options); this._resumeTransform = null; diff --git a/lib/groupData.mjs b/src/groupData.ts similarity index 84% rename from lib/groupData.mjs rename to src/groupData.ts index 0bb93a9..bec5ecf 100644 --- a/lib/groupData.mjs +++ b/src/groupData.ts @@ -1,5 +1,5 @@ -import { compose } from "./compose.mjs"; -import { accumulateData } from "./accumulateData.mjs"; +import { compose } from "./compose"; +import { accumulateData } from "./accumulateData"; function parseOptionalArgs(...args) { const options = { @@ -26,6 +26,6 @@ export function groupData(...args) { } else { return group; } - }, options) + }, options), ); } diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 0000000..b936aa4 --- /dev/null +++ b/src/index.ts @@ -0,0 +1,33 @@ +import { oleoduc } from "./oleoduc"; +import { compose } from "./compose"; +import { transformData } from "./transformData"; +import { transformIntoJSON } from "./transformIntoJSON"; +import { transformIntoCSV } from "./transformIntoCSV"; +import { transformStream } from "./transformStream"; +import { filterData } from "./filterData"; +import { accumulateData } from "./accumulateData"; +import { groupData } from "./groupData"; +import { readLineByLine } from "./readLineByLine"; +import { flattenArray } from "./flattenArray"; +import { mergeStreams } from "./mergeStreams"; +import { concatStreams } from "./concatStreams"; +import { writeData } from "./writeData"; +import { writeToStdout } from "./writeToStdout"; + +export { + oleoduc, + compose, + transformData, + transformIntoJSON, + transformIntoCSV, + transformStream, + filterData, + accumulateData, + groupData, + readLineByLine, + flattenArray, + mergeStreams, + concatStreams, + writeData, + writeToStdout, +}; diff --git a/lib/mergeStreams.mjs b/src/mergeStreams.ts similarity index 91% rename from lib/mergeStreams.mjs rename to src/mergeStreams.ts index 2da9f0c..6b48cbf 100644 --- a/lib/mergeStreams.mjs +++ b/src/mergeStreams.ts @@ -1,6 +1,6 @@ import { PassThrough } from "stream"; -import { decorateWithAsyncIterator } from "./utils/decorateWithAsyncIterator.mjs"; -import { parseArgs } from "./utils/parseArgs.mjs"; +import { decorateWithAsyncIterator } from "./utils/decorateWithAsyncIterator"; +import { parseArgs } from "./utils/parseArgs"; export function mergeStreams(...args) { const { streams, options } = parseArgs(args); diff --git a/lib/oleoduc.mjs b/src/oleoduc.ts similarity index 92% rename from lib/oleoduc.mjs rename to src/oleoduc.ts index d876eca..db0b4dd 100644 --- a/lib/oleoduc.mjs +++ b/src/oleoduc.ts @@ -1,8 +1,8 @@ import { PassThrough } from "stream"; -import { decorateWithPromise } from "./utils/decorateWithPromise.mjs"; -import { decorateWithAsyncIterator } from "./utils/decorateWithAsyncIterator.mjs"; -import { parseArgs } from "./utils/parseArgs.mjs"; -import { Duplexer } from "./utils/Duplexer.mjs"; +import { decorateWithPromise } from "./utils/decorateWithPromise"; +import { decorateWithAsyncIterator } from "./utils/decorateWithAsyncIterator"; +import { parseArgs } from "./utils/parseArgs"; +import { Duplexer } from "./utils/Duplexer"; function pipeStreamsTogether(streams, wrapper) { for (const [i, stream] of streams.entries()) { @@ -59,7 +59,7 @@ export function oleoduc(...args) { wrapper.on("error", (e) => reject(e)); last.on("finish", resolve); // Needed by nodejs 12 and previous last.on("close", resolve); - }) + }), ); } else if (wrapper !== last && wrapper !== first) { last.on("finish", () => wrapper.emit("finish")); // Needed by nodejs 12 and previous diff --git a/lib/readLineByLine.mjs b/src/readLineByLine.ts similarity index 70% rename from lib/readLineByLine.mjs rename to src/readLineByLine.ts index 0d8d0c0..ec9db40 100644 --- a/lib/readLineByLine.mjs +++ b/src/readLineByLine.ts @@ -1,6 +1,6 @@ -import { accumulateData } from "./accumulateData.mjs"; -import { flattenArray } from "./flattenArray.mjs"; -import { compose } from "./compose.mjs"; +import { accumulateData } from "./accumulateData"; +import { flattenArray } from "./flattenArray"; +import { compose } from "./compose"; export function readLineByLine() { return compose( @@ -17,8 +17,8 @@ export function readLineByLine() { return acc + rest; }, - { accumulator: "", readableObjectMode: true, writableObjectMode: false } + { accumulator: "", readableObjectMode: true, writableObjectMode: false }, ), - flattenArray() + flattenArray(), ); } diff --git a/lib/transformData.mjs b/src/transformData.ts similarity index 88% rename from lib/transformData.mjs rename to src/transformData.ts index 4f53dcf..9ee8776 100644 --- a/lib/transformData.mjs +++ b/src/transformData.ts @@ -1,6 +1,6 @@ import transform from "parallel-transform"; -export function transformData(handleChunk, options = {}) { +export function transformData(handleChunk, options: any = {}) { const { filter, parallel, ...rest } = options; const filterChunk = (value) => !filter || filter(value); const maxParallel = parallel || 1; diff --git a/lib/transformIntoCSV.mjs b/src/transformIntoCSV.ts similarity index 95% rename from lib/transformIntoCSV.mjs rename to src/transformIntoCSV.ts index 61ddf89..7f87cad 100644 --- a/lib/transformIntoCSV.mjs +++ b/src/transformIntoCSV.ts @@ -1,6 +1,6 @@ import { Transform } from "stream"; -export function transformIntoCSV(options = {}) { +export function transformIntoCSV(options: any = {}) { const bom = options.bom; const separator = options.separator || ";"; const mapper = options.mapper || ((v) => v); diff --git a/lib/transformIntoJSON.mjs b/src/transformIntoJSON.ts similarity index 96% rename from lib/transformIntoJSON.mjs rename to src/transformIntoJSON.ts index 9d81b43..acd1ca2 100644 --- a/lib/transformIntoJSON.mjs +++ b/src/transformIntoJSON.ts @@ -1,6 +1,6 @@ import { Transform } from "stream"; -export function transformIntoJSON(options = {}) { +export function transformIntoJSON(options: any = {}) { let chunksSent = 0; return new Transform({ readableObjectMode: false, diff --git a/lib/transformStream.mjs b/src/transformStream.ts similarity index 95% rename from lib/transformStream.mjs rename to src/transformStream.ts index 83d60a8..3e16da5 100644 --- a/lib/transformStream.mjs +++ b/src/transformStream.ts @@ -1,6 +1,9 @@ import { Transform } from "stream"; class TransformStream extends Transform { + private handleChunk: any; + private _current: any; + constructor(handleChunk, options) { super(options); this.handleChunk = handleChunk; @@ -18,7 +21,6 @@ class TransformStream extends Transform { this._current = stream; const backpressure = !this.push(data); if (backpressure) { - console.log("pause"); stream.pause(); } }); diff --git a/lib/utils/Duplexer.mjs b/src/utils/Duplexer.ts similarity index 93% rename from lib/utils/Duplexer.mjs rename to src/utils/Duplexer.ts index d0fe6f8..7c89832 100644 --- a/lib/utils/Duplexer.mjs +++ b/src/utils/Duplexer.ts @@ -1,6 +1,8 @@ import { Duplex } from "stream"; export class Duplexer extends Duplex { + private input: any; + private output: any; constructor(input, output, options) { super(options || { writableObjectMode: true, readableObjectMode: true }); this.input = input; diff --git a/lib/utils/decorateWithAsyncIterator.mjs b/src/utils/decorateWithAsyncIterator.ts similarity index 67% rename from lib/utils/decorateWithAsyncIterator.mjs rename to src/utils/decorateWithAsyncIterator.ts index fd39e4f..81adc67 100644 --- a/lib/utils/decorateWithAsyncIterator.mjs +++ b/src/utils/decorateWithAsyncIterator.ts @@ -1,4 +1,4 @@ -import { toAsyncIterator } from "./toAsyncIterator.mjs"; +import { toAsyncIterator } from "./toAsyncIterator"; export function decorateWithAsyncIterator(stream) { stream[Symbol.asyncIterator] = () => toAsyncIterator(stream); diff --git a/lib/utils/decorateWithPromise.mjs b/src/utils/decorateWithPromise.ts similarity index 92% rename from lib/utils/decorateWithPromise.mjs rename to src/utils/decorateWithPromise.ts index f68d315..b4d3c17 100644 --- a/lib/utils/decorateWithPromise.mjs +++ b/src/utils/decorateWithPromise.ts @@ -4,7 +4,9 @@ export function decorateWithPromise(stream, promise) { }); for (const [property, descriptor] of descriptors) { + // @ts-ignore const value = (...args) => Reflect.apply(descriptor.value, promise, args); + // @ts-ignore Reflect.defineProperty(stream, property, { ...descriptor, value }); } return stream; diff --git a/lib/utils/parseArgs.mjs b/src/utils/parseArgs.ts similarity index 100% rename from lib/utils/parseArgs.mjs rename to src/utils/parseArgs.ts diff --git a/lib/utils/toAsyncIterator.mjs b/src/utils/toAsyncIterator.ts similarity index 85% rename from lib/utils/toAsyncIterator.mjs rename to src/utils/toAsyncIterator.ts index 680c774..2640a6d 100644 --- a/lib/utils/toAsyncIterator.mjs +++ b/src/utils/toAsyncIterator.ts @@ -8,14 +8,15 @@ import { Readable } from "stream"; * @param options * @returns {AsyncGenerator<*, void, *>} */ -export async function* toAsyncIterator(stream, options = {}) { +export async function* toAsyncIterator(stream, options: any = {}) { const chunkSize = options.chunkSize || 1; if (typeof stream.read !== "function") { + // @ts-ignore stream = Readable.wrap(stream, { objectMode: true }); } let ended = false; - const onEnded = new Promise((res, rej) => { + const onEnded = new Promise((res, rej) => { stream.once("error", rej); stream.once("end", () => { ended = true; diff --git a/lib/writeData.mjs b/src/writeData.ts similarity index 93% rename from lib/writeData.mjs rename to src/writeData.ts index 3fb378a..efa6370 100644 --- a/lib/writeData.mjs +++ b/src/writeData.ts @@ -3,7 +3,10 @@ import cyclist from "cyclist"; import { inherits } from "util"; const ParallelWrite = function (maxParallel, opts, onWrite) { - if (!(this instanceof ParallelWrite)) return new ParallelWrite(maxParallel, opts, onWrite); + if (!(this instanceof ParallelWrite)) { + // @ts-ignore + return new ParallelWrite(maxParallel, opts, onWrite); + } if (typeof maxParallel === "function") { onWrite = maxParallel; @@ -93,7 +96,7 @@ ParallelWrite.prototype._drained = function () { return this._flushed ? !diff : diff < this._maxParallel; }; -export function writeData(handleChunk, options = {}) { +export function writeData(handleChunk, options: any = {}) { return ParallelWrite(options.parallel || 1, { objectMode: true }, async (chunk, callback) => { try { const res = await handleChunk(chunk); diff --git a/lib/writeToStdout.mjs b/src/writeToStdout.ts similarity index 100% rename from lib/writeToStdout.mjs rename to src/writeToStdout.ts diff --git a/test/accumulateData-test.mjs b/test/accumulateData-test.ts similarity index 80% rename from test/accumulateData-test.mjs rename to test/accumulateData-test.ts index f1580a2..3294bc8 100644 --- a/test/accumulateData-test.mjs +++ b/test/accumulateData-test.ts @@ -1,6 +1,6 @@ -import assert from "assert"; -import { accumulateData, writeData } from "../index.mjs"; -import { createStream } from "./testUtils.mjs"; +import { deepStrictEqual, strictEqual, fail } from "assert"; +import { accumulateData, writeData } from "../src/index"; +import { createStream } from "./testUtils"; describe("accumulateData", () => { it("can accumulateData by grouping them (flush)", (done) => { @@ -25,12 +25,12 @@ describe("accumulateData", () => { flush(acc.join(" ")); return []; // Reset accumulator }, - { accumulator: [] } - ) + { accumulator: [] }, + ), ) .pipe(writeData((data) => result.push(data))) .on("finish", () => { - assert.deepStrictEqual(result, ["John Doe", "Robert Hue"]); + deepStrictEqual(result, ["John Doe", "Robert Hue"]); done(); }); }); @@ -48,7 +48,7 @@ describe("accumulateData", () => { .pipe(accumulateData((acc, data) => acc + data, { accumulator: "" })) .pipe(writeData((data) => result.push(data))) .on("finish", () => { - assert.deepStrictEqual(result, ["john"]); + deepStrictEqual(result, ["john"]); done(); }); }); @@ -63,7 +63,7 @@ describe("accumulateData", () => { throw new Error("Unable to hande data"); }); accumulator.on("error", (e) => { - assert.strictEqual(e.message, "Unable to hande data"); + strictEqual(e.message, "Unable to hande data"); done(); }); @@ -71,7 +71,7 @@ describe("accumulateData", () => { .pipe(accumulator) .pipe(writeData((data) => result.push(data))) .on("finish", () => { - assert.fail(); + fail(); done(); }); }); diff --git a/test/compose-test.mjs b/test/compose-test.ts similarity index 76% rename from test/compose-test.mjs rename to test/compose-test.ts index 047b9c6..7253fb2 100644 --- a/test/compose-test.mjs +++ b/test/compose-test.ts @@ -1,7 +1,7 @@ -import assert from "assert"; +import { deepStrictEqual, fail } from "assert"; import SlowStream from "slow-stream"; -import { createStream } from "./testUtils.mjs"; -import { compose, transformData, writeData, oleoduc, flattenArray } from "../index.mjs"; +import { createStream } from "./testUtils"; +import { compose, flattenArray, oleoduc, transformData, writeData } from "../src"; describe("compose", () => { it("can compose streams", (done) => { @@ -13,14 +13,14 @@ describe("compose", () => { compose( source, transformData((d) => d.substring(0, 1)), - writeData((data) => chunks.push(data)) + writeData((data) => chunks.push(data)), ) .on("finish", () => { - assert.deepStrictEqual(chunks, ["f"]); + deepStrictEqual(chunks, ["f"]); done(); }) .on("error", () => { - assert.fail(); + fail(); done(); }); }); @@ -35,14 +35,14 @@ describe("compose", () => { const stream = compose( source, - transformData((data) => data.substring(0, 1)) + transformData((data) => data.substring(0, 1)), ); for await (const chunk of stream) { chunks.push(chunk); } - assert.deepStrictEqual(chunks, ["a", "b", "r"]); + deepStrictEqual(chunks, ["a", "b", "r"]); }); it("can pipe a compose stream", (done) => { @@ -57,7 +57,7 @@ describe("compose", () => { .pipe(transformData((data) => data.substring(0, 1))) .pipe(writeData((data) => chunks.push(data))) .on("finish", () => { - assert.deepStrictEqual(chunks, ["a", "b", "r"]); + deepStrictEqual(chunks, ["a", "b", "r"]); done(); }); }); @@ -74,12 +74,12 @@ describe("compose", () => { .pipe( compose( transformData((data) => data.substring(0, 1)), - transformData((data) => "_" + data) - ) + transformData((data) => "_" + data), + ), ) .pipe(writeData((data) => chunks.push(data))) .on("finish", () => { - assert.deepStrictEqual(chunks, ["_a", "_b", "_r"]); + deepStrictEqual(chunks, ["_a", "_b", "_r"]); done(); }); }); @@ -89,7 +89,7 @@ describe("compose", () => { const source = createStream(); const nested = compose( source, - transformData((d) => d.substring(0, 1)) + transformData((d) => d.substring(0, 1)), ); source.push("first"); @@ -97,14 +97,14 @@ describe("compose", () => { compose( nested, - writeData((d) => chunks.push(d)) + writeData((d) => chunks.push(d)), ) .on("finish", () => { - assert.deepStrictEqual(chunks, ["f"]); + deepStrictEqual(chunks, ["f"]); done(); }) .on("error", (e) => { - assert.fail(e); + fail(e); done(); }); }); @@ -114,7 +114,7 @@ describe("compose", () => { const source = createStream(); const nested = oleoduc( source, - transformData((d) => d.substring(0, 1)) + transformData((d) => d.substring(0, 1)), ); source.push("first"); @@ -122,14 +122,14 @@ describe("compose", () => { compose( nested, - writeData((d) => chunks.push(d)) + writeData((d) => chunks.push(d)), ) .on("finish", () => { - assert.deepStrictEqual(chunks, ["f"]); + deepStrictEqual(chunks, ["f"]); done(); }) .on("error", () => { - assert.fail(); + fail(); done(); }); }); @@ -146,9 +146,9 @@ describe("compose", () => { new SlowStream({ maxWriteInterval: 10 }), writeData((data) => { result += data; - }) + }), ).on("finish", () => { - assert.deepStrictEqual(result, "andrébrunorobert"); + deepStrictEqual(result, "andrébrunorobert"); done(); }); }); @@ -164,9 +164,9 @@ describe("compose", () => { compose(flattenArray({ highWaterMark: 1 }), new SlowStream({ maxWriteInterval: 10 })), writeData((data) => { result += data; - }) + }), ).on("finish", () => { - assert.deepStrictEqual(result, "andrébrunorobert"); + deepStrictEqual(result, "andrébrunorobert"); done(); }); }); @@ -176,14 +176,14 @@ describe("compose", () => { compose( source, - writeData(() => ({})) + writeData(() => ({})), ) .on("finish", () => { - assert.fail(); + fail(); done(); }) .on("error", (e) => { - assert.deepStrictEqual(e, "emitted"); + deepStrictEqual(e, "emitted"); done(); }); @@ -200,14 +200,14 @@ describe("compose", () => { source, writeData(() => { throw new Error("write error"); - }) + }), ) .on("finish", () => { - assert.fail(); + fail(); done(); }) .on("error", (e) => { - assert.deepStrictEqual(e.message, "write error"); + deepStrictEqual(e.message, "write error"); done(); }); }); diff --git a/test/concatStreams-test.mjs b/test/concatStreams-test.ts similarity index 79% rename from test/concatStreams-test.mjs rename to test/concatStreams-test.ts index 264f195..58300a8 100644 --- a/test/concatStreams-test.mjs +++ b/test/concatStreams-test.ts @@ -1,6 +1,6 @@ -import assert from "assert"; -import { concatStreams, writeData } from "../index.mjs"; -import { delay, streamArray } from "./testUtils.mjs"; +import { deepStrictEqual } from "assert"; +import { concatStreams, writeData } from "../src/index"; +import { delay, streamArray } from "./testUtils"; describe("concatStreams", () => { it("can concat streams", (done) => { @@ -11,7 +11,7 @@ describe("concatStreams", () => { concatStreams(source1, source2) .pipe(writeData((data) => (result += data))) .on("finish", () => { - assert.deepStrictEqual(result, "andrébruno"); + deepStrictEqual(result, "andrébruno"); done(); }); }); @@ -24,7 +24,7 @@ describe("concatStreams", () => { concatStreams(next) .pipe(writeData((data) => (result += data))) .on("finish", () => { - assert.deepStrictEqual(result, "andrébruno"); + deepStrictEqual(result, "andrébruno"); done(); }); }); @@ -37,7 +37,7 @@ describe("concatStreams", () => { concatStreams(next) .pipe(writeData((data) => (result += data))) .on("finish", () => { - assert.deepStrictEqual(result, "andrébruno"); + deepStrictEqual(result, "andrébruno"); done(); }); }); @@ -50,7 +50,7 @@ describe("concatStreams", () => { concatStreams(next) .pipe(writeData((data) => (result += data))) .on("finish", () => { - assert.deepStrictEqual(result, "andrébruno"); + deepStrictEqual(result, "andrébruno"); done(); }); }); @@ -64,6 +64,6 @@ describe("concatStreams", () => { chunks.push(chunk); } - assert.deepStrictEqual(chunks, ["andré", "bruno"]); + deepStrictEqual(chunks, ["andré", "bruno"]); }); }); diff --git a/test/filterData-tests.mjs b/test/filterData-tests.ts similarity index 79% rename from test/filterData-tests.mjs rename to test/filterData-tests.ts index 454815c..f14d13f 100644 --- a/test/filterData-tests.mjs +++ b/test/filterData-tests.ts @@ -1,6 +1,6 @@ -import assert from "assert"; -import { createStream } from "./testUtils.mjs"; -import { filterData } from "../index.mjs"; +import { deepStrictEqual, fail, strictEqual } from "assert"; +import { createStream } from "./testUtils"; +import { filterData } from "../src"; describe("filterData", () => { it("should filter (ignore empty)", (done) => { @@ -14,11 +14,11 @@ describe("filterData", () => { .pipe( filterData((value) => { return value !== null && value !== undefined && Object.keys(value).length > 0; - }) + }), ) .on("data", (d) => chunks.push(d)) .on("end", () => { - assert.deepStrictEqual(chunks, ["first"]); + deepStrictEqual(chunks, ["first"]); done(); }); }); @@ -34,11 +34,11 @@ describe("filterData", () => { .pipe( filterData(() => { return Promise.resolve(false); - }) + }), ) .on("data", (d) => chunks.push(d)) .on("end", () => { - assert.deepStrictEqual(chunks, []); + deepStrictEqual(chunks, []); done(); }); }); @@ -55,7 +55,7 @@ describe("filterData", () => { .pipe(filterData(() => lines++ !== 0)) .on("data", (d) => chunks.push(d)) .on("end", () => { - assert.deepStrictEqual(chunks, ["second"]); + deepStrictEqual(chunks, ["second"]); done(); }); }); @@ -68,11 +68,11 @@ describe("filterData", () => { source .pipe(filterData(() => true, { objectMode: false })) .on("error", (e) => { - assert.strictEqual(e.message, "Invalid non-string/buffer chunk"); + strictEqual(e.message, "Invalid non-string/buffer chunk"); done(); }) .on("end", () => { - assert.fail(); + fail(); }); }); }); diff --git a/test/flattenArray-test.mjs b/test/flattenArray-test.ts similarity index 79% rename from test/flattenArray-test.mjs rename to test/flattenArray-test.ts index 1d5cfb9..e1ffcda 100644 --- a/test/flattenArray-test.mjs +++ b/test/flattenArray-test.ts @@ -1,7 +1,7 @@ -import assert from "assert"; +import { deepStrictEqual } from "assert"; import SlowStream from "slow-stream"; -import { flattenArray, accumulateData, writeData } from "../index.mjs"; -import { streamArray } from "./testUtils.mjs"; +import { accumulateData, flattenArray, writeData } from "../src"; +import { streamArray } from "./testUtils"; describe("flattenArray", () => { it("can flat map an array", (done) => { @@ -13,10 +13,10 @@ describe("flattenArray", () => { .pipe( writeData((data) => { result += data; - }) + }), ) .on("finish", () => { - assert.deepStrictEqual(result, "andrébruno"); + deepStrictEqual(result, "andrébruno"); done(); }); }); @@ -34,10 +34,10 @@ describe("flattenArray", () => { .pipe( writeData((data) => { result += data.toUpperCase(); - }) + }), ) .on("finish", () => { - assert.deepStrictEqual(result, "AB"); + deepStrictEqual(result, "AB"); done(); }); }); @@ -55,10 +55,10 @@ describe("flattenArray", () => { .pipe( writeData((data) => { result += "_" + data; - }) + }), ) .on("finish", () => { - assert.deepStrictEqual(result, "_andré_bruno_robert_john_henri"); + deepStrictEqual(result, "_andré_bruno_robert_john_henri"); done(); }); }); diff --git a/test/groupData-test.mjs b/test/groupData-test.ts similarity index 74% rename from test/groupData-test.mjs rename to test/groupData-test.ts index 60e6906..284b8c7 100644 --- a/test/groupData-test.mjs +++ b/test/groupData-test.ts @@ -1,6 +1,6 @@ -import assert from "assert"; -import { createStream } from "./testUtils.mjs"; -import { groupData, writeData } from "../index.mjs"; +import { deepStrictEqual } from "assert"; +import { createStream } from "./testUtils"; +import { groupData, writeData } from "../src"; describe("groupData", () => { it("can create group of data", (done) => { @@ -16,10 +16,10 @@ describe("groupData", () => { .pipe( writeData((group) => { return results.push(group); - }) + }), ) .on("finish", () => { - assert.deepStrictEqual(results, [["abc"], ["def"], ["ghi"]]); + deepStrictEqual(results, [["abc"], ["def"], ["ghi"]]); done(); }); }); @@ -37,10 +37,10 @@ describe("groupData", () => { .pipe( writeData((group) => { return results.push(group); - }) + }), ) .on("finish", () => { - assert.deepStrictEqual(results, [["abc", "def"], ["ghi"]]); + deepStrictEqual(results, [["abc", "def"], ["ghi"]]); done(); }); }); diff --git a/test/mergeStreams-test.mjs b/test/mergeStreams-test.ts similarity index 71% rename from test/mergeStreams-test.mjs rename to test/mergeStreams-test.ts index a890919..c3f3c41 100644 --- a/test/mergeStreams-test.mjs +++ b/test/mergeStreams-test.ts @@ -1,6 +1,6 @@ -import assert from "assert"; -import { mergeStreams, writeData } from "../index.mjs"; -import { streamArray } from "./testUtils.mjs"; +import { deepStrictEqual } from "assert"; +import { mergeStreams, writeData } from "../src"; +import { streamArray } from "./testUtils"; describe("mergeStreams", () => { it("can merge streams", (done) => { @@ -11,7 +11,7 @@ describe("mergeStreams", () => { mergeStreams(source1, source2) .pipe(writeData((data) => (result += data))) .on("finish", () => { - assert.deepStrictEqual(result, "andrébruno"); + deepStrictEqual(result, "andrébruno"); done(); }); }); @@ -25,6 +25,6 @@ describe("mergeStreams", () => { chunks.push(chunk); } - assert.deepStrictEqual(chunks, ["andré", "bruno"]); + deepStrictEqual(chunks, ["andré", "bruno"]); }); }); diff --git a/test/oleoduc-test.mjs b/test/oleoduc-test.ts similarity index 71% rename from test/oleoduc-test.mjs rename to test/oleoduc-test.ts index ca343aa..61d0959 100644 --- a/test/oleoduc-test.mjs +++ b/test/oleoduc-test.ts @@ -1,6 +1,6 @@ -import assert from "assert"; -import { createStream, delay } from "./testUtils.mjs"; -import { oleoduc, transformData, writeData, compose } from "../index.mjs"; +import { deepStrictEqual, fail, strictEqual } from "assert"; +import { createStream, delay } from "./testUtils"; +import { compose, oleoduc, transformData, writeData } from "../src"; describe("oleoduc", () => { it("can create oleoduc", async () => { @@ -18,10 +18,10 @@ describe("oleoduc", () => { }), writeData((data) => { return delay(() => chunks.push(data), 2); - }) + }), ); - assert.deepStrictEqual(chunks, ["a", "b", "r"]); + deepStrictEqual(chunks, ["a", "b", "r"]); }); it("can iterate over an oleoduc", async () => { @@ -34,14 +34,14 @@ describe("oleoduc", () => { const stream = oleoduc( source, - transformData((data) => data.substring(0, 1)) + transformData((data) => data.substring(0, 1)), ); for await (const chunk of stream) { chunks.push(chunk); } - assert.deepStrictEqual(chunks, ["a", "b", "r"]); + deepStrictEqual(chunks, ["a", "b", "r"]); }); it("can nest oleoduc", async () => { @@ -49,7 +49,7 @@ describe("oleoduc", () => { const source = createStream(); const nested = oleoduc( source, - transformData((d) => d.substring(0, 1)) + transformData((d) => d.substring(0, 1)), ); source.push("first"); @@ -58,11 +58,11 @@ describe("oleoduc", () => { try { await oleoduc( nested, - writeData((d) => chunks.push(d)) + writeData((d) => chunks.push(d)), ); - assert.deepStrictEqual(chunks, ["f"]); + deepStrictEqual(chunks, ["f"]); } catch (e) { - assert.fail(e); + fail(e); } }); @@ -79,13 +79,13 @@ describe("oleoduc", () => { source, compose( transformData((data) => data.substring(0, 1)), - transformData((data) => "_" + data) + transformData((data) => "_" + data), ), - writeData((d) => chunks.push(d)) + writeData((d) => chunks.push(d)), ); - assert.deepStrictEqual(chunks, ["_a", "_b", "_r"]); + deepStrictEqual(chunks, ["_a", "_b", "_r"]); } catch (e) { - assert.fail(e); + fail(e); } }); @@ -94,7 +94,7 @@ describe("oleoduc", () => { const source = createStream(); const composed = compose( source, - transformData((d) => d.substring(0, 1)) + transformData((d) => d.substring(0, 1)), ); source.push("first"); @@ -102,13 +102,13 @@ describe("oleoduc", () => { await oleoduc( composed, - writeData((d) => chunks.push(d)) + writeData((d) => chunks.push(d)), ) .then(() => { - assert.deepStrictEqual(chunks, ["f"]); + deepStrictEqual(chunks, ["f"]); }) .catch((e) => { - assert.fail(e); + fail(e); }); }); @@ -124,7 +124,7 @@ describe("oleoduc", () => { .pipe(transformData((data) => data.substring(0, 1))) .pipe(writeData((data) => chunks.push(data))) .on("finish", () => { - assert.deepStrictEqual(chunks, ["a", "b", "r"]); + deepStrictEqual(chunks, ["a", "b", "r"]); }); }); @@ -133,14 +133,14 @@ describe("oleoduc", () => { oleoduc( source, - writeData(() => ({})) + writeData(() => ({})), ) .then(() => { - assert.fail(); + fail(); done(); }) .catch((e) => { - assert.deepStrictEqual(e, "emitted"); + deepStrictEqual(e, "emitted"); done(); }); @@ -157,22 +157,22 @@ describe("oleoduc", () => { source, writeData(() => { throw new Error("write error"); - }) + }), ) .then(() => { - assert.fail(); + fail(); }) .catch((e) => { - assert.deepStrictEqual(e.message, "write error"); + deepStrictEqual(e.message, "write error"); }); }); it("should fail when no stream are provided", async () => { try { await oleoduc(); - assert.fail(); + fail(); } catch (e) { - assert.strictEqual(e.message, "You must provide at least one stream"); + strictEqual(e.message, "You must provide at least one stream"); } }); }); diff --git a/test/parallel-test.mjs b/test/parallel-test.ts similarity index 78% rename from test/parallel-test.mjs rename to test/parallel-test.ts index 9934445..019209b 100644 --- a/test/parallel-test.mjs +++ b/test/parallel-test.ts @@ -1,7 +1,6 @@ -import assert from "assert"; -import { createStream } from "./testUtils.mjs"; -import { transformData, writeData, filterData } from "../index.mjs"; -import { delay } from "./testUtils.mjs"; +import { deepStrictEqual, fail, ok } from "assert"; +import { createStream, delay } from "./testUtils"; +import { filterData, transformData, writeData } from "../src"; describe("parallel", () => { it("can run parallel task with order preserved", (done) => { @@ -20,19 +19,19 @@ describe("parallel", () => { resolve(data.substring(0, 1)); }); }, - { parallel: 2 } - ) + { parallel: 2 }, + ), ) .pipe( writeData( (data) => { return delay(() => chunks.push(data), 10); }, - { parallel: 5 } - ) + { parallel: 5 }, + ), ) .on("finish", () => { - assert.deepStrictEqual(chunks, ["a", "b", "r"]); + deepStrictEqual(chunks, ["a", "b", "r"]); done(); }); }); @@ -62,24 +61,24 @@ describe("parallel", () => { (number) => { return delay(() => ({ number, timestamp: Date.now() }), timeoutPerBatch); }, - { parallel: nbParallelTasks } - ) + { parallel: nbParallelTasks }, + ), ) .pipe(writeData((data) => acc.push(data))) .on("error", () => { - assert.fail(); + fail(); done(); }) .on("finish", () => { - assert.deepStrictEqual( + deepStrictEqual( acc.map((v) => v.number), - [1, 2, 3, 4, 5, 6] + [1, 2, 3, 4, 5, 6], ); // 2 tasks per batch with 10ms of timeout const timeElapsed = acc[acc.length - 1].timestamp - start; - assert.ok(timeElapsed < 60); - assert.ok(timeElapsed > 29); + ok(timeElapsed < 60); + ok(timeElapsed > 29); done(); }); }); @@ -113,29 +112,29 @@ describe("parallel", () => { return number < 5; }, timeoutPerBatch); }, - { parallel: nbParallelTasks } - ) + { parallel: nbParallelTasks }, + ), ) .pipe( transformData((number) => { return { number, timestamp: Date.now() }; - }) + }), ) .pipe(writeData((data) => acc.push(data))) .on("error", () => { - assert.fail(); + fail(); done(); }) .on("finish", () => { - assert.deepStrictEqual( + deepStrictEqual( acc.map((v) => v.number), - [1, 2, 3, 4] + [1, 2, 3, 4], ); // 2 tasks per batch with 10ms of timeout const timeElapsed = last - start; - assert.ok(timeElapsed < 60); - assert.ok(timeElapsed > 29); + ok(timeElapsed < 60); + ok(timeElapsed > 29); done(); }); }); @@ -165,19 +164,19 @@ describe("parallel", () => { (number) => { return delay(() => acc.push({ number, timestamp: Date.now() }), timeoutPerBatch); }, - { parallel: nbParallelTasks } - ) + { parallel: nbParallelTasks }, + ), ) .on("finish", () => { - assert.deepStrictEqual( + deepStrictEqual( acc.map((v) => v.number), - [1, 2, 3, 4, 5, 6] + [1, 2, 3, 4, 5, 6], ); // 2 tasks per batch with 10ms of timeout const timeElapsed = acc[acc.length - 1].timestamp - start; - assert.ok(timeElapsed < 60); - assert.ok(timeElapsed >= 29); + ok(timeElapsed < 60); + ok(timeElapsed >= 29); done(); }); }); diff --git a/test/pipeline-test.mjs b/test/pipeline-test.ts similarity index 82% rename from test/pipeline-test.mjs rename to test/pipeline-test.ts index ecf18c2..5d44f1b 100644 --- a/test/pipeline-test.mjs +++ b/test/pipeline-test.ts @@ -1,8 +1,8 @@ -import assert from "assert"; +import { deepStrictEqual, fail } from "assert"; import { pipeline } from "stream"; import { promisify } from "util"; -import { createStream, delay } from "./testUtils.mjs"; -import { transformData, writeData } from "../index.mjs"; +import { createStream, delay } from "./testUtils"; +import { transformData, writeData } from "../src"; describe("pipeline", () => { it("can create pipeline from stream", (done) => { @@ -21,9 +21,9 @@ describe("pipeline", () => { if (err) { return done(err); } - assert.deepStrictEqual(chunks, ["a", "b", "r"]); + deepStrictEqual(chunks, ["a", "b", "r"]); return done(); - } + }, ); }); @@ -42,10 +42,10 @@ describe("pipeline", () => { }), writeData((data) => { return delay(() => chunks.push(data), 2); - }) + }), ); - assert.deepStrictEqual(chunks, ["a", "b", "r"]); + deepStrictEqual(chunks, ["a", "b", "r"]); }); it("pipeline should propagate emitted error", (done) => { @@ -53,10 +53,10 @@ describe("pipeline", () => { promisify(pipeline)( source, - writeData(() => ({})) + writeData(() => ({})), ) .then(() => { - assert.fail(); + fail(); done(); }) .catch(() => { @@ -76,10 +76,10 @@ describe("pipeline", () => { source, writeData(() => { throw new Error(); - }) + }), ) .then(() => { - assert.fail(); + fail(); done(); }) .catch(() => { diff --git a/test/readLineByLine-test.mjs b/test/readLineByLine-test.ts similarity index 77% rename from test/readLineByLine-test.mjs rename to test/readLineByLine-test.ts index ef788c3..8d5cb54 100644 --- a/test/readLineByLine-test.mjs +++ b/test/readLineByLine-test.ts @@ -1,6 +1,6 @@ -import assert from "assert"; -import { createStream } from "./testUtils.mjs"; -import { readLineByLine, writeData, oleoduc } from "../index.mjs"; +import { deepStrictEqual } from "assert"; +import { createStream } from "./testUtils"; +import { oleoduc, readLineByLine, writeData } from "../src"; describe("readLineByLine", () => { it("can read a stream line by line", (done) => { @@ -16,10 +16,10 @@ describe("readLineByLine", () => { .pipe( writeData((data) => { return result.push(data); - }) + }), ) .on("finish", () => { - assert.deepStrictEqual(result, ["abc", "def", "ghi"]); + deepStrictEqual(result, ["abc", "def", "ghi"]); done(); }); }); @@ -37,10 +37,10 @@ describe("readLineByLine", () => { .pipe( writeData((data) => { return result.push(data); - }) + }), ) .on("finish", () => { - assert.deepStrictEqual(result, ["abc", "def", "ghi"]); + deepStrictEqual(result, ["abc", "def", "ghi"]); done(); }); }); @@ -57,10 +57,10 @@ describe("readLineByLine", () => { .pipe( writeData((data) => { return result.push(data); - }) + }), ) .on("finish", () => { - assert.deepStrictEqual(result, ["ab", "hi"]); + deepStrictEqual(result, ["ab", "hi"]); done(); }); }); @@ -81,10 +81,10 @@ describe("readLineByLine", () => { readLineByLine(), writeData((opco) => { array.push(opco); - }) + }), ); - assert.deepStrictEqual(array[0], "line-0"); - assert.deepStrictEqual(array[array.length - 1], "line-249"); + deepStrictEqual(array[0], "line-0"); + deepStrictEqual(array[array.length - 1], "line-249"); }); }); diff --git a/test/testUtils.mjs b/test/testUtils.ts similarity index 91% rename from test/testUtils.mjs rename to test/testUtils.ts index 3265ec4..6ea641e 100644 --- a/test/testUtils.mjs +++ b/test/testUtils.ts @@ -8,7 +8,7 @@ export function delay(callback, delay) { }); } -export function streamArray(items) { +export function streamArray(items = []) { return new Readable({ objectMode: true, read() { diff --git a/test/toAsyncIterator-test.mjs b/test/toAsyncIterator-test.ts similarity index 68% rename from test/toAsyncIterator-test.mjs rename to test/toAsyncIterator-test.ts index ce4aee8..5c9d7b2 100644 --- a/test/toAsyncIterator-test.mjs +++ b/test/toAsyncIterator-test.ts @@ -1,7 +1,7 @@ -import assert from "assert"; -import { createStream } from "./testUtils.mjs"; -import { toAsyncIterator } from "../lib/utils/toAsyncIterator.mjs"; -import { transformData, oleoduc } from "../index.mjs"; +import { deepStrictEqual, fail } from "assert"; +import { createStream } from "./testUtils"; +import { toAsyncIterator } from "../src/utils/toAsyncIterator"; +import { oleoduc, transformData } from "../src"; describe("toAsyncIterator", () => { it("can convert a readable stream into an iterator", async () => { @@ -16,7 +16,7 @@ describe("toAsyncIterator", () => { chunks.push(chunk); } - assert.deepStrictEqual(chunks, ["a", "b", "c"]); + deepStrictEqual(chunks, ["a", "b", "c"]); }); it("iterator should honor error", async () => { @@ -26,7 +26,7 @@ describe("toAsyncIterator", () => { transformData(() => { throw new Error("This is a stream error"); }), - { promisify: false } + { promisify: false }, ); readable.push("a"); readable.push("b"); @@ -34,9 +34,9 @@ describe("toAsyncIterator", () => { try { const iterator = toAsyncIterator(failingStream); await iterator.next(); - assert.fail(); + fail(); } catch (e) { - assert.deepStrictEqual(e.message, "This is a stream error"); + deepStrictEqual(e.message, "This is a stream error"); } readable.push(null); diff --git a/test/transformData-test.mjs b/test/transformData-test.ts similarity index 78% rename from test/transformData-test.mjs rename to test/transformData-test.ts index bd4a257..eb9f586 100644 --- a/test/transformData-test.mjs +++ b/test/transformData-test.ts @@ -1,6 +1,6 @@ -import assert from "assert"; -import { createStream } from "./testUtils.mjs"; -import { transformData, writeData } from "../index.mjs"; +import { deepStrictEqual, strictEqual, fail } from "assert"; +import { createStream } from "./testUtils"; +import { transformData, writeData } from "../src"; describe("transformData", () => { it("should transformData", (done) => { @@ -14,7 +14,7 @@ describe("transformData", () => { .pipe(transformData((data) => data.substring(0, 1))) .pipe(writeData((data) => chunks.push(data))) .on("finish", () => { - assert.deepStrictEqual(chunks, ["a", "b"]); + deepStrictEqual(chunks, ["a", "b"]); done(); }); }); @@ -32,18 +32,18 @@ describe("transformData", () => { return new Promise((resolve) => { resolve(data.substring(0, 1)); }); - }) + }), ) .pipe( writeData(async (data) => { - return new Promise((resolve) => { + return new Promise((resolve) => { chunks.push(data); resolve(); }); - }) + }), ) .on("finish", () => { - assert.deepStrictEqual(chunks, ["a", "b"]); + deepStrictEqual(chunks, ["a", "b"]); done(); }); }); @@ -57,15 +57,15 @@ describe("transformData", () => { .pipe( transformData(() => { throw new Error("An error occurred"); - }) + }), ) .on("data", () => ({})) .on("error", (e) => { - assert.strictEqual(e.message, "An error occurred"); + strictEqual(e.message, "An error occurred"); done(); }) .on("finish", () => { - assert.fail(); + fail(); done(); }); }); @@ -79,15 +79,15 @@ describe("transformData", () => { .pipe( transformData(() => { return Promise.reject(new Error("An error occurred")); - }) + }), ) .on("data", () => ({})) .on("error", (e) => { - assert.strictEqual(e.message, "An error occurred"); + strictEqual(e.message, "An error occurred"); done(); }) .on("finish", () => { - assert.fail(); + fail(); done(); }); }); diff --git a/test/transformIntoCSV-test.mjs b/test/transformIntoCSV-test.ts similarity index 80% rename from test/transformIntoCSV-test.mjs rename to test/transformIntoCSV-test.ts index c377c6b..a80132c 100644 --- a/test/transformIntoCSV-test.mjs +++ b/test/transformIntoCSV-test.ts @@ -1,6 +1,6 @@ -import assert from "assert"; -import { createStream, delay } from "./testUtils.mjs"; -import { transformIntoCSV, writeData } from "../index.mjs"; +import { deepStrictEqual, fail, strictEqual, ok } from "assert"; +import { createStream, delay } from "./testUtils"; +import { transformIntoCSV, writeData } from "../src"; describe("transformIntoCSV", () => { it("should transform object into a csv", (done) => { @@ -14,10 +14,10 @@ describe("transformIntoCSV", () => { .pipe( writeData((line) => { csv.push(line); - }) + }), ) .on("finish", () => { - assert.deepStrictEqual(csv, ["firstName;lastName\n", "Robert;Hue\n"]); + deepStrictEqual(csv, ["firstName;lastName\n", "Robert;Hue\n"]); done(); }); }); @@ -33,10 +33,10 @@ describe("transformIntoCSV", () => { .pipe( writeData((line) => { csv.push(line); - }) + }), ) .on("finish", () => { - assert.deepStrictEqual(csv, ['"firstName";"lastName"\n', '"Robert";"Hue"\n']); + deepStrictEqual(csv, ['"firstName";"lastName"\n', '"Robert";"Hue"\n']); done(); }); }); @@ -52,10 +52,10 @@ describe("transformIntoCSV", () => { .pipe( writeData((line) => { csv.push(line); - }) + }), ) .on("finish", () => { - assert.ok(csv[0].startsWith("\ufeff")); + ok(csv[0].startsWith("\ufeff")); done(); }); }); @@ -71,15 +71,15 @@ describe("transformIntoCSV", () => { .pipe( transformIntoCSV({ separator: "|", - }) + }), ) .pipe( writeData((line) => { csv.push(line); - }) + }), ) .on("finish", () => { - assert.deepStrictEqual(csv, ["firstName|lastName\n", "Robert|Hue\n", "John|Doe\n"]); + deepStrictEqual(csv, ["firstName|lastName\n", "Robert|Hue\n", "John|Doe\n"]); done(); }); }); @@ -96,15 +96,15 @@ describe("transformIntoCSV", () => { columns: { fullName: (data) => `${data.firstName} ${data.lastName}`, }, - }) + }), ) .pipe( writeData((line) => { csv.push(line); - }) + }), ) .on("finish", () => { - assert.deepStrictEqual(csv, ["fullName\n", "Robert Hue\n"]); + deepStrictEqual(csv, ["fullName\n", "Robert Hue\n"]); done(); }); }); @@ -122,15 +122,15 @@ describe("transformIntoCSV", () => { fullName: (data) => Promise.resolve(`${data.firstName} ${data.lastName}`), lastName: async (data) => await delay(() => data.lastName, 5), }, - }) + }), ) .pipe( writeData((line) => { csv.push(line); - }) + }), ) .on("finish", () => { - assert.deepStrictEqual(csv, ["fullName;lastName\n", "Robert Hue;Hue\n"]); + deepStrictEqual(csv, ["fullName;lastName\n", "Robert Hue;Hue\n"]); done(); }); }); @@ -152,11 +152,11 @@ describe("transformIntoCSV", () => { .pipe(transformer) .on("data", () => ({})) .on("error", (e) => { - assert.strictEqual(e.message, "Unable to handle data"); + strictEqual(e.message, "Unable to handle data"); done(); }) .on("finish", () => { - assert.fail(); + fail(); done(); }); }); diff --git a/test/transformIntoJSON-test.mjs b/test/transformIntoJSON-test.ts similarity index 79% rename from test/transformIntoJSON-test.mjs rename to test/transformIntoJSON-test.ts index f22cf23..d31e1cf 100644 --- a/test/transformIntoJSON-test.mjs +++ b/test/transformIntoJSON-test.ts @@ -1,6 +1,6 @@ -import assert from "assert"; -import { createStream } from "./testUtils.mjs"; -import { transformIntoJSON } from "../index.mjs"; +import { deepStrictEqual } from "assert"; +import { createStream } from "./testUtils"; +import { transformIntoJSON } from "../src"; describe("transformIntoJSON", () => { it("can stream a json array", (done) => { @@ -16,7 +16,7 @@ describe("transformIntoJSON", () => { return (json += d); }) .on("end", () => { - assert.deepStrictEqual(JSON.parse(json), [{ name: "andré" }, { name: "robert" }]); + deepStrictEqual(JSON.parse(json), [{ name: "andré" }, { name: "robert" }]); done(); }); }); @@ -32,7 +32,7 @@ describe("transformIntoJSON", () => { return (json += d); }) .on("end", () => { - assert.deepStrictEqual(JSON.parse(json), []); + deepStrictEqual(JSON.parse(json), []); done(); }); }); @@ -49,7 +49,7 @@ describe("transformIntoJSON", () => { return (json += d); }) .on("end", () => { - assert.deepStrictEqual(JSON.parse(json), { results: [{ name: "andré" }] }); + deepStrictEqual(JSON.parse(json), { results: [{ name: "andré" }] }); done(); }); }); @@ -65,7 +65,7 @@ describe("transformIntoJSON", () => { return (json += d); }) .on("end", () => { - assert.deepStrictEqual(JSON.parse(json), { results: [] }); + deepStrictEqual(JSON.parse(json), { results: [] }); done(); }); }); @@ -82,7 +82,7 @@ describe("transformIntoJSON", () => { return (json += d); }) .on("end", () => { - assert.deepStrictEqual(JSON.parse(json), { preexisting: true, results: [{ name: "andré" }] }); + deepStrictEqual(JSON.parse(json), { preexisting: true, results: [{ name: "andré" }] }); done(); }); }); @@ -98,7 +98,7 @@ describe("transformIntoJSON", () => { return (json += d); }) .on("end", () => { - assert.deepStrictEqual(JSON.parse(json), { preexisting: true, results: [] }); + deepStrictEqual(JSON.parse(json), { preexisting: true, results: [] }); done(); }); }); diff --git a/test/transformStream-test.mjs b/test/transformStream-test.ts similarity index 78% rename from test/transformStream-test.mjs rename to test/transformStream-test.ts index a31ccb2..b8d64b7 100644 --- a/test/transformStream-test.mjs +++ b/test/transformStream-test.ts @@ -1,8 +1,7 @@ -import assert from "assert"; +import { deepStrictEqual } from "assert"; import SlowStream from "slow-stream"; -import { streamArray, createStream, delay } from "./testUtils.mjs"; -import { writeData } from "../index.mjs"; -import { transformStream } from "../lib/transformStream.mjs"; +import { createStream, delay, streamArray } from "./testUtils"; +import { transformStream, writeData } from "../src"; describe("transformStream", () => { it("should transform data into a stream", (done) => { @@ -16,15 +15,15 @@ describe("transformStream", () => { source.push(data + "_transformed"); source.push(null); return source; - }) + }), ) .pipe( writeData((data) => { return chunks.push(data); - }) + }), ) .on("finish", () => { - assert.deepStrictEqual(chunks, ["andré_transformed", "bruno_transformed"]); + deepStrictEqual(chunks, ["andré_transformed", "bruno_transformed"]); done(); }); }); @@ -43,15 +42,15 @@ describe("transformStream", () => { source.push(null); return source; }, 20); - }) + }), ) .pipe( writeData((data) => { return chunks.push(data); - }) + }), ) .on("finish", () => { - assert.deepStrictEqual(chunks, ["andré_transformed", "bruno_transformed"]); + deepStrictEqual(chunks, ["andré_transformed", "bruno_transformed"]); done(); }); }); @@ -71,17 +70,17 @@ describe("transformStream", () => { source.push(null); return source; }, - { objectMode: true, highWaterMark: 1 } - ) + { objectMode: true, highWaterMark: 1 }, + ), ) .pipe(new SlowStream({ maxWriteInterval: 10 })) // Force up streams to be paused .pipe( writeData((data) => { return chunks.push(data); - }) + }), ) .on("finish", () => { - assert.deepStrictEqual(chunks, [ + deepStrictEqual(chunks, [ "andré_transformed", "andré_transformed", "andré_transformed", diff --git a/test/writeData-test.mjs b/test/writeData-test.ts similarity index 74% rename from test/writeData-test.mjs rename to test/writeData-test.ts index 62ca799..63aefc7 100644 --- a/test/writeData-test.mjs +++ b/test/writeData-test.ts @@ -1,6 +1,6 @@ -import assert from "assert"; -import { createStream } from "./testUtils.mjs"; -import { writeData } from "../index.mjs"; +import { deepStrictEqual, fail, strictEqual } from "assert"; +import { createStream } from "./testUtils"; +import { writeData } from "../src"; describe("writeData", () => { it("should writeData", (done) => { @@ -13,10 +13,10 @@ describe("writeData", () => { .pipe( writeData((data) => { acc.push(data); - }) + }), ) .on("finish", () => { - assert.deepStrictEqual(acc, ["andré"]); + deepStrictEqual(acc, ["andré"]); done(); }); }); @@ -32,15 +32,15 @@ describe("writeData", () => { () => { throw new Error("sync error"); }, - { parallel: 1 } - ) + { parallel: 1 }, + ), ) .on("error", (e) => { - assert.strictEqual(e.message, "sync error"); + strictEqual(e.message, "sync error"); done(); }) .on("finish", () => { - assert.fail(); + fail(); done(); }); }); @@ -54,14 +54,14 @@ describe("writeData", () => { .pipe( writeData(() => { return Promise.reject(new Error("first chunk")); - }) + }), ) .on("error", (e) => { - assert.strictEqual(e.message, "first chunk"); + strictEqual(e.message, "first chunk"); done(); }) .on("finish", () => { - assert.fail(); + fail(); done(); }); }); @@ -78,7 +78,7 @@ describe("writeData", () => { .pipe( writeData( (data) => { - return new Promise((resolve, reject) => { + return new Promise((resolve, reject) => { if (data === 2) { reject(new Error("async error")); } else { @@ -87,16 +87,16 @@ describe("writeData", () => { } }); }, - { parallel: 1 } - ) + { parallel: 1 }, + ), ) .on("error", (e) => { - assert.strictEqual(e.message, "async error"); - assert.deepStrictEqual(acc, [1]); + strictEqual(e.message, "async error"); + deepStrictEqual(acc, [1]); done(); }) .on("finish", () => { - assert.fail(); + fail(); done(); }); }); diff --git a/test/writeToStdout-test.mjs b/test/writeToStdout-test.ts similarity index 79% rename from test/writeToStdout-test.mjs rename to test/writeToStdout-test.ts index f1d4c52..5a3d0fe 100644 --- a/test/writeToStdout-test.mjs +++ b/test/writeToStdout-test.ts @@ -1,5 +1,5 @@ -import { createStream } from "./testUtils.mjs"; -import { writeToStdout } from "../index.mjs"; +import { createStream } from "./testUtils"; +import { writeToStdout } from "../src"; describe("writeToStdout", () => { it("should write to stdout", (done) => { diff --git a/tsconfig.cjs.json b/tsconfig.cjs.json new file mode 100644 index 0000000..adbf054 --- /dev/null +++ b/tsconfig.cjs.json @@ -0,0 +1,9 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "moduleResolution": "node", + "module": "commonjs", + "target": "es2015", + "outDir": "./dist/cjs" + } +} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..ba17f1d --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,16 @@ +{ + "compilerOptions": { + "moduleResolution": "NodeNext", + "module": "NodeNext", + "outDir": "./dist/mjs", + "allowJs": true, + "strict": false, + "sourceMap": true, + "rootDirs": ["src"], + "target": "esnext", + "lib": ["esnext"], + "types": ["node", "mocha"] + }, + "exclude": ["node_modules", "dist"], + "include": ["src"] +} diff --git a/tsconfig.test.json b/tsconfig.test.json new file mode 100644 index 0000000..3f6c404 --- /dev/null +++ b/tsconfig.test.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "rootDirs": ["./test"], + "types": ["node", "mocha"] + }, + "include": ["src", "test"] +} From a8b317d61442686306b755515f337e035b32c212 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Gu=C3=A9rout?= Date: Sun, 26 Nov 2023 01:46:20 +0100 Subject: [PATCH 03/12] Add first types --- .mocharc.json | 5 +- .tools/git-hooks/pre-commit | 6 -- .tools/hooks.sh | 19 ++++ package.json | 4 +- src/accumulateData.ts | 8 +- src/utils/decorateWithPromise.ts | 6 +- src/utils/toAsyncIterator.ts | 11 +- src/writeData.ts | 176 ++++++++++++++++--------------- tsconfig.json | 2 +- tsconfig.test.json | 5 +- 10 files changed, 135 insertions(+), 107 deletions(-) delete mode 100755 .tools/git-hooks/pre-commit create mode 100644 .tools/hooks.sh diff --git a/.mocharc.json b/.mocharc.json index de04a6c..f248fe3 100644 --- a/.mocharc.json +++ b/.mocharc.json @@ -1,7 +1,4 @@ { "extension": ["ts"], - "node-option": [ - "experimental-specifier-resolution=node", - "loader=ts-node/esm" - ] + "node-option": ["loader=ts-node/esm"] } diff --git a/.tools/git-hooks/pre-commit b/.tools/git-hooks/pre-commit deleted file mode 100755 index 3ced84b..0000000 --- a/.tools/git-hooks/pre-commit +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env bash -set -euo pipefail - -npm test -npm run lint -npm run build diff --git a/.tools/hooks.sh b/.tools/hooks.sh new file mode 100644 index 0000000..0c9ccd3 --- /dev/null +++ b/.tools/hooks.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env bash +set -euo pipefail + +readonly PROJECT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/.." +readonly PRE_COMMIT_HOOK="${PROJECT_DIR}/.git/hooks/pre-commit" + +cat <<'EOF' >"${PRE_COMMIT_HOOK}" +#!/usr/bin/env bash +set -euo pipefail +# Do not edit. This file has been generated by oleoduc + +npm test +npm run lint +npm run build + +EOF + +chmod +x "${PRE_COMMIT_HOOK}" +echo "pre-push hooks installed in ${PRE_COMMIT_HOOK}" diff --git a/package.json b/package.json index 31fb300..2b3e377 100644 --- a/package.json +++ b/package.json @@ -23,8 +23,8 @@ }, "scripts": { "build": "bash .tools/build.sh", - "hooks": "git config core.hooksPath .tools/git-hooks && chmod +x .tools/git-hooks/*", - "test": "mocha test/", + "hooks": "bash .tools/hooks.sh", + "test": "TS_NODE_PROJECT=tsconfig.test.json mocha test/", "coverage": "nyc --temp-dir .coverage/.nyc_output --report-dir .coverage --reporter=lcov --reporter=html npm test", "lint": "eslint src/index.ts test/", "release": "bash .tools/release.sh master", diff --git a/src/accumulateData.ts b/src/accumulateData.ts index ceeba99..3784e63 100644 --- a/src/accumulateData.ts +++ b/src/accumulateData.ts @@ -1,6 +1,10 @@ -import { Transform } from "stream"; +import { Transform, TransformOptions } from "stream"; -export function accumulateData(accumulate, options: any = {}) { +type AccumulateDateOptions = { + accumulator?: unknown; +} & TransformOptions; + +export function accumulateData(accumulate, options: AccumulateDateOptions = {}) { const { accumulator, ...rest } = options; let acc = accumulator === undefined ? null : accumulator; let flushed = false; diff --git a/src/utils/decorateWithPromise.ts b/src/utils/decorateWithPromise.ts index b4d3c17..293fcde 100644 --- a/src/utils/decorateWithPromise.ts +++ b/src/utils/decorateWithPromise.ts @@ -1,12 +1,10 @@ export function decorateWithPromise(stream, promise) { const descriptors = ["then", "catch", "finally"].map((property) => { - return [property, Reflect.getOwnPropertyDescriptor(Promise.prototype, property)]; + return { property, descriptor: Reflect.getOwnPropertyDescriptor(Promise.prototype, property) }; }); - for (const [property, descriptor] of descriptors) { - // @ts-ignore + for (const { property, descriptor } of descriptors) { const value = (...args) => Reflect.apply(descriptor.value, promise, args); - // @ts-ignore Reflect.defineProperty(stream, property, { ...descriptor, value }); } return stream; diff --git a/src/utils/toAsyncIterator.ts b/src/utils/toAsyncIterator.ts index 2640a6d..5d17a8f 100644 --- a/src/utils/toAsyncIterator.ts +++ b/src/utils/toAsyncIterator.ts @@ -1,5 +1,9 @@ import { Readable } from "stream"; +type ToAsyncIteratorOptions = { + chunkSize?: number; +}; + /** * Adapted from * - https://iximiuz.com/en/posts/nodejs-readable-streams-distilled/ @@ -8,11 +12,12 @@ import { Readable } from "stream"; * @param options * @returns {AsyncGenerator<*, void, *>} */ -export async function* toAsyncIterator(stream, options: any = {}) { +export async function* toAsyncIterator(stream, options: ToAsyncIteratorOptions = {}) { const chunkSize = options.chunkSize || 1; + if (typeof stream.read !== "function") { - // @ts-ignore - stream = Readable.wrap(stream, { objectMode: true }); + //FIXME seems not used + stream = new Readable().wrap(stream); } let ended = false; diff --git a/src/writeData.ts b/src/writeData.ts index efa6370..9fcccf0 100644 --- a/src/writeData.ts +++ b/src/writeData.ts @@ -1,103 +1,111 @@ import { Writable } from "stream"; import cyclist from "cyclist"; -import { inherits } from "util"; -const ParallelWrite = function (maxParallel, opts, onWrite) { - if (!(this instanceof ParallelWrite)) { - // @ts-ignore - return new ParallelWrite(maxParallel, opts, onWrite); - } +type ParallelWriteOptions = { + parallel?: number; +}; - if (typeof maxParallel === "function") { - onWrite = maxParallel; - opts = null; - maxParallel = 1; - } - if (typeof opts === "function") { - onWrite = opts; - opts = null; - } +class ParallelWrite extends Writable { + private _maxParallel: number; + private _onWrite: (chunk: T, callback: (e: Error, data: T) => void) => void; + private _destroyed: boolean; + private _flushed: boolean; + private _ordered: boolean; + private _buffer: cyclist | []; + private _top: number; + private _bottom: number; + private _ondrain: () => void; + + constructor(maxParallel, opts, onWrite) { + super(); + if (typeof maxParallel === "function") { + onWrite = maxParallel; + opts = null; + maxParallel = 1; + } + if (typeof opts === "function") { + onWrite = opts; + opts = null; + } - if (!opts) opts = {}; - if (!opts.highWaterMark) opts.highWaterMark = Math.max(maxParallel, 16); - if (opts.objectMode !== false) opts.objectMode = true; - - Writable.call(this, opts); - - this._maxParallel = maxParallel; - this._onWrite = onWrite; - this._destroyed = false; - this._flushed = false; - this._ordered = opts.ordered !== false; - this._buffer = this._ordered ? cyclist(maxParallel) : []; - this._top = 0; - this._bottom = 0; - this._ondrain = null; -}; + if (!opts) opts = {}; + if (!opts.highWaterMark) opts.highWaterMark = Math.max(maxParallel, 16); + if (opts.objectMode !== false) opts.objectMode = true; + + Writable.call(this, opts); + + this._maxParallel = maxParallel; + this._onWrite = onWrite; + this._destroyed = false; + this._flushed = false; + this._ordered = opts.ordered !== false; + this._buffer = this._ordered ? cyclist(maxParallel) : []; + this._top = 0; + this._bottom = 0; + this._ondrain = null; + } -inherits(ParallelWrite, Writable); + _destroy() { + if (this._destroyed) return; + this._destroyed = true; + this.emit("close"); + } -ParallelWrite.prototype._destroy = function () { - if (this._destroyed) return; - this._destroyed = true; - this.emit("close"); -}; + _write(chunk, enc, callback) { + const pos = this._top++; + + this._onWrite(chunk, (err, data) => { + if (this._destroyed) return; + if (err) { + this.emit("error", err); + this.destroy(); + return; + } + if (this._ordered) { + this._buffer.put(pos, data === undefined || data === null ? null : data); + } else { + this._buffer.push(data); + } + this._drain(); + }); + + if (this._top - this._bottom < this._maxParallel) return callback(); + this._ondrain = callback; + } -ParallelWrite.prototype._write = function (chunk, enc, callback) { - const self = this; - const pos = this._top++; + _final(callback) { + this._flushed = true; + this._ondrain = callback; + this._drain(); + } - this._onWrite(chunk, function (err, data) { - if (self._destroyed) return; - if (err) { - self.emit("error", err); - self.destroy(); - return; - } - if (self._ordered) { - self._buffer.put(pos, data === undefined || data === null ? null : data); + _drain() { + if (this._ordered) { + while (this._buffer.get(this._bottom) !== undefined) { + this._buffer.del(this._bottom++); + } } else { - self._buffer.push(data); + while (this._buffer.length > 0) { + this._buffer.pop(); + this._bottom++; + } } - self._drain(); - }); - - if (this._top - this._bottom < this._maxParallel) return callback(); - this._ondrain = callback; -}; -ParallelWrite.prototype._final = function (callback) { - this._flushed = true; - this._ondrain = callback; - this._drain(); -}; + if (!this._drained() || !this._ondrain) return; -ParallelWrite.prototype._drain = function () { - if (this._ordered) { - while (this._buffer.get(this._bottom) !== undefined) { - this._buffer.del(this._bottom++); - } - } else { - while (this._buffer.length > 0) { - this._buffer.pop(); - this._bottom++; - } + const ondrain = this._ondrain; + this._ondrain = null; + ondrain(); } - if (!this._drained() || !this._ondrain) return; - - const ondrain = this._ondrain; - this._ondrain = null; - ondrain(); -}; - -ParallelWrite.prototype._drained = function () { - const diff = this._top - this._bottom; - return this._flushed ? !diff : diff < this._maxParallel; -}; + _drained() { + const diff = this._top - this._bottom; + return this._flushed ? !diff : diff < this._maxParallel; + } +} -export function writeData(handleChunk, options: any = {}) { - return ParallelWrite(options.parallel || 1, { objectMode: true }, async (chunk, callback) => { +export function writeData(handleChunk, options: ParallelWriteOptions = {}) { + return new ParallelWrite(options.parallel || 1, { objectMode: true }, async (chunk, callback) => { try { const res = await handleChunk(chunk); callback(null, res); diff --git a/tsconfig.json b/tsconfig.json index ba17f1d..a8d539b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,7 +9,7 @@ "rootDirs": ["src"], "target": "esnext", "lib": ["esnext"], - "types": ["node", "mocha"] + "types": ["node"] }, "exclude": ["node_modules", "dist"], "include": ["src"] diff --git a/tsconfig.test.json b/tsconfig.test.json index 3f6c404..d620e7c 100644 --- a/tsconfig.test.json +++ b/tsconfig.test.json @@ -4,5 +4,8 @@ "rootDirs": ["./test"], "types": ["node", "mocha"] }, - "include": ["src", "test"] + "include": ["src", "test"], + "ts-node": { + "transpileOnly": true + } } From 2a0159d2239f917f441e8a6b3585fa0fdc74c624 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Gu=C3=A9rout?= Date: Fri, 8 Dec 2023 22:00:05 +0100 Subject: [PATCH 04/12] Build project to test against nodejs versions --- .github/workflows/ci.yml | 42 +- .gitignore | 1 + .mocharc.json | 3 +- .tools/build.sh | 20 +- package-lock.json | 1635 +++++++++++++++++++------------------- package.json | 19 +- tsconfig.json | 9 +- tsconfig.test.json | 8 +- 8 files changed, 903 insertions(+), 834 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2fcfb9c..500e2cd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,31 +3,51 @@ on: [ push ] jobs: test: runs-on: ubuntu-latest - strategy: - matrix: - node-version: [10.x, 12.x, 14.x, 15.x, 16.x, 17.x, 18.x ] steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node-version }} + node-version: 18.x + cache: npm - run: npm ci - run: npm test - run: npm run lint - run: npm run build + - run: cd build && tar -czf ../build.tar.gz * + - uses: actions/upload-artifact@v3 + with: + name: built-project + path: build.tar.gz + + test-legacy-versions: + runs-on: ubuntu-latest + needs: test + strategy: + matrix: + node-version: [ 10.x, 12.x, 14.x, 15.x, 16.x, 17.x ] + steps: + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + - uses: actions/download-artifact@v3 + with: + name: built-project + - run: mkdir -p build && tar -xzf build.tar.gz -C build + - run: npm --prefix build install + - run: npm --prefix build test coverage: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: '16' + node-version: 18.x - run: npm ci - run: npm run coverage - name: Upload coverage to Codecov - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} directory: .coverage diff --git a/.gitignore b/.gitignore index 9935efc..eef210f 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ node_modules/ .nyc_output/ .coverage/ .idea/ +build/ dist/ diff --git a/.mocharc.json b/.mocharc.json index f248fe3..8be2655 100644 --- a/.mocharc.json +++ b/.mocharc.json @@ -1,4 +1,3 @@ { - "extension": ["ts"], - "node-option": ["loader=ts-node/esm"] + "extension": ["ts"] } diff --git a/.tools/build.sh b/.tools/build.sh index dc5eeee..14feb9c 100644 --- a/.tools/build.sh +++ b/.tools/build.sh @@ -2,26 +2,36 @@ set -euo pipefail readonly PROJECT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/.." +readonly BUILD_DIR="${PROJECT_DIR}/build" +readonly DIST_DIR="${PROJECT_DIR}/dist" -rm -rf "${PROJECT_DIR}/dist" +rm -rf "${DIST_DIR}" "${BUILD_DIR}" +mkdir -p "${DIST_DIR}" "${BUILD_DIR}" cd "${PROJECT_DIR}" -echo "Building oleoduc (esm version)..." +echo "Compiling oleoduc (esm version)..." tsc -p tsconfig.json -cat >"./dist/mjs/package.json" <"${DIST_DIR}/mjs/package.json" <"./dist/cjs/package.json" <"${DIST_DIR}/cjs/package.json" <= 10" @@ -58,9 +59,9 @@ } }, "node_modules/@babel/code-frame": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.23.4.tgz", - "integrity": "sha512-r1IONyb6Ia+jYR2vvIDhdWdlTGhqbBoFqLTQidzZ4kepUFH15ejXvFHxCVbtl7BOXIudsIubf4E81xeA3h3IXA==", + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.23.5.tgz", + "integrity": "sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA==", "dev": true, "dependencies": { "@babel/highlight": "^7.23.4", @@ -96,6 +97,21 @@ "node": ">=4" } }, + "node_modules/@babel/code-frame/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/@babel/code-frame/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "dev": true + }, "node_modules/@babel/code-frame/node_modules/escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", @@ -127,30 +143,30 @@ } }, "node_modules/@babel/compat-data": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.23.3.tgz", - "integrity": "sha512-BmR4bWbDIoFJmJ9z2cZ8Gmm2MXgEDgjdWgpKmKWUt54UGFJdlj31ECtbaDvCG/qVdG3AQ1SfpZEs01lUFbzLOQ==", + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.23.5.tgz", + "integrity": "sha512-uU27kfDRlhfKl+w1U6vp16IuvSLtjAxdArVXPa9BvLkrr7CYIsxH5adpHObeAGY/41+syctUWOZ140a2Rvkgjw==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/core": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.23.3.tgz", - "integrity": "sha512-Jg+msLuNuCJDyBvFv5+OKOUjWMZgd85bKjbICd3zWrKAo+bJ49HJufi7CQE0q0uR8NGyO6xkCACScNqyjHSZew==", + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.23.5.tgz", + "integrity": "sha512-Cwc2XjUrG4ilcfOw4wBAK+enbdgwAcAJCfGUItPBKR7Mjw4aEfAFYrLxeRp4jWgtNIKn3n2AlBOfwwafl+42/g==", "dev": true, "dependencies": { "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.22.13", - "@babel/generator": "^7.23.3", + "@babel/code-frame": "^7.23.5", + "@babel/generator": "^7.23.5", "@babel/helper-compilation-targets": "^7.22.15", "@babel/helper-module-transforms": "^7.23.3", - "@babel/helpers": "^7.23.2", - "@babel/parser": "^7.23.3", + "@babel/helpers": "^7.23.5", + "@babel/parser": "^7.23.5", "@babel/template": "^7.22.15", - "@babel/traverse": "^7.23.3", - "@babel/types": "^7.23.3", + "@babel/traverse": "^7.23.5", + "@babel/types": "^7.23.5", "convert-source-map": "^2.0.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", @@ -181,12 +197,12 @@ } }, "node_modules/@babel/generator": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.4.tgz", - "integrity": "sha512-esuS49Cga3HcThFNebGhlgsrVLkvhqvYDTzgjfFFlHJcIfLe5jFmRRfCQ1KuBfc4Jrtn3ndLgKWAKjBE+IraYQ==", + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.5.tgz", + "integrity": "sha512-BPssCHrBD+0YrxviOa3QzpqwhNIXKEtOa2jQrm4FlmkC2apYgRnQcmPWiGZDlGxiNtltnUFolMe8497Esry+jA==", "dev": true, "dependencies": { - "@babel/types": "^7.23.4", + "@babel/types": "^7.23.5", "@jridgewell/gen-mapping": "^0.3.2", "@jridgewell/trace-mapping": "^0.3.17", "jsesc": "^2.5.1" @@ -195,16 +211,6 @@ "node": ">=6.9.0" } }, - "node_modules/@babel/generator/node_modules/@jridgewell/trace-mapping": { - "version": "0.3.20", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.20.tgz", - "integrity": "sha512-R8LcPeWZol2zR8mmH3JeKQ6QRCFb7XgUhV9ZlGhHLGyg4wpPiPZNQOOWhFZhxKw8u//yTbNGI42Bx/3paXEQ+Q==", - "dev": true, - "dependencies": { - "@jridgewell/resolve-uri": "^3.1.0", - "@jridgewell/sourcemap-codec": "^1.4.14" - } - }, "node_modules/@babel/helper-compilation-targets": { "version": "7.22.15", "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.15.tgz", @@ -221,15 +227,6 @@ "node": ">=6.9.0" } }, - "node_modules/@babel/helper-compilation-targets/node_modules/lru-cache": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", - "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", - "dev": true, - "dependencies": { - "yallist": "^3.0.2" - } - }, "node_modules/@babel/helper-compilation-targets/node_modules/semver": { "version": "6.3.1", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", @@ -239,12 +236,6 @@ "semver": "bin/semver.js" } }, - "node_modules/@babel/helper-compilation-targets/node_modules/yallist": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", - "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", - "dev": true - }, "node_modules/@babel/helper-environment-visitor": { "version": "7.22.20", "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz", @@ -353,23 +344,23 @@ } }, "node_modules/@babel/helper-validator-option": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.22.15.tgz", - "integrity": "sha512-bMn7RmyFjY/mdECUbgn9eoSY4vqvacUnS9i9vGAGttgFWesO6B4CYWA7XlpbWgBt71iv/hfbPlynohStqnu5hA==", + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.23.5.tgz", + "integrity": "sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helpers": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.23.4.tgz", - "integrity": "sha512-HfcMizYz10cr3h29VqyfGL6ZWIjTwWfvYBMsBVGwpcbhNGe3wQ1ZXZRPzZoAHhd9OqHadHqjQ89iVKINXnbzuw==", + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.23.5.tgz", + "integrity": "sha512-oO7us8FzTEsG3U6ag9MfdF1iA/7Z6dz+MtFhifZk8C8o453rGJFFWUP1t+ULM9TUIAzC9uxXEiXjOiVMyd7QPg==", "dev": true, "dependencies": { "@babel/template": "^7.22.15", - "@babel/traverse": "^7.23.4", - "@babel/types": "^7.23.4" + "@babel/traverse": "^7.23.5", + "@babel/types": "^7.23.5" }, "engines": { "node": ">=6.9.0" @@ -415,6 +406,21 @@ "node": ">=4" } }, + "node_modules/@babel/highlight/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/@babel/highlight/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "dev": true + }, "node_modules/@babel/highlight/node_modules/escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", @@ -446,9 +452,9 @@ } }, "node_modules/@babel/parser": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.4.tgz", - "integrity": "sha512-vf3Xna6UEprW+7t6EtOmFpHNAuxw3xqPZghy+brsnusscJRW5BMUzzHZc5ICjULee81WeUV2jjakG09MDglJXQ==", + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.5.tgz", + "integrity": "sha512-hOOqoiNXrmGdFbhgCzu6GiURxUgM27Xwd/aPuu8RfHEZPBzL1Z54okAHAQjXfcQNwvrlkAmAp4SlRTZ45vlthQ==", "dev": true, "bin": { "parser": "bin/babel-parser.js" @@ -472,19 +478,19 @@ } }, "node_modules/@babel/traverse": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.4.tgz", - "integrity": "sha512-IYM8wSUwunWTB6tFC2dkKZhxbIjHoWemdK+3f8/wq8aKhbUscxD5MX72ubd90fxvFknaLPeGw5ycU84V1obHJg==", + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.5.tgz", + "integrity": "sha512-czx7Xy5a6sapWWRx61m1Ke1Ra4vczu1mCTtJam5zRTBOonfdJ+S/B6HYmGYu3fJtr8GGET3si6IhgWVBhJ/m8w==", "dev": true, "dependencies": { - "@babel/code-frame": "^7.23.4", - "@babel/generator": "^7.23.4", + "@babel/code-frame": "^7.23.5", + "@babel/generator": "^7.23.5", "@babel/helper-environment-visitor": "^7.22.20", "@babel/helper-function-name": "^7.23.0", "@babel/helper-hoist-variables": "^7.22.5", "@babel/helper-split-export-declaration": "^7.22.6", - "@babel/parser": "^7.23.4", - "@babel/types": "^7.23.4", + "@babel/parser": "^7.23.5", + "@babel/types": "^7.23.5", "debug": "^4.1.0", "globals": "^11.1.0" }, @@ -502,9 +508,9 @@ } }, "node_modules/@babel/types": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.4.tgz", - "integrity": "sha512-7uIFwVYpoplT5jp/kVv6EF93VaJ8H+Yn5IczYiaAi98ajzjfoZfslet/e0sLh+wVBjb2qqIut1b0S26VSafsSQ==", + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.5.tgz", + "integrity": "sha512-ON5kSOJwVO6xXVRTvOI0eOnWe7VdUcIpsovGo9U/Br4Ie4UVFQTboO2cYnDhAGU6Fp+UxSiT+pMft0SMHfuq6w==", "dev": true, "dependencies": { "@babel/helper-string-parser": "^7.23.4", @@ -527,6 +533,16 @@ "node": ">=12" } }, + "node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", + "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + }, "node_modules/@eslint-community/eslint-utils": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", @@ -542,18 +558,6 @@ "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" } }, - "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", - "dev": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, "node_modules/@eslint-community/regexpp": { "version": "4.10.0", "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.10.0.tgz", @@ -564,9 +568,9 @@ } }, "node_modules/@eslint/eslintrc": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.3.tgz", - "integrity": "sha512-yZzuIG+jnVu6hNSzFEN07e8BxF3uAzYtQb6uDkaYZLo6oYZDCq454c5kB8zxnzfCYyP4MIuyBn10L0DqwujTmA==", + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", + "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", "dev": true, "dependencies": { "ajv": "^6.12.4", @@ -586,28 +590,10 @@ "url": "https://opencollective.com/eslint" } }, - "node_modules/@eslint/eslintrc/node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true - }, - "node_modules/@eslint/eslintrc/node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dev": true, - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, "node_modules/@eslint/js": { - "version": "8.54.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.54.0.tgz", - "integrity": "sha512-ut5V+D+fOoWPgGGNj83GGjnntO39xDy6DWxO0wb7Jp3DcMX0TfIqdzHF85VTQkerdyGmuuMD9AKAo5KiNlf/AQ==", + "version": "8.55.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.55.0.tgz", + "integrity": "sha512-qQfo2mxH5yVom1kacMtZZJFVdW+E70mqHMJvVg6WTLo+VBuQJ4TojZlfWBjK0ve5BdEeNAVxOsl/nvNMpJOaJA==", "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -662,6 +648,15 @@ "node": ">=8" } }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, "node_modules/@istanbuljs/load-nyc-config/node_modules/find-up": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", @@ -675,6 +670,19 @@ "node": ">=8" } }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, "node_modules/@istanbuljs/load-nyc-config/node_modules/locate-path": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", @@ -687,6 +695,21 @@ "node": ">=8" } }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/@istanbuljs/load-nyc-config/node_modules/p-locate": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", @@ -699,15 +722,6 @@ "node": ">=8" } }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/@istanbuljs/load-nyc-config/node_modules/resolve-from": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", @@ -718,9 +732,9 @@ } }, "node_modules/@istanbuljs/schema": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.2.tgz", - "integrity": "sha512-tsAQNx32a8CoFhjhijUIhI4kccIAgmGhy8LZMZgGfmXcpMbPRUqn5LWmgRttILi6yeGmBJd2xsPkFMs0PzgPCw==", + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", + "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", "dev": true, "engines": { "node": ">=8" @@ -765,13 +779,13 @@ "dev": true }, "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.9", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", - "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", + "version": "0.3.20", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.20.tgz", + "integrity": "sha512-R8LcPeWZol2zR8mmH3JeKQ6QRCFb7XgUhV9ZlGhHLGyg4wpPiPZNQOOWhFZhxKw8u//yTbNGI42Bx/3paXEQ+Q==", "dev": true, "dependencies": { - "@jridgewell/resolve-uri": "^3.0.3", - "@jridgewell/sourcemap-codec": "^1.4.10" + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" } }, "node_modules/@nodelib/fs.scandir": { @@ -853,12 +867,6 @@ "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==", "dev": true }, - "node_modules/@types/color-name": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz", - "integrity": "sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==", - "dev": true - }, "node_modules/@types/json-schema": { "version": "7.0.15", "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", @@ -878,11 +886,10 @@ "dev": true }, "node_modules/@types/node": { - "version": "20.9.4", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.9.4.tgz", - "integrity": "sha512-wmyg8HUhcn6ACjsn8oKYjkN/zUzQeNtMy44weTJSM6p4MMzEOuKbA3OjJ267uPCOW7Xex9dyrNTful8XTQYoDA==", + "version": "20.10.4", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.10.4.tgz", + "integrity": "sha512-D08YG6rr8X90YB56tSIuBaddy/UXAA9RKJoFvrsnogAum/0pmjkgi4+2nx96A330FmioegBWmEYQ+syqCFaveg==", "dev": true, - "peer": true, "dependencies": { "undici-types": "~5.26.4" } @@ -894,16 +901,16 @@ "dev": true }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "6.12.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.12.0.tgz", - "integrity": "sha512-XOpZ3IyJUIV1b15M7HVOpgQxPPF7lGXgsfcEIu3yDxFPaf/xZKt7s9QO/pbk7vpWQyVulpJbu4E5LwpZiQo4kA==", + "version": "6.13.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.13.2.tgz", + "integrity": "sha512-3+9OGAWHhk4O1LlcwLBONbdXsAhLjyCFogJY/cWy2lxdVJ2JrcTF2pTGMaLl2AE7U1l31n8Py4a8bx5DLf/0dQ==", "dev": true, "dependencies": { "@eslint-community/regexpp": "^4.5.1", - "@typescript-eslint/scope-manager": "6.12.0", - "@typescript-eslint/type-utils": "6.12.0", - "@typescript-eslint/utils": "6.12.0", - "@typescript-eslint/visitor-keys": "6.12.0", + "@typescript-eslint/scope-manager": "6.13.2", + "@typescript-eslint/type-utils": "6.13.2", + "@typescript-eslint/utils": "6.13.2", + "@typescript-eslint/visitor-keys": "6.13.2", "debug": "^4.3.4", "graphemer": "^1.4.0", "ignore": "^5.2.4", @@ -929,15 +936,15 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "6.12.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.12.0.tgz", - "integrity": "sha512-s8/jNFPKPNRmXEnNXfuo1gemBdVmpQsK1pcu+QIvuNJuhFzGrpD7WjOcvDc/+uEdfzSYpNu7U/+MmbScjoQ6vg==", + "version": "6.13.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.13.2.tgz", + "integrity": "sha512-MUkcC+7Wt/QOGeVlM8aGGJZy1XV5YKjTpq9jK6r6/iLsGXhBVaGP5N0UYvFsu9BFlSpwY9kMretzdBH01rkRXg==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "6.12.0", - "@typescript-eslint/types": "6.12.0", - "@typescript-eslint/typescript-estree": "6.12.0", - "@typescript-eslint/visitor-keys": "6.12.0", + "@typescript-eslint/scope-manager": "6.13.2", + "@typescript-eslint/types": "6.13.2", + "@typescript-eslint/typescript-estree": "6.13.2", + "@typescript-eslint/visitor-keys": "6.13.2", "debug": "^4.3.4" }, "engines": { @@ -957,13 +964,13 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "6.12.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.12.0.tgz", - "integrity": "sha512-5gUvjg+XdSj8pcetdL9eXJzQNTl3RD7LgUiYTl8Aabdi8hFkaGSYnaS6BLc0BGNaDH+tVzVwmKtWvu0jLgWVbw==", + "version": "6.13.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.13.2.tgz", + "integrity": "sha512-CXQA0xo7z6x13FeDYCgBkjWzNqzBn8RXaE3QVQVIUm74fWJLkJkaHmHdKStrxQllGh6Q4eUGyNpMe0b1hMkXFA==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.12.0", - "@typescript-eslint/visitor-keys": "6.12.0" + "@typescript-eslint/types": "6.13.2", + "@typescript-eslint/visitor-keys": "6.13.2" }, "engines": { "node": "^16.0.0 || >=18.0.0" @@ -974,13 +981,13 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "6.12.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.12.0.tgz", - "integrity": "sha512-WWmRXxhm1X8Wlquj+MhsAG4dU/Blvf1xDgGaYCzfvStP2NwPQh6KBvCDbiOEvaE0filhranjIlK/2fSTVwtBng==", + "version": "6.13.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.13.2.tgz", + "integrity": "sha512-Qr6ssS1GFongzH2qfnWKkAQmMUyZSyOr0W54nZNU1MDfo+U4Mv3XveeLZzadc/yq8iYhQZHYT+eoXJqnACM1tw==", "dev": true, "dependencies": { - "@typescript-eslint/typescript-estree": "6.12.0", - "@typescript-eslint/utils": "6.12.0", + "@typescript-eslint/typescript-estree": "6.13.2", + "@typescript-eslint/utils": "6.13.2", "debug": "^4.3.4", "ts-api-utils": "^1.0.1" }, @@ -1001,9 +1008,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "6.12.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.12.0.tgz", - "integrity": "sha512-MA16p/+WxM5JG/F3RTpRIcuOghWO30//VEOvzubM8zuOOBYXsP+IfjoCXXiIfy2Ta8FRh9+IO9QLlaFQUU+10Q==", + "version": "6.13.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.13.2.tgz", + "integrity": "sha512-7sxbQ+EMRubQc3wTfTsycgYpSujyVbI1xw+3UMRUcrhSy+pN09y/lWzeKDbvhoqcRbHdc+APLs/PWYi/cisLPg==", "dev": true, "engines": { "node": "^16.0.0 || >=18.0.0" @@ -1014,13 +1021,13 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "6.12.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.12.0.tgz", - "integrity": "sha512-vw9E2P9+3UUWzhgjyyVczLWxZ3GuQNT7QpnIY3o5OMeLO/c8oHljGc8ZpryBMIyympiAAaKgw9e5Hl9dCWFOYw==", + "version": "6.13.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.13.2.tgz", + "integrity": "sha512-SuD8YLQv6WHnOEtKv8D6HZUzOub855cfPnPMKvdM/Bh1plv1f7Q/0iFUDLKKlxHcEstQnaUU4QZskgQq74t+3w==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.12.0", - "@typescript-eslint/visitor-keys": "6.12.0", + "@typescript-eslint/types": "6.13.2", + "@typescript-eslint/visitor-keys": "6.13.2", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", @@ -1041,17 +1048,17 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "6.12.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.12.0.tgz", - "integrity": "sha512-LywPm8h3tGEbgfyjYnu3dauZ0U7R60m+miXgKcZS8c7QALO9uWJdvNoP+duKTk2XMWc7/Q3d/QiCuLN9X6SWyQ==", + "version": "6.13.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.13.2.tgz", + "integrity": "sha512-b9Ptq4eAZUym4idijCRzl61oPCwwREcfDI8xGk751Vhzig5fFZR9CyzDz4Sp/nxSLBYxUPyh4QdIDqWykFhNmQ==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.4.0", "@types/json-schema": "^7.0.12", "@types/semver": "^7.5.0", - "@typescript-eslint/scope-manager": "6.12.0", - "@typescript-eslint/types": "6.12.0", - "@typescript-eslint/typescript-estree": "6.12.0", + "@typescript-eslint/scope-manager": "6.13.2", + "@typescript-eslint/types": "6.13.2", + "@typescript-eslint/typescript-estree": "6.13.2", "semver": "^7.5.4" }, "engines": { @@ -1066,12 +1073,12 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "6.12.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.12.0.tgz", - "integrity": "sha512-rg3BizTZHF1k3ipn8gfrzDXXSFKyOEB5zxYXInQ6z0hUvmQlhaZQzK+YmHmNViMA9HzW5Q9+bPPt90bU6GQwyw==", + "version": "6.13.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.13.2.tgz", + "integrity": "sha512-OGznFs0eAQXJsp+xSd6k/O1UbFi/K/L7WjqeRoFE7vadjAF9y0uppXhYNQNEqygjou782maGClOoZwPqF0Drlw==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.12.0", + "@typescript-eslint/types": "6.13.2", "eslint-visitor-keys": "^3.4.1" }, "engines": { @@ -1082,18 +1089,6 @@ "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", - "dev": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, "node_modules/@ungap/structured-clone": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", @@ -1122,18 +1117,18 @@ } }, "node_modules/acorn-walk": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.0.tgz", - "integrity": "sha512-FS7hV565M5l1R08MXqo8odwMTB02C2UqzB17RVgu9EyuYFBqJZ3/ZY97sQD5FewVu1UyDFc1yztUDrAwT0EypA==", + "version": "8.3.1", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.1.tgz", + "integrity": "sha512-TgUZgYvqZprrl7YldZNoa9OciCAyZR+Ejm9eXzKCmjsF5IKp/wgQ7Z/ZpjpGTIUPwrHQIcYeI8qDh4PsEwxMbw==", "dev": true, "engines": { "node": ">=0.4.0" } }, "node_modules/aggregate-error": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.0.1.tgz", - "integrity": "sha512-quoaXsZ9/BLNae5yiNoUz+Nhkwz83GhWwtYFglcjEQB2NDHCIpApbqXxIFnm4Pq/Nvhrsq5sYJFyohrrxnTGAA==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", + "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==", "dev": true, "dependencies": { "clean-stack": "^2.0.0", @@ -1164,6 +1159,7 @@ "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==", "dev": true, + "peer": true, "engines": { "node": ">=6" } @@ -1177,11 +1173,27 @@ "node": ">=8" } }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, "node_modules/anymatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", - "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==", + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", "dev": true, + "peer": true, "dependencies": { "normalize-path": "^3.0.0", "picomatch": "^2.0.4" @@ -1205,7 +1217,7 @@ "node_modules/archy": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/archy/-/archy-1.0.0.tgz", - "integrity": "sha1-+cjBN1fMHde8N5rHeyxipcKGjEA=", + "integrity": "sha512-Xg+9RwCg/0p32teKdGMPTPnVXKD0w3DfHnFTficozsAgsvq2XenPJq/MYpzzQ/v8zrOyJn6Ds39VA4JIDwFfqw==", "dev": true }, "node_modules/arg": { @@ -1215,13 +1227,10 @@ "dev": true }, "node_modules/argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, - "dependencies": { - "sprintf-js": "~1.0.2" - } + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true }, "node_modules/array-buffer-byte-length": { "version": "1.0.0", @@ -1340,6 +1349,15 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/arrify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", + "integrity": "sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/assert": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/assert/-/assert-2.1.0.tgz", @@ -1366,9 +1384,9 @@ } }, "node_modules/balanced-match": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", "dev": true }, "node_modules/big-integer": { @@ -1385,6 +1403,7 @@ "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", "dev": true, + "peer": true, "engines": { "node": ">=8" } @@ -1427,12 +1446,13 @@ "version": "1.3.1", "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", - "dev": true + "dev": true, + "peer": true }, "node_modules/browserslist": { - "version": "4.22.1", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.22.1.tgz", - "integrity": "sha512-FEVc202+2iuClEhZhrWy6ZiAcRLvNMyYcxZ8raemul1DYVOVdFsbqckWLdsixQZCpJlwe77Z3UTalE7jsjnKfQ==", + "version": "4.22.2", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.22.2.tgz", + "integrity": "sha512-0UgcrvQmBDvZHFGdYUehrCNIazki7/lUP3kkoi/r3YB2amZbFM9J43ZRkJTXBUZK4gmx56+Sqk9+Vs9mwZx9+A==", "dev": true, "funding": [ { @@ -1449,9 +1469,9 @@ } ], "dependencies": { - "caniuse-lite": "^1.0.30001541", - "electron-to-chromium": "^1.4.535", - "node-releases": "^2.0.13", + "caniuse-lite": "^1.0.30001565", + "electron-to-chromium": "^1.4.601", + "node-releases": "^2.0.14", "update-browserslist-db": "^1.0.13" }, "bin": { @@ -1461,6 +1481,12 @@ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" } }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true + }, "node_modules/bundle-name": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/bundle-name/-/bundle-name-3.0.0.tgz", @@ -1524,9 +1550,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001564", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001564.tgz", - "integrity": "sha512-DqAOf+rhof+6GVx1y+xzbFPeOumfQnhYzVnZD6LAXijR77yPtm9mfOcqOnT3mpnJiZVT+kwLAFnRlZcIz+c6bg==", + "version": "1.0.30001566", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001566.tgz", + "integrity": "sha512-ggIhCsTxmITBAMmK8yZjEhCO5/47jKXPu6Dha/wuCS4JePVL+3uiDEBuhu2aIoT+bqTOR8L76Ip1ARL9xYsEJA==", "dev": true, "funding": [ { @@ -1544,9 +1570,9 @@ ] }, "node_modules/chalk": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", - "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "dependencies": { "ansi-styles": "^4.1.0", @@ -1559,51 +1585,6 @@ "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/chalk/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/chalk/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/chalk/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/chalk/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/chokidar": { "version": "3.5.3", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", @@ -1615,6 +1596,7 @@ "url": "https://paulmillr.com/funding/" } ], + "peer": true, "dependencies": { "anymatch": "~3.1.2", "braces": "~3.0.2", @@ -1631,6 +1613,19 @@ "fsevents": "~2.3.2" } }, + "node_modules/chokidar/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "peer": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/clean-stack": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", @@ -1645,6 +1640,7 @@ "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", "dev": true, + "peer": true, "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.0", @@ -1652,45 +1648,45 @@ } }, "node_modules/color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "dependencies": { - "color-name": "1.1.3" + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" } }, "node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, "node_modules/commondir": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", - "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=", + "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==", "dev": true }, "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", "dev": true }, "node_modules/convert-source-map": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.7.0.tgz", - "integrity": "sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA==", - "dev": true, - "dependencies": { - "safe-buffer": "~5.1.1" - } + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", + "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", + "dev": true }, "node_modules/core-util-is": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==" }, "node_modules/create-require": { "version": "1.1.1", @@ -1713,9 +1709,9 @@ } }, "node_modules/cyclist": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/cyclist/-/cyclist-1.0.1.tgz", - "integrity": "sha1-WW6WmP0MgOEgOMK4LW6xs1tiJNk=" + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/cyclist/-/cyclist-1.0.2.tgz", + "integrity": "sha512-0sVXIohTfLqVIW3kb/0n6IiWF3Ifj5nm2XaSrLq2DI6fKIGa2fYAZdk917rUneaeLVpYfFcyXE2ft0fe3remsA==" }, "node_modules/debug": { "version": "4.3.4", @@ -1737,7 +1733,7 @@ "node_modules/decamelize": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", "dev": true, "engines": { "node": ">=0.10.0" @@ -1784,15 +1780,18 @@ } }, "node_modules/default-require-extensions": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/default-require-extensions/-/default-require-extensions-3.0.0.tgz", - "integrity": "sha512-ek6DpXq/SCpvjhpFsLFRVtIxJCRw6fUR42lYMVZuUMK7n8eMz4Uh5clckdBjEpLhn/gEBZo7hDJnJcwdKLKQjg==", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/default-require-extensions/-/default-require-extensions-3.0.1.tgz", + "integrity": "sha512-eXTJmRbm2TIt9MgWTsOH1wEuhew6XGZcMeGKCtLedIg/NCsg1iBePXkceTdK4Fii7pzmN9tGsZhKzZ4h7O/fxw==", "dev": true, "dependencies": { "strip-bom": "^4.0.0" }, "engines": { "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/define-data-property": { @@ -1843,6 +1842,7 @@ "resolved": "https://registry.npmjs.org/diff/-/diff-5.0.0.tgz", "integrity": "sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w==", "dev": true, + "peer": true, "engines": { "node": ">=0.3.1" } @@ -1872,9 +1872,9 @@ } }, "node_modules/electron-to-chromium": { - "version": "1.4.593", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.593.tgz", - "integrity": "sha512-c7+Hhj87zWmdpmjDONbvNKNo24tvmD4mjal1+qqTYTrlF0/sNpAcDlU0Ki84ftA/5yj3BF2QhSGEC0Rky6larg==", + "version": "1.4.609", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.609.tgz", + "integrity": "sha512-ihiCP7PJmjoGNuLpl7TjNA8pCQWu09vGyjlPYw1Rqww4gvNuCcmvl+44G+2QyJ6S2K4o+wbTS++Xz0YN8Q9ERw==", "dev": true }, "node_modules/emoji-regex": { @@ -2004,16 +2004,28 @@ "node": ">=6" } }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/eslint": { - "version": "8.54.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.54.0.tgz", - "integrity": "sha512-NY0DfAkM8BIZDVl6PgSa1ttZbx3xHgJzSNJKYcQglem6CppHyMhRIQkBVSSMaSRnLhig3jsDbEzOjwCVt4AmmA==", + "version": "8.55.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.55.0.tgz", + "integrity": "sha512-iyUUAM0PCKj5QpwGfmCAG9XXbZCWsqP/eWAWrG/W0umvjuLRBECwSFdt+rCntju0xEH7teIABPwXpahftIaTdA==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.6.1", - "@eslint/eslintrc": "^2.1.3", - "@eslint/js": "8.54.0", + "@eslint/eslintrc": "^2.1.4", + "@eslint/js": "8.55.0", "@humanwhocodes/config-array": "^0.11.13", "@humanwhocodes/module-importer": "^1.0.1", "@nodelib/fs.walk": "^1.2.8", @@ -2060,9 +2072,9 @@ } }, "node_modules/eslint-config-prettier": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.0.0.tgz", - "integrity": "sha512-IcJsTkJae2S35pRsRAwoCE+925rJJStOdkKnLVgtE+tEpqU0EVVM7OqrwxqgptKdX29NUwC82I5pXsGFIgSevw==", + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz", + "integrity": "sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==", "dev": true, "bin": { "eslint-config-prettier": "bin/cli.js" @@ -2161,6 +2173,30 @@ "eslint": ">=4.19.1" } }, + "node_modules/eslint-plugin-es/node_modules/eslint-utils": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz", + "integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==", + "dev": true, + "dependencies": { + "eslint-visitor-keys": "^1.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/mysticatea" + } + }, + "node_modules/eslint-plugin-es/node_modules/eslint-visitor-keys": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", + "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", + "dev": true, + "engines": { + "node": ">=4" + } + }, "node_modules/eslint-plugin-import": { "version": "2.29.0", "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.29.0.tgz", @@ -2213,18 +2249,6 @@ "node": ">=0.10.0" } }, - "node_modules/eslint-plugin-import/node_modules/json5": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", - "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", - "dev": true, - "dependencies": { - "minimist": "^1.2.0" - }, - "bin": { - "json5": "lib/cli.js" - } - }, "node_modules/eslint-plugin-import/node_modules/semver": { "version": "6.3.1", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", @@ -2234,27 +2258,6 @@ "semver": "bin/semver.js" } }, - "node_modules/eslint-plugin-import/node_modules/strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/eslint-plugin-import/node_modules/tsconfig-paths": { - "version": "3.14.2", - "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz", - "integrity": "sha512-o/9iXgCYc5L/JxCHPe3Hvh8Q/2xm5Z+p18PESBU6Ff33695QnCHBEjcytY2q19ua7Mbl/DavtBOLq+oG0RCL+g==", - "dev": true, - "dependencies": { - "@types/json5": "^0.0.29", - "json5": "^1.0.2", - "minimist": "^1.2.6", - "strip-bom": "^3.0.0" - } - }, "node_modules/eslint-plugin-mocha": { "version": "10.2.0", "resolved": "https://registry.npmjs.org/eslint-plugin-mocha/-/eslint-plugin-mocha-10.2.0.tgz", @@ -2271,33 +2274,6 @@ "eslint": ">=7.0.0" } }, - "node_modules/eslint-plugin-mocha/node_modules/eslint-utils": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", - "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", - "dev": true, - "dependencies": { - "eslint-visitor-keys": "^2.0.0" - }, - "engines": { - "node": "^10.0.0 || ^12.0.0 || >= 14.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/mysticatea" - }, - "peerDependencies": { - "eslint": ">=5" - } - }, - "node_modules/eslint-plugin-mocha/node_modules/eslint-visitor-keys": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", - "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", - "dev": true, - "engines": { - "node": ">=10" - } - }, "node_modules/eslint-plugin-node": { "version": "11.1.0", "resolved": "https://registry.npmjs.org/eslint-plugin-node/-/eslint-plugin-node-11.1.0.tgz", @@ -2318,10 +2294,34 @@ "eslint": ">=5.16.0" } }, + "node_modules/eslint-plugin-node/node_modules/eslint-utils": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz", + "integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==", + "dev": true, + "dependencies": { + "eslint-visitor-keys": "^1.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/mysticatea" + } + }, + "node_modules/eslint-plugin-node/node_modules/eslint-visitor-keys": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", + "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", + "dev": true, + "engines": { + "node": ">=4" + } + }, "node_modules/eslint-plugin-node/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, "bin": { "semver": "bin/semver.js" @@ -2373,45 +2373,33 @@ } }, "node_modules/eslint-utils": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.0.0.tgz", - "integrity": "sha512-0HCPuJv+7Wv1bACm8y5/ECVfYdfsAm9xmVb7saeFlxjPYALefjhbYoCkBjPdPzGH8wWyTpAez82Fh3VKYEZ8OA==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", + "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", "dev": true, "dependencies": { - "eslint-visitor-keys": "^1.1.0" + "eslint-visitor-keys": "^2.0.0" }, "engines": { - "node": ">=6" - } - }, - "node_modules/eslint-visitor-keys": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", - "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", - "dev": true, - "engines": { - "node": ">=4" + "node": "^10.0.0 || ^12.0.0 || >= 14.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/mysticatea" + }, + "peerDependencies": { + "eslint": ">=5" } }, - "node_modules/eslint/node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true - }, - "node_modules/eslint/node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "node_modules/eslint-utils/node_modules/eslint-visitor-keys": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", + "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", "dev": true, "engines": { "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/eslint/node_modules/eslint-visitor-keys": { + "node_modules/eslint-visitor-keys": { "version": "3.4.3", "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", @@ -2423,30 +2411,6 @@ "url": "https://opencollective.com/eslint" } }, - "node_modules/eslint/node_modules/glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "dev": true, - "dependencies": { - "is-glob": "^4.0.3" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/eslint/node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dev": true, - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, "node_modules/espree": { "version": "9.6.1", "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", @@ -2464,18 +2428,6 @@ "url": "https://opencollective.com/eslint" } }, - "node_modules/espree/node_modules/eslint-visitor-keys": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", - "dev": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, "node_modules/esprima": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", @@ -2573,9 +2525,9 @@ "dev": true }, "node_modules/fast-diff": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.2.0.tgz", - "integrity": "sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.3.0.tgz", + "integrity": "sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==", "dev": true }, "node_modules/fast-glob": { @@ -2594,6 +2546,18 @@ "node": ">=8.6.0" } }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/fast-json-stable-stringify": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", @@ -2640,9 +2604,9 @@ } }, "node_modules/find-cache-dir": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.1.tgz", - "integrity": "sha512-t2GDMt3oGC/v+BMwzmllWDuJF/xcDtE5j/fCGbqDD7OLuJkj0cfh1YSA5VKPvwMeLFLNDBkwOKZ2X85jGLVftQ==", + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.2.tgz", + "integrity": "sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==", "dev": true, "dependencies": { "commondir": "^1.0.1", @@ -2677,17 +2641,19 @@ "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==", "dev": true, + "peer": true, "bin": { "flat": "cli.js" } }, "node_modules/flat-cache": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", - "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz", + "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", "dev": true, "dependencies": { - "flatted": "^3.1.0", + "flatted": "^3.2.9", + "keyv": "^4.5.3", "rimraf": "^3.0.2" }, "engines": { @@ -2695,9 +2661,9 @@ } }, "node_modules/flatted": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.1.1.tgz", - "integrity": "sha512-zAoAQiudy+r5SvnSw3KJy5os/oRJYHzrzja/tBDqrZtNhUw8bt6y8OBzMWcjWr+8liV8Eb6yOhw8WZ7VFZ5ZzA==", + "version": "3.2.9", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.9.tgz", + "integrity": "sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ==", "dev": true }, "node_modules/for-each": { @@ -2723,17 +2689,46 @@ } }, "node_modules/fromentries": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/fromentries/-/fromentries-1.2.0.tgz", - "integrity": "sha512-33X7H/wdfO99GdRLLgkjUrD4geAFdq/Uv0kl3HD4da6HDixd2GUg8Mw7dahLCV9r/EARkmtYBB6Tch4EEokFTQ==", - "dev": true + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/fromentries/-/fromentries-1.3.2.tgz", + "integrity": "sha512-cHEpEQHUg0f8XdtZCc2ZAhrHzKzT0MrFUTcvx+hfxYu7rGMDc5SKoXFh+n4YigxsHXRzc6OrCshdR1bWH6HHyg==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] }, "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", "dev": true }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "peer": true, + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, "node_modules/function-bind": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", @@ -2873,15 +2868,15 @@ } }, "node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", "dev": true, "dependencies": { - "is-glob": "^4.0.1" + "is-glob": "^4.0.3" }, "engines": { - "node": ">= 6" + "node": ">=10.13.0" } }, "node_modules/globals": { @@ -2899,18 +2894,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/globals/node_modules/type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/globalthis": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", @@ -3040,14 +3023,26 @@ } }, "node_modules/hasha": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/hasha/-/hasha-5.2.0.tgz", - "integrity": "sha512-2W+jKdQbAdSIrggA8Q35Br8qKadTrqCTC8+XZvBWepKDK6m9XkX6Iz1a2yh2KP01kzAR/dpuMeUnocoLYDcskw==", + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/hasha/-/hasha-5.2.2.tgz", + "integrity": "sha512-Hrp5vIK/xr5SkeN2onO32H0MgNZ0f17HRNH39WfL0SYUNOTZ5Lz1TJ8Pajo/87dYGEFlLMm7mIc/k/s6Bvz9HQ==", "dev": true, "dependencies": { "is-stream": "^2.0.0", "type-fest": "^0.8.0" }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/hasha/node_modules/type-fest": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", + "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", + "dev": true, "engines": { "node": ">=8" } @@ -3069,6 +3064,7 @@ "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", "dev": true, + "peer": true, "bin": { "he": "bin/he" } @@ -3116,7 +3112,7 @@ "node_modules/imurmurhash": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", "dev": true, "engines": { "node": ">=0.8.19" @@ -3134,7 +3130,7 @@ "node_modules/inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", "dev": true, "dependencies": { "once": "^1.3.0", @@ -3207,6 +3203,7 @@ "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", "dev": true, + "peer": true, "dependencies": { "binary-extensions": "^2.0.0" }, @@ -3287,7 +3284,7 @@ "node_modules/is-extglob": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", "dev": true, "engines": { "node": ">=0.10.0" @@ -3413,6 +3410,7 @@ "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==", "dev": true, + "peer": true, "engines": { "node": ">=8" } @@ -3446,12 +3444,15 @@ } }, "node_modules/is-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.0.tgz", - "integrity": "sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", "dev": true, "engines": { "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/is-string": { @@ -3502,7 +3503,7 @@ "node_modules/is-typedarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", + "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==", "dev": true }, "node_modules/is-unicode-supported": { @@ -3510,6 +3511,7 @@ "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", "dev": true, + "peer": true, "engines": { "node": ">=10" }, @@ -3568,12 +3570,12 @@ "node_modules/isarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" }, "node_modules/isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", "dev": true }, "node_modules/istanbul-lib-coverage": { @@ -3613,77 +3615,64 @@ } }, "node_modules/istanbul-lib-instrument/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, "bin": { "semver": "bin/semver.js" } }, "node_modules/istanbul-lib-processinfo": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/istanbul-lib-processinfo/-/istanbul-lib-processinfo-2.0.2.tgz", - "integrity": "sha512-kOwpa7z9hme+IBPZMzQ5vdQj8srYgAtaRqeI48NGmAQ+/5yKiHLV0QbYqQpxsdEF0+w14SoB8YbnHKcXE2KnYw==", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/istanbul-lib-processinfo/-/istanbul-lib-processinfo-2.0.3.tgz", + "integrity": "sha512-NkwHbo3E00oybX6NGJi6ar0B29vxyvNwoC7eJ4G4Yq28UfY758Hgn/heV8VRFhevPED4LXfFz0DQ8z/0kw9zMg==", "dev": true, "dependencies": { "archy": "^1.0.0", - "cross-spawn": "^7.0.0", - "istanbul-lib-coverage": "^3.0.0-alpha.1", - "make-dir": "^3.0.0", + "cross-spawn": "^7.0.3", + "istanbul-lib-coverage": "^3.2.0", "p-map": "^3.0.0", "rimraf": "^3.0.0", - "uuid": "^3.3.3" + "uuid": "^8.3.2" }, "engines": { "node": ">=8" } }, - "node_modules/istanbul-lib-processinfo/node_modules/rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "dev": true, - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/istanbul-lib-report": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", - "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", + "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", "dev": true, "dependencies": { "istanbul-lib-coverage": "^3.0.0", - "make-dir": "^3.0.0", + "make-dir": "^4.0.0", "supports-color": "^7.1.0" }, "engines": { - "node": ">=8" + "node": ">=10" } }, - "node_modules/istanbul-lib-report/node_modules/supports-color": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz", - "integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==", + "node_modules/istanbul-lib-report/node_modules/make-dir": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", + "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", "dev": true, "dependencies": { - "has-flag": "^4.0.0" + "semver": "^7.5.3" }, "engines": { - "node": ">=8" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/istanbul-lib-source-maps": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.0.tgz", - "integrity": "sha512-c16LpFRkR8vQXyHZ5nLpY35JZtzj1PQY1iZmesUbf1FZHbIupcWfjgOXBY9YHkLEQ6puz1u4Dgj6qmU/DisrZg==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", + "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", "dev": true, "dependencies": { "debug": "^4.1.1", @@ -3691,7 +3680,7 @@ "source-map": "^0.6.1" }, "engines": { - "node": ">=8" + "node": ">=10" } }, "node_modules/istanbul-reports": { @@ -3714,13 +3703,12 @@ "dev": true }, "node_modules/js-yaml": { - "version": "3.14.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.0.tgz", - "integrity": "sha512-/4IbIeHcD9VMHFqDR/gQ7EdZdLimOvW2DdcxFjdyyZ9NsbS+ccrXqVWDtab/lRl5AlUqmpBx8EhPaWR+OtY17A==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", "dev": true, "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" + "argparse": "^2.0.1" }, "bin": { "js-yaml": "bin/js-yaml.js" @@ -3738,6 +3726,12 @@ "node": ">=4" } }, + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true + }, "node_modules/json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", @@ -3747,7 +3741,7 @@ "node_modules/json-stable-stringify-without-jsonify": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", "dev": true }, "node_modules/json5": { @@ -3762,6 +3756,15 @@ "node": ">=6" } }, + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "dev": true, + "dependencies": { + "json-buffer": "3.0.1" + } + }, "node_modules/levn": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", @@ -3793,7 +3796,7 @@ "node_modules/lodash.flattendeep": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/lodash.flattendeep/-/lodash.flattendeep-4.4.0.tgz", - "integrity": "sha1-+wMJF/hqMTTlvJvsDWngAT3f7bI=", + "integrity": "sha512-uHaJFihxmJcEX3kT4I23ABqKKalJ/zDrDg0lsFtc1h+3uw49SIJ5beyhx5ExVRti3AvKoOJngIj7xz3oylPdWQ==", "dev": true }, "node_modules/lodash.merge": { @@ -3807,6 +3810,7 @@ "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", "dev": true, + "peer": true, "dependencies": { "chalk": "^4.1.0", "is-unicode-supported": "^0.1.0" @@ -3819,15 +3823,12 @@ } }, "node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", "dev": true, "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" + "yallist": "^3.0.2" } }, "node_modules/make-dir": { @@ -3846,9 +3847,9 @@ } }, "node_modules/make-dir/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, "bin": { "semver": "bin/semver.js" @@ -3913,16 +3914,32 @@ } }, "node_modules/minimist": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", - "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==", - "dev": true + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/mkdirp": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", + "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", + "dev": true, + "dependencies": { + "minimist": "^1.2.6" + }, + "bin": { + "mkdirp": "bin/cmd.js" + } }, "node_modules/mocha": { "version": "10.2.0", "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.2.0.tgz", "integrity": "sha512-IDY7fl/BecMwFHzoqF2sg/SHHANeBoMMXFlS9r0OXKDssYE1M5O43wUY/9BVPeIvfH2zmEbBfseqN9gBQZzXkg==", "dev": true, + "peer": true, "dependencies": { "ansi-colors": "4.1.1", "browser-stdout": "1.3.1", @@ -3958,50 +3975,22 @@ "url": "https://opencollective.com/mochajs" } }, - "node_modules/mocha/node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true - }, "node_modules/mocha/node_modules/brace-expansion": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", "dev": true, + "peer": true, "dependencies": { "balanced-match": "^1.0.0" } }, - "node_modules/mocha/node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/mocha/node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dev": true, - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, "node_modules/mocha/node_modules/minimatch": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.0.1.tgz", "integrity": "sha512-nLDxIFRyhDblz3qMuq+SoRZED4+miJ/G+tdDrjkkkRnjAsBexeGpgjLEQ0blJy7rHhR2b93rhQY4SvyWu9v03g==", "dev": true, + "peer": true, "dependencies": { "brace-expansion": "^2.0.1" }, @@ -4013,7 +4002,24 @@ "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true + "dev": true, + "peer": true + }, + "node_modules/mocha/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "peer": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } }, "node_modules/ms": { "version": "2.1.2", @@ -4026,6 +4032,7 @@ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.3.tgz", "integrity": "sha512-p1sjXuopFs0xg+fPASzQ28agW1oHD7xDsd9Xkf3T15H3c/cifrFHVwrh74PdoklAPi+i7MdRsE47vm2r6JoB+w==", "dev": true, + "peer": true, "bin": { "nanoid": "bin/nanoid.cjs" }, @@ -4036,7 +4043,7 @@ "node_modules/natural-compare": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", "dev": true }, "node_modules/node-preload": { @@ -4052,9 +4059,9 @@ } }, "node_modules/node-releases": { - "version": "2.0.13", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.13.tgz", - "integrity": "sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==", + "version": "2.0.14", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.14.tgz", + "integrity": "sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==", "dev": true }, "node_modules/normalize-path": { @@ -4062,6 +4069,7 @@ "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", "dev": true, + "peer": true, "engines": { "node": ">=0.10.0" } @@ -4134,22 +4142,6 @@ "node": ">=8.9" } }, - "node_modules/nyc/node_modules/ansi-styles": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz", - "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==", - "dev": true, - "dependencies": { - "@types/color-name": "^1.1.1", - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, "node_modules/nyc/node_modules/cliui": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", @@ -4161,24 +4153,6 @@ "wrap-ansi": "^6.2.0" } }, - "node_modules/nyc/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/nyc/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, "node_modules/nyc/node_modules/find-up": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", @@ -4204,49 +4178,40 @@ "node": ">=8" } }, - "node_modules/nyc/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "node_modules/nyc/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", "dev": true, "dependencies": { - "p-limit": "^2.2.0" + "p-try": "^2.0.0" }, "engines": { - "node": ">=8" - } - }, - "node_modules/nyc/node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/nyc/node_modules/resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "dev": true, - "engines": { - "node": ">=8" + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/nyc/node_modules/rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "node_modules/nyc/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", "dev": true, "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" + "p-limit": "^2.2.0" }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "engines": { + "node": ">=8" + } + }, + "node_modules/nyc/node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "engines": { + "node": ">=8" } }, "node_modules/nyc/node_modules/wrap-ansi": { @@ -4263,10 +4228,16 @@ "node": ">=8" } }, + "node_modules/nyc/node_modules/y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", + "dev": true + }, "node_modules/nyc/node_modules/yargs": { - "version": "15.3.1", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.3.1.tgz", - "integrity": "sha512-92O1HWEjw27sBfgmXiixJWT5hRBp2eobqXicLtPBIDBhYB+1HpwZlXmbW2luivBJHBzki+7VyCLRtAkScbTBQA==", + "version": "15.4.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", "dev": true, "dependencies": { "cliui": "^6.0.0", @@ -4279,7 +4250,7 @@ "string-width": "^4.2.0", "which-module": "^2.0.0", "y18n": "^4.0.0", - "yargs-parser": "^18.1.1" + "yargs-parser": "^18.1.2" }, "engines": { "node": ">=8" @@ -4333,13 +4304,13 @@ } }, "node_modules/object.assign": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz", - "integrity": "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==", + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.5.tgz", + "integrity": "sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ==", "dev": true, "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", + "call-bind": "^1.0.5", + "define-properties": "^1.2.1", "has-symbols": "^1.0.3", "object-keys": "^1.1.1" }, @@ -4399,7 +4370,7 @@ "node_modules/once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", "dev": true, "dependencies": { "wrappy": "1" @@ -4456,15 +4427,15 @@ } }, "node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", "dev": true, "dependencies": { - "p-try": "^2.0.0" + "yocto-queue": "^0.1.0" }, "engines": { - "node": ">=6" + "node": ">=10" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -4485,21 +4456,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/p-locate/node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/p-map": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/p-map/-/p-map-3.0.0.tgz", @@ -4570,7 +4526,7 @@ "node_modules/path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", "dev": true, "engines": { "node": ">=0.10.0" @@ -4655,6 +4611,21 @@ "node": ">=8" } }, + "node_modules/pkg-dir/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/pkg-dir/node_modules/p-locate": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", @@ -4667,15 +4638,6 @@ "node": ">=8" } }, - "node_modules/pkg-dir/node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/prelude-ls": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", @@ -4769,14 +4731,15 @@ "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", "dev": true, + "peer": true, "dependencies": { "safe-buffer": "^5.1.0" } }, "node_modules/readable-stream": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", - "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", "dependencies": { "core-util-is": "~1.0.0", "inherits": "~2.0.3", @@ -4792,6 +4755,7 @@ "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", "dev": true, + "peer": true, "dependencies": { "picomatch": "^2.2.1" }, @@ -4817,9 +4781,9 @@ } }, "node_modules/regexpp": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.1.0.tgz", - "integrity": "sha512-ZOIzd8yVsQQA7j8GCSlPGXwg5PfmA1mrq0JP4nGhh54LaKN3xdai/vHUDu74pKwV8OxseMS65u2NImosQcSD0Q==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", + "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", "dev": true, "engines": { "node": ">=8" @@ -4831,7 +4795,7 @@ "node_modules/release-zalgo": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/release-zalgo/-/release-zalgo-1.0.0.tgz", - "integrity": "sha1-CXALflB0Mpc5Mw5TXFqQ+2eFFzA=", + "integrity": "sha512-gUAyHVHPPC5wdqX/LG4LWtRYtgjxyX78oanFNTMMyFEfOqdC54s3eE82imuWKbOeqYht2CrNf64Qb8vgmmtZGA==", "dev": true, "dependencies": { "es6-error": "^4.0.1" @@ -4843,7 +4807,7 @@ "node_modules/require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", "dev": true, "engines": { "node": ">=0.10.0" @@ -5088,11 +5052,30 @@ "node": ">=10" } }, + "node_modules/semver/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/semver/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, "node_modules/serialize-javascript": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz", "integrity": "sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==", "dev": true, + "peer": true, "dependencies": { "randombytes": "^2.1.0" } @@ -5100,7 +5083,7 @@ "node_modules/set-blocking": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", + "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==", "dev": true }, "node_modules/set-function-length": { @@ -5185,7 +5168,7 @@ "node_modules/slow-stream": { "version": "0.0.4", "resolved": "https://registry.npmjs.org/slow-stream/-/slow-stream-0.0.4.tgz", - "integrity": "sha1-v8Ygyxbw1++s1VjfsUiWm40nedA=", + "integrity": "sha512-B7LpVyXcTI3bSwiIAQc72ts2ET47p5thsfd84GpZS00EIeMJtb40bW3Sw4DYoKTp/7O9Q2vnbSkKwADyGk7oSw==", "deprecated": "no longer maintained", "dev": true }, @@ -5198,6 +5181,16 @@ "node": ">=0.10.0" } }, + "node_modules/source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dev": true, + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, "node_modules/spawn-wrap": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/spawn-wrap/-/spawn-wrap-2.0.0.tgz", @@ -5215,25 +5208,10 @@ "node": ">=8" } }, - "node_modules/spawn-wrap/node_modules/rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "dev": true, - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", "dev": true }, "node_modules/string_decoder": { @@ -5349,18 +5327,15 @@ } }, "node_modules/supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "dependencies": { "has-flag": "^4.0.0" }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" + "node": ">=8" } }, "node_modules/supports-preserve-symlinks-flag": { @@ -5376,13 +5351,13 @@ } }, "node_modules/synckit": { - "version": "0.8.5", - "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.8.5.tgz", - "integrity": "sha512-L1dapNV6vu2s/4Sputv8xGsCdAVlb5nRDMFU/E27D44l5U6cw1g0dGd45uLc+OXjNMmF4ntiMdCimzcjFKQI8Q==", + "version": "0.8.6", + "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.8.6.tgz", + "integrity": "sha512-laHF2savN6sMeHCjLRkheIU4wo3Zg9Ln5YOjOo7sZ5dVQW8yF5pPE5SIw1dsPhq3TRp1jisKRCdPhfs/1WMqDA==", "dev": true, "dependencies": { - "@pkgr/utils": "^2.3.1", - "tslib": "^2.5.0" + "@pkgr/utils": "^2.4.2", + "tslib": "^2.6.2" }, "engines": { "node": "^14.18.0 || >=16.0.0" @@ -5417,7 +5392,7 @@ "node_modules/text-table": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", "dev": true }, "node_modules/titleize": { @@ -5435,7 +5410,7 @@ "node_modules/to-fast-properties": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=", + "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", "dev": true, "engines": { "node": ">=4" @@ -5465,10 +5440,71 @@ "typescript": ">=4.2.0" } }, + "node_modules/ts-mocha": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/ts-mocha/-/ts-mocha-10.0.0.tgz", + "integrity": "sha512-VRfgDO+iiuJFlNB18tzOfypJ21xn2xbuZyDvJvqpTbWgkAgD17ONGr8t+Tl8rcBtOBdjXp5e/Rk+d39f7XBHRw==", + "dev": true, + "dependencies": { + "ts-node": "7.0.1" + }, + "bin": { + "ts-mocha": "bin/ts-mocha" + }, + "engines": { + "node": ">= 6.X.X" + }, + "optionalDependencies": { + "tsconfig-paths": "^3.5.0" + }, + "peerDependencies": { + "mocha": "^3.X.X || ^4.X.X || ^5.X.X || ^6.X.X || ^7.X.X || ^8.X.X || ^9.X.X || ^10.X.X" + } + }, + "node_modules/ts-mocha/node_modules/diff": { + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", + "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", + "dev": true, + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/ts-mocha/node_modules/ts-node": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-7.0.1.tgz", + "integrity": "sha512-BVwVbPJRspzNh2yfslyT1PSbl5uIk03EZlb493RKHN4qej/D06n1cEhjlOJG69oFsE7OT8XjpTUcYf6pKTLMhw==", + "dev": true, + "dependencies": { + "arrify": "^1.0.0", + "buffer-from": "^1.1.0", + "diff": "^3.1.0", + "make-error": "^1.1.1", + "minimist": "^1.2.0", + "mkdirp": "^0.5.1", + "source-map-support": "^0.5.6", + "yn": "^2.0.0" + }, + "bin": { + "ts-node": "dist/bin.js" + }, + "engines": { + "node": ">=4.2.0" + } + }, + "node_modules/ts-mocha/node_modules/yn": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/yn/-/yn-2.0.0.tgz", + "integrity": "sha512-uTv8J/wiWTgUTg+9vLTi//leUl5vDQS6uii/emeTb2ssY7vl6QWf2fFbIIGjnhjvbdKlU0ed7QPgY1htTC86jQ==", + "dev": true, + "engines": { + "node": ">=4" + } + }, "node_modules/ts-node": { - "version": "10.9.1", - "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz", - "integrity": "sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==", + "version": "10.9.2", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz", + "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==", "dev": true, "dependencies": { "@cspotcode/source-map-support": "^0.8.0", @@ -5517,6 +5553,39 @@ "node": ">=0.3.1" } }, + "node_modules/tsconfig-paths": { + "version": "3.14.2", + "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz", + "integrity": "sha512-o/9iXgCYc5L/JxCHPe3Hvh8Q/2xm5Z+p18PESBU6Ff33695QnCHBEjcytY2q19ua7Mbl/DavtBOLq+oG0RCL+g==", + "dev": true, + "dependencies": { + "@types/json5": "^0.0.29", + "json5": "^1.0.2", + "minimist": "^1.2.6", + "strip-bom": "^3.0.0" + } + }, + "node_modules/tsconfig-paths/node_modules/json5": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", + "dev": true, + "dependencies": { + "minimist": "^1.2.0" + }, + "bin": { + "json5": "lib/cli.js" + } + }, + "node_modules/tsconfig-paths/node_modules/strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, "node_modules/tslib": { "version": "2.6.2", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", @@ -5536,12 +5605,15 @@ } }, "node_modules/type-fest": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", - "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", "dev": true, "engines": { - "node": ">=8" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/typed-array-buffer": { @@ -5619,9 +5691,9 @@ } }, "node_modules/typescript": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.2.tgz", - "integrity": "sha512-6l+RyNy7oAHDfxC4FzSJcz9vnjTKxrLpDG5M2Vu4SHRVNg6xzqZp6LYSR9zjqQTu8DU/f5xwxUdADOkbrIX2gQ==", + "version": "5.3.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz", + "integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==", "dev": true, "bin": { "tsc": "bin/tsc", @@ -5650,8 +5722,7 @@ "version": "5.26.5", "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", - "dev": true, - "peer": true + "dev": true }, "node_modules/untildify": { "version": "4.0.0", @@ -5717,16 +5788,15 @@ "node_modules/util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" }, "node_modules/uuid": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", - "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", - "deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.", + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", "dev": true, "bin": { - "uuid": "bin/uuid" + "uuid": "dist/bin/uuid" } }, "node_modules/v8-compile-cache-lib": { @@ -5767,9 +5837,9 @@ } }, "node_modules/which-module": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", - "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.1.tgz", + "integrity": "sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==", "dev": true }, "node_modules/which-typed-array": { @@ -5795,13 +5865,15 @@ "version": "6.2.1", "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.2.1.tgz", "integrity": "sha512-ILEIE97kDZvF9Wb9f6h5aXK4swSlKGUcOEGiIYb2OOu/IrDU9iwj0fD//SsA6E5ibwJxpEvhullJY4Sl4GcpAw==", - "dev": true + "dev": true, + "peer": true }, "node_modules/wrap-ansi": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", "dev": true, + "peer": true, "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", @@ -5814,43 +5886,10 @@ "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, - "node_modules/wrap-ansi/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/wrap-ansi/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/wrap-ansi/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", "dev": true }, "node_modules/write-file-atomic": { @@ -5866,15 +5905,19 @@ } }, "node_modules/y18n": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", - "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", - "dev": true + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "dev": true, + "peer": true, + "engines": { + "node": ">=10" + } }, "node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", "dev": true }, "node_modules/yargs": { @@ -5882,6 +5925,7 @@ "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", "dev": true, + "peer": true, "dependencies": { "cliui": "^7.0.2", "escalade": "^3.1.1", @@ -5900,6 +5944,7 @@ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.4.tgz", "integrity": "sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA==", "dev": true, + "peer": true, "engines": { "node": ">=10" } @@ -5909,6 +5954,7 @@ "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-2.0.0.tgz", "integrity": "sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==", "dev": true, + "peer": true, "dependencies": { "camelcase": "^6.0.0", "decamelize": "^4.0.0", @@ -5920,10 +5966,11 @@ } }, "node_modules/yargs-unparser/node_modules/camelcase": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.2.0.tgz", - "integrity": "sha512-c7wVvbw3f37nuobQNtgsgG9POC9qMbNuMQmTCqZv23b6MIz0fcYpBiOlv9gEN/hdLdnZTDQhg6e9Dq5M1vKvfg==", + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", "dev": true, + "peer": true, "engines": { "node": ">=10" }, @@ -5936,6 +5983,7 @@ "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz", "integrity": "sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==", "dev": true, + "peer": true, "engines": { "node": ">=10" }, @@ -5943,15 +5991,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/yargs/node_modules/y18n": { - "version": "5.0.5", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.5.tgz", - "integrity": "sha512-hsRUr4FFrvhhRH12wOdfs38Gy7k2FFzB9qgN9v3aLykRq0dRcdcpz5C9FxdS2NuhOrI/628b/KSTJ3rwHysYSg==", - "dev": true, - "engines": { - "node": ">=10" - } - }, "node_modules/yn": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", diff --git a/package.json b/package.json index 2b3e377..a9c1d6b 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "scripts": { "build": "bash .tools/build.sh", "hooks": "bash .tools/hooks.sh", - "test": "TS_NODE_PROJECT=tsconfig.test.json mocha test/", + "test": "TS_NODE_PROJECT=tsconfig.test.json ts-mocha test/", "coverage": "nyc --temp-dir .coverage/.nyc_output --report-dir .coverage --reporter=lcov --reporter=html npm test", "lint": "eslint src/index.ts test/", "release": "bash .tools/release.sh master", @@ -41,27 +41,28 @@ }, "homepage": "https://github.com/bguerout/oleoduc#readme", "dependencies": { - "cyclist": "1.0.1", + "cyclist": "1.0.2", "parallel-transform": "1.2.0" }, "devDependencies": { "@types/mocha": "10.0.6", - "@typescript-eslint/eslint-plugin": "6.12.0", - "@typescript-eslint/parser": "6.12.0", + "@types/node": "20.10.4", + "@typescript-eslint/eslint-plugin": "6.13.2", + "@typescript-eslint/parser": "6.13.2", "assert": "2.1.0", - "eslint": "8.54.0", - "eslint-config-prettier": "9.0.0", + "eslint": "8.55.0", + "eslint-config-prettier": "9.1.0", "eslint-import-resolver-typescript": "3.6.1", "eslint-plugin-import": "2.29.0", "eslint-plugin-mocha": "10.2.0", "eslint-plugin-node": "11.1.0", "eslint-plugin-prettier": "5.0.1", - "mocha": "10.2.0", "nyc": "15.1.0", "prettier": "3.1.0", "slow-stream": "0.0.4", - "ts-node": "10.9.1", - "typescript": "5.3.2" + "ts-mocha": "10.0.0", + "ts-node": "10.9.2", + "typescript": "5.3.3" }, "prettier": { "printWidth": 120 diff --git a/tsconfig.json b/tsconfig.json index a8d539b..1197ad0 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,14 +2,15 @@ "compilerOptions": { "moduleResolution": "NodeNext", "module": "NodeNext", + "target": "esnext", "outDir": "./dist/mjs", + "rootDirs": ["src"], + "types": ["node"], + "lib": ["esnext"], "allowJs": true, "strict": false, "sourceMap": true, - "rootDirs": ["src"], - "target": "esnext", - "lib": ["esnext"], - "types": ["node"] + "esModuleInterop": true }, "exclude": ["node_modules", "dist"], "include": ["src"] diff --git a/tsconfig.test.json b/tsconfig.test.json index d620e7c..1d5c422 100644 --- a/tsconfig.test.json +++ b/tsconfig.test.json @@ -1,11 +1,9 @@ { - "extends": "./tsconfig.json", + "extends": "./tsconfig.cjs.json", "compilerOptions": { + "outDir": "./build", "rootDirs": ["./test"], "types": ["node", "mocha"] }, - "include": ["src", "test"], - "ts-node": { - "transpileOnly": true - } + "include": ["src", "test"] } From 709858450ccd7c822744fcfd35b961073fab264a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Gu=C3=A9rout?= Date: Sun, 10 Dec 2023 21:00:06 +0100 Subject: [PATCH 05/12] relax eslint --- .eslintrc.json | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index d77a7b8..99f173d 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -29,6 +29,7 @@ "mocha": true }, "rules": { + "@typescript-eslint/no-explicit-any": "warn", "quote-props": ["error", "consistent"], "mocha/no-skipped-tests": "error", "mocha/no-exclusive-tests": "error", diff --git a/package.json b/package.json index a9c1d6b..67f9f3a 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "hooks": "bash .tools/hooks.sh", "test": "TS_NODE_PROJECT=tsconfig.test.json ts-mocha test/", "coverage": "nyc --temp-dir .coverage/.nyc_output --report-dir .coverage --reporter=lcov --reporter=html npm test", - "lint": "eslint src/index.ts test/", + "lint": "eslint src/ test/", "release": "bash .tools/release.sh master", "ts": "tsc -p tsconfig.test.json --showConfig" }, From 438f8eb7a0390af2a88a34d93f47910ba791eb74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Gu=C3=A9rout?= Date: Thu, 2 Jan 2025 21:59:26 +0100 Subject: [PATCH 06/12] move to ts --- .eslintrc.json | 16 +- .github/workflows/ci.yml | 4 +- .gitignore | 1 + .mocharc.json | 9 +- .tools/build.sh | 13 +- README.md | 2 +- package-lock.json | 1318 +++++++++++++++++------- package.json | 14 +- src/@types/cyclist.d.ts | 13 + src/accumulateData.ts | 26 +- src/compose.ts | 36 +- src/concatStreams.ts | 40 +- src/filterData.ts | 8 +- src/flattenArray.ts | 15 +- src/groupData.ts | 30 +- src/index.ts | 36 +- src/mergeStreams.ts | 15 +- src/oleoduc.ts | 76 +- src/readLineByLine.ts | 6 +- src/transformData.ts | 25 +- src/transformIntoCSV.ts | 38 +- src/transformIntoJSON.ts | 16 +- src/transformStream.ts | 39 +- src/types.ts | 7 + src/utils/Duplexer.ts | 17 +- src/utils/decorateWithAsyncIterator.ts | 3 +- src/utils/decorateWithPromise.ts | 11 - src/utils/isReadableStream.ts | 13 + src/utils/isWriteableStream.ts | 12 + src/utils/parseArgs.ts | 38 +- src/utils/pipeStreamsTogether.ts | 18 + src/utils/toAsyncIterator.ts | 2 +- src/utils/wrapStreams.ts | 29 + src/writeData.ts | 49 +- src/writeToStdout.ts | 4 +- test/.mocharc.json | 10 + test/accumulateData-test.ts | 14 +- test/compose-test.ts | 82 +- test/concatStreams-test.ts | 7 +- test/filterData-tests.ts | 6 +- test/flattenArray-test.ts | 18 +- test/groupData-test.ts | 8 +- test/mergeStreams-test.ts | 6 +- test/oleoduc-test.ts | 87 +- test/parallel-test.ts | 28 +- test/pipeline-test.ts | 12 +- test/readLineByLine-test.ts | 22 +- test/testUtils.ts | 15 +- test/toAsyncIterator-test.ts | 9 +- test/transformData-test.ts | 14 +- test/transformIntoCSV-test.ts | 30 +- test/transformStream-test.ts | 29 +- test/writeData-test.ts | 8 +- tsconfig.cjs.json | 3 +- tsconfig.json | 7 +- tsconfig.test.json | 6 +- 56 files changed, 1583 insertions(+), 837 deletions(-) create mode 100644 src/@types/cyclist.d.ts create mode 100644 src/types.ts delete mode 100644 src/utils/decorateWithPromise.ts create mode 100644 src/utils/isReadableStream.ts create mode 100644 src/utils/isWriteableStream.ts create mode 100644 src/utils/pipeStreamsTogether.ts create mode 100644 src/utils/wrapStreams.ts create mode 100644 test/.mocharc.json diff --git a/.eslintrc.json b/.eslintrc.json index 99f173d..5b53dbd 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -29,15 +29,10 @@ "mocha": true }, "rules": { - "@typescript-eslint/no-explicit-any": "warn", + "@typescript-eslint/no-explicit-any": "error", "quote-props": ["error", "consistent"], - "mocha/no-skipped-tests": "error", + "mocha/no-skipped-tests": "warn", "mocha/no-exclusive-tests": "error", - "node/no-unpublished-import": [ - "error", { - "allowModules": ["slow-stream"] - } - ], "node/no-unsupported-features/es-syntax": [ "error", { @@ -45,10 +40,13 @@ "ignores": ["modules"] } ], + "node/no-unpublished-import": [ + "error", { + "allowModules": ["slow-stream"] + } + ], "node/no-missing-import": [ "error", { - "allowModules": [], - "resolvePaths": ["/path/to/a/modules/directory"], "tryExtensions": [".js", ".ts"] } ] diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 500e2cd..5f1b8ff 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 18.x + node-version: 21.x cache: npm - run: npm ci - run: npm test @@ -24,7 +24,7 @@ jobs: needs: test strategy: matrix: - node-version: [ 10.x, 12.x, 14.x, 15.x, 16.x, 17.x ] + node-version: [ 10.x, 11.x, 12.x, 13.x, 14.x, 15.x, 16.x, 17.x, 18.x, 19.x, 20.x ] steps: - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 diff --git a/.gitignore b/.gitignore index eef210f..964c6a5 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ node_modules/ .idea/ build/ dist/ +.DS_Store diff --git a/.mocharc.json b/.mocharc.json index 8be2655..6c9ad80 100644 --- a/.mocharc.json +++ b/.mocharc.json @@ -1,3 +1,10 @@ { - "extension": ["ts"] + "timeout": 5000, + "exit": true, + "extension": ["ts", "js"], + "recursive": true, + "node-option": [ + "experimental-specifier-resolution=node", + "import=tsx" + ] } diff --git a/.tools/build.sh b/.tools/build.sh index 14feb9c..ec9f647 100644 --- a/.tools/build.sh +++ b/.tools/build.sh @@ -11,7 +11,7 @@ mkdir -p "${DIST_DIR}" "${BUILD_DIR}" cd "${PROJECT_DIR}" echo "Compiling oleoduc (esm version)..." -tsc -p tsconfig.json +npm run tsc -- -p tsconfig.json cat >"${DIST_DIR}/mjs/package.json" <"${DIST_DIR}/mjs/package.json" <"${DIST_DIR}/cjs/package.json" <"${DIST_DIR}/cjs/package.json" <"${BUILD_DIR}/.mocharc.json" <= 10" @@ -521,26 +524,388 @@ "node": ">=6.9.0" } }, - "node_modules/@cspotcode/source-map-support": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", - "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", + "node_modules/@esbuild/aix-ppc64": { + "version": "0.23.1", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.23.1.tgz", + "integrity": "sha512-6VhYk1diRqrhBAqpJEdjASR/+WVRtfjpqKuNw11cLiaWpAT/Uu+nokB+UJnevzy/P9C/ty6AOe0dwueMrGh/iQ==", + "cpu": [ + "ppc64" + ], "dev": true, - "dependencies": { - "@jridgewell/trace-mapping": "0.3.9" - }, + "optional": true, + "os": [ + "aix" + ], "engines": { - "node": ">=12" + "node": ">=18" } }, - "node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping": { - "version": "0.3.9", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", - "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", + "node_modules/@esbuild/android-arm": { + "version": "0.23.1", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.23.1.tgz", + "integrity": "sha512-uz6/tEy2IFm9RYOyvKl88zdzZfwEfKZmnX9Cj1BHjeSGNuGLuMD1kR8y5bteYmwqKm1tj8m4cb/aKEorr6fHWQ==", + "cpu": [ + "arm" + ], "dev": true, - "dependencies": { - "@jridgewell/resolve-uri": "^3.0.3", - "@jridgewell/sourcemap-codec": "^1.4.10" + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.23.1", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.23.1.tgz", + "integrity": "sha512-xw50ipykXcLstLeWH7WRdQuysJqejuAGPd30vd1i5zSyKK3WE+ijzHmLKxdiCMtH1pHz78rOg0BKSYOSB/2Khw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.23.1", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.23.1.tgz", + "integrity": "sha512-nlN9B69St9BwUoB+jkyU090bru8L0NA3yFvAd7k8dNsVH8bi9a8cUAUSEcEEgTp2z3dbEDGJGfP6VUnkQnlReg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.23.1", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.23.1.tgz", + "integrity": "sha512-YsS2e3Wtgnw7Wq53XXBLcV6JhRsEq8hkfg91ESVadIrzr9wO6jJDMZnCQbHm1Guc5t/CdDiFSSfWP58FNuvT3Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.23.1", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.23.1.tgz", + "integrity": "sha512-aClqdgTDVPSEGgoCS8QDG37Gu8yc9lTHNAQlsztQ6ENetKEO//b8y31MMu2ZaPbn4kVsIABzVLXYLhCGekGDqw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.23.1", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.23.1.tgz", + "integrity": "sha512-h1k6yS8/pN/NHlMl5+v4XPfikhJulk4G+tKGFIOwURBSFzE8bixw1ebjluLOjfwtLqY0kewfjLSrO6tN2MgIhA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.23.1", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.23.1.tgz", + "integrity": "sha512-lK1eJeyk1ZX8UklqFd/3A60UuZ/6UVfGT2LuGo3Wp4/z7eRTRYY+0xOu2kpClP+vMTi9wKOfXi2vjUpO1Ro76g==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.23.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.23.1.tgz", + "integrity": "sha512-CXXkzgn+dXAPs3WBwE+Kvnrf4WECwBdfjfeYHpMeVxWE0EceB6vhWGShs6wi0IYEqMSIzdOF1XjQ/Mkm5d7ZdQ==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.23.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.23.1.tgz", + "integrity": "sha512-/93bf2yxencYDnItMYV/v116zff6UyTjo4EtEQjUBeGiVpMmffDNUyD9UN2zV+V3LRV3/on4xdZ26NKzn6754g==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.23.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.23.1.tgz", + "integrity": "sha512-VTN4EuOHwXEkXzX5nTvVY4s7E/Krz7COC8xkftbbKRYAl96vPiUssGkeMELQMOnLOJ8k3BY1+ZY52tttZnHcXQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.23.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.23.1.tgz", + "integrity": "sha512-Vx09LzEoBa5zDnieH8LSMRToj7ir/Jeq0Gu6qJ/1GcBq9GkfoEAoXvLiW1U9J1qE/Y/Oyaq33w5p2ZWrNNHNEw==", + "cpu": [ + "loong64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.23.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.23.1.tgz", + "integrity": "sha512-nrFzzMQ7W4WRLNUOU5dlWAqa6yVeI0P78WKGUo7lg2HShq/yx+UYkeNSE0SSfSure0SqgnsxPvmAUu/vu0E+3Q==", + "cpu": [ + "mips64el" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.23.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.23.1.tgz", + "integrity": "sha512-dKN8fgVqd0vUIjxuJI6P/9SSSe/mB9rvA98CSH2sJnlZ/OCZWO1DJvxj8jvKTfYUdGfcq2dDxoKaC6bHuTlgcw==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.23.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.23.1.tgz", + "integrity": "sha512-5AV4Pzp80fhHL83JM6LoA6pTQVWgB1HovMBsLQ9OZWLDqVY8MVobBXNSmAJi//Csh6tcY7e7Lny2Hg1tElMjIA==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.23.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.23.1.tgz", + "integrity": "sha512-9ygs73tuFCe6f6m/Tb+9LtYxWR4c9yg7zjt2cYkjDbDpV/xVn+68cQxMXCjUpYwEkze2RcU/rMnfIXNRFmSoDw==", + "cpu": [ + "s390x" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.23.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.23.1.tgz", + "integrity": "sha512-EV6+ovTsEXCPAp58g2dD68LxoP/wK5pRvgy0J/HxPGB009omFPv3Yet0HiaqvrIrgPTBuC6wCH1LTOY91EO5hQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.23.1", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.23.1.tgz", + "integrity": "sha512-aevEkCNu7KlPRpYLjwmdcuNz6bDFiE7Z8XC4CPqExjTvrHugh28QzUXVOZtiYghciKUacNktqxdpymplil1beA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.23.1", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.23.1.tgz", + "integrity": "sha512-3x37szhLexNA4bXhLrCC/LImN/YtWis6WXr1VESlfVtVeoFJBRINPJ3f0a/6LV8zpikqoUg4hyXw0sFBt5Cr+Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.23.1", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.23.1.tgz", + "integrity": "sha512-aY2gMmKmPhxfU+0EdnN+XNtGbjfQgwZj43k8G3fyrDM/UdZww6xrWxmDkuz2eCZchqVeABjV5BpildOrUbBTqA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.23.1", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.23.1.tgz", + "integrity": "sha512-RBRT2gqEl0IKQABT4XTj78tpk9v7ehp+mazn2HbUeZl1YMdaGAQqhapjGTCe7uw7y0frDi4gS0uHzhvpFuI1sA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.23.1", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.23.1.tgz", + "integrity": "sha512-4O+gPR5rEBe2FpKOVyiJ7wNDPA8nGzDuJ6gN4okSA1gEOYZ67N8JPk58tkWtdtPeLz7lBnY6I5L3jdsr3S+A6A==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.23.1", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.23.1.tgz", + "integrity": "sha512-BcaL0Vn6QwCwre3Y717nVHZbAa4UBEigzFm6VdsVdT/MbZ38xoj1X9HPkZhbmaBGUD1W8vxAfffbDe8bA6AKnQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.23.1", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.23.1.tgz", + "integrity": "sha512-BHpFFeslkWrXWyUPnbKm+xYYVYruCinGcftSBaa8zoF9hZO4BcSCFUvHVTtzpIY6YzUnYtuEhZ+C9iEXjxnasg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" } }, "node_modules/@eslint-community/eslint-utils": { @@ -599,6 +964,17 @@ "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } }, + "node_modules/@gerrit0/mini-shiki": { + "version": "1.24.4", + "resolved": "https://registry.npmjs.org/@gerrit0/mini-shiki/-/mini-shiki-1.24.4.tgz", + "integrity": "sha512-YEHW1QeAg6UmxEmswiQbOVEg1CW22b1XUD/lNTliOsu0LD0wqoyleFMnmbTp697QE0pcadQiR5cVtbbAPncvpw==", + "dev": true, + "dependencies": { + "@shikijs/engine-oniguruma": "^1.24.2", + "@shikijs/types": "^1.24.2", + "@shikijs/vscode-textmate": "^9.3.1" + } + }, "node_modules/@humanwhocodes/config-array": { "version": "0.11.13", "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.13.tgz", @@ -632,6 +1008,102 @@ "integrity": "sha512-dvuCeX5fC9dXgJn9t+X5atfmgQAzUOWqS1254Gh0m6i8wKd10ebXkfNKiRK+1GWi/yTvvLDHpoxLr0xxxeslWw==", "dev": true }, + "node_modules/@isaacs/cliui": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", + "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", + "dev": true, + "dependencies": { + "string-width": "^5.1.2", + "string-width-cjs": "npm:string-width@^4.2.0", + "strip-ansi": "^7.0.1", + "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", + "wrap-ansi": "^8.1.0", + "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@isaacs/cliui/node_modules/ansi-regex": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", + "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/@isaacs/cliui/node_modules/ansi-styles": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", + "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@isaacs/cliui/node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true + }, + "node_modules/@isaacs/cliui/node_modules/string-width": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", + "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "dev": true, + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@isaacs/cliui/node_modules/strip-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "dev": true, + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/@isaacs/cliui/node_modules/wrap-ansi": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", + "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, "node_modules/@istanbuljs/load-nyc-config": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", @@ -823,6 +1295,16 @@ "node": ">= 8" } }, + "node_modules/@pkgjs/parseargs": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", + "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", + "dev": true, + "optional": true, + "engines": { + "node": ">=14" + } + }, "node_modules/@pkgr/utils": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/@pkgr/utils/-/utils-2.4.2.tgz", @@ -843,29 +1325,40 @@ "url": "https://opencollective.com/unts" } }, - "node_modules/@tsconfig/node10": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz", - "integrity": "sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==", - "dev": true + "node_modules/@shikijs/engine-oniguruma": { + "version": "1.24.4", + "resolved": "https://registry.npmjs.org/@shikijs/engine-oniguruma/-/engine-oniguruma-1.24.4.tgz", + "integrity": "sha512-Do2ry6flp2HWdvpj2XOwwa0ljZBRy15HKZITzPcNIBOGSeprnA8gOooA/bLsSPuy8aJBa+Q/r34dMmC3KNL/zw==", + "dev": true, + "dependencies": { + "@shikijs/types": "1.24.4", + "@shikijs/vscode-textmate": "^9.3.1" + } }, - "node_modules/@tsconfig/node12": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", - "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", - "dev": true + "node_modules/@shikijs/types": { + "version": "1.24.4", + "resolved": "https://registry.npmjs.org/@shikijs/types/-/types-1.24.4.tgz", + "integrity": "sha512-0r0XU7Eaow0PuDxuWC1bVqmWCgm3XqizIaT7SM42K03vc69LGooT0U8ccSR44xP/hGlNx4FKhtYpV+BU6aaKAA==", + "dev": true, + "dependencies": { + "@shikijs/vscode-textmate": "^9.3.1", + "@types/hast": "^3.0.4" + } }, - "node_modules/@tsconfig/node14": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", - "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", + "node_modules/@shikijs/vscode-textmate": { + "version": "9.3.1", + "resolved": "https://registry.npmjs.org/@shikijs/vscode-textmate/-/vscode-textmate-9.3.1.tgz", + "integrity": "sha512-79QfK1393x9Ho60QFyLti+QfdJzRQCVLFb97kOIV7Eo9vQU/roINgk7m24uv0a7AUvN//RDH36FLjjK48v0s9g==", "dev": true }, - "node_modules/@tsconfig/node16": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz", - "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==", - "dev": true + "node_modules/@types/hast": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.4.tgz", + "integrity": "sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==", + "dev": true, + "dependencies": { + "@types/unist": "*" + } }, "node_modules/@types/json-schema": { "version": "7.0.15", @@ -894,12 +1387,27 @@ "undici-types": "~5.26.4" } }, + "node_modules/@types/parallel-transform": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/@types/parallel-transform/-/parallel-transform-1.1.4.tgz", + "integrity": "sha512-Dlw8uStux7ZL3FuKgw3h+zeBPv1gmJySEvyCuACjKzr6Aco43hW4LHHkmwsL6w8Q9GldlhdJwyRsFxyz/uwlqA==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, "node_modules/@types/semver": { "version": "7.5.6", "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.6.tgz", "integrity": "sha512-dn1l8LaMea/IjDoHNd9J52uBbInB796CDffS6VdIxvqYCPSG0V0DzHp76GpaWnlhg88uYyPbXCDIowa86ybd5A==", "dev": true }, + "node_modules/@types/unist": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz", + "integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==", + "dev": true + }, "node_modules/@typescript-eslint/eslint-plugin": { "version": "6.13.2", "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.13.2.tgz", @@ -1116,15 +1624,6 @@ "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" } }, - "node_modules/acorn-walk": { - "version": "8.3.1", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.1.tgz", - "integrity": "sha512-TgUZgYvqZprrl7YldZNoa9OciCAyZR+Ejm9eXzKCmjsF5IKp/wgQ7Z/ZpjpGTIUPwrHQIcYeI8qDh4PsEwxMbw==", - "dev": true, - "engines": { - "node": ">=0.4.0" - } - }, "node_modules/aggregate-error": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", @@ -1155,11 +1654,10 @@ } }, "node_modules/ansi-colors": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", - "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==", + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", + "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==", "dev": true, - "peer": true, "engines": { "node": ">=6" } @@ -1193,7 +1691,6 @@ "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", "dev": true, - "peer": true, "dependencies": { "normalize-path": "^3.0.0", "picomatch": "^2.0.4" @@ -1220,12 +1717,6 @@ "integrity": "sha512-Xg+9RwCg/0p32teKdGMPTPnVXKD0w3DfHnFTficozsAgsvq2XenPJq/MYpzzQ/v8zrOyJn6Ds39VA4JIDwFfqw==", "dev": true }, - "node_modules/arg": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", - "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", - "dev": true - }, "node_modules/argparse": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", @@ -1349,15 +1840,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/arrify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", - "integrity": "sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/assert": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/assert/-/assert-2.1.0.tgz", @@ -1399,13 +1881,15 @@ } }, "node_modules/binary-extensions": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", - "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", + "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", "dev": true, - "peer": true, "engines": { "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/bplist-parser": { @@ -1446,8 +1930,7 @@ "version": "1.3.1", "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", - "dev": true, - "peer": true + "dev": true }, "node_modules/browserslist": { "version": "4.22.2", @@ -1481,12 +1964,6 @@ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" } }, - "node_modules/buffer-from": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", - "dev": true - }, "node_modules/bundle-name": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/bundle-name/-/bundle-name-3.0.0.tgz", @@ -1586,17 +2063,10 @@ } }, "node_modules/chokidar": { - "version": "3.5.3", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", - "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", + "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "peer": true, "dependencies": { "anymatch": "~3.1.2", "braces": "~3.0.2", @@ -1609,6 +2079,9 @@ "engines": { "node": ">= 8.10.0" }, + "funding": { + "url": "https://paulmillr.com/funding/" + }, "optionalDependencies": { "fsevents": "~2.3.2" } @@ -1618,7 +2091,6 @@ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", "dev": true, - "peer": true, "dependencies": { "is-glob": "^4.0.1" }, @@ -1640,7 +2112,6 @@ "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", "dev": true, - "peer": true, "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.0", @@ -1688,12 +2159,6 @@ "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==" }, - "node_modules/create-require": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", - "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", - "dev": true - }, "node_modules/cross-spawn": { "version": "7.0.3", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", @@ -1714,12 +2179,12 @@ "integrity": "sha512-0sVXIohTfLqVIW3kb/0n6IiWF3Ifj5nm2XaSrLq2DI6fKIGa2fYAZdk917rUneaeLVpYfFcyXE2ft0fe3remsA==" }, "node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", + "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", "dev": true, "dependencies": { - "ms": "2.1.2" + "ms": "^2.1.3" }, "engines": { "node": ">=6.0" @@ -1838,11 +2303,10 @@ } }, "node_modules/diff": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-5.0.0.tgz", - "integrity": "sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w==", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-5.2.0.tgz", + "integrity": "sha512-uIFDxqpRZGZ6ThOk84hEfqWoHx2devRFvpTZcTHur85vImfaxUbTW9Ryh4CpCuDnToOP1CEtXKIgytHBPVff5A==", "dev": true, - "peer": true, "engines": { "node": ">=0.3.1" } @@ -1871,6 +2335,12 @@ "node": ">=6.0.0" } }, + "node_modules/eastasianwidth": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", + "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", + "dev": true + }, "node_modules/electron-to-chromium": { "version": "1.4.609", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.609.tgz", @@ -1896,6 +2366,18 @@ "node": ">=10.13.0" } }, + "node_modules/entities": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", + "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", + "dev": true, + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, "node_modules/es-abstract": { "version": "1.22.3", "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.22.3.tgz", @@ -1995,6 +2477,45 @@ "integrity": "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==", "dev": true }, + "node_modules/esbuild": { + "version": "0.23.1", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.23.1.tgz", + "integrity": "sha512-VVNz/9Sa0bs5SELtn3f7qhJCDPCF5oMEl5cO9/SSinpE9hbPVvxbd572HH5AKiP7WD8INO53GgfDDhRjkylHEg==", + "dev": true, + "hasInstallScript": true, + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.23.1", + "@esbuild/android-arm": "0.23.1", + "@esbuild/android-arm64": "0.23.1", + "@esbuild/android-x64": "0.23.1", + "@esbuild/darwin-arm64": "0.23.1", + "@esbuild/darwin-x64": "0.23.1", + "@esbuild/freebsd-arm64": "0.23.1", + "@esbuild/freebsd-x64": "0.23.1", + "@esbuild/linux-arm": "0.23.1", + "@esbuild/linux-arm64": "0.23.1", + "@esbuild/linux-ia32": "0.23.1", + "@esbuild/linux-loong64": "0.23.1", + "@esbuild/linux-mips64el": "0.23.1", + "@esbuild/linux-ppc64": "0.23.1", + "@esbuild/linux-riscv64": "0.23.1", + "@esbuild/linux-s390x": "0.23.1", + "@esbuild/linux-x64": "0.23.1", + "@esbuild/netbsd-x64": "0.23.1", + "@esbuild/openbsd-arm64": "0.23.1", + "@esbuild/openbsd-x64": "0.23.1", + "@esbuild/sunos-x64": "0.23.1", + "@esbuild/win32-arm64": "0.23.1", + "@esbuild/win32-ia32": "0.23.1", + "@esbuild/win32-x64": "0.23.1" + } + }, "node_modules/escalade": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", @@ -2641,7 +3162,6 @@ "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==", "dev": true, - "peer": true, "bin": { "flat": "cli.js" } @@ -2724,7 +3244,6 @@ "os": [ "darwin" ], - "peer": true, "engines": { "node": "^8.16.0 || ^10.6.0 || >=11.0.0" } @@ -2836,9 +3355,9 @@ } }, "node_modules/get-tsconfig": { - "version": "4.7.2", - "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.7.2.tgz", - "integrity": "sha512-wuMsz4leaj5hbGgg4IvDU0bqJagpftG5l5cXIAvo8uZrqn0NJqwtfupTN00VnkQJPcIRrxYrm1Ue24btpCha2A==", + "version": "4.8.1", + "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.8.1.tgz", + "integrity": "sha512-k9PN+cFBmaLWtVz29SkUoqU5O0slLuHJXt/2P+tMVFT+phsSGXGkp9t3rQIqdz0e+06EHNGs3oM6ZX1s2zHxRg==", "dev": true, "dependencies": { "resolve-pkg-maps": "^1.0.0" @@ -3064,7 +3583,6 @@ "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", "dev": true, - "peer": true, "bin": { "he": "bin/he" } @@ -3203,7 +3721,6 @@ "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", "dev": true, - "peer": true, "dependencies": { "binary-extensions": "^2.0.0" }, @@ -3410,7 +3927,6 @@ "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==", "dev": true, - "peer": true, "engines": { "node": ">=8" } @@ -3511,7 +4027,6 @@ "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", "dev": true, - "peer": true, "engines": { "node": ">=10" }, @@ -3696,6 +4211,21 @@ "node": ">=8" } }, + "node_modules/jackspeak": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", + "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", + "dev": true, + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + }, + "optionalDependencies": { + "@pkgjs/parseargs": "^0.11.0" + } + }, "node_modules/js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", @@ -3778,6 +4308,15 @@ "node": ">= 0.8.0" } }, + "node_modules/linkify-it": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-5.0.0.tgz", + "integrity": "sha512-5aHCbzQRADcdP+ATqnDuhhJ/MRIqDkZX5pyjFHRRysS8vZ5AbqGEoFIb6pYHPZ+L/OC2Lc+xT8uHVVR5CAK/wQ==", + "dev": true, + "dependencies": { + "uc.micro": "^2.0.0" + } + }, "node_modules/locate-path": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", @@ -3810,7 +4349,6 @@ "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", "dev": true, - "peer": true, "dependencies": { "chalk": "^4.1.0", "is-unicode-supported": "^0.1.0" @@ -3831,6 +4369,12 @@ "yallist": "^3.0.2" } }, + "node_modules/lunr": { + "version": "2.3.9", + "resolved": "https://registry.npmjs.org/lunr/-/lunr-2.3.9.tgz", + "integrity": "sha512-zTU3DaZaF3Rt9rhN3uBMGQD3dD2/vFQqnvZCDv4dl5iOzq2IZQqTxu90r4E5J+nP70J3ilqVCrbho2eWaeW8Ow==", + "dev": true + }, "node_modules/make-dir": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", @@ -3855,10 +4399,27 @@ "semver": "bin/semver.js" } }, - "node_modules/make-error": { - "version": "1.3.6", - "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", - "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "node_modules/markdown-it": { + "version": "14.1.0", + "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-14.1.0.tgz", + "integrity": "sha512-a54IwgWPaeBCAAsv13YgmALOF1elABB08FxO9i+r4VFk5Vl4pKokRPeX8u5TCgSsPi6ec1otfLjdOpVcgbpshg==", + "dev": true, + "dependencies": { + "argparse": "^2.0.1", + "entities": "^4.4.0", + "linkify-it": "^5.0.0", + "mdurl": "^2.0.0", + "punycode.js": "^2.3.1", + "uc.micro": "^2.1.0" + }, + "bin": { + "markdown-it": "bin/markdown-it.mjs" + } + }, + "node_modules/mdurl": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-2.0.0.tgz", + "integrity": "sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w==", "dev": true }, "node_modules/merge-stream": { @@ -3922,57 +4483,48 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/mkdirp": { - "version": "0.5.6", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", - "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", + "node_modules/minipass": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", + "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", "dev": true, - "dependencies": { - "minimist": "^1.2.6" - }, - "bin": { - "mkdirp": "bin/cmd.js" + "engines": { + "node": ">=16 || 14 >=14.17" } }, "node_modules/mocha": { - "version": "10.2.0", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.2.0.tgz", - "integrity": "sha512-IDY7fl/BecMwFHzoqF2sg/SHHANeBoMMXFlS9r0OXKDssYE1M5O43wUY/9BVPeIvfH2zmEbBfseqN9gBQZzXkg==", - "dev": true, - "peer": true, - "dependencies": { - "ansi-colors": "4.1.1", - "browser-stdout": "1.3.1", - "chokidar": "3.5.3", - "debug": "4.3.4", - "diff": "5.0.0", - "escape-string-regexp": "4.0.0", - "find-up": "5.0.0", - "glob": "7.2.0", - "he": "1.2.0", - "js-yaml": "4.1.0", - "log-symbols": "4.1.0", - "minimatch": "5.0.1", - "ms": "2.1.3", - "nanoid": "3.3.3", - "serialize-javascript": "6.0.0", - "strip-json-comments": "3.1.1", - "supports-color": "8.1.1", - "workerpool": "6.2.1", - "yargs": "16.2.0", - "yargs-parser": "20.2.4", - "yargs-unparser": "2.0.0" + "version": "11.0.1", + "resolved": "https://registry.npmjs.org/mocha/-/mocha-11.0.1.tgz", + "integrity": "sha512-+3GkODfsDG71KSCQhc4IekSW+ItCK/kiez1Z28ksWvYhKXV/syxMlerR/sC7whDp7IyreZ4YxceMLdTs5hQE8A==", + "dev": true, + "dependencies": { + "ansi-colors": "^4.1.3", + "browser-stdout": "^1.3.1", + "chokidar": "^3.5.3", + "debug": "^4.3.5", + "diff": "^5.2.0", + "escape-string-regexp": "^4.0.0", + "find-up": "^5.0.0", + "glob": "^10.4.5", + "he": "^1.2.0", + "js-yaml": "^4.1.0", + "log-symbols": "^4.1.0", + "minimatch": "^5.1.6", + "ms": "^2.1.3", + "serialize-javascript": "^6.0.2", + "strip-json-comments": "^3.1.1", + "supports-color": "^8.1.1", + "workerpool": "^6.5.1", + "yargs": "^16.2.0", + "yargs-parser": "^20.2.9", + "yargs-unparser": "^2.0.0" }, "bin": { "_mocha": "bin/_mocha", "mocha": "bin/mocha.js" }, "engines": { - "node": ">= 14.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/mochajs" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, "node_modules/mocha/node_modules/brace-expansion": { @@ -3980,17 +4532,66 @@ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", "dev": true, - "peer": true, "dependencies": { "balanced-match": "^1.0.0" } }, + "node_modules/mocha/node_modules/foreground-child": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.0.tgz", + "integrity": "sha512-Ld2g8rrAyMYFXBhEqMz8ZAHBi4J4uS1i/CxGMDnjyFWddMXLVcDp051DZfu+t7+ab7Wv6SMqpWmyFIj5UbfFvg==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.0", + "signal-exit": "^4.0.1" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/mocha/node_modules/glob": { + "version": "10.4.5", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz", + "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==", + "dev": true, + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^3.1.2", + "minimatch": "^9.0.4", + "minipass": "^7.1.2", + "package-json-from-dist": "^1.0.0", + "path-scurry": "^1.11.1" + }, + "bin": { + "glob": "dist/esm/bin.mjs" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/mocha/node_modules/glob/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/mocha/node_modules/minimatch": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.0.1.tgz", - "integrity": "sha512-nLDxIFRyhDblz3qMuq+SoRZED4+miJ/G+tdDrjkkkRnjAsBexeGpgjLEQ0blJy7rHhR2b93rhQY4SvyWu9v03g==", + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", + "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", "dev": true, - "peer": true, "dependencies": { "brace-expansion": "^2.0.1" }, @@ -3998,19 +4599,23 @@ "node": ">=10" } }, - "node_modules/mocha/node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "node_modules/mocha/node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", "dev": true, - "peer": true + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } }, "node_modules/mocha/node_modules/supports-color": { "version": "8.1.1", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "dev": true, - "peer": true, "dependencies": { "has-flag": "^4.0.0" }, @@ -4022,24 +4627,11 @@ } }, "node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", "dev": true }, - "node_modules/nanoid": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.3.tgz", - "integrity": "sha512-p1sjXuopFs0xg+fPASzQ28agW1oHD7xDsd9Xkf3T15H3c/cifrFHVwrh74PdoklAPi+i7MdRsE47vm2r6JoB+w==", - "dev": true, - "peer": true, - "bin": { - "nanoid": "bin/nanoid.cjs" - }, - "engines": { - "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" - } - }, "node_modules/natural-compare": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", @@ -4069,7 +4661,6 @@ "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", "dev": true, - "peer": true, "engines": { "node": ">=0.10.0" } @@ -4492,6 +5083,12 @@ "node": ">=8" } }, + "node_modules/package-json-from-dist": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", + "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", + "dev": true + }, "node_modules/parallel-transform": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/parallel-transform/-/parallel-transform-1.2.0.tgz", @@ -4547,6 +5144,28 @@ "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", "dev": true }, + "node_modules/path-scurry": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", + "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", + "dev": true, + "dependencies": { + "lru-cache": "^10.2.0", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" + }, + "engines": { + "node": ">=16 || 14 >=14.18" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/path-scurry/node_modules/lru-cache": { + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", + "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", + "dev": true + }, "node_modules/path-type": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", @@ -4700,6 +5319,15 @@ "node": ">=6" } }, + "node_modules/punycode.js": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode.js/-/punycode.js-2.3.1.tgz", + "integrity": "sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, "node_modules/queue-microtask": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", @@ -4731,7 +5359,6 @@ "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", "dev": true, - "peer": true, "dependencies": { "safe-buffer": "^5.1.0" } @@ -4755,7 +5382,6 @@ "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", "dev": true, - "peer": true, "dependencies": { "picomatch": "^2.2.1" }, @@ -5071,11 +5697,10 @@ "dev": true }, "node_modules/serialize-javascript": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz", - "integrity": "sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.2.tgz", + "integrity": "sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==", "dev": true, - "peer": true, "dependencies": { "randombytes": "^2.1.0" } @@ -5181,16 +5806,6 @@ "node": ">=0.10.0" } }, - "node_modules/source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "dev": true, - "dependencies": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } - }, "node_modules/spawn-wrap": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/spawn-wrap/-/spawn-wrap-2.0.0.tgz", @@ -5236,6 +5851,21 @@ "node": ">=8" } }, + "node_modules/string-width-cjs": { + "name": "string-width", + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/string.prototype.trim": { "version": "1.2.8", "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.8.tgz", @@ -5293,6 +5923,19 @@ "node": ">=8" } }, + "node_modules/strip-ansi-cjs": { + "name": "strip-ansi", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/strip-bom": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", @@ -5440,119 +6083,6 @@ "typescript": ">=4.2.0" } }, - "node_modules/ts-mocha": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/ts-mocha/-/ts-mocha-10.0.0.tgz", - "integrity": "sha512-VRfgDO+iiuJFlNB18tzOfypJ21xn2xbuZyDvJvqpTbWgkAgD17ONGr8t+Tl8rcBtOBdjXp5e/Rk+d39f7XBHRw==", - "dev": true, - "dependencies": { - "ts-node": "7.0.1" - }, - "bin": { - "ts-mocha": "bin/ts-mocha" - }, - "engines": { - "node": ">= 6.X.X" - }, - "optionalDependencies": { - "tsconfig-paths": "^3.5.0" - }, - "peerDependencies": { - "mocha": "^3.X.X || ^4.X.X || ^5.X.X || ^6.X.X || ^7.X.X || ^8.X.X || ^9.X.X || ^10.X.X" - } - }, - "node_modules/ts-mocha/node_modules/diff": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", - "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", - "dev": true, - "engines": { - "node": ">=0.3.1" - } - }, - "node_modules/ts-mocha/node_modules/ts-node": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-7.0.1.tgz", - "integrity": "sha512-BVwVbPJRspzNh2yfslyT1PSbl5uIk03EZlb493RKHN4qej/D06n1cEhjlOJG69oFsE7OT8XjpTUcYf6pKTLMhw==", - "dev": true, - "dependencies": { - "arrify": "^1.0.0", - "buffer-from": "^1.1.0", - "diff": "^3.1.0", - "make-error": "^1.1.1", - "minimist": "^1.2.0", - "mkdirp": "^0.5.1", - "source-map-support": "^0.5.6", - "yn": "^2.0.0" - }, - "bin": { - "ts-node": "dist/bin.js" - }, - "engines": { - "node": ">=4.2.0" - } - }, - "node_modules/ts-mocha/node_modules/yn": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/yn/-/yn-2.0.0.tgz", - "integrity": "sha512-uTv8J/wiWTgUTg+9vLTi//leUl5vDQS6uii/emeTb2ssY7vl6QWf2fFbIIGjnhjvbdKlU0ed7QPgY1htTC86jQ==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/ts-node": { - "version": "10.9.2", - "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz", - "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==", - "dev": true, - "dependencies": { - "@cspotcode/source-map-support": "^0.8.0", - "@tsconfig/node10": "^1.0.7", - "@tsconfig/node12": "^1.0.7", - "@tsconfig/node14": "^1.0.0", - "@tsconfig/node16": "^1.0.2", - "acorn": "^8.4.1", - "acorn-walk": "^8.1.1", - "arg": "^4.1.0", - "create-require": "^1.1.0", - "diff": "^4.0.1", - "make-error": "^1.1.1", - "v8-compile-cache-lib": "^3.0.1", - "yn": "3.1.1" - }, - "bin": { - "ts-node": "dist/bin.js", - "ts-node-cwd": "dist/bin-cwd.js", - "ts-node-esm": "dist/bin-esm.js", - "ts-node-script": "dist/bin-script.js", - "ts-node-transpile-only": "dist/bin-transpile.js", - "ts-script": "dist/bin-script-deprecated.js" - }, - "peerDependencies": { - "@swc/core": ">=1.2.50", - "@swc/wasm": ">=1.2.50", - "@types/node": "*", - "typescript": ">=2.7" - }, - "peerDependenciesMeta": { - "@swc/core": { - "optional": true - }, - "@swc/wasm": { - "optional": true - } - } - }, - "node_modules/ts-node/node_modules/diff": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", - "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", - "dev": true, - "engines": { - "node": ">=0.3.1" - } - }, "node_modules/tsconfig-paths": { "version": "3.14.2", "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz", @@ -5592,6 +6122,25 @@ "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==", "dev": true }, + "node_modules/tsx": { + "version": "4.19.2", + "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.19.2.tgz", + "integrity": "sha512-pOUl6Vo2LUq/bSa8S5q7b91cgNSjctn9ugq/+Mvow99qW6x/UZYwzxy/3NmqoT66eHYfCVvFvACC58UBPFf28g==", + "dev": true, + "dependencies": { + "esbuild": "~0.23.0", + "get-tsconfig": "^4.7.5" + }, + "bin": { + "tsx": "dist/cli.mjs" + }, + "engines": { + "node": ">=18.0.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + } + }, "node_modules/type-check": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", @@ -5690,10 +6239,68 @@ "is-typedarray": "^1.0.0" } }, + "node_modules/typedoc": { + "version": "0.27.6", + "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.27.6.tgz", + "integrity": "sha512-oBFRoh2Px6jFx366db0lLlihcalq/JzyCVp7Vaq1yphL/tbgx2e+bkpkCgJPunaPvPwoTOXSwasfklWHm7GfAw==", + "dev": true, + "dependencies": { + "@gerrit0/mini-shiki": "^1.24.0", + "lunr": "^2.3.9", + "markdown-it": "^14.1.0", + "minimatch": "^9.0.5", + "yaml": "^2.6.1" + }, + "bin": { + "typedoc": "bin/typedoc" + }, + "engines": { + "node": ">= 18" + }, + "peerDependencies": { + "typescript": "5.0.x || 5.1.x || 5.2.x || 5.3.x || 5.4.x || 5.5.x || 5.6.x || 5.7.x" + } + }, + "node_modules/typedoc-plugin-markdown": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/typedoc-plugin-markdown/-/typedoc-plugin-markdown-4.4.0.tgz", + "integrity": "sha512-4207DYcxJGWQRrEVTza7XkIo7ldhuEzJBaZO6dX5ogUGlvWeRTo4uiN+R1F11ttJGh4toLtxrpoi2wTTP+nEwA==", + "dev": true, + "engines": { + "node": ">= 18" + }, + "peerDependencies": { + "typedoc": "0.27.x" + } + }, + "node_modules/typedoc/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/typedoc/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/typescript": { - "version": "5.3.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz", - "integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.2.tgz", + "integrity": "sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg==", "dev": true, "bin": { "tsc": "bin/tsc", @@ -5703,6 +6310,12 @@ "node": ">=14.17" } }, + "node_modules/uc.micro": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-2.1.0.tgz", + "integrity": "sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==", + "dev": true + }, "node_modules/unbox-primitive": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", @@ -5799,12 +6412,6 @@ "uuid": "dist/bin/uuid" } }, - "node_modules/v8-compile-cache-lib": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", - "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", - "dev": true - }, "node_modules/which": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", @@ -5862,18 +6469,34 @@ } }, "node_modules/workerpool": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.2.1.tgz", - "integrity": "sha512-ILEIE97kDZvF9Wb9f6h5aXK4swSlKGUcOEGiIYb2OOu/IrDU9iwj0fD//SsA6E5ibwJxpEvhullJY4Sl4GcpAw==", - "dev": true, - "peer": true + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.5.1.tgz", + "integrity": "sha512-Fs4dNYcsdpYSAfVxhnl1L5zTksjvOJxtC5hzMNl+1t9B8hTJTdKDyZ5ju7ztgPy+ft9tBFXoOlDNiOT9WUXZlA==", + "dev": true }, "node_modules/wrap-ansi": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", "dev": true, - "peer": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi-cjs": { + "name": "wrap-ansi", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", @@ -5909,7 +6532,6 @@ "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", "dev": true, - "peer": true, "engines": { "node": ">=10" } @@ -5920,12 +6542,23 @@ "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", "dev": true }, + "node_modules/yaml": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.7.0.tgz", + "integrity": "sha512-+hSoy/QHluxmC9kCIJyL/uyFmLmc+e5CFR5Wa+bpIhIj85LVb9ZH2nVnqrHoSvKogwODv0ClqZkmiSSaIH5LTA==", + "dev": true, + "bin": { + "yaml": "bin.mjs" + }, + "engines": { + "node": ">= 14" + } + }, "node_modules/yargs": { "version": "16.2.0", "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", "dev": true, - "peer": true, "dependencies": { "cliui": "^7.0.2", "escalade": "^3.1.1", @@ -5940,11 +6573,10 @@ } }, "node_modules/yargs-parser": { - "version": "20.2.4", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.4.tgz", - "integrity": "sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA==", + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", "dev": true, - "peer": true, "engines": { "node": ">=10" } @@ -5954,7 +6586,6 @@ "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-2.0.0.tgz", "integrity": "sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==", "dev": true, - "peer": true, "dependencies": { "camelcase": "^6.0.0", "decamelize": "^4.0.0", @@ -5970,7 +6601,6 @@ "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", "dev": true, - "peer": true, "engines": { "node": ">=10" }, @@ -5983,7 +6613,6 @@ "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz", "integrity": "sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==", "dev": true, - "peer": true, "engines": { "node": ">=10" }, @@ -5991,15 +6620,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/yn": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", - "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", - "dev": true, - "engines": { - "node": ">=6" - } - }, "node_modules/yocto-queue": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", diff --git a/package.json b/package.json index 67f9f3a..4bca33c 100644 --- a/package.json +++ b/package.json @@ -24,11 +24,12 @@ "scripts": { "build": "bash .tools/build.sh", "hooks": "bash .tools/hooks.sh", - "test": "TS_NODE_PROJECT=tsconfig.test.json ts-mocha test/", + "test": "mocha test/", "coverage": "nyc --temp-dir .coverage/.nyc_output --report-dir .coverage --reporter=lcov --reporter=html npm test", "lint": "eslint src/ test/", "release": "bash .tools/release.sh master", - "ts": "tsc -p tsconfig.test.json --showConfig" + "tsc": "tsc", + "doc": "npx typedoc --out docs --plugin typedoc-plugin-markdown src/accumulateData.ts" }, "repository": { "type": "git", @@ -47,6 +48,7 @@ "devDependencies": { "@types/mocha": "10.0.6", "@types/node": "20.10.4", + "@types/parallel-transform": "1.1.4", "@typescript-eslint/eslint-plugin": "6.13.2", "@typescript-eslint/parser": "6.13.2", "assert": "2.1.0", @@ -57,12 +59,14 @@ "eslint-plugin-mocha": "10.2.0", "eslint-plugin-node": "11.1.0", "eslint-plugin-prettier": "5.0.1", + "mocha": "11.0.1", "nyc": "15.1.0", "prettier": "3.1.0", "slow-stream": "0.0.4", - "ts-mocha": "10.0.0", - "ts-node": "10.9.2", - "typescript": "5.3.3" + "tsx": "4.19.2", + "typedoc": "0.27.6", + "typedoc-plugin-markdown": "4.4.0", + "typescript": "5.7.2" }, "prettier": { "printWidth": 120 diff --git a/src/@types/cyclist.d.ts b/src/@types/cyclist.d.ts new file mode 100644 index 0000000..44c950c --- /dev/null +++ b/src/@types/cyclist.d.ts @@ -0,0 +1,13 @@ +declare module "cyclist" { + function Cyclist(size: number): Cyclist; + + export class Cyclist { + constructor(size: number); + + put(index: number, val: unknown): number; + get(index: number): unknown; + del(index: number): unknown; + } + + export = Cyclist; +} diff --git a/src/accumulateData.ts b/src/accumulateData.ts index 3784e63..82ed162 100644 --- a/src/accumulateData.ts +++ b/src/accumulateData.ts @@ -1,12 +1,18 @@ import { Transform, TransformOptions } from "stream"; -type AccumulateDateOptions = { - accumulator?: unknown; -} & TransformOptions; +export type AccumulateDataOptions = TransformOptions & { accumulator?: TAcc }; +export type AccumulateDataCallback = ( + acc: TAcc, + data: TInput, + flush: (data: TOutput) => void, +) => TAcc; -export function accumulateData(accumulate, options: AccumulateDateOptions = {}) { +export function accumulateData( + accumulate: AccumulateDataCallback, + options: AccumulateDataOptions = {}, +): NodeJS.ReadWriteStream { const { accumulator, ...rest } = options; - let acc = accumulator === undefined ? null : accumulator; + let acc = (accumulator === undefined ? null : accumulator) as TAcc; let flushed = false; return new Transform({ @@ -15,16 +21,14 @@ export function accumulateData(accumulate, options: AccumulateDateOptions = {}) transform: async function (chunk, encoding, callback) { try { flushed = false; - const flush = (res) => { + acc = await accumulate(acc, chunk, (data: TOutput) => { flushed = true; - this.push(res); - }; - - acc = await accumulate(acc, chunk, flush); + this.push(data); + }); callback(); } catch (e) { - callback(e); + callback(e as Error); } }, flush(callback) { diff --git a/src/compose.ts b/src/compose.ts index e1068c3..b196278 100644 --- a/src/compose.ts +++ b/src/compose.ts @@ -1,7 +1,35 @@ -import { oleoduc } from "./oleoduc"; import { parseArgs } from "./utils/parseArgs"; +import { wrapStreams } from "./utils/wrapStreams"; +import { isReadableStream } from "./utils/isReadableStream"; +import { decorateWithAsyncIterator } from "./utils/decorateWithAsyncIterator"; +import { pipeStreamsTogether } from "./utils/pipeStreamsTogether"; +import { AnyStream, PipeableStreams } from "./types"; +import { Readable, TransformOptions } from "stream"; -export function compose(...args) { - const { streams, options } = parseArgs(args, { promisify: false }); - return oleoduc(streams, options); +export type ComposeOptions = TransformOptions; + +// eslint-disable-next-line @typescript-eslint/no-unused-vars +type ComposeReturn = TLast extends Readable + ? NodeJS.ReadWriteStream & Readable + : NodeJS.ReadWriteStream; + +export function compose( + ...args: PipeableStreams +): ComposeReturn { + const { params: streams, options } = parseArgs(args); + + const { first, last, wrapper } = wrapStreams(streams, options); + + if (isReadableStream(last)) { + decorateWithAsyncIterator(wrapper as Readable); + } + + if (wrapper !== last && wrapper !== first) { + last.on("finish", () => wrapper.emit("finish")); // Needed by nodejs 12 and previous + last.on("close", () => wrapper.emit("close")); + } + + pipeStreamsTogether(streams, wrapper); + + return wrapper as ComposeReturn; } diff --git a/src/concatStreams.ts b/src/concatStreams.ts index f42f749..494fee5 100644 --- a/src/concatStreams.ts +++ b/src/concatStreams.ts @@ -1,11 +1,13 @@ -import { PassThrough } from "stream"; +import { PassThrough, TransformOptions } from "stream"; import { parseArgs } from "./utils/parseArgs"; -class ArrayCursor { - private array: any; +type NextStreamCallback = () => Promise | NodeJS.ReadableStream | null; + +class StreamArrayCursor { + private array: Array; private cpt: number; - constructor(array) { + constructor(array: Array) { this.array = array; this.cpt = 0; } @@ -15,13 +17,15 @@ class ArrayCursor { } } -function isFunction(streams) { - return streams.length === 1 && typeof streams[0] === "function"; -} - -export function concatStreams(...args) { - const { streams, options } = parseArgs(args); - const cursor = isFunction(streams) ? { next: streams[0] } : new ArrayCursor(streams); +export function concatStreams( + ...args: + | [...streams: NodeJS.ReadableStream[]] + | [...streams: NodeJS.ReadableStream[], options: TransformOptions] + | [next: NextStreamCallback] + | [next: NextStreamCallback, options: TransformOptions] +): NodeJS.ReadWriteStream { + const { params, options } = parseArgs(args); + const cursor = asCursor(params); const passThrough = new PassThrough({ objectMode: true, ...options }); passThrough.setMaxListeners(0); @@ -31,7 +35,7 @@ export function concatStreams(...args) { return passThrough.end(); } - stream.on("error", (e) => passThrough.emit("error", e)); + stream.on("error", (e: Error) => passThrough.emit("error", e)); stream.on("end", () => concat()); stream.pipe(passThrough, { end: false }); } @@ -40,3 +44,15 @@ export function concatStreams(...args) { return passThrough; } + +function isFunction(streams: (NodeJS.ReadableStream | NextStreamCallback)[]) { + return streams.length === 1 && typeof streams[0] === "function"; +} + +function asCursor(value: (NodeJS.ReadableStream | NextStreamCallback)[]) { + if (isFunction(value)) { + const callbacks = value as NextStreamCallback[]; + return { next: callbacks[0] }; + } + return new StreamArrayCursor(value as NodeJS.ReadableStream[]); +} diff --git a/src/filterData.ts b/src/filterData.ts index d8984b2..46c4d41 100644 --- a/src/filterData.ts +++ b/src/filterData.ts @@ -1,5 +1,9 @@ -import { transformData } from "./transformData"; +import { TransformDataCallback, transformData, TransformDataOptions } from "./transformData"; +import { Transform } from "node:stream"; -export function filterData(filter, options = {}) { +export function filterData( + filter: TransformDataCallback, + options: TransformDataOptions = {}, +): Transform { return transformData((data) => data, { ...options, filter }); } diff --git a/src/flattenArray.ts b/src/flattenArray.ts index 17480ba..85d7f92 100644 --- a/src/flattenArray.ts +++ b/src/flattenArray.ts @@ -1,16 +1,17 @@ -import { Transform } from "stream"; +import { Transform, TransformCallback, TransformOptions } from "stream"; /** * Inspired by https://stackoverflow.com/a/43811543/122975 */ -class TransformArray extends Transform { - private _resumeTransform: any; +class TransformArray extends Transform { + private _resumeTransform: (() => void) | null; - constructor(options) { + constructor(options?: TransformOptions) { super(options); this._resumeTransform = null; } - _transform(chunk, encoding, callback) { + + _transform(chunk: Array | T, encoding: BufferEncoding, callback: TransformCallback) { const array = Array.isArray(chunk) ? chunk : [chunk]; let index = 0; const pushArrayItems = () => { @@ -31,7 +32,7 @@ class TransformArray extends Transform { //Start pushing array items pushArrayItems(); } - _read(size) { + _read(size: number) { if (this._resumeTransform !== null) { //Ensure every items from the previous transform has been pushed this._resumeTransform(); @@ -40,6 +41,6 @@ class TransformArray extends Transform { } } -export function flattenArray(options = {}) { +export function flattenArray(options: TransformOptions = {}): Transform { return new TransformArray({ objectMode: true, ...options }); } diff --git a/src/groupData.ts b/src/groupData.ts index bec5ecf..456c4b5 100644 --- a/src/groupData.ts +++ b/src/groupData.ts @@ -1,31 +1,19 @@ -import { compose } from "./compose"; -import { accumulateData } from "./accumulateData"; +import { accumulateData, AccumulateDataOptions } from "./accumulateData"; -function parseOptionalArgs(...args) { - const options = { - accumulator: [], - ...(typeof args[args.length - 1] === "object" ? args.pop() : {}), - }; - const size = options.size || 1; +export type GroupDataOptions = { size?: number } & AccumulateDataOptions>; - return { - shouldFlush: args.pop() || ((group) => group.length === size), - options, - }; -} - -export function groupData(...args) { - const { shouldFlush, options } = parseOptionalArgs(...args); - - return compose( - accumulateData((acc, data, flush) => { +export function groupData(options: GroupDataOptions = {}): NodeJS.ReadWriteStream { + return accumulateData, Array>( + (acc, data, flush) => { const group = [...acc, data]; - if (shouldFlush(group)) { + const groupSize = options.size || 1; + if (group.length === groupSize) { flush(group); return []; } else { return group; } - }, options), + }, + { ...options, accumulator: [] }, ); } diff --git a/src/index.ts b/src/index.ts index b936aa4..9914ecc 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,33 +1,33 @@ -import { oleoduc } from "./oleoduc"; +import { accumulateData } from "./accumulateData"; import { compose } from "./compose"; -import { transformData } from "./transformData"; -import { transformIntoJSON } from "./transformIntoJSON"; -import { transformIntoCSV } from "./transformIntoCSV"; -import { transformStream } from "./transformStream"; +import { concatStreams } from "./concatStreams"; import { filterData } from "./filterData"; -import { accumulateData } from "./accumulateData"; -import { groupData } from "./groupData"; -import { readLineByLine } from "./readLineByLine"; import { flattenArray } from "./flattenArray"; +import { groupData } from "./groupData"; import { mergeStreams } from "./mergeStreams"; -import { concatStreams } from "./concatStreams"; +import { oleoduc } from "./oleoduc"; +import { readLineByLine } from "./readLineByLine"; +import { transformData } from "./transformData"; +import { transformIntoCSV } from "./transformIntoCSV"; +import { transformIntoJSON } from "./transformIntoJSON"; +import { transformStream } from "./transformStream"; import { writeData } from "./writeData"; import { writeToStdout } from "./writeToStdout"; export { - oleoduc, + accumulateData, compose, - transformData, - transformIntoJSON, - transformIntoCSV, - transformStream, + concatStreams, filterData, - accumulateData, - groupData, - readLineByLine, flattenArray, + groupData, mergeStreams, - concatStreams, + oleoduc, + readLineByLine, + transformData, + transformIntoCSV, + transformIntoJSON, + transformStream, writeData, writeToStdout, }; diff --git a/src/mergeStreams.ts b/src/mergeStreams.ts index 6b48cbf..170670b 100644 --- a/src/mergeStreams.ts +++ b/src/mergeStreams.ts @@ -1,9 +1,14 @@ -import { PassThrough } from "stream"; +import { PassThrough, Transform } from "stream"; import { decorateWithAsyncIterator } from "./utils/decorateWithAsyncIterator"; import { parseArgs } from "./utils/parseArgs"; +import { StreamOptions } from "node:stream"; -export function mergeStreams(...args) { - const { streams, options } = parseArgs(args); +export function mergeStreams( + ...args: + | [...streams: NodeJS.ReadableStream[]] + | [...streams: NodeJS.ReadableStream[], options: StreamOptions] +): NodeJS.ReadableStream { + const { params: streams, options } = parseArgs(args); const last = streams[streams.length - 1]; const passThrough = new PassThrough(options); passThrough.setMaxListeners(0); @@ -11,9 +16,9 @@ export function mergeStreams(...args) { streams.forEach((s) => pipeStream(s)); - async function pipeStream(obj) { + async function pipeStream(obj: unknown) { const stream = typeof obj === "function" ? await obj() : obj; - stream.on("error", (e) => passThrough.emit("error", e)); + stream.on("error", (e: Error) => passThrough.emit("error", e)); stream.once("end", () => { if (--cpt === 0) { passThrough.end(); diff --git a/src/oleoduc.ts b/src/oleoduc.ts index db0b4dd..db7112d 100644 --- a/src/oleoduc.ts +++ b/src/oleoduc.ts @@ -1,72 +1,26 @@ -import { PassThrough } from "stream"; -import { decorateWithPromise } from "./utils/decorateWithPromise"; -import { decorateWithAsyncIterator } from "./utils/decorateWithAsyncIterator"; import { parseArgs } from "./utils/parseArgs"; -import { Duplexer } from "./utils/Duplexer"; +import { AnyStream, PipeableStreams } from "./types"; +import { wrapStreams } from "./utils/wrapStreams"; +import { pipeStreamsTogether } from "./utils/pipeStreamsTogether"; +import { TransformOptions } from "stream"; -function pipeStreamsTogether(streams, wrapper) { - for (const [i, stream] of streams.entries()) { - const next = streams[i + 1]; - if (next) { - stream.pipe(next); - } +export type OleoducOptions = TransformOptions; - if (stream !== wrapper) { - stream.on("error", (err) => wrapper.emit("error", err)); - } - } -} - -function getWrapper(first, last, options = {}) { - let wrapper; - if (first === last) { - wrapper = first; - } else if (first.writable && last.readable) { - wrapper = new Duplexer(first, last, options); - } else if (first.writable) { - wrapper = first; - } else if (last.readable) { - wrapper = last; - } else { - wrapper = new PassThrough(options); - } - - return wrapper; -} - -export function oleoduc(...args) { - const { - streams, - options: { promisify, ...rest }, - } = parseArgs(args, { promisify: true }); +export function oleoduc( + ...args: PipeableStreams +): Promise { + const { params: streams, options } = parseArgs(args); if (streams.length === 0) { throw new Error("You must provide at least one stream"); } - const first = streams[0]; - const last = streams[streams.length - 1]; - const wrapper = getWrapper(first, last, rest); - - if (last.readable) { - decorateWithAsyncIterator(wrapper); - } - - if (promisify) { - decorateWithPromise( - wrapper, - new Promise((resolve, reject) => { - wrapper.on("error", (e) => reject(e)); - last.on("finish", resolve); // Needed by nodejs 12 and previous - last.on("close", resolve); - }), - ); - } else if (wrapper !== last && wrapper !== first) { - last.on("finish", () => wrapper.emit("finish")); // Needed by nodejs 12 and previous - last.on("close", () => wrapper.emit("close")); - } - + const { wrapper, last } = wrapStreams(streams, options); pipeStreamsTogether(streams, wrapper); - return wrapper; + return new Promise((resolve, reject) => { + wrapper.on("error", (e) => reject(e)); + last.on("finish", resolve); // Needed by nodejs 12 and previous + last.on("close", resolve); + }); } diff --git a/src/readLineByLine.ts b/src/readLineByLine.ts index ec9db40..3f4d5a6 100644 --- a/src/readLineByLine.ts +++ b/src/readLineByLine.ts @@ -4,10 +4,10 @@ import { compose } from "./compose"; export function readLineByLine() { return compose( - accumulateData( - (acc, data, flush) => { + accumulateData( + (acc, data: string, flush) => { const lines = data.toString().split(/\r?\n/); - const rest = lines.pop(); + const rest = lines.pop() || ""; if (lines.length > 0) { lines[0] = acc + lines[0]; diff --git a/src/transformData.ts b/src/transformData.ts index 9ee8776..c0b2f95 100644 --- a/src/transformData.ts +++ b/src/transformData.ts @@ -1,19 +1,30 @@ import transform from "parallel-transform"; +import { Transform, TransformOptions } from "node:stream"; +import { TransformCallback } from "stream"; -export function transformData(handleChunk, options: any = {}) { +export type TransformDataCallback = (data: TInput) => Promise | TOutput; +export type TransformDataOptions = { + filter?: TransformDataCallback; + parallel?: number; +} & TransformOptions; + +export function transformData( + callback: TransformDataCallback, + options: TransformDataOptions = {}, +): Transform { const { filter, parallel, ...rest } = options; - const filterChunk = (value) => !filter || filter(value); + const filterChunk = (value: TInput) => !filter || filter(value); const maxParallel = parallel || 1; - return transform(maxParallel, { objectMode: true, ...rest }, async (chunk, callback) => { + return transform(maxParallel, { objectMode: true, ...rest }, async (chunk: TInput, cb: TransformCallback) => { try { if (!(await filterChunk(chunk))) { - return callback(null, null); + return cb(null, null); } - const res = await handleChunk(chunk); - callback(null, res); + const res = await callback(chunk); + cb(null, res); } catch (e) { - callback(e); + cb(e as Error); } }); } diff --git a/src/transformIntoCSV.ts b/src/transformIntoCSV.ts index 7f87cad..81116cd 100644 --- a/src/transformIntoCSV.ts +++ b/src/transformIntoCSV.ts @@ -1,20 +1,32 @@ -import { Transform } from "stream"; +import { Transform, TransformOptions } from "stream"; -export function transformIntoCSV(options: any = {}) { +export type TransformIntoCSVOptions = TransformOptions & { + columns?: Record Promise | AllowedCSVType>; + bom?: boolean; + mapper?: ValueMapper; + separator?: string; +}; +type AllowedCSVType = string | number; +type ValueMapper = (value: AllowedCSVType) => AllowedCSVType; + +export function transformIntoCSV>( + options: TransformIntoCSVOptions = {}, +): Transform { const bom = options.bom; const separator = options.separator || ";"; - const mapper = options.mapper || ((v) => v); + const columns = options.columns; + const mapper: ValueMapper = options.mapper || ((v) => v); - function generateColumnNames(chunk, columns) { + function generateColumnNames(chunk: TInput) { return Object.keys(columns || chunk) .map(mapper) .join(separator); } - async function generateColumnValues(chunk, columns) { - let values; + async function generateColumnValues(chunk: TInput) { + let values: AllowedCSVType[]; if (!columns) { - values = Object.values(chunk); + values = Object.values(chunk) as AllowedCSVType[]; } else { const columnNames = Object.keys(columns); values = await Promise.all(columnNames.map((name) => columns[name](chunk))); @@ -26,21 +38,19 @@ export function transformIntoCSV(options: any = {}) { let lines = 0; return new Transform({ objectMode: true, - transform: async function (chunk, encoding, callback) { - const columns = options.columns; - + transform: async function (chunk: TInput, encoding, cb) { try { if (lines++ === 0) { if (bom) { this.push("\ufeff"); } - this.push(`${generateColumnNames(chunk, columns)}\n`); + this.push(`${generateColumnNames(chunk)}\n`); } - this.push(`${await generateColumnValues(chunk, columns)}\n`); - callback(); + this.push(`${await generateColumnValues(chunk)}\n`); + cb(); } catch (e) { - callback(e); + cb(e as Error); } }, }); diff --git a/src/transformIntoJSON.ts b/src/transformIntoJSON.ts index acd1ca2..de7fab6 100644 --- a/src/transformIntoJSON.ts +++ b/src/transformIntoJSON.ts @@ -1,18 +1,24 @@ -import { Transform } from "stream"; +import { Transform, TransformOptions } from "stream"; -export function transformIntoJSON(options: any = {}) { +export type TransformIntoJSONOptions = TransformOptions & { + arrayPropertyName?: string; + arrayWrapper?: Record; +}; +const DEFAULT_ARRAY_PROPERTY_NAME = "items"; + +export function transformIntoJSON(options: TransformIntoJSONOptions = {}): Transform { let chunksSent = 0; return new Transform({ readableObjectMode: false, writableObjectMode: true, - transform: function (chunk, encoding, callback) { + transform: function (chunk: TInput, encoding, callback) { const shouldWrap = options.arrayWrapper || options.arrayPropertyName; if (chunksSent === 0) { if (shouldWrap) { let value = JSON.stringify(options.arrayWrapper || {}); value = value.substring(0, value.length - 1); const comma = options.arrayWrapper ? "," : ""; - value += String(`${comma}"${options.arrayPropertyName}":[`); + value += String(`${comma}"${options.arrayPropertyName || DEFAULT_ARRAY_PROPERTY_NAME}":[`); this.push(value); } else { this.push("["); @@ -33,7 +39,7 @@ export function transformIntoJSON(options: any = {}) { //nothing sent if (shouldWrap) { const value = options.arrayWrapper || {}; - value[options.arrayPropertyName] = []; + value[options.arrayPropertyName || DEFAULT_ARRAY_PROPERTY_NAME] = []; this.push(JSON.stringify(value)); } else { this.push("[]"); diff --git a/src/transformStream.ts b/src/transformStream.ts index 3e16da5..72a2bd7 100644 --- a/src/transformStream.ts +++ b/src/transformStream.ts @@ -1,22 +1,24 @@ -import { Transform } from "stream"; +import { Transform, TransformCallback } from "stream"; +import { TransformOptions } from "node:stream"; -class TransformStream extends Transform { - private handleChunk: any; - private _current: any; +export type TransformStreamCallback = ( + data: TInput, +) => Promise | TOutput; - constructor(handleChunk, options) { +class TransformStream extends Transform { + private callback: TransformStreamCallback; + private _current: NodeJS.ReadableStream | null; + + constructor(callback: TransformStreamCallback, options?: TransformOptions) { super(options); - this.handleChunk = handleChunk; + this.callback = callback; this._current = null; } - _transform(chunk, encoding, callback) { - const res = Promise.resolve(this.handleChunk(chunk)); - const promise = res.then ? res : Promise.resolve(res); //FIXME - - promise + _transform(chunk: TInput, encoding: BufferEncoding, cb: TransformCallback) { + Promise.resolve(this.callback(chunk)) .then((stream) => { - stream.on("error", (err) => this.emit("error", err)); + stream.on("error", (err: Error) => this.emit("error", err)); stream.on("data", (data) => { this._current = stream; const backpressure = !this.push(data); @@ -26,13 +28,13 @@ class TransformStream extends Transform { }); stream.on("end", () => { this._current = null; - callback(); + cb(); }); }) - .catch(callback); + .catch(cb); } - async _read(size) { + async _read(size: number) { if (this._current) { //Ensure every chunks has been consumed from the previous transform this._current.resume(); @@ -41,6 +43,9 @@ class TransformStream extends Transform { } } -export function transformStream(handleChunk, options = {}) { - return new TransformStream(handleChunk, { objectMode: true, ...options }); +export function transformStream( + callback: TransformStreamCallback, + options: TransformOptions = {}, +) { + return new TransformStream(callback, { objectMode: true, ...options }); } diff --git a/src/types.ts b/src/types.ts new file mode 100644 index 0000000..3e08c8f --- /dev/null +++ b/src/types.ts @@ -0,0 +1,7 @@ +export type AnyStream = NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream; + +export type PipeableStreams = + | [first: TFirstStream] + | [first: TFirstStream, last: TLastStream] + | [first: TFirstStream, ...streams: NodeJS.ReadWriteStream[], last: TLastStream] + | [first: TFirstStream, ...streams: NodeJS.ReadWriteStream[], last: TLastStream, options: TOptions]; diff --git a/src/utils/Duplexer.ts b/src/utils/Duplexer.ts index 7c89832..3530062 100644 --- a/src/utils/Duplexer.ts +++ b/src/utils/Duplexer.ts @@ -1,9 +1,12 @@ -import { Duplex } from "stream"; +import { Duplex, DuplexOptions, Readable, Writable } from "stream"; + +type DuplexerCallback = (error?: Error | null) => void; export class Duplexer extends Duplex { - private input: any; - private output: any; - constructor(input, output, options) { + private input: Writable; + private output: Readable; + + constructor(input: Writable, output: Readable, options?: DuplexOptions) { super(options || { writableObjectMode: true, readableObjectMode: true }); this.input = input; this.output = output; @@ -15,11 +18,11 @@ export class Duplexer extends Duplex { } }); } - _write(chunk, encoding, callback) { + _write(chunk: unknown, encoding: BufferEncoding, callback: DuplexerCallback) { this.input.write(chunk, encoding, callback); } - _final(callback) { - this.input.end(null, null, callback); + _final(callback: DuplexerCallback) { + this.input.end(null, callback); } _read() { this.output.resume(); diff --git a/src/utils/decorateWithAsyncIterator.ts b/src/utils/decorateWithAsyncIterator.ts index 81adc67..1751281 100644 --- a/src/utils/decorateWithAsyncIterator.ts +++ b/src/utils/decorateWithAsyncIterator.ts @@ -1,5 +1,6 @@ import { toAsyncIterator } from "./toAsyncIterator"; +import { Readable } from "stream"; -export function decorateWithAsyncIterator(stream) { +export function decorateWithAsyncIterator(stream: Readable) { stream[Symbol.asyncIterator] = () => toAsyncIterator(stream); } diff --git a/src/utils/decorateWithPromise.ts b/src/utils/decorateWithPromise.ts deleted file mode 100644 index 293fcde..0000000 --- a/src/utils/decorateWithPromise.ts +++ /dev/null @@ -1,11 +0,0 @@ -export function decorateWithPromise(stream, promise) { - const descriptors = ["then", "catch", "finally"].map((property) => { - return { property, descriptor: Reflect.getOwnPropertyDescriptor(Promise.prototype, property) }; - }); - - for (const { property, descriptor } of descriptors) { - const value = (...args) => Reflect.apply(descriptor.value, promise, args); - Reflect.defineProperty(stream, property, { ...descriptor, value }); - } - return stream; -} diff --git a/src/utils/isReadableStream.ts b/src/utils/isReadableStream.ts new file mode 100644 index 0000000..782d7d4 --- /dev/null +++ b/src/utils/isReadableStream.ts @@ -0,0 +1,13 @@ +import { Readable } from "stream"; + +// eslint-disable-next-line @typescript-eslint/no-explicit-any +export function isReadableStream(stream: any): stream is Readable { + return ( + stream !== null && + typeof stream === "object" && + typeof stream.read === "function" && + typeof stream.readable === "boolean" && + typeof stream.pipe === "function" && + typeof stream.on === "function" + ); +} diff --git a/src/utils/isWriteableStream.ts b/src/utils/isWriteableStream.ts new file mode 100644 index 0000000..3775338 --- /dev/null +++ b/src/utils/isWriteableStream.ts @@ -0,0 +1,12 @@ +import { Writable } from "stream"; + +// eslint-disable-next-line @typescript-eslint/no-explicit-any +export function isWritableStream(stream: any): stream is Writable { + return ( + stream !== null && + typeof stream === "object" && + typeof stream.write === "function" && + typeof stream.end === "function" && + typeof stream.writable === "boolean" + ); +} diff --git a/src/utils/parseArgs.ts b/src/utils/parseArgs.ts index 74e1440..71df923 100644 --- a/src/utils/parseArgs.ts +++ b/src/utils/parseArgs.ts @@ -1,14 +1,34 @@ -export function parseArgs(args, defaults = {}) { +type Args = { + params: TParams[]; + options: TOptions; +}; + +export function parseArgs( + args: [...params: TParams[]] | [...params: TParams[], options: TOptions], + defaults?: Partial, +): Args { const last = args[args.length - 1]; - const hasOption = typeof last === "object" && !Array.isArray(last) && typeof last.pipe !== "function"; - const options = { - objectMode: true, - ...defaults, - ...(hasOption ? args.pop() : {}), - }; + + let options = {}; + if (isOption(last)) { + options = args.pop() as TOptions; + } return { - streams: Array.isArray(args[0]) ? args[0] : args, - options, + params: (Array.isArray(args[0]) ? args[0] : args) as TParams[], + options: { + objectMode: true, + ...defaults, + ...options, + } as TOptions, }; } + +function isOption(last: unknown): last is TOptions { + return Boolean( + last && + typeof last === "object" && + !Array.isArray(last) && + typeof (last as Record).pipe !== "function", + ); +} diff --git a/src/utils/pipeStreamsTogether.ts b/src/utils/pipeStreamsTogether.ts new file mode 100644 index 0000000..f941562 --- /dev/null +++ b/src/utils/pipeStreamsTogether.ts @@ -0,0 +1,18 @@ +import { AnyStream } from "../types"; +import { Readable, Writable } from "stream"; + +export function pipeStreamsTogether(streams: AnyStream[], wrapper: AnyStream) { + for (const [i, stream] of streams.entries()) { + const next = streams[i + 1]; + if (next) { + // we assume that the oleoduc is correctly configured + const readable = stream as Readable; + const writable = next as Writable; + readable.pipe(writable); + } + + if (stream !== wrapper) { + stream.on("error", (err) => wrapper.emit("error", err)); + } + } +} diff --git a/src/utils/toAsyncIterator.ts b/src/utils/toAsyncIterator.ts index 5d17a8f..3b59e20 100644 --- a/src/utils/toAsyncIterator.ts +++ b/src/utils/toAsyncIterator.ts @@ -12,7 +12,7 @@ type ToAsyncIteratorOptions = { * @param options * @returns {AsyncGenerator<*, void, *>} */ -export async function* toAsyncIterator(stream, options: ToAsyncIteratorOptions = {}) { +export async function* toAsyncIterator(stream: NodeJS.ReadableStream, options: ToAsyncIteratorOptions = {}) { const chunkSize = options.chunkSize || 1; if (typeof stream.read !== "function") { diff --git a/src/utils/wrapStreams.ts b/src/utils/wrapStreams.ts new file mode 100644 index 0000000..adb5c71 --- /dev/null +++ b/src/utils/wrapStreams.ts @@ -0,0 +1,29 @@ +import { Duplexer } from "./Duplexer"; +import { PassThrough, TransformOptions } from "stream"; +import { isReadableStream } from "./isReadableStream"; +import { isWritableStream } from "./isWriteableStream"; +import { AnyStream } from "../types"; + +export function wrapStreams(streams: AnyStream[], options: TransformOptions = {}) { + if (streams.length === 0) { + throw new Error("You must provide at least one stream"); + } + + const first = streams[0]; + const last = streams[streams.length - 1]; + + let wrapper: AnyStream; + if (first === last) { + wrapper = first; + } else if (isWritableStream(first) && isReadableStream(last)) { + wrapper = new Duplexer(first, last, options); + } else if (isWritableStream(first)) { + wrapper = first; + } else if (isReadableStream(first)) { + wrapper = last; + } else { + wrapper = new PassThrough(options); + } + + return { first, last, wrapper }; +} diff --git a/src/writeData.ts b/src/writeData.ts index 9fcccf0..5a6bebf 100644 --- a/src/writeData.ts +++ b/src/writeData.ts @@ -1,22 +1,26 @@ import { Writable } from "stream"; -import cyclist from "cyclist"; +import cyclist, { Cyclist } from "cyclist"; +import { WritableOptions } from "node:stream"; -type ParallelWriteOptions = { - parallel?: number; -}; +export type WriteDataOptions = { parallel?: number }; +export type WriteDataCallback = (data: TInput) => void | unknown; -class ParallelWrite extends Writable { +type ParallelWriteOptions = WritableOptions & { ordered?: boolean }; +type ParallelOnWrite = (chunk: TInput, callback: (e?: Error | null, data?: unknown) => void) => void; +type ParallelOnDrain = () => void; + +class ParallelWrite extends Writable { private _maxParallel: number; - private _onWrite: (chunk: T, callback: (e: Error, data: T) => void) => void; + private _onWrite: ParallelOnWrite; private _destroyed: boolean; private _flushed: boolean; private _ordered: boolean; - private _buffer: cyclist | []; + private _buffer: Cyclist | Array; private _top: number; private _bottom: number; - private _ondrain: () => void; + private _ondrain: ParallelOnDrain | null; - constructor(maxParallel, opts, onWrite) { + constructor(maxParallel: number, opts: ParallelWriteOptions | null, onWrite: ParallelOnWrite) { super(); if (typeof maxParallel === "function") { onWrite = maxParallel; @@ -51,7 +55,7 @@ class ParallelWrite extends Writable { this.emit("close"); } - _write(chunk, enc, callback) { + _write(chunk: TInput, enc: BufferEncoding, callback: ParallelOnDrain) { const pos = this._top++; this._onWrite(chunk, (err, data) => { @@ -61,10 +65,10 @@ class ParallelWrite extends Writable { this.destroy(); return; } - if (this._ordered) { + if (this._isOrdered(this._buffer)) { this._buffer.put(pos, data === undefined || data === null ? null : data); } else { - this._buffer.push(data); + this._buffer.push(data as TInput); } this._drain(); }); @@ -73,14 +77,14 @@ class ParallelWrite extends Writable { this._ondrain = callback; } - _final(callback) { + _final(callback: ParallelOnDrain) { this._flushed = true; this._ondrain = callback; this._drain(); } _drain() { - if (this._ordered) { + if (this._isOrdered(this._buffer)) { while (this._buffer.get(this._bottom) !== undefined) { this._buffer.del(this._bottom++); } @@ -98,19 +102,26 @@ class ParallelWrite extends Writable { ondrain(); } + _isOrdered(buffer: Cyclist | Array): buffer is Cyclist { + return this._ordered; + } + _drained() { const diff = this._top - this._bottom; return this._flushed ? !diff : diff < this._maxParallel; } } -export function writeData(handleChunk, options: ParallelWriteOptions = {}) { - return new ParallelWrite(options.parallel || 1, { objectMode: true }, async (chunk, callback) => { +export function writeData( + callback: WriteDataCallback, + options: WriteDataOptions = {}, +): NodeJS.WritableStream { + return new ParallelWrite(options.parallel || 1, { objectMode: true }, async (chunk, cb) => { try { - const res = await handleChunk(chunk); - callback(null, res); + const res = await callback(chunk); + cb(null, res); } catch (e) { - callback(e); + cb(e as Error); } }); } diff --git a/src/writeToStdout.ts b/src/writeToStdout.ts index 3fbd93d..5241e42 100644 --- a/src/writeToStdout.ts +++ b/src/writeToStdout.ts @@ -1,8 +1,10 @@ import { Writable } from "stream"; +type WriteToStdoutCallback = (error: Error | null | undefined) => void; + export function writeToStdout() { return new Writable({ - write(chunk, encoding, callback) { + write(chunk: Uint8Array | string, encoding: BufferEncoding, callback: WriteToStdoutCallback) { //write to stdout as a side effect and honor finish event //https://stackoverflow.com/questions/33190458/node-pipe-to-stdout-how-do-i-tell-if-drained process.stdout.write(chunk, callback); diff --git a/test/.mocharc.json b/test/.mocharc.json new file mode 100644 index 0000000..eed28b6 --- /dev/null +++ b/test/.mocharc.json @@ -0,0 +1,10 @@ +{ + "timeout": 5000, + "exit": true, + "extension": ["ts", "js"], + "recursive": true, + "node-option": [ + "experimental-specifier-resolution=node", + "import=tsx" + ] +} diff --git a/test/accumulateData-test.ts b/test/accumulateData-test.ts index 3294bc8..d8fbc6b 100644 --- a/test/accumulateData-test.ts +++ b/test/accumulateData-test.ts @@ -4,7 +4,7 @@ import { createStream } from "./testUtils"; describe("accumulateData", () => { it("can accumulateData by grouping them (flush)", (done) => { - const result = []; + const result: string[] = []; const source = createStream(); source.push("John"); source.push("Doe"); @@ -15,7 +15,7 @@ describe("accumulateData", () => { source .pipe( accumulateData( - (acc, data, flush) => { + (acc, data: string, flush) => { acc = [...acc, data]; if (acc.length < 2) { @@ -25,10 +25,10 @@ describe("accumulateData", () => { flush(acc.join(" ")); return []; // Reset accumulator }, - { accumulator: [] }, + { accumulator: [] as string[] }, ), ) - .pipe(writeData((data) => result.push(data))) + .pipe(writeData((data: string) => result.push(data))) .on("finish", () => { deepStrictEqual(result, ["John Doe", "Robert Hue"]); done(); @@ -36,7 +36,7 @@ describe("accumulateData", () => { }); it("can accumulateData into a single chunk (no flush)", (done) => { - const result = []; + const result: string[] = []; const source = createStream(); source.push("j"); source.push("o"); @@ -46,7 +46,7 @@ describe("accumulateData", () => { source .pipe(accumulateData((acc, data) => acc + data, { accumulator: "" })) - .pipe(writeData((data) => result.push(data))) + .pipe(writeData((data: string) => result.push(data))) .on("finish", () => { deepStrictEqual(result, ["john"]); done(); @@ -69,7 +69,7 @@ describe("accumulateData", () => { source .pipe(accumulator) - .pipe(writeData((data) => result.push(data))) + .pipe(writeData((data: string) => result.push(data))) .on("finish", () => { fail(); done(); diff --git a/test/compose-test.ts b/test/compose-test.ts index 7253fb2..c202d00 100644 --- a/test/compose-test.ts +++ b/test/compose-test.ts @@ -1,19 +1,20 @@ import { deepStrictEqual, fail } from "assert"; -import SlowStream from "slow-stream"; -import { createStream } from "./testUtils"; -import { compose, flattenArray, oleoduc, transformData, writeData } from "../src"; +import { createSlowStream, createStream } from "./testUtils"; +import { compose, flattenArray, transformData, writeData } from "../src"; describe("compose", () => { it("can compose streams", (done) => { - const chunks = []; + const chunks: string[] = []; const source = createStream(); source.push("first"); source.push(null); compose( source, - transformData((d) => d.substring(0, 1)), - writeData((data) => chunks.push(data)), + transformData((data: string) => data.substring(0, 1)), + writeData((data: string) => { + chunks.push(data); + }), ) .on("finish", () => { deepStrictEqual(chunks, ["f"]); @@ -26,7 +27,7 @@ describe("compose", () => { }); it("can iterate over a composed stream", async () => { - const chunks = []; + const chunks: string[] = []; const source = createStream(); source.push("andré"); source.push("bruno"); @@ -35,18 +36,18 @@ describe("compose", () => { const stream = compose( source, - transformData((data) => data.substring(0, 1)), + transformData((data: string) => data.substring(0, 1)), ); for await (const chunk of stream) { - chunks.push(chunk); + chunks.push(chunk.toString()); } deepStrictEqual(chunks, ["a", "b", "r"]); }); it("can pipe a compose stream", (done) => { - const chunks = []; + const chunks: string[] = []; const source = createStream(); source.push("andré"); source.push("bruno"); @@ -54,8 +55,12 @@ describe("compose", () => { source.push(null); compose(source) - .pipe(transformData((data) => data.substring(0, 1))) - .pipe(writeData((data) => chunks.push(data))) + .pipe(transformData((data: string) => data.substring(0, 1))) + .pipe( + writeData((data: string) => { + chunks.push(data); + }), + ) .on("finish", () => { deepStrictEqual(chunks, ["a", "b", "r"]); done(); @@ -63,7 +68,7 @@ describe("compose", () => { }); it("can build compose with first writeable and last readable (duplex)", (done) => { - const chunks = []; + const chunks: string[] = []; const source = createStream(); source.push("andré"); source.push("bruno"); @@ -73,11 +78,15 @@ describe("compose", () => { source .pipe( compose( - transformData((data) => data.substring(0, 1)), + transformData((data: string) => data.substring(0, 1)), transformData((data) => "_" + data), ), ) - .pipe(writeData((data) => chunks.push(data))) + .pipe( + writeData((data: string) => { + chunks.push(data); + }), + ) .on("finish", () => { deepStrictEqual(chunks, ["_a", "_b", "_r"]); done(); @@ -85,11 +94,11 @@ describe("compose", () => { }); it("can compose inside compose", (done) => { - const chunks = []; + const chunks: string[] = []; const source = createStream(); const nested = compose( source, - transformData((d) => d.substring(0, 1)), + transformData((d: string) => d.substring(0, 1)), ); source.push("first"); @@ -97,7 +106,9 @@ describe("compose", () => { compose( nested, - writeData((d) => chunks.push(d)), + writeData((data: string) => { + chunks.push(data); + }), ) .on("finish", () => { deepStrictEqual(chunks, ["f"]); @@ -109,31 +120,6 @@ describe("compose", () => { }); }); - it("can use oleoduc inside compose", (done) => { - const chunks = []; - const source = createStream(); - const nested = oleoduc( - source, - transformData((d) => d.substring(0, 1)), - ); - - source.push("first"); - source.push(null); - - compose( - nested, - writeData((d) => chunks.push(d)), - ) - .on("finish", () => { - deepStrictEqual(chunks, ["f"]); - done(); - }) - .on("error", () => { - fail(); - done(); - }); - }); - it("can handle back pressure", (done) => { let result = ""; const source = createStream(); @@ -143,8 +129,8 @@ describe("compose", () => { compose( source, flattenArray({ highWaterMark: 1 }), - new SlowStream({ maxWriteInterval: 10 }), - writeData((data) => { + createSlowStream({ maxWriteInterval: 10 }), + writeData((data: string) => { result += data; }), ).on("finish", () => { @@ -161,8 +147,8 @@ describe("compose", () => { compose( source, - compose(flattenArray({ highWaterMark: 1 }), new SlowStream({ maxWriteInterval: 10 })), - writeData((data) => { + compose(flattenArray({ highWaterMark: 1 }), createSlowStream({ maxWriteInterval: 10 })), + writeData((data: string) => { result += data; }), ).on("finish", () => { @@ -176,7 +162,7 @@ describe("compose", () => { compose( source, - writeData(() => ({})), + writeData(() => {}), ) .on("finish", () => { fail(); diff --git a/test/concatStreams-test.ts b/test/concatStreams-test.ts index 58300a8..a90639e 100644 --- a/test/concatStreams-test.ts +++ b/test/concatStreams-test.ts @@ -1,6 +1,7 @@ import { deepStrictEqual } from "assert"; import { concatStreams, writeData } from "../src/index"; import { delay, streamArray } from "./testUtils"; +import { Readable } from "stream"; describe("concatStreams", () => { it("can concat streams", (done) => { @@ -19,7 +20,7 @@ describe("concatStreams", () => { it("can concat streams (next function)", (done) => { let result = ""; const array = [streamArray(["andré"]), streamArray(["bruno"])]; - const next = () => array.shift(); + const next = () => array.shift() as Readable; concatStreams(next) .pipe(writeData((data) => (result += data))) @@ -32,7 +33,7 @@ describe("concatStreams", () => { it("can concat streams (async next function)", (done) => { let result = ""; const array = [streamArray(["andré"]), streamArray(["bruno"])]; - const next = () => Promise.resolve(array.shift()); + const next = () => Promise.resolve(array.shift() as Readable); concatStreams(next) .pipe(writeData((data) => (result += data))) @@ -45,7 +46,7 @@ describe("concatStreams", () => { it("can concat streams (slow async next)", (done) => { let result = ""; const array = [streamArray(["andré"]), streamArray(["bruno"])]; - const next = () => delay(() => array.shift(), 2); + const next = () => delay(() => array.shift() as Readable, 2); concatStreams(next) .pipe(writeData((data) => (result += data))) diff --git a/test/filterData-tests.ts b/test/filterData-tests.ts index f14d13f..936671c 100644 --- a/test/filterData-tests.ts +++ b/test/filterData-tests.ts @@ -4,7 +4,7 @@ import { filterData } from "../src"; describe("filterData", () => { it("should filter (ignore empty)", (done) => { - const chunks = []; + const chunks: string[] = []; const source = createStream(); source.push("first"); source.push(""); @@ -24,7 +24,7 @@ describe("filterData", () => { }); it("should filter (async)", (done) => { - const chunks = []; + const chunks: string[] = []; const source = createStream(); source.push("first"); source.push(""); @@ -44,7 +44,7 @@ describe("filterData", () => { }); it("should filter (ignore first line)", (done) => { - const chunks = []; + const chunks: string[] = []; const source = createStream(); source.push("first"); source.push("second"); diff --git a/test/flattenArray-test.ts b/test/flattenArray-test.ts index e1ffcda..43c8c33 100644 --- a/test/flattenArray-test.ts +++ b/test/flattenArray-test.ts @@ -1,7 +1,6 @@ import { deepStrictEqual } from "assert"; -import SlowStream from "slow-stream"; import { accumulateData, flattenArray, writeData } from "../src"; -import { streamArray } from "./testUtils"; +import { createSlowStream, streamArray } from "./testUtils"; describe("flattenArray", () => { it("can flat map an array", (done) => { @@ -22,17 +21,24 @@ describe("flattenArray", () => { }); it("can flat map an array inside a pipeline", (done) => { - let result = []; + let result = ""; const source = streamArray(); source.push("andré"); source.push("bruno"); source.push(null); source - .pipe(accumulateData((acc, data) => [...acc, data.substring(0, 1)], { accumulator: [] })) + .pipe( + accumulateData( + (acc, data: string) => { + return [...acc, data.substring(0, 1)]; + }, + { accumulator: [] as string[] }, + ), + ) .pipe(flattenArray()) .pipe( - writeData((data) => { + writeData((data: string) => { result += data.toUpperCase(); }), ) @@ -51,7 +57,7 @@ describe("flattenArray", () => { source .pipe(flattenArray({ objectMode: true, highWaterMark: 1 })) - .pipe(new SlowStream({ maxWriteInterval: 10 })) // Force up streams to be paused + .pipe(createSlowStream({ maxWriteInterval: 10 })) // Force up streams to be paused .pipe( writeData((data) => { result += "_" + data; diff --git a/test/groupData-test.ts b/test/groupData-test.ts index 284b8c7..6357bbb 100644 --- a/test/groupData-test.ts +++ b/test/groupData-test.ts @@ -4,7 +4,7 @@ import { groupData, writeData } from "../src"; describe("groupData", () => { it("can create group of data", (done) => { - const results = []; + const results: string[][] = []; const source = createStream(); source.push("abc"); source.push("def"); @@ -14,7 +14,7 @@ describe("groupData", () => { source .pipe(groupData()) .pipe( - writeData((group) => { + writeData((group: string[]) => { return results.push(group); }), ) @@ -25,7 +25,7 @@ describe("groupData", () => { }); it("can create group of data with custom size", (done) => { - const results = []; + const results: string[][] = []; const source = createStream(); source.push("abc"); source.push("def"); @@ -35,7 +35,7 @@ describe("groupData", () => { source .pipe(groupData({ size: 2 })) .pipe( - writeData((group) => { + writeData((group: string[]) => { return results.push(group); }), ) diff --git a/test/mergeStreams-test.ts b/test/mergeStreams-test.ts index c3f3c41..087888f 100644 --- a/test/mergeStreams-test.ts +++ b/test/mergeStreams-test.ts @@ -9,7 +9,11 @@ describe("mergeStreams", () => { const source2 = streamArray(["bruno"]); mergeStreams(source1, source2) - .pipe(writeData((data) => (result += data))) + .pipe( + writeData((data) => { + result += data; + }), + ) .on("finish", () => { deepStrictEqual(result, "andrébruno"); done(); diff --git a/test/oleoduc-test.ts b/test/oleoduc-test.ts index 61d0959..e1ca316 100644 --- a/test/oleoduc-test.ts +++ b/test/oleoduc-test.ts @@ -1,10 +1,10 @@ -import { deepStrictEqual, fail, strictEqual } from "assert"; -import { createStream, delay } from "./testUtils"; +import { deepStrictEqual, fail } from "assert"; +import { assertErrorMessage, createStream, delay } from "./testUtils"; import { compose, oleoduc, transformData, writeData } from "../src"; describe("oleoduc", () => { it("can create oleoduc", async () => { - const chunks = []; + const chunks: string[] = []; const source = createStream(); source.push("andré"); source.push("bruno"); @@ -13,10 +13,10 @@ describe("oleoduc", () => { await oleoduc( source, - transformData((data) => { + transformData((data: string) => { return delay(() => data.substring(0, 1), 2); }), - writeData((data) => { + writeData((data: string) => { return delay(() => chunks.push(data), 2); }), ); @@ -24,50 +24,8 @@ describe("oleoduc", () => { deepStrictEqual(chunks, ["a", "b", "r"]); }); - it("can iterate over an oleoduc", async () => { - const chunks = []; - const source = createStream(); - source.push("andré"); - source.push("bruno"); - source.push("robert"); - source.push(null); - - const stream = oleoduc( - source, - transformData((data) => data.substring(0, 1)), - ); - - for await (const chunk of stream) { - chunks.push(chunk); - } - - deepStrictEqual(chunks, ["a", "b", "r"]); - }); - - it("can nest oleoduc", async () => { - const chunks = []; - const source = createStream(); - const nested = oleoduc( - source, - transformData((d) => d.substring(0, 1)), - ); - - source.push("first"); - source.push(null); - - try { - await oleoduc( - nested, - writeData((d) => chunks.push(d)), - ); - deepStrictEqual(chunks, ["f"]); - } catch (e) { - fail(e); - } - }); - it("can build oleoduc with first writeable and last readable (duplex)", async () => { - const chunks = []; + const chunks: string[] = []; const source = createStream(); source.push("andré"); source.push("bruno"); @@ -78,23 +36,23 @@ describe("oleoduc", () => { await oleoduc( source, compose( - transformData((data) => data.substring(0, 1)), - transformData((data) => "_" + data), + transformData((data: string) => data.substring(0, 1)), + transformData((data: string) => "_" + data), ), - writeData((d) => chunks.push(d)), + writeData((data: string) => chunks.push(data)), ); deepStrictEqual(chunks, ["_a", "_b", "_r"]); } catch (e) { - fail(e); + fail(e as Error); } }); it("can use compose inside oleoduc", async () => { - const chunks = []; + const chunks: string[] = []; const source = createStream(); const composed = compose( source, - transformData((d) => d.substring(0, 1)), + transformData((d: string) => d.substring(0, 1)), ); source.push("first"); @@ -102,7 +60,7 @@ describe("oleoduc", () => { await oleoduc( composed, - writeData((d) => chunks.push(d)), + writeData((data: string) => chunks.push(data)), ) .then(() => { deepStrictEqual(chunks, ["f"]); @@ -112,22 +70,6 @@ describe("oleoduc", () => { }); }); - it("can pipe and oleoduc", async () => { - const chunks = []; - const source = createStream(); - source.push("andré"); - source.push("bruno"); - source.push("robert"); - source.push(null); - - await oleoduc(source) - .pipe(transformData((data) => data.substring(0, 1))) - .pipe(writeData((data) => chunks.push(data))) - .on("finish", () => { - deepStrictEqual(chunks, ["a", "b", "r"]); - }); - }); - it("should propagate emitted error", (done) => { const source = createStream(); @@ -169,10 +111,11 @@ describe("oleoduc", () => { it("should fail when no stream are provided", async () => { try { + // @ts-expect-error TS2345 await oleoduc(); fail(); } catch (e) { - strictEqual(e.message, "You must provide at least one stream"); + assertErrorMessage(e, "You must provide at least one stream"); } }); }); diff --git a/test/parallel-test.ts b/test/parallel-test.ts index 019209b..f193392 100644 --- a/test/parallel-test.ts +++ b/test/parallel-test.ts @@ -2,9 +2,11 @@ import { deepStrictEqual, fail, ok } from "assert"; import { createStream, delay } from "./testUtils"; import { filterData, transformData, writeData } from "../src"; +type AccParallelData = { number: number; timestamp: number }; + describe("parallel", () => { it("can run parallel task with order preserved", (done) => { - const chunks = []; + const chunks: string[] = []; const source = createStream(); source.push("andré"); source.push("bruno"); @@ -14,8 +16,8 @@ describe("parallel", () => { source .pipe( transformData( - async (data) => { - return new Promise((resolve) => { + async (data: string) => { + return new Promise((resolve) => { resolve(data.substring(0, 1)); }); }, @@ -24,7 +26,7 @@ describe("parallel", () => { ) .pipe( writeData( - (data) => { + (data: string) => { return delay(() => chunks.push(data), 10); }, { parallel: 5 }, @@ -39,7 +41,7 @@ describe("parallel", () => { it("can transformData (parallel)", (done) => { const timeoutPerBatch = 10; const nbParallelTasks = 2; - const acc = []; + const acc: AccParallelData[] = []; const source = createStream(); //first batch @@ -58,13 +60,13 @@ describe("parallel", () => { source .pipe( transformData( - (number) => { + (number: number) => { return delay(() => ({ number, timestamp: Date.now() }), timeoutPerBatch); }, { parallel: nbParallelTasks }, ), ) - .pipe(writeData((data) => acc.push(data))) + .pipe(writeData((data: AccParallelData) => acc.push(data))) .on("error", () => { fail(); done(); @@ -86,7 +88,7 @@ describe("parallel", () => { it("can filterData (parallel)", (done) => { const timeoutPerBatch = 10; const nbParallelTasks = 2; - const acc = []; + const acc: AccParallelData[] = []; const source = createStream(); //first batch @@ -102,11 +104,11 @@ describe("parallel", () => { source.push(null); const start = Date.now(); - let last; + let last: number; source .pipe( filterData( - (number) => { + (number: number) => { return delay(() => { last = Date.now(); return number < 5; @@ -120,7 +122,7 @@ describe("parallel", () => { return { number, timestamp: Date.now() }; }), ) - .pipe(writeData((data) => acc.push(data))) + .pipe(writeData((data: AccParallelData) => acc.push(data))) .on("error", () => { fail(); done(); @@ -142,7 +144,7 @@ describe("parallel", () => { it("can writeData (parallel)", (done) => { const timeoutPerBatch = 10; const nbParallelTasks = 2; - const acc = []; + const acc: AccParallelData[] = []; const source = createStream(); //first batch @@ -161,7 +163,7 @@ describe("parallel", () => { source .pipe( writeData( - (number) => { + (number: number) => { return delay(() => acc.push({ number, timestamp: Date.now() }), timeoutPerBatch); }, { parallel: nbParallelTasks }, diff --git a/test/pipeline-test.ts b/test/pipeline-test.ts index 5d44f1b..eefbf50 100644 --- a/test/pipeline-test.ts +++ b/test/pipeline-test.ts @@ -6,7 +6,7 @@ import { transformData, writeData } from "../src"; describe("pipeline", () => { it("can create pipeline from stream", (done) => { - const chunks = []; + const chunks: string[] = []; const source = createStream(); source.push("andré"); source.push("bruno"); @@ -15,8 +15,8 @@ describe("pipeline", () => { pipeline( source, - transformData((data) => data.substring(0, 1)), - writeData((data) => chunks.push(data)), + transformData((data: string) => data.substring(0, 1)), + writeData((data: string) => chunks.push(data)), (err) => { if (err) { return done(err); @@ -28,7 +28,7 @@ describe("pipeline", () => { }); it("can create pipeline from stream (async)", async () => { - const chunks = []; + const chunks: string[] = []; const source = createStream(); source.push("andré"); source.push("bruno"); @@ -37,10 +37,10 @@ describe("pipeline", () => { await promisify(pipeline)( source, - transformData((data) => { + transformData((data: string) => { return delay(() => data.substring(0, 1), 2); }), - writeData((data) => { + writeData((data: string) => { return delay(() => chunks.push(data), 2); }), ); diff --git a/test/readLineByLine-test.ts b/test/readLineByLine-test.ts index 8d5cb54..7c06ff6 100644 --- a/test/readLineByLine-test.ts +++ b/test/readLineByLine-test.ts @@ -4,7 +4,7 @@ import { oleoduc, readLineByLine, writeData } from "../src"; describe("readLineByLine", () => { it("can read a stream line by line", (done) => { - const result = []; + const result: string[] = []; const source = createStream(); source.push("ab"); source.push("c\ndef\ng"); @@ -14,8 +14,8 @@ describe("readLineByLine", () => { source .pipe(readLineByLine()) .pipe( - writeData((data) => { - return result.push(data); + writeData((data: string) => { + result.push(data); }), ) .on("finish", () => { @@ -25,7 +25,7 @@ describe("readLineByLine", () => { }); it("can read a stream line by line (CRLF)", (done) => { - const result = []; + const result: string[] = []; const source = createStream(); source.push("ab"); source.push("c\r\ndef\r\ng"); @@ -35,8 +35,8 @@ describe("readLineByLine", () => { source .pipe(readLineByLine()) .pipe( - writeData((data) => { - return result.push(data); + writeData((data: string) => { + result.push(data); }), ) .on("finish", () => { @@ -46,7 +46,7 @@ describe("readLineByLine", () => { }); it("can handle content without carriage return on the last line", (done) => { - const result = []; + const result: string[] = []; const source = createStream(); source.push("ab\n"); source.push("hi"); @@ -55,8 +55,8 @@ describe("readLineByLine", () => { source .pipe(readLineByLine()) .pipe( - writeData((data) => { - return result.push(data); + writeData((data: string) => { + result.push(data); }), ) .on("finish", () => { @@ -66,7 +66,7 @@ describe("readLineByLine", () => { }); it("can read multiple lines with backpressure", async () => { - const array = []; + const array: string[] = []; const source = createStream(); const manyLines = Array(250) .fill("line") @@ -79,7 +79,7 @@ describe("readLineByLine", () => { await oleoduc( source, readLineByLine(), - writeData((opco) => { + writeData((opco: string) => { array.push(opco); }), ); diff --git a/test/testUtils.ts b/test/testUtils.ts index 6ea641e..7d57425 100644 --- a/test/testUtils.ts +++ b/test/testUtils.ts @@ -1,6 +1,9 @@ import { Readable } from "stream"; +import { deepStrictEqual } from "assert"; +// @ts-expect-error TS7016 +import SlowStream from "slow-stream"; -export function delay(callback, delay) { +export function delay(callback: () => T, delay: number): Promise { return new Promise((resolve) => { return setTimeout(async () => { resolve(callback()); @@ -8,7 +11,7 @@ export function delay(callback, delay) { }); } -export function streamArray(items = []) { +export function streamArray(items: Array = []): Readable { return new Readable({ objectMode: true, read() { @@ -23,3 +26,11 @@ export function createStream() { read() {}, }); } + +export function assertErrorMessage(e: unknown, message: string) { + deepStrictEqual((e as Error).message, message); +} + +export function createSlowStream(options: { maxWriteInterval?: number } = {}) { + return new SlowStream(options); +} diff --git a/test/toAsyncIterator-test.ts b/test/toAsyncIterator-test.ts index 5c9d7b2..0829c71 100644 --- a/test/toAsyncIterator-test.ts +++ b/test/toAsyncIterator-test.ts @@ -1,7 +1,7 @@ import { deepStrictEqual, fail } from "assert"; -import { createStream } from "./testUtils"; +import { assertErrorMessage, createStream } from "./testUtils"; import { toAsyncIterator } from "../src/utils/toAsyncIterator"; -import { oleoduc, transformData } from "../src"; +import { compose, transformData } from "../src"; describe("toAsyncIterator", () => { it("can convert a readable stream into an iterator", async () => { @@ -21,12 +21,11 @@ describe("toAsyncIterator", () => { it("iterator should honor error", async () => { const readable = createStream(); - const failingStream = oleoduc( + const failingStream = compose( readable, transformData(() => { throw new Error("This is a stream error"); }), - { promisify: false }, ); readable.push("a"); readable.push("b"); @@ -36,7 +35,7 @@ describe("toAsyncIterator", () => { await iterator.next(); fail(); } catch (e) { - deepStrictEqual(e.message, "This is a stream error"); + assertErrorMessage(e, "This is a stream error"); } readable.push(null); diff --git a/test/transformData-test.ts b/test/transformData-test.ts index eb9f586..725946e 100644 --- a/test/transformData-test.ts +++ b/test/transformData-test.ts @@ -4,15 +4,15 @@ import { transformData, writeData } from "../src"; describe("transformData", () => { it("should transformData", (done) => { - const chunks = []; + const chunks: string[] = []; const source = createStream(); source.push("andré"); source.push("bruno"); source.push(null); source - .pipe(transformData((data) => data.substring(0, 1))) - .pipe(writeData((data) => chunks.push(data))) + .pipe(transformData((data: string) => data.substring(0, 1))) + .pipe(writeData((data: string) => chunks.push(data))) .on("finish", () => { deepStrictEqual(chunks, ["a", "b"]); done(); @@ -20,7 +20,7 @@ describe("transformData", () => { }); it("should transformData (async)", (done) => { - const chunks = []; + const chunks: string[] = []; const source = createStream(); source.push("andré"); source.push("bruno"); @@ -28,14 +28,14 @@ describe("transformData", () => { source .pipe( - transformData(async (data) => { - return new Promise((resolve) => { + transformData(async (data: string) => { + return new Promise((resolve) => { resolve(data.substring(0, 1)); }); }), ) .pipe( - writeData(async (data) => { + writeData(async (data: string) => { return new Promise((resolve) => { chunks.push(data); resolve(); diff --git a/test/transformIntoCSV-test.ts b/test/transformIntoCSV-test.ts index a80132c..d2abddb 100644 --- a/test/transformIntoCSV-test.ts +++ b/test/transformIntoCSV-test.ts @@ -2,17 +2,19 @@ import { deepStrictEqual, fail, strictEqual, ok } from "assert"; import { createStream, delay } from "./testUtils"; import { transformIntoCSV, writeData } from "../src"; +type FullNameParams = { firstName: string; lastName: string }; + describe("transformIntoCSV", () => { it("should transform object into a csv", (done) => { const source = createStream(); source.push({ firstName: "Robert", lastName: "Hue" }); source.push(null); - const csv = []; + const csv: string[] = []; source .pipe(transformIntoCSV()) .pipe( - writeData((line) => { + writeData((line: string) => { csv.push(line); }), ) @@ -27,11 +29,11 @@ describe("transformIntoCSV", () => { source.push({ firstName: "Robert", lastName: "Hue" }); source.push(null); - const csv = []; + const csv: string[] = []; source .pipe(transformIntoCSV({ mapper: (v) => `"${v}"` })) .pipe( - writeData((line) => { + writeData((line: string) => { csv.push(line); }), ) @@ -46,11 +48,11 @@ describe("transformIntoCSV", () => { source.push({ firstName: "Robert", lastName: "Hue" }); source.push(null); - const csv = []; + const csv: string[] = []; source .pipe(transformIntoCSV({ bom: true })) .pipe( - writeData((line) => { + writeData((line: string) => { csv.push(line); }), ) @@ -66,7 +68,7 @@ describe("transformIntoCSV", () => { source.push({ firstName: "John", lastName: "Doe" }); source.push(null); - const csv = []; + const csv: string[] = []; source .pipe( transformIntoCSV({ @@ -74,7 +76,7 @@ describe("transformIntoCSV", () => { }), ) .pipe( - writeData((line) => { + writeData((line: string) => { csv.push(line); }), ) @@ -89,7 +91,7 @@ describe("transformIntoCSV", () => { source.push({ firstName: "Robert", lastName: "Hue" }); source.push(null); - const csv = []; + const csv: string[] = []; source .pipe( transformIntoCSV({ @@ -99,7 +101,7 @@ describe("transformIntoCSV", () => { }), ) .pipe( - writeData((line) => { + writeData((line: string) => { csv.push(line); }), ) @@ -114,18 +116,18 @@ describe("transformIntoCSV", () => { source.push({ firstName: "Robert", lastName: "Hue" }); source.push(null); - const csv = []; + const csv: string[] = []; source .pipe( transformIntoCSV({ columns: { - fullName: (data) => Promise.resolve(`${data.firstName} ${data.lastName}`), - lastName: async (data) => await delay(() => data.lastName, 5), + fullName: (data: FullNameParams) => Promise.resolve(`${data.firstName} ${data.lastName}`), + lastName: async (data: FullNameParams) => await delay(() => data.lastName, 5), }, }), ) .pipe( - writeData((line) => { + writeData((line: string) => { csv.push(line); }), ) diff --git a/test/transformStream-test.ts b/test/transformStream-test.ts index b8d64b7..27cbe5b 100644 --- a/test/transformStream-test.ts +++ b/test/transformStream-test.ts @@ -1,16 +1,15 @@ import { deepStrictEqual } from "assert"; -import SlowStream from "slow-stream"; -import { createStream, delay, streamArray } from "./testUtils"; +import { createSlowStream, createStream, delay, streamArray } from "./testUtils"; import { transformStream, writeData } from "../src"; describe("transformStream", () => { it("should transform data into a stream", (done) => { - const chunks = []; + const chunks: string[] = []; const source = streamArray(["andré", "bruno"]); source .pipe( - transformStream((data) => { + transformStream((data: string) => { const source = createStream(); source.push(data + "_transformed"); source.push(null); @@ -18,8 +17,8 @@ describe("transformStream", () => { }), ) .pipe( - writeData((data) => { - return chunks.push(data); + writeData((data: string) => { + chunks.push(data); }), ) .on("finish", () => { @@ -29,12 +28,12 @@ describe("transformStream", () => { }); it("should transform data into a stream (async)", (done) => { - const chunks = []; + const chunks: string[] = []; const source = streamArray(["andré", "bruno"]); source .pipe( - transformStream((data) => { + transformStream((data: string) => { const source = createStream(); return delay(() => { @@ -45,8 +44,8 @@ describe("transformStream", () => { }), ) .pipe( - writeData((data) => { - return chunks.push(data); + writeData((data: string) => { + chunks.push(data); }), ) .on("finish", () => { @@ -56,13 +55,13 @@ describe("transformStream", () => { }); it("should transform data into a stream (backpressure)", (done) => { - const chunks = []; + const chunks: string[] = []; const source = streamArray(["andré"]); source .pipe( transformStream( - async (data) => { + async (data: string) => { const source = createStream(); for (let i = 0; i < 5; i++) { source.push(data + "_transformed"); @@ -73,10 +72,10 @@ describe("transformStream", () => { { objectMode: true, highWaterMark: 1 }, ), ) - .pipe(new SlowStream({ maxWriteInterval: 10 })) // Force up streams to be paused + .pipe(createSlowStream({ maxWriteInterval: 10 })) // Force up streams to be paused .pipe( - writeData((data) => { - return chunks.push(data); + writeData((data: string) => { + chunks.push(data); }), ) .on("finish", () => { diff --git a/test/writeData-test.ts b/test/writeData-test.ts index 63aefc7..747a001 100644 --- a/test/writeData-test.ts +++ b/test/writeData-test.ts @@ -7,11 +7,11 @@ describe("writeData", () => { const source = createStream(); source.push("andré"); source.push(null); - const acc = []; + const acc: string[] = []; source .pipe( - writeData((data) => { + writeData((data: string) => { acc.push(data); }), ) @@ -72,12 +72,12 @@ describe("writeData", () => { source.push(2); source.push(3); source.push(null); - const acc = []; + const acc: number[] = []; source .pipe( writeData( - (data) => { + (data: number) => { return new Promise((resolve, reject) => { if (data === 2) { reject(new Error("async error")); diff --git a/tsconfig.cjs.json b/tsconfig.cjs.json index adbf054..990eb6c 100644 --- a/tsconfig.cjs.json +++ b/tsconfig.cjs.json @@ -4,6 +4,7 @@ "moduleResolution": "node", "module": "commonjs", "target": "es2015", - "outDir": "./dist/cjs" + "outDir": "./dist/cjs", + "typeRoots": ["./node_modules/@types", "./src/@types"] } } diff --git a/tsconfig.json b/tsconfig.json index 1197ad0..b340522 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,12 +5,13 @@ "target": "esnext", "outDir": "./dist/mjs", "rootDirs": ["src"], - "types": ["node"], + "types": ["node", "mocha"], "lib": ["esnext"], "allowJs": true, - "strict": false, + "strict": true, "sourceMap": true, - "esModuleInterop": true + "esModuleInterop": true, + "skipLibCheck": true }, "exclude": ["node_modules", "dist"], "include": ["src"] diff --git a/tsconfig.test.json b/tsconfig.test.json index 1d5c422..b3a01d4 100644 --- a/tsconfig.test.json +++ b/tsconfig.test.json @@ -1,9 +1,7 @@ { "extends": "./tsconfig.cjs.json", + "include": ["src", "test"], "compilerOptions": { - "outDir": "./build", - "rootDirs": ["./test"], - "types": ["node", "mocha"] + "outDir": "./build" }, - "include": ["src", "test"] } From f19c8b2148eafcb46fb0110ba3e30f8e23dcc915 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Gu=C3=A9rout?= Date: Fri, 3 Jan 2025 22:36:06 +0100 Subject: [PATCH 07/12] reformat code --- .prettierignore | 4 + .prettierrc | 5 + package-lock.json | 2694 ++++++++++++------------ package.json | 25 +- src/@types/cyclist.d.ts | 16 +- src/accumulateData.ts | 64 +- src/compose.ts | 42 +- src/concatStreams.ts | 76 +- src/filterData.ts | 10 +- src/flattenArray.ts | 64 +- src/groupData.ts | 30 +- src/index.ts | 60 +- src/mergeStreams.ts | 54 +- src/oleoduc.ts | 34 +- src/readLineByLine.ts | 38 +- src/transformData.ts | 40 +- src/transformIntoCSV.ts | 86 +- src/transformIntoJSON.ts | 94 +- src/transformStream.ts | 74 +- src/types.ts | 8 +- src/utils/Duplexer.ts | 48 +- src/utils/decorateWithAsyncIterator.ts | 6 +- src/utils/isReadableStream.ts | 18 +- src/utils/isWriteableStream.ts | 16 +- src/utils/parseArgs.ts | 46 +- src/utils/pipeStreamsTogether.ts | 26 +- src/utils/toAsyncIterator.ts | 46 +- src/utils/wrapStreams.ts | 46 +- src/writeData.ts | 214 +- src/writeToStdout.ts | 16 +- test/accumulateData-test.ts | 134 +- test/compose-test.ts | 386 ++-- test/concatStreams-test.ts | 114 +- test/filterData-tests.ts | 136 +- test/flattenArray-test.ts | 126 +- test/groupData-test.ts | 82 +- test/mergeStreams-test.ts | 54 +- test/oleoduc-test.ts | 210 +- test/parallel-test.ts | 360 ++-- test/pipeline-test.ts | 154 +- test/readLineByLine-test.ts | 156 +- test/testUtils.ts | 40 +- test/toAsyncIterator-test.ts | 70 +- test/transformData-test.ts | 168 +- test/transformIntoCSV-test.ts | 318 +-- test/transformIntoJSON-test.ts | 182 +- test/transformStream-test.ts | 166 +- test/writeData-test.ts | 184 +- test/writeToStdout-test.ts | 22 +- tsconfig.cjs.json | 4 +- tsconfig.json | 23 +- 51 files changed, 3498 insertions(+), 3591 deletions(-) create mode 100644 .prettierignore create mode 100644 .prettierrc diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..4f27a60 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,4 @@ +**/.git +**/node_modules +**/.coverage +README.md diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..ebba0f2 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,5 @@ +--- +printWidth: 120 +quoteProps: "consistent" +bracketSpacing: false +tabWidth: 4 diff --git a/package-lock.json b/package-lock.json index 9a6160e..1949a80 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,26 +13,26 @@ "parallel-transform": "1.2.0" }, "devDependencies": { - "@types/mocha": "10.0.6", + "@types/mocha": "10.0.10", "@types/node": "20.10.4", "@types/parallel-transform": "1.1.4", - "@typescript-eslint/eslint-plugin": "6.13.2", - "@typescript-eslint/parser": "6.13.2", + "@typescript-eslint/eslint-plugin": "8.19.0", + "@typescript-eslint/parser": "8.19.0", "assert": "2.1.0", - "eslint": "8.55.0", + "eslint": "8.57.1", "eslint-config-prettier": "9.1.0", - "eslint-import-resolver-typescript": "3.6.1", - "eslint-plugin-import": "2.29.0", - "eslint-plugin-mocha": "10.2.0", + "eslint-import-resolver-typescript": "3.7.0", + "eslint-plugin-import": "2.31.0", + "eslint-plugin-mocha": "10.5.0", "eslint-plugin-node": "11.1.0", - "eslint-plugin-prettier": "5.0.1", + "eslint-plugin-prettier": "5.2.1", "mocha": "11.0.1", - "nyc": "15.1.0", - "prettier": "3.1.0", + "nyc": "17.1.0", + "prettier": "3.4.2", "slow-stream": "0.0.4", "tsx": "4.19.2", "typedoc": "0.27.6", - "typedoc-plugin-markdown": "4.4.0", + "typedoc-plugin-markdown": "4.4.1", "typescript": "5.7.2" }, "engines": { @@ -49,127 +49,57 @@ } }, "node_modules/@ampproject/remapping": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz", - "integrity": "sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", + "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", "dev": true, "dependencies": { - "@jridgewell/gen-mapping": "^0.3.0", - "@jridgewell/trace-mapping": "^0.3.9" + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" }, "engines": { "node": ">=6.0.0" } }, "node_modules/@babel/code-frame": { - "version": "7.23.5", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.23.5.tgz", - "integrity": "sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA==", + "version": "7.26.2", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.26.2.tgz", + "integrity": "sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ==", "dev": true, "dependencies": { - "@babel/highlight": "^7.23.4", - "chalk": "^2.4.2" + "@babel/helper-validator-identifier": "^7.25.9", + "js-tokens": "^4.0.0", + "picocolors": "^1.0.0" }, "engines": { "node": ">=6.9.0" } }, - "node_modules/@babel/code-frame/node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/code-frame/node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/code-frame/node_modules/color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "dependencies": { - "color-name": "1.1.3" - } - }, - "node_modules/@babel/code-frame/node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", - "dev": true - }, - "node_modules/@babel/code-frame/node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "dev": true, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/@babel/code-frame/node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/code-frame/node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/@babel/compat-data": { - "version": "7.23.5", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.23.5.tgz", - "integrity": "sha512-uU27kfDRlhfKl+w1U6vp16IuvSLtjAxdArVXPa9BvLkrr7CYIsxH5adpHObeAGY/41+syctUWOZ140a2Rvkgjw==", + "version": "7.26.3", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.26.3.tgz", + "integrity": "sha512-nHIxvKPniQXpmQLb0vhY3VaFb3S0YrTAwpOWJZh1wn3oJPjJk9Asva204PsBdmAE8vpzfHudT8DB0scYvy9q0g==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/core": { - "version": "7.23.5", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.23.5.tgz", - "integrity": "sha512-Cwc2XjUrG4ilcfOw4wBAK+enbdgwAcAJCfGUItPBKR7Mjw4aEfAFYrLxeRp4jWgtNIKn3n2AlBOfwwafl+42/g==", + "version": "7.26.0", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.26.0.tgz", + "integrity": "sha512-i1SLeK+DzNnQ3LL/CswPCa/E5u4lh1k6IAEphON8F+cXt0t9euTshDru0q7/IqMa1PMPz5RnHuHscF8/ZJsStg==", "dev": true, "dependencies": { "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.23.5", - "@babel/generator": "^7.23.5", - "@babel/helper-compilation-targets": "^7.22.15", - "@babel/helper-module-transforms": "^7.23.3", - "@babel/helpers": "^7.23.5", - "@babel/parser": "^7.23.5", - "@babel/template": "^7.22.15", - "@babel/traverse": "^7.23.5", - "@babel/types": "^7.23.5", + "@babel/code-frame": "^7.26.0", + "@babel/generator": "^7.26.0", + "@babel/helper-compilation-targets": "^7.25.9", + "@babel/helper-module-transforms": "^7.26.0", + "@babel/helpers": "^7.26.0", + "@babel/parser": "^7.26.0", + "@babel/template": "^7.25.9", + "@babel/traverse": "^7.25.9", + "@babel/types": "^7.26.0", "convert-source-map": "^2.0.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", @@ -200,29 +130,30 @@ } }, "node_modules/@babel/generator": { - "version": "7.23.5", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.5.tgz", - "integrity": "sha512-BPssCHrBD+0YrxviOa3QzpqwhNIXKEtOa2jQrm4FlmkC2apYgRnQcmPWiGZDlGxiNtltnUFolMe8497Esry+jA==", + "version": "7.26.3", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.26.3.tgz", + "integrity": "sha512-6FF/urZvD0sTeO7k6/B15pMLC4CHUv1426lzr3N01aHJTl046uCAh9LXW/fzeXXjPNCJ6iABW5XaWOsIZB93aQ==", "dev": true, "dependencies": { - "@babel/types": "^7.23.5", - "@jridgewell/gen-mapping": "^0.3.2", - "@jridgewell/trace-mapping": "^0.3.17", - "jsesc": "^2.5.1" + "@babel/parser": "^7.26.3", + "@babel/types": "^7.26.3", + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.25", + "jsesc": "^3.0.2" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-compilation-targets": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.15.tgz", - "integrity": "sha512-y6EEzULok0Qvz8yyLkCvVX+02ic+By2UdOhylwUOvOn9dvYc9mKICJuuU1n1XBI02YWsNsnrY1kc6DVbjcXbtw==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.25.9.tgz", + "integrity": "sha512-j9Db8Suy6yV/VHa4qzrj9yZfZxhLWQdVnRlXxmKLYlhWUVB1sB2G5sxuWYXk/whHD9iW76PmNzxZ4UCnTQTVEQ==", "dev": true, "dependencies": { - "@babel/compat-data": "^7.22.9", - "@babel/helper-validator-option": "^7.22.15", - "browserslist": "^4.21.9", + "@babel/compat-data": "^7.25.9", + "@babel/helper-validator-option": "^7.25.9", + "browserslist": "^4.24.0", "lru-cache": "^5.1.1", "semver": "^6.3.1" }, @@ -239,63 +170,28 @@ "semver": "bin/semver.js" } }, - "node_modules/@babel/helper-environment-visitor": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz", - "integrity": "sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-function-name": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz", - "integrity": "sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==", - "dev": true, - "dependencies": { - "@babel/template": "^7.22.15", - "@babel/types": "^7.23.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-hoist-variables": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz", - "integrity": "sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==", - "dev": true, - "dependencies": { - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, "node_modules/@babel/helper-module-imports": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.22.15.tgz", - "integrity": "sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.25.9.tgz", + "integrity": "sha512-tnUA4RsrmflIM6W6RFTLFSXITtl0wKjgpnLgXyowocVPrbYrLUXSBXDgTs8BlbmIzIdlBySRQjINYs2BAkiLtw==", "dev": true, "dependencies": { - "@babel/types": "^7.22.15" + "@babel/traverse": "^7.25.9", + "@babel/types": "^7.25.9" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-module-transforms": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.23.3.tgz", - "integrity": "sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==", + "version": "7.26.0", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.26.0.tgz", + "integrity": "sha512-xO+xu6B5K2czEnQye6BHA7DolFFmS3LB7stHZFaOLb1pAwO1HWLS8fXA+eh0A2yIvltPVmx3eNNDBJA2SLHXFw==", "dev": true, "dependencies": { - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-module-imports": "^7.22.15", - "@babel/helper-simple-access": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.22.6", - "@babel/helper-validator-identifier": "^7.22.20" + "@babel/helper-module-imports": "^7.25.9", + "@babel/helper-validator-identifier": "^7.25.9", + "@babel/traverse": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -304,161 +200,54 @@ "@babel/core": "^7.0.0" } }, - "node_modules/@babel/helper-simple-access": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.22.5.tgz", - "integrity": "sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==", - "dev": true, - "dependencies": { - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-split-export-declaration": { - "version": "7.22.6", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz", - "integrity": "sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==", - "dev": true, - "dependencies": { - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, "node_modules/@babel/helper-string-parser": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.23.4.tgz", - "integrity": "sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.25.9.tgz", + "integrity": "sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-identifier": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz", - "integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.9.tgz", + "integrity": "sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-option": { - "version": "7.23.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.23.5.tgz", - "integrity": "sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.25.9.tgz", + "integrity": "sha512-e/zv1co8pp55dNdEcCynfj9X7nyUKUXoUEwfXqaZt0omVOmDe9oOTdKStH4GmAw6zxMFs50ZayuMfHDKlO7Tfw==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helpers": { - "version": "7.23.5", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.23.5.tgz", - "integrity": "sha512-oO7us8FzTEsG3U6ag9MfdF1iA/7Z6dz+MtFhifZk8C8o453rGJFFWUP1t+ULM9TUIAzC9uxXEiXjOiVMyd7QPg==", - "dev": true, - "dependencies": { - "@babel/template": "^7.22.15", - "@babel/traverse": "^7.23.5", - "@babel/types": "^7.23.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/highlight": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.23.4.tgz", - "integrity": "sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A==", + "version": "7.26.0", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.26.0.tgz", + "integrity": "sha512-tbhNuIxNcVb21pInl3ZSjksLCvgdZy9KwJ8brv993QtIVKJBBkYXz4q4ZbAv31GdnC+R90np23L5FbEBlthAEw==", "dev": true, "dependencies": { - "@babel/helper-validator-identifier": "^7.22.20", - "chalk": "^2.4.2", - "js-tokens": "^4.0.0" + "@babel/template": "^7.25.9", + "@babel/types": "^7.26.0" }, "engines": { "node": ">=6.9.0" } }, - "node_modules/@babel/highlight/node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/highlight/node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/highlight/node_modules/color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "dependencies": { - "color-name": "1.1.3" - } - }, - "node_modules/@babel/highlight/node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", - "dev": true - }, - "node_modules/@babel/highlight/node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "dev": true, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/@babel/highlight/node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/highlight/node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "node_modules/@babel/parser": { + "version": "7.26.3", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.26.3.tgz", + "integrity": "sha512-WJ/CvmY8Mea8iDXo6a7RK2wbmJITT5fN3BEkRuFlxVyNx8jOKIIhmC4fSkTcPcf8JyavbBwIe6OpiCOBXt/IcA==", "dev": true, "dependencies": { - "has-flag": "^3.0.0" + "@babel/types": "^7.26.3" }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/parser": { - "version": "7.23.5", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.5.tgz", - "integrity": "sha512-hOOqoiNXrmGdFbhgCzu6GiURxUgM27Xwd/aPuu8RfHEZPBzL1Z54okAHAQjXfcQNwvrlkAmAp4SlRTZ45vlthQ==", - "dev": true, "bin": { "parser": "bin/babel-parser.js" }, @@ -467,34 +256,31 @@ } }, "node_modules/@babel/template": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.15.tgz", - "integrity": "sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.25.9.tgz", + "integrity": "sha512-9DGttpmPvIxBb/2uwpVo3dqJ+O6RooAFOS+lB+xDqoE2PVCE8nfoHMdZLpfCQRLwvohzXISPZcgxt80xLfsuwg==", "dev": true, "dependencies": { - "@babel/code-frame": "^7.22.13", - "@babel/parser": "^7.22.15", - "@babel/types": "^7.22.15" + "@babel/code-frame": "^7.25.9", + "@babel/parser": "^7.25.9", + "@babel/types": "^7.25.9" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/traverse": { - "version": "7.23.5", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.5.tgz", - "integrity": "sha512-czx7Xy5a6sapWWRx61m1Ke1Ra4vczu1mCTtJam5zRTBOonfdJ+S/B6HYmGYu3fJtr8GGET3si6IhgWVBhJ/m8w==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.23.5", - "@babel/generator": "^7.23.5", - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-function-name": "^7.23.0", - "@babel/helper-hoist-variables": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.22.6", - "@babel/parser": "^7.23.5", - "@babel/types": "^7.23.5", - "debug": "^4.1.0", + "version": "7.26.4", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.26.4.tgz", + "integrity": "sha512-fH+b7Y4p3yqvApJALCPJcwb0/XaOSgtK4pzV6WVjPR5GLFQBRI7pfoX2V2iM48NXvX07NUxxm1Vw98YjqTcU5w==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.26.2", + "@babel/generator": "^7.26.3", + "@babel/parser": "^7.26.3", + "@babel/template": "^7.25.9", + "@babel/types": "^7.26.3", + "debug": "^4.3.1", "globals": "^11.1.0" }, "engines": { @@ -511,14 +297,13 @@ } }, "node_modules/@babel/types": { - "version": "7.23.5", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.5.tgz", - "integrity": "sha512-ON5kSOJwVO6xXVRTvOI0eOnWe7VdUcIpsovGo9U/Br4Ie4UVFQTboO2cYnDhAGU6Fp+UxSiT+pMft0SMHfuq6w==", + "version": "7.26.3", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.26.3.tgz", + "integrity": "sha512-vN5p+1kl59GVKMvTHt55NzzmYVxprfJD+ql7U9NFIfKCBkYE55LYtS+WtPlaYOyzydrKI8Nezd+aZextrd+FMA==", "dev": true, "dependencies": { - "@babel/helper-string-parser": "^7.23.4", - "@babel/helper-validator-identifier": "^7.22.20", - "to-fast-properties": "^2.0.0" + "@babel/helper-string-parser": "^7.25.9", + "@babel/helper-validator-identifier": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -956,9 +741,9 @@ } }, "node_modules/@eslint/js": { - "version": "8.55.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.55.0.tgz", - "integrity": "sha512-qQfo2mxH5yVom1kacMtZZJFVdW+E70mqHMJvVg6WTLo+VBuQJ4TojZlfWBjK0ve5BdEeNAVxOsl/nvNMpJOaJA==", + "version": "8.57.1", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.1.tgz", + "integrity": "sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==", "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -976,13 +761,14 @@ } }, "node_modules/@humanwhocodes/config-array": { - "version": "0.11.13", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.13.tgz", - "integrity": "sha512-JSBDMiDKSzQVngfRjOdFXgFfklaXI4K9nLF49Auh21lmBWRLIK3+xTErTWD4KU54pb6coM6ESE7Awz/FNU3zgQ==", + "version": "0.13.0", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.13.0.tgz", + "integrity": "sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==", + "deprecated": "Use @eslint/config-array instead", "dev": true, "dependencies": { - "@humanwhocodes/object-schema": "^2.0.1", - "debug": "^4.1.1", + "@humanwhocodes/object-schema": "^2.0.3", + "debug": "^4.3.1", "minimatch": "^3.0.5" }, "engines": { @@ -1003,9 +789,10 @@ } }, "node_modules/@humanwhocodes/object-schema": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.1.tgz", - "integrity": "sha512-dvuCeX5fC9dXgJn9t+X5atfmgQAzUOWqS1254Gh0m6i8wKd10ebXkfNKiRK+1GWi/yTvvLDHpoxLr0xxxeslWw==", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz", + "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==", + "deprecated": "Use @eslint/object-schema instead", "dev": true }, "node_modules/@isaacs/cliui": { @@ -1213,47 +1000,47 @@ } }, "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", - "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", + "version": "0.3.8", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.8.tgz", + "integrity": "sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==", "dev": true, "dependencies": { - "@jridgewell/set-array": "^1.0.1", + "@jridgewell/set-array": "^1.2.1", "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" + "@jridgewell/trace-mapping": "^0.3.24" }, "engines": { "node": ">=6.0.0" } }, "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz", - "integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", "dev": true, "engines": { "node": ">=6.0.0" } }, "node_modules/@jridgewell/set-array": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", - "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", + "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", "dev": true, "engines": { "node": ">=6.0.0" } }, "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.4.15", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", - "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", + "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", "dev": true }, "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.20", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.20.tgz", - "integrity": "sha512-R8LcPeWZol2zR8mmH3JeKQ6QRCFb7XgUhV9ZlGhHLGyg4wpPiPZNQOOWhFZhxKw8u//yTbNGI42Bx/3paXEQ+Q==", + "version": "0.3.25", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", + "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", "dev": true, "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", @@ -1295,6 +1082,15 @@ "node": ">= 8" } }, + "node_modules/@nolyfill/is-core-module": { + "version": "1.0.39", + "resolved": "https://registry.npmjs.org/@nolyfill/is-core-module/-/is-core-module-1.0.39.tgz", + "integrity": "sha512-nn5ozdjYQpUCZlWGuxcJY/KpxkWQs4DcbMCmKojjyrYDEAGy4Ce19NN4v5MduafTwJlbKc99UA8YhSVqq9yPZA==", + "dev": true, + "engines": { + "node": ">=12.4.0" + } + }, "node_modules/@pkgjs/parseargs": { "version": "0.11.0", "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", @@ -1305,19 +1101,11 @@ "node": ">=14" } }, - "node_modules/@pkgr/utils": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/@pkgr/utils/-/utils-2.4.2.tgz", - "integrity": "sha512-POgTXhjrTfbTV63DiFXav4lBHiICLKKwDeaKn9Nphwj7WH6m0hMMCaJkMyRWjgtPFyRKRVoMXXjczsTQRDEhYw==", + "node_modules/@pkgr/core": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@pkgr/core/-/core-0.1.1.tgz", + "integrity": "sha512-cq8o4cWH0ibXh9VGi5P20Tu9XF/0fFXl9EUinr9QfTM7a7p0oTA4iJRCQWppXR1Pg8dSM0UCItCkPwsk9qWWYA==", "dev": true, - "dependencies": { - "cross-spawn": "^7.0.3", - "fast-glob": "^3.3.0", - "is-glob": "^4.0.3", - "open": "^9.1.0", - "picocolors": "^1.0.0", - "tslib": "^2.6.0" - }, "engines": { "node": "^12.20.0 || ^14.18.0 || >=16.0.0" }, @@ -1325,6 +1113,12 @@ "url": "https://opencollective.com/unts" } }, + "node_modules/@rtsao/scc": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@rtsao/scc/-/scc-1.1.0.tgz", + "integrity": "sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g==", + "dev": true + }, "node_modules/@shikijs/engine-oniguruma": { "version": "1.24.4", "resolved": "https://registry.npmjs.org/@shikijs/engine-oniguruma/-/engine-oniguruma-1.24.4.tgz", @@ -1360,12 +1154,6 @@ "@types/unist": "*" } }, - "node_modules/@types/json-schema": { - "version": "7.0.15", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", - "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", - "dev": true - }, "node_modules/@types/json5": { "version": "0.0.29", "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", @@ -1373,9 +1161,9 @@ "dev": true }, "node_modules/@types/mocha": { - "version": "10.0.6", - "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-10.0.6.tgz", - "integrity": "sha512-dJvrYWxP/UcXm36Qn36fxhUKu8A/xMRXVT2cliFF1Z7UA9liG5Psj3ezNSZw+5puH2czDXRLcXQxf8JbJt0ejg==", + "version": "10.0.10", + "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-10.0.10.tgz", + "integrity": "sha512-xPyYSz1cMPnJQhl0CLMH68j3gprKZaTjG3s5Vi+fDgx+uhG9NOXwbVt52eFS8ECyXhyKcjDLCBEqBExKuiZb7Q==", "dev": true }, "node_modules/@types/node": { @@ -1396,12 +1184,6 @@ "@types/node": "*" } }, - "node_modules/@types/semver": { - "version": "7.5.6", - "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.6.tgz", - "integrity": "sha512-dn1l8LaMea/IjDoHNd9J52uBbInB796CDffS6VdIxvqYCPSG0V0DzHp76GpaWnlhg88uYyPbXCDIowa86ybd5A==", - "dev": true - }, "node_modules/@types/unist": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz", @@ -1409,79 +1191,69 @@ "dev": true }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "6.13.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.13.2.tgz", - "integrity": "sha512-3+9OGAWHhk4O1LlcwLBONbdXsAhLjyCFogJY/cWy2lxdVJ2JrcTF2pTGMaLl2AE7U1l31n8Py4a8bx5DLf/0dQ==", + "version": "8.19.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.19.0.tgz", + "integrity": "sha512-NggSaEZCdSrFddbctrVjkVZvFC6KGfKfNK0CU7mNK/iKHGKbzT4Wmgm08dKpcZECBu9f5FypndoMyRHkdqfT1Q==", "dev": true, "dependencies": { - "@eslint-community/regexpp": "^4.5.1", - "@typescript-eslint/scope-manager": "6.13.2", - "@typescript-eslint/type-utils": "6.13.2", - "@typescript-eslint/utils": "6.13.2", - "@typescript-eslint/visitor-keys": "6.13.2", - "debug": "^4.3.4", + "@eslint-community/regexpp": "^4.10.0", + "@typescript-eslint/scope-manager": "8.19.0", + "@typescript-eslint/type-utils": "8.19.0", + "@typescript-eslint/utils": "8.19.0", + "@typescript-eslint/visitor-keys": "8.19.0", "graphemer": "^1.4.0", - "ignore": "^5.2.4", + "ignore": "^5.3.1", "natural-compare": "^1.4.0", - "semver": "^7.5.4", - "ts-api-utils": "^1.0.1" + "ts-api-utils": "^1.3.0" }, "engines": { - "node": "^16.0.0 || >=18.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "@typescript-eslint/parser": "^6.0.0 || ^6.0.0-alpha", - "eslint": "^7.0.0 || ^8.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "@typescript-eslint/parser": "^8.0.0 || ^8.0.0-alpha.0", + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.8.0" } }, "node_modules/@typescript-eslint/parser": { - "version": "6.13.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.13.2.tgz", - "integrity": "sha512-MUkcC+7Wt/QOGeVlM8aGGJZy1XV5YKjTpq9jK6r6/iLsGXhBVaGP5N0UYvFsu9BFlSpwY9kMretzdBH01rkRXg==", + "version": "8.19.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.19.0.tgz", + "integrity": "sha512-6M8taKyOETY1TKHp0x8ndycipTVgmp4xtg5QpEZzXxDhNvvHOJi5rLRkLr8SK3jTgD5l4fTlvBiRdfsuWydxBw==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "6.13.2", - "@typescript-eslint/types": "6.13.2", - "@typescript-eslint/typescript-estree": "6.13.2", - "@typescript-eslint/visitor-keys": "6.13.2", + "@typescript-eslint/scope-manager": "8.19.0", + "@typescript-eslint/types": "8.19.0", + "@typescript-eslint/typescript-estree": "8.19.0", + "@typescript-eslint/visitor-keys": "8.19.0", "debug": "^4.3.4" }, "engines": { - "node": "^16.0.0 || >=18.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "^7.0.0 || ^8.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.8.0" } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "6.13.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.13.2.tgz", - "integrity": "sha512-CXQA0xo7z6x13FeDYCgBkjWzNqzBn8RXaE3QVQVIUm74fWJLkJkaHmHdKStrxQllGh6Q4eUGyNpMe0b1hMkXFA==", + "version": "8.19.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.19.0.tgz", + "integrity": "sha512-hkoJiKQS3GQ13TSMEiuNmSCvhz7ujyqD1x3ShbaETATHrck+9RaDdUbt+osXaUuns9OFwrDTTrjtwsU8gJyyRA==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.13.2", - "@typescript-eslint/visitor-keys": "6.13.2" + "@typescript-eslint/types": "8.19.0", + "@typescript-eslint/visitor-keys": "8.19.0" }, "engines": { - "node": "^16.0.0 || >=18.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "type": "opencollective", @@ -1489,39 +1261,35 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "6.13.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.13.2.tgz", - "integrity": "sha512-Qr6ssS1GFongzH2qfnWKkAQmMUyZSyOr0W54nZNU1MDfo+U4Mv3XveeLZzadc/yq8iYhQZHYT+eoXJqnACM1tw==", + "version": "8.19.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.19.0.tgz", + "integrity": "sha512-TZs0I0OSbd5Aza4qAMpp1cdCYVnER94IziudE3JU328YUHgWu9gwiwhag+fuLeJ2LkWLXI+F/182TbG+JaBdTg==", "dev": true, "dependencies": { - "@typescript-eslint/typescript-estree": "6.13.2", - "@typescript-eslint/utils": "6.13.2", + "@typescript-eslint/typescript-estree": "8.19.0", + "@typescript-eslint/utils": "8.19.0", "debug": "^4.3.4", - "ts-api-utils": "^1.0.1" + "ts-api-utils": "^1.3.0" }, "engines": { - "node": "^16.0.0 || >=18.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "^7.0.0 || ^8.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.8.0" } }, "node_modules/@typescript-eslint/types": { - "version": "6.13.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.13.2.tgz", - "integrity": "sha512-7sxbQ+EMRubQc3wTfTsycgYpSujyVbI1xw+3UMRUcrhSy+pN09y/lWzeKDbvhoqcRbHdc+APLs/PWYi/cisLPg==", + "version": "8.19.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.19.0.tgz", + "integrity": "sha512-8XQ4Ss7G9WX8oaYvD4OOLCjIQYgRQxO+qCiR2V2s2GxI9AUpo7riNwo6jDhKtTcaJjT8PY54j2Yb33kWtSJsmA==", "dev": true, "engines": { - "node": "^16.0.0 || >=18.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "type": "opencollective", @@ -1529,74 +1297,107 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "6.13.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.13.2.tgz", - "integrity": "sha512-SuD8YLQv6WHnOEtKv8D6HZUzOub855cfPnPMKvdM/Bh1plv1f7Q/0iFUDLKKlxHcEstQnaUU4QZskgQq74t+3w==", + "version": "8.19.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.19.0.tgz", + "integrity": "sha512-WW9PpDaLIFW9LCbucMSdYUuGeFUz1OkWYS/5fwZwTA+l2RwlWFdJvReQqMUMBw4yJWJOfqd7An9uwut2Oj8sLw==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.13.2", - "@typescript-eslint/visitor-keys": "6.13.2", + "@typescript-eslint/types": "8.19.0", + "@typescript-eslint/visitor-keys": "8.19.0", "debug": "^4.3.4", - "globby": "^11.1.0", + "fast-glob": "^3.3.2", "is-glob": "^4.0.3", - "semver": "^7.5.4", - "ts-api-utils": "^1.0.1" + "minimatch": "^9.0.4", + "semver": "^7.6.0", + "ts-api-utils": "^1.3.0" }, "engines": { - "node": "^16.0.0 || >=18.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "peerDependencies": { + "typescript": ">=4.8.4 <5.8.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, "node_modules/@typescript-eslint/utils": { - "version": "6.13.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.13.2.tgz", - "integrity": "sha512-b9Ptq4eAZUym4idijCRzl61oPCwwREcfDI8xGk751Vhzig5fFZR9CyzDz4Sp/nxSLBYxUPyh4QdIDqWykFhNmQ==", + "version": "8.19.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.19.0.tgz", + "integrity": "sha512-PTBG+0oEMPH9jCZlfg07LCB2nYI0I317yyvXGfxnvGvw4SHIOuRnQ3kadyyXY6tGdChusIHIbM5zfIbp4M6tCg==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.4.0", - "@types/json-schema": "^7.0.12", - "@types/semver": "^7.5.0", - "@typescript-eslint/scope-manager": "6.13.2", - "@typescript-eslint/types": "6.13.2", - "@typescript-eslint/typescript-estree": "6.13.2", - "semver": "^7.5.4" + "@typescript-eslint/scope-manager": "8.19.0", + "@typescript-eslint/types": "8.19.0", + "@typescript-eslint/typescript-estree": "8.19.0" }, "engines": { - "node": "^16.0.0 || >=18.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "^7.0.0 || ^8.0.0" + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.8.0" } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "6.13.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.13.2.tgz", - "integrity": "sha512-OGznFs0eAQXJsp+xSd6k/O1UbFi/K/L7WjqeRoFE7vadjAF9y0uppXhYNQNEqygjou782maGClOoZwPqF0Drlw==", + "version": "8.19.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.19.0.tgz", + "integrity": "sha512-mCFtBbFBJDCNCWUl5y6sZSCHXw1DEFEk3c/M3nRK2a4XUB8StGFtmcEMizdjKuBzB6e/smJAAWYug3VrdLMr1w==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.13.2", - "eslint-visitor-keys": "^3.4.1" + "@typescript-eslint/types": "8.19.0", + "eslint-visitor-keys": "^4.2.0" }, "engines": { - "node": "^16.0.0 || >=18.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" } }, + "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz", + "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==", + "dev": true, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, "node_modules/@ungap/structured-clone": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", @@ -1724,28 +1525,32 @@ "dev": true }, "node_modules/array-buffer-byte-length": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz", - "integrity": "sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.2.tgz", + "integrity": "sha512-LHE+8BuR7RYGDKvnrmcuSq3tDcKv9OFEXQt/HpbZhY7V6h0zlUXutnAD82GiFx9rdieCMjkvtcsPqBwgUl1Iiw==", "dev": true, "dependencies": { - "call-bind": "^1.0.2", - "is-array-buffer": "^3.0.1" + "call-bound": "^1.0.3", + "is-array-buffer": "^3.0.5" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/array-includes": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.7.tgz", - "integrity": "sha512-dlcsNBIiWhPkHdOEEKnehA+RNUWDc4UqFtnIXU4uuYDPtA4LDkr7qip2p0VvFAEXNDr0yWZ9PJyIRiGjRLQzwQ==", + "version": "3.1.8", + "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.8.tgz", + "integrity": "sha512-itaWrbYbqpGXkGhZPGUulwnhVf5Hpy1xiCFsGqyIGglbBxmG5vSjxQen3/WGOjPpNEv1RtBLKxbmVXm8HpJStQ==", "dev": true, "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1", - "get-intrinsic": "^1.2.1", + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.2", + "es-object-atoms": "^1.0.0", + "get-intrinsic": "^1.2.4", "is-string": "^1.0.7" }, "engines": { @@ -1755,26 +1560,18 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/array-union": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", - "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/array.prototype.findlastindex": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.3.tgz", - "integrity": "sha512-LzLoiOMAxvy+Gd3BAq3B7VeIgPdo+Q8hthvKtXybMvRV0jrXfJM/t8mw7nNlpEcVlVUnCnM2KSX4XU5HmpodOA==", + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.5.tgz", + "integrity": "sha512-zfETvRFA8o7EiNn++N5f/kaCw221hrpGsDmcpndVupkPzEc1Wuf3VgC0qby1BbHs7f5DVYjgtEU2LLh5bqeGfQ==", "dev": true, "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1", - "es-shim-unscopables": "^1.0.0", - "get-intrinsic": "^1.2.1" + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.2", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0", + "es-shim-unscopables": "^1.0.2" }, "engines": { "node": ">= 0.4" @@ -1820,18 +1617,18 @@ } }, "node_modules/arraybuffer.prototype.slice": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.2.tgz", - "integrity": "sha512-yMBKppFur/fbHu9/6USUe03bZ4knMYiwFBcyiaXB8Go0qNehwX6inYPzK9U0NeQvGxKthcmHcaR8P5MStSRBAw==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.4.tgz", + "integrity": "sha512-BNoCY6SXXPQ7gF2opIP4GBE+Xw7U+pHMYKuzjgCN3GwiaIR09UUeKfheyIry77QtrCBlC0KK0q5/TER/tYh3PQ==", "dev": true, "dependencies": { - "array-buffer-byte-length": "^1.0.0", - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1", - "get-intrinsic": "^1.2.1", - "is-array-buffer": "^3.0.2", - "is-shared-array-buffer": "^1.0.2" + "array-buffer-byte-length": "^1.0.1", + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.5", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "is-array-buffer": "^3.0.4" }, "engines": { "node": ">= 0.4" @@ -1854,10 +1651,13 @@ } }, "node_modules/available-typed-arrays": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", - "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==", + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", + "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", "dev": true, + "dependencies": { + "possible-typed-array-names": "^1.0.0" + }, "engines": { "node": ">= 0.4" }, @@ -1871,15 +1671,6 @@ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", "dev": true }, - "node_modules/big-integer": { - "version": "1.6.52", - "resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.52.tgz", - "integrity": "sha512-QxD8cf2eVqJOOz63z6JIN9BzvVs/dlySa5HGSBH5xtR8dPteIRQnBxxKqkNTiT6jbDTF6jAfrd4oMcND9RGbQg==", - "dev": true, - "engines": { - "node": ">=0.6" - } - }, "node_modules/binary-extensions": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", @@ -1892,18 +1683,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/bplist-parser": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.2.0.tgz", - "integrity": "sha512-z0M+byMThzQmD9NILRniCUXYsYpjwnlO8N5uCFaCqIOpqRsJCrQL9NK3JsD67CN5a08nF5oIL2bD6loTdHOuKw==", - "dev": true, - "dependencies": { - "big-integer": "^1.6.44" - }, - "engines": { - "node": ">= 5.10.0" - } - }, "node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", @@ -1933,9 +1712,9 @@ "dev": true }, "node_modules/browserslist": { - "version": "4.22.2", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.22.2.tgz", - "integrity": "sha512-0UgcrvQmBDvZHFGdYUehrCNIazki7/lUP3kkoi/r3YB2amZbFM9J43ZRkJTXBUZK4gmx56+Sqk9+Vs9mwZx9+A==", + "version": "4.24.3", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.24.3.tgz", + "integrity": "sha512-1CPmv8iobE2fyRMV97dAcMVegvvWKxmq94hkLiAkUGwKVTyDLw33K+ZxiFrREKmmps4rIw6grcCFCnTMSZ/YiA==", "dev": true, "funding": [ { @@ -1952,10 +1731,10 @@ } ], "dependencies": { - "caniuse-lite": "^1.0.30001565", - "electron-to-chromium": "^1.4.601", - "node-releases": "^2.0.14", - "update-browserslist-db": "^1.0.13" + "caniuse-lite": "^1.0.30001688", + "electron-to-chromium": "^1.5.73", + "node-releases": "^2.0.19", + "update-browserslist-db": "^1.1.1" }, "bin": { "browserslist": "cli.js" @@ -1964,45 +1743,63 @@ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" } }, - "node_modules/bundle-name": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/bundle-name/-/bundle-name-3.0.0.tgz", - "integrity": "sha512-PKA4BeSvBpQKQ8iPOGCSiell+N8P+Tf1DlwqmYhpe2gAhKPHn8EYOxVT+ShuGmhg8lN8XiSlS80yiExKXrURlw==", + "node_modules/caching-transform": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/caching-transform/-/caching-transform-4.0.0.tgz", + "integrity": "sha512-kpqOvwXnjjN44D89K5ccQC+RUrsy7jB/XLlRrx0D7/2HNcTPqzsb6XgYoErwko6QsV184CA2YgS1fxDiiDZMWA==", "dev": true, "dependencies": { - "run-applescript": "^5.0.0" + "hasha": "^5.0.0", + "make-dir": "^3.0.0", + "package-hash": "^4.0.0", + "write-file-atomic": "^3.0.0" }, "engines": { - "node": ">=12" + "node": ">=8" + } + }, + "node_modules/call-bind": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.8.tgz", + "integrity": "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==", + "dev": true, + "dependencies": { + "call-bind-apply-helpers": "^1.0.0", + "es-define-property": "^1.0.0", + "get-intrinsic": "^1.2.4", + "set-function-length": "^1.2.2" + }, + "engines": { + "node": ">= 0.4" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/caching-transform": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/caching-transform/-/caching-transform-4.0.0.tgz", - "integrity": "sha512-kpqOvwXnjjN44D89K5ccQC+RUrsy7jB/XLlRrx0D7/2HNcTPqzsb6XgYoErwko6QsV184CA2YgS1fxDiiDZMWA==", + "node_modules/call-bind-apply-helpers": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.1.tgz", + "integrity": "sha512-BhYE+WDaywFg2TBWYNXAE+8B1ATnThNBqXHP5nQu0jWJdVvY2hvkpyB3qOmtmDePiS5/BDQ8wASEWGMWRG148g==", "dev": true, "dependencies": { - "hasha": "^5.0.0", - "make-dir": "^3.0.0", - "package-hash": "^4.0.0", - "write-file-atomic": "^3.0.0" + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" }, "engines": { - "node": ">=8" + "node": ">= 0.4" } }, - "node_modules/call-bind": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.5.tgz", - "integrity": "sha512-C3nQxfFZxFRVoJoGKKI8y3MOEo129NQ+FgQ08iye+Mk4zNZZGdjfs06bVTr+DBSlA66Q2VEcMki/cUCP4SercQ==", + "node_modules/call-bound": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.3.tgz", + "integrity": "sha512-YTd+6wGlNlPxSuri7Y6X8tY2dmm12UMH66RpKMhiX6rsk5wXXnYgbUcOt8kiS31/AjfoTOvCsE+w8nZQLQnzHA==", "dev": true, "dependencies": { - "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.1", - "set-function-length": "^1.1.1" + "call-bind-apply-helpers": "^1.0.1", + "get-intrinsic": "^1.2.6" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -2027,9 +1824,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001566", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001566.tgz", - "integrity": "sha512-ggIhCsTxmITBAMmK8yZjEhCO5/47jKXPu6Dha/wuCS4JePVL+3uiDEBuhu2aIoT+bqTOR8L76Ip1ARL9xYsEJA==", + "version": "1.0.30001690", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001690.tgz", + "integrity": "sha512-5ExiE3qQN6oF8Clf8ifIDcMRCRE/dMGcETG/XGMD8/XiXm6HXQgQTh1yZYLXXpSOsEUlJm1Xr7kGULZTuGtP/w==", "dev": true, "funding": [ { @@ -2178,6 +1975,57 @@ "resolved": "https://registry.npmjs.org/cyclist/-/cyclist-1.0.2.tgz", "integrity": "sha512-0sVXIohTfLqVIW3kb/0n6IiWF3Ifj5nm2XaSrLq2DI6fKIGa2fYAZdk917rUneaeLVpYfFcyXE2ft0fe3remsA==" }, + "node_modules/data-view-buffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/data-view-buffer/-/data-view-buffer-1.0.2.tgz", + "integrity": "sha512-EmKO5V3OLXh1rtK2wgXRansaK1/mtVdTUEiEI0W8RkvgT05kfxaH29PliLnpLP73yYO6142Q72QNa8Wx/A5CqQ==", + "dev": true, + "dependencies": { + "call-bound": "^1.0.3", + "es-errors": "^1.3.0", + "is-data-view": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/data-view-byte-length": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/data-view-byte-length/-/data-view-byte-length-1.0.2.tgz", + "integrity": "sha512-tuhGbE6CfTM9+5ANGf+oQb72Ky/0+s3xKUpHvShfiz2RxMFgFPjsXuRLBVMtvMs15awe45SRb83D6wH4ew6wlQ==", + "dev": true, + "dependencies": { + "call-bound": "^1.0.3", + "es-errors": "^1.3.0", + "is-data-view": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/inspect-js" + } + }, + "node_modules/data-view-byte-offset": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/data-view-byte-offset/-/data-view-byte-offset-1.0.1.tgz", + "integrity": "sha512-BS8PfmtDGnrgYdOonGZQdLZslWIeCGFP9tpan0hi1Co2Zr2NKADsvGYA8XxuG/4UWgJ6Cjtv+YJnB6MM69QGlQ==", + "dev": true, + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "is-data-view": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/debug": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", @@ -2210,40 +2058,6 @@ "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", "dev": true }, - "node_modules/default-browser": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/default-browser/-/default-browser-4.0.0.tgz", - "integrity": "sha512-wX5pXO1+BrhMkSbROFsyxUm0i/cJEScyNhA4PPxc41ICuv05ZZB/MX28s8aZx6xjmatvebIapF6hLEKEcpneUA==", - "dev": true, - "dependencies": { - "bundle-name": "^3.0.0", - "default-browser-id": "^3.0.0", - "execa": "^7.1.1", - "titleize": "^3.0.0" - }, - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/default-browser-id": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/default-browser-id/-/default-browser-id-3.0.0.tgz", - "integrity": "sha512-OZ1y3y0SqSICtE8DE4S8YOE9UZOJ8wO16fKWVP5J1Qz42kV9jcnMVFrEE/noXb/ss3Q4pZIH79kxofzyNNtUNA==", - "dev": true, - "dependencies": { - "bplist-parser": "^0.2.0", - "untildify": "^4.0.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/default-require-extensions": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/default-require-extensions/-/default-require-extensions-3.0.1.tgz", @@ -2260,29 +2074,20 @@ } }, "node_modules/define-data-property": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.1.tgz", - "integrity": "sha512-E7uGkTzkk1d0ByLeSc6ZsFS79Axg+m1P/VsgYsxHgiuc3tFSj+MjMIwe90FC4lOAZzNBdY7kkO2P2wKdsQ1vgQ==", + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", + "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", "dev": true, "dependencies": { - "get-intrinsic": "^1.2.1", - "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.0" + "es-define-property": "^1.0.0", + "es-errors": "^1.3.0", + "gopd": "^1.0.1" }, "engines": { "node": ">= 0.4" - } - }, - "node_modules/define-lazy-prop": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-3.0.0.tgz", - "integrity": "sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==", - "dev": true, - "engines": { - "node": ">=12" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sponsors/ljharb" } }, "node_modules/define-properties": { @@ -2311,18 +2116,6 @@ "node": ">=0.3.1" } }, - "node_modules/dir-glob": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", - "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", - "dev": true, - "dependencies": { - "path-type": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/doctrine": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", @@ -2335,6 +2128,20 @@ "node": ">=6.0.0" } }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "dev": true, + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/eastasianwidth": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", @@ -2342,9 +2149,9 @@ "dev": true }, "node_modules/electron-to-chromium": { - "version": "1.4.609", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.609.tgz", - "integrity": "sha512-ihiCP7PJmjoGNuLpl7TjNA8pCQWu09vGyjlPYw1Rqww4gvNuCcmvl+44G+2QyJ6S2K4o+wbTS++Xz0YN8Q9ERw==", + "version": "1.5.76", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.76.tgz", + "integrity": "sha512-CjVQyG7n7Sr+eBXE86HIulnL5N8xZY1sgmOPGuq/F0Rr0FJq63lg0kEtOIDfZBk44FnDLf6FUJ+dsJcuiUDdDQ==", "dev": true }, "node_modules/emoji-regex": { @@ -2379,50 +2186,62 @@ } }, "node_modules/es-abstract": { - "version": "1.22.3", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.22.3.tgz", - "integrity": "sha512-eiiY8HQeYfYH2Con2berK+To6GrK2RxbPawDkGq4UiCQQfZHb6wX9qQqkbpPqaxQFcl8d9QzZqo0tGE0VcrdwA==", - "dev": true, - "dependencies": { - "array-buffer-byte-length": "^1.0.0", - "arraybuffer.prototype.slice": "^1.0.2", - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.5", - "es-set-tostringtag": "^2.0.1", - "es-to-primitive": "^1.2.1", - "function.prototype.name": "^1.1.6", - "get-intrinsic": "^1.2.2", - "get-symbol-description": "^1.0.0", - "globalthis": "^1.0.3", - "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.0", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3", - "hasown": "^2.0.0", - "internal-slot": "^1.0.5", - "is-array-buffer": "^3.0.2", + "version": "1.23.9", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.23.9.tgz", + "integrity": "sha512-py07lI0wjxAC/DcfK1S6G7iANonniZwTISvdPzk9hzeH0IZIshbuuFxLIU96OyF89Yb9hiqWn8M/bY83KY5vzA==", + "dev": true, + "dependencies": { + "array-buffer-byte-length": "^1.0.2", + "arraybuffer.prototype.slice": "^1.0.4", + "available-typed-arrays": "^1.0.7", + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "data-view-buffer": "^1.0.2", + "data-view-byte-length": "^1.0.2", + "data-view-byte-offset": "^1.0.1", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0", + "es-set-tostringtag": "^2.1.0", + "es-to-primitive": "^1.3.0", + "function.prototype.name": "^1.1.8", + "get-intrinsic": "^1.2.7", + "get-proto": "^1.0.0", + "get-symbol-description": "^1.1.0", + "globalthis": "^1.0.4", + "gopd": "^1.2.0", + "has-property-descriptors": "^1.0.2", + "has-proto": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "internal-slot": "^1.1.0", + "is-array-buffer": "^3.0.5", "is-callable": "^1.2.7", - "is-negative-zero": "^2.0.2", - "is-regex": "^1.1.4", - "is-shared-array-buffer": "^1.0.2", - "is-string": "^1.0.7", - "is-typed-array": "^1.1.12", - "is-weakref": "^1.0.2", - "object-inspect": "^1.13.1", + "is-data-view": "^1.0.2", + "is-regex": "^1.2.1", + "is-shared-array-buffer": "^1.0.4", + "is-string": "^1.1.1", + "is-typed-array": "^1.1.15", + "is-weakref": "^1.1.0", + "math-intrinsics": "^1.1.0", + "object-inspect": "^1.13.3", "object-keys": "^1.1.1", - "object.assign": "^4.1.4", - "regexp.prototype.flags": "^1.5.1", - "safe-array-concat": "^1.0.1", - "safe-regex-test": "^1.0.0", - "string.prototype.trim": "^1.2.8", - "string.prototype.trimend": "^1.0.7", - "string.prototype.trimstart": "^1.0.7", - "typed-array-buffer": "^1.0.0", - "typed-array-byte-length": "^1.0.0", - "typed-array-byte-offset": "^1.0.0", - "typed-array-length": "^1.0.4", - "unbox-primitive": "^1.0.2", - "which-typed-array": "^1.1.13" + "object.assign": "^4.1.7", + "own-keys": "^1.0.1", + "regexp.prototype.flags": "^1.5.3", + "safe-array-concat": "^1.1.3", + "safe-push-apply": "^1.0.0", + "safe-regex-test": "^1.1.0", + "set-proto": "^1.0.0", + "string.prototype.trim": "^1.2.10", + "string.prototype.trimend": "^1.0.9", + "string.prototype.trimstart": "^1.0.8", + "typed-array-buffer": "^1.0.3", + "typed-array-byte-length": "^1.0.3", + "typed-array-byte-offset": "^1.0.4", + "typed-array-length": "^1.0.7", + "unbox-primitive": "^1.1.0", + "which-typed-array": "^1.1.18" }, "engines": { "node": ">= 0.4" @@ -2431,15 +2250,46 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "dev": true, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "dev": true, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-object-atoms": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.0.0.tgz", + "integrity": "sha512-MZ4iQ6JwHOBQjahnjwaC1ZtIBH+2ohjamzAO3oaHcXYup7qxjF2fixyH+Q71voWHeOkI2q/TnJao/KfXYIZWbw==", + "dev": true, + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/es-set-tostringtag": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.2.tgz", - "integrity": "sha512-BuDyupZt65P9D2D2vA/zqcI3G5xRsklm5N3xCwuiy+/vKy8i0ifdsQP1sLgO4tZDSCaQUSnmC48khknGMV3D2Q==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", + "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", "dev": true, "dependencies": { - "get-intrinsic": "^1.2.2", - "has-tostringtag": "^1.0.0", - "hasown": "^2.0.0" + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" }, "engines": { "node": ">= 0.4" @@ -2455,14 +2305,14 @@ } }, "node_modules/es-to-primitive": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", - "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.3.0.tgz", + "integrity": "sha512-w+5mJ3GuFL+NjVtJlvydShqE1eN3h3PbI7/5LAsYJP/2qtuMXjfL2LpHSRqo4b4eSF5K/DH1JXKUAHSB2UW50g==", "dev": true, "dependencies": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" + "is-callable": "^1.2.7", + "is-date-object": "^1.0.5", + "is-symbol": "^1.0.4" }, "engines": { "node": ">= 0.4" @@ -2517,9 +2367,9 @@ } }, "node_modules/escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", "dev": true, "engines": { "node": ">=6" @@ -2538,16 +2388,17 @@ } }, "node_modules/eslint": { - "version": "8.55.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.55.0.tgz", - "integrity": "sha512-iyUUAM0PCKj5QpwGfmCAG9XXbZCWsqP/eWAWrG/W0umvjuLRBECwSFdt+rCntju0xEH7teIABPwXpahftIaTdA==", + "version": "8.57.1", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.1.tgz", + "integrity": "sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==", + "deprecated": "This version is no longer supported. Please see https://eslint.org/version-support for other options.", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.6.1", "@eslint/eslintrc": "^2.1.4", - "@eslint/js": "8.55.0", - "@humanwhocodes/config-array": "^0.11.13", + "@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", @@ -2625,18 +2476,19 @@ } }, "node_modules/eslint-import-resolver-typescript": { - "version": "3.6.1", - "resolved": "https://registry.npmjs.org/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-3.6.1.tgz", - "integrity": "sha512-xgdptdoi5W3niYeuQxKmzVDTATvLYqhpwmykwsh7f6HIOStGWEIL9iqZgQDF9u9OEzrRwR8no5q2VT+bjAujTg==", + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-3.7.0.tgz", + "integrity": "sha512-Vrwyi8HHxY97K5ebydMtffsWAn1SCR9eol49eCd5fJS4O1WV7PaAjbcjmbfJJSMz/t4Mal212Uz/fQZrOB8mow==", "dev": true, "dependencies": { - "debug": "^4.3.4", - "enhanced-resolve": "^5.12.0", - "eslint-module-utils": "^2.7.4", - "fast-glob": "^3.3.1", - "get-tsconfig": "^4.5.0", - "is-core-module": "^2.11.0", - "is-glob": "^4.0.3" + "@nolyfill/is-core-module": "1.0.39", + "debug": "^4.3.7", + "enhanced-resolve": "^5.15.0", + "fast-glob": "^3.3.2", + "get-tsconfig": "^4.7.5", + "is-bun-module": "^1.0.2", + "is-glob": "^4.0.3", + "stable-hash": "^0.0.4" }, "engines": { "node": "^14.18.0 || >=16.0.0" @@ -2646,13 +2498,22 @@ }, "peerDependencies": { "eslint": "*", - "eslint-plugin-import": "*" + "eslint-plugin-import": "*", + "eslint-plugin-import-x": "*" + }, + "peerDependenciesMeta": { + "eslint-plugin-import": { + "optional": true + }, + "eslint-plugin-import-x": { + "optional": true + } } }, "node_modules/eslint-module-utils": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.0.tgz", - "integrity": "sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==", + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.12.0.tgz", + "integrity": "sha512-wALZ0HFoytlyh/1+4wuZ9FJCD/leWHQzzrxJ8+rebyReSLk7LApMyd3WJaLVoN+D5+WIdJyDK1c6JnE65V4Zyg==", "dev": true, "dependencies": { "debug": "^3.2.7" @@ -2719,34 +2580,36 @@ } }, "node_modules/eslint-plugin-import": { - "version": "2.29.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.29.0.tgz", - "integrity": "sha512-QPOO5NO6Odv5lpoTkddtutccQjysJuFxoPS7fAHO+9m9udNHvTCPSAMW9zGAYj8lAIdr40I8yPCdUYrncXtrwg==", + "version": "2.31.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.31.0.tgz", + "integrity": "sha512-ixmkI62Rbc2/w8Vfxyh1jQRTdRTF52VxwRVHl/ykPAmqG+Nb7/kNn+byLP0LxPgI7zWA16Jt82SybJInmMia3A==", "dev": true, "dependencies": { - "array-includes": "^3.1.7", - "array.prototype.findlastindex": "^1.2.3", + "@rtsao/scc": "^1.1.0", + "array-includes": "^3.1.8", + "array.prototype.findlastindex": "^1.2.5", "array.prototype.flat": "^1.3.2", "array.prototype.flatmap": "^1.3.2", "debug": "^3.2.7", "doctrine": "^2.1.0", "eslint-import-resolver-node": "^0.3.9", - "eslint-module-utils": "^2.8.0", - "hasown": "^2.0.0", - "is-core-module": "^2.13.1", + "eslint-module-utils": "^2.12.0", + "hasown": "^2.0.2", + "is-core-module": "^2.15.1", "is-glob": "^4.0.3", "minimatch": "^3.1.2", - "object.fromentries": "^2.0.7", - "object.groupby": "^1.0.1", - "object.values": "^1.1.7", + "object.fromentries": "^2.0.8", + "object.groupby": "^1.0.3", + "object.values": "^1.2.0", "semver": "^6.3.1", - "tsconfig-paths": "^3.14.2" + "string.prototype.trimend": "^1.0.8", + "tsconfig-paths": "^3.15.0" }, "engines": { "node": ">=4" }, "peerDependencies": { - "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8" + "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 || ^9" } }, "node_modules/eslint-plugin-import/node_modules/debug": { @@ -2780,12 +2643,13 @@ } }, "node_modules/eslint-plugin-mocha": { - "version": "10.2.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-mocha/-/eslint-plugin-mocha-10.2.0.tgz", - "integrity": "sha512-ZhdxzSZnd1P9LqDPF0DBcFLpRIGdh1zkF2JHnQklKQOvrQtT73kdP5K9V2mzvbLR+cCAO9OI48NXK/Ax9/ciCQ==", + "version": "10.5.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-mocha/-/eslint-plugin-mocha-10.5.0.tgz", + "integrity": "sha512-F2ALmQVPT1GoP27O1JTZGrV9Pqg8k79OeIuvw63UxMtQKREZtmkK1NFgkZQ2TW7L2JSSFKHFPTtHu5z8R9QNRw==", "dev": true, "dependencies": { "eslint-utils": "^3.0.0", + "globals": "^13.24.0", "rambda": "^7.4.0" }, "engines": { @@ -2849,23 +2713,24 @@ } }, "node_modules/eslint-plugin-prettier": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.0.1.tgz", - "integrity": "sha512-m3u5RnR56asrwV/lDC4GHorlW75DsFfmUcjfCYylTUs85dBRnB7VM6xG8eCMJdeDRnppzmxZVf1GEPJvl1JmNg==", + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.2.1.tgz", + "integrity": "sha512-gH3iR3g4JfF+yYPaJYkN7jEl9QbweL/YfkoRlNnuIEHEz1vHVlCmWOS+eGGiRuzHQXdJFCOTxRgvju9b8VUmrw==", "dev": true, "dependencies": { "prettier-linter-helpers": "^1.0.0", - "synckit": "^0.8.5" + "synckit": "^0.9.1" }, "engines": { "node": "^14.18.0 || >=16.0.0" }, "funding": { - "url": "https://opencollective.com/prettier" + "url": "https://opencollective.com/eslint-plugin-prettier" }, "peerDependencies": { "@types/eslint": ">=8.0.0", "eslint": ">=8.0.0", + "eslint-config-prettier": "*", "prettier": ">=3.0.0" }, "peerDependenciesMeta": { @@ -3004,41 +2869,6 @@ "node": ">=0.10.0" } }, - "node_modules/execa": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-7.2.0.tgz", - "integrity": "sha512-UduyVP7TLB5IcAQl+OzLyLcS/l32W/GLg+AhHJ+ow40FOk2U3SAllPwR44v4vmdFwIWqpdwxxpQbF1n5ta9seA==", - "dev": true, - "dependencies": { - "cross-spawn": "^7.0.3", - "get-stream": "^6.0.1", - "human-signals": "^4.3.0", - "is-stream": "^3.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^5.1.0", - "onetime": "^6.0.0", - "signal-exit": "^3.0.7", - "strip-final-newline": "^3.0.0" - }, - "engines": { - "node": "^14.18.0 || ^16.14.0 || >=18.0.0" - }, - "funding": { - "url": "https://github.com/sindresorhus/execa?sponsor=1" - } - }, - "node_modules/execa/node_modules/is-stream": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", - "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", - "dev": true, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", @@ -3258,15 +3088,17 @@ } }, "node_modules/function.prototype.name": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.6.tgz", - "integrity": "sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg==", + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.8.tgz", + "integrity": "sha512-e5iwyodOHhbMr/yNrc7fDYG4qlbIvI5gajyzPnb5TCwyhjApznQh1BMFou9b30SevY43gCJKXycoCBjMbsuW0Q==", "dev": true, "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1", - "functions-have-names": "^1.2.3" + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "define-properties": "^1.2.1", + "functions-have-names": "^1.2.3", + "hasown": "^2.0.2", + "is-callable": "^1.2.7" }, "engines": { "node": ">= 0.4" @@ -3303,15 +3135,24 @@ } }, "node_modules/get-intrinsic": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.2.tgz", - "integrity": "sha512-0gSo4ml/0j98Y3lngkFEot/zhiCeWsbYIlZ+uZOVgzLyLaUw7wxUL+nCTP0XJvJg1AXulJRI3UJi8GsbDuxdGA==", + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.7.tgz", + "integrity": "sha512-VW6Pxhsrk0KAOqs3WEd0klDiF/+V7gQOpAvY1jVU/LHmaD/kQO4523aiJuikX/QAKYiW6x8Jh+RJej1almdtCA==", "dev": true, "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0", "function-bind": "^1.1.2", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3", - "hasown": "^2.0.0" + "get-proto": "^1.0.0", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -3326,26 +3167,28 @@ "node": ">=8.0.0" } }, - "node_modules/get-stream": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", - "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", "dev": true, - "engines": { - "node": ">=10" + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "engines": { + "node": ">= 0.4" } }, "node_modules/get-symbol-description": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", - "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.1.0.tgz", + "integrity": "sha512-w9UMqWwJxHNOvoNzSJ2oPF5wvYcvP7jUvYzhp67yEhTi17ZDBBC1z9pTdGuzjD+EFIqLSYRweZjqfiPzQ06Ebg==", "dev": true, "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.1" + "call-bound": "^1.0.3", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6" }, "engines": { "node": ">= 0.4" @@ -3399,9 +3242,9 @@ } }, "node_modules/globals": { - "version": "13.23.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.23.0.tgz", - "integrity": "sha512-XAmF0RjlrjY23MA51q3HltdlGxUpXPvg0GioKiD9X6HD28iMjo2dKC8Vqwm7lne4GNr78+RHTfliktR6ZH09wA==", + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", "dev": true, "dependencies": { "type-fest": "^0.20.2" @@ -3414,12 +3257,13 @@ } }, "node_modules/globalthis": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", - "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.4.tgz", + "integrity": "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==", "dev": true, "dependencies": { - "define-properties": "^1.1.3" + "define-properties": "^1.2.1", + "gopd": "^1.0.1" }, "engines": { "node": ">= 0.4" @@ -3428,33 +3272,13 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/globby": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", - "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", - "dev": true, - "dependencies": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.2.9", - "ignore": "^5.2.0", - "merge2": "^1.4.1", - "slash": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/gopd": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", - "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", "dev": true, - "dependencies": { - "get-intrinsic": "^1.1.3" + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -3473,10 +3297,13 @@ "dev": true }, "node_modules/has-bigints": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", - "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.1.0.tgz", + "integrity": "sha512-R3pbpkcIqv2Pm3dUwgjclDRVmWpTJW2DcMzcIhEXEx1oh/CEMObMm3KLmRJOdvhM7o4uQBnwr8pzRK2sJWIqfg==", "dev": true, + "engines": { + "node": ">= 0.4" + }, "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -3491,22 +3318,25 @@ } }, "node_modules/has-property-descriptors": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.1.tgz", - "integrity": "sha512-VsX8eaIewvas0xnvinAe9bw4WfIeODpGYikiWYLH+dma0Jw6KHYqWiWfhQlgOVK8D6PvjubK5Uc4P0iIhIcNVg==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", + "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", "dev": true, "dependencies": { - "get-intrinsic": "^1.2.2" + "es-define-property": "^1.0.0" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/has-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", - "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.2.0.tgz", + "integrity": "sha512-KIL7eQPfHQRC8+XluaIw7BHUwwqL19bQn4hzNgdr+1wXoU0KKj6rufu47lhY7KbJR2C6T6+PfyN0Ea7wkSS+qQ==", "dev": true, + "dependencies": { + "dunder-proto": "^1.0.0" + }, "engines": { "node": ">= 0.4" }, @@ -3515,9 +3345,9 @@ } }, "node_modules/has-symbols": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", - "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", "dev": true, "engines": { "node": ">= 0.4" @@ -3527,12 +3357,12 @@ } }, "node_modules/has-tostringtag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", - "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", "dev": true, "dependencies": { - "has-symbols": "^1.0.2" + "has-symbols": "^1.0.3" }, "engines": { "node": ">= 0.4" @@ -3567,9 +3397,9 @@ } }, "node_modules/hasown": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.0.tgz", - "integrity": "sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", "dev": true, "dependencies": { "function-bind": "^1.1.2" @@ -3593,19 +3423,10 @@ "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", "dev": true }, - "node_modules/human-signals": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-4.3.1.tgz", - "integrity": "sha512-nZXjEF2nbo7lIw3mgYjItAfgQXog3OjJogSbKa2CQIIvSGWcKgeJnQlNXip6NglNzYH45nSRiEVimMvYL8DDqQ==", - "dev": true, - "engines": { - "node": ">=14.18.0" - } - }, "node_modules/ignore": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.0.tgz", - "integrity": "sha512-g7dmpshy+gD7mh88OC9NwSGTKoc3kyLAZQRU1mt53Aw/vnvfXnbC+F/7F7QoYVKbV+KNvJx8wArewKy1vXMtlg==", + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", "dev": true, "engines": { "node": ">= 4" @@ -3661,14 +3482,14 @@ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" }, "node_modules/internal-slot": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.6.tgz", - "integrity": "sha512-Xj6dv+PsbtwyPpEflsejS+oIZxmMlV44zAhG479uYu89MsjcYOhCFnNyKrkJrihbsiasQyY0afoCl/9BLR65bg==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.1.0.tgz", + "integrity": "sha512-4gd7VpWNQNB4UKKCFFVcp1AVv+FMOgs9NKzjHKusc8jTMhd5eL1NqQqOpE0KzMds804/yHlglp3uxgluOqAPLw==", "dev": true, "dependencies": { - "get-intrinsic": "^1.2.2", - "hasown": "^2.0.0", - "side-channel": "^1.0.4" + "es-errors": "^1.3.0", + "hasown": "^2.0.2", + "side-channel": "^1.1.0" }, "engines": { "node": ">= 0.4" @@ -3691,34 +3512,55 @@ } }, "node_modules/is-array-buffer": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz", - "integrity": "sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==", + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.5.tgz", + "integrity": "sha512-DDfANUiiG2wC1qawP66qlTugJeL5HyzMpfr8lLK+jMQirGzNod0B12cFB/9q838Ru27sBwfw78/rdoU7RERz6A==", "dev": true, "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.2.0", - "is-typed-array": "^1.1.10" + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "get-intrinsic": "^1.2.6" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-bigint": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", - "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", + "node_modules/is-async-function": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-async-function/-/is-async-function-2.0.0.tgz", + "integrity": "sha512-Y1JXKrfykRJGdlDwdKlLpLyMIiWqWvuSd17TvZk68PLAOGOoF4Xyav1z0Xhoi+gCYjZVeC5SI+hYFOfvXmGRCA==", "dev": true, "dependencies": { - "has-bigints": "^1.0.1" + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-binary-path": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "node_modules/is-bigint": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.1.0.tgz", + "integrity": "sha512-n4ZT37wG78iz03xPRKJrHTdZbe3IicyucEtdRsV5yglwc3GyUfbAfpSeD0FJ41NbUNSt5wbhqfp1fS+BgnvDFQ==", + "dev": true, + "dependencies": { + "has-bigints": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", "dev": true, "dependencies": { @@ -3729,13 +3571,13 @@ } }, "node_modules/is-boolean-object": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", - "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.2.1.tgz", + "integrity": "sha512-l9qO6eFlUETHtuihLcYOaLKByJ1f+N4kthcU9YjHy3N+B3hWv0y/2Nd0mu/7lTFnRQHTrSdXF50HQ3bl5fEnng==", "dev": true, "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" + "call-bound": "^1.0.2", + "has-tostringtag": "^1.0.2" }, "engines": { "node": ">= 0.4" @@ -3744,6 +3586,15 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-bun-module": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/is-bun-module/-/is-bun-module-1.3.0.tgz", + "integrity": "sha512-DgXeu5UWI0IsMQundYb5UAOzm6G2eVnarJ0byP6Tm55iZNKceD59LNPA2L4VvsScTtHcw0yEkVwSf7PC+QoLSA==", + "dev": true, + "dependencies": { + "semver": "^7.6.3" + } + }, "node_modules/is-callable": { "version": "1.2.7", "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", @@ -3757,24 +3608,29 @@ } }, "node_modules/is-core-module": { - "version": "2.13.1", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz", - "integrity": "sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==", + "version": "2.16.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", + "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", "dev": true, "dependencies": { - "hasown": "^2.0.0" + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-date-object": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", - "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", + "node_modules/is-data-view": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-data-view/-/is-data-view-1.0.2.tgz", + "integrity": "sha512-RKtWF8pGmS87i2D6gqQu/l7EYRlVdfzemCJN/P3UOs//x1QE7mfhvzHIApBTRf7axvT6DMGwSwBXYCT0nfB9xw==", "dev": true, "dependencies": { - "has-tostringtag": "^1.0.0" + "call-bound": "^1.0.2", + "get-intrinsic": "^1.2.6", + "is-typed-array": "^1.1.13" }, "engines": { "node": ">= 0.4" @@ -3783,19 +3639,20 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-docker": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-3.0.0.tgz", - "integrity": "sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==", + "node_modules/is-date-object": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.1.0.tgz", + "integrity": "sha512-PwwhEakHVKTdRNVOw+/Gyh0+MzlCl4R6qKvkhuvLtPMggI1WAHt9sOwZxQLSGpUaDnrdyDsomoRgNnCfKNSXXg==", "dev": true, - "bin": { - "is-docker": "cli.js" + "dependencies": { + "call-bound": "^1.0.2", + "has-tostringtag": "^1.0.2" }, "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + "node": ">= 0.4" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sponsors/ljharb" } }, "node_modules/is-extglob": { @@ -3807,6 +3664,21 @@ "node": ">=0.10.0" } }, + "node_modules/is-finalizationregistry": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-finalizationregistry/-/is-finalizationregistry-1.1.1.tgz", + "integrity": "sha512-1pC6N8qWJbWoPtEjgcL2xyhQOP491EQjeUo3qTKcmV8YSDDJrOepfG8pcC7h/QgnQHYSv0mJ3Z/ZWxmatVrysg==", + "dev": true, + "dependencies": { + "call-bound": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-fullwidth-code-point": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", @@ -3843,22 +3715,16 @@ "node": ">=0.10.0" } }, - "node_modules/is-inside-container": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-inside-container/-/is-inside-container-1.0.0.tgz", - "integrity": "sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==", + "node_modules/is-map": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.3.tgz", + "integrity": "sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==", "dev": true, - "dependencies": { - "is-docker": "^3.0.0" - }, - "bin": { - "is-inside-container": "cli.js" - }, "engines": { - "node": ">=14.16" + "node": ">= 0.4" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sponsors/ljharb" } }, "node_modules/is-nan": { @@ -3877,18 +3743,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-negative-zero": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", - "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/is-number": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", @@ -3899,12 +3753,13 @@ } }, "node_modules/is-number-object": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", - "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.1.1.tgz", + "integrity": "sha512-lZhclumE1G6VYD8VHe35wFaIif+CTy5SJIi5+3y4psDgWu4wPDoBhF8NxUOinEc7pHgiTsT6MaBb92rKhhD+Xw==", "dev": true, "dependencies": { - "has-tostringtag": "^1.0.0" + "call-bound": "^1.0.3", + "has-tostringtag": "^1.0.2" }, "engines": { "node": ">= 0.4" @@ -3932,14 +3787,28 @@ } }, "node_modules/is-regex": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", - "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.2.1.tgz", + "integrity": "sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==", "dev": true, "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" + "call-bound": "^1.0.2", + "gopd": "^1.2.0", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-set": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.3.tgz", + "integrity": "sha512-iPAjerrse27/ygGLxw+EBR9agv9Y6uLeYVJMu+QNCoouJ1/1ri0mGrcWpfCqFZuzzx3WjtwxG098X+n4OuRkPg==", + "dev": true, "engines": { "node": ">= 0.4" }, @@ -3948,12 +3817,15 @@ } }, "node_modules/is-shared-array-buffer": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", - "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.4.tgz", + "integrity": "sha512-ISWac8drv4ZGfwKl5slpHG9OwPNty4jOWPRIhBpxOoD+hqITiwuipOQ2bNthAzwA3B4fIjO4Nln74N0S9byq8A==", "dev": true, "dependencies": { - "call-bind": "^1.0.2" + "call-bound": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -3972,12 +3844,13 @@ } }, "node_modules/is-string": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", - "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.1.1.tgz", + "integrity": "sha512-BtEeSsoaQjlSPBemMQIrY1MY0uM6vnS1g5fmufYOtnxLGUZM2178PKbhsk7Ffv58IX+ZtcvoGwccYsh0PglkAA==", "dev": true, "dependencies": { - "has-tostringtag": "^1.0.0" + "call-bound": "^1.0.3", + "has-tostringtag": "^1.0.2" }, "engines": { "node": ">= 0.4" @@ -3987,12 +3860,14 @@ } }, "node_modules/is-symbol": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", - "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.1.1.tgz", + "integrity": "sha512-9gGx6GTtCQM73BgmHQXfDmLtfjjTUDSyoxTCbp5WtoixAhfgsDirWIcVQ/IHpvI5Vgd5i/J5F7B9cN/WlVbC/w==", "dev": true, "dependencies": { - "has-symbols": "^1.0.2" + "call-bound": "^1.0.2", + "has-symbols": "^1.1.0", + "safe-regex-test": "^1.1.0" }, "engines": { "node": ">= 0.4" @@ -4002,12 +3877,12 @@ } }, "node_modules/is-typed-array": { - "version": "1.1.12", - "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.12.tgz", - "integrity": "sha512-Z14TF2JNG8Lss5/HMqt0//T9JeHXttXy5pH/DBU4vi98ozO2btxzq9MwYDZYnKwU8nRsz/+GVFVRDq3DkVuSPg==", + "version": "1.1.15", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.15.tgz", + "integrity": "sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==", "dev": true, "dependencies": { - "which-typed-array": "^1.1.11" + "which-typed-array": "^1.1.16" }, "engines": { "node": ">= 0.4" @@ -4034,52 +3909,56 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/is-weakref": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", - "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", + "node_modules/is-weakmap": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.2.tgz", + "integrity": "sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w==", "dev": true, - "dependencies": { - "call-bind": "^1.0.2" + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-windows": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", - "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", + "node_modules/is-weakref": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.1.0.tgz", + "integrity": "sha512-SXM8Nwyys6nT5WP6pltOwKytLV7FqQ4UiibxVmW+EIosHcmCqkkjViTb5SNssDlkCiEYRP1/pdWUKVvZBmsR2Q==", "dev": true, + "dependencies": { + "call-bound": "^1.0.2" + }, "engines": { - "node": ">=0.10.0" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-wsl": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", - "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", + "node_modules/is-weakset": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.4.tgz", + "integrity": "sha512-mfcwb6IzQyOKTs84CQMrOwW4gQcaTOAWJ0zzJCl2WSPDrWk/OzDaImWFH3djXhb24g4eudZfLRozAvPGw4d9hQ==", "dev": true, "dependencies": { - "is-docker": "^2.0.0" + "call-bound": "^1.0.3", + "get-intrinsic": "^1.2.6" }, "engines": { - "node": ">=8" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-wsl/node_modules/is-docker": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", - "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", + "node_modules/is-windows": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", + "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", "dev": true, - "bin": { - "is-docker": "cli.js" - }, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=0.10.0" } }, "node_modules/isarray": { @@ -4115,27 +3994,19 @@ } }, "node_modules/istanbul-lib-instrument": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-4.0.3.tgz", - "integrity": "sha512-BXgQl9kf4WTCPCCpmFGoJkz/+uhvm7h7PFKUYxh7qarQd3ER33vHG//qaE8eN25l07YqZPpHXU9I09l/RD5aGQ==", + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.3.tgz", + "integrity": "sha512-Vtgk7L/R2JHyyGW07spoFlB8/lpjiOLTjMdms6AFMraYt3BaJauod/NGrfnVG/y4Ix1JEuMRPDPEj2ua+zz1/Q==", "dev": true, "dependencies": { - "@babel/core": "^7.7.5", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-coverage": "^3.0.0", - "semver": "^6.3.0" + "@babel/core": "^7.23.9", + "@babel/parser": "^7.23.9", + "@istanbuljs/schema": "^0.1.3", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^7.5.4" }, "engines": { - "node": ">=8" - } - }, - "node_modules/istanbul-lib-instrument/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "bin": { - "semver": "bin/semver.js" + "node": ">=10" } }, "node_modules/istanbul-lib-processinfo": { @@ -4245,15 +4116,15 @@ } }, "node_modules/jsesc": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", - "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", "dev": true, "bin": { "jsesc": "bin/jsesc" }, "engines": { - "node": ">=4" + "node": ">=6" } }, "node_modules/json-buffer": { @@ -4416,18 +4287,21 @@ "markdown-it": "bin/markdown-it.mjs" } }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "dev": true, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/mdurl": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-2.0.0.tgz", "integrity": "sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w==", "dev": true }, - "node_modules/merge-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", - "dev": true - }, "node_modules/merge2": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", @@ -4450,18 +4324,6 @@ "node": ">=8.6" } }, - "node_modules/mimic-fn": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz", - "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", @@ -4651,9 +4513,9 @@ } }, "node_modules/node-releases": { - "version": "2.0.14", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.14.tgz", - "integrity": "sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==", + "version": "2.0.19", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.19.tgz", + "integrity": "sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==", "dev": true }, "node_modules/normalize-path": { @@ -4665,37 +4527,10 @@ "node": ">=0.10.0" } }, - "node_modules/npm-run-path": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.1.0.tgz", - "integrity": "sha512-sJOdmRGrY2sjNTRMbSvluQqg+8X7ZK61yvzBEIDhz4f8z1TZFYABsqjjCBd/0PUNE9M6QDgHJXQkGUEm7Q+l9Q==", - "dev": true, - "dependencies": { - "path-key": "^4.0.0" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/npm-run-path/node_modules/path-key": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz", - "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/nyc": { - "version": "15.1.0", - "resolved": "https://registry.npmjs.org/nyc/-/nyc-15.1.0.tgz", - "integrity": "sha512-jMW04n9SxKdKi1ZMGhvUTHBN0EICCRkHemEoE5jm6mTYcqcdas0ATzgUgejlQUHMvpnOZqGB5Xxsv9KxJW1j8A==", + "version": "17.1.0", + "resolved": "https://registry.npmjs.org/nyc/-/nyc-17.1.0.tgz", + "integrity": "sha512-U42vQ4czpKa0QdI1hu950XuNhYqgoM+ZF1HT+VuUHL9hPfDPVvNQyltmMqdE9bUHMVa+8yNbc3QKTj8zQhlVxQ==", "dev": true, "dependencies": { "@istanbuljs/load-nyc-config": "^1.0.0", @@ -4705,12 +4540,12 @@ "decamelize": "^1.2.0", "find-cache-dir": "^3.2.0", "find-up": "^4.1.0", - "foreground-child": "^2.0.0", + "foreground-child": "^3.3.0", "get-package-type": "^0.1.0", "glob": "^7.1.6", "istanbul-lib-coverage": "^3.0.0", "istanbul-lib-hook": "^3.0.0", - "istanbul-lib-instrument": "^4.0.0", + "istanbul-lib-instrument": "^6.0.2", "istanbul-lib-processinfo": "^2.0.2", "istanbul-lib-report": "^3.0.0", "istanbul-lib-source-maps": "^4.0.0", @@ -4730,7 +4565,7 @@ "nyc": "bin/nyc.js" }, "engines": { - "node": ">=8.9" + "node": ">=18" } }, "node_modules/nyc/node_modules/cliui": { @@ -4757,6 +4592,34 @@ "node": ">=8" } }, + "node_modules/nyc/node_modules/foreground-child": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.0.tgz", + "integrity": "sha512-Ld2g8rrAyMYFXBhEqMz8ZAHBi4J4uS1i/CxGMDnjyFWddMXLVcDp051DZfu+t7+ab7Wv6SMqpWmyFIj5UbfFvg==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.0", + "signal-exit": "^4.0.1" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/nyc/node_modules/foreground-child/node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "dev": true, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/nyc/node_modules/locate-path": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", @@ -4861,10 +4724,13 @@ } }, "node_modules/object-inspect": { - "version": "1.13.1", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz", - "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==", + "version": "1.13.3", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.3.tgz", + "integrity": "sha512-kDCGIbxkDSXE3euJZZXzc6to7fCrKHNI/hSRQnRuQ+BWjFNzZwiFF8fj/6o2t2G9/jTj8PSIYTfCLelLZEeRpA==", "dev": true, + "engines": { + "node": ">= 0.4" + }, "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -4895,14 +4761,16 @@ } }, "node_modules/object.assign": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.5.tgz", - "integrity": "sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ==", + "version": "4.1.7", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.7.tgz", + "integrity": "sha512-nK28WOo+QIjBkDduTINE4JkF/UJJKyf2EJxvJKfblDpyg0Q+pkOHNTL0Qwy6NP6FhE/EnzV73BxxqcJaXY9anw==", "dev": true, "dependencies": { - "call-bind": "^1.0.5", + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", "define-properties": "^1.2.1", - "has-symbols": "^1.0.3", + "es-object-atoms": "^1.0.0", + "has-symbols": "^1.1.0", "object-keys": "^1.1.1" }, "engines": { @@ -4913,14 +4781,15 @@ } }, "node_modules/object.fromentries": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.7.tgz", - "integrity": "sha512-UPbPHML6sL8PI/mOqPwsH4G6iyXcCGzLin8KvEPenOZN5lpCNBZZQ+V62vdjB1mQHrmqGQt5/OJzemUA+KJmEA==", + "version": "2.0.8", + "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.8.tgz", + "integrity": "sha512-k6E21FzySsSK5a21KRADBd/NGneRegFO5pLHfdQLpRDETUNJueLXs3WCzyQ3tFRDYgbq3KHGXfTbi2bs8WQ6rQ==", "dev": true, "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1" + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.2", + "es-object-atoms": "^1.0.0" }, "engines": { "node": ">= 0.4" @@ -4930,26 +4799,29 @@ } }, "node_modules/object.groupby": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/object.groupby/-/object.groupby-1.0.1.tgz", - "integrity": "sha512-HqaQtqLnp/8Bn4GL16cj+CUYbnpe1bh0TtEaWvybszDG4tgxCJuRpV8VGuvNaI1fAnI4lUJzDG55MXcOH4JZcQ==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/object.groupby/-/object.groupby-1.0.3.tgz", + "integrity": "sha512-+Lhy3TQTuzXI5hevh8sBGqbmurHbbIjAi0Z4S63nthVLmLxfbj4T54a4CfZrXIrt9iP4mVAPYMo/v99taj3wjQ==", "dev": true, "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1", - "get-intrinsic": "^1.2.1" + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.2" + }, + "engines": { + "node": ">= 0.4" } }, "node_modules/object.values": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.7.tgz", - "integrity": "sha512-aU6xnDFYT3x17e/f0IiiwlGPTy2jzMySGfUB4fq6z7CV8l85CWHDk5ErhyhpfDHhrOMwGFhSQkhMGHaIotA6Ng==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.2.1.tgz", + "integrity": "sha512-gXah6aZrcUxjWg2zR2MwouP2eHlCBzdV4pygudehaKXSGW4v2AsRQUK+lwwXhii6KFZcunEnmSUoYp5CXibxtA==", "dev": true, "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1" + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0" }, "engines": { "node": ">= 0.4" @@ -4967,39 +4839,6 @@ "wrappy": "1" } }, - "node_modules/onetime": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz", - "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==", - "dev": true, - "dependencies": { - "mimic-fn": "^4.0.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/open": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/open/-/open-9.1.0.tgz", - "integrity": "sha512-OS+QTnw1/4vrf+9hh1jc1jnYjzSG4ttTBB8UxOwAnInG3Uo4ssetzC1ihqaIHjLJnA5GGlRl6QlZXOTQhRBUvg==", - "dev": true, - "dependencies": { - "default-browser": "^4.0.0", - "define-lazy-prop": "^3.0.0", - "is-inside-container": "^1.0.0", - "is-wsl": "^2.2.0" - }, - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/optionator": { "version": "0.9.3", "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", @@ -5017,8 +4856,25 @@ "node": ">= 0.8.0" } }, - "node_modules/p-limit": { - "version": "3.1.0", + "node_modules/own-keys": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/own-keys/-/own-keys-1.0.1.tgz", + "integrity": "sha512-qFOyK5PjiWZd+QQIh+1jhdb9LpxTF0qs7Pm8o5QHYZ0M3vKqSqzsZaEB6oWlxZ+q2sJBMI/Ktgd2N5ZwQoRHfg==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.2.6", + "object-keys": "^1.1.1", + "safe-push-apply": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", "dev": true, @@ -5166,19 +5022,10 @@ "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", "dev": true }, - "node_modules/path-type": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", "dev": true }, "node_modules/picomatch": { @@ -5257,6 +5104,15 @@ "node": ">=8" } }, + "node_modules/possible-typed-array-names": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz", + "integrity": "sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==", + "dev": true, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/prelude-ls": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", @@ -5267,9 +5123,9 @@ } }, "node_modules/prettier": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.1.0.tgz", - "integrity": "sha512-TQLvXjq5IAibjh8EpBIkNKxO749UEWABoiIZehEPiY4GNpVdhaFKqSTu+QrlU6D2dPAfubRmtJTi4K4YkQ5eXw==", + "version": "3.4.2", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.4.2.tgz", + "integrity": "sha512-e9MewbtFo+Fevyuxn/4rrcDAaq0IYxPGLvObpQjiZBMAzB9IGmzlnG9RZy3FFas+eBMu2vA0CszMeduow5dIuQ==", "dev": true, "bin": { "prettier": "bin/prettier.cjs" @@ -5389,15 +5245,38 @@ "node": ">=8.10.0" } }, + "node_modules/reflect.getprototypeof": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/reflect.getprototypeof/-/reflect.getprototypeof-1.0.10.tgz", + "integrity": "sha512-00o4I+DVrefhv+nX0ulyi3biSHCPDe+yLv5o/p6d/UVlirijB8E16FtfwSAi4g3tcqrQ4lRAqQSoFEZJehYEcw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.9", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0", + "get-intrinsic": "^1.2.7", + "get-proto": "^1.0.1", + "which-builtin-type": "^1.2.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/regexp.prototype.flags": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.1.tgz", - "integrity": "sha512-sy6TXMN+hnP/wMy+ISxg3krXx7BAtWVO4UouuCN/ziM9UEne0euamVNafDfvC83bRNr95y0V5iijeDQFUNpvrg==", + "version": "1.5.3", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.3.tgz", + "integrity": "sha512-vqlC04+RQoFalODCbCumG2xIOvapzVMHwsyIGM/SIE8fRhFFsXeH8/QQ+s0T0kDAhKc4k30s73/0ydkHQz6HlQ==", "dev": true, "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "set-function-name": "^2.0.0" + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-errors": "^1.3.0", + "set-function-name": "^2.0.2" }, "engines": { "node": ">= 0.4" @@ -5505,98 +5384,6 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/run-applescript": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/run-applescript/-/run-applescript-5.0.0.tgz", - "integrity": "sha512-XcT5rBksx1QdIhlFOCtgZkB99ZEouFZ1E2Kc2LHqNW13U3/74YGdkQRmThTwxy4QIyookibDKYZOPqX//6BlAg==", - "dev": true, - "dependencies": { - "execa": "^5.0.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/run-applescript/node_modules/execa": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", - "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", - "dev": true, - "dependencies": { - "cross-spawn": "^7.0.3", - "get-stream": "^6.0.0", - "human-signals": "^2.1.0", - "is-stream": "^2.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^4.0.1", - "onetime": "^5.1.2", - "signal-exit": "^3.0.3", - "strip-final-newline": "^2.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sindresorhus/execa?sponsor=1" - } - }, - "node_modules/run-applescript/node_modules/human-signals": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", - "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", - "dev": true, - "engines": { - "node": ">=10.17.0" - } - }, - "node_modules/run-applescript/node_modules/mimic-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/run-applescript/node_modules/npm-run-path": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", - "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", - "dev": true, - "dependencies": { - "path-key": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/run-applescript/node_modules/onetime": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", - "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", - "dev": true, - "dependencies": { - "mimic-fn": "^2.1.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/run-applescript/node_modules/strip-final-newline": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", - "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", - "dev": true, - "engines": { - "node": ">=6" - } - }, "node_modules/run-parallel": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", @@ -5621,14 +5408,15 @@ } }, "node_modules/safe-array-concat": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.0.1.tgz", - "integrity": "sha512-6XbUAseYE2KtOuGueyeobCySj9L4+66Tn6KQMOPQJrAJEowYKW/YR/MGJZl7FdydUdaFu4LYyDZjxf4/Nmo23Q==", + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.1.3.tgz", + "integrity": "sha512-AURm5f0jYEOydBj7VQlVvDrjeFgthDdEF5H1dP+6mNpoXOMo1quQqJ4wvJDyRZ9+pO3kGWoOdmV08cSv2aJV6Q==", "dev": true, "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.2.1", - "has-symbols": "^1.0.3", + "call-bind": "^1.0.8", + "call-bound": "^1.0.2", + "get-intrinsic": "^1.2.6", + "has-symbols": "^1.1.0", "isarray": "^2.0.5" }, "engines": { @@ -5649,53 +5437,57 @@ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" }, - "node_modules/safe-regex-test": { + "node_modules/safe-push-apply": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz", - "integrity": "sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==", + "resolved": "https://registry.npmjs.org/safe-push-apply/-/safe-push-apply-1.0.0.tgz", + "integrity": "sha512-iKE9w/Z7xCzUMIZqdBsp6pEQvwuEebH4vdpjcDWnyzaI6yl6O9FHvVpmGelvEHNsoY6wGblkxR6Zty/h00WiSA==", "dev": true, "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.3", - "is-regex": "^1.1.4" + "es-errors": "^1.3.0", + "isarray": "^2.0.5" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/semver": { - "version": "7.5.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", - "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "node_modules/safe-push-apply/node_modules/isarray": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", + "dev": true + }, + "node_modules/safe-regex-test": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.1.0.tgz", + "integrity": "sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==", "dev": true, "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "is-regex": "^1.2.1" }, "engines": { - "node": ">=10" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/semver/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "node_modules/semver": { + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", "dev": true, - "dependencies": { - "yallist": "^4.0.0" + "bin": { + "semver": "bin/semver.js" }, "engines": { "node": ">=10" } }, - "node_modules/semver/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, "node_modules/serialize-javascript": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.2.tgz", @@ -5712,29 +5504,46 @@ "dev": true }, "node_modules/set-function-length": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.1.1.tgz", - "integrity": "sha512-VoaqjbBJKiWtg4yRcKBQ7g7wnGnLV3M8oLvVWwOk2PdYY6PEFegR1vezXR0tw6fZGF9csVakIRjrJiy2veSBFQ==", + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", + "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", "dev": true, "dependencies": { - "define-data-property": "^1.1.1", - "get-intrinsic": "^1.2.1", + "define-data-property": "^1.1.4", + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.4", "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.0" + "has-property-descriptors": "^1.0.2" }, "engines": { "node": ">= 0.4" } }, "node_modules/set-function-name": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.1.tgz", - "integrity": "sha512-tMNCiqYVkXIZgc2Hnoy2IvC/f8ezc5koaRFkCjrpWzGpCd3qbZXPzVy9MAZzK1ch/X0jvSkojys3oqJN0qCmdA==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.2.tgz", + "integrity": "sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==", "dev": true, "dependencies": { - "define-data-property": "^1.0.1", + "define-data-property": "^1.1.4", + "es-errors": "^1.3.0", "functions-have-names": "^1.2.3", - "has-property-descriptors": "^1.0.0" + "has-property-descriptors": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/set-proto": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/set-proto/-/set-proto-1.0.0.tgz", + "integrity": "sha512-RJRdvCo6IAnPdsvP/7m6bsQqNnn1FCBX5ZNtFL98MmFF/4xAIJTIg1YbHW5DC2W5SKZanrC6i4HsJqlajw/dZw==", + "dev": true, + "dependencies": { + "dunder-proto": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0" }, "engines": { "node": ">= 0.4" @@ -5762,14 +5571,72 @@ } }, "node_modules/side-channel": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", - "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", + "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", "dev": true, "dependencies": { - "call-bind": "^1.0.0", - "get-intrinsic": "^1.0.2", - "object-inspect": "^1.9.0" + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3", + "side-channel-list": "^1.0.0", + "side-channel-map": "^1.0.1", + "side-channel-weakmap": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-list": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", + "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", + "dev": true, + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-map": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", + "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", + "dev": true, + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-weakmap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", + "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", + "dev": true, + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3", + "side-channel-map": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -5781,15 +5648,6 @@ "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", "dev": true }, - "node_modules/slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/slow-stream": { "version": "0.0.4", "resolved": "https://registry.npmjs.org/slow-stream/-/slow-stream-0.0.4.tgz", @@ -5829,6 +5687,12 @@ "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", "dev": true }, + "node_modules/stable-hash": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/stable-hash/-/stable-hash-0.0.4.tgz", + "integrity": "sha512-LjdcbuBeLcdETCrPn9i8AYAZ1eCtu4ECAWtP7UleOiZ9LzVxRzzUZEoZ8zB24nhkQnDWyET0I+3sWokSDS3E7g==", + "dev": true + }, "node_modules/string_decoder": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", @@ -5867,14 +5731,18 @@ } }, "node_modules/string.prototype.trim": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.8.tgz", - "integrity": "sha512-lfjY4HcixfQXOfaqCvcBuOIapyaroTXhbkfJN3gcB1OtyupngWK4sEET9Knd0cXd28kTUqu/kHoV4HKSJdnjiQ==", + "version": "1.2.10", + "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.10.tgz", + "integrity": "sha512-Rs66F0P/1kedk5lyYyH9uBzuiI/kNRmwJAR9quK6VOtIpZ2G+hMZd+HQbbv25MgCA6gEffoMZYxlTod4WcdrKA==", "dev": true, "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1" + "call-bind": "^1.0.8", + "call-bound": "^1.0.2", + "define-data-property": "^1.1.4", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.5", + "es-object-atoms": "^1.0.0", + "has-property-descriptors": "^1.0.2" }, "engines": { "node": ">= 0.4" @@ -5884,28 +5752,35 @@ } }, "node_modules/string.prototype.trimend": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.7.tgz", - "integrity": "sha512-Ni79DqeB72ZFq1uH/L6zJ+DKZTkOtPIHovb3YZHQViE+HDouuU4mBrLOLDn5Dde3RF8qw5qVETEjhu9locMLvA==", + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.9.tgz", + "integrity": "sha512-G7Ok5C6E/j4SGfyLCloXTrngQIQU3PWtXGst3yM7Bea9FRURf1S42ZHlZZtsNque2FN2PoUhfZXYLNWwEr4dLQ==", "dev": true, "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1" + "call-bind": "^1.0.8", + "call-bound": "^1.0.2", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/string.prototype.trimstart": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.7.tgz", - "integrity": "sha512-NGhtDFu3jCEm7B4Fy0DpLewdJQOZcQ0rGbwQ/+stjnrp2i+rlKeCvos9hOIeCmqwratM47OBxY7uFZzjxHXmrg==", + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.8.tgz", + "integrity": "sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg==", "dev": true, "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1" + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -5945,18 +5820,6 @@ "node": ">=8" } }, - "node_modules/strip-final-newline": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz", - "integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/strip-json-comments": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", @@ -5994,12 +5857,12 @@ } }, "node_modules/synckit": { - "version": "0.8.6", - "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.8.6.tgz", - "integrity": "sha512-laHF2savN6sMeHCjLRkheIU4wo3Zg9Ln5YOjOo7sZ5dVQW8yF5pPE5SIw1dsPhq3TRp1jisKRCdPhfs/1WMqDA==", + "version": "0.9.2", + "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.9.2.tgz", + "integrity": "sha512-vrozgXDQwYO72vHjUb/HnFbQx1exDjoKzqx23aXEg2a9VIg2TSFZ8FmeZpTjUCFMYw7mpX4BE2SFu8wI7asYsw==", "dev": true, "dependencies": { - "@pkgr/utils": "^2.4.2", + "@pkgr/core": "^0.1.0", "tslib": "^2.6.2" }, "engines": { @@ -6038,27 +5901,6 @@ "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", "dev": true }, - "node_modules/titleize": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/titleize/-/titleize-3.0.0.tgz", - "integrity": "sha512-KxVu8EYHDPBdUYdKZdKtU2aj2XfEx9AfjXxE/Aj0vT06w2icA09Vus1rh6eSu1y01akYg6BjIK/hxyLJINoMLQ==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/to-fast-properties": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", - "dev": true, - "engines": { - "node": ">=4" - } - }, "node_modules/to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", @@ -6072,21 +5914,21 @@ } }, "node_modules/ts-api-utils": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.0.3.tgz", - "integrity": "sha512-wNMeqtMz5NtwpT/UZGY5alT+VoKdSsOOP/kqHFcUW1P/VRhH2wJ48+DN2WwUliNbQ976ETwDL0Ifd2VVvgonvg==", + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.4.3.tgz", + "integrity": "sha512-i3eMG77UTMD0hZhgRS562pv83RC6ukSAC2GMNWc+9dieh/+jDM5u5YG+NHX6VNDRHQcHwmsTHctP9LhbC3WxVw==", "dev": true, "engines": { - "node": ">=16.13.0" + "node": ">=16" }, "peerDependencies": { "typescript": ">=4.2.0" } }, "node_modules/tsconfig-paths": { - "version": "3.14.2", - "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz", - "integrity": "sha512-o/9iXgCYc5L/JxCHPe3Hvh8Q/2xm5Z+p18PESBU6Ff33695QnCHBEjcytY2q19ua7Mbl/DavtBOLq+oG0RCL+g==", + "version": "3.15.0", + "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.15.0.tgz", + "integrity": "sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==", "dev": true, "dependencies": { "@types/json5": "^0.0.29", @@ -6117,9 +5959,9 @@ } }, "node_modules/tslib": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", - "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==", + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", "dev": true }, "node_modules/tsx": { @@ -6166,29 +6008,30 @@ } }, "node_modules/typed-array-buffer": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.0.tgz", - "integrity": "sha512-Y8KTSIglk9OZEr8zywiIHG/kmQ7KWyjseXs1CbSo8vC42w7hg2HgYTxSWwP0+is7bWDc1H+Fo026CpHFwm8tkw==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.3.tgz", + "integrity": "sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw==", "dev": true, "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.2.1", - "is-typed-array": "^1.1.10" + "call-bound": "^1.0.3", + "es-errors": "^1.3.0", + "is-typed-array": "^1.1.14" }, "engines": { "node": ">= 0.4" } }, "node_modules/typed-array-byte-length": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.0.tgz", - "integrity": "sha512-Or/+kvLxNpeQ9DtSydonMxCx+9ZXOswtwJn17SNLvhptaXYDJvkFFP5zbfU/uLmvnBJlI4yrnXRxpdWH/M5tNA==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.3.tgz", + "integrity": "sha512-BaXgOuIxz8n8pIq3e7Atg/7s+DpiYrxn4vdot3w9KbnBhcRQq6o3xemQdIfynqSeXeDrF32x+WvfzmOjPiY9lg==", "dev": true, "dependencies": { - "call-bind": "^1.0.2", + "call-bind": "^1.0.8", "for-each": "^0.3.3", - "has-proto": "^1.0.1", - "is-typed-array": "^1.1.10" + "gopd": "^1.2.0", + "has-proto": "^1.2.0", + "is-typed-array": "^1.1.14" }, "engines": { "node": ">= 0.4" @@ -6198,16 +6041,18 @@ } }, "node_modules/typed-array-byte-offset": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.0.tgz", - "integrity": "sha512-RD97prjEt9EL8YgAgpOkf3O4IF9lhJFr9g0htQkm0rchFp/Vx7LW5Q8fSXXub7BXAODyUQohRMyOc3faCPd0hg==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.4.tgz", + "integrity": "sha512-bTlAFB/FBYMcuX81gbL4OcpH5PmlFHqlCCpAl8AlEzMz5k53oNDvN8p1PNOWLEmI2x4orp3raOFB51tv9X+MFQ==", "dev": true, "dependencies": { - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.2", + "available-typed-arrays": "^1.0.7", + "call-bind": "^1.0.8", "for-each": "^0.3.3", - "has-proto": "^1.0.1", - "is-typed-array": "^1.1.10" + "gopd": "^1.2.0", + "has-proto": "^1.2.0", + "is-typed-array": "^1.1.15", + "reflect.getprototypeof": "^1.0.9" }, "engines": { "node": ">= 0.4" @@ -6217,14 +6062,20 @@ } }, "node_modules/typed-array-length": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz", - "integrity": "sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==", + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.7.tgz", + "integrity": "sha512-3KS2b+kL7fsuk/eJZ7EQdnEmQoaho/r6KUef7hxvltNA5DR8NAUM+8wJMbJyZ4G9/7i3v5zPBIMN5aybAh2/Jg==", "dev": true, "dependencies": { - "call-bind": "^1.0.2", + "call-bind": "^1.0.7", "for-each": "^0.3.3", - "is-typed-array": "^1.1.9" + "gopd": "^1.0.1", + "is-typed-array": "^1.1.13", + "possible-typed-array-names": "^1.0.0", + "reflect.getprototypeof": "^1.0.6" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -6262,9 +6113,9 @@ } }, "node_modules/typedoc-plugin-markdown": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/typedoc-plugin-markdown/-/typedoc-plugin-markdown-4.4.0.tgz", - "integrity": "sha512-4207DYcxJGWQRrEVTza7XkIo7ldhuEzJBaZO6dX5ogUGlvWeRTo4uiN+R1F11ttJGh4toLtxrpoi2wTTP+nEwA==", + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/typedoc-plugin-markdown/-/typedoc-plugin-markdown-4.4.1.tgz", + "integrity": "sha512-fx23nSCvewI9IR8lzIYtzDphETcgTDuxKcmHKGD4lo36oexC+B1k4NaCOY58Snqb4OlE8OXDAGVcQXYYuLRCNw==", "dev": true, "engines": { "node": ">= 18" @@ -6317,15 +6168,18 @@ "dev": true }, "node_modules/unbox-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", - "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.1.0.tgz", + "integrity": "sha512-nWJ91DjeOkej/TA8pXQ3myruKpKEYgqvpw9lz4OPHj/NWFNluYrjbz9j01CJ8yKQd2g4jFoOkINCTW2I5LEEyw==", "dev": true, "dependencies": { - "call-bind": "^1.0.2", + "call-bound": "^1.0.3", "has-bigints": "^1.0.2", - "has-symbols": "^1.0.3", - "which-boxed-primitive": "^1.0.2" + "has-symbols": "^1.1.0", + "which-boxed-primitive": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -6337,19 +6191,10 @@ "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", "dev": true }, - "node_modules/untildify": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/untildify/-/untildify-4.0.0.tgz", - "integrity": "sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/update-browserslist-db": { - "version": "1.0.13", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz", - "integrity": "sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.1.tgz", + "integrity": "sha512-R8UzCaa9Az+38REPiJ1tXlImTJXlVfgHZsglwBD/k6nj76ctsH1E3q4doGrukiLQd3sGQYu56r5+lo5r94l29A==", "dev": true, "funding": [ { @@ -6366,8 +6211,8 @@ } ], "dependencies": { - "escalade": "^3.1.1", - "picocolors": "^1.0.0" + "escalade": "^3.2.0", + "picocolors": "^1.1.0" }, "bin": { "update-browserslist-db": "cli.js" @@ -6428,16 +6273,70 @@ } }, "node_modules/which-boxed-primitive": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.1.1.tgz", + "integrity": "sha512-TbX3mj8n0odCBFVlY8AxkqcHASw3L60jIuF8jFP78az3C2YhmGvqbHBpAjTRH2/xqYunrJ9g1jSyjCjpoWzIAA==", + "dev": true, + "dependencies": { + "is-bigint": "^1.1.0", + "is-boolean-object": "^1.2.1", + "is-number-object": "^1.1.1", + "is-string": "^1.1.1", + "is-symbol": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-builtin-type": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/which-builtin-type/-/which-builtin-type-1.2.1.tgz", + "integrity": "sha512-6iBczoX+kDQ7a3+YJBnh3T+KZRxM/iYNPXicqk66/Qfm1b93iu+yOImkg0zHbj5LNOcNv1TEADiZ0xa34B4q6Q==", + "dev": true, + "dependencies": { + "call-bound": "^1.0.2", + "function.prototype.name": "^1.1.6", + "has-tostringtag": "^1.0.2", + "is-async-function": "^2.0.0", + "is-date-object": "^1.1.0", + "is-finalizationregistry": "^1.1.0", + "is-generator-function": "^1.0.10", + "is-regex": "^1.2.1", + "is-weakref": "^1.0.2", + "isarray": "^2.0.5", + "which-boxed-primitive": "^1.1.0", + "which-collection": "^1.0.2", + "which-typed-array": "^1.1.16" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-builtin-type/node_modules/isarray": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", + "dev": true + }, + "node_modules/which-collection": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", - "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", + "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.2.tgz", + "integrity": "sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw==", "dev": true, "dependencies": { - "is-bigint": "^1.0.1", - "is-boolean-object": "^1.1.0", - "is-number-object": "^1.0.4", - "is-string": "^1.0.5", - "is-symbol": "^1.0.3" + "is-map": "^2.0.3", + "is-set": "^2.0.3", + "is-weakmap": "^2.0.2", + "is-weakset": "^2.0.3" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -6450,16 +6349,17 @@ "dev": true }, "node_modules/which-typed-array": { - "version": "1.1.13", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.13.tgz", - "integrity": "sha512-P5Nra0qjSncduVPEAr7xhoF5guty49ArDTwzJ/yNuPIbZppyRxFQsRCWrocxIY+CnMVG+qfbU2FmDKyvSGClow==", + "version": "1.1.18", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.18.tgz", + "integrity": "sha512-qEcY+KJYlWyLH9vNbsr6/5j59AXk5ni5aakf8ldzBvGde6Iz4sxZGkJyWSAueTG7QhOvNRYb1lDdFmL5Td0QKA==", "dev": true, "dependencies": { - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.4", + "available-typed-arrays": "^1.0.7", + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-tostringtag": "^1.0.0" + "gopd": "^1.2.0", + "has-tostringtag": "^1.0.2" }, "engines": { "node": ">= 0.4" diff --git a/package.json b/package.json index 4bca33c..24eda2f 100644 --- a/package.json +++ b/package.json @@ -46,29 +46,26 @@ "parallel-transform": "1.2.0" }, "devDependencies": { - "@types/mocha": "10.0.6", + "@types/mocha": "10.0.10", "@types/node": "20.10.4", "@types/parallel-transform": "1.1.4", - "@typescript-eslint/eslint-plugin": "6.13.2", - "@typescript-eslint/parser": "6.13.2", + "@typescript-eslint/eslint-plugin": "8.19.0", + "@typescript-eslint/parser": "8.19.0", "assert": "2.1.0", - "eslint": "8.55.0", + "eslint": "8.57.1", "eslint-config-prettier": "9.1.0", - "eslint-import-resolver-typescript": "3.6.1", - "eslint-plugin-import": "2.29.0", - "eslint-plugin-mocha": "10.2.0", + "eslint-import-resolver-typescript": "3.7.0", + "eslint-plugin-import": "2.31.0", + "eslint-plugin-mocha": "10.5.0", "eslint-plugin-node": "11.1.0", - "eslint-plugin-prettier": "5.0.1", + "eslint-plugin-prettier": "5.2.1", "mocha": "11.0.1", - "nyc": "15.1.0", - "prettier": "3.1.0", + "nyc": "17.1.0", + "prettier": "3.4.2", "slow-stream": "0.0.4", "tsx": "4.19.2", "typedoc": "0.27.6", - "typedoc-plugin-markdown": "4.4.0", + "typedoc-plugin-markdown": "4.4.1", "typescript": "5.7.2" - }, - "prettier": { - "printWidth": 120 } } diff --git a/src/@types/cyclist.d.ts b/src/@types/cyclist.d.ts index 44c950c..c7817c3 100644 --- a/src/@types/cyclist.d.ts +++ b/src/@types/cyclist.d.ts @@ -1,13 +1,13 @@ declare module "cyclist" { - function Cyclist(size: number): Cyclist; + function Cyclist(size: number): Cyclist; - export class Cyclist { - constructor(size: number); + export class Cyclist { + constructor(size: number); - put(index: number, val: unknown): number; - get(index: number): unknown; - del(index: number): unknown; - } + put(index: number, val: unknown): number; + get(index: number): unknown; + del(index: number): unknown; + } - export = Cyclist; + export = Cyclist; } diff --git a/src/accumulateData.ts b/src/accumulateData.ts index 82ed162..603004f 100644 --- a/src/accumulateData.ts +++ b/src/accumulateData.ts @@ -1,41 +1,41 @@ -import { Transform, TransformOptions } from "stream"; +import {Transform, TransformOptions} from "stream"; -export type AccumulateDataOptions = TransformOptions & { accumulator?: TAcc }; +export type AccumulateDataOptions = TransformOptions & {accumulator?: TAcc}; export type AccumulateDataCallback = ( - acc: TAcc, - data: TInput, - flush: (data: TOutput) => void, + acc: TAcc, + data: TInput, + flush: (data: TOutput) => void, ) => TAcc; export function accumulateData( - accumulate: AccumulateDataCallback, - options: AccumulateDataOptions = {}, + accumulate: AccumulateDataCallback, + options: AccumulateDataOptions = {}, ): NodeJS.ReadWriteStream { - const { accumulator, ...rest } = options; - let acc = (accumulator === undefined ? null : accumulator) as TAcc; - let flushed = false; + const {accumulator, ...rest} = options; + let acc = (accumulator === undefined ? null : accumulator) as TAcc; + let flushed = false; - return new Transform({ - objectMode: true, - ...rest, - transform: async function (chunk, encoding, callback) { - try { - flushed = false; - acc = await accumulate(acc, chunk, (data: TOutput) => { - flushed = true; - this.push(data); - }); + return new Transform({ + objectMode: true, + ...rest, + transform: async function (chunk, encoding, callback) { + try { + flushed = false; + acc = await accumulate(acc, chunk, (data: TOutput) => { + flushed = true; + this.push(data); + }); - callback(); - } catch (e) { - callback(e as Error); - } - }, - flush(callback) { - if (!flushed) { - this.push(acc); - } - callback(); - }, - }); + callback(); + } catch (e) { + callback(e as Error); + } + }, + flush(callback) { + if (!flushed) { + this.push(acc); + } + callback(); + }, + }); } diff --git a/src/compose.ts b/src/compose.ts index b196278..5e5b4b6 100644 --- a/src/compose.ts +++ b/src/compose.ts @@ -1,35 +1,35 @@ -import { parseArgs } from "./utils/parseArgs"; -import { wrapStreams } from "./utils/wrapStreams"; -import { isReadableStream } from "./utils/isReadableStream"; -import { decorateWithAsyncIterator } from "./utils/decorateWithAsyncIterator"; -import { pipeStreamsTogether } from "./utils/pipeStreamsTogether"; -import { AnyStream, PipeableStreams } from "./types"; -import { Readable, TransformOptions } from "stream"; +import {parseArgs} from "./utils/parseArgs"; +import {wrapStreams} from "./utils/wrapStreams"; +import {isReadableStream} from "./utils/isReadableStream"; +import {decorateWithAsyncIterator} from "./utils/decorateWithAsyncIterator"; +import {pipeStreamsTogether} from "./utils/pipeStreamsTogether"; +import {AnyStream, PipeableStreams} from "./types"; +import {Readable, TransformOptions} from "stream"; export type ComposeOptions = TransformOptions; // eslint-disable-next-line @typescript-eslint/no-unused-vars type ComposeReturn = TLast extends Readable - ? NodeJS.ReadWriteStream & Readable - : NodeJS.ReadWriteStream; + ? NodeJS.ReadWriteStream & Readable + : NodeJS.ReadWriteStream; export function compose( - ...args: PipeableStreams + ...args: PipeableStreams ): ComposeReturn { - const { params: streams, options } = parseArgs(args); + const {params: streams, options} = parseArgs(args); - const { first, last, wrapper } = wrapStreams(streams, options); + const {first, last, wrapper} = wrapStreams(streams, options); - if (isReadableStream(last)) { - decorateWithAsyncIterator(wrapper as Readable); - } + if (isReadableStream(last)) { + decorateWithAsyncIterator(wrapper as Readable); + } - if (wrapper !== last && wrapper !== first) { - last.on("finish", () => wrapper.emit("finish")); // Needed by nodejs 12 and previous - last.on("close", () => wrapper.emit("close")); - } + if (wrapper !== last && wrapper !== first) { + last.on("finish", () => wrapper.emit("finish")); // Needed by nodejs 12 and previous + last.on("close", () => wrapper.emit("close")); + } - pipeStreamsTogether(streams, wrapper); + pipeStreamsTogether(streams, wrapper); - return wrapper as ComposeReturn; + return wrapper as ComposeReturn; } diff --git a/src/concatStreams.ts b/src/concatStreams.ts index 494fee5..9dbd416 100644 --- a/src/concatStreams.ts +++ b/src/concatStreams.ts @@ -1,58 +1,58 @@ -import { PassThrough, TransformOptions } from "stream"; -import { parseArgs } from "./utils/parseArgs"; +import {PassThrough, TransformOptions} from "stream"; +import {parseArgs} from "./utils/parseArgs"; type NextStreamCallback = () => Promise | NodeJS.ReadableStream | null; class StreamArrayCursor { - private array: Array; - private cpt: number; + private array: Array; + private cpt: number; - constructor(array: Array) { - this.array = array; - this.cpt = 0; - } + constructor(array: Array) { + this.array = array; + this.cpt = 0; + } - next() { - return this.array[this.cpt++]; - } + next() { + return this.array[this.cpt++]; + } } export function concatStreams( - ...args: - | [...streams: NodeJS.ReadableStream[]] - | [...streams: NodeJS.ReadableStream[], options: TransformOptions] - | [next: NextStreamCallback] - | [next: NextStreamCallback, options: TransformOptions] + ...args: + | [...streams: NodeJS.ReadableStream[]] + | [...streams: NodeJS.ReadableStream[], options: TransformOptions] + | [next: NextStreamCallback] + | [next: NextStreamCallback, options: TransformOptions] ): NodeJS.ReadWriteStream { - const { params, options } = parseArgs(args); - const cursor = asCursor(params); - const passThrough = new PassThrough({ objectMode: true, ...options }); - passThrough.setMaxListeners(0); - - async function concat() { - const stream = await cursor.next(); - if (!stream) { - return passThrough.end(); + const {params, options} = parseArgs(args); + const cursor = asCursor(params); + const passThrough = new PassThrough({objectMode: true, ...options}); + passThrough.setMaxListeners(0); + + async function concat() { + const stream = await cursor.next(); + if (!stream) { + return passThrough.end(); + } + + stream.on("error", (e: Error) => passThrough.emit("error", e)); + stream.on("end", () => concat()); + stream.pipe(passThrough, {end: false}); } - stream.on("error", (e: Error) => passThrough.emit("error", e)); - stream.on("end", () => concat()); - stream.pipe(passThrough, { end: false }); - } + concat(); - concat(); - - return passThrough; + return passThrough; } function isFunction(streams: (NodeJS.ReadableStream | NextStreamCallback)[]) { - return streams.length === 1 && typeof streams[0] === "function"; + return streams.length === 1 && typeof streams[0] === "function"; } function asCursor(value: (NodeJS.ReadableStream | NextStreamCallback)[]) { - if (isFunction(value)) { - const callbacks = value as NextStreamCallback[]; - return { next: callbacks[0] }; - } - return new StreamArrayCursor(value as NodeJS.ReadableStream[]); + if (isFunction(value)) { + const callbacks = value as NextStreamCallback[]; + return {next: callbacks[0]}; + } + return new StreamArrayCursor(value as NodeJS.ReadableStream[]); } diff --git a/src/filterData.ts b/src/filterData.ts index 46c4d41..db01b4c 100644 --- a/src/filterData.ts +++ b/src/filterData.ts @@ -1,9 +1,9 @@ -import { TransformDataCallback, transformData, TransformDataOptions } from "./transformData"; -import { Transform } from "node:stream"; +import {TransformDataCallback, transformData, TransformDataOptions} from "./transformData"; +import {Transform} from "node:stream"; export function filterData( - filter: TransformDataCallback, - options: TransformDataOptions = {}, + filter: TransformDataCallback, + options: TransformDataOptions = {}, ): Transform { - return transformData((data) => data, { ...options, filter }); + return transformData((data) => data, {...options, filter}); } diff --git a/src/flattenArray.ts b/src/flattenArray.ts index 85d7f92..64d95e0 100644 --- a/src/flattenArray.ts +++ b/src/flattenArray.ts @@ -1,46 +1,46 @@ -import { Transform, TransformCallback, TransformOptions } from "stream"; +import {Transform, TransformCallback, TransformOptions} from "stream"; /** * Inspired by https://stackoverflow.com/a/43811543/122975 */ class TransformArray extends Transform { - private _resumeTransform: (() => void) | null; + private _resumeTransform: (() => void) | null; - constructor(options?: TransformOptions) { - super(options); - this._resumeTransform = null; - } + constructor(options?: TransformOptions) { + super(options); + this._resumeTransform = null; + } - _transform(chunk: Array | T, encoding: BufferEncoding, callback: TransformCallback) { - const array = Array.isArray(chunk) ? chunk : [chunk]; - let index = 0; - const pushArrayItems = () => { - while (index < array.length) { - const item = array[index++]; - const backpressure = !this.push(item); - if (backpressure) { - //Stop pushing items and prepare process to be resumed when read function will be called again. - this._resumeTransform = pushArrayItems; - return; - } - } + _transform(chunk: Array | T, encoding: BufferEncoding, callback: TransformCallback) { + const array = Array.isArray(chunk) ? chunk : [chunk]; + let index = 0; + const pushArrayItems = () => { + while (index < array.length) { + const item = array[index++]; + const backpressure = !this.push(item); + if (backpressure) { + //Stop pushing items and prepare process to be resumed when read function will be called again. + this._resumeTransform = pushArrayItems; + return; + } + } - this._resumeTransform = null; - return callback(); - }; + this._resumeTransform = null; + return callback(); + }; - //Start pushing array items - pushArrayItems(); - } - _read(size: number) { - if (this._resumeTransform !== null) { - //Ensure every items from the previous transform has been pushed - this._resumeTransform(); + //Start pushing array items + pushArrayItems(); + } + _read(size: number) { + if (this._resumeTransform !== null) { + //Ensure every items from the previous transform has been pushed + this._resumeTransform(); + } + super._read(size); } - super._read(size); - } } export function flattenArray(options: TransformOptions = {}): Transform { - return new TransformArray({ objectMode: true, ...options }); + return new TransformArray({objectMode: true, ...options}); } diff --git a/src/groupData.ts b/src/groupData.ts index 456c4b5..54f470c 100644 --- a/src/groupData.ts +++ b/src/groupData.ts @@ -1,19 +1,19 @@ -import { accumulateData, AccumulateDataOptions } from "./accumulateData"; +import {accumulateData, AccumulateDataOptions} from "./accumulateData"; -export type GroupDataOptions = { size?: number } & AccumulateDataOptions>; +export type GroupDataOptions = {size?: number} & AccumulateDataOptions>; export function groupData(options: GroupDataOptions = {}): NodeJS.ReadWriteStream { - return accumulateData, Array>( - (acc, data, flush) => { - const group = [...acc, data]; - const groupSize = options.size || 1; - if (group.length === groupSize) { - flush(group); - return []; - } else { - return group; - } - }, - { ...options, accumulator: [] }, - ); + return accumulateData, Array>( + (acc, data, flush) => { + const group = [...acc, data]; + const groupSize = options.size || 1; + if (group.length === groupSize) { + flush(group); + return []; + } else { + return group; + } + }, + {...options, accumulator: []}, + ); } diff --git a/src/index.ts b/src/index.ts index 9914ecc..571f925 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,33 +1,33 @@ -import { accumulateData } from "./accumulateData"; -import { compose } from "./compose"; -import { concatStreams } from "./concatStreams"; -import { filterData } from "./filterData"; -import { flattenArray } from "./flattenArray"; -import { groupData } from "./groupData"; -import { mergeStreams } from "./mergeStreams"; -import { oleoduc } from "./oleoduc"; -import { readLineByLine } from "./readLineByLine"; -import { transformData } from "./transformData"; -import { transformIntoCSV } from "./transformIntoCSV"; -import { transformIntoJSON } from "./transformIntoJSON"; -import { transformStream } from "./transformStream"; -import { writeData } from "./writeData"; -import { writeToStdout } from "./writeToStdout"; +import {accumulateData} from "./accumulateData"; +import {compose} from "./compose"; +import {concatStreams} from "./concatStreams"; +import {filterData} from "./filterData"; +import {flattenArray} from "./flattenArray"; +import {groupData} from "./groupData"; +import {mergeStreams} from "./mergeStreams"; +import {oleoduc} from "./oleoduc"; +import {readLineByLine} from "./readLineByLine"; +import {transformData} from "./transformData"; +import {transformIntoCSV} from "./transformIntoCSV"; +import {transformIntoJSON} from "./transformIntoJSON"; +import {transformStream} from "./transformStream"; +import {writeData} from "./writeData"; +import {writeToStdout} from "./writeToStdout"; export { - accumulateData, - compose, - concatStreams, - filterData, - flattenArray, - groupData, - mergeStreams, - oleoduc, - readLineByLine, - transformData, - transformIntoCSV, - transformIntoJSON, - transformStream, - writeData, - writeToStdout, + accumulateData, + compose, + concatStreams, + filterData, + flattenArray, + groupData, + mergeStreams, + oleoduc, + readLineByLine, + transformData, + transformIntoCSV, + transformIntoJSON, + transformStream, + writeData, + writeToStdout, }; diff --git a/src/mergeStreams.ts b/src/mergeStreams.ts index 170670b..c504e65 100644 --- a/src/mergeStreams.ts +++ b/src/mergeStreams.ts @@ -1,36 +1,36 @@ -import { PassThrough, Transform } from "stream"; -import { decorateWithAsyncIterator } from "./utils/decorateWithAsyncIterator"; -import { parseArgs } from "./utils/parseArgs"; -import { StreamOptions } from "node:stream"; +import {PassThrough, Transform} from "stream"; +import {decorateWithAsyncIterator} from "./utils/decorateWithAsyncIterator"; +import {parseArgs} from "./utils/parseArgs"; +import {StreamOptions} from "node:stream"; export function mergeStreams( - ...args: - | [...streams: NodeJS.ReadableStream[]] - | [...streams: NodeJS.ReadableStream[], options: StreamOptions] + ...args: + | [...streams: NodeJS.ReadableStream[]] + | [...streams: NodeJS.ReadableStream[], options: StreamOptions] ): NodeJS.ReadableStream { - const { params: streams, options } = parseArgs(args); - const last = streams[streams.length - 1]; - const passThrough = new PassThrough(options); - passThrough.setMaxListeners(0); - let cpt = streams.length; + const {params: streams, options} = parseArgs(args); + const last = streams[streams.length - 1]; + const passThrough = new PassThrough(options); + passThrough.setMaxListeners(0); + let cpt = streams.length; - streams.forEach((s) => pipeStream(s)); + streams.forEach((s) => pipeStream(s)); - async function pipeStream(obj: unknown) { - const stream = typeof obj === "function" ? await obj() : obj; - stream.on("error", (e: Error) => passThrough.emit("error", e)); - stream.once("end", () => { - if (--cpt === 0) { - passThrough.end(); - } - }); + async function pipeStream(obj: unknown) { + const stream = typeof obj === "function" ? await obj() : obj; + stream.on("error", (e: Error) => passThrough.emit("error", e)); + stream.once("end", () => { + if (--cpt === 0) { + passThrough.end(); + } + }); - stream.pipe(passThrough, { end: false }); - } + stream.pipe(passThrough, {end: false}); + } - if (last.readable) { - decorateWithAsyncIterator(passThrough); - } + if (last.readable) { + decorateWithAsyncIterator(passThrough); + } - return passThrough; + return passThrough; } diff --git a/src/oleoduc.ts b/src/oleoduc.ts index db7112d..3d22f33 100644 --- a/src/oleoduc.ts +++ b/src/oleoduc.ts @@ -1,26 +1,26 @@ -import { parseArgs } from "./utils/parseArgs"; -import { AnyStream, PipeableStreams } from "./types"; -import { wrapStreams } from "./utils/wrapStreams"; -import { pipeStreamsTogether } from "./utils/pipeStreamsTogether"; -import { TransformOptions } from "stream"; +import {parseArgs} from "./utils/parseArgs"; +import {AnyStream, PipeableStreams} from "./types"; +import {wrapStreams} from "./utils/wrapStreams"; +import {pipeStreamsTogether} from "./utils/pipeStreamsTogether"; +import {TransformOptions} from "stream"; export type OleoducOptions = TransformOptions; export function oleoduc( - ...args: PipeableStreams + ...args: PipeableStreams ): Promise { - const { params: streams, options } = parseArgs(args); + const {params: streams, options} = parseArgs(args); - if (streams.length === 0) { - throw new Error("You must provide at least one stream"); - } + if (streams.length === 0) { + throw new Error("You must provide at least one stream"); + } - const { wrapper, last } = wrapStreams(streams, options); - pipeStreamsTogether(streams, wrapper); + const {wrapper, last} = wrapStreams(streams, options); + pipeStreamsTogether(streams, wrapper); - return new Promise((resolve, reject) => { - wrapper.on("error", (e) => reject(e)); - last.on("finish", resolve); // Needed by nodejs 12 and previous - last.on("close", resolve); - }); + return new Promise((resolve, reject) => { + wrapper.on("error", (e) => reject(e)); + last.on("finish", resolve); // Needed by nodejs 12 and previous + last.on("close", resolve); + }); } diff --git a/src/readLineByLine.ts b/src/readLineByLine.ts index 3f4d5a6..d2ce443 100644 --- a/src/readLineByLine.ts +++ b/src/readLineByLine.ts @@ -1,24 +1,24 @@ -import { accumulateData } from "./accumulateData"; -import { flattenArray } from "./flattenArray"; -import { compose } from "./compose"; +import {accumulateData} from "./accumulateData"; +import {flattenArray} from "./flattenArray"; +import {compose} from "./compose"; export function readLineByLine() { - return compose( - accumulateData( - (acc, data: string, flush) => { - const lines = data.toString().split(/\r?\n/); - const rest = lines.pop() || ""; + return compose( + accumulateData( + (acc, data: string, flush) => { + const lines = data.toString().split(/\r?\n/); + const rest = lines.pop() || ""; - if (lines.length > 0) { - lines[0] = acc + lines[0]; - flush(lines); - return rest; - } + if (lines.length > 0) { + lines[0] = acc + lines[0]; + flush(lines); + return rest; + } - return acc + rest; - }, - { accumulator: "", readableObjectMode: true, writableObjectMode: false }, - ), - flattenArray(), - ); + return acc + rest; + }, + {accumulator: "", readableObjectMode: true, writableObjectMode: false}, + ), + flattenArray(), + ); } diff --git a/src/transformData.ts b/src/transformData.ts index c0b2f95..7611f4c 100644 --- a/src/transformData.ts +++ b/src/transformData.ts @@ -1,30 +1,30 @@ import transform from "parallel-transform"; -import { Transform, TransformOptions } from "node:stream"; -import { TransformCallback } from "stream"; +import {Transform, TransformOptions} from "node:stream"; +import {TransformCallback} from "stream"; export type TransformDataCallback = (data: TInput) => Promise | TOutput; export type TransformDataOptions = { - filter?: TransformDataCallback; - parallel?: number; + filter?: TransformDataCallback; + parallel?: number; } & TransformOptions; export function transformData( - callback: TransformDataCallback, - options: TransformDataOptions = {}, + callback: TransformDataCallback, + options: TransformDataOptions = {}, ): Transform { - const { filter, parallel, ...rest } = options; - const filterChunk = (value: TInput) => !filter || filter(value); - const maxParallel = parallel || 1; + const {filter, parallel, ...rest} = options; + const filterChunk = (value: TInput) => !filter || filter(value); + const maxParallel = parallel || 1; - return transform(maxParallel, { objectMode: true, ...rest }, async (chunk: TInput, cb: TransformCallback) => { - try { - if (!(await filterChunk(chunk))) { - return cb(null, null); - } - const res = await callback(chunk); - cb(null, res); - } catch (e) { - cb(e as Error); - } - }); + return transform(maxParallel, {objectMode: true, ...rest}, async (chunk: TInput, cb: TransformCallback) => { + try { + if (!(await filterChunk(chunk))) { + return cb(null, null); + } + const res = await callback(chunk); + cb(null, res); + } catch (e) { + cb(e as Error); + } + }); } diff --git a/src/transformIntoCSV.ts b/src/transformIntoCSV.ts index 81116cd..3b6fcfe 100644 --- a/src/transformIntoCSV.ts +++ b/src/transformIntoCSV.ts @@ -1,57 +1,57 @@ -import { Transform, TransformOptions } from "stream"; +import {Transform, TransformOptions} from "stream"; export type TransformIntoCSVOptions = TransformOptions & { - columns?: Record Promise | AllowedCSVType>; - bom?: boolean; - mapper?: ValueMapper; - separator?: string; + columns?: Record Promise | AllowedCSVType>; + bom?: boolean; + mapper?: ValueMapper; + separator?: string; }; type AllowedCSVType = string | number; type ValueMapper = (value: AllowedCSVType) => AllowedCSVType; export function transformIntoCSV>( - options: TransformIntoCSVOptions = {}, + options: TransformIntoCSVOptions = {}, ): Transform { - const bom = options.bom; - const separator = options.separator || ";"; - const columns = options.columns; - const mapper: ValueMapper = options.mapper || ((v) => v); + const bom = options.bom; + const separator = options.separator || ";"; + const columns = options.columns; + const mapper: ValueMapper = options.mapper || ((v) => v); - function generateColumnNames(chunk: TInput) { - return Object.keys(columns || chunk) - .map(mapper) - .join(separator); - } - - async function generateColumnValues(chunk: TInput) { - let values: AllowedCSVType[]; - if (!columns) { - values = Object.values(chunk) as AllowedCSVType[]; - } else { - const columnNames = Object.keys(columns); - values = await Promise.all(columnNames.map((name) => columns[name](chunk))); + function generateColumnNames(chunk: TInput) { + return Object.keys(columns || chunk) + .map(mapper) + .join(separator); } - return values.map(mapper).join(separator); - } - - let lines = 0; - return new Transform({ - objectMode: true, - transform: async function (chunk: TInput, encoding, cb) { - try { - if (lines++ === 0) { - if (bom) { - this.push("\ufeff"); - } - this.push(`${generateColumnNames(chunk)}\n`); + async function generateColumnValues(chunk: TInput) { + let values: AllowedCSVType[]; + if (!columns) { + values = Object.values(chunk) as AllowedCSVType[]; + } else { + const columnNames = Object.keys(columns); + values = await Promise.all(columnNames.map((name) => columns[name](chunk))); } - this.push(`${await generateColumnValues(chunk)}\n`); - cb(); - } catch (e) { - cb(e as Error); - } - }, - }); + return values.map(mapper).join(separator); + } + + let lines = 0; + return new Transform({ + objectMode: true, + transform: async function (chunk: TInput, encoding, cb) { + try { + if (lines++ === 0) { + if (bom) { + this.push("\ufeff"); + } + this.push(`${generateColumnNames(chunk)}\n`); + } + + this.push(`${await generateColumnValues(chunk)}\n`); + cb(); + } catch (e) { + cb(e as Error); + } + }, + }); } diff --git a/src/transformIntoJSON.ts b/src/transformIntoJSON.ts index de7fab6..2bbc449 100644 --- a/src/transformIntoJSON.ts +++ b/src/transformIntoJSON.ts @@ -1,57 +1,57 @@ -import { Transform, TransformOptions } from "stream"; +import {Transform, TransformOptions} from "stream"; export type TransformIntoJSONOptions = TransformOptions & { - arrayPropertyName?: string; - arrayWrapper?: Record; + arrayPropertyName?: string; + arrayWrapper?: Record; }; const DEFAULT_ARRAY_PROPERTY_NAME = "items"; export function transformIntoJSON(options: TransformIntoJSONOptions = {}): Transform { - let chunksSent = 0; - return new Transform({ - readableObjectMode: false, - writableObjectMode: true, - transform: function (chunk: TInput, encoding, callback) { - const shouldWrap = options.arrayWrapper || options.arrayPropertyName; - if (chunksSent === 0) { - if (shouldWrap) { - let value = JSON.stringify(options.arrayWrapper || {}); - value = value.substring(0, value.length - 1); - const comma = options.arrayWrapper ? "," : ""; - value += String(`${comma}"${options.arrayPropertyName || DEFAULT_ARRAY_PROPERTY_NAME}":[`); - this.push(value); - } else { - this.push("["); - } - } + let chunksSent = 0; + return new Transform({ + readableObjectMode: false, + writableObjectMode: true, + transform: function (chunk: TInput, encoding, callback) { + const shouldWrap = options.arrayWrapper || options.arrayPropertyName; + if (chunksSent === 0) { + if (shouldWrap) { + let value = JSON.stringify(options.arrayWrapper || {}); + value = value.substring(0, value.length - 1); + const comma = options.arrayWrapper ? "," : ""; + value += String(`${comma}"${options.arrayPropertyName || DEFAULT_ARRAY_PROPERTY_NAME}":[`); + this.push(value); + } else { + this.push("["); + } + } - if (chunksSent++ > 0) { - this.push(","); - } + if (chunksSent++ > 0) { + this.push(","); + } - this.push(JSON.stringify(chunk)); - callback(); - }, - flush: function (callback) { - const shouldWrap = options.arrayWrapper || options.arrayPropertyName; + this.push(JSON.stringify(chunk)); + callback(); + }, + flush: function (callback) { + const shouldWrap = options.arrayWrapper || options.arrayPropertyName; - if (chunksSent === 0) { - //nothing sent - if (shouldWrap) { - const value = options.arrayWrapper || {}; - value[options.arrayPropertyName || DEFAULT_ARRAY_PROPERTY_NAME] = []; - this.push(JSON.stringify(value)); - } else { - this.push("[]"); - } - } else { - //Close json properly - this.push("]"); - if (shouldWrap) { - this.push("}"); - } - } - return callback(); - }, - }); + if (chunksSent === 0) { + //nothing sent + if (shouldWrap) { + const value = options.arrayWrapper || {}; + value[options.arrayPropertyName || DEFAULT_ARRAY_PROPERTY_NAME] = []; + this.push(JSON.stringify(value)); + } else { + this.push("[]"); + } + } else { + //Close json properly + this.push("]"); + if (shouldWrap) { + this.push("}"); + } + } + return callback(); + }, + }); } diff --git a/src/transformStream.ts b/src/transformStream.ts index 72a2bd7..c9d178d 100644 --- a/src/transformStream.ts +++ b/src/transformStream.ts @@ -1,51 +1,51 @@ -import { Transform, TransformCallback } from "stream"; -import { TransformOptions } from "node:stream"; +import {Transform, TransformCallback} from "stream"; +import {TransformOptions} from "node:stream"; export type TransformStreamCallback = ( - data: TInput, + data: TInput, ) => Promise | TOutput; class TransformStream extends Transform { - private callback: TransformStreamCallback; - private _current: NodeJS.ReadableStream | null; + private callback: TransformStreamCallback; + private _current: NodeJS.ReadableStream | null; - constructor(callback: TransformStreamCallback, options?: TransformOptions) { - super(options); - this.callback = callback; - this._current = null; - } + constructor(callback: TransformStreamCallback, options?: TransformOptions) { + super(options); + this.callback = callback; + this._current = null; + } - _transform(chunk: TInput, encoding: BufferEncoding, cb: TransformCallback) { - Promise.resolve(this.callback(chunk)) - .then((stream) => { - stream.on("error", (err: Error) => this.emit("error", err)); - stream.on("data", (data) => { - this._current = stream; - const backpressure = !this.push(data); - if (backpressure) { - stream.pause(); - } - }); - stream.on("end", () => { - this._current = null; - cb(); - }); - }) - .catch(cb); - } + _transform(chunk: TInput, encoding: BufferEncoding, cb: TransformCallback) { + Promise.resolve(this.callback(chunk)) + .then((stream) => { + stream.on("error", (err: Error) => this.emit("error", err)); + stream.on("data", (data) => { + this._current = stream; + const backpressure = !this.push(data); + if (backpressure) { + stream.pause(); + } + }); + stream.on("end", () => { + this._current = null; + cb(); + }); + }) + .catch(cb); + } - async _read(size: number) { - if (this._current) { - //Ensure every chunks has been consumed from the previous transform - this._current.resume(); + async _read(size: number) { + if (this._current) { + //Ensure every chunks has been consumed from the previous transform + this._current.resume(); + } + super._read(size); } - super._read(size); - } } export function transformStream( - callback: TransformStreamCallback, - options: TransformOptions = {}, + callback: TransformStreamCallback, + options: TransformOptions = {}, ) { - return new TransformStream(callback, { objectMode: true, ...options }); + return new TransformStream(callback, {objectMode: true, ...options}); } diff --git a/src/types.ts b/src/types.ts index 3e08c8f..840d21b 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,7 +1,7 @@ export type AnyStream = NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream; export type PipeableStreams = - | [first: TFirstStream] - | [first: TFirstStream, last: TLastStream] - | [first: TFirstStream, ...streams: NodeJS.ReadWriteStream[], last: TLastStream] - | [first: TFirstStream, ...streams: NodeJS.ReadWriteStream[], last: TLastStream, options: TOptions]; + | [first: TFirstStream] + | [first: TFirstStream, last: TLastStream] + | [first: TFirstStream, ...streams: NodeJS.ReadWriteStream[], last: TLastStream] + | [first: TFirstStream, ...streams: NodeJS.ReadWriteStream[], last: TLastStream, options: TOptions]; diff --git a/src/utils/Duplexer.ts b/src/utils/Duplexer.ts index 3530062..72dae29 100644 --- a/src/utils/Duplexer.ts +++ b/src/utils/Duplexer.ts @@ -1,30 +1,30 @@ -import { Duplex, DuplexOptions, Readable, Writable } from "stream"; +import {Duplex, DuplexOptions, Readable, Writable} from "stream"; type DuplexerCallback = (error?: Error | null) => void; export class Duplexer extends Duplex { - private input: Writable; - private output: Readable; + private input: Writable; + private output: Readable; - constructor(input: Writable, output: Readable, options?: DuplexOptions) { - super(options || { writableObjectMode: true, readableObjectMode: true }); - this.input = input; - this.output = output; - this.output.on("end", () => this.push(null)); - this.output.on("data", (chunk) => { - const backpressure = !this.push(chunk); - if (backpressure) { - this.output.pause(); - } - }); - } - _write(chunk: unknown, encoding: BufferEncoding, callback: DuplexerCallback) { - this.input.write(chunk, encoding, callback); - } - _final(callback: DuplexerCallback) { - this.input.end(null, callback); - } - _read() { - this.output.resume(); - } + constructor(input: Writable, output: Readable, options?: DuplexOptions) { + super(options || {writableObjectMode: true, readableObjectMode: true}); + this.input = input; + this.output = output; + this.output.on("end", () => this.push(null)); + this.output.on("data", (chunk) => { + const backpressure = !this.push(chunk); + if (backpressure) { + this.output.pause(); + } + }); + } + _write(chunk: unknown, encoding: BufferEncoding, callback: DuplexerCallback) { + this.input.write(chunk, encoding, callback); + } + _final(callback: DuplexerCallback) { + this.input.end(null, callback); + } + _read() { + this.output.resume(); + } } diff --git a/src/utils/decorateWithAsyncIterator.ts b/src/utils/decorateWithAsyncIterator.ts index 1751281..08dbdf1 100644 --- a/src/utils/decorateWithAsyncIterator.ts +++ b/src/utils/decorateWithAsyncIterator.ts @@ -1,6 +1,6 @@ -import { toAsyncIterator } from "./toAsyncIterator"; -import { Readable } from "stream"; +import {toAsyncIterator} from "./toAsyncIterator"; +import {Readable} from "stream"; export function decorateWithAsyncIterator(stream: Readable) { - stream[Symbol.asyncIterator] = () => toAsyncIterator(stream); + stream[Symbol.asyncIterator] = () => toAsyncIterator(stream); } diff --git a/src/utils/isReadableStream.ts b/src/utils/isReadableStream.ts index 782d7d4..ccf24da 100644 --- a/src/utils/isReadableStream.ts +++ b/src/utils/isReadableStream.ts @@ -1,13 +1,13 @@ -import { Readable } from "stream"; +import {Readable} from "stream"; // eslint-disable-next-line @typescript-eslint/no-explicit-any export function isReadableStream(stream: any): stream is Readable { - return ( - stream !== null && - typeof stream === "object" && - typeof stream.read === "function" && - typeof stream.readable === "boolean" && - typeof stream.pipe === "function" && - typeof stream.on === "function" - ); + return ( + stream !== null && + typeof stream === "object" && + typeof stream.read === "function" && + typeof stream.readable === "boolean" && + typeof stream.pipe === "function" && + typeof stream.on === "function" + ); } diff --git a/src/utils/isWriteableStream.ts b/src/utils/isWriteableStream.ts index 3775338..7538fc3 100644 --- a/src/utils/isWriteableStream.ts +++ b/src/utils/isWriteableStream.ts @@ -1,12 +1,12 @@ -import { Writable } from "stream"; +import {Writable} from "stream"; // eslint-disable-next-line @typescript-eslint/no-explicit-any export function isWritableStream(stream: any): stream is Writable { - return ( - stream !== null && - typeof stream === "object" && - typeof stream.write === "function" && - typeof stream.end === "function" && - typeof stream.writable === "boolean" - ); + return ( + stream !== null && + typeof stream === "object" && + typeof stream.write === "function" && + typeof stream.end === "function" && + typeof stream.writable === "boolean" + ); } diff --git a/src/utils/parseArgs.ts b/src/utils/parseArgs.ts index 71df923..f822483 100644 --- a/src/utils/parseArgs.ts +++ b/src/utils/parseArgs.ts @@ -1,34 +1,34 @@ type Args = { - params: TParams[]; - options: TOptions; + params: TParams[]; + options: TOptions; }; export function parseArgs( - args: [...params: TParams[]] | [...params: TParams[], options: TOptions], - defaults?: Partial, + args: [...params: TParams[]] | [...params: TParams[], options: TOptions], + defaults?: Partial, ): Args { - const last = args[args.length - 1]; + const last = args[args.length - 1]; - let options = {}; - if (isOption(last)) { - options = args.pop() as TOptions; - } + let options = {}; + if (isOption(last)) { + options = args.pop() as TOptions; + } - return { - params: (Array.isArray(args[0]) ? args[0] : args) as TParams[], - options: { - objectMode: true, - ...defaults, - ...options, - } as TOptions, - }; + return { + params: (Array.isArray(args[0]) ? args[0] : args) as TParams[], + options: { + objectMode: true, + ...defaults, + ...options, + } as TOptions, + }; } function isOption(last: unknown): last is TOptions { - return Boolean( - last && - typeof last === "object" && - !Array.isArray(last) && - typeof (last as Record).pipe !== "function", - ); + return Boolean( + last && + typeof last === "object" && + !Array.isArray(last) && + typeof (last as Record).pipe !== "function", + ); } diff --git a/src/utils/pipeStreamsTogether.ts b/src/utils/pipeStreamsTogether.ts index f941562..6d2b398 100644 --- a/src/utils/pipeStreamsTogether.ts +++ b/src/utils/pipeStreamsTogether.ts @@ -1,18 +1,18 @@ -import { AnyStream } from "../types"; -import { Readable, Writable } from "stream"; +import {AnyStream} from "../types"; +import {Readable, Writable} from "stream"; export function pipeStreamsTogether(streams: AnyStream[], wrapper: AnyStream) { - for (const [i, stream] of streams.entries()) { - const next = streams[i + 1]; - if (next) { - // we assume that the oleoduc is correctly configured - const readable = stream as Readable; - const writable = next as Writable; - readable.pipe(writable); - } + for (const [i, stream] of streams.entries()) { + const next = streams[i + 1]; + if (next) { + // we assume that the oleoduc is correctly configured + const readable = stream as Readable; + const writable = next as Writable; + readable.pipe(writable); + } - if (stream !== wrapper) { - stream.on("error", (err) => wrapper.emit("error", err)); + if (stream !== wrapper) { + stream.on("error", (err) => wrapper.emit("error", err)); + } } - } } diff --git a/src/utils/toAsyncIterator.ts b/src/utils/toAsyncIterator.ts index 3b59e20..cb2e08f 100644 --- a/src/utils/toAsyncIterator.ts +++ b/src/utils/toAsyncIterator.ts @@ -1,7 +1,7 @@ -import { Readable } from "stream"; +import {Readable} from "stream"; type ToAsyncIteratorOptions = { - chunkSize?: number; + chunkSize?: number; }; /** @@ -13,30 +13,30 @@ type ToAsyncIteratorOptions = { * @returns {AsyncGenerator<*, void, *>} */ export async function* toAsyncIterator(stream: NodeJS.ReadableStream, options: ToAsyncIteratorOptions = {}) { - const chunkSize = options.chunkSize || 1; + const chunkSize = options.chunkSize || 1; - if (typeof stream.read !== "function") { - //FIXME seems not used - stream = new Readable().wrap(stream); - } + if (typeof stream.read !== "function") { + //FIXME seems not used + stream = new Readable().wrap(stream); + } - let ended = false; - const onEnded = new Promise((res, rej) => { - stream.once("error", rej); - stream.once("end", () => { - ended = true; - res(); + let ended = false; + const onEnded = new Promise((res, rej) => { + stream.once("error", rej); + stream.once("end", () => { + ended = true; + res(); + }); }); - }); - while (!ended) { - const chunk = stream.read(chunkSize); - if (chunk !== null) { - yield chunk; - continue; - } + while (!ended) { + const chunk = stream.read(chunkSize); + if (chunk !== null) { + yield chunk; + continue; + } - const onReadable = new Promise((res) => stream.once("readable", res)); - await Promise.race([onEnded, onReadable]); - } + const onReadable = new Promise((res) => stream.once("readable", res)); + await Promise.race([onEnded, onReadable]); + } } diff --git a/src/utils/wrapStreams.ts b/src/utils/wrapStreams.ts index adb5c71..2dca3df 100644 --- a/src/utils/wrapStreams.ts +++ b/src/utils/wrapStreams.ts @@ -1,29 +1,29 @@ -import { Duplexer } from "./Duplexer"; -import { PassThrough, TransformOptions } from "stream"; -import { isReadableStream } from "./isReadableStream"; -import { isWritableStream } from "./isWriteableStream"; -import { AnyStream } from "../types"; +import {Duplexer} from "./Duplexer"; +import {PassThrough, TransformOptions} from "stream"; +import {isReadableStream} from "./isReadableStream"; +import {isWritableStream} from "./isWriteableStream"; +import {AnyStream} from "../types"; export function wrapStreams(streams: AnyStream[], options: TransformOptions = {}) { - if (streams.length === 0) { - throw new Error("You must provide at least one stream"); - } + if (streams.length === 0) { + throw new Error("You must provide at least one stream"); + } - const first = streams[0]; - const last = streams[streams.length - 1]; + const first = streams[0]; + const last = streams[streams.length - 1]; - let wrapper: AnyStream; - if (first === last) { - wrapper = first; - } else if (isWritableStream(first) && isReadableStream(last)) { - wrapper = new Duplexer(first, last, options); - } else if (isWritableStream(first)) { - wrapper = first; - } else if (isReadableStream(first)) { - wrapper = last; - } else { - wrapper = new PassThrough(options); - } + let wrapper: AnyStream; + if (first === last) { + wrapper = first; + } else if (isWritableStream(first) && isReadableStream(last)) { + wrapper = new Duplexer(first, last, options); + } else if (isWritableStream(first)) { + wrapper = first; + } else if (isReadableStream(first)) { + wrapper = last; + } else { + wrapper = new PassThrough(options); + } - return { first, last, wrapper }; + return {first, last, wrapper}; } diff --git a/src/writeData.ts b/src/writeData.ts index 5a6bebf..3693f00 100644 --- a/src/writeData.ts +++ b/src/writeData.ts @@ -1,127 +1,127 @@ -import { Writable } from "stream"; -import cyclist, { Cyclist } from "cyclist"; -import { WritableOptions } from "node:stream"; +import {Writable} from "stream"; +import cyclist, {Cyclist} from "cyclist"; +import {WritableOptions} from "node:stream"; -export type WriteDataOptions = { parallel?: number }; +export type WriteDataOptions = {parallel?: number}; export type WriteDataCallback = (data: TInput) => void | unknown; -type ParallelWriteOptions = WritableOptions & { ordered?: boolean }; +type ParallelWriteOptions = WritableOptions & {ordered?: boolean}; type ParallelOnWrite = (chunk: TInput, callback: (e?: Error | null, data?: unknown) => void) => void; type ParallelOnDrain = () => void; class ParallelWrite extends Writable { - private _maxParallel: number; - private _onWrite: ParallelOnWrite; - private _destroyed: boolean; - private _flushed: boolean; - private _ordered: boolean; - private _buffer: Cyclist | Array; - private _top: number; - private _bottom: number; - private _ondrain: ParallelOnDrain | null; - - constructor(maxParallel: number, opts: ParallelWriteOptions | null, onWrite: ParallelOnWrite) { - super(); - if (typeof maxParallel === "function") { - onWrite = maxParallel; - opts = null; - maxParallel = 1; - } - if (typeof opts === "function") { - onWrite = opts; - opts = null; + private _maxParallel: number; + private _onWrite: ParallelOnWrite; + private _destroyed: boolean; + private _flushed: boolean; + private _ordered: boolean; + private _buffer: Cyclist | Array; + private _top: number; + private _bottom: number; + private _ondrain: ParallelOnDrain | null; + + constructor(maxParallel: number, opts: ParallelWriteOptions | null, onWrite: ParallelOnWrite) { + super(); + if (typeof maxParallel === "function") { + onWrite = maxParallel; + opts = null; + maxParallel = 1; + } + if (typeof opts === "function") { + onWrite = opts; + opts = null; + } + + if (!opts) opts = {}; + if (!opts.highWaterMark) opts.highWaterMark = Math.max(maxParallel, 16); + if (opts.objectMode !== false) opts.objectMode = true; + + Writable.call(this, opts); + + this._maxParallel = maxParallel; + this._onWrite = onWrite; + this._destroyed = false; + this._flushed = false; + this._ordered = opts.ordered !== false; + this._buffer = this._ordered ? cyclist(maxParallel) : []; + this._top = 0; + this._bottom = 0; + this._ondrain = null; } - if (!opts) opts = {}; - if (!opts.highWaterMark) opts.highWaterMark = Math.max(maxParallel, 16); - if (opts.objectMode !== false) opts.objectMode = true; - - Writable.call(this, opts); - - this._maxParallel = maxParallel; - this._onWrite = onWrite; - this._destroyed = false; - this._flushed = false; - this._ordered = opts.ordered !== false; - this._buffer = this._ordered ? cyclist(maxParallel) : []; - this._top = 0; - this._bottom = 0; - this._ondrain = null; - } - - _destroy() { - if (this._destroyed) return; - this._destroyed = true; - this.emit("close"); - } - - _write(chunk: TInput, enc: BufferEncoding, callback: ParallelOnDrain) { - const pos = this._top++; - - this._onWrite(chunk, (err, data) => { - if (this._destroyed) return; - if (err) { - this.emit("error", err); - this.destroy(); - return; - } - if (this._isOrdered(this._buffer)) { - this._buffer.put(pos, data === undefined || data === null ? null : data); - } else { - this._buffer.push(data as TInput); - } - this._drain(); - }); + _destroy() { + if (this._destroyed) return; + this._destroyed = true; + this.emit("close"); + } - if (this._top - this._bottom < this._maxParallel) return callback(); - this._ondrain = callback; - } - - _final(callback: ParallelOnDrain) { - this._flushed = true; - this._ondrain = callback; - this._drain(); - } - - _drain() { - if (this._isOrdered(this._buffer)) { - while (this._buffer.get(this._bottom) !== undefined) { - this._buffer.del(this._bottom++); - } - } else { - while (this._buffer.length > 0) { - this._buffer.pop(); - this._bottom++; - } + _write(chunk: TInput, enc: BufferEncoding, callback: ParallelOnDrain) { + const pos = this._top++; + + this._onWrite(chunk, (err, data) => { + if (this._destroyed) return; + if (err) { + this.emit("error", err); + this.destroy(); + return; + } + if (this._isOrdered(this._buffer)) { + this._buffer.put(pos, data === undefined || data === null ? null : data); + } else { + this._buffer.push(data as TInput); + } + this._drain(); + }); + + if (this._top - this._bottom < this._maxParallel) return callback(); + this._ondrain = callback; } - if (!this._drained() || !this._ondrain) return; + _final(callback: ParallelOnDrain) { + this._flushed = true; + this._ondrain = callback; + this._drain(); + } - const ondrain = this._ondrain; - this._ondrain = null; - ondrain(); - } + _drain() { + if (this._isOrdered(this._buffer)) { + while (this._buffer.get(this._bottom) !== undefined) { + this._buffer.del(this._bottom++); + } + } else { + while (this._buffer.length > 0) { + this._buffer.pop(); + this._bottom++; + } + } + + if (!this._drained() || !this._ondrain) return; + + const ondrain = this._ondrain; + this._ondrain = null; + ondrain(); + } - _isOrdered(buffer: Cyclist | Array): buffer is Cyclist { - return this._ordered; - } + _isOrdered(buffer: Cyclist | Array): buffer is Cyclist { + return this._ordered; + } - _drained() { - const diff = this._top - this._bottom; - return this._flushed ? !diff : diff < this._maxParallel; - } + _drained() { + const diff = this._top - this._bottom; + return this._flushed ? !diff : diff < this._maxParallel; + } } export function writeData( - callback: WriteDataCallback, - options: WriteDataOptions = {}, + callback: WriteDataCallback, + options: WriteDataOptions = {}, ): NodeJS.WritableStream { - return new ParallelWrite(options.parallel || 1, { objectMode: true }, async (chunk, cb) => { - try { - const res = await callback(chunk); - cb(null, res); - } catch (e) { - cb(e as Error); - } - }); + return new ParallelWrite(options.parallel || 1, {objectMode: true}, async (chunk, cb) => { + try { + const res = await callback(chunk); + cb(null, res); + } catch (e) { + cb(e as Error); + } + }); } diff --git a/src/writeToStdout.ts b/src/writeToStdout.ts index 5241e42..740e725 100644 --- a/src/writeToStdout.ts +++ b/src/writeToStdout.ts @@ -1,13 +1,13 @@ -import { Writable } from "stream"; +import {Writable} from "stream"; type WriteToStdoutCallback = (error: Error | null | undefined) => void; export function writeToStdout() { - return new Writable({ - write(chunk: Uint8Array | string, encoding: BufferEncoding, callback: WriteToStdoutCallback) { - //write to stdout as a side effect and honor finish event - //https://stackoverflow.com/questions/33190458/node-pipe-to-stdout-how-do-i-tell-if-drained - process.stdout.write(chunk, callback); - }, - }); + return new Writable({ + write(chunk: Uint8Array | string, encoding: BufferEncoding, callback: WriteToStdoutCallback) { + //write to stdout as a side effect and honor finish event + //https://stackoverflow.com/questions/33190458/node-pipe-to-stdout-how-do-i-tell-if-drained + process.stdout.write(chunk, callback); + }, + }); } diff --git a/test/accumulateData-test.ts b/test/accumulateData-test.ts index d8fbc6b..a64f634 100644 --- a/test/accumulateData-test.ts +++ b/test/accumulateData-test.ts @@ -1,78 +1,78 @@ -import { deepStrictEqual, strictEqual, fail } from "assert"; -import { accumulateData, writeData } from "../src/index"; -import { createStream } from "./testUtils"; +import {deepStrictEqual, strictEqual, fail} from "assert"; +import {accumulateData, writeData} from "../src/index"; +import {createStream} from "./testUtils"; describe("accumulateData", () => { - it("can accumulateData by grouping them (flush)", (done) => { - const result: string[] = []; - const source = createStream(); - source.push("John"); - source.push("Doe"); - source.push("Robert"); - source.push("Hue"); - source.push(null); + it("can accumulateData by grouping them (flush)", (done) => { + const result: string[] = []; + const source = createStream(); + source.push("John"); + source.push("Doe"); + source.push("Robert"); + source.push("Hue"); + source.push(null); - source - .pipe( - accumulateData( - (acc, data: string, flush) => { - acc = [...acc, data]; + source + .pipe( + accumulateData( + (acc, data: string, flush) => { + acc = [...acc, data]; - if (acc.length < 2) { - return acc; - } + if (acc.length < 2) { + return acc; + } - flush(acc.join(" ")); - return []; // Reset accumulator - }, - { accumulator: [] as string[] }, - ), - ) - .pipe(writeData((data: string) => result.push(data))) - .on("finish", () => { - deepStrictEqual(result, ["John Doe", "Robert Hue"]); - done(); - }); - }); + flush(acc.join(" ")); + return []; // Reset accumulator + }, + {accumulator: [] as string[]}, + ), + ) + .pipe(writeData((data: string) => result.push(data))) + .on("finish", () => { + deepStrictEqual(result, ["John Doe", "Robert Hue"]); + done(); + }); + }); - it("can accumulateData into a single chunk (no flush)", (done) => { - const result: string[] = []; - const source = createStream(); - source.push("j"); - source.push("o"); - source.push("h"); - source.push("n"); - source.push(null); + it("can accumulateData into a single chunk (no flush)", (done) => { + const result: string[] = []; + const source = createStream(); + source.push("j"); + source.push("o"); + source.push("h"); + source.push("n"); + source.push(null); - source - .pipe(accumulateData((acc, data) => acc + data, { accumulator: "" })) - .pipe(writeData((data: string) => result.push(data))) - .on("finish", () => { - deepStrictEqual(result, ["john"]); - done(); - }); - }); + source + .pipe(accumulateData((acc, data) => acc + data, {accumulator: ""})) + .pipe(writeData((data: string) => result.push(data))) + .on("finish", () => { + deepStrictEqual(result, ["john"]); + done(); + }); + }); - it("should catch error in accumulateData", (done) => { - const result = []; - const source = createStream(); - source.push("a"); - source.push(null); + it("should catch error in accumulateData", (done) => { + const result = []; + const source = createStream(); + source.push("a"); + source.push(null); - const accumulator = accumulateData(() => { - throw new Error("Unable to hande data"); - }); - accumulator.on("error", (e) => { - strictEqual(e.message, "Unable to hande data"); - done(); - }); + const accumulator = accumulateData(() => { + throw new Error("Unable to hande data"); + }); + accumulator.on("error", (e) => { + strictEqual(e.message, "Unable to hande data"); + done(); + }); - source - .pipe(accumulator) - .pipe(writeData((data: string) => result.push(data))) - .on("finish", () => { - fail(); - done(); - }); - }); + source + .pipe(accumulator) + .pipe(writeData((data: string) => result.push(data))) + .on("finish", () => { + fail(); + done(); + }); + }); }); diff --git a/test/compose-test.ts b/test/compose-test.ts index c202d00..fc8bfc9 100644 --- a/test/compose-test.ts +++ b/test/compose-test.ts @@ -1,200 +1,200 @@ -import { deepStrictEqual, fail } from "assert"; -import { createSlowStream, createStream } from "./testUtils"; -import { compose, flattenArray, transformData, writeData } from "../src"; +import {deepStrictEqual, fail} from "assert"; +import {createSlowStream, createStream} from "./testUtils"; +import {compose, flattenArray, transformData, writeData} from "../src"; describe("compose", () => { - it("can compose streams", (done) => { - const chunks: string[] = []; - const source = createStream(); - source.push("first"); - source.push(null); - - compose( - source, - transformData((data: string) => data.substring(0, 1)), - writeData((data: string) => { - chunks.push(data); - }), - ) - .on("finish", () => { - deepStrictEqual(chunks, ["f"]); - done(); - }) - .on("error", () => { - fail(); - done(); - }); - }); - - it("can iterate over a composed stream", async () => { - const chunks: string[] = []; - const source = createStream(); - source.push("andré"); - source.push("bruno"); - source.push("robert"); - source.push(null); - - const stream = compose( - source, - transformData((data: string) => data.substring(0, 1)), - ); - - for await (const chunk of stream) { - chunks.push(chunk.toString()); - } - - deepStrictEqual(chunks, ["a", "b", "r"]); - }); - - it("can pipe a compose stream", (done) => { - const chunks: string[] = []; - const source = createStream(); - source.push("andré"); - source.push("bruno"); - source.push("robert"); - source.push(null); - - compose(source) - .pipe(transformData((data: string) => data.substring(0, 1))) - .pipe( - writeData((data: string) => { - chunks.push(data); - }), - ) - .on("finish", () => { + it("can compose streams", (done) => { + const chunks: string[] = []; + const source = createStream(); + source.push("first"); + source.push(null); + + compose( + source, + transformData((data: string) => data.substring(0, 1)), + writeData((data: string) => { + chunks.push(data); + }), + ) + .on("finish", () => { + deepStrictEqual(chunks, ["f"]); + done(); + }) + .on("error", () => { + fail(); + done(); + }); + }); + + it("can iterate over a composed stream", async () => { + const chunks: string[] = []; + const source = createStream(); + source.push("andré"); + source.push("bruno"); + source.push("robert"); + source.push(null); + + const stream = compose( + source, + transformData((data: string) => data.substring(0, 1)), + ); + + for await (const chunk of stream) { + chunks.push(chunk.toString()); + } + deepStrictEqual(chunks, ["a", "b", "r"]); - done(); - }); - }); - - it("can build compose with first writeable and last readable (duplex)", (done) => { - const chunks: string[] = []; - const source = createStream(); - source.push("andré"); - source.push("bruno"); - source.push("robert"); - source.push(null); - - source - .pipe( + }); + + it("can pipe a compose stream", (done) => { + const chunks: string[] = []; + const source = createStream(); + source.push("andré"); + source.push("bruno"); + source.push("robert"); + source.push(null); + + compose(source) + .pipe(transformData((data: string) => data.substring(0, 1))) + .pipe( + writeData((data: string) => { + chunks.push(data); + }), + ) + .on("finish", () => { + deepStrictEqual(chunks, ["a", "b", "r"]); + done(); + }); + }); + + it("can build compose with first writeable and last readable (duplex)", (done) => { + const chunks: string[] = []; + const source = createStream(); + source.push("andré"); + source.push("bruno"); + source.push("robert"); + source.push(null); + + source + .pipe( + compose( + transformData((data: string) => data.substring(0, 1)), + transformData((data) => "_" + data), + ), + ) + .pipe( + writeData((data: string) => { + chunks.push(data); + }), + ) + .on("finish", () => { + deepStrictEqual(chunks, ["_a", "_b", "_r"]); + done(); + }); + }); + + it("can compose inside compose", (done) => { + const chunks: string[] = []; + const source = createStream(); + const nested = compose( + source, + transformData((d: string) => d.substring(0, 1)), + ); + + source.push("first"); + source.push(null); + compose( - transformData((data: string) => data.substring(0, 1)), - transformData((data) => "_" + data), - ), - ) - .pipe( - writeData((data: string) => { - chunks.push(data); - }), - ) - .on("finish", () => { - deepStrictEqual(chunks, ["_a", "_b", "_r"]); - done(); - }); - }); - - it("can compose inside compose", (done) => { - const chunks: string[] = []; - const source = createStream(); - const nested = compose( - source, - transformData((d: string) => d.substring(0, 1)), - ); - - source.push("first"); - source.push(null); - - compose( - nested, - writeData((data: string) => { - chunks.push(data); - }), - ) - .on("finish", () => { - deepStrictEqual(chunks, ["f"]); - done(); - }) - .on("error", (e) => { - fail(e); - done(); - }); - }); - - it("can handle back pressure", (done) => { - let result = ""; - const source = createStream(); - source.push(["andré", "bruno", "robert"]); - source.push(null); - - compose( - source, - flattenArray({ highWaterMark: 1 }), - createSlowStream({ maxWriteInterval: 10 }), - writeData((data: string) => { - result += data; - }), - ).on("finish", () => { - deepStrictEqual(result, "andrébrunorobert"); - done(); + nested, + writeData((data: string) => { + chunks.push(data); + }), + ) + .on("finish", () => { + deepStrictEqual(chunks, ["f"]); + done(); + }) + .on("error", (e) => { + fail(e); + done(); + }); }); - }); - - it("can handle back pressure with nested compose", (done) => { - let result = ""; - const source = createStream(); - source.push(["andré", "bruno", "robert"]); - source.push(null); - - compose( - source, - compose(flattenArray({ highWaterMark: 1 }), createSlowStream({ maxWriteInterval: 10 })), - writeData((data: string) => { - result += data; - }), - ).on("finish", () => { - deepStrictEqual(result, "andrébrunorobert"); - done(); + + it("can handle back pressure", (done) => { + let result = ""; + const source = createStream(); + source.push(["andré", "bruno", "robert"]); + source.push(null); + + compose( + source, + flattenArray({highWaterMark: 1}), + createSlowStream({maxWriteInterval: 10}), + writeData((data: string) => { + result += data; + }), + ).on("finish", () => { + deepStrictEqual(result, "andrébrunorobert"); + done(); + }); + }); + + it("can handle back pressure with nested compose", (done) => { + let result = ""; + const source = createStream(); + source.push(["andré", "bruno", "robert"]); + source.push(null); + + compose( + source, + compose(flattenArray({highWaterMark: 1}), createSlowStream({maxWriteInterval: 10})), + writeData((data: string) => { + result += data; + }), + ).on("finish", () => { + deepStrictEqual(result, "andrébrunorobert"); + done(); + }); + }); + + it("should propagate emitted error", (done) => { + const source = createStream(); + + compose( + source, + writeData(() => {}), + ) + .on("finish", () => { + fail(); + done(); + }) + .on("error", (e) => { + deepStrictEqual(e, "emitted"); + done(); + }); + + source.push("first"); + source.emit("error", "emitted"); + }); + + it("should propagate thrown error", (done) => { + const source = createStream(); + source.push("first"); + source.push(null); + + compose( + source, + writeData(() => { + throw new Error("write error"); + }), + ) + .on("finish", () => { + fail(); + done(); + }) + .on("error", (e) => { + deepStrictEqual(e.message, "write error"); + done(); + }); }); - }); - - it("should propagate emitted error", (done) => { - const source = createStream(); - - compose( - source, - writeData(() => {}), - ) - .on("finish", () => { - fail(); - done(); - }) - .on("error", (e) => { - deepStrictEqual(e, "emitted"); - done(); - }); - - source.push("first"); - source.emit("error", "emitted"); - }); - - it("should propagate thrown error", (done) => { - const source = createStream(); - source.push("first"); - source.push(null); - - compose( - source, - writeData(() => { - throw new Error("write error"); - }), - ) - .on("finish", () => { - fail(); - done(); - }) - .on("error", (e) => { - deepStrictEqual(e.message, "write error"); - done(); - }); - }); }); diff --git a/test/concatStreams-test.ts b/test/concatStreams-test.ts index a90639e..ce54a2b 100644 --- a/test/concatStreams-test.ts +++ b/test/concatStreams-test.ts @@ -1,70 +1,70 @@ -import { deepStrictEqual } from "assert"; -import { concatStreams, writeData } from "../src/index"; -import { delay, streamArray } from "./testUtils"; -import { Readable } from "stream"; +import {deepStrictEqual} from "assert"; +import {concatStreams, writeData} from "../src/index"; +import {delay, streamArray} from "./testUtils"; +import {Readable} from "stream"; describe("concatStreams", () => { - it("can concat streams", (done) => { - let result = ""; - const source1 = streamArray(["andré"]); - const source2 = streamArray(["bruno"]); + it("can concat streams", (done) => { + let result = ""; + const source1 = streamArray(["andré"]); + const source2 = streamArray(["bruno"]); - concatStreams(source1, source2) - .pipe(writeData((data) => (result += data))) - .on("finish", () => { - deepStrictEqual(result, "andrébruno"); - done(); - }); - }); + concatStreams(source1, source2) + .pipe(writeData((data) => (result += data))) + .on("finish", () => { + deepStrictEqual(result, "andrébruno"); + done(); + }); + }); - it("can concat streams (next function)", (done) => { - let result = ""; - const array = [streamArray(["andré"]), streamArray(["bruno"])]; - const next = () => array.shift() as Readable; + it("can concat streams (next function)", (done) => { + let result = ""; + const array = [streamArray(["andré"]), streamArray(["bruno"])]; + const next = () => array.shift() as Readable; - concatStreams(next) - .pipe(writeData((data) => (result += data))) - .on("finish", () => { - deepStrictEqual(result, "andrébruno"); - done(); - }); - }); + concatStreams(next) + .pipe(writeData((data) => (result += data))) + .on("finish", () => { + deepStrictEqual(result, "andrébruno"); + done(); + }); + }); - it("can concat streams (async next function)", (done) => { - let result = ""; - const array = [streamArray(["andré"]), streamArray(["bruno"])]; - const next = () => Promise.resolve(array.shift() as Readable); + it("can concat streams (async next function)", (done) => { + let result = ""; + const array = [streamArray(["andré"]), streamArray(["bruno"])]; + const next = () => Promise.resolve(array.shift() as Readable); - concatStreams(next) - .pipe(writeData((data) => (result += data))) - .on("finish", () => { - deepStrictEqual(result, "andrébruno"); - done(); - }); - }); + concatStreams(next) + .pipe(writeData((data) => (result += data))) + .on("finish", () => { + deepStrictEqual(result, "andrébruno"); + done(); + }); + }); - it("can concat streams (slow async next)", (done) => { - let result = ""; - const array = [streamArray(["andré"]), streamArray(["bruno"])]; - const next = () => delay(() => array.shift() as Readable, 2); + it("can concat streams (slow async next)", (done) => { + let result = ""; + const array = [streamArray(["andré"]), streamArray(["bruno"])]; + const next = () => delay(() => array.shift() as Readable, 2); - concatStreams(next) - .pipe(writeData((data) => (result += data))) - .on("finish", () => { - deepStrictEqual(result, "andrébruno"); - done(); - }); - }); + concatStreams(next) + .pipe(writeData((data) => (result += data))) + .on("finish", () => { + deepStrictEqual(result, "andrébruno"); + done(); + }); + }); - it("can iterate over concatStreams", async () => { - const source1 = streamArray(["andré"]); - const source2 = streamArray(["bruno"]); + it("can iterate over concatStreams", async () => { + const source1 = streamArray(["andré"]); + const source2 = streamArray(["bruno"]); - const chunks = []; - for await (const chunk of concatStreams(source1, source2)) { - chunks.push(chunk); - } + const chunks = []; + for await (const chunk of concatStreams(source1, source2)) { + chunks.push(chunk); + } - deepStrictEqual(chunks, ["andré", "bruno"]); - }); + deepStrictEqual(chunks, ["andré", "bruno"]); + }); }); diff --git a/test/filterData-tests.ts b/test/filterData-tests.ts index 936671c..9b111f6 100644 --- a/test/filterData-tests.ts +++ b/test/filterData-tests.ts @@ -1,78 +1,78 @@ -import { deepStrictEqual, fail, strictEqual } from "assert"; -import { createStream } from "./testUtils"; -import { filterData } from "../src"; +import {deepStrictEqual, fail, strictEqual} from "assert"; +import {createStream} from "./testUtils"; +import {filterData} from "../src"; describe("filterData", () => { - it("should filter (ignore empty)", (done) => { - const chunks: string[] = []; - const source = createStream(); - source.push("first"); - source.push(""); - source.push(null); + it("should filter (ignore empty)", (done) => { + const chunks: string[] = []; + const source = createStream(); + source.push("first"); + source.push(""); + source.push(null); - source - .pipe( - filterData((value) => { - return value !== null && value !== undefined && Object.keys(value).length > 0; - }), - ) - .on("data", (d) => chunks.push(d)) - .on("end", () => { - deepStrictEqual(chunks, ["first"]); - done(); - }); - }); + source + .pipe( + filterData((value) => { + return value !== null && value !== undefined && Object.keys(value).length > 0; + }), + ) + .on("data", (d) => chunks.push(d)) + .on("end", () => { + deepStrictEqual(chunks, ["first"]); + done(); + }); + }); - it("should filter (async)", (done) => { - const chunks: string[] = []; - const source = createStream(); - source.push("first"); - source.push(""); - source.push(null); + it("should filter (async)", (done) => { + const chunks: string[] = []; + const source = createStream(); + source.push("first"); + source.push(""); + source.push(null); - source - .pipe( - filterData(() => { - return Promise.resolve(false); - }), - ) - .on("data", (d) => chunks.push(d)) - .on("end", () => { - deepStrictEqual(chunks, []); - done(); - }); - }); + source + .pipe( + filterData(() => { + return Promise.resolve(false); + }), + ) + .on("data", (d) => chunks.push(d)) + .on("end", () => { + deepStrictEqual(chunks, []); + done(); + }); + }); - it("should filter (ignore first line)", (done) => { - const chunks: string[] = []; - const source = createStream(); - source.push("first"); - source.push("second"); - source.push(null); + it("should filter (ignore first line)", (done) => { + const chunks: string[] = []; + const source = createStream(); + source.push("first"); + source.push("second"); + source.push(null); - let lines = 0; - source - .pipe(filterData(() => lines++ !== 0)) - .on("data", (d) => chunks.push(d)) - .on("end", () => { - deepStrictEqual(chunks, ["second"]); - done(); - }); - }); + let lines = 0; + source + .pipe(filterData(() => lines++ !== 0)) + .on("data", (d) => chunks.push(d)) + .on("end", () => { + deepStrictEqual(chunks, ["second"]); + done(); + }); + }); - it("should filter with options", (done) => { - const source = createStream(); - source.push({ object: true }); - source.push(null); + it("should filter with options", (done) => { + const source = createStream(); + source.push({object: true}); + source.push(null); - source - .pipe(filterData(() => true, { objectMode: false })) - .on("error", (e) => { - strictEqual(e.message, "Invalid non-string/buffer chunk"); - done(); - }) - .on("end", () => { - fail(); - }); - }); + source + .pipe(filterData(() => true, {objectMode: false})) + .on("error", (e) => { + strictEqual(e.message, "Invalid non-string/buffer chunk"); + done(); + }) + .on("end", () => { + fail(); + }); + }); }); diff --git a/test/flattenArray-test.ts b/test/flattenArray-test.ts index 43c8c33..9849ddb 100644 --- a/test/flattenArray-test.ts +++ b/test/flattenArray-test.ts @@ -1,71 +1,71 @@ -import { deepStrictEqual } from "assert"; -import { accumulateData, flattenArray, writeData } from "../src"; -import { createSlowStream, streamArray } from "./testUtils"; +import {deepStrictEqual} from "assert"; +import {accumulateData, flattenArray, writeData} from "../src"; +import {createSlowStream, streamArray} from "./testUtils"; describe("flattenArray", () => { - it("can flat map an array", (done) => { - let result = ""; - const source = streamArray([["andré", "bruno"]]); + it("can flat map an array", (done) => { + let result = ""; + const source = streamArray([["andré", "bruno"]]); - source - .pipe(flattenArray()) - .pipe( - writeData((data) => { - result += data; - }), - ) - .on("finish", () => { - deepStrictEqual(result, "andrébruno"); - done(); - }); - }); + source + .pipe(flattenArray()) + .pipe( + writeData((data) => { + result += data; + }), + ) + .on("finish", () => { + deepStrictEqual(result, "andrébruno"); + done(); + }); + }); - it("can flat map an array inside a pipeline", (done) => { - let result = ""; - const source = streamArray(); - source.push("andré"); - source.push("bruno"); - source.push(null); + it("can flat map an array inside a pipeline", (done) => { + let result = ""; + const source = streamArray(); + source.push("andré"); + source.push("bruno"); + source.push(null); - source - .pipe( - accumulateData( - (acc, data: string) => { - return [...acc, data.substring(0, 1)]; - }, - { accumulator: [] as string[] }, - ), - ) - .pipe(flattenArray()) - .pipe( - writeData((data: string) => { - result += data.toUpperCase(); - }), - ) - .on("finish", () => { - deepStrictEqual(result, "AB"); - done(); - }); - }); + source + .pipe( + accumulateData( + (acc, data: string) => { + return [...acc, data.substring(0, 1)]; + }, + {accumulator: [] as string[]}, + ), + ) + .pipe(flattenArray()) + .pipe( + writeData((data: string) => { + result += data.toUpperCase(); + }), + ) + .on("finish", () => { + deepStrictEqual(result, "AB"); + done(); + }); + }); - it("should stop when down streams are busy", (done) => { - let result = ""; - const source = streamArray(); - source.push(["andré", "bruno", "robert"]); //fill the buffer - source.push(["john", "henri"]); - source.push(null); + it("should stop when down streams are busy", (done) => { + let result = ""; + const source = streamArray(); + source.push(["andré", "bruno", "robert"]); //fill the buffer + source.push(["john", "henri"]); + source.push(null); - source - .pipe(flattenArray({ objectMode: true, highWaterMark: 1 })) - .pipe(createSlowStream({ maxWriteInterval: 10 })) // Force up streams to be paused - .pipe( - writeData((data) => { - result += "_" + data; - }), - ) - .on("finish", () => { - deepStrictEqual(result, "_andré_bruno_robert_john_henri"); - done(); - }); - }); + source + .pipe(flattenArray({objectMode: true, highWaterMark: 1})) + .pipe(createSlowStream({maxWriteInterval: 10})) // Force up streams to be paused + .pipe( + writeData((data) => { + result += "_" + data; + }), + ) + .on("finish", () => { + deepStrictEqual(result, "_andré_bruno_robert_john_henri"); + done(); + }); + }); }); diff --git a/test/groupData-test.ts b/test/groupData-test.ts index 6357bbb..32114b2 100644 --- a/test/groupData-test.ts +++ b/test/groupData-test.ts @@ -1,47 +1,47 @@ -import { deepStrictEqual } from "assert"; -import { createStream } from "./testUtils"; -import { groupData, writeData } from "../src"; +import {deepStrictEqual} from "assert"; +import {createStream} from "./testUtils"; +import {groupData, writeData} from "../src"; describe("groupData", () => { - it("can create group of data", (done) => { - const results: string[][] = []; - const source = createStream(); - source.push("abc"); - source.push("def"); - source.push("ghi"); - source.push(null); + it("can create group of data", (done) => { + const results: string[][] = []; + const source = createStream(); + source.push("abc"); + source.push("def"); + source.push("ghi"); + source.push(null); - source - .pipe(groupData()) - .pipe( - writeData((group: string[]) => { - return results.push(group); - }), - ) - .on("finish", () => { - deepStrictEqual(results, [["abc"], ["def"], ["ghi"]]); - done(); - }); - }); + source + .pipe(groupData()) + .pipe( + writeData((group: string[]) => { + return results.push(group); + }), + ) + .on("finish", () => { + deepStrictEqual(results, [["abc"], ["def"], ["ghi"]]); + done(); + }); + }); - it("can create group of data with custom size", (done) => { - const results: string[][] = []; - const source = createStream(); - source.push("abc"); - source.push("def"); - source.push("ghi"); - source.push(null); + it("can create group of data with custom size", (done) => { + const results: string[][] = []; + const source = createStream(); + source.push("abc"); + source.push("def"); + source.push("ghi"); + source.push(null); - source - .pipe(groupData({ size: 2 })) - .pipe( - writeData((group: string[]) => { - return results.push(group); - }), - ) - .on("finish", () => { - deepStrictEqual(results, [["abc", "def"], ["ghi"]]); - done(); - }); - }); + source + .pipe(groupData({size: 2})) + .pipe( + writeData((group: string[]) => { + return results.push(group); + }), + ) + .on("finish", () => { + deepStrictEqual(results, [["abc", "def"], ["ghi"]]); + done(); + }); + }); }); diff --git a/test/mergeStreams-test.ts b/test/mergeStreams-test.ts index 087888f..4b364e1 100644 --- a/test/mergeStreams-test.ts +++ b/test/mergeStreams-test.ts @@ -1,34 +1,34 @@ -import { deepStrictEqual } from "assert"; -import { mergeStreams, writeData } from "../src"; -import { streamArray } from "./testUtils"; +import {deepStrictEqual} from "assert"; +import {mergeStreams, writeData} from "../src"; +import {streamArray} from "./testUtils"; describe("mergeStreams", () => { - it("can merge streams", (done) => { - let result = ""; - const source1 = streamArray(["andré"]); - const source2 = streamArray(["bruno"]); + it("can merge streams", (done) => { + let result = ""; + const source1 = streamArray(["andré"]); + const source2 = streamArray(["bruno"]); - mergeStreams(source1, source2) - .pipe( - writeData((data) => { - result += data; - }), - ) - .on("finish", () => { - deepStrictEqual(result, "andrébruno"); - done(); - }); - }); + mergeStreams(source1, source2) + .pipe( + writeData((data) => { + result += data; + }), + ) + .on("finish", () => { + deepStrictEqual(result, "andrébruno"); + done(); + }); + }); - it("can iterate over a merged stream", async () => { - const source1 = streamArray(["andré"]); - const source2 = streamArray(["bruno"]); + it("can iterate over a merged stream", async () => { + const source1 = streamArray(["andré"]); + const source2 = streamArray(["bruno"]); - const chunks = []; - for await (const chunk of mergeStreams(source1, source2)) { - chunks.push(chunk); - } + const chunks = []; + for await (const chunk of mergeStreams(source1, source2)) { + chunks.push(chunk); + } - deepStrictEqual(chunks, ["andré", "bruno"]); - }); + deepStrictEqual(chunks, ["andré", "bruno"]); + }); }); diff --git a/test/oleoduc-test.ts b/test/oleoduc-test.ts index e1ca316..9d9165a 100644 --- a/test/oleoduc-test.ts +++ b/test/oleoduc-test.ts @@ -1,121 +1,121 @@ -import { deepStrictEqual, fail } from "assert"; -import { assertErrorMessage, createStream, delay } from "./testUtils"; -import { compose, oleoduc, transformData, writeData } from "../src"; +import {deepStrictEqual, fail} from "assert"; +import {assertErrorMessage, createStream, delay} from "./testUtils"; +import {compose, oleoduc, transformData, writeData} from "../src"; describe("oleoduc", () => { - it("can create oleoduc", async () => { - const chunks: string[] = []; - const source = createStream(); - source.push("andré"); - source.push("bruno"); - source.push("robert"); - source.push(null); + it("can create oleoduc", async () => { + const chunks: string[] = []; + const source = createStream(); + source.push("andré"); + source.push("bruno"); + source.push("robert"); + source.push(null); - await oleoduc( - source, - transformData((data: string) => { - return delay(() => data.substring(0, 1), 2); - }), - writeData((data: string) => { - return delay(() => chunks.push(data), 2); - }), - ); + await oleoduc( + source, + transformData((data: string) => { + return delay(() => data.substring(0, 1), 2); + }), + writeData((data: string) => { + return delay(() => chunks.push(data), 2); + }), + ); - deepStrictEqual(chunks, ["a", "b", "r"]); - }); + deepStrictEqual(chunks, ["a", "b", "r"]); + }); - it("can build oleoduc with first writeable and last readable (duplex)", async () => { - const chunks: string[] = []; - const source = createStream(); - source.push("andré"); - source.push("bruno"); - source.push("robert"); - source.push(null); + it("can build oleoduc with first writeable and last readable (duplex)", async () => { + const chunks: string[] = []; + const source = createStream(); + source.push("andré"); + source.push("bruno"); + source.push("robert"); + source.push(null); - try { - await oleoduc( - source, - compose( - transformData((data: string) => data.substring(0, 1)), - transformData((data: string) => "_" + data), - ), - writeData((data: string) => chunks.push(data)), - ); - deepStrictEqual(chunks, ["_a", "_b", "_r"]); - } catch (e) { - fail(e as Error); - } - }); + try { + await oleoduc( + source, + compose( + transformData((data: string) => data.substring(0, 1)), + transformData((data: string) => "_" + data), + ), + writeData((data: string) => chunks.push(data)), + ); + deepStrictEqual(chunks, ["_a", "_b", "_r"]); + } catch (e) { + fail(e as Error); + } + }); - it("can use compose inside oleoduc", async () => { - const chunks: string[] = []; - const source = createStream(); - const composed = compose( - source, - transformData((d: string) => d.substring(0, 1)), - ); + it("can use compose inside oleoduc", async () => { + const chunks: string[] = []; + const source = createStream(); + const composed = compose( + source, + transformData((d: string) => d.substring(0, 1)), + ); - source.push("first"); - source.push(null); + source.push("first"); + source.push(null); - await oleoduc( - composed, - writeData((data: string) => chunks.push(data)), - ) - .then(() => { - deepStrictEqual(chunks, ["f"]); - }) - .catch((e) => { - fail(e); - }); - }); + await oleoduc( + composed, + writeData((data: string) => chunks.push(data)), + ) + .then(() => { + deepStrictEqual(chunks, ["f"]); + }) + .catch((e) => { + fail(e); + }); + }); - it("should propagate emitted error", (done) => { - const source = createStream(); + it("should propagate emitted error", (done) => { + const source = createStream(); - oleoduc( - source, - writeData(() => ({})), - ) - .then(() => { - fail(); - done(); - }) - .catch((e) => { - deepStrictEqual(e, "emitted"); - done(); - }); + oleoduc( + source, + writeData(() => ({})), + ) + .then(() => { + fail(); + done(); + }) + .catch((e) => { + deepStrictEqual(e, "emitted"); + done(); + }); - source.push("first"); - source.emit("error", "emitted"); - }); + source.push("first"); + source.emit("error", "emitted"); + }); - it("should propagate thrown error", async () => { - const source = createStream(); - source.push("first"); - source.push(null); + it("should propagate thrown error", async () => { + const source = createStream(); + source.push("first"); + source.push(null); - await oleoduc( - source, - writeData(() => { - throw new Error("write error"); - }), - ) - .then(() => { - fail(); - }) - .catch((e) => { - deepStrictEqual(e.message, "write error"); - }); - }); + await oleoduc( + source, + writeData(() => { + throw new Error("write error"); + }), + ) + .then(() => { + fail(); + }) + .catch((e) => { + deepStrictEqual(e.message, "write error"); + }); + }); - it("should fail when no stream are provided", async () => { - try { - // @ts-expect-error TS2345 - await oleoduc(); - fail(); - } catch (e) { - assertErrorMessage(e, "You must provide at least one stream"); - } - }); + it("should fail when no stream are provided", async () => { + try { + // @ts-expect-error TS2345 + await oleoduc(); + fail(); + } catch (e) { + assertErrorMessage(e, "You must provide at least one stream"); + } + }); }); diff --git a/test/parallel-test.ts b/test/parallel-test.ts index f193392..ce080aa 100644 --- a/test/parallel-test.ts +++ b/test/parallel-test.ts @@ -1,185 +1,185 @@ -import { deepStrictEqual, fail, ok } from "assert"; -import { createStream, delay } from "./testUtils"; -import { filterData, transformData, writeData } from "../src"; +import {deepStrictEqual, fail, ok} from "assert"; +import {createStream, delay} from "./testUtils"; +import {filterData, transformData, writeData} from "../src"; -type AccParallelData = { number: number; timestamp: number }; +type AccParallelData = {number: number; timestamp: number}; describe("parallel", () => { - it("can run parallel task with order preserved", (done) => { - const chunks: string[] = []; - const source = createStream(); - source.push("andré"); - source.push("bruno"); - source.push("robert"); - source.push(null); - - source - .pipe( - transformData( - async (data: string) => { - return new Promise((resolve) => { - resolve(data.substring(0, 1)); + it("can run parallel task with order preserved", (done) => { + const chunks: string[] = []; + const source = createStream(); + source.push("andré"); + source.push("bruno"); + source.push("robert"); + source.push(null); + + source + .pipe( + transformData( + async (data: string) => { + return new Promise((resolve) => { + resolve(data.substring(0, 1)); + }); + }, + {parallel: 2}, + ), + ) + .pipe( + writeData( + (data: string) => { + return delay(() => chunks.push(data), 10); + }, + {parallel: 5}, + ), + ) + .on("finish", () => { + deepStrictEqual(chunks, ["a", "b", "r"]); + done(); }); - }, - { parallel: 2 }, - ), - ) - .pipe( - writeData( - (data: string) => { - return delay(() => chunks.push(data), 10); - }, - { parallel: 5 }, - ), - ) - .on("finish", () => { - deepStrictEqual(chunks, ["a", "b", "r"]); - done(); - }); - }); - - it("can transformData (parallel)", (done) => { - const timeoutPerBatch = 10; - const nbParallelTasks = 2; - const acc: AccParallelData[] = []; - - const source = createStream(); - //first batch - source.push(1); - source.push(2); - //second - source.push(3); - source.push(4); - //third - source.push(5); - source.push(6); - - source.push(null); - - const start = Date.now(); - source - .pipe( - transformData( - (number: number) => { - return delay(() => ({ number, timestamp: Date.now() }), timeoutPerBatch); - }, - { parallel: nbParallelTasks }, - ), - ) - .pipe(writeData((data: AccParallelData) => acc.push(data))) - .on("error", () => { - fail(); - done(); - }) - .on("finish", () => { - deepStrictEqual( - acc.map((v) => v.number), - [1, 2, 3, 4, 5, 6], - ); - - // 2 tasks per batch with 10ms of timeout - const timeElapsed = acc[acc.length - 1].timestamp - start; - ok(timeElapsed < 60); - ok(timeElapsed > 29); - done(); - }); - }); - - it("can filterData (parallel)", (done) => { - const timeoutPerBatch = 10; - const nbParallelTasks = 2; - const acc: AccParallelData[] = []; - - const source = createStream(); - //first batch - source.push(1); - source.push(2); - //second - source.push(3); - source.push(4); - //third - source.push(5); - source.push(6); - - source.push(null); - - const start = Date.now(); - let last: number; - source - .pipe( - filterData( - (number: number) => { - return delay(() => { - last = Date.now(); - return number < 5; - }, timeoutPerBatch); - }, - { parallel: nbParallelTasks }, - ), - ) - .pipe( - transformData((number) => { - return { number, timestamp: Date.now() }; - }), - ) - .pipe(writeData((data: AccParallelData) => acc.push(data))) - .on("error", () => { - fail(); - done(); - }) - .on("finish", () => { - deepStrictEqual( - acc.map((v) => v.number), - [1, 2, 3, 4], - ); - - // 2 tasks per batch with 10ms of timeout - const timeElapsed = last - start; - ok(timeElapsed < 60); - ok(timeElapsed > 29); - done(); - }); - }); - - it("can writeData (parallel)", (done) => { - const timeoutPerBatch = 10; - const nbParallelTasks = 2; - const acc: AccParallelData[] = []; - - const source = createStream(); - //first batch - source.push(1); - source.push(2); - //second - source.push(3); - source.push(4); - //third - source.push(5); - source.push(6); - - source.push(null); - - const start = Date.now(); - source - .pipe( - writeData( - (number: number) => { - return delay(() => acc.push({ number, timestamp: Date.now() }), timeoutPerBatch); - }, - { parallel: nbParallelTasks }, - ), - ) - .on("finish", () => { - deepStrictEqual( - acc.map((v) => v.number), - [1, 2, 3, 4, 5, 6], - ); - - // 2 tasks per batch with 10ms of timeout - const timeElapsed = acc[acc.length - 1].timestamp - start; - ok(timeElapsed < 60); - ok(timeElapsed >= 29); - done(); - }); - }); + }); + + it("can transformData (parallel)", (done) => { + const timeoutPerBatch = 10; + const nbParallelTasks = 2; + const acc: AccParallelData[] = []; + + const source = createStream(); + //first batch + source.push(1); + source.push(2); + //second + source.push(3); + source.push(4); + //third + source.push(5); + source.push(6); + + source.push(null); + + const start = Date.now(); + source + .pipe( + transformData( + (number: number) => { + return delay(() => ({number, timestamp: Date.now()}), timeoutPerBatch); + }, + {parallel: nbParallelTasks}, + ), + ) + .pipe(writeData((data: AccParallelData) => acc.push(data))) + .on("error", () => { + fail(); + done(); + }) + .on("finish", () => { + deepStrictEqual( + acc.map((v) => v.number), + [1, 2, 3, 4, 5, 6], + ); + + // 2 tasks per batch with 10ms of timeout + const timeElapsed = acc[acc.length - 1].timestamp - start; + ok(timeElapsed < 60); + ok(timeElapsed > 29); + done(); + }); + }); + + it("can filterData (parallel)", (done) => { + const timeoutPerBatch = 10; + const nbParallelTasks = 2; + const acc: AccParallelData[] = []; + + const source = createStream(); + //first batch + source.push(1); + source.push(2); + //second + source.push(3); + source.push(4); + //third + source.push(5); + source.push(6); + + source.push(null); + + const start = Date.now(); + let last: number; + source + .pipe( + filterData( + (number: number) => { + return delay(() => { + last = Date.now(); + return number < 5; + }, timeoutPerBatch); + }, + {parallel: nbParallelTasks}, + ), + ) + .pipe( + transformData((number) => { + return {number, timestamp: Date.now()}; + }), + ) + .pipe(writeData((data: AccParallelData) => acc.push(data))) + .on("error", () => { + fail(); + done(); + }) + .on("finish", () => { + deepStrictEqual( + acc.map((v) => v.number), + [1, 2, 3, 4], + ); + + // 2 tasks per batch with 10ms of timeout + const timeElapsed = last - start; + ok(timeElapsed < 60); + ok(timeElapsed > 29); + done(); + }); + }); + + it("can writeData (parallel)", (done) => { + const timeoutPerBatch = 10; + const nbParallelTasks = 2; + const acc: AccParallelData[] = []; + + const source = createStream(); + //first batch + source.push(1); + source.push(2); + //second + source.push(3); + source.push(4); + //third + source.push(5); + source.push(6); + + source.push(null); + + const start = Date.now(); + source + .pipe( + writeData( + (number: number) => { + return delay(() => acc.push({number, timestamp: Date.now()}), timeoutPerBatch); + }, + {parallel: nbParallelTasks}, + ), + ) + .on("finish", () => { + deepStrictEqual( + acc.map((v) => v.number), + [1, 2, 3, 4, 5, 6], + ); + + // 2 tasks per batch with 10ms of timeout + const timeElapsed = acc[acc.length - 1].timestamp - start; + ok(timeElapsed < 60); + ok(timeElapsed >= 29); + done(); + }); + }); }); diff --git a/test/pipeline-test.ts b/test/pipeline-test.ts index eefbf50..1f278ad 100644 --- a/test/pipeline-test.ts +++ b/test/pipeline-test.ts @@ -1,89 +1,89 @@ -import { deepStrictEqual, fail } from "assert"; -import { pipeline } from "stream"; -import { promisify } from "util"; -import { createStream, delay } from "./testUtils"; -import { transformData, writeData } from "../src"; +import {deepStrictEqual, fail} from "assert"; +import {pipeline} from "stream"; +import {promisify} from "util"; +import {createStream, delay} from "./testUtils"; +import {transformData, writeData} from "../src"; describe("pipeline", () => { - it("can create pipeline from stream", (done) => { - const chunks: string[] = []; - const source = createStream(); - source.push("andré"); - source.push("bruno"); - source.push("robert"); - source.push(null); + it("can create pipeline from stream", (done) => { + const chunks: string[] = []; + const source = createStream(); + source.push("andré"); + source.push("bruno"); + source.push("robert"); + source.push(null); - pipeline( - source, - transformData((data: string) => data.substring(0, 1)), - writeData((data: string) => chunks.push(data)), - (err) => { - if (err) { - return done(err); - } - deepStrictEqual(chunks, ["a", "b", "r"]); - return done(); - }, - ); - }); + pipeline( + source, + transformData((data: string) => data.substring(0, 1)), + writeData((data: string) => chunks.push(data)), + (err) => { + if (err) { + return done(err); + } + deepStrictEqual(chunks, ["a", "b", "r"]); + return done(); + }, + ); + }); - it("can create pipeline from stream (async)", async () => { - const chunks: string[] = []; - const source = createStream(); - source.push("andré"); - source.push("bruno"); - source.push("robert"); - source.push(null); + it("can create pipeline from stream (async)", async () => { + const chunks: string[] = []; + const source = createStream(); + source.push("andré"); + source.push("bruno"); + source.push("robert"); + source.push(null); - await promisify(pipeline)( - source, - transformData((data: string) => { - return delay(() => data.substring(0, 1), 2); - }), - writeData((data: string) => { - return delay(() => chunks.push(data), 2); - }), - ); + await promisify(pipeline)( + source, + transformData((data: string) => { + return delay(() => data.substring(0, 1), 2); + }), + writeData((data: string) => { + return delay(() => chunks.push(data), 2); + }), + ); - deepStrictEqual(chunks, ["a", "b", "r"]); - }); + deepStrictEqual(chunks, ["a", "b", "r"]); + }); - it("pipeline should propagate emitted error", (done) => { - const source = createStream(); + it("pipeline should propagate emitted error", (done) => { + const source = createStream(); - promisify(pipeline)( - source, - writeData(() => ({})), - ) - .then(() => { - fail(); - done(); - }) - .catch(() => { - done(); - }); + promisify(pipeline)( + source, + writeData(() => ({})), + ) + .then(() => { + fail(); + done(); + }) + .catch(() => { + done(); + }); - source.push("first"); - source.emit("error", "emitted"); - }); + source.push("first"); + source.emit("error", "emitted"); + }); - it("pipeline should propagate thrown error", (done) => { - const source = createStream(); - source.push("first"); - source.push(null); + it("pipeline should propagate thrown error", (done) => { + const source = createStream(); + source.push("first"); + source.push(null); - promisify(pipeline)( - source, - writeData(() => { - throw new Error(); - }), - ) - .then(() => { - fail(); - done(); - }) - .catch(() => { - done(); - }); - }); + promisify(pipeline)( + source, + writeData(() => { + throw new Error(); + }), + ) + .then(() => { + fail(); + done(); + }) + .catch(() => { + done(); + }); + }); }); diff --git a/test/readLineByLine-test.ts b/test/readLineByLine-test.ts index 7c06ff6..ca8b603 100644 --- a/test/readLineByLine-test.ts +++ b/test/readLineByLine-test.ts @@ -1,90 +1,90 @@ -import { deepStrictEqual } from "assert"; -import { createStream } from "./testUtils"; -import { oleoduc, readLineByLine, writeData } from "../src"; +import {deepStrictEqual} from "assert"; +import {createStream} from "./testUtils"; +import {oleoduc, readLineByLine, writeData} from "../src"; describe("readLineByLine", () => { - it("can read a stream line by line", (done) => { - const result: string[] = []; - const source = createStream(); - source.push("ab"); - source.push("c\ndef\ng"); - source.push("hi\n"); - source.push(null); + it("can read a stream line by line", (done) => { + const result: string[] = []; + const source = createStream(); + source.push("ab"); + source.push("c\ndef\ng"); + source.push("hi\n"); + source.push(null); - source - .pipe(readLineByLine()) - .pipe( - writeData((data: string) => { - result.push(data); - }), - ) - .on("finish", () => { - deepStrictEqual(result, ["abc", "def", "ghi"]); - done(); - }); - }); + source + .pipe(readLineByLine()) + .pipe( + writeData((data: string) => { + result.push(data); + }), + ) + .on("finish", () => { + deepStrictEqual(result, ["abc", "def", "ghi"]); + done(); + }); + }); - it("can read a stream line by line (CRLF)", (done) => { - const result: string[] = []; - const source = createStream(); - source.push("ab"); - source.push("c\r\ndef\r\ng"); - source.push("hi\r\n"); - source.push(null); + it("can read a stream line by line (CRLF)", (done) => { + const result: string[] = []; + const source = createStream(); + source.push("ab"); + source.push("c\r\ndef\r\ng"); + source.push("hi\r\n"); + source.push(null); - source - .pipe(readLineByLine()) - .pipe( - writeData((data: string) => { - result.push(data); - }), - ) - .on("finish", () => { - deepStrictEqual(result, ["abc", "def", "ghi"]); - done(); - }); - }); + source + .pipe(readLineByLine()) + .pipe( + writeData((data: string) => { + result.push(data); + }), + ) + .on("finish", () => { + deepStrictEqual(result, ["abc", "def", "ghi"]); + done(); + }); + }); - it("can handle content without carriage return on the last line", (done) => { - const result: string[] = []; - const source = createStream(); - source.push("ab\n"); - source.push("hi"); - source.push(null); + it("can handle content without carriage return on the last line", (done) => { + const result: string[] = []; + const source = createStream(); + source.push("ab\n"); + source.push("hi"); + source.push(null); - source - .pipe(readLineByLine()) - .pipe( - writeData((data: string) => { - result.push(data); - }), - ) - .on("finish", () => { - deepStrictEqual(result, ["ab", "hi"]); - done(); - }); - }); + source + .pipe(readLineByLine()) + .pipe( + writeData((data: string) => { + result.push(data); + }), + ) + .on("finish", () => { + deepStrictEqual(result, ["ab", "hi"]); + done(); + }); + }); - it("can read multiple lines with backpressure", async () => { - const array: string[] = []; - const source = createStream(); - const manyLines = Array(250) - .fill("line") - .map((v, i) => `${v}-${i}\n`) - .join(""); + it("can read multiple lines with backpressure", async () => { + const array: string[] = []; + const source = createStream(); + const manyLines = Array(250) + .fill("line") + .map((v, i) => `${v}-${i}\n`) + .join(""); - source.push(manyLines); - source.push(null); + source.push(manyLines); + source.push(null); - await oleoduc( - source, - readLineByLine(), - writeData((opco: string) => { - array.push(opco); - }), - ); + await oleoduc( + source, + readLineByLine(), + writeData((opco: string) => { + array.push(opco); + }), + ); - deepStrictEqual(array[0], "line-0"); - deepStrictEqual(array[array.length - 1], "line-249"); - }); + deepStrictEqual(array[0], "line-0"); + deepStrictEqual(array[array.length - 1], "line-249"); + }); }); diff --git a/test/testUtils.ts b/test/testUtils.ts index 7d57425..64870be 100644 --- a/test/testUtils.ts +++ b/test/testUtils.ts @@ -1,36 +1,36 @@ -import { Readable } from "stream"; -import { deepStrictEqual } from "assert"; +import {Readable} from "stream"; +import {deepStrictEqual} from "assert"; // @ts-expect-error TS7016 import SlowStream from "slow-stream"; export function delay(callback: () => T, delay: number): Promise { - return new Promise((resolve) => { - return setTimeout(async () => { - resolve(callback()); - }, delay); - }); + return new Promise((resolve) => { + return setTimeout(async () => { + resolve(callback()); + }, delay); + }); } export function streamArray(items: Array = []): Readable { - return new Readable({ - objectMode: true, - read() { - this.push(items.length > 0 ? items.shift() : null); - }, - }); + return new Readable({ + objectMode: true, + read() { + this.push(items.length > 0 ? items.shift() : null); + }, + }); } export function createStream() { - return new Readable({ - objectMode: true, - read() {}, - }); + return new Readable({ + objectMode: true, + read() {}, + }); } export function assertErrorMessage(e: unknown, message: string) { - deepStrictEqual((e as Error).message, message); + deepStrictEqual((e as Error).message, message); } -export function createSlowStream(options: { maxWriteInterval?: number } = {}) { - return new SlowStream(options); +export function createSlowStream(options: {maxWriteInterval?: number} = {}) { + return new SlowStream(options); } diff --git a/test/toAsyncIterator-test.ts b/test/toAsyncIterator-test.ts index 0829c71..76b1861 100644 --- a/test/toAsyncIterator-test.ts +++ b/test/toAsyncIterator-test.ts @@ -1,43 +1,43 @@ -import { deepStrictEqual, fail } from "assert"; -import { assertErrorMessage, createStream } from "./testUtils"; -import { toAsyncIterator } from "../src/utils/toAsyncIterator"; -import { compose, transformData } from "../src"; +import {deepStrictEqual, fail} from "assert"; +import {assertErrorMessage, createStream} from "./testUtils"; +import {toAsyncIterator} from "../src/utils/toAsyncIterator"; +import {compose, transformData} from "../src"; describe("toAsyncIterator", () => { - it("can convert a readable stream into an iterator", async () => { - const readable = createStream(); - readable.push("a"); - readable.push("b"); - readable.push("c"); - readable.push(null); + it("can convert a readable stream into an iterator", async () => { + const readable = createStream(); + readable.push("a"); + readable.push("b"); + readable.push("c"); + readable.push(null); - const chunks = []; - for await (const chunk of toAsyncIterator(readable)) { - chunks.push(chunk); - } + const chunks = []; + for await (const chunk of toAsyncIterator(readable)) { + chunks.push(chunk); + } - deepStrictEqual(chunks, ["a", "b", "c"]); - }); + deepStrictEqual(chunks, ["a", "b", "c"]); + }); - it("iterator should honor error", async () => { - const readable = createStream(); - const failingStream = compose( - readable, - transformData(() => { - throw new Error("This is a stream error"); - }), - ); - readable.push("a"); - readable.push("b"); + it("iterator should honor error", async () => { + const readable = createStream(); + const failingStream = compose( + readable, + transformData(() => { + throw new Error("This is a stream error"); + }), + ); + readable.push("a"); + readable.push("b"); - try { - const iterator = toAsyncIterator(failingStream); - await iterator.next(); - fail(); - } catch (e) { - assertErrorMessage(e, "This is a stream error"); - } + try { + const iterator = toAsyncIterator(failingStream); + await iterator.next(); + fail(); + } catch (e) { + assertErrorMessage(e, "This is a stream error"); + } - readable.push(null); - }); + readable.push(null); + }); }); diff --git a/test/transformData-test.ts b/test/transformData-test.ts index 725946e..8aff2ca 100644 --- a/test/transformData-test.ts +++ b/test/transformData-test.ts @@ -1,94 +1,94 @@ -import { deepStrictEqual, strictEqual, fail } from "assert"; -import { createStream } from "./testUtils"; -import { transformData, writeData } from "../src"; +import {deepStrictEqual, strictEqual, fail} from "assert"; +import {createStream} from "./testUtils"; +import {transformData, writeData} from "../src"; describe("transformData", () => { - it("should transformData", (done) => { - const chunks: string[] = []; - const source = createStream(); - source.push("andré"); - source.push("bruno"); - source.push(null); + it("should transformData", (done) => { + const chunks: string[] = []; + const source = createStream(); + source.push("andré"); + source.push("bruno"); + source.push(null); - source - .pipe(transformData((data: string) => data.substring(0, 1))) - .pipe(writeData((data: string) => chunks.push(data))) - .on("finish", () => { - deepStrictEqual(chunks, ["a", "b"]); - done(); - }); - }); + source + .pipe(transformData((data: string) => data.substring(0, 1))) + .pipe(writeData((data: string) => chunks.push(data))) + .on("finish", () => { + deepStrictEqual(chunks, ["a", "b"]); + done(); + }); + }); - it("should transformData (async)", (done) => { - const chunks: string[] = []; - const source = createStream(); - source.push("andré"); - source.push("bruno"); - source.push(null); + it("should transformData (async)", (done) => { + const chunks: string[] = []; + const source = createStream(); + source.push("andré"); + source.push("bruno"); + source.push(null); - source - .pipe( - transformData(async (data: string) => { - return new Promise((resolve) => { - resolve(data.substring(0, 1)); - }); - }), - ) - .pipe( - writeData(async (data: string) => { - return new Promise((resolve) => { - chunks.push(data); - resolve(); - }); - }), - ) - .on("finish", () => { - deepStrictEqual(chunks, ["a", "b"]); - done(); - }); - }); + source + .pipe( + transformData(async (data: string) => { + return new Promise((resolve) => { + resolve(data.substring(0, 1)); + }); + }), + ) + .pipe( + writeData(async (data: string) => { + return new Promise((resolve) => { + chunks.push(data); + resolve(); + }); + }), + ) + .on("finish", () => { + deepStrictEqual(chunks, ["a", "b"]); + done(); + }); + }); - it("should transformData and handle synchronous error", (done) => { - const source = createStream(); - source.push("andré"); - source.push(null); + it("should transformData and handle synchronous error", (done) => { + const source = createStream(); + source.push("andré"); + source.push(null); - source - .pipe( - transformData(() => { - throw new Error("An error occurred"); - }), - ) - .on("data", () => ({})) - .on("error", (e) => { - strictEqual(e.message, "An error occurred"); - done(); - }) - .on("finish", () => { - fail(); - done(); - }); - }); + source + .pipe( + transformData(() => { + throw new Error("An error occurred"); + }), + ) + .on("data", () => ({})) + .on("error", (e) => { + strictEqual(e.message, "An error occurred"); + done(); + }) + .on("finish", () => { + fail(); + done(); + }); + }); - it("should transformData and handle asynchronous error", (done) => { - const source = createStream(); - source.push("andré"); - source.push(null); + it("should transformData and handle asynchronous error", (done) => { + const source = createStream(); + source.push("andré"); + source.push(null); - source - .pipe( - transformData(() => { - return Promise.reject(new Error("An error occurred")); - }), - ) - .on("data", () => ({})) - .on("error", (e) => { - strictEqual(e.message, "An error occurred"); - done(); - }) - .on("finish", () => { - fail(); - done(); - }); - }); + source + .pipe( + transformData(() => { + return Promise.reject(new Error("An error occurred")); + }), + ) + .on("data", () => ({})) + .on("error", (e) => { + strictEqual(e.message, "An error occurred"); + done(); + }) + .on("finish", () => { + fail(); + done(); + }); + }); }); diff --git a/test/transformIntoCSV-test.ts b/test/transformIntoCSV-test.ts index d2abddb..0921359 100644 --- a/test/transformIntoCSV-test.ts +++ b/test/transformIntoCSV-test.ts @@ -1,165 +1,165 @@ -import { deepStrictEqual, fail, strictEqual, ok } from "assert"; -import { createStream, delay } from "./testUtils"; -import { transformIntoCSV, writeData } from "../src"; +import {deepStrictEqual, fail, strictEqual, ok} from "assert"; +import {createStream, delay} from "./testUtils"; +import {transformIntoCSV, writeData} from "../src"; -type FullNameParams = { firstName: string; lastName: string }; +type FullNameParams = {firstName: string; lastName: string}; describe("transformIntoCSV", () => { - it("should transform object into a csv", (done) => { - const source = createStream(); - source.push({ firstName: "Robert", lastName: "Hue" }); - source.push(null); - - const csv: string[] = []; - source - .pipe(transformIntoCSV()) - .pipe( - writeData((line: string) => { - csv.push(line); - }), - ) - .on("finish", () => { - deepStrictEqual(csv, ["firstName;lastName\n", "Robert;Hue\n"]); - done(); - }); - }); - - it("should transform object with mapper", (done) => { - const source = createStream(); - source.push({ firstName: "Robert", lastName: "Hue" }); - source.push(null); - - const csv: string[] = []; - source - .pipe(transformIntoCSV({ mapper: (v) => `"${v}"` })) - .pipe( - writeData((line: string) => { - csv.push(line); - }), - ) - .on("finish", () => { - deepStrictEqual(csv, ['"firstName";"lastName"\n', '"Robert";"Hue"\n']); - done(); - }); - }); - - it("should transform object into a csv with bom", (done) => { - const source = createStream(); - source.push({ firstName: "Robert", lastName: "Hue" }); - source.push(null); - - const csv: string[] = []; - source - .pipe(transformIntoCSV({ bom: true })) - .pipe( - writeData((line: string) => { - csv.push(line); - }), - ) - .on("finish", () => { - ok(csv[0].startsWith("\ufeff")); - done(); - }); - }); - - it("should transform object into a csv with separator", (done) => { - const source = createStream(); - source.push({ firstName: "Robert", lastName: "Hue" }); - source.push({ firstName: "John", lastName: "Doe" }); - source.push(null); - - const csv: string[] = []; - source - .pipe( - transformIntoCSV({ - separator: "|", - }), - ) - .pipe( - writeData((line: string) => { - csv.push(line); - }), - ) - .on("finish", () => { - deepStrictEqual(csv, ["firstName|lastName\n", "Robert|Hue\n", "John|Doe\n"]); - done(); - }); - }); - - it("should transform object into a csv with custom columns", (done) => { - const source = createStream(); - source.push({ firstName: "Robert", lastName: "Hue" }); - source.push(null); - - const csv: string[] = []; - source - .pipe( - transformIntoCSV({ - columns: { - fullName: (data) => `${data.firstName} ${data.lastName}`, - }, - }), - ) - .pipe( - writeData((line: string) => { - csv.push(line); - }), - ) - .on("finish", () => { - deepStrictEqual(csv, ["fullName\n", "Robert Hue\n"]); - done(); - }); - }); - - it("should transform object into a csv with async columns", (done) => { - const source = createStream(); - source.push({ firstName: "Robert", lastName: "Hue" }); - source.push(null); - - const csv: string[] = []; - source - .pipe( - transformIntoCSV({ - columns: { - fullName: (data: FullNameParams) => Promise.resolve(`${data.firstName} ${data.lastName}`), - lastName: async (data: FullNameParams) => await delay(() => data.lastName, 5), - }, - }), - ) - .pipe( - writeData((line: string) => { - csv.push(line); - }), - ) - .on("finish", () => { - deepStrictEqual(csv, ["fullName;lastName\n", "Robert Hue;Hue\n"]); - done(); - }); - }); - - it("should catch error in transformIntoCSV", (done) => { - const source = createStream(); - source.push("a"); - source.push(null); - - const transformer = transformIntoCSV({ - columns: { - error() { - throw new Error("Unable to handle data"); - }, - }, + it("should transform object into a csv", (done) => { + const source = createStream(); + source.push({firstName: "Robert", lastName: "Hue"}); + source.push(null); + + const csv: string[] = []; + source + .pipe(transformIntoCSV()) + .pipe( + writeData((line: string) => { + csv.push(line); + }), + ) + .on("finish", () => { + deepStrictEqual(csv, ["firstName;lastName\n", "Robert;Hue\n"]); + done(); + }); }); - source - .pipe(transformer) - .on("data", () => ({})) - .on("error", (e) => { - strictEqual(e.message, "Unable to handle data"); - done(); - }) - .on("finish", () => { - fail(); - done(); - }); - }); + it("should transform object with mapper", (done) => { + const source = createStream(); + source.push({firstName: "Robert", lastName: "Hue"}); + source.push(null); + + const csv: string[] = []; + source + .pipe(transformIntoCSV({mapper: (v) => `"${v}"`})) + .pipe( + writeData((line: string) => { + csv.push(line); + }), + ) + .on("finish", () => { + deepStrictEqual(csv, ['"firstName";"lastName"\n', '"Robert";"Hue"\n']); + done(); + }); + }); + + it("should transform object into a csv with bom", (done) => { + const source = createStream(); + source.push({firstName: "Robert", lastName: "Hue"}); + source.push(null); + + const csv: string[] = []; + source + .pipe(transformIntoCSV({bom: true})) + .pipe( + writeData((line: string) => { + csv.push(line); + }), + ) + .on("finish", () => { + ok(csv[0].startsWith("\ufeff")); + done(); + }); + }); + + it("should transform object into a csv with separator", (done) => { + const source = createStream(); + source.push({firstName: "Robert", lastName: "Hue"}); + source.push({firstName: "John", lastName: "Doe"}); + source.push(null); + + const csv: string[] = []; + source + .pipe( + transformIntoCSV({ + separator: "|", + }), + ) + .pipe( + writeData((line: string) => { + csv.push(line); + }), + ) + .on("finish", () => { + deepStrictEqual(csv, ["firstName|lastName\n", "Robert|Hue\n", "John|Doe\n"]); + done(); + }); + }); + + it("should transform object into a csv with custom columns", (done) => { + const source = createStream(); + source.push({firstName: "Robert", lastName: "Hue"}); + source.push(null); + + const csv: string[] = []; + source + .pipe( + transformIntoCSV({ + columns: { + fullName: (data) => `${data.firstName} ${data.lastName}`, + }, + }), + ) + .pipe( + writeData((line: string) => { + csv.push(line); + }), + ) + .on("finish", () => { + deepStrictEqual(csv, ["fullName\n", "Robert Hue\n"]); + done(); + }); + }); + + it("should transform object into a csv with async columns", (done) => { + const source = createStream(); + source.push({firstName: "Robert", lastName: "Hue"}); + source.push(null); + + const csv: string[] = []; + source + .pipe( + transformIntoCSV({ + columns: { + fullName: (data: FullNameParams) => Promise.resolve(`${data.firstName} ${data.lastName}`), + lastName: async (data: FullNameParams) => await delay(() => data.lastName, 5), + }, + }), + ) + .pipe( + writeData((line: string) => { + csv.push(line); + }), + ) + .on("finish", () => { + deepStrictEqual(csv, ["fullName;lastName\n", "Robert Hue;Hue\n"]); + done(); + }); + }); + + it("should catch error in transformIntoCSV", (done) => { + const source = createStream(); + source.push("a"); + source.push(null); + + const transformer = transformIntoCSV({ + columns: { + error() { + throw new Error("Unable to handle data"); + }, + }, + }); + + source + .pipe(transformer) + .on("data", () => ({})) + .on("error", (e) => { + strictEqual(e.message, "Unable to handle data"); + done(); + }) + .on("finish", () => { + fail(); + done(); + }); + }); }); diff --git a/test/transformIntoJSON-test.ts b/test/transformIntoJSON-test.ts index d31e1cf..fdeafab 100644 --- a/test/transformIntoJSON-test.ts +++ b/test/transformIntoJSON-test.ts @@ -1,105 +1,105 @@ -import { deepStrictEqual } from "assert"; -import { createStream } from "./testUtils"; -import { transformIntoJSON } from "../src"; +import {deepStrictEqual} from "assert"; +import {createStream} from "./testUtils"; +import {transformIntoJSON} from "../src"; describe("transformIntoJSON", () => { - it("can stream a json array", (done) => { - const sourceStream = createStream(); - sourceStream.push({ name: "andré" }); - sourceStream.push({ name: "robert" }); - sourceStream.push(null); + it("can stream a json array", (done) => { + const sourceStream = createStream(); + sourceStream.push({name: "andré"}); + sourceStream.push({name: "robert"}); + sourceStream.push(null); - let json = ""; - sourceStream - .pipe(transformIntoJSON()) - .on("data", (d) => { - return (json += d); - }) - .on("end", () => { - deepStrictEqual(JSON.parse(json), [{ name: "andré" }, { name: "robert" }]); - done(); - }); - }); + let json = ""; + sourceStream + .pipe(transformIntoJSON()) + .on("data", (d) => { + return (json += d); + }) + .on("end", () => { + deepStrictEqual(JSON.parse(json), [{name: "andré"}, {name: "robert"}]); + done(); + }); + }); - it("can stream an empty json array", (done) => { - const sourceStream = createStream(); - sourceStream.push(null); + it("can stream an empty json array", (done) => { + const sourceStream = createStream(); + sourceStream.push(null); - let json = ""; - sourceStream - .pipe(transformIntoJSON()) - .on("data", (d) => { - return (json += d); - }) - .on("end", () => { - deepStrictEqual(JSON.parse(json), []); - done(); - }); - }); + let json = ""; + sourceStream + .pipe(transformIntoJSON()) + .on("data", (d) => { + return (json += d); + }) + .on("end", () => { + deepStrictEqual(JSON.parse(json), []); + done(); + }); + }); - it("can wrap and stream a json array", (done) => { - const sourceStream = createStream(); - sourceStream.push({ name: "andré" }); - sourceStream.push(null); + it("can wrap and stream a json array", (done) => { + const sourceStream = createStream(); + sourceStream.push({name: "andré"}); + sourceStream.push(null); - let json = ""; - sourceStream - .pipe(transformIntoJSON({ arrayPropertyName: "results" })) - .on("data", (d) => { - return (json += d); - }) - .on("end", () => { - deepStrictEqual(JSON.parse(json), { results: [{ name: "andré" }] }); - done(); - }); - }); + let json = ""; + sourceStream + .pipe(transformIntoJSON({arrayPropertyName: "results"})) + .on("data", (d) => { + return (json += d); + }) + .on("end", () => { + deepStrictEqual(JSON.parse(json), {results: [{name: "andré"}]}); + done(); + }); + }); - it("can wrap and stream an empty json array", (done) => { - const sourceStream = createStream(); - sourceStream.push(null); + it("can wrap and stream an empty json array", (done) => { + const sourceStream = createStream(); + sourceStream.push(null); - let json = ""; - sourceStream - .pipe(transformIntoJSON({ arrayPropertyName: "results" })) - .on("data", (d) => { - return (json += d); - }) - .on("end", () => { - deepStrictEqual(JSON.parse(json), { results: [] }); - done(); - }); - }); + let json = ""; + sourceStream + .pipe(transformIntoJSON({arrayPropertyName: "results"})) + .on("data", (d) => { + return (json += d); + }) + .on("end", () => { + deepStrictEqual(JSON.parse(json), {results: []}); + done(); + }); + }); - it("can wrap and stream a json array into a object", (done) => { - const sourceStream = createStream(); - sourceStream.push({ name: "andré" }); - sourceStream.push(null); + it("can wrap and stream a json array into a object", (done) => { + const sourceStream = createStream(); + sourceStream.push({name: "andré"}); + sourceStream.push(null); - let json = ""; - sourceStream - .pipe(transformIntoJSON({ arrayWrapper: { preexisting: true }, arrayPropertyName: "results" })) - .on("data", (d) => { - return (json += d); - }) - .on("end", () => { - deepStrictEqual(JSON.parse(json), { preexisting: true, results: [{ name: "andré" }] }); - done(); - }); - }); + let json = ""; + sourceStream + .pipe(transformIntoJSON({arrayWrapper: {preexisting: true}, arrayPropertyName: "results"})) + .on("data", (d) => { + return (json += d); + }) + .on("end", () => { + deepStrictEqual(JSON.parse(json), {preexisting: true, results: [{name: "andré"}]}); + done(); + }); + }); - it("can wrap and stream an empty json array into a object", (done) => { - const sourceStream = createStream(); - sourceStream.push(null); + it("can wrap and stream an empty json array into a object", (done) => { + const sourceStream = createStream(); + sourceStream.push(null); - let json = ""; - sourceStream - .pipe(transformIntoJSON({ arrayWrapper: { preexisting: true }, arrayPropertyName: "results" })) - .on("data", (d) => { - return (json += d); - }) - .on("end", () => { - deepStrictEqual(JSON.parse(json), { preexisting: true, results: [] }); - done(); - }); - }); + let json = ""; + sourceStream + .pipe(transformIntoJSON({arrayWrapper: {preexisting: true}, arrayPropertyName: "results"})) + .on("data", (d) => { + return (json += d); + }) + .on("end", () => { + deepStrictEqual(JSON.parse(json), {preexisting: true, results: []}); + done(); + }); + }); }); diff --git a/test/transformStream-test.ts b/test/transformStream-test.ts index 27cbe5b..33ba876 100644 --- a/test/transformStream-test.ts +++ b/test/transformStream-test.ts @@ -1,92 +1,92 @@ -import { deepStrictEqual } from "assert"; -import { createSlowStream, createStream, delay, streamArray } from "./testUtils"; -import { transformStream, writeData } from "../src"; +import {deepStrictEqual} from "assert"; +import {createSlowStream, createStream, delay, streamArray} from "./testUtils"; +import {transformStream, writeData} from "../src"; describe("transformStream", () => { - it("should transform data into a stream", (done) => { - const chunks: string[] = []; - const source = streamArray(["andré", "bruno"]); + it("should transform data into a stream", (done) => { + const chunks: string[] = []; + const source = streamArray(["andré", "bruno"]); - source - .pipe( - transformStream((data: string) => { - const source = createStream(); - source.push(data + "_transformed"); - source.push(null); - return source; - }), - ) - .pipe( - writeData((data: string) => { - chunks.push(data); - }), - ) - .on("finish", () => { - deepStrictEqual(chunks, ["andré_transformed", "bruno_transformed"]); - done(); - }); - }); + source + .pipe( + transformStream((data: string) => { + const source = createStream(); + source.push(data + "_transformed"); + source.push(null); + return source; + }), + ) + .pipe( + writeData((data: string) => { + chunks.push(data); + }), + ) + .on("finish", () => { + deepStrictEqual(chunks, ["andré_transformed", "bruno_transformed"]); + done(); + }); + }); - it("should transform data into a stream (async)", (done) => { - const chunks: string[] = []; - const source = streamArray(["andré", "bruno"]); + it("should transform data into a stream (async)", (done) => { + const chunks: string[] = []; + const source = streamArray(["andré", "bruno"]); - source - .pipe( - transformStream((data: string) => { - const source = createStream(); + source + .pipe( + transformStream((data: string) => { + const source = createStream(); - return delay(() => { - source.push(data + "_transformed"); - source.push(null); - return source; - }, 20); - }), - ) - .pipe( - writeData((data: string) => { - chunks.push(data); - }), - ) - .on("finish", () => { - deepStrictEqual(chunks, ["andré_transformed", "bruno_transformed"]); - done(); - }); - }); + return delay(() => { + source.push(data + "_transformed"); + source.push(null); + return source; + }, 20); + }), + ) + .pipe( + writeData((data: string) => { + chunks.push(data); + }), + ) + .on("finish", () => { + deepStrictEqual(chunks, ["andré_transformed", "bruno_transformed"]); + done(); + }); + }); - it("should transform data into a stream (backpressure)", (done) => { - const chunks: string[] = []; - const source = streamArray(["andré"]); + it("should transform data into a stream (backpressure)", (done) => { + const chunks: string[] = []; + const source = streamArray(["andré"]); - source - .pipe( - transformStream( - async (data: string) => { - const source = createStream(); - for (let i = 0; i < 5; i++) { - source.push(data + "_transformed"); - } - source.push(null); - return source; - }, - { objectMode: true, highWaterMark: 1 }, - ), - ) - .pipe(createSlowStream({ maxWriteInterval: 10 })) // Force up streams to be paused - .pipe( - writeData((data: string) => { - chunks.push(data); - }), - ) - .on("finish", () => { - deepStrictEqual(chunks, [ - "andré_transformed", - "andré_transformed", - "andré_transformed", - "andré_transformed", - "andré_transformed", - ]); - done(); - }); - }); + source + .pipe( + transformStream( + async (data: string) => { + const source = createStream(); + for (let i = 0; i < 5; i++) { + source.push(data + "_transformed"); + } + source.push(null); + return source; + }, + {objectMode: true, highWaterMark: 1}, + ), + ) + .pipe(createSlowStream({maxWriteInterval: 10})) // Force up streams to be paused + .pipe( + writeData((data: string) => { + chunks.push(data); + }), + ) + .on("finish", () => { + deepStrictEqual(chunks, [ + "andré_transformed", + "andré_transformed", + "andré_transformed", + "andré_transformed", + "andré_transformed", + ]); + done(); + }); + }); }); diff --git a/test/writeData-test.ts b/test/writeData-test.ts index 747a001..7c8eb4a 100644 --- a/test/writeData-test.ts +++ b/test/writeData-test.ts @@ -1,103 +1,103 @@ -import { deepStrictEqual, fail, strictEqual } from "assert"; -import { createStream } from "./testUtils"; -import { writeData } from "../src"; +import {deepStrictEqual, fail, strictEqual} from "assert"; +import {createStream} from "./testUtils"; +import {writeData} from "../src"; describe("writeData", () => { - it("should writeData", (done) => { - const source = createStream(); - source.push("andré"); - source.push(null); - const acc: string[] = []; + it("should writeData", (done) => { + const source = createStream(); + source.push("andré"); + source.push(null); + const acc: string[] = []; - source - .pipe( - writeData((data: string) => { - acc.push(data); - }), - ) - .on("finish", () => { - deepStrictEqual(acc, ["andré"]); - done(); - }); - }); + source + .pipe( + writeData((data: string) => { + acc.push(data); + }), + ) + .on("finish", () => { + deepStrictEqual(acc, ["andré"]); + done(); + }); + }); - it("should writeData and handle synchronous error", (done) => { - const source = createStream(); - source.push(1); - source.push(null); + it("should writeData and handle synchronous error", (done) => { + const source = createStream(); + source.push(1); + source.push(null); - source - .pipe( - writeData( - () => { - throw new Error("sync error"); - }, - { parallel: 1 }, - ), - ) - .on("error", (e) => { - strictEqual(e.message, "sync error"); - done(); - }) - .on("finish", () => { - fail(); - done(); - }); - }); + source + .pipe( + writeData( + () => { + throw new Error("sync error"); + }, + {parallel: 1}, + ), + ) + .on("error", (e) => { + strictEqual(e.message, "sync error"); + done(); + }) + .on("finish", () => { + fail(); + done(); + }); + }); - it("should writeData and handle asynchronous error (first chunk)", (done) => { - const source = createStream(); - source.push("andré"); - source.push(null); + it("should writeData and handle asynchronous error (first chunk)", (done) => { + const source = createStream(); + source.push("andré"); + source.push(null); - source - .pipe( - writeData(() => { - return Promise.reject(new Error("first chunk")); - }), - ) - .on("error", (e) => { - strictEqual(e.message, "first chunk"); - done(); - }) - .on("finish", () => { - fail(); - done(); - }); - }); + source + .pipe( + writeData(() => { + return Promise.reject(new Error("first chunk")); + }), + ) + .on("error", (e) => { + strictEqual(e.message, "first chunk"); + done(); + }) + .on("finish", () => { + fail(); + done(); + }); + }); - it("should writeData and handle asynchronous error", (done) => { - const source = createStream(); - source.push(1); - source.push(2); - source.push(3); - source.push(null); - const acc: number[] = []; + it("should writeData and handle asynchronous error", (done) => { + const source = createStream(); + source.push(1); + source.push(2); + source.push(3); + source.push(null); + const acc: number[] = []; - source - .pipe( - writeData( - (data: number) => { - return new Promise((resolve, reject) => { - if (data === 2) { - reject(new Error("async error")); - } else { - acc.push(data); - resolve(); - } + source + .pipe( + writeData( + (data: number) => { + return new Promise((resolve, reject) => { + if (data === 2) { + reject(new Error("async error")); + } else { + acc.push(data); + resolve(); + } + }); + }, + {parallel: 1}, + ), + ) + .on("error", (e) => { + strictEqual(e.message, "async error"); + deepStrictEqual(acc, [1]); + done(); + }) + .on("finish", () => { + fail(); + done(); }); - }, - { parallel: 1 }, - ), - ) - .on("error", (e) => { - strictEqual(e.message, "async error"); - deepStrictEqual(acc, [1]); - done(); - }) - .on("finish", () => { - fail(); - done(); - }); - }); + }); }); diff --git a/test/writeToStdout-test.ts b/test/writeToStdout-test.ts index 5a3d0fe..bb7b491 100644 --- a/test/writeToStdout-test.ts +++ b/test/writeToStdout-test.ts @@ -1,16 +1,16 @@ -import { createStream } from "./testUtils"; -import { writeToStdout } from "../src"; +import {createStream} from "./testUtils"; +import {writeToStdout} from "../src"; describe("writeToStdout", () => { - it("should write to stdout", (done) => { - const source = createStream(); - source.push("andré"); - source.push(null); + it("should write to stdout", (done) => { + const source = createStream(); + source.push("andré"); + source.push(null); - source.pipe(writeToStdout()).on("finish", () => { - //For the moment we just need to check that 'finish' event is honored - //TODO find an easy way to test stdout - done(); + source.pipe(writeToStdout()).on("finish", () => { + //For the moment we just need to check that 'finish' event is honored + //TODO find an easy way to test stdout + done(); + }); }); - }); }); diff --git a/tsconfig.cjs.json b/tsconfig.cjs.json index 990eb6c..56c760a 100644 --- a/tsconfig.cjs.json +++ b/tsconfig.cjs.json @@ -1,10 +1,10 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "moduleResolution": "node", "module": "commonjs", - "target": "es2015", + "moduleResolution": "node", "outDir": "./dist/cjs", + "target": "es2015", "typeRoots": ["./node_modules/@types", "./src/@types"] } } diff --git a/tsconfig.json b/tsconfig.json index b340522..b6be70c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,18 +1,19 @@ { + "include": ["src"], + "exclude": ["node_modules", "dist"], "compilerOptions": { - "moduleResolution": "NodeNext", + "allowJs": true, + "declaration": true, + "declarationMap": true, + "esModuleInterop": true, + "lib": ["esnext"], "module": "NodeNext", - "target": "esnext", + "moduleResolution": "NodeNext", "outDir": "./dist/mjs", - "rootDirs": ["src"], - "types": ["node", "mocha"], - "lib": ["esnext"], - "allowJs": true, - "strict": true, + "skipLibCheck": true, "sourceMap": true, - "esModuleInterop": true, - "skipLibCheck": true + "strict": true, + "target": "esnext", + "types": ["node", "mocha"], }, - "exclude": ["node_modules", "dist"], - "include": ["src"] } From 9e9a56052fcf6dfb2de371dd2e13486ec501d494 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Gu=C3=A9rout?= Date: Sun, 5 Jan 2025 01:11:25 +0100 Subject: [PATCH 08/12] fix esm build --- .eslintrc.json | 5 ----- .tools/build.sh | 5 ++++- package.json | 6 ++++-- src/accumulateData.ts | 2 +- src/compose.ts | 14 ++++++------ src/concatStreams.ts | 4 ++-- src/filterData.ts | 2 +- src/flattenArray.ts | 2 +- src/groupData.ts | 2 +- src/index.ts | 30 +++++++++++++------------- src/mergeStreams.ts | 7 +++--- src/oleoduc.ts | 10 ++++----- src/readLineByLine.ts | 6 +++--- src/transformData.ts | 3 +-- src/transformIntoCSV.ts | 2 +- src/transformIntoJSON.ts | 2 +- src/transformStream.ts | 3 +-- src/utils/Duplexer.ts | 2 +- src/utils/decorateWithAsyncIterator.ts | 4 ++-- src/utils/isReadableStream.ts | 2 +- src/utils/isWriteableStream.ts | 2 +- src/utils/pipeStreamsTogether.ts | 4 ++-- src/utils/toAsyncIterator.ts | 2 +- src/utils/wrapStreams.ts | 10 ++++----- src/writeData.ts | 3 +-- src/writeToStdout.ts | 2 +- test/accumulateData-test.ts | 4 ++-- test/compose-test.ts | 4 ++-- test/concatStreams-test.ts | 4 ++-- test/filterData-tests.ts | 4 ++-- test/flattenArray-test.ts | 4 ++-- test/groupData-test.ts | 4 ++-- test/mergeStreams-test.ts | 4 ++-- test/oleoduc-test.ts | 4 ++-- test/parallel-test.ts | 4 ++-- test/pipeline-test.ts | 4 ++-- test/readLineByLine-test.ts | 4 ++-- test/toAsyncIterator-test.ts | 6 +++--- test/transformData-test.ts | 4 ++-- test/transformIntoCSV-test.ts | 4 ++-- test/transformIntoJSON-test.ts | 4 ++-- test/transformStream-test.ts | 4 ++-- test/writeData-test.ts | 4 ++-- test/writeToStdout-test.ts | 4 ++-- tsconfig.cjs.json | 2 +- tsconfig.json | 16 ++++++-------- tsconfig.types.json | 9 ++++++++ 47 files changed, 119 insertions(+), 118 deletions(-) create mode 100644 tsconfig.types.json diff --git a/.eslintrc.json b/.eslintrc.json index 5b53dbd..41dc2a7 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -44,11 +44,6 @@ "error", { "allowModules": ["slow-stream"] } - ], - "node/no-missing-import": [ - "error", { - "tryExtensions": [".js", ".ts"] - } ] } } diff --git a/.tools/build.sh b/.tools/build.sh index ec9f647..9f42272 100644 --- a/.tools/build.sh +++ b/.tools/build.sh @@ -12,7 +12,7 @@ cd "${PROJECT_DIR}" echo "Compiling oleoduc (esm version)..." npm run tsc -- -p tsconfig.json -cat >"${DIST_DIR}/mjs/package.json" <"${DIST_DIR}/esm/package.json" <"${DIST_DIR}/cjs/package.json" < = TransformOptions & {accumulator?: TAcc}; export type AccumulateDataCallback = ( diff --git a/src/compose.ts b/src/compose.ts index 5e5b4b6..62390bc 100644 --- a/src/compose.ts +++ b/src/compose.ts @@ -1,10 +1,10 @@ -import {parseArgs} from "./utils/parseArgs"; -import {wrapStreams} from "./utils/wrapStreams"; -import {isReadableStream} from "./utils/isReadableStream"; -import {decorateWithAsyncIterator} from "./utils/decorateWithAsyncIterator"; -import {pipeStreamsTogether} from "./utils/pipeStreamsTogether"; -import {AnyStream, PipeableStreams} from "./types"; -import {Readable, TransformOptions} from "stream"; +import {Readable, TransformOptions} from "node:stream"; +import {parseArgs} from "./utils/parseArgs.ts"; +import {wrapStreams} from "./utils/wrapStreams.ts"; +import {isReadableStream} from "./utils/isReadableStream.ts"; +import {decorateWithAsyncIterator} from "./utils/decorateWithAsyncIterator.ts"; +import {pipeStreamsTogether} from "./utils/pipeStreamsTogether.ts"; +import {AnyStream, PipeableStreams} from "./types.ts"; export type ComposeOptions = TransformOptions; diff --git a/src/concatStreams.ts b/src/concatStreams.ts index 9dbd416..130c844 100644 --- a/src/concatStreams.ts +++ b/src/concatStreams.ts @@ -1,5 +1,5 @@ -import {PassThrough, TransformOptions} from "stream"; -import {parseArgs} from "./utils/parseArgs"; +import {PassThrough, TransformOptions} from "node:stream"; +import {parseArgs} from "./utils/parseArgs.ts"; type NextStreamCallback = () => Promise | NodeJS.ReadableStream | null; diff --git a/src/filterData.ts b/src/filterData.ts index db01b4c..bdf3e98 100644 --- a/src/filterData.ts +++ b/src/filterData.ts @@ -1,5 +1,5 @@ -import {TransformDataCallback, transformData, TransformDataOptions} from "./transformData"; import {Transform} from "node:stream"; +import {TransformDataCallback, transformData, TransformDataOptions} from "./transformData.ts"; export function filterData( filter: TransformDataCallback, diff --git a/src/flattenArray.ts b/src/flattenArray.ts index 64d95e0..2ae8112 100644 --- a/src/flattenArray.ts +++ b/src/flattenArray.ts @@ -1,4 +1,4 @@ -import {Transform, TransformCallback, TransformOptions} from "stream"; +import {Transform, TransformCallback, TransformOptions} from "node:stream"; /** * Inspired by https://stackoverflow.com/a/43811543/122975 diff --git a/src/groupData.ts b/src/groupData.ts index 54f470c..cf7cc4c 100644 --- a/src/groupData.ts +++ b/src/groupData.ts @@ -1,4 +1,4 @@ -import {accumulateData, AccumulateDataOptions} from "./accumulateData"; +import {accumulateData, AccumulateDataOptions} from "./accumulateData.ts"; export type GroupDataOptions = {size?: number} & AccumulateDataOptions>; diff --git a/src/index.ts b/src/index.ts index 571f925..5c71d8b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,18 +1,18 @@ -import {accumulateData} from "./accumulateData"; -import {compose} from "./compose"; -import {concatStreams} from "./concatStreams"; -import {filterData} from "./filterData"; -import {flattenArray} from "./flattenArray"; -import {groupData} from "./groupData"; -import {mergeStreams} from "./mergeStreams"; -import {oleoduc} from "./oleoduc"; -import {readLineByLine} from "./readLineByLine"; -import {transformData} from "./transformData"; -import {transformIntoCSV} from "./transformIntoCSV"; -import {transformIntoJSON} from "./transformIntoJSON"; -import {transformStream} from "./transformStream"; -import {writeData} from "./writeData"; -import {writeToStdout} from "./writeToStdout"; +import {accumulateData} from "./accumulateData.ts"; +import {compose} from "./compose.ts"; +import {concatStreams} from "./concatStreams.ts"; +import {filterData} from "./filterData.ts"; +import {flattenArray} from "./flattenArray.ts"; +import {groupData} from "./groupData.ts"; +import {mergeStreams} from "./mergeStreams.ts"; +import {oleoduc} from "./oleoduc.ts"; +import {readLineByLine} from "./readLineByLine.ts"; +import {transformData} from "./transformData.ts"; +import {transformIntoCSV} from "./transformIntoCSV.ts"; +import {transformIntoJSON} from "./transformIntoJSON.ts"; +import {transformStream} from "./transformStream.ts"; +import {writeData} from "./writeData.ts"; +import {writeToStdout} from "./writeToStdout.ts"; export { accumulateData, diff --git a/src/mergeStreams.ts b/src/mergeStreams.ts index c504e65..8ea1009 100644 --- a/src/mergeStreams.ts +++ b/src/mergeStreams.ts @@ -1,7 +1,6 @@ -import {PassThrough, Transform} from "stream"; -import {decorateWithAsyncIterator} from "./utils/decorateWithAsyncIterator"; -import {parseArgs} from "./utils/parseArgs"; -import {StreamOptions} from "node:stream"; +import {PassThrough, Transform, StreamOptions} from "node:stream"; +import {decorateWithAsyncIterator} from "./utils/decorateWithAsyncIterator.ts"; +import {parseArgs} from "./utils/parseArgs.ts"; export function mergeStreams( ...args: diff --git a/src/oleoduc.ts b/src/oleoduc.ts index 3d22f33..6f87410 100644 --- a/src/oleoduc.ts +++ b/src/oleoduc.ts @@ -1,8 +1,8 @@ -import {parseArgs} from "./utils/parseArgs"; -import {AnyStream, PipeableStreams} from "./types"; -import {wrapStreams} from "./utils/wrapStreams"; -import {pipeStreamsTogether} from "./utils/pipeStreamsTogether"; -import {TransformOptions} from "stream"; +import {TransformOptions} from "node:stream"; +import {parseArgs} from "./utils/parseArgs.ts"; +import {AnyStream, PipeableStreams} from "./types.ts"; +import {wrapStreams} from "./utils/wrapStreams.ts"; +import {pipeStreamsTogether} from "./utils/pipeStreamsTogether.ts"; export type OleoducOptions = TransformOptions; diff --git a/src/readLineByLine.ts b/src/readLineByLine.ts index d2ce443..fc40e4c 100644 --- a/src/readLineByLine.ts +++ b/src/readLineByLine.ts @@ -1,6 +1,6 @@ -import {accumulateData} from "./accumulateData"; -import {flattenArray} from "./flattenArray"; -import {compose} from "./compose"; +import {accumulateData} from "./accumulateData.ts"; +import {flattenArray} from "./flattenArray.ts"; +import {compose} from "./compose.ts"; export function readLineByLine() { return compose( diff --git a/src/transformData.ts b/src/transformData.ts index 7611f4c..9c9bb8c 100644 --- a/src/transformData.ts +++ b/src/transformData.ts @@ -1,6 +1,5 @@ import transform from "parallel-transform"; -import {Transform, TransformOptions} from "node:stream"; -import {TransformCallback} from "stream"; +import {Transform, TransformOptions, TransformCallback} from "node:stream"; export type TransformDataCallback = (data: TInput) => Promise | TOutput; export type TransformDataOptions = { diff --git a/src/transformIntoCSV.ts b/src/transformIntoCSV.ts index 3b6fcfe..9f98fec 100644 --- a/src/transformIntoCSV.ts +++ b/src/transformIntoCSV.ts @@ -1,4 +1,4 @@ -import {Transform, TransformOptions} from "stream"; +import {Transform, TransformOptions} from "node:stream"; export type TransformIntoCSVOptions = TransformOptions & { columns?: Record Promise | AllowedCSVType>; diff --git a/src/transformIntoJSON.ts b/src/transformIntoJSON.ts index 2bbc449..06cd377 100644 --- a/src/transformIntoJSON.ts +++ b/src/transformIntoJSON.ts @@ -1,4 +1,4 @@ -import {Transform, TransformOptions} from "stream"; +import {Transform, TransformOptions} from "node:stream"; export type TransformIntoJSONOptions = TransformOptions & { arrayPropertyName?: string; diff --git a/src/transformStream.ts b/src/transformStream.ts index c9d178d..ffadffd 100644 --- a/src/transformStream.ts +++ b/src/transformStream.ts @@ -1,5 +1,4 @@ -import {Transform, TransformCallback} from "stream"; -import {TransformOptions} from "node:stream"; +import {Transform, TransformOptions, TransformCallback} from "node:stream"; export type TransformStreamCallback = ( data: TInput, diff --git a/src/utils/Duplexer.ts b/src/utils/Duplexer.ts index 72dae29..2568bde 100644 --- a/src/utils/Duplexer.ts +++ b/src/utils/Duplexer.ts @@ -1,4 +1,4 @@ -import {Duplex, DuplexOptions, Readable, Writable} from "stream"; +import {Duplex, DuplexOptions, Readable, Writable} from "node:stream"; type DuplexerCallback = (error?: Error | null) => void; diff --git a/src/utils/decorateWithAsyncIterator.ts b/src/utils/decorateWithAsyncIterator.ts index 08dbdf1..5d96bf8 100644 --- a/src/utils/decorateWithAsyncIterator.ts +++ b/src/utils/decorateWithAsyncIterator.ts @@ -1,5 +1,5 @@ -import {toAsyncIterator} from "./toAsyncIterator"; -import {Readable} from "stream"; +import {Readable} from "node:stream"; +import {toAsyncIterator} from "./toAsyncIterator.ts"; export function decorateWithAsyncIterator(stream: Readable) { stream[Symbol.asyncIterator] = () => toAsyncIterator(stream); diff --git a/src/utils/isReadableStream.ts b/src/utils/isReadableStream.ts index ccf24da..fc56c44 100644 --- a/src/utils/isReadableStream.ts +++ b/src/utils/isReadableStream.ts @@ -1,4 +1,4 @@ -import {Readable} from "stream"; +import {Readable} from "node:stream"; // eslint-disable-next-line @typescript-eslint/no-explicit-any export function isReadableStream(stream: any): stream is Readable { diff --git a/src/utils/isWriteableStream.ts b/src/utils/isWriteableStream.ts index 7538fc3..49e58e3 100644 --- a/src/utils/isWriteableStream.ts +++ b/src/utils/isWriteableStream.ts @@ -1,4 +1,4 @@ -import {Writable} from "stream"; +import {Writable} from "node:stream"; // eslint-disable-next-line @typescript-eslint/no-explicit-any export function isWritableStream(stream: any): stream is Writable { diff --git a/src/utils/pipeStreamsTogether.ts b/src/utils/pipeStreamsTogether.ts index 6d2b398..b67df36 100644 --- a/src/utils/pipeStreamsTogether.ts +++ b/src/utils/pipeStreamsTogether.ts @@ -1,5 +1,5 @@ -import {AnyStream} from "../types"; -import {Readable, Writable} from "stream"; +import {Readable, Writable} from "node:stream"; +import {AnyStream} from "../types.ts"; export function pipeStreamsTogether(streams: AnyStream[], wrapper: AnyStream) { for (const [i, stream] of streams.entries()) { diff --git a/src/utils/toAsyncIterator.ts b/src/utils/toAsyncIterator.ts index cb2e08f..b1b4a04 100644 --- a/src/utils/toAsyncIterator.ts +++ b/src/utils/toAsyncIterator.ts @@ -1,4 +1,4 @@ -import {Readable} from "stream"; +import {Readable} from "node:stream"; type ToAsyncIteratorOptions = { chunkSize?: number; diff --git a/src/utils/wrapStreams.ts b/src/utils/wrapStreams.ts index 2dca3df..f4b0236 100644 --- a/src/utils/wrapStreams.ts +++ b/src/utils/wrapStreams.ts @@ -1,8 +1,8 @@ -import {Duplexer} from "./Duplexer"; -import {PassThrough, TransformOptions} from "stream"; -import {isReadableStream} from "./isReadableStream"; -import {isWritableStream} from "./isWriteableStream"; -import {AnyStream} from "../types"; +import {PassThrough, TransformOptions} from "node:stream"; +import {Duplexer} from "./Duplexer.ts"; +import {isReadableStream} from "./isReadableStream.ts"; +import {isWritableStream} from "./isWriteableStream.ts"; +import {AnyStream} from "../types.ts"; export function wrapStreams(streams: AnyStream[], options: TransformOptions = {}) { if (streams.length === 0) { diff --git a/src/writeData.ts b/src/writeData.ts index 3693f00..cb3973d 100644 --- a/src/writeData.ts +++ b/src/writeData.ts @@ -1,6 +1,5 @@ -import {Writable} from "stream"; +import {WritableOptions, Writable} from "node:stream"; import cyclist, {Cyclist} from "cyclist"; -import {WritableOptions} from "node:stream"; export type WriteDataOptions = {parallel?: number}; export type WriteDataCallback = (data: TInput) => void | unknown; diff --git a/src/writeToStdout.ts b/src/writeToStdout.ts index 740e725..357aae2 100644 --- a/src/writeToStdout.ts +++ b/src/writeToStdout.ts @@ -1,4 +1,4 @@ -import {Writable} from "stream"; +import {Writable} from "node:stream"; type WriteToStdoutCallback = (error: Error | null | undefined) => void; diff --git a/test/accumulateData-test.ts b/test/accumulateData-test.ts index a64f634..a231e0a 100644 --- a/test/accumulateData-test.ts +++ b/test/accumulateData-test.ts @@ -1,6 +1,6 @@ import {deepStrictEqual, strictEqual, fail} from "assert"; -import {accumulateData, writeData} from "../src/index"; -import {createStream} from "./testUtils"; +import {accumulateData, writeData} from "../src/index.ts"; +import {createStream} from "./testUtils.ts"; describe("accumulateData", () => { it("can accumulateData by grouping them (flush)", (done) => { diff --git a/test/compose-test.ts b/test/compose-test.ts index fc8bfc9..9f424bd 100644 --- a/test/compose-test.ts +++ b/test/compose-test.ts @@ -1,6 +1,6 @@ import {deepStrictEqual, fail} from "assert"; -import {createSlowStream, createStream} from "./testUtils"; -import {compose, flattenArray, transformData, writeData} from "../src"; +import {createSlowStream, createStream} from "./testUtils.ts"; +import {compose, flattenArray, transformData, writeData} from "../src/index.ts"; describe("compose", () => { it("can compose streams", (done) => { diff --git a/test/concatStreams-test.ts b/test/concatStreams-test.ts index ce54a2b..7a2f551 100644 --- a/test/concatStreams-test.ts +++ b/test/concatStreams-test.ts @@ -1,6 +1,6 @@ import {deepStrictEqual} from "assert"; -import {concatStreams, writeData} from "../src/index"; -import {delay, streamArray} from "./testUtils"; +import {concatStreams, writeData} from "../src/index.ts"; +import {delay, streamArray} from "./testUtils.ts"; import {Readable} from "stream"; describe("concatStreams", () => { diff --git a/test/filterData-tests.ts b/test/filterData-tests.ts index 9b111f6..3c2257c 100644 --- a/test/filterData-tests.ts +++ b/test/filterData-tests.ts @@ -1,6 +1,6 @@ import {deepStrictEqual, fail, strictEqual} from "assert"; -import {createStream} from "./testUtils"; -import {filterData} from "../src"; +import {createStream} from "./testUtils.ts"; +import {filterData} from "../src/index.ts"; describe("filterData", () => { it("should filter (ignore empty)", (done) => { diff --git a/test/flattenArray-test.ts b/test/flattenArray-test.ts index 9849ddb..99ac2b7 100644 --- a/test/flattenArray-test.ts +++ b/test/flattenArray-test.ts @@ -1,6 +1,6 @@ import {deepStrictEqual} from "assert"; -import {accumulateData, flattenArray, writeData} from "../src"; -import {createSlowStream, streamArray} from "./testUtils"; +import {accumulateData, flattenArray, writeData} from "../src/index.ts"; +import {createSlowStream, streamArray} from "./testUtils.ts"; describe("flattenArray", () => { it("can flat map an array", (done) => { diff --git a/test/groupData-test.ts b/test/groupData-test.ts index 32114b2..eca3848 100644 --- a/test/groupData-test.ts +++ b/test/groupData-test.ts @@ -1,6 +1,6 @@ import {deepStrictEqual} from "assert"; -import {createStream} from "./testUtils"; -import {groupData, writeData} from "../src"; +import {createStream} from "./testUtils.ts"; +import {groupData, writeData} from "../src/index.ts"; describe("groupData", () => { it("can create group of data", (done) => { diff --git a/test/mergeStreams-test.ts b/test/mergeStreams-test.ts index 4b364e1..36c1b7c 100644 --- a/test/mergeStreams-test.ts +++ b/test/mergeStreams-test.ts @@ -1,6 +1,6 @@ import {deepStrictEqual} from "assert"; -import {mergeStreams, writeData} from "../src"; -import {streamArray} from "./testUtils"; +import {mergeStreams, writeData} from "../src/index.ts"; +import {streamArray} from "./testUtils.ts"; describe("mergeStreams", () => { it("can merge streams", (done) => { diff --git a/test/oleoduc-test.ts b/test/oleoduc-test.ts index 9d9165a..3e03576 100644 --- a/test/oleoduc-test.ts +++ b/test/oleoduc-test.ts @@ -1,6 +1,6 @@ import {deepStrictEqual, fail} from "assert"; -import {assertErrorMessage, createStream, delay} from "./testUtils"; -import {compose, oleoduc, transformData, writeData} from "../src"; +import {assertErrorMessage, createStream, delay} from "./testUtils.ts"; +import {compose, oleoduc, transformData, writeData} from "../src/index.ts"; describe("oleoduc", () => { it("can create oleoduc", async () => { diff --git a/test/parallel-test.ts b/test/parallel-test.ts index ce080aa..1872890 100644 --- a/test/parallel-test.ts +++ b/test/parallel-test.ts @@ -1,6 +1,6 @@ import {deepStrictEqual, fail, ok} from "assert"; -import {createStream, delay} from "./testUtils"; -import {filterData, transformData, writeData} from "../src"; +import {createStream, delay} from "./testUtils.ts"; +import {filterData, transformData, writeData} from "../src/index.ts"; type AccParallelData = {number: number; timestamp: number}; diff --git a/test/pipeline-test.ts b/test/pipeline-test.ts index 1f278ad..5a59621 100644 --- a/test/pipeline-test.ts +++ b/test/pipeline-test.ts @@ -1,8 +1,8 @@ import {deepStrictEqual, fail} from "assert"; import {pipeline} from "stream"; import {promisify} from "util"; -import {createStream, delay} from "./testUtils"; -import {transformData, writeData} from "../src"; +import {createStream, delay} from "./testUtils.ts"; +import {transformData, writeData} from "../src/index.ts"; describe("pipeline", () => { it("can create pipeline from stream", (done) => { diff --git a/test/readLineByLine-test.ts b/test/readLineByLine-test.ts index ca8b603..0d73bb8 100644 --- a/test/readLineByLine-test.ts +++ b/test/readLineByLine-test.ts @@ -1,6 +1,6 @@ import {deepStrictEqual} from "assert"; -import {createStream} from "./testUtils"; -import {oleoduc, readLineByLine, writeData} from "../src"; +import {createStream} from "./testUtils.ts"; +import {oleoduc, readLineByLine, writeData} from "../src/index.ts"; describe("readLineByLine", () => { it("can read a stream line by line", (done) => { diff --git a/test/toAsyncIterator-test.ts b/test/toAsyncIterator-test.ts index 76b1861..5ed41f3 100644 --- a/test/toAsyncIterator-test.ts +++ b/test/toAsyncIterator-test.ts @@ -1,7 +1,7 @@ import {deepStrictEqual, fail} from "assert"; -import {assertErrorMessage, createStream} from "./testUtils"; -import {toAsyncIterator} from "../src/utils/toAsyncIterator"; -import {compose, transformData} from "../src"; +import {assertErrorMessage, createStream} from "./testUtils.ts"; +import {toAsyncIterator} from "../src/utils/toAsyncIterator.ts"; +import {compose, transformData} from "../src/index.ts"; describe("toAsyncIterator", () => { it("can convert a readable stream into an iterator", async () => { diff --git a/test/transformData-test.ts b/test/transformData-test.ts index 8aff2ca..4393a6b 100644 --- a/test/transformData-test.ts +++ b/test/transformData-test.ts @@ -1,6 +1,6 @@ import {deepStrictEqual, strictEqual, fail} from "assert"; -import {createStream} from "./testUtils"; -import {transformData, writeData} from "../src"; +import {createStream} from "./testUtils.ts"; +import {transformData, writeData} from "../src/index.ts"; describe("transformData", () => { it("should transformData", (done) => { diff --git a/test/transformIntoCSV-test.ts b/test/transformIntoCSV-test.ts index 0921359..a1ab489 100644 --- a/test/transformIntoCSV-test.ts +++ b/test/transformIntoCSV-test.ts @@ -1,6 +1,6 @@ import {deepStrictEqual, fail, strictEqual, ok} from "assert"; -import {createStream, delay} from "./testUtils"; -import {transformIntoCSV, writeData} from "../src"; +import {createStream, delay} from "./testUtils.ts"; +import {transformIntoCSV, writeData} from "../src/index.ts"; type FullNameParams = {firstName: string; lastName: string}; diff --git a/test/transformIntoJSON-test.ts b/test/transformIntoJSON-test.ts index fdeafab..6236f7b 100644 --- a/test/transformIntoJSON-test.ts +++ b/test/transformIntoJSON-test.ts @@ -1,6 +1,6 @@ import {deepStrictEqual} from "assert"; -import {createStream} from "./testUtils"; -import {transformIntoJSON} from "../src"; +import {createStream} from "./testUtils.ts"; +import {transformIntoJSON} from "../src/index.ts"; describe("transformIntoJSON", () => { it("can stream a json array", (done) => { diff --git a/test/transformStream-test.ts b/test/transformStream-test.ts index 33ba876..85e88d4 100644 --- a/test/transformStream-test.ts +++ b/test/transformStream-test.ts @@ -1,6 +1,6 @@ import {deepStrictEqual} from "assert"; -import {createSlowStream, createStream, delay, streamArray} from "./testUtils"; -import {transformStream, writeData} from "../src"; +import {createSlowStream, createStream, delay, streamArray} from "./testUtils.ts"; +import {transformStream, writeData} from "../src/index.ts"; describe("transformStream", () => { it("should transform data into a stream", (done) => { diff --git a/test/writeData-test.ts b/test/writeData-test.ts index 7c8eb4a..38d1b6d 100644 --- a/test/writeData-test.ts +++ b/test/writeData-test.ts @@ -1,6 +1,6 @@ import {deepStrictEqual, fail, strictEqual} from "assert"; -import {createStream} from "./testUtils"; -import {writeData} from "../src"; +import {createStream} from "./testUtils.ts"; +import {writeData} from "../src/index.ts"; describe("writeData", () => { it("should writeData", (done) => { diff --git a/test/writeToStdout-test.ts b/test/writeToStdout-test.ts index bb7b491..e1deb98 100644 --- a/test/writeToStdout-test.ts +++ b/test/writeToStdout-test.ts @@ -1,5 +1,5 @@ -import {createStream} from "./testUtils"; -import {writeToStdout} from "../src"; +import {createStream} from "./testUtils.ts"; +import {writeToStdout} from "../src/index.ts"; describe("writeToStdout", () => { it("should write to stdout", (done) => { diff --git a/tsconfig.cjs.json b/tsconfig.cjs.json index 56c760a..1a5236b 100644 --- a/tsconfig.cjs.json +++ b/tsconfig.cjs.json @@ -2,9 +2,9 @@ "extends": "./tsconfig.json", "compilerOptions": { "module": "commonjs", + "esModuleInterop": true, "moduleResolution": "node", "outDir": "./dist/cjs", "target": "es2015", - "typeRoots": ["./node_modules/@types", "./src/@types"] } } diff --git a/tsconfig.json b/tsconfig.json index b6be70c..b99661b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,19 +1,15 @@ { "include": ["src"], - "exclude": ["node_modules", "dist"], "compilerOptions": { - "allowJs": true, - "declaration": true, - "declarationMap": true, - "esModuleInterop": true, - "lib": ["esnext"], - "module": "NodeNext", - "moduleResolution": "NodeNext", - "outDir": "./dist/mjs", + "module": "ESNext", + "target": "esnext", + "allowImportingTsExtensions": true, + "rewriteRelativeImportExtensions": true, + "allowSyntheticDefaultImports": true, + "outDir": "./dist/esm", "skipLibCheck": true, "sourceMap": true, "strict": true, - "target": "esnext", "types": ["node", "mocha"], }, } diff --git a/tsconfig.types.json b/tsconfig.types.json new file mode 100644 index 0000000..4730310 --- /dev/null +++ b/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "./dist/types", + "declaration": true, + "declarationMap": true, + "emitDeclarationOnly": true + } +} From 14742581bdb5c84232641e1898a33d77f86f2043 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Gu=C3=A9rout?= Date: Sun, 5 Jan 2025 01:25:12 +0100 Subject: [PATCH 09/12] remove cyclist type --- .tools/build.sh | 2 ++ src/@types/cyclist.d.ts | 13 ------------- src/writeData.ts | 1 + 3 files changed, 3 insertions(+), 13 deletions(-) delete mode 100644 src/@types/cyclist.d.ts diff --git a/.tools/build.sh b/.tools/build.sh index 9f42272..49f250b 100644 --- a/.tools/build.sh +++ b/.tools/build.sh @@ -10,6 +10,8 @@ mkdir -p "${DIST_DIR}" "${BUILD_DIR}" cd "${PROJECT_DIR}" +npm run lint + echo "Compiling oleoduc (esm version)..." npm run tsc -- -p tsconfig.json cat >"${DIST_DIR}/esm/package.json" < Date: Sun, 5 Jan 2025 01:27:56 +0100 Subject: [PATCH 10/12] change node:stream to stream for legacy --- src/accumulateData.ts | 2 +- src/compose.ts | 2 +- src/concatStreams.ts | 2 +- src/filterData.ts | 2 +- src/flattenArray.ts | 2 +- src/mergeStreams.ts | 2 +- src/oleoduc.ts | 2 +- src/transformData.ts | 2 +- src/transformIntoCSV.ts | 2 +- src/transformIntoJSON.ts | 2 +- src/transformStream.ts | 2 +- src/utils/Duplexer.ts | 2 +- src/utils/decorateWithAsyncIterator.ts | 2 +- src/utils/isReadableStream.ts | 2 +- src/utils/isWriteableStream.ts | 2 +- src/utils/pipeStreamsTogether.ts | 2 +- src/utils/toAsyncIterator.ts | 2 +- src/utils/wrapStreams.ts | 2 +- src/writeData.ts | 2 +- src/writeToStdout.ts | 2 +- 20 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/accumulateData.ts b/src/accumulateData.ts index a28b988..603004f 100644 --- a/src/accumulateData.ts +++ b/src/accumulateData.ts @@ -1,4 +1,4 @@ -import {Transform, TransformOptions} from "node:stream"; +import {Transform, TransformOptions} from "stream"; export type AccumulateDataOptions = TransformOptions & {accumulator?: TAcc}; export type AccumulateDataCallback = ( diff --git a/src/compose.ts b/src/compose.ts index 62390bc..4372927 100644 --- a/src/compose.ts +++ b/src/compose.ts @@ -1,4 +1,4 @@ -import {Readable, TransformOptions} from "node:stream"; +import {Readable, TransformOptions} from "stream"; import {parseArgs} from "./utils/parseArgs.ts"; import {wrapStreams} from "./utils/wrapStreams.ts"; import {isReadableStream} from "./utils/isReadableStream.ts"; diff --git a/src/concatStreams.ts b/src/concatStreams.ts index 130c844..01b3cd0 100644 --- a/src/concatStreams.ts +++ b/src/concatStreams.ts @@ -1,4 +1,4 @@ -import {PassThrough, TransformOptions} from "node:stream"; +import {PassThrough, TransformOptions} from "stream"; import {parseArgs} from "./utils/parseArgs.ts"; type NextStreamCallback = () => Promise | NodeJS.ReadableStream | null; diff --git a/src/filterData.ts b/src/filterData.ts index bdf3e98..f46a049 100644 --- a/src/filterData.ts +++ b/src/filterData.ts @@ -1,4 +1,4 @@ -import {Transform} from "node:stream"; +import {Transform} from "stream"; import {TransformDataCallback, transformData, TransformDataOptions} from "./transformData.ts"; export function filterData( diff --git a/src/flattenArray.ts b/src/flattenArray.ts index 2ae8112..64d95e0 100644 --- a/src/flattenArray.ts +++ b/src/flattenArray.ts @@ -1,4 +1,4 @@ -import {Transform, TransformCallback, TransformOptions} from "node:stream"; +import {Transform, TransformCallback, TransformOptions} from "stream"; /** * Inspired by https://stackoverflow.com/a/43811543/122975 diff --git a/src/mergeStreams.ts b/src/mergeStreams.ts index 8ea1009..0b8c5c9 100644 --- a/src/mergeStreams.ts +++ b/src/mergeStreams.ts @@ -1,4 +1,4 @@ -import {PassThrough, Transform, StreamOptions} from "node:stream"; +import {PassThrough, Transform, StreamOptions} from "stream"; import {decorateWithAsyncIterator} from "./utils/decorateWithAsyncIterator.ts"; import {parseArgs} from "./utils/parseArgs.ts"; diff --git a/src/oleoduc.ts b/src/oleoduc.ts index 6f87410..45f8e08 100644 --- a/src/oleoduc.ts +++ b/src/oleoduc.ts @@ -1,4 +1,4 @@ -import {TransformOptions} from "node:stream"; +import {TransformOptions} from "stream"; import {parseArgs} from "./utils/parseArgs.ts"; import {AnyStream, PipeableStreams} from "./types.ts"; import {wrapStreams} from "./utils/wrapStreams.ts"; diff --git a/src/transformData.ts b/src/transformData.ts index 9c9bb8c..49f6c88 100644 --- a/src/transformData.ts +++ b/src/transformData.ts @@ -1,5 +1,5 @@ import transform from "parallel-transform"; -import {Transform, TransformOptions, TransformCallback} from "node:stream"; +import {Transform, TransformOptions, TransformCallback} from "stream"; export type TransformDataCallback = (data: TInput) => Promise | TOutput; export type TransformDataOptions = { diff --git a/src/transformIntoCSV.ts b/src/transformIntoCSV.ts index 9f98fec..3b6fcfe 100644 --- a/src/transformIntoCSV.ts +++ b/src/transformIntoCSV.ts @@ -1,4 +1,4 @@ -import {Transform, TransformOptions} from "node:stream"; +import {Transform, TransformOptions} from "stream"; export type TransformIntoCSVOptions = TransformOptions & { columns?: Record Promise | AllowedCSVType>; diff --git a/src/transformIntoJSON.ts b/src/transformIntoJSON.ts index 06cd377..2bbc449 100644 --- a/src/transformIntoJSON.ts +++ b/src/transformIntoJSON.ts @@ -1,4 +1,4 @@ -import {Transform, TransformOptions} from "node:stream"; +import {Transform, TransformOptions} from "stream"; export type TransformIntoJSONOptions = TransformOptions & { arrayPropertyName?: string; diff --git a/src/transformStream.ts b/src/transformStream.ts index ffadffd..b8a0849 100644 --- a/src/transformStream.ts +++ b/src/transformStream.ts @@ -1,4 +1,4 @@ -import {Transform, TransformOptions, TransformCallback} from "node:stream"; +import {Transform, TransformOptions, TransformCallback} from "stream"; export type TransformStreamCallback = ( data: TInput, diff --git a/src/utils/Duplexer.ts b/src/utils/Duplexer.ts index 2568bde..72dae29 100644 --- a/src/utils/Duplexer.ts +++ b/src/utils/Duplexer.ts @@ -1,4 +1,4 @@ -import {Duplex, DuplexOptions, Readable, Writable} from "node:stream"; +import {Duplex, DuplexOptions, Readable, Writable} from "stream"; type DuplexerCallback = (error?: Error | null) => void; diff --git a/src/utils/decorateWithAsyncIterator.ts b/src/utils/decorateWithAsyncIterator.ts index 5d96bf8..51ef80e 100644 --- a/src/utils/decorateWithAsyncIterator.ts +++ b/src/utils/decorateWithAsyncIterator.ts @@ -1,4 +1,4 @@ -import {Readable} from "node:stream"; +import {Readable} from "stream"; import {toAsyncIterator} from "./toAsyncIterator.ts"; export function decorateWithAsyncIterator(stream: Readable) { diff --git a/src/utils/isReadableStream.ts b/src/utils/isReadableStream.ts index fc56c44..ccf24da 100644 --- a/src/utils/isReadableStream.ts +++ b/src/utils/isReadableStream.ts @@ -1,4 +1,4 @@ -import {Readable} from "node:stream"; +import {Readable} from "stream"; // eslint-disable-next-line @typescript-eslint/no-explicit-any export function isReadableStream(stream: any): stream is Readable { diff --git a/src/utils/isWriteableStream.ts b/src/utils/isWriteableStream.ts index 49e58e3..7538fc3 100644 --- a/src/utils/isWriteableStream.ts +++ b/src/utils/isWriteableStream.ts @@ -1,4 +1,4 @@ -import {Writable} from "node:stream"; +import {Writable} from "stream"; // eslint-disable-next-line @typescript-eslint/no-explicit-any export function isWritableStream(stream: any): stream is Writable { diff --git a/src/utils/pipeStreamsTogether.ts b/src/utils/pipeStreamsTogether.ts index b67df36..477a01a 100644 --- a/src/utils/pipeStreamsTogether.ts +++ b/src/utils/pipeStreamsTogether.ts @@ -1,4 +1,4 @@ -import {Readable, Writable} from "node:stream"; +import {Readable, Writable} from "stream"; import {AnyStream} from "../types.ts"; export function pipeStreamsTogether(streams: AnyStream[], wrapper: AnyStream) { diff --git a/src/utils/toAsyncIterator.ts b/src/utils/toAsyncIterator.ts index b1b4a04..cb2e08f 100644 --- a/src/utils/toAsyncIterator.ts +++ b/src/utils/toAsyncIterator.ts @@ -1,4 +1,4 @@ -import {Readable} from "node:stream"; +import {Readable} from "stream"; type ToAsyncIteratorOptions = { chunkSize?: number; diff --git a/src/utils/wrapStreams.ts b/src/utils/wrapStreams.ts index f4b0236..8b43114 100644 --- a/src/utils/wrapStreams.ts +++ b/src/utils/wrapStreams.ts @@ -1,4 +1,4 @@ -import {PassThrough, TransformOptions} from "node:stream"; +import {PassThrough, TransformOptions} from "stream"; import {Duplexer} from "./Duplexer.ts"; import {isReadableStream} from "./isReadableStream.ts"; import {isWritableStream} from "./isWriteableStream.ts"; diff --git a/src/writeData.ts b/src/writeData.ts index 5f91683..d13d9bd 100644 --- a/src/writeData.ts +++ b/src/writeData.ts @@ -1,4 +1,4 @@ -import {WritableOptions, Writable} from "node:stream"; +import {WritableOptions, Writable} from "stream"; // @ts-expect-error TS2792 import cyclist, {Cyclist} from "cyclist"; diff --git a/src/writeToStdout.ts b/src/writeToStdout.ts index 357aae2..740e725 100644 --- a/src/writeToStdout.ts +++ b/src/writeToStdout.ts @@ -1,4 +1,4 @@ -import {Writable} from "node:stream"; +import {Writable} from "stream"; type WriteToStdoutCallback = (error: Error | null | undefined) => void; From f0572d968fb719e56baa8d808efd2bd3669d4b24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Gu=C3=A9rout?= Date: Sun, 5 Jan 2025 13:53:42 +0100 Subject: [PATCH 11/12] polish esm/cjs dist with sourcemap --- .gitignore | 6 +++--- .npmignore | 15 ++++++++++++--- .tools/build.sh | 5 ----- package.json | 16 ++++++++++++---- tsconfig.cjs.json | 4 ++-- tsconfig.json | 8 +++++--- 6 files changed, 34 insertions(+), 20 deletions(-) diff --git a/.gitignore b/.gitignore index 964c6a5..079e4a6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ -node_modules/ -.nyc_output/ +.DS_Store .coverage/ .idea/ +.nyc_output/ build/ dist/ -.DS_Store +node_modules/ diff --git a/.npmignore b/.npmignore index bbb900f..68e833d 100644 --- a/.npmignore +++ b/.npmignore @@ -1,5 +1,14 @@ -.nyc_output/ +.DS_Store .coverage/ -.tools/ -.idea/ +.eslintrc.json +.git/ .github/ +.gitignore +.idea/ +.mocharc.json +.nyc_output/ +.prettierignore +.prettierrc +.tools/ +build/ +test/ \ No newline at end of file diff --git a/.tools/build.sh b/.tools/build.sh index 49f250b..4e999b5 100644 --- a/.tools/build.sh +++ b/.tools/build.sh @@ -10,8 +10,6 @@ mkdir -p "${DIST_DIR}" "${BUILD_DIR}" cd "${PROJECT_DIR}" -npm run lint - echo "Compiling oleoduc (esm version)..." npm run tsc -- -p tsconfig.json cat >"${DIST_DIR}/esm/package.json" <"${DIST_DIR}/cjs/package.json" < Date: Sun, 5 Jan 2025 15:16:29 +0100 Subject: [PATCH 12/12] prepare 0.9.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 6d69558..ee32f4b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "oleoduc", - "version": "0.8.1", + "version": "0.9.0", "description": "Stream with ease", "engines": { "node": ">= 10"