diff --git a/.babelrc b/.babelrc deleted file mode 100644 index f91ebace..00000000 --- a/.babelrc +++ /dev/null @@ -1,8 +0,0 @@ -{ - "presets": [ - "env" - ], - "plugins": [ - "transform-object-rest-spread" - ] -} diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index e13c8ee0..00000000 --- a/.eslintignore +++ /dev/null @@ -1,3 +0,0 @@ -node_modules -build -dist \ No newline at end of file diff --git a/.eslintrc b/.eslintrc index a17c522a..52926dc0 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,24 +1,3 @@ { - "extends": ["standard"], - "plugins": ["standard"], - "rules": { - "semi": [2, "always"], - "space-before-function-paren": [2, "never"], - "max-len": [2, 80, 2], - "camelcase": [2, { "properties": "always" }], - "linebreak-style": [2, "unix"], - "new-cap": [2, { "newIsCap": true, "capIsNew": true }], - "arrow-body-style": [2, "as-needed"], - "arrow-parens": [2, "as-needed"], - "prefer-arrow-callback": 0, - "prefer-template": 0, - - "no-var": 2, - "no-undef": 2, - "no-param-reassign": 2, - "comma-dangle": [2, "always-multiline"] - }, - "env": { - "node": true - } + "extends": "plugin:bpmn-io/recommended" } diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 00000000..7b95f6fd --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,23 @@ +name: CI +on: [ push, pull_request ] +jobs: + Build: + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [ubuntu-latest] + node-version: [ 20 ] + + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Use Node.js ${{matrix.node-version}} + uses: actions/setup-node@v4 + with: + node-version: ${{matrix.node-version}} + cache: 'npm' + - name: Install dependencies + run: npm ci + - name: Build + run: npm run all diff --git a/.gitignore b/.gitignore index 64a41388..1fd04daf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,20 +1,3 @@ -node_modules -lib-cov -*.seed -*.log -*.csv -*.dat -*.out -*.pid -*.gz -.DS_Store - -pids -logs -results +node_modules coverage -.nyc_output -dist -build - -npm-debug.log +.nyc_output diff --git a/.npmignore b/.npmignore deleted file mode 100644 index ce3eadf8..00000000 --- a/.npmignore +++ /dev/null @@ -1,8 +0,0 @@ -!dist -test -docs -.editorconfig -.eslintignore -.eslintrc -rollup.config.js -.travis.yml \ No newline at end of file diff --git a/.npmrc b/.npmrc deleted file mode 100644 index 9cf94950..00000000 --- a/.npmrc +++ /dev/null @@ -1 +0,0 @@ -package-lock=false \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 21fdee13..00000000 --- a/.travis.yml +++ /dev/null @@ -1,6 +0,0 @@ -language: node_js -node_js: - - "node" - -script: - - "npm run all" \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..314071a6 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,16 @@ +# Changelog + +All notable changes to [diffpatch](https://github.com/bpmn-io/diffpatch) are documented here. We use [semantic versioning](http://semver.org/) for releases. + +## Unreleased + +___Note:__ Yet to be released changes appear here._ + +* `CHORE`: make ESM only module +* `CHORE`: move library to `lib` +* `CHORE`: dependency bumps +* `CHORE`: drop `formatters` main export + +## ... + +See `git log` for older updates. diff --git a/README.md b/README.md index ff55e167..5afc89a4 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ # diffpatch -[![Build Status](https://secure.travis-ci.com/bpmn-io/diffpatch.svg)](http://travis-ci.com/bpmn-io/diffpatch) +[![CI](https://github.com/bpmn-io/diffpatch/actions/workflows/CI.yml/badge.svg)](https://github.com/bpmn-io/diffpatch/actions/workflows/CI.yml) Diff and patch JavaScript objects. @@ -257,4 +257,4 @@ This library is a fork of [jsondiffpatch](https://github.com/benjamine/jsondiffp ## License -MIT \ No newline at end of file +MIT diff --git a/bin/diffpatch b/bin/diffpatch new file mode 100755 index 00000000..544eb35f --- /dev/null +++ b/bin/diffpatch @@ -0,0 +1,23 @@ +#!/usr/bin/env node + +/* eslint-env node */ + +import { DiffPatcher } from '../lib/index.js'; +import ConsoleFormatter from '../lib/formatters/console.js'; + +import fs from 'node:fs'; + +const fileLeft = process.argv[2]; +const fileRight = process.argv[3]; + +if (!fileLeft || !fileRight) { + console.log('\n USAGE: diffpatch left.json right.json'); + process.exit(1); +} + +const left = JSON.parse(fs.readFileSync(fileLeft)); +const right = JSON.parse(fs.readFileSync(fileRight)); + +const delta = new DiffPatcher().diff(left, right); + +console.log(new ConsoleFormatter().format(delta)); diff --git a/bin/jsondiffpatch b/bin/jsondiffpatch deleted file mode 100755 index 1c9fb205..00000000 --- a/bin/jsondiffpatch +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env node - -const jsondiffpatch = require('..'); - -const fs = require('fs'); - -const fileLeft = process.argv[2]; -const fileRight = process.argv[3]; - -if (!fileLeft || !fileRight) { - console.log('\n USAGE: jsondiffpatch left.json right.json'); - return; -} - -const left = JSON.parse(fs.readFileSync(fileLeft)); -const right = JSON.parse(fs.readFileSync(fileRight)); - -const delta = jsondiffpatch.diff(left, right); -jsondiffpatch.console.log(delta); diff --git a/src/clone.js b/lib/clone.js similarity index 100% rename from src/clone.js rename to lib/clone.js diff --git a/src/contexts/context.js b/lib/contexts/context.js similarity index 93% rename from src/contexts/context.js rename to lib/contexts/context.js index f31abd2d..4a312ee7 100644 --- a/src/contexts/context.js +++ b/lib/contexts/context.js @@ -1,4 +1,4 @@ -import Pipe from '../pipe'; +import Pipe from '../pipe.js'; export default class Context { setResult(result) { @@ -32,7 +32,7 @@ export default class Context { child.root = this.root || this; child.options = child.options || this.options; if (!this.children) { - this.children = [child]; + this.children = [ child ]; this.nextAfterChildren = this.next || null; this.next = child; } else { diff --git a/src/contexts/diff.js b/lib/contexts/diff.js similarity index 89% rename from src/contexts/diff.js rename to lib/contexts/diff.js index 5cd82435..e6e01a01 100644 --- a/src/contexts/diff.js +++ b/lib/contexts/diff.js @@ -1,5 +1,5 @@ -import Context from './context'; -import defaultClone from '../clone'; +import Context from './context.js'; +import defaultClone from '../clone.js'; class DiffContext extends Context { constructor(left, right) { diff --git a/src/contexts/patch.js b/lib/contexts/patch.js similarity index 83% rename from src/contexts/patch.js rename to lib/contexts/patch.js index f6d55722..d4594d0f 100644 --- a/src/contexts/patch.js +++ b/lib/contexts/patch.js @@ -1,4 +1,4 @@ -import Context from './context'; +import Context from './context.js'; class PatchContext extends Context { constructor(left, delta) { diff --git a/src/contexts/reverse.js b/lib/contexts/reverse.js similarity index 82% rename from src/contexts/reverse.js rename to lib/contexts/reverse.js index d49d6cb9..a5ae1942 100644 --- a/src/contexts/reverse.js +++ b/lib/contexts/reverse.js @@ -1,4 +1,4 @@ -import Context from './context'; +import Context from './context.js'; class ReverseContext extends Context { constructor(delta) { diff --git a/src/date-reviver.js b/lib/date-reviver.js similarity index 100% rename from src/date-reviver.js rename to lib/date-reviver.js diff --git a/src/diffpatcher.js b/lib/diffpatcher.js similarity index 74% rename from src/diffpatcher.js rename to lib/diffpatcher.js index b8977b81..8eb14a73 100644 --- a/src/diffpatcher.js +++ b/lib/diffpatcher.js @@ -1,17 +1,17 @@ -import Processor from './processor'; -import Pipe from './pipe'; -import DiffContext from './contexts/diff'; -import PatchContext from './contexts/patch'; -import ReverseContext from './contexts/reverse'; -import clone from './clone'; +import Processor from './processor.js'; +import Pipe from './pipe.js'; +import DiffContext from './contexts/diff.js'; +import PatchContext from './contexts/patch.js'; +import ReverseContext from './contexts/reverse.js'; +import clone from './clone.js'; -import * as trivial from './filters/trivial'; -import * as nested from './filters/nested'; -import * as arrays from './filters/arrays'; -import * as dates from './filters/dates'; -import * as texts from './filters/texts'; +import * as trivial from './filters/trivial.js'; +import * as nested from './filters/nested.js'; +import * as arrays from './filters/arrays.js'; +import * as dates from './filters/dates.js'; +import * as texts from './filters/texts.js'; -class DiffPatcher { +export default class DiffPatcher { constructor(options) { this.processor = new Processor(options); this.processor.pipe( @@ -76,5 +76,3 @@ class DiffPatcher { return clone(value); } } - -export default DiffPatcher; diff --git a/src/filters/arrays.js b/lib/filters/arrays.js similarity index 96% rename from src/filters/arrays.js rename to lib/filters/arrays.js index b7c5f590..c929cfbe 100644 --- a/src/filters/arrays.js +++ b/lib/filters/arrays.js @@ -1,8 +1,8 @@ -import DiffContext from '../contexts/diff'; -import PatchContext from '../contexts/patch'; -import ReverseContext from '../contexts/reverse'; +import DiffContext from '../contexts/diff.js'; +import PatchContext from '../contexts/patch.js'; +import ReverseContext from '../contexts/reverse.js'; -import lcs from './lcs'; +import lcs from './lcs.js'; const ARRAY_MOVE = 3; @@ -45,6 +45,7 @@ function matchItems(array1, array2, index1, index2, context) { } let objectHash = context.objectHash; if (!objectHash) { + // no way to match objects was provided, try match by position return context.matchByPosition && index1 === index2; } @@ -123,6 +124,7 @@ export const diffFilter = function arraysDiffFilter(context) { context.push(child, index); commonHead++; } + // separate common tail while ( commonTail + commonHead < len1 && @@ -144,31 +146,35 @@ export const diffFilter = function arraysDiffFilter(context) { let result; if (commonHead + commonTail === len1) { if (len1 === len2) { + // arrays are identical context.setResult(undefined).exit(); return; } + // trivial case, a block (1 or more consecutive items) was added result = result || { _t: 'a', }; for (index = commonHead; index < len2 - commonTail; index++) { - result[index] = [array2[index]]; + result[index] = [ array2[index] ]; } context.setResult(result).exit(); return; } if (commonHead + commonTail === len2) { + // trivial case, a block (1 or more consecutive items) was removed result = result || { _t: 'a', }; for (index = commonHead; index < len1 - commonTail; index++) { - result[`_${index}`] = [array1[index], 0, 0]; + result[`_${index}`] = [ array1[index], 0, 0 ]; } context.setResult(result).exit(); return; } + // reset hash cache delete matchContext.hashCache1; delete matchContext.hashCache2; @@ -183,8 +189,9 @@ export const diffFilter = function arraysDiffFilter(context) { }; for (index = commonHead; index < len1 - commonTail; index++) { if (arrayIndexOf(seq.indices1, index - commonHead) < 0) { + // removed - result[`_${index}`] = [array1[index], 0, 0]; + result[`_${index}`] = [ array1[index], 0, 0 ]; removedItems.push(index); } } @@ -210,6 +217,7 @@ export const diffFilter = function arraysDiffFilter(context) { for (index = commonHead; index < len2 - commonTail; index++) { let indexOnArray2 = arrayIndexOf(seq.indices2, index - commonHead); if (indexOnArray2 < 0) { + // added, try to match with a removed item and register as position move let isMove = false; if (detectMove && removedItemsLength > 0) { @@ -228,9 +236,11 @@ export const diffFilter = function arraysDiffFilter(context) { matchContext ) ) { + // store position move as: [originalValue, newPosition, ARRAY_MOVE] result[`_${index1}`].splice(1, 2, index, ARRAY_MOVE); if (!includeValueOnMove) { + // don't include moved value on diff, to save bytes result[`_${index1}`][0] = ''; } @@ -248,10 +258,12 @@ export const diffFilter = function arraysDiffFilter(context) { } } if (!isMove) { + // added - result[index] = [array2[index]]; + result[index] = [ array2[index] ]; } } else { + // match, do inner diff index1 = seq.indices1[indexOnArray2] + commonHead; index2 = seq.indices2[indexOnArray2] + commonHead; @@ -293,23 +305,26 @@ export const patchFilter = function nestedPatchFilter(context) { for (index in delta) { if (index !== '_t') { if (index[0] === '_') { + // removed item from original array if (delta[index][2] === 0 || delta[index][2] === ARRAY_MOVE) { toRemove.push(parseInt(index.slice(1), 10)); } else { throw new Error( - `only removal or move can be applied at original array indices,` + + 'only removal or move can be applied at original array indices,' + ` invalid diff type: ${delta[index][2]}` ); } } else { if (delta[index].length === 1) { + // added item at new array toInsert.push({ index: parseInt(index, 10), value: delta[index][0], }); } else { + // modified item at new array toModify.push({ index: parseInt(index, 10), @@ -327,6 +342,7 @@ export const patchFilter = function nestedPatchFilter(context) { let indexDiff = delta[`_${index1}`]; let removedValue = array.splice(index1, 1)[0]; if (indexDiff[2] === ARRAY_MOVE) { + // reinsert later toInsert.push({ index: indexDiff[1], @@ -366,7 +382,7 @@ export const patchFilter = function nestedPatchFilter(context) { patchFilter.filterName = 'arrays'; export const collectChildrenPatchFilter = function collectChildrenPatchFilter( - context + context ) { if (!context || !context.children) { return; diff --git a/src/filters/dates.js b/lib/filters/dates.js similarity index 68% rename from src/filters/dates.js rename to lib/filters/dates.js index fc1f8aba..66d8650b 100644 --- a/src/filters/dates.js +++ b/lib/filters/dates.js @@ -2,16 +2,16 @@ export const diffFilter = function datesDiffFilter(context) { if (context.left instanceof Date) { if (context.right instanceof Date) { if (context.left.getTime() !== context.right.getTime()) { - context.setResult([context.left, context.right]); + context.setResult([ context.left, context.right ]); } else { context.setResult(undefined); } } else { - context.setResult([context.left, context.right]); + context.setResult([ context.left, context.right ]); } context.exit(); } else if (context.right instanceof Date) { - context.setResult([context.left, context.right]).exit(); + context.setResult([ context.left, context.right ]).exit(); } }; diffFilter.filterName = 'dates'; diff --git a/src/filters/lcs.js b/lib/filters/lcs.js similarity index 97% rename from src/filters/lcs.js rename to lib/filters/lcs.js index 857275a1..720fedd9 100644 --- a/src/filters/lcs.js +++ b/lib/filters/lcs.js @@ -16,14 +16,15 @@ const lengthMatrix = function(array1, array2, match, context) { let x, y; // initialize empty matrix of len1+1 x len2+1 - let matrix = [len1 + 1]; + let matrix = [ len1 + 1 ]; for (x = 0; x < len1 + 1; x++) { - matrix[x] = [len2 + 1]; + matrix[x] = [ len2 + 1 ]; for (y = 0; y < len2 + 1; y++) { matrix[x][y] = 0; } } matrix.match = match; + // save sequence lengths for each coordinate for (x = 1; x < len1 + 1; x++) { for (y = 1; y < len2 + 1; y++) { diff --git a/src/filters/nested.js b/lib/filters/nested.js similarity index 95% rename from src/filters/nested.js rename to lib/filters/nested.js index e478f23f..7553ebb9 100644 --- a/src/filters/nested.js +++ b/lib/filters/nested.js @@ -1,6 +1,6 @@ -import DiffContext from '../contexts/diff'; -import PatchContext from '../contexts/patch'; -import ReverseContext from '../contexts/reverse'; +import DiffContext from '../contexts/diff.js'; +import PatchContext from '../contexts/patch.js'; +import ReverseContext from '../contexts/reverse.js'; export function collectChildrenDiffFilter(context) { if (!context || !context.children) { @@ -81,7 +81,7 @@ export const patchFilter = function nestedPatchFilter(context) { patchFilter.filterName = 'objects'; export const collectChildrenPatchFilter = function collectChildrenPatchFilter( - context + context ) { if (!context || !context.children) { return; diff --git a/src/filters/texts.js b/lib/filters/texts.js similarity index 78% rename from src/filters/texts.js rename to lib/filters/texts.js index cd3c085c..72ac8b7e 100644 --- a/src/filters/texts.js +++ b/lib/filters/texts.js @@ -1,29 +1,26 @@ -/* global diff_match_patch */ -import dmp from 'diff-match-patch'; - let TEXT_DIFF = 2; let DEFAULT_MIN_LENGTH = 60; let cachedDiffPatch = null; -let getDiffMatchPatch = function(required) { +let getDiffMatchPatch = function(options = {}, required) { + /* jshint camelcase: false */ if (!cachedDiffPatch) { let instance; - /* eslint-disable camelcase, new-cap */ - if (typeof diff_match_patch !== 'undefined') { - // already loaded, probably a browser - instance = - typeof diff_match_patch === 'function' - ? new diff_match_patch() - : new diff_match_patch.diff_match_patch(); - } else if (dmp) { - try { - instance = dmp && new dmp(); - } catch (err) { - instance = null; - } + + const { + textDiff: { + diffMatchPatch + } = {} + } = options; + + try { + instance = diffMatchPatch && new diffMatchPatch(); + } catch (err) { + instance = null; } + /* eslint-enable camelcase, new-cap */ if (!instance) { if (!required) { @@ -66,19 +63,21 @@ export const diffFilter = function textsDiffFilter(context) { context.options.textDiff.minLength) || DEFAULT_MIN_LENGTH; if (context.left.length < minLength || context.right.length < minLength) { - context.setResult([context.left, context.right]).exit(); + context.setResult([ context.left, context.right ]).exit(); return; } + // large text, try to use a text-diff algorithm - let diffMatchPatch = getDiffMatchPatch(); + let diffMatchPatch = getDiffMatchPatch(context.options); if (!diffMatchPatch) { + // diff-match-patch library not available, // fallback to regular string replace - context.setResult([context.left, context.right]).exit(); + context.setResult([ context.left, context.right ]).exit(); return; } let diff = diffMatchPatch.diff; - context.setResult([diff(context.left, context.right), 0, TEXT_DIFF]).exit(); + context.setResult([ diff(context.left, context.right), 0, TEXT_DIFF ]).exit(); }; diffFilter.filterName = 'texts'; @@ -91,7 +90,7 @@ export const patchFilter = function textsPatchFilter(context) { } // text-diff, use a text-patch algorithm - const patch = getDiffMatchPatch(true).patch; + const patch = getDiffMatchPatch(context.options, true).patch; context.setResult(patch(context.left, context.delta[0])).exit(); }; patchFilter.filterName = 'texts'; @@ -127,6 +126,7 @@ const textDeltaReverse = function(delta) { } else if (lineStart === '+') { lines[i] = '-' + lines[i].slice(1); if (lines[i - 1].slice(0, 1) === '+') { + // swap lines to keep default order (-+) lineTmp = lines[i]; lines[i] = lines[i - 1]; @@ -148,6 +148,6 @@ export const reverseFilter = function textsReverseFilter(context) { } // text-diff, use a text-diff algorithm - context.setResult([textDeltaReverse(context.delta[0]), 0, TEXT_DIFF]).exit(); + context.setResult([ textDeltaReverse(context.delta[0]), 0, TEXT_DIFF ]).exit(); }; reverseFilter.filterName = 'texts'; diff --git a/src/filters/trivial.js b/lib/filters/trivial.js similarity index 81% rename from src/filters/trivial.js rename to lib/filters/trivial.js index c4ee1204..ca1f32a6 100644 --- a/src/filters/trivial.js +++ b/lib/filters/trivial.js @@ -14,11 +14,11 @@ export const diffFilter = function trivialMatchesDiffFilter(context) { if (typeof context.right === 'function') { throw new Error('functions are not supported'); } - context.setResult([context.right]).exit(); + context.setResult([ context.right ]).exit(); return; } if (typeof context.right === 'undefined') { - context.setResult([context.left, 0, 0]).exit(); + context.setResult([ context.left, 0, 0 ]).exit(); return; } if ( @@ -30,11 +30,11 @@ export const diffFilter = function trivialMatchesDiffFilter(context) { context.leftType = context.left === null ? 'null' : typeof context.left; context.rightType = context.right === null ? 'null' : typeof context.right; if (context.leftType !== context.rightType) { - context.setResult([context.left, context.right]).exit(); + context.setResult([ context.left, context.right ]).exit(); return; } if (context.leftType === 'boolean' || context.leftType === 'number') { - context.setResult([context.left, context.right]).exit(); + context.setResult([ context.left, context.right ]).exit(); return; } if (context.leftType === 'object') { @@ -44,17 +44,17 @@ export const diffFilter = function trivialMatchesDiffFilter(context) { context.rightIsArray = isArray(context.right); } if (context.leftIsArray !== context.rightIsArray) { - context.setResult([context.left, context.right]).exit(); + context.setResult([ context.left, context.right ]).exit(); return; } if (context.left instanceof RegExp) { if (context.right instanceof RegExp) { context - .setResult([context.left.toString(), context.right.toString()]) + .setResult([ context.left.toString(), context.right.toString() ]) .exit(); } else { - context.setResult([context.left, context.right]).exit(); + context.setResult([ context.left, context.right ]).exit(); } } }; @@ -100,15 +100,15 @@ export const reverseFilter = function trivialReferseFilter(context) { return; } if (context.delta.length === 1) { - context.setResult([context.delta[0], 0, 0]).exit(); + context.setResult([ context.delta[0], 0, 0 ]).exit(); return; } if (context.delta.length === 2) { - context.setResult([context.delta[1], context.delta[0]]).exit(); + context.setResult([ context.delta[1], context.delta[0] ]).exit(); return; } if (context.delta.length === 3 && context.delta[2] === 0) { - context.setResult([context.delta[0]]).exit(); + context.setResult([ context.delta[0] ]).exit(); } }; reverseFilter.filterName = 'trivial'; diff --git a/src/formatters/annotated.js b/lib/formatters/annotated.js similarity index 95% rename from src/formatters/annotated.js rename to lib/formatters/annotated.js index 88835486..31007df3 100644 --- a/src/formatters/annotated.js +++ b/lib/formatters/annotated.js @@ -1,4 +1,4 @@ -import BaseFormatter from './base'; +import BaseFormatter from './base.js'; export default class AnnotatedFormatter extends BaseFormatter { constructor() { @@ -38,7 +38,7 @@ export default class AnnotatedFormatter extends BaseFormatter { for (let i = 0, l = lines.length; i < l; i++) { const line = lines[i]; context.out( - `
  • ` + + '
  • ' + `${ line.location.line }${ @@ -113,6 +113,7 @@ export default class AnnotatedFormatter extends BaseFormatter { format_movedestination() {} format_node(context, delta, left) { + // recurse this.formatDeltaChildren(context, delta, left); } @@ -156,7 +157,7 @@ const deltaAnnotations = { }, moved(delta, left, key, leftKey) { return ( - `move from ` + + 'move from ' + `index ${leftKey} to index ${delta[1]}` ); @@ -170,7 +171,7 @@ const deltaAnnotations = { : ` at property ${wrapPropertyName(leftKey)}`; return ( `text diff${location}, format is a variation of Unidiff` + 'p/google-diff-match-patch/wiki/Unidiff">a variation of Unidiff' ); }, }; @@ -183,6 +184,7 @@ const formatAnyChange = function(context, delta) { annotator.apply(annotator, Array.prototype.slice.call(arguments, 1)); let json = JSON.stringify(delta, null, 2); if (deltaType === 'textdiff') { + // split text diffs lines json = json.split('\\n').join('\\n"+\n "'); } diff --git a/src/formatters/base.js b/lib/formatters/base.js similarity index 99% rename from src/formatters/base.js rename to lib/formatters/base.js index 99e9f6d3..ea5d8ca5 100644 --- a/src/formatters/base.js +++ b/lib/formatters/base.js @@ -107,6 +107,8 @@ class BaseFormatter { movedFrom ); if (typeof console !== 'undefined' && console.error) { + + /* global console */ console.error(err.stack); } } @@ -150,6 +152,7 @@ class BaseFormatter { } } } + // look for move destinations for (name in delta) { if (Object.prototype.hasOwnProperty.call(delta, name)) { diff --git a/src/formatters/console.js b/lib/formatters/console.js similarity index 91% rename from src/formatters/console.js rename to lib/formatters/console.js index 237ab15a..32848457 100644 --- a/src/formatters/console.js +++ b/lib/formatters/console.js @@ -1,9 +1,9 @@ -import chalk from 'chalk'; -import BaseFormatter from './base'; +import picocolors from 'picocolors'; +import BaseFormatter from './base.js'; -function chalkColor(name) { +function color(name) { return ( - (chalk && chalk[name]) || + (picocolors && picocolors[name]) || function(...args) { return args; } @@ -11,13 +11,13 @@ function chalkColor(name) { } let colors = { - added: chalkColor('green'), - deleted: chalkColor('red'), - movedestination: chalkColor('gray'), - moved: chalkColor('yellow'), - unchanged: chalkColor('gray'), - error: chalkColor('white.bgRed'), - textDiffLine: chalkColor('gray'), + added: color('green'), + deleted: color('red'), + movedestination: color('gray'), + moved: color('yellow'), + unchanged: color('gray'), + error: text => color('white')(color('bgRed')(text)), + textDiffLine: color('gray'), }; export default class ConsoleFormatter extends BaseFormatter { @@ -147,6 +147,7 @@ export default class ConsoleFormatter extends BaseFormatter { } format_node(context, delta, left) { + // recurse this.formatDeltaChildren(context, delta, left); } diff --git a/src/formatters/html.js b/lib/formatters/html.js similarity index 95% rename from src/formatters/html.js rename to lib/formatters/html.js index 0770f68a..6d42864f 100644 --- a/src/formatters/html.js +++ b/lib/formatters/html.js @@ -1,4 +1,6 @@ -import BaseFormatter from './base'; +/* eslint-env browser */ + +import BaseFormatter from './base.js'; export default class HtmlFormatter extends BaseFormatter { typeFormattterErrorFormatter(context, err) { @@ -15,7 +17,7 @@ export default class HtmlFormatter extends BaseFormatter { for (let i = 0, l = lines.length; i < l; i++) { let line = lines[i]; context.out( - `
  • ` + + '
  • ' + `${ line.location.line }${ @@ -28,7 +30,6 @@ export default class HtmlFormatter extends BaseFormatter { pieceIndex < piecesLength; pieceIndex++ ) { - /* global decodeURI */ let piece = pieces[pieceIndex]; context.out( `${htmlEscape( @@ -52,7 +53,7 @@ export default class HtmlFormatter extends BaseFormatter { context.out( `
    ${ context.hasArrows - ? `` : '' }` @@ -95,6 +96,7 @@ export default class HtmlFormatter extends BaseFormatter { } format_node(context, delta, left) { + // recurse let nodeType = delta._t === 'a' ? 'array' : 'object'; context.out( @@ -136,7 +138,7 @@ export default class HtmlFormatter extends BaseFormatter { // draw an SVG arrow from here to move destination context.out( /* jshint multistr: true */ - `
    @@ -225,11 +227,11 @@ export default class HtmlFormatter extends BaseFormatter { function htmlEscape(text) { let html = text; let replacements = [ - [/&/g, '&'], - [//g, '>'], - [/'/g, '''], - [/"/g, '"'], + [ /&/g, '&' ], + [ //g, '>' ], + [ /'/g, ''' ], + [ /"/g, '"' ], ]; for (let i = 0; i < replacements.length; i++) { html = html.replace(replacements[i][0], replacements[i][1]); @@ -282,7 +284,9 @@ let adjustArrows = function jsondiffpatchHtmlFormatterAdjustArrows(nodeArg) { : `M30,${-distance} Q-10,${Math.round(-distance / 2)} 26,4`; path.setAttribute('d', curve); svg.style.display = ''; - } catch (err) {} + } catch (err) { + console.error(err); + } } ); }; diff --git a/src/formatters/jsonpatch.js b/lib/formatters/jsonpatch.js similarity index 87% rename from src/formatters/jsonpatch.js rename to lib/formatters/jsonpatch.js index 012af7fc..f7031765 100644 --- a/src/formatters/jsonpatch.js +++ b/lib/formatters/jsonpatch.js @@ -1,4 +1,4 @@ -import BaseFormatter from './base'; +import BaseFormatter from './base.js'; const OPERATIONS = { add: 'add', @@ -18,7 +18,7 @@ export default class JSONPatchFormatter extends BaseFormatter { context.result = []; context.path = []; context.pushCurrentOp = function(obj) { - const {op, value} = obj; + const { op, value } = obj; const val = { op, path: this.currentPath(), @@ -32,7 +32,7 @@ export default class JSONPatchFormatter extends BaseFormatter { context.pushMoveOp = function(to) { const finalTo = `/${to}`; const from = this.currentPath(); - this.result.push({op: OPERATIONS.move, from: from, path: finalTo}); + this.result.push({ op: OPERATIONS.move, from: from, path: finalTo }); }; context.currentPath = function() { @@ -67,15 +67,15 @@ export default class JSONPatchFormatter extends BaseFormatter { } format_added(context, delta) { - context.pushCurrentOp({op: OPERATIONS.add, value: delta[0]}); + context.pushCurrentOp({ op: OPERATIONS.add, value: delta[0] }); } format_modified(context, delta) { - context.pushCurrentOp({op: OPERATIONS.replace, value: delta[1]}); + context.pushCurrentOp({ op: OPERATIONS.replace, value: delta[1] }); } format_deleted(context) { - context.pushCurrentOp({op: OPERATIONS.remove}); + context.pushCurrentOp({ op: OPERATIONS.remove }); } format_moved(context, delta) { @@ -133,11 +133,11 @@ const partition = (arr, pred) => { const coll = pred(el) ? left : right; coll.push(el); }); - return [left, right]; + return [ left, right ]; }; const partitionRemovedOps = jsonFormattedDiff => { - const isRemoveOp = ({op}) => op === 'remove'; + const isRemoveOp = ({ op }) => op === 'remove'; return partition( jsonFormattedDiff, isRemoveOp diff --git a/src/index.d.ts b/lib/index.d.ts similarity index 94% rename from src/index.d.ts rename to lib/index.d.ts index 529e3bbf..880891e6 100644 --- a/src/index.d.ts +++ b/lib/index.d.ts @@ -21,7 +21,9 @@ export interface Config { }; textDiff?: { // default 60, minimum string length (left and right sides) to use text diff algorythm: google-diff-match-patch - minLength: number, + minLength?: number, + // a diff-match-patch constructor for text diffing + diffMatchPatch?: any }; /* this optional function can be specified to ignore object properties (eg. volatile data) diff --git a/src/index.js b/lib/index.js similarity index 86% rename from src/index.js rename to lib/index.js index 944644cf..04d9febd 100644 --- a/src/index.js +++ b/lib/index.js @@ -1,8 +1,8 @@ -import DiffPatcher from './diffpatcher'; +import DiffPatcher from './diffpatcher.js'; export { default as DiffPatcher, -} from './diffpatcher'; +} from './diffpatcher.js'; export function create(options) { return new DiffPatcher(options); @@ -10,7 +10,7 @@ export function create(options) { export { default as dateReviver, -} from './date-reviver'; +} from './date-reviver.js'; export function diff() { return staticCall('diff', arguments); diff --git a/src/pipe.js b/lib/pipe.js similarity index 97% rename from src/pipe.js rename to lib/pipe.js index 857eb4ae..9752a492 100644 --- a/src/pipe.js +++ b/lib/pipe.js @@ -28,7 +28,9 @@ class Pipe { } log(msg) { - console.log(`[jsondiffpatch] ${this.name} pipe, ${msg}`); + + /* global console */ + console.log(`[diffpatch] ${this.name} pipe, ${msg}`); } append(...args) { diff --git a/src/processor.js b/lib/processor.js similarity index 99% rename from src/processor.js rename to lib/processor.js index ccc0ae6b..16ef4759 100644 --- a/src/processor.js +++ b/lib/processor.js @@ -39,6 +39,7 @@ class Processor { let lastContext; while (nextPipe) { if (typeof context.nextAfterChildren !== 'undefined') { + // children processed and coming back to parent context.next = context.nextAfterChildren; context.nextAfterChildren = null; diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 00000000..22db1afa --- /dev/null +++ b/package-lock.json @@ -0,0 +1,3695 @@ +{ + "name": "diffpatch", + "version": "0.5.1", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "diffpatch", + "version": "0.5.1", + "license": "MIT", + "dependencies": { + "picocolors": "^1.0.1" + }, + "bin": { + "diffpatch": "bin/diffpatch" + }, + "devDependencies": { + "chai": "^5.1.1", + "diff-match-patch": "^1.0.5", + "eslint": "^8.57.0", + "eslint-plugin-bpmn-io": "^1.0.1", + "eslint-plugin-import": "^2.8.0", + "esm": "^3.0.25", + "mocha": "^10.7.0", + "npm-run-all2": "^6.2.2" + }, + "engines": { + "node": ">=8" + } + }, + "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/regexpp": { + "version": "4.11.0", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.11.0.tgz", + "integrity": "sha512-G/M/tIiMrTAxEWRfLfQJMmGNX28IxBg4PBz8XqQhqUHLFI6TL2htpIB1iQCj144V5ee/JaKyT9/WZ0MGZWfA7A==", + "dev": true, + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/eslintrc": { + "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", + "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/node_modules/debug": { + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.5.tgz", + "integrity": "sha512-pt0bNEmneDIvdL1Xsd9oDQ/wrQRkXDT4AUWlNZNPKvW5x/jyO9VFXkJUP07vQ2upmw5PlaITaPKc31jK13V+jg==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/@eslint/eslintrc/node_modules/ignore": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.1.tgz", + "integrity": "sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/@eslint/eslintrc/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 + }, + "node_modules/@eslint/js": { + "version": "8.57.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.0.tgz", + "integrity": "sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/@humanwhocodes/config-array": { + "version": "0.11.14", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz", + "integrity": "sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==", + "deprecated": "Use @eslint/config-array instead", + "dev": true, + "dependencies": { + "@humanwhocodes/object-schema": "^2.0.2", + "debug": "^4.3.1", + "minimatch": "^3.0.5" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "node_modules/@humanwhocodes/config-array/node_modules/debug": { + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.5.tgz", + "integrity": "sha512-pt0bNEmneDIvdL1Xsd9oDQ/wrQRkXDT4AUWlNZNPKvW5x/jyO9VFXkJUP07vQ2upmw5PlaITaPKc31jK13V+jg==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/@humanwhocodes/config-array/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 + }, + "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.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/@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/@types/json5": { + "version": "0.0.29", + "dev": true, + "license": "MIT" + }, + "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": "8.12.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.12.1.tgz", + "integrity": "sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "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, + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "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, + "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" + } + }, + "node_modules/ansi-colors": { + "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, + "engines": { + "node": ">=6" + } + }, + "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, + "engines": { + "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.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "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/array-buffer-byte-length": { + "version": "1.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.5", + "is-array-buffer": "^3.0.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array-includes": { + "version": "3.1.8", + "dev": true, + "license": "MIT", + "dependencies": { + "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": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.findlast": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/array.prototype.findlast/-/array.prototype.findlast-1.2.5.tgz", + "integrity": "sha512-CVvd6FHg1Z3POpBLxO6E6zr+rSKEQ9L6rZHAaY7lLfhKsWYUBBOuMs0e9o24oopj6H+geRCX0YJ+TJLBK2eHyQ==", + "dev": true, + "dependencies": { + "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" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.findlastindex": { + "version": "1.2.5", + "dev": true, + "license": "MIT", + "dependencies": { + "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" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.flat": { + "version": "1.3.2", + "dev": true, + "license": "MIT", + "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", + "dev": true, + "license": "MIT", + "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.tosorted": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/array.prototype.tosorted/-/array.prototype.tosorted-1.1.4.tgz", + "integrity": "sha512-p6Fx8B7b7ZhL/gmUsAy0D15WhvDccw3mnGNbZpi3pmeJdxtWsj2jEaI4Y6oo3XiHfzuSgPwKc04MYt6KgvC/wA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.3", + "es-errors": "^1.3.0", + "es-shim-unscopables": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/arraybuffer.prototype.slice": { + "version": "1.0.3", + "dev": true, + "license": "MIT", + "dependencies": { + "array-buffer-byte-length": "^1.0.1", + "call-bind": "^1.0.5", + "define-properties": "^1.2.1", + "es-abstract": "^1.22.3", + "es-errors": "^1.2.1", + "get-intrinsic": "^1.2.3", + "is-array-buffer": "^3.0.4", + "is-shared-array-buffer": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/assertion-error": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz", + "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==", + "dev": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/available-typed-arrays": { + "version": "1.0.7", + "dev": true, + "license": "MIT", + "dependencies": { + "possible-typed-array-names": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "dev": true, + "license": "MIT" + }, + "node_modules/binary-extensions": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", + "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browser-stdout": { + "version": "1.3.1", + "dev": true, + "license": "ISC" + }, + "node_modules/call-bind": { + "version": "1.0.7", + "dev": true, + "license": "MIT", + "dependencies": { + "es-define-property": "^1.0.0", + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.4", + "set-function-length": "^1.2.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "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, + "engines": { + "node": ">=6" + } + }, + "node_modules/camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/chai": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/chai/-/chai-5.1.1.tgz", + "integrity": "sha512-pT1ZgP8rPNqUgieVaEY+ryQr6Q4HXNg8Ei9UnLUrjN4IA7dvQC5JB+/kxVcPNDHyBcc/26CXPkbNzq3qwrOEKA==", + "dev": true, + "dependencies": { + "assertion-error": "^2.0.1", + "check-error": "^2.1.1", + "deep-eql": "^5.0.1", + "loupe": "^3.1.0", + "pathval": "^2.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/chalk": { + "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", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/check-error": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/check-error/-/check-error-2.1.1.tgz", + "integrity": "sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==", + "dev": true, + "engines": { + "node": ">= 16" + } + }, + "node_modules/chokidar": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", + "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", + "dev": true, + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.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" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "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, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^7.0.0" + } + }, + "node_modules/cliui/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, + "engines": { + "node": ">=8" + } + }, + "node_modules/cliui/node_modules/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/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/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/concat-map": { + "version": "0.0.1", + "dev": true, + "license": "MIT" + }, + "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, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/data-view-buffer": { + "version": "1.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.6", + "es-errors": "^1.3.0", + "is-data-view": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/data-view-byte-length": { + "version": "1.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.7", + "es-errors": "^1.3.0", + "is-data-view": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/data-view-byte-offset": { + "version": "1.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.6", + "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": "3.2.7", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.1" + } + }, + "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/deep-eql": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-5.0.2.tgz", + "integrity": "sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "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/define-data-property": { + "version": "1.1.4", + "dev": true, + "license": "MIT", + "dependencies": { + "es-define-property": "^1.0.0", + "es-errors": "^1.3.0", + "gopd": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/define-properties": { + "version": "1.2.1", + "dev": true, + "license": "MIT", + "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.2.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-5.2.0.tgz", + "integrity": "sha512-uIFDxqpRZGZ6ThOk84hEfqWoHx2devRFvpTZcTHur85vImfaxUbTW9Ryh4CpCuDnToOP1CEtXKIgytHBPVff5A==", + "dev": true, + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/diff-match-patch": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/diff-match-patch/-/diff-match-patch-1.0.5.tgz", + "integrity": "sha512-IayShXAgj/QMXgB0IWmKx+rOPuGMhqm5w6jvFxmVenXKIzRqTAAsbBPT3kWQeGANj3jGgvcvv4yK6SxqYmikgw==", + "dev": true + }, + "node_modules/doctrine": { + "version": "2.1.0", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "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/es-abstract": { + "version": "1.23.3", + "dev": true, + "license": "MIT", + "dependencies": { + "array-buffer-byte-length": "^1.0.1", + "arraybuffer.prototype.slice": "^1.0.3", + "available-typed-arrays": "^1.0.7", + "call-bind": "^1.0.7", + "data-view-buffer": "^1.0.1", + "data-view-byte-length": "^1.0.1", + "data-view-byte-offset": "^1.0.0", + "es-define-property": "^1.0.0", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0", + "es-set-tostringtag": "^2.0.3", + "es-to-primitive": "^1.2.1", + "function.prototype.name": "^1.1.6", + "get-intrinsic": "^1.2.4", + "get-symbol-description": "^1.0.2", + "globalthis": "^1.0.3", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.2", + "has-proto": "^1.0.3", + "has-symbols": "^1.0.3", + "hasown": "^2.0.2", + "internal-slot": "^1.0.7", + "is-array-buffer": "^3.0.4", + "is-callable": "^1.2.7", + "is-data-view": "^1.0.1", + "is-negative-zero": "^2.0.3", + "is-regex": "^1.1.4", + "is-shared-array-buffer": "^1.0.3", + "is-string": "^1.0.7", + "is-typed-array": "^1.1.13", + "is-weakref": "^1.0.2", + "object-inspect": "^1.13.1", + "object-keys": "^1.1.1", + "object.assign": "^4.1.5", + "regexp.prototype.flags": "^1.5.2", + "safe-array-concat": "^1.1.2", + "safe-regex-test": "^1.0.3", + "string.prototype.trim": "^1.2.9", + "string.prototype.trimend": "^1.0.8", + "string.prototype.trimstart": "^1.0.8", + "typed-array-buffer": "^1.0.2", + "typed-array-byte-length": "^1.0.1", + "typed-array-byte-offset": "^1.0.2", + "typed-array-length": "^1.0.6", + "unbox-primitive": "^1.0.2", + "which-typed-array": "^1.1.15" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/es-define-property": { + "version": "1.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "get-intrinsic": "^1.2.4" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-iterator-helpers": { + "version": "1.0.19", + "resolved": "https://registry.npmjs.org/es-iterator-helpers/-/es-iterator-helpers-1.0.19.tgz", + "integrity": "sha512-zoMwbCcH5hwUkKJkT8kDIBZSz9I6mVG//+lDCinLCGov4+r7NIy0ld8o03M0cJxl2spVf6ESYVS6/gpIfq1FFw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.3", + "es-errors": "^1.3.0", + "es-set-tostringtag": "^2.0.3", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.4", + "globalthis": "^1.0.3", + "has-property-descriptors": "^1.0.2", + "has-proto": "^1.0.3", + "has-symbols": "^1.0.3", + "internal-slot": "^1.0.7", + "iterator.prototype": "^1.1.2", + "safe-array-concat": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-object-atoms": { + "version": "1.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-set-tostringtag": { + "version": "2.0.3", + "dev": true, + "license": "MIT", + "dependencies": { + "get-intrinsic": "^1.2.4", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.1" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-shim-unscopables": { + "version": "1.0.2", + "dev": true, + "license": "MIT", + "dependencies": { + "hasown": "^2.0.0" + } + }, + "node_modules/es-to-primitive": { + "version": "1.2.1", + "dev": true, + "license": "MIT", + "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/escalade": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", + "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", + "dev": true, + "engines": { + "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.57.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.0.tgz", + "integrity": "sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.6.1", + "@eslint/eslintrc": "^2.1.4", + "@eslint/js": "8.57.0", + "@humanwhocodes/config-array": "^0.11.14", + "@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.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.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", + "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", + "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.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3", + "strip-ansi": "^6.0.1", + "text-table": "^0.2.0" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-import-resolver-node": { + "version": "0.3.9", + "dev": true, + "license": "MIT", + "dependencies": { + "debug": "^3.2.7", + "is-core-module": "^2.13.0", + "resolve": "^1.22.4" + } + }, + "node_modules/eslint-module-utils": { + "version": "2.8.1", + "dev": true, + "license": "MIT", + "dependencies": { + "debug": "^3.2.7" + }, + "engines": { + "node": ">=4" + }, + "peerDependenciesMeta": { + "eslint": { + "optional": true + } + } + }, + "node_modules/eslint-plugin-bpmn-io": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-bpmn-io/-/eslint-plugin-bpmn-io-1.0.1.tgz", + "integrity": "sha512-06bwPPzGbLULcgthNi+Fuh8QHNSBigubH0P3u8xFQV2OterZrqs5jK6I192/W5kYeIxzZkhSixCt5S70sd4qHw==", + "dev": true, + "dependencies": { + "eslint-plugin-mocha": "^10.1.0", + "eslint-plugin-react": "^7.35.0" + }, + "peerDependencies": { + "eslint": "^8 || ^9" + } + }, + "node_modules/eslint-plugin-import": { + "version": "2.29.1", + "dev": true, + "license": "MIT", + "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.15.0" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8" + } + }, + "node_modules/eslint-plugin-mocha": { + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/eslint-plugin-mocha/-/eslint-plugin-mocha-10.4.3.tgz", + "integrity": "sha512-emc4TVjq5Ht0/upR+psftuz6IBG5q279p+1dSRDeHf+NS9aaerBi3lXKo1SEzwC29hFIW21gO89CEWSvRsi8IQ==", + "dev": true, + "dependencies": { + "eslint-utils": "^3.0.0", + "globals": "^13.24.0", + "rambda": "^7.4.0" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "eslint": ">=7.0.0" + } + }, + "node_modules/eslint-plugin-react": { + "version": "7.35.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.35.0.tgz", + "integrity": "sha512-v501SSMOWv8gerHkk+IIQBkcGRGrO2nfybfj5pLxuJNFTPxxA3PSryhXTK+9pNbtkggheDdsC0E9Q8CuPk6JKA==", + "dev": true, + "dependencies": { + "array-includes": "^3.1.8", + "array.prototype.findlast": "^1.2.5", + "array.prototype.flatmap": "^1.3.2", + "array.prototype.tosorted": "^1.1.4", + "doctrine": "^2.1.0", + "es-iterator-helpers": "^1.0.19", + "estraverse": "^5.3.0", + "hasown": "^2.0.2", + "jsx-ast-utils": "^2.4.1 || ^3.0.0", + "minimatch": "^3.1.2", + "object.entries": "^1.1.8", + "object.fromentries": "^2.0.8", + "object.values": "^1.2.0", + "prop-types": "^15.8.1", + "resolve": "^2.0.0-next.5", + "semver": "^6.3.1", + "string.prototype.matchall": "^4.0.11", + "string.prototype.repeat": "^1.0.0" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9.7" + } + }, + "node_modules/eslint-plugin-react/node_modules/resolve": { + "version": "2.0.0-next.5", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.5.tgz", + "integrity": "sha512-U7WjGVG9sH8tvjW5SmGbQuui75FiyjAX72HX15DwBBwF9dNiQZRQAg9nnPhYy+TUnE0+VcrttuvNI8oSxZcocA==", + "dev": true, + "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" + } + }, + "node_modules/eslint-scope": { + "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": "^5.2.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "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-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" + } + }, + "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/node_modules/debug": { + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.5.tgz", + "integrity": "sha512-pt0bNEmneDIvdL1Xsd9oDQ/wrQRkXDT4AUWlNZNPKvW5x/jyO9VFXkJUP07vQ2upmw5PlaITaPKc31jK13V+jg==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/eslint/node_modules/doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "dev": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "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/ignore": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.1.tgz", + "integrity": "sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/eslint/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 + }, + "node_modules/esm": { + "version": "3.2.25", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/espree": { + "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": "^8.9.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esquery": { + "version": "1.6.0", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "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, + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "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/esutils": { + "version": "2.0.3", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "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 + }, + "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 + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true + }, + "node_modules/fastq": { + "version": "1.17.1", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", + "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", + "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", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "dev": true, + "dependencies": { + "flat-cache": "^3.0.4" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "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, + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "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, + "bin": { + "flat": "cli.js" + } + }, + "node_modules/flat-cache": { + "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.2.9", + "keyv": "^4.5.3", + "rimraf": "^3.0.2" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/flatted": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.1.tgz", + "integrity": "sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==", + "dev": true + }, + "node_modules/for-each": { + "version": "0.3.3", + "dev": true, + "license": "MIT", + "dependencies": { + "is-callable": "^1.1.3" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "dev": true, + "license": "ISC" + }, + "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" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/function.prototype.name": { + "version": "1.1.6", + "dev": true, + "license": "MIT", + "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" + } + }, + "node_modules/functions-have-names": { + "version": "1.2.3", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "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, + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-func-name": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.2.tgz", + "integrity": "sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/get-intrinsic": { + "version": "1.2.4", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "hasown": "^2.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-symbol-description": { + "version": "1.0.2", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.5", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "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/globals": { + "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" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/globalthis": { + "version": "1.0.4", + "dev": true, + "license": "MIT", + "dependencies": { + "define-properties": "^1.2.1", + "gopd": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gopd": { + "version": "1.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "get-intrinsic": "^1.1.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "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": { + "version": "1.0.2", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "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/has-property-descriptors": { + "version": "1.0.2", + "dev": true, + "license": "MIT", + "dependencies": { + "es-define-property": "^1.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-proto": { + "version": "1.0.3", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.0.3", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.2", + "dev": true, + "license": "MIT", + "dependencies": { + "has-symbols": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "dev": true, + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "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, + "bin": { + "he": "bin/he" + } + }, + "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, + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "dev": true, + "license": "ISC", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "dev": true, + "license": "ISC" + }, + "node_modules/internal-slot": { + "version": "1.0.7", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "hasown": "^2.0.0", + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/is-array-buffer": { + "version": "3.0.4", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "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-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-bigint": { + "version": "1.0.4", + "dev": true, + "license": "MIT", + "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, + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-boolean-object": { + "version": "1.1.2", + "dev": true, + "license": "MIT", + "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", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-core-module": { + "version": "2.15.0", + "dev": true, + "license": "MIT", + "dependencies": { + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-data-view": { + "version": "1.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "is-typed-array": "^1.1.13" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-date-object": { + "version": "1.0.5", + "dev": true, + "license": "MIT", + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-finalizationregistry": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-finalizationregistry/-/is-finalizationregistry-1.0.2.tgz", + "integrity": "sha512-0by5vtUJs8iFQb5TYUHHPudOR+qXYIMKtiUzvLIZITZUjknFmziyBJuLhVRc+Ds0dREFlskDNJKYIdIzu/9pfw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "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", + "dev": true, + "license": "MIT", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "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, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-negative-zero": { + "version": "2.0.3", + "dev": true, + "license": "MIT", + "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", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-number-object": { + "version": "1.0.7", + "dev": true, + "license": "MIT", + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "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", + "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-regex": { + "version": "1.1.4", + "dev": true, + "license": "MIT", + "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-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" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-shared-array-buffer": { + "version": "1.0.3", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-string": { + "version": "1.0.7", + "dev": true, + "license": "MIT", + "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", + "dev": true, + "license": "MIT", + "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.13", + "dev": true, + "license": "MIT", + "dependencies": { + "which-typed-array": "^1.1.14" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "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, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "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, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakref": { + "version": "1.0.2", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakset": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.3.tgz", + "integrity": "sha512-LvIm3/KWzS9oRFHugab7d+M/GcBXuXX5xZkzPmN+NxihdQlZUQ4dWuSV1xR/sq6upL1TJEDrfBgRepHFdBtSNQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.7", + "get-intrinsic": "^1.2.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "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/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "node_modules/iterator.prototype": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/iterator.prototype/-/iterator.prototype-1.1.2.tgz", + "integrity": "sha512-DR33HMMr8EzwuRL8Y9D3u2BMj8+RqSE850jfGu59kS7tbmPLzGkZmVSfyCFSDxuZiEY6Rzt3T2NA/qU+NwVj1w==", + "dev": true, + "dependencies": { + "define-properties": "^1.2.1", + "get-intrinsic": "^1.2.1", + "has-symbols": "^1.0.3", + "reflect.getprototypeof": "^1.0.4", + "set-function-name": "^2.0.1" + } + }, + "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 + }, + "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/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-parse-even-better-errors": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-3.0.2.tgz", + "integrity": "sha512-fi0NG4bPjCHunUJffmLd0gxssIgkNmArMvis4iNah6Owg1MCJjWhEcDLmsK6iGkJq3tHwbDkTlce70/tmXN4cQ==", + "dev": true, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "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 + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "dev": true, + "license": "MIT" + }, + "node_modules/json5": { + "version": "1.0.2", + "dev": true, + "license": "MIT", + "dependencies": { + "minimist": "^1.2.0" + }, + "bin": { + "json5": "lib/cli.js" + } + }, + "node_modules/jsx-ast-utils": { + "version": "3.3.5", + "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.5.tgz", + "integrity": "sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ==", + "dev": true, + "dependencies": { + "array-includes": "^3.1.6", + "array.prototype.flat": "^1.3.1", + "object.assign": "^4.1.4", + "object.values": "^1.1.6" + }, + "engines": { + "node": ">=4.0" + } + }, + "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", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "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, + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "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 + }, + "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, + "dependencies": { + "chalk": "^4.1.0", + "is-unicode-supported": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/loose-envify": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "dev": true, + "dependencies": { + "js-tokens": "^3.0.0 || ^4.0.0" + }, + "bin": { + "loose-envify": "cli.js" + } + }, + "node_modules/loupe": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/loupe/-/loupe-3.1.1.tgz", + "integrity": "sha512-edNu/8D5MKVfGVFRhFf8aAxiTM6Wumfz5XsaatSxlD3w4R1d/WEKUTydCdPGbl9K7QG/Ca3GnDV2sIKIpXRQcw==", + "dev": true, + "dependencies": { + "get-func-name": "^2.0.1" + } + }, + "node_modules/memorystream": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/memorystream/-/memorystream-0.3.1.tgz", + "integrity": "sha512-S3UwM3yj5mtUSEfP41UZmt/0SCoVYUcU1rkXv+BQ5Ig8ndL4sPoJNBUJERafdPb5jjHJGuMgytgKvKIf58XNBw==", + "dev": true, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/mocha": { + "version": "10.7.0", + "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.7.0.tgz", + "integrity": "sha512-v8/rBWr2VO5YkspYINnvu81inSz2y3ODJrhO175/Exzor1RcEZZkizgE2A+w/CAXXoESS8Kys5E62dOHGHzULA==", + "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": "^8.1.0", + "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" + } + }, + "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": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/mocha/node_modules/debug": { + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.5.tgz", + "integrity": "sha512-pt0bNEmneDIvdL1Xsd9oDQ/wrQRkXDT4AUWlNZNPKvW5x/jyO9VFXkJUP07vQ2upmw5PlaITaPKc31jK13V+jg==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/mocha/node_modules/debug/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 + }, + "node_modules/mocha/node_modules/glob": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", + "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^5.0.1", + "once": "^1.3.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/mocha/node_modules/minimatch": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", + "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "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.3", + "dev": true, + "license": "MIT" + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "dev": true, + "license": "MIT" + }, + "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, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm-normalize-package-bin": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/npm-normalize-package-bin/-/npm-normalize-package-bin-3.0.1.tgz", + "integrity": "sha512-dMxCf+zZ+3zeQZXKxmyuCKlIDPGuv8EF940xbkC4kQVDTtqoh6rJFO+JTKSA6/Rwi0getWmtuy4Itup0AMcaDQ==", + "dev": true, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm-run-all2": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/npm-run-all2/-/npm-run-all2-6.2.2.tgz", + "integrity": "sha512-Q+alQAGIW7ZhKcxLt8GcSi3h3ryheD6xnmXahkMRVM5LYmajcUrSITm8h+OPC9RYWMV2GR0Q1ntTUCfxaNoOJw==", + "dev": true, + "dependencies": { + "ansi-styles": "^6.2.1", + "cross-spawn": "^7.0.3", + "memorystream": "^0.3.1", + "minimatch": "^9.0.0", + "pidtree": "^0.6.0", + "read-package-json-fast": "^3.0.2", + "shell-quote": "^1.7.3" + }, + "bin": { + "npm-run-all": "bin/npm-run-all/index.js", + "npm-run-all2": "bin/npm-run-all/index.js", + "run-p": "bin/run-p/index.js", + "run-s": "bin/run-s/index.js" + }, + "engines": { + "node": "^14.18.0 || ^16.13.0 || >=18.0.0", + "npm": ">= 8" + } + }, + "node_modules/npm-run-all2/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/npm-run-all2/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/npm-run-all2/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/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-inspect": { + "version": "1.13.2", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object-keys": { + "version": "1.1.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.assign": { + "version": "4.1.5", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.5", + "define-properties": "^1.2.1", + "has-symbols": "^1.0.3", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.entries": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.8.tgz", + "integrity": "sha512-cmopxi8VwRIAw/fkijJohSfpef5PdN0pMQJN6VC/ZKvn0LIknWD8KtgY6KlQdEc4tIjcQ3HxSMmnvtzIscdaYQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.fromentries": { + "version": "2.0.8", + "dev": true, + "license": "MIT", + "dependencies": { + "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" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.groupby": { + "version": "1.0.3", + "dev": true, + "license": "MIT", + "dependencies": { + "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.2.0", + "dev": true, + "license": "MIT", + "dependencies": { + "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" + } + }, + "node_modules/once": { + "version": "1.4.0", + "dev": true, + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/optionator": { + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", + "dev": true, + "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.5" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "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-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, + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "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, + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "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/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "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, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "dev": true, + "license": "MIT" + }, + "node_modules/pathval": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/pathval/-/pathval-2.0.0.tgz", + "integrity": "sha512-vE7JKRyES09KiunauX7nd2Q9/L7lhok4smP9RZTDeD4MVs72Dp2qNFVz39Nz5a0FVEW0BJR6C0DYrq6unoziZA==", + "dev": true, + "engines": { + "node": ">= 14.16" + } + }, + "node_modules/picocolors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz", + "integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==" + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pidtree": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/pidtree/-/pidtree-0.6.0.tgz", + "integrity": "sha512-eG2dWTVw5bzqGRztnHExczNxt5VGsE6OwTeCG3fdUf9KBsZzO3R5OIIIzWR+iZA0NtZ+RDVdaoE2dK1cn6jH4g==", + "dev": true, + "bin": { + "pidtree": "bin/pidtree.js" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/possible-typed-array-names": { + "version": "1.0.0", + "dev": true, + "license": "MIT", + "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", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/prop-types": { + "version": "15.8.1", + "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", + "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", + "dev": true, + "dependencies": { + "loose-envify": "^1.4.0", + "object-assign": "^4.1.1", + "react-is": "^16.13.1" + } + }, + "node_modules/punycode": { + "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/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": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", + "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", + "dev": true, + "dependencies": { + "safe-buffer": "^5.1.0" + } + }, + "node_modules/react-is": { + "version": "16.13.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", + "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", + "dev": true + }, + "node_modules/read-package-json-fast": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/read-package-json-fast/-/read-package-json-fast-3.0.2.tgz", + "integrity": "sha512-0J+Msgym3vrLOUB3hzQCuZHII0xkNGCtz/HJH9xZshwv9DbDwkw1KaE3gx/e2J5rpEY5rtOy6cyhKOPrkP7FZw==", + "dev": true, + "dependencies": { + "json-parse-even-better-errors": "^3.0.0", + "npm-normalize-package-bin": "^3.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dev": true, + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/reflect.getprototypeof": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/reflect.getprototypeof/-/reflect.getprototypeof-1.0.6.tgz", + "integrity": "sha512-fmfw4XgoDke3kdI6h4xcUz1dG8uaiv5q9gcEwLS4Pnth2kxT+GZ7YehS1JTMGBQmtV7Y4GFGbs2re2NqhdozUg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.1", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.4", + "globalthis": "^1.0.3", + "which-builtin-type": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/regexp.prototype.flags": { + "version": "1.5.2", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.6", + "define-properties": "^1.2.1", + "es-errors": "^1.3.0", + "set-function-name": "^2.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/resolve": { + "version": "1.22.8", + "dev": true, + "license": "MIT", + "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" + } + }, + "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, + "engines": { + "node": ">=4" + } + }, + "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", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "deprecated": "Rimraf versions prior to v4 are no longer supported", + "dev": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "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": { + "version": "1.1.2", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.7", + "get-intrinsic": "^1.2.4", + "has-symbols": "^1.0.3", + "isarray": "^2.0.5" + }, + "engines": { + "node": ">=0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/safe-buffer": { + "version": "5.1.2", + "dev": true, + "license": "MIT" + }, + "node_modules/safe-regex-test": { + "version": "1.0.3", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.6", + "es-errors": "^1.3.0", + "is-regex": "^1.1.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "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/serialize-javascript": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.2.tgz", + "integrity": "sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==", + "dev": true, + "dependencies": { + "randombytes": "^2.1.0" + } + }, + "node_modules/set-function-length": { + "version": "1.2.2", + "dev": true, + "license": "MIT", + "dependencies": { + "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.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/set-function-name": { + "version": "2.0.2", + "dev": true, + "license": "MIT", + "dependencies": { + "define-data-property": "^1.1.4", + "es-errors": "^1.3.0", + "functions-have-names": "^1.2.3", + "has-property-descriptors": "^1.0.2" + }, + "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, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "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, + "engines": { + "node": ">=8" + } + }, + "node_modules/shell-quote": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.1.tgz", + "integrity": "sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel": { + "version": "1.0.6", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.7", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.4", + "object-inspect": "^1.13.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.matchall": { + "version": "4.0.11", + "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.11.tgz", + "integrity": "sha512-NUdh0aDavY2og7IbBPenWqR9exH+E26Sv8e0/eTe1tltDGZL+GtBkDAnnyBtmekfK6/Dq3MkcGtzXFEd1LQrtg==", + "dev": true, + "dependencies": { + "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", + "get-intrinsic": "^1.2.4", + "gopd": "^1.0.1", + "has-symbols": "^1.0.3", + "internal-slot": "^1.0.7", + "regexp.prototype.flags": "^1.5.2", + "set-function-name": "^2.0.2", + "side-channel": "^1.0.6" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.repeat": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/string.prototype.repeat/-/string.prototype.repeat-1.0.0.tgz", + "integrity": "sha512-0u/TldDbKD8bFCQ/4f5+mNRrXwZ8hg2w7ZR8wa16e8z9XpePWl3eGEcUD0OXpEH/VJH/2G3gjUtR3ZOiBe2S/w==", + "dev": true, + "dependencies": { + "define-properties": "^1.1.3", + "es-abstract": "^1.17.5" + } + }, + "node_modules/string.prototype.trim": { + "version": "1.2.9", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.0", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimend": { + "version": "1.0.8", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimstart": { + "version": "1.0.8", + "dev": true, + "license": "MIT", + "dependencies": { + "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" + } + }, + "node_modules/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": "3.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "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, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "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/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/text-table": { + "version": "0.2.0", + "dev": true, + "license": "MIT" + }, + "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, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/tsconfig-paths": { + "version": "3.15.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/json5": "^0.0.29", + "json5": "^1.0.2", + "minimist": "^1.2.6", + "strip-bom": "^3.0.0" + } + }, + "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, + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "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/typed-array-buffer": { + "version": "1.0.2", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.7", + "es-errors": "^1.3.0", + "is-typed-array": "^1.1.13" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/typed-array-byte-length": { + "version": "1.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.7", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-proto": "^1.0.3", + "is-typed-array": "^1.1.13" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typed-array-byte-offset": { + "version": "1.0.2", + "dev": true, + "license": "MIT", + "dependencies": { + "available-typed-arrays": "^1.0.7", + "call-bind": "^1.0.7", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-proto": "^1.0.3", + "is-typed-array": "^1.1.13" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typed-array-length": { + "version": "1.0.6", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.7", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-proto": "^1.0.3", + "is-typed-array": "^1.1.13", + "possible-typed-array-names": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/unbox-primitive": { + "version": "1.0.2", + "dev": true, + "license": "MIT", + "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, + "dependencies": { + "punycode": "^2.1.0" + } + }, + "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, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/which-boxed-primitive": { + "version": "1.0.2", + "dev": true, + "license": "MIT", + "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" + } + }, + "node_modules/which-builtin-type": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/which-builtin-type/-/which-builtin-type-1.1.3.tgz", + "integrity": "sha512-YmjsSMDBYsM1CaFiayOVT06+KJeXf0o5M/CAd4o1lTadFAtacTUM49zoYxr/oroopFDfhvN6iEcBxUyc3gvKmw==", + "dev": true, + "dependencies": { + "function.prototype.name": "^1.1.5", + "has-tostringtag": "^1.0.0", + "is-async-function": "^2.0.0", + "is-date-object": "^1.0.5", + "is-finalizationregistry": "^1.0.2", + "is-generator-function": "^1.0.10", + "is-regex": "^1.1.4", + "is-weakref": "^1.0.2", + "isarray": "^2.0.5", + "which-boxed-primitive": "^1.0.2", + "which-collection": "^1.0.1", + "which-typed-array": "^1.1.9" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-collection": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.2.tgz", + "integrity": "sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw==", + "dev": true, + "dependencies": { + "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" + } + }, + "node_modules/which-typed-array": { + "version": "1.1.15", + "dev": true, + "license": "MIT", + "dependencies": { + "available-typed-arrays": "^1.0.7", + "call-bind": "^1.0.7", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/word-wrap": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/workerpool": { + "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, + "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/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, + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi/node_modules/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/wrappy": { + "version": "1.0.2", + "dev": true, + "license": "ISC" + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "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, + "dependencies": { + "cliui": "^7.0.2", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.0", + "y18n": "^5.0.5", + "yargs-parser": "^20.2.2" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/yargs-parser": { + "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, + "engines": { + "node": ">=10" + } + }, + "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, + "dependencies": { + "camelcase": "^6.0.0", + "decamelize": "^4.0.0", + "flat": "^5.0.2", + "is-plain-obj": "^2.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/yargs/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, + "engines": { + "node": ">=8" + } + }, + "node_modules/yargs/node_modules/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/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, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + } + } +} diff --git a/package.json b/package.json index c8f6fee6..89c2cce9 100644 --- a/package.json +++ b/package.json @@ -7,10 +7,11 @@ "Benjamin Eidelman ", "bpmn.io Contributors " ], - "main": "src/index.js", - "types": "src/index.d.ts", + "type": "module", + "main": "lib/index.js", + "types": "lib/index.d.ts", "bin": { - "jsondiffpatch": "./bin/jsondiffpatch" + "diffpatch": "./bin/diffpatch" }, "scripts": { "all": "run-s lint test", @@ -29,25 +30,24 @@ "patch" ], "dependencies": { - "chalk": "^2.3.0", - "diff-match-patch": "^1.0.0" + "picocolors": "^1.0.1" }, "devDependencies": { - "chai": "^4.1.2", - "eslint": "^4.16.0", - "eslint-config-standard": "^11.0.0-beta.0", + "chai": "^5.1.1", + "diff-match-patch": "^1.0.5", + "eslint": "^8.57.0", + "eslint-plugin-bpmn-io": "^1.0.1", "eslint-plugin-import": "^2.8.0", - "eslint-plugin-node": "^5.2.1", - "eslint-plugin-promise": "^3.6.0", - "eslint-plugin-standard": "^3.0.1", "esm": "^3.0.25", - "mkdirp": "^0.5.1", - "mocha": "^5.0.0", - "npm-run-all": "^4.1.2" + "mocha": "^10.7.0", + "npm-run-all2": "^6.2.2" }, "publishConfig": { "access": "public" }, + "files": [ + "lib" + ], "license": "MIT", "engines": { "node": ">=8" diff --git a/src/formatters/index.js b/src/formatters/index.js deleted file mode 100644 index fd32c0d9..00000000 --- a/src/formatters/index.js +++ /dev/null @@ -1,5 +0,0 @@ -export { default as BaseFormatter } from './base'; -export { default as HtmlFormatter } from './html'; -export { default as AnnotatedFormatter } from './annotated'; -export { default as JSONPatchFormatter } from './jsonpatch'; -export { default as ConsoleFormatter } from './console'; diff --git a/test/.eslintrc b/test/.eslintrc index fff6ee1d..04f1665e 100644 --- a/test/.eslintrc +++ b/test/.eslintrc @@ -1,14 +1,3 @@ { - "extends": "../.eslintrc", - "globals": { - "mocha": false, - "describe": false, - "when": false, - "before": false, - "beforeEach": false, - "after": false, - "afterEach": false, - "it": false, - "expect": false - } + "extends": "plugin:bpmn-io/mocha" } diff --git a/test/examples/diffpatch.js b/test/examples/diffpatch.js index 7af25870..de3f206f 100644 --- a/test/examples/diffpatch.js +++ b/test/examples/diffpatch.js @@ -1,3 +1,5 @@ +import DiffMatchPatch from 'diff-match-patch'; + const examples = {}; const exampleDate = () => new Date(2020, 10, 30, 15, 10, 3); @@ -6,6 +8,7 @@ const exampleDate = () => new Date(2020, 10, 30, 15, 10, 3); /* jshint multistr: true */ examples.atomicValues = [ + // undefined { left: undefined, @@ -16,38 +19,38 @@ examples.atomicValues = [ { left: undefined, right: null, - delta: [null], - reverse: [null, 0, 0], + delta: [ null ], + reverse: [ null, 0, 0 ], }, { left: undefined, right: false, - delta: [false], - reverse: [false, 0, 0], + delta: [ false ], + reverse: [ false, 0, 0 ], }, { left: undefined, right: true, - delta: [true], - reverse: [true, 0, 0], + delta: [ true ], + reverse: [ true, 0, 0 ], }, { left: undefined, right: 42, - delta: [42], - reverse: [42, 0, 0], + delta: [ 42 ], + reverse: [ 42, 0, 0 ], }, { left: undefined, right: 'some text', - delta: ['some text'], - reverse: ['some text', 0, 0], + delta: [ 'some text' ], + reverse: [ 'some text', 0, 0 ], }, { left: undefined, right: exampleDate(), - delta: [exampleDate()], - reverse: [exampleDate(), 0, 0], + delta: [ exampleDate() ], + reverse: [ exampleDate(), 0, 0 ], }, { left: undefined, @@ -72,9 +75,9 @@ examples.atomicValues = [ }, { left: undefined, - right: [1, 2, 3], - delta: [[1, 2, 3]], - reverse: [[1, 2, 3], 0, 0], + right: [ 1, 2, 3 ], + delta: [ [ 1, 2, 3 ] ], + reverse: [ [ 1, 2, 3 ], 0, 0 ], }, { left: undefined, @@ -94,32 +97,32 @@ examples.atomicValues = [ { left: null, right: false, - delta: [null, false], - reverse: [false, null], + delta: [ null, false ], + reverse: [ false, null ], }, { left: null, right: true, - delta: [null, true], - reverse: [true, null], + delta: [ null, true ], + reverse: [ true, null ], }, { left: null, right: 42, - delta: [null, 42], - reverse: [42, null], + delta: [ null, 42 ], + reverse: [ 42, null ], }, { left: null, right: 'some text', - delta: [null, 'some text'], - reverse: ['some text', null], + delta: [ null, 'some text' ], + reverse: [ 'some text', null ], }, { left: null, right: exampleDate(), - delta: [null, exampleDate()], - reverse: [exampleDate(), null], + delta: [ null, exampleDate() ], + reverse: [ exampleDate(), null ], }, { left: null, @@ -160,26 +163,26 @@ examples.atomicValues = [ { left: false, right: true, - delta: [false, true], - reverse: [true, false], + delta: [ false, true ], + reverse: [ true, false ], }, { left: false, right: 42, - delta: [false, 42], - reverse: [42, false], + delta: [ false, 42 ], + reverse: [ 42, false ], }, { left: false, right: 'some text', - delta: [false, 'some text'], - reverse: ['some text', false], + delta: [ false, 'some text' ], + reverse: [ 'some text', false ], }, { left: false, right: exampleDate(), - delta: [false, exampleDate()], - reverse: [exampleDate(), false], + delta: [ false, exampleDate() ], + reverse: [ exampleDate(), false ], }, { left: false, @@ -204,9 +207,9 @@ examples.atomicValues = [ }, { left: false, - right: [1, 2, 3], - delta: [false, [1, 2, 3]], - reverse: [[1, 2, 3], false], + right: [ 1, 2, 3 ], + delta: [ false, [ 1, 2, 3 ] ], + reverse: [ [ 1, 2, 3 ], false ], }, { left: false, @@ -226,20 +229,20 @@ examples.atomicValues = [ { left: true, right: 42, - delta: [true, 42], - reverse: [42, true], + delta: [ true, 42 ], + reverse: [ 42, true ], }, { left: true, right: 'some text', - delta: [true, 'some text'], - reverse: ['some text', true], + delta: [ true, 'some text' ], + reverse: [ 'some text', true ], }, { left: true, right: exampleDate(), - delta: [true, exampleDate()], - reverse: [exampleDate(), true], + delta: [ true, exampleDate() ], + reverse: [ exampleDate(), true ], }, { left: true, @@ -264,9 +267,9 @@ examples.atomicValues = [ }, { left: true, - right: [1, 2, 3], - delta: [true, [1, 2, 3]], - reverse: [[1, 2, 3], true], + right: [ 1, 2, 3 ], + delta: [ true, [ 1, 2, 3 ] ], + reverse: [ [ 1, 2, 3 ], true ], }, { left: true, @@ -287,20 +290,20 @@ examples.atomicValues = [ { left: 42, right: -1, - delta: [42, -1], - reverse: [-1, 42], + delta: [ 42, -1 ], + reverse: [ -1, 42 ], }, { left: 42, right: 'some text', - delta: [42, 'some text'], - reverse: ['some text', 42], + delta: [ 42, 'some text' ], + reverse: [ 'some text', 42 ], }, { left: 42, right: exampleDate(), - delta: [42, exampleDate()], - reverse: [exampleDate(), 42], + delta: [ 42, exampleDate() ], + reverse: [ exampleDate(), 42 ], }, { left: 42, @@ -325,9 +328,9 @@ examples.atomicValues = [ }, { left: 42, - right: [1, 2, 3], - delta: [42, [1, 2, 3]], - reverse: [[1, 2, 3], 42], + right: [ 1, 2, 3 ], + delta: [ 42, [ 1, 2, 3 ] ], + reverse: [ [ 1, 2, 3 ], 42 ], }, { left: 42, @@ -348,14 +351,14 @@ examples.atomicValues = [ { left: 'some text', right: 'some fext', - delta: ['some text', 'some fext'], - reverse: ['some fext', 'some text'], + delta: [ 'some text', 'some fext' ], + reverse: [ 'some fext', 'some text' ], }, { left: 'some text', right: exampleDate(), - delta: ['some text', exampleDate()], - reverse: [exampleDate(), 'some text'], + delta: [ 'some text', exampleDate() ], + reverse: [ exampleDate(), 'some text' ], }, { left: 'some text', @@ -380,9 +383,9 @@ examples.atomicValues = [ }, { left: 'some text', - right: [1, 2, 3], - delta: ['some text', [1, 2, 3]], - reverse: [[1, 2, 3], 'some text'], + right: [ 1, 2, 3 ], + delta: [ 'some text', [ 1, 2, 3 ] ], + reverse: [ [ 1, 2, 3 ], 'some text' ], }, // Date @@ -396,8 +399,8 @@ examples.atomicValues = [ { left: exampleDate(), right: new Date(2020, 5, 31, 15, 12, 30), - delta: [exampleDate(), new Date(2020, 5, 31, 15, 12, 30)], - reverse: [new Date(2020, 5, 31, 15, 12, 30), exampleDate()], + delta: [ exampleDate(), new Date(2020, 5, 31, 15, 12, 30) ], + reverse: [ new Date(2020, 5, 31, 15, 12, 30), exampleDate() ], }, { left: exampleDate(), @@ -422,9 +425,9 @@ examples.atomicValues = [ }, { left: exampleDate(), - right: [1, 2, 3], - delta: [exampleDate(), [1, 2, 3]], - reverse: [[1, 2, 3], exampleDate()], + right: [ 1, 2, 3 ], + delta: [ exampleDate(), [ 1, 2, 3 ] ], + reverse: [ [ 1, 2, 3 ], exampleDate() ], }, { left: exampleDate(), @@ -449,8 +452,8 @@ examples.atomicValues = [ name: 'RegExp -> RegExp', left: /regex/g, right: /another regex/gi, - delta: ['/regex/g', '/another regex/gi'], - reverse: ['/another regex/gi', '/regex/g'], + delta: [ '/regex/g', '/another regex/gi' ], + reverse: [ '/another regex/gi', '/regex/g' ], }, // object @@ -472,16 +475,16 @@ examples.atomicValues = [ a: 1, b: 2, }, - right: [1, 2, 3], + right: [ 1, 2, 3 ], delta: [ { a: 1, b: 2, }, - [1, 2, 3], + [ 1, 2, 3 ], ], reverse: [ - [1, 2, 3], + [ 1, 2, 3 ], { a: 1, b: 2, @@ -502,13 +505,13 @@ examples.atomicValues = [ // array { name: 'array -> same array', - left: [1, 2, 3], - right: [1, 2, 3], + left: [ 1, 2, 3 ], + right: [ 1, 2, 3 ], delta: undefined, reverse: undefined, }, { - left: [1, 2, 3], + left: [ 1, 2, 3 ], right(x) { return x * x; }, @@ -567,8 +570,9 @@ examples.text = [ { left: shortText, right: largeText, - delta: [shortText, largeText], - reverse: [largeText, shortText], + delta: [ shortText, largeText ], + reverse: [ largeText, shortText ], + options: { textDiff: { diffMatchPatch: DiffMatchPatch } }, }, { left: largeText, @@ -588,31 +592,34 @@ examples.text = [ 2, ], exactReverse: false, + options: { textDiff: { diffMatchPatch: DiffMatchPatch } }, }, { name: 'larger than min length', options: { textDiff: { + diffMatchPatch: DiffMatchPatch, minLength: 10, }, }, left: largeText.substr(0, 10), right: largeText.substr(0, 11).replace(/Madre/g, 'Padre'), - delta: ['@@ -1,10 +1,11 @@\n -\n-M\n+P\n adre,%0Acu\n+a\n', 0, 2], - reverse: ['@@ -1,11 +1,10 @@\n -\n-P\n+M\n adre,%0Acu\n-a\n', 0, 2], - exactReverse: false, + delta: [ '@@ -1,10 +1,11 @@\n -\n-M\n+P\n adre,%0Acu\n+a\n', 0, 2 ], + reverse: [ '@@ -1,11 +1,10 @@\n -\n-P\n+M\n adre,%0Acu\n-a\n', 0, 2 ], + exactReverse: false }, { name: 'shorter than min length', options: { textDiff: { + diffMatchPatch: DiffMatchPatch, minLength: 10, }, }, left: largeText.substr(0, 9), right: largeText.substr(0, 11).replace(/Madre/g, 'Padre'), - delta: ['-Madre,\nc', '-Padre,\ncua'], - reverse: ['-Padre,\ncua', '-Madre,\nc'], + delta: [ '-Madre,\nc', '-Padre,\ncua' ], + reverse: [ '-Padre,\ncua', '-Madre,\nc' ], exactReverse: false, }, 0, @@ -630,10 +637,10 @@ examples.objects = [ b: 2, }, delta: { - a: [1, 42], + a: [ 1, 42 ], }, reverse: { - a: [42, 1], + a: [ 42, 1 ], }, }, { @@ -677,7 +684,7 @@ examples.objects = [ l: { m: { n: { - o: [3, true], + o: [ 3, true ], }, }, }, @@ -692,7 +699,7 @@ examples.objects = [ l: { m: { n: { - o: [true, 3], + o: [ true, 3 ], }, }, }, @@ -744,15 +751,15 @@ examples.objects = [ l: { m: { n: { - o: [3, 5], - w: [12], + o: [ 3, 5 ], + w: [ 12 ], }, }, }, }, }, }, - c: [5, 0, 0], + c: [ 5, 0, 0 ], }, reverse: { a: { @@ -761,15 +768,15 @@ examples.objects = [ l: { m: { n: { - o: [5, 3], - w: [12, 0, 0], + o: [ 5, 3 ], + w: [ 12, 0, 0 ], }, }, }, }, }, }, - c: [5], + c: [ 5 ], }, }, { @@ -782,10 +789,10 @@ examples.objects = [ a: 1, }, delta: { - b: [2, 0, 0], + b: [ 2, 0, 0 ], }, reverse: { - b: [2], + b: [ 2 ], }, }, { @@ -805,68 +812,68 @@ examples.objects = [ examples.arrays = [ { name: 'simple values', - left: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], - right: [1, 3, 4, 5, 8, 9, 9.1, 10], + left: [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], + right: [ 1, 3, 4, 5, 8, 9, 9.1, 10 ], delta: { _t: 'a', - _1: [2, 0, 0], - _5: [6, 0, 0], - _6: [7, 0, 0], - 6: [9.1], + _1: [ 2, 0, 0 ], + _5: [ 6, 0, 0 ], + _6: [ 7, 0, 0 ], + 6: [ 9.1 ], }, reverse: { _t: 'a', - 1: [2], - 5: [6], - 6: [7], - _6: [9.1, 0, 0], + 1: [ 2 ], + 5: [ 6 ], + 6: [ 7 ], + _6: [ 9.1, 0, 0 ], }, }, { name: 'added block', - left: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], - right: [1, 2, 3, 4, 5, 5.1, 5.2, 5.3, 6, 7, 8, 9, 10], + left: [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], + right: [ 1, 2, 3, 4, 5, 5.1, 5.2, 5.3, 6, 7, 8, 9, 10 ], delta: { _t: 'a', - 5: [5.1], - 6: [5.2], - 7: [5.3], + 5: [ 5.1 ], + 6: [ 5.2 ], + 7: [ 5.3 ], }, reverse: { _t: 'a', - _5: [5.1, 0, 0], - _6: [5.2, 0, 0], - _7: [5.3, 0, 0], + _5: [ 5.1, 0, 0 ], + _6: [ 5.2, 0, 0 ], + _7: [ 5.3, 0, 0 ], }, }, { name: 'movements', - left: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], - right: [1, 2, 3, 7, 5, 6, 8, 9, 4, 10], + left: [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], + right: [ 1, 2, 3, 7, 5, 6, 8, 9, 4, 10 ], delta: { _t: 'a', - _3: ['', 8, 3], - _6: ['', 3, 3], + _3: [ '', 8, 3 ], + _6: [ '', 3, 3 ], }, reverse: { _t: 'a', - _3: ['', 6, 3], - _8: ['', 3, 3], + _3: [ '', 6, 3 ], + _8: [ '', 3, 3 ], }, }, { name: 'movements(2)', - left: [1, 2, 3, 4], - right: [2, 4, 1, 3], + left: [ 1, 2, 3, 4 ], + right: [ 2, 4, 1, 3 ], delta: { _t: 'a', - _1: ['', 0, 3], - _3: ['', 1, 3], + _1: [ '', 0, 3 ], + _3: [ '', 1, 3 ], }, reverse: { _t: 'a', - _2: ['', 0, 3], - _3: ['', 2, 3], + _2: [ '', 0, 3 ], + _3: [ '', 2, 3 ], }, exactReverse: false, }, @@ -918,13 +925,13 @@ examples.arrays = [ delta: { _t: 'a', 2: { - width: [10, 12], + width: [ 10, 12 ], }, }, reverse: { _t: 'a', 2: { - width: [12, 10], + width: [ 12, 10 ], }, }, }, @@ -977,18 +984,18 @@ examples.arrays = [ delta: { _t: 'a', 2: { - width: [10, 12], - height: [3, 0, 0], + width: [ 10, 12 ], + height: [ 3, 0, 0 ], }, - _7: ['', 2, 3], + _7: [ '', 2, 3 ], }, reverse: { _t: 'a', 7: { - width: [12, 10], - height: [3], + width: [ 12, 10 ], + height: [ 3 ], }, - _2: ['', 7, 3], + _2: [ '', 7, 3 ], }, }, { @@ -1054,39 +1061,39 @@ examples.arrays = [ ], delta: { _t: 'a', - 0: [{ id: 3 }], + 0: [ { id: 3 } ], 2: { inner: { - property: ['abc', 'abcd'], + property: [ 'abc', 'abcd' ], }, }, - 3: [{ id: 9 }], - _0: [{ id: 1 }, 0, 0], - _1: [{ id: 2 }, 0, 0], - _3: [{ id: 5 }, 0, 0], - _5: [{ id: 7 }, 0, 0], - _6: [{ id: 8 }, 0, 0], - _7: [{ id: 10 }, 0, 0], - _8: [{ id: 11 }, 0, 0], - _9: [{ id: 12 }, 0, 0], + 3: [ { id: 9 } ], + _0: [ { id: 1 }, 0, 0 ], + _1: [ { id: 2 }, 0, 0 ], + _3: [ { id: 5 }, 0, 0 ], + _5: [ { id: 7 }, 0, 0 ], + _6: [ { id: 8 }, 0, 0 ], + _7: [ { id: 10 }, 0, 0 ], + _8: [ { id: 11 }, 0, 0 ], + _9: [ { id: 12 }, 0, 0 ], }, reverse: { _t: 'a', - 0: [{ id: 1 }], - 1: [{ id: 2 }], - 3: [{ id: 5 }], + 0: [ { id: 1 } ], + 1: [ { id: 2 } ], + 3: [ { id: 5 } ], 4: { inner: { - property: ['abcd', 'abc'], + property: [ 'abcd', 'abc' ], }, }, - 5: [{ id: 7 }], - 6: [{ id: 8 }], - 7: [{ id: 10 }], - 8: [{ id: 11 }], - 9: [{ id: 12 }], - _0: [{ id: 3 }, 0, 0], - _3: [{ id: 9 }, 0, 0], + 5: [ { id: 7 } ], + 6: [ { id: 8 } ], + 7: [ { id: 10 } ], + 8: [ { id: 11 } ], + 9: [ { id: 12 } ], + _0: [ { id: 3 }, 0, 0 ], + _3: [ { id: 9 }, 0, 0 ], }, }, { @@ -1148,19 +1155,19 @@ examples.arrays = [ _t: 'a', 3: { inner: { - property: ['abc', 'abcd'], + property: [ 'abc', 'abcd' ], }, }, - _5: ['', 2, 3], + _5: [ '', 2, 3 ], }, reverse: { _t: 'a', 2: { inner: { - property: ['abcd', 'abc'], + property: [ 'abcd', 'abc' ], }, }, - _2: ['', 5, 3], + _2: [ '', 5, 3 ], }, }, { @@ -1204,19 +1211,19 @@ examples.arrays = [ _t: 'a', 2: { inner: { - property: ['abc', 'abcd'], + property: [ 'abc', 'abcd' ], }, }, - _2: ['', 1, 3], + _2: [ '', 1, 3 ], }, reverse: { _t: 'a', 1: { inner: { - property: ['abcd', 'abc'], + property: [ 'abcd', 'abc' ], }, }, - _2: ['', 1, 3], + _2: [ '', 1, 3 ], }, exactReverse: false, }, @@ -1267,19 +1274,19 @@ examples.arrays = [ _t: 'a', 1: { inner: { - property: ['abc', 'abcd'], + property: [ 'abc', 'abcd' ], }, }, - _0: ['', 2, 3], + _0: [ '', 2, 3 ], }, reverse: { _t: 'a', 2: { inner: { - property: ['abcd', 'abc'], + property: [ 'abcd', 'abc' ], }, }, - _2: ['', 0, 3], + _2: [ '', 0, 3 ], }, }, { @@ -1331,24 +1338,24 @@ examples.arrays = [ delta: { _t: 'a', 2: { - width: [10, 12], - height: [3, 0, 0], + width: [ 10, 12 ], + height: [ 3, 0, 0 ], }, - _7: ['', 2, 3], + _7: [ '', 2, 3 ], }, reverse: { _t: 'a', 7: { - width: [12, 10], - height: [3], + width: [ 12, 10 ], + height: [ 3 ], }, - _2: ['', 7, 3], + _2: [ '', 7, 3 ], }, }, { name: 'using property filter', options: { - propertyFilter(name /*, context */) { + propertyFilter(name /* , context */) { return name.slice(0, 1) !== '$'; }, }, @@ -1368,12 +1375,12 @@ examples.arrays = [ }, delta: { inner: { - nonVolatile: [432, 431], + nonVolatile: [ 432, 431 ], }, }, reverse: { inner: { - nonVolatile: [431, 432], + nonVolatile: [ 431, 432 ], }, }, noPatch: true, diff --git a/test/index.js b/test/index.js index 0d5b6951..207bfd8c 100644 --- a/test/index.js +++ b/test/index.js @@ -1,7 +1,7 @@ -/* - * mocha's bdd syntax is inspired in RSpec - * please read: http://betterspecs.org/ - */ +import { + expect, +} from 'chai'; + import { DiffPatcher, clone, @@ -9,20 +9,14 @@ import { patch, reverse, unpatch, -} from '../'; +} from '../lib/index.js'; -import { - JSONPatchFormatter, - HtmlFormatter, -} from '../src/formatters'; +import JSONPatchFormatter from '../lib/formatters/jsonpatch.js'; +import HtmlFormatter from '../lib/formatters/html.js'; -import examples from './examples/diffpatch'; +import examples from './examples/diffpatch.js'; -import { - expect, -} from 'chai'; - -describe('jsondiffpatch', () => { +describe('diffpatch', () => { before(() => {}); it('has a diff method', () => { expect(diff).to.be.a('function'); @@ -129,6 +123,7 @@ describe('DiffPatcher', () => { if (example.exactReverse !== false) { expect(reverse).to.deep.equal(example.reverse); } else { + // reversed delta and the swapped-diff delta are // not always equal, to verify they're equivalent, // patch and compare the results @@ -210,8 +205,8 @@ describe('DiffPatcher', () => { left.oldProp.value = 1; right.newProp.value = 8; expect(delta).to.deep.equal({ - oldProp: [{ value: 3 }, 0, 0], - newProp: [{ value: 5 }], + oldProp: [ { value: 3 }, 0, 0 ], + newProp: [ { value: 5 } ], }); }); }); @@ -219,19 +214,19 @@ describe('DiffPatcher', () => { describe('static shortcuts', () => { it('diff', () => { const delta = diff(4, 5); - expect(delta).to.deep.equal([4, 5]); + expect(delta).to.deep.equal([ 4, 5 ]); }); it('patch', () => { - const right = patch(4, [4, 5]); + const right = patch(4, [ 4, 5 ]); expect(right).to.eql(5); }); it('unpatch', () => { - const left = unpatch(5, [4, 5]); + const left = unpatch(5, [ 4, 5 ]); expect(left).to.eql(4); }); it('reverse', () => { - const reverseDelta = reverse([4, 5]); - expect(reverseDelta).to.deep.equal([5, 4]); + const reverseDelta = reverse([ 4, 5 ]); + expect(reverseDelta).to.deep.equal([ 5, 4 ]); }); }); @@ -257,18 +252,21 @@ describe('DiffPatcher', () => { const NUMERIC_DIFFERENCE = -8; it('diff', function() { + // a constant to identify the custom delta type function numericDiffFilter(context) { if ( typeof context.left === 'number' && typeof context.right === 'number' ) { + // store number delta, eg. useful for distributed counters context - .setResult([0, context.right - context.left, NUMERIC_DIFFERENCE]) + .setResult([ 0, context.right - context.left, NUMERIC_DIFFERENCE ]) .exit(); } } + // a filterName is useful if I want to allow other filters to // be inserted before/after this one numericDiffFilter.filterName = 'numeric'; @@ -280,7 +278,7 @@ describe('DiffPatcher', () => { { population: 400 }, { population: 403 } ); - expect(delta).to.deep.equal({ population: [0, 3, NUMERIC_DIFFERENCE] }); + expect(delta).to.deep.equal({ population: [ 0, 3, NUMERIC_DIFFERENCE ] }); }); it('patch', function() { @@ -299,7 +297,7 @@ describe('DiffPatcher', () => { numericPatchFilter ); - const delta = { population: [0, 3, NUMERIC_DIFFERENCE] }; + const delta = { population: [ 0, 3, NUMERIC_DIFFERENCE ] }; const right = this.instance.patch({ population: 600 }, delta); expect(right).to.deep.equal({ population: 603 }); }); @@ -315,7 +313,7 @@ describe('DiffPatcher', () => { context.delta[2] === NUMERIC_DIFFERENCE ) { context - .setResult([0, -context.delta[1], NUMERIC_DIFFERENCE]) + .setResult([ 0, -context.delta[1], NUMERIC_DIFFERENCE ]) .exit(); } } @@ -325,10 +323,10 @@ describe('DiffPatcher', () => { numericReverseFilter ); - const delta = { population: [0, 3, NUMERIC_DIFFERENCE] }; + const delta = { population: [ 0, 3, NUMERIC_DIFFERENCE ] }; const reverseDelta = this.instance.reverse(delta); expect(reverseDelta).to.deep.equal({ - population: [0, -3, NUMERIC_DIFFERENCE], + population: [ 0, -3, NUMERIC_DIFFERENCE ], }); const right = { population: 703 }; this.instance.unpatch(right, delta); @@ -360,7 +358,7 @@ describe('DiffPatcher', () => { it('replaces specified filter', function() { function fooFilter(context) { - context.setResult(['foo']).exit(); + context.setResult([ 'foo' ]).exit(); } fooFilter.filterName = 'foo'; expect(this.instance.processor.pipes.diff.list()).to.deep.equal([ @@ -422,7 +420,7 @@ describe('DiffPatcher', () => { }); it('should format an add operation for array insertion', () => { - expectFormat([1, 2, 3], [1, 2, 3, 4], [addOp('/3', 4)]); + expectFormat([ 1, 2, 3 ], [ 1, 2, 3, 4 ], [ addOp('/3', 4) ]); }); it('should format an add operation for object insertion', () => { @@ -432,7 +430,7 @@ describe('DiffPatcher', () => { }); it('should format for deletion of array', () => { - expectFormat([1, 2, 3, 4], [1, 2, 3], [removeOp('/3')]); + expectFormat([ 1, 2, 3, 4 ], [ 1, 2, 3 ], [ removeOp('/3') ]); }); it('should format for deletion of object', () => { @@ -448,11 +446,11 @@ describe('DiffPatcher', () => { }); it('should put add/remove for array with primitive items', () => { - expectFormat([1, 2, 3], [1, 2, 4], [removeOp('/2'), addOp('/2', 4)]); + expectFormat([ 1, 2, 3 ], [ 1, 2, 4 ], [ removeOp('/2'), addOp('/2', 4) ]); }); it('should sort remove by desc order', () => { - expectFormat([1, 2, 3], [1], [removeOp('/2'), removeOp('/1')]); + expectFormat([ 1, 2, 3 ], [ 1 ], [ removeOp('/2'), removeOp('/1') ]); }); describe('patcher with comparator', () => { @@ -484,16 +482,16 @@ describe('DiffPatcher', () => { const after = [ { id: 'remaining_outer', - items: [anObjectWithId('remaining_inner')], + items: [ anObjectWithId('remaining_inner') ], }, ]; - const expectedDiff = [removeOp('/0'), removeOp('/0/items/0')]; + const expectedDiff = [ removeOp('/0'), removeOp('/0/items/0') ]; expectFormat(before, after, expectedDiff); }); }); it('should annotate as moved op', () => { - expectFormat([1, 2], [2, 1], [{ op: 'move', from: '/1', path: '/0' }]); + expectFormat([ 1, 2 ], [ 2, 1 ], [ { op: 'move', from: '/1', path: '/0' } ]); }); }); @@ -540,9 +538,9 @@ describe('DiffPatcher', () => { html.push('
  • '); }); return ( - `
    ` + - `
    ` + - `