@quantiya/codevibe-claude-plugin 2.0.27 → 2.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/plugin.json +1 -1
- package/node_modules/@quantiya/codevibe-core/dist/appsync/appsync-client.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/appsync/queries.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/index.js +407 -398
- package/node_modules/@quantiya/codevibe-core/dist/local-model/ollama.d.ts +3 -1
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/__tests__/planner-confirmation-routing.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/cli.js +830 -1122
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/context-compaction.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/index.d.ts +0 -15
- package/node_modules/@quantiya/codevibe-core/dist/planner/local-gemma.d.ts +35 -7
- package/node_modules/@quantiya/codevibe-core/package.json +1 -1
- package/node_modules/es-toolkit/CHANGELOG.md +3 -38
- package/node_modules/es-toolkit/dist/browser.global.js +4 -4
- package/node_modules/es-toolkit/dist/compat/array/differenceWith.js +1 -2
- package/node_modules/es-toolkit/dist/compat/array/differenceWith.mjs +1 -2
- package/node_modules/es-toolkit/dist/compat/array/findLastIndex.js +3 -5
- package/node_modules/es-toolkit/dist/compat/array/findLastIndex.mjs +3 -5
- package/node_modules/es-toolkit/dist/compat/array/sortedIndexBy.js +1 -1
- package/node_modules/es-toolkit/dist/compat/array/sortedIndexBy.mjs +1 -1
- package/node_modules/es-toolkit/dist/compat/array/without.js +2 -8
- package/node_modules/es-toolkit/dist/compat/array/without.mjs +2 -8
- package/node_modules/es-toolkit/dist/compat/array/xorWith.js +6 -4
- package/node_modules/es-toolkit/dist/compat/array/xorWith.mjs +6 -4
- package/node_modules/es-toolkit/dist/compat/compat.js +1 -1
- package/node_modules/es-toolkit/dist/compat/compat.mjs +1 -1
- package/node_modules/es-toolkit/dist/compat/function/debounce.js +1 -1
- package/node_modules/es-toolkit/dist/compat/function/debounce.mjs +1 -1
- package/node_modules/es-toolkit/dist/compat/index.js +1 -1
- package/node_modules/es-toolkit/dist/compat/index.mjs +1 -1
- package/node_modules/es-toolkit/dist/compat/object/has.js +2 -3
- package/node_modules/es-toolkit/dist/compat/object/has.mjs +2 -3
- package/node_modules/es-toolkit/dist/compat/object/hasIn.js +2 -3
- package/node_modules/es-toolkit/dist/compat/object/hasIn.mjs +2 -3
- package/node_modules/es-toolkit/dist/compat/object/mergeWith.js +1 -1
- package/node_modules/es-toolkit/dist/compat/object/mergeWith.mjs +1 -1
- package/node_modules/es-toolkit/dist/compat/object/omitBy.js +1 -1
- package/node_modules/es-toolkit/dist/compat/object/omitBy.mjs +1 -1
- package/node_modules/es-toolkit/dist/compat/object/pickBy.js +1 -1
- package/node_modules/es-toolkit/dist/compat/object/pickBy.mjs +1 -1
- package/node_modules/es-toolkit/dist/compat/util/toString.js +1 -3
- package/node_modules/es-toolkit/dist/compat/util/toString.mjs +1 -3
- package/node_modules/es-toolkit/dist/fp/index.d.mts +1 -2
- package/node_modules/es-toolkit/dist/fp/index.d.ts +1 -2
- package/node_modules/es-toolkit/dist/fp/index.js +0 -2
- package/node_modules/es-toolkit/dist/fp/index.mjs +1 -2
- package/node_modules/es-toolkit/dist/index.d.mts +1 -3
- package/node_modules/es-toolkit/dist/index.d.ts +1 -3
- package/node_modules/es-toolkit/dist/index.js +0 -4
- package/node_modules/es-toolkit/dist/index.mjs +1 -3
- package/node_modules/es-toolkit/dist/object/merge.d.mts +1 -3
- package/node_modules/es-toolkit/dist/object/merge.d.ts +1 -3
- package/node_modules/es-toolkit/dist/object/merge.js +40 -0
- package/node_modules/es-toolkit/dist/object/merge.mjs +40 -0
- package/node_modules/es-toolkit/dist/object/omitBy.d.mts +2 -4
- package/node_modules/es-toolkit/dist/object/omitBy.d.ts +2 -4
- package/node_modules/es-toolkit/dist/object/omitBy.js +3 -4
- package/node_modules/es-toolkit/dist/object/omitBy.mjs +3 -4
- package/node_modules/es-toolkit/dist/object/pickBy.d.mts +2 -4
- package/node_modules/es-toolkit/dist/object/pickBy.d.ts +2 -4
- package/node_modules/es-toolkit/dist/object/pickBy.js +3 -4
- package/node_modules/es-toolkit/dist/object/pickBy.mjs +3 -4
- package/node_modules/es-toolkit/dist/types/index.d.mts +2 -11
- package/node_modules/es-toolkit/dist/types/index.d.ts +2 -11
- package/node_modules/es-toolkit/dist/util/attempt.d.mts +1 -1
- package/node_modules/es-toolkit/dist/util/attempt.d.ts +1 -1
- package/node_modules/es-toolkit/dist/util/attemptAsync.d.mts +1 -1
- package/node_modules/es-toolkit/dist/util/attemptAsync.d.ts +1 -1
- package/node_modules/es-toolkit/dist/util/index.d.mts +1 -3
- package/node_modules/es-toolkit/dist/util/index.d.ts +1 -3
- package/node_modules/es-toolkit/dist/util/index.js +0 -4
- package/node_modules/es-toolkit/dist/util/index.mjs +1 -3
- package/node_modules/es-toolkit/package.json +1 -44
- package/node_modules/node-abi/abi_registry.json +0 -7
- package/node_modules/node-abi/package.json +1 -1
- package/node_modules/qs/.github/THREAT_MODEL.md +3 -3
- package/node_modules/qs/CHANGELOG.md +0 -15
- package/node_modules/qs/README.md +1 -19
- package/node_modules/qs/dist/qs.js +21 -21
- package/node_modules/qs/eslint.config.mjs +1 -1
- package/node_modules/qs/lib/parse.js +4 -3
- package/node_modules/qs/lib/stringify.js +8 -23
- package/node_modules/qs/lib/utils.js +3 -10
- package/node_modules/qs/package.json +4 -4
- package/node_modules/qs/test/parse.js +3 -192
- package/node_modules/qs/test/stringify.js +0 -317
- package/node_modules/qs/test/utils.js +0 -12
- package/node_modules/type-fest/index.d.ts +7 -6
- package/node_modules/type-fest/package.json +1 -1
- package/node_modules/type-fest/readme.md +5 -6
- package/node_modules/type-fest/source/delimiter-case.d.ts +1 -1
- package/node_modules/type-fest/source/get.d.ts +1 -1
- package/node_modules/type-fest/source/internal/object.d.ts +1 -30
- package/node_modules/type-fest/source/is-literal.d.ts +269 -43
- package/node_modules/type-fest/source/jsonify.d.ts +5 -1
- package/node_modules/type-fest/source/remove-prefix.d.ts +1 -1
- package/node_modules/type-fest/source/remove-suffix.d.ts +1 -1
- package/node_modules/type-fest/source/shared-union-fields-deep.d.ts +3 -4
- package/node_modules/type-fest/source/split.d.ts +1 -1
- package/node_modules/type-fest/source/string-repeat.d.ts +1 -1
- package/node_modules/type-fest/source/string-to-array.d.ts +1 -1
- package/node_modules/type-fest/source/tsconfig-json.d.ts +1 -1
- package/node_modules/type-fest/source/typed-array.d.ts +0 -1
- package/node_modules/type-fest/source/writable.d.ts +2 -2
- package/package.json +2 -2
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/direct-file-delete.d.ts +0 -22
- package/node_modules/es-toolkit/dist/fp/flowAsync.d.mts +0 -213
- package/node_modules/es-toolkit/dist/fp/flowAsync.d.ts +0 -213
- package/node_modules/es-toolkit/dist/fp/flowAsync.js +0 -37
- package/node_modules/es-toolkit/dist/fp/flowAsync.mjs +0 -37
- package/node_modules/es-toolkit/dist/fp/iterator/cartesianProduct.d.mts +0 -23
- package/node_modules/es-toolkit/dist/fp/iterator/cartesianProduct.d.ts +0 -23
- package/node_modules/es-toolkit/dist/fp/iterator/cartesianProduct.js +0 -28
- package/node_modules/es-toolkit/dist/fp/iterator/cartesianProduct.mjs +0 -28
- package/node_modules/es-toolkit/dist/fp/iterator/chunk.d.mts +0 -19
- package/node_modules/es-toolkit/dist/fp/iterator/chunk.d.ts +0 -19
- package/node_modules/es-toolkit/dist/fp/iterator/chunk.js +0 -24
- package/node_modules/es-toolkit/dist/fp/iterator/chunk.mjs +0 -24
- package/node_modules/es-toolkit/dist/fp/iterator/count.d.mts +0 -20
- package/node_modules/es-toolkit/dist/fp/iterator/count.d.ts +0 -20
- package/node_modules/es-toolkit/dist/fp/iterator/count.js +0 -25
- package/node_modules/es-toolkit/dist/fp/iterator/count.mjs +0 -25
- package/node_modules/es-toolkit/dist/fp/iterator/drop.d.mts +0 -20
- package/node_modules/es-toolkit/dist/fp/iterator/drop.d.ts +0 -20
- package/node_modules/es-toolkit/dist/fp/iterator/drop.js +0 -24
- package/node_modules/es-toolkit/dist/fp/iterator/drop.mjs +0 -24
- package/node_modules/es-toolkit/dist/fp/iterator/dropWhile.d.mts +0 -18
- package/node_modules/es-toolkit/dist/fp/iterator/dropWhile.d.ts +0 -18
- package/node_modules/es-toolkit/dist/fp/iterator/dropWhile.js +0 -23
- package/node_modules/es-toolkit/dist/fp/iterator/dropWhile.mjs +0 -23
- package/node_modules/es-toolkit/dist/fp/iterator/every.d.mts +0 -20
- package/node_modules/es-toolkit/dist/fp/iterator/every.d.ts +0 -20
- package/node_modules/es-toolkit/dist/fp/iterator/every.js +0 -24
- package/node_modules/es-toolkit/dist/fp/iterator/every.mjs +0 -24
- package/node_modules/es-toolkit/dist/fp/iterator/filter.d.mts +0 -37
- package/node_modules/es-toolkit/dist/fp/iterator/filter.d.ts +0 -37
- package/node_modules/es-toolkit/dist/fp/iterator/filter.js +0 -8
- package/node_modules/es-toolkit/dist/fp/iterator/filter.mjs +0 -8
- package/node_modules/es-toolkit/dist/fp/iterator/find.d.mts +0 -20
- package/node_modules/es-toolkit/dist/fp/iterator/find.d.ts +0 -20
- package/node_modules/es-toolkit/dist/fp/iterator/find.js +0 -24
- package/node_modules/es-toolkit/dist/fp/iterator/find.mjs +0 -24
- package/node_modules/es-toolkit/dist/fp/iterator/flatMap.d.mts +0 -20
- package/node_modules/es-toolkit/dist/fp/iterator/flatMap.d.ts +0 -20
- package/node_modules/es-toolkit/dist/fp/iterator/flatMap.js +0 -24
- package/node_modules/es-toolkit/dist/fp/iterator/flatMap.mjs +0 -24
- package/node_modules/es-toolkit/dist/fp/iterator/forEach.d.mts +0 -22
- package/node_modules/es-toolkit/dist/fp/iterator/forEach.d.ts +0 -22
- package/node_modules/es-toolkit/dist/fp/iterator/forEach.js +0 -26
- package/node_modules/es-toolkit/dist/fp/iterator/forEach.mjs +0 -26
- package/node_modules/es-toolkit/dist/fp/iterator/head.d.mts +0 -19
- package/node_modules/es-toolkit/dist/fp/iterator/head.d.ts +0 -19
- package/node_modules/es-toolkit/dist/fp/iterator/head.js +0 -24
- package/node_modules/es-toolkit/dist/fp/iterator/head.mjs +0 -24
- package/node_modules/es-toolkit/dist/fp/iterator/index.d.mts +0 -22
- package/node_modules/es-toolkit/dist/fp/iterator/index.d.ts +0 -22
- package/node_modules/es-toolkit/dist/fp/iterator/index.js +0 -43
- package/node_modules/es-toolkit/dist/fp/iterator/index.mjs +0 -22
- package/node_modules/es-toolkit/dist/fp/iterator/map.d.mts +0 -20
- package/node_modules/es-toolkit/dist/fp/iterator/map.d.ts +0 -20
- package/node_modules/es-toolkit/dist/fp/iterator/map.js +0 -24
- package/node_modules/es-toolkit/dist/fp/iterator/map.mjs +0 -24
- package/node_modules/es-toolkit/dist/fp/iterator/partition.d.mts +0 -22
- package/node_modules/es-toolkit/dist/fp/iterator/partition.d.ts +0 -22
- package/node_modules/es-toolkit/dist/fp/iterator/partition.js +0 -27
- package/node_modules/es-toolkit/dist/fp/iterator/partition.mjs +0 -27
- package/node_modules/es-toolkit/dist/fp/iterator/reduce.d.mts +0 -24
- package/node_modules/es-toolkit/dist/fp/iterator/reduce.d.ts +0 -24
- package/node_modules/es-toolkit/dist/fp/iterator/reduce.js +0 -28
- package/node_modules/es-toolkit/dist/fp/iterator/reduce.mjs +0 -28
- package/node_modules/es-toolkit/dist/fp/iterator/scan.d.mts +0 -21
- package/node_modules/es-toolkit/dist/fp/iterator/scan.d.ts +0 -21
- package/node_modules/es-toolkit/dist/fp/iterator/scan.js +0 -26
- package/node_modules/es-toolkit/dist/fp/iterator/scan.mjs +0 -26
- package/node_modules/es-toolkit/dist/fp/iterator/some.d.mts +0 -20
- package/node_modules/es-toolkit/dist/fp/iterator/some.d.ts +0 -20
- package/node_modules/es-toolkit/dist/fp/iterator/some.js +0 -24
- package/node_modules/es-toolkit/dist/fp/iterator/some.mjs +0 -24
- package/node_modules/es-toolkit/dist/fp/iterator/take.d.mts +0 -21
- package/node_modules/es-toolkit/dist/fp/iterator/take.d.ts +0 -21
- package/node_modules/es-toolkit/dist/fp/iterator/take.js +0 -25
- package/node_modules/es-toolkit/dist/fp/iterator/take.mjs +0 -25
- package/node_modules/es-toolkit/dist/fp/iterator/takeWhile.d.mts +0 -19
- package/node_modules/es-toolkit/dist/fp/iterator/takeWhile.d.ts +0 -19
- package/node_modules/es-toolkit/dist/fp/iterator/takeWhile.js +0 -24
- package/node_modules/es-toolkit/dist/fp/iterator/takeWhile.mjs +0 -24
- package/node_modules/es-toolkit/dist/fp/iterator/toArray.d.mts +0 -21
- package/node_modules/es-toolkit/dist/fp/iterator/toArray.d.ts +0 -21
- package/node_modules/es-toolkit/dist/fp/iterator/toArray.js +0 -25
- package/node_modules/es-toolkit/dist/fp/iterator/toArray.mjs +0 -25
- package/node_modules/es-toolkit/dist/fp/iterator/uniqBy.d.mts +0 -20
- package/node_modules/es-toolkit/dist/fp/iterator/uniqBy.d.ts +0 -20
- package/node_modules/es-toolkit/dist/fp/iterator/uniqBy.js +0 -25
- package/node_modules/es-toolkit/dist/fp/iterator/uniqBy.mjs +0 -25
- package/node_modules/es-toolkit/dist/fp/iterator/zip.d.mts +0 -20
- package/node_modules/es-toolkit/dist/fp/iterator/zip.d.ts +0 -20
- package/node_modules/es-toolkit/dist/fp/iterator/zip.js +0 -25
- package/node_modules/es-toolkit/dist/fp/iterator/zip.mjs +0 -25
- package/node_modules/es-toolkit/dist/iterator/_internal/iterator.js +0 -74
- package/node_modules/es-toolkit/dist/iterator/_internal/iterator.mjs +0 -74
- package/node_modules/es-toolkit/dist/iterator/cartesianProduct.d.mts +0 -33
- package/node_modules/es-toolkit/dist/iterator/cartesianProduct.d.ts +0 -33
- package/node_modules/es-toolkit/dist/iterator/cartesianProduct.js +0 -95
- package/node_modules/es-toolkit/dist/iterator/cartesianProduct.mjs +0 -95
- package/node_modules/es-toolkit/dist/iterator/chunk.d.mts +0 -21
- package/node_modules/es-toolkit/dist/iterator/chunk.d.ts +0 -21
- package/node_modules/es-toolkit/dist/iterator/chunk.js +0 -40
- package/node_modules/es-toolkit/dist/iterator/chunk.mjs +0 -40
- package/node_modules/es-toolkit/dist/iterator/count.d.mts +0 -18
- package/node_modules/es-toolkit/dist/iterator/count.d.ts +0 -18
- package/node_modules/es-toolkit/dist/iterator/count.js +0 -26
- package/node_modules/es-toolkit/dist/iterator/count.mjs +0 -26
- package/node_modules/es-toolkit/dist/iterator/dropWhile.d.mts +0 -20
- package/node_modules/es-toolkit/dist/iterator/dropWhile.d.ts +0 -20
- package/node_modules/es-toolkit/dist/iterator/dropWhile.js +0 -52
- package/node_modules/es-toolkit/dist/iterator/dropWhile.mjs +0 -52
- package/node_modules/es-toolkit/dist/iterator/head.d.mts +0 -21
- package/node_modules/es-toolkit/dist/iterator/head.d.ts +0 -21
- package/node_modules/es-toolkit/dist/iterator/head.js +0 -26
- package/node_modules/es-toolkit/dist/iterator/head.mjs +0 -26
- package/node_modules/es-toolkit/dist/iterator/index.d.mts +0 -13
- package/node_modules/es-toolkit/dist/iterator/index.d.ts +0 -13
- package/node_modules/es-toolkit/dist/iterator/index.js +0 -25
- package/node_modules/es-toolkit/dist/iterator/index.mjs +0 -13
- package/node_modules/es-toolkit/dist/iterator/iterate.d.mts +0 -20
- package/node_modules/es-toolkit/dist/iterator/iterate.d.ts +0 -20
- package/node_modules/es-toolkit/dist/iterator/iterate.js +0 -32
- package/node_modules/es-toolkit/dist/iterator/iterate.mjs +0 -32
- package/node_modules/es-toolkit/dist/iterator/partition.d.mts +0 -18
- package/node_modules/es-toolkit/dist/iterator/partition.d.ts +0 -18
- package/node_modules/es-toolkit/dist/iterator/partition.js +0 -36
- package/node_modules/es-toolkit/dist/iterator/partition.mjs +0 -36
- package/node_modules/es-toolkit/dist/iterator/range.d.mts +0 -42
- package/node_modules/es-toolkit/dist/iterator/range.d.ts +0 -42
- package/node_modules/es-toolkit/dist/iterator/range.js +0 -25
- package/node_modules/es-toolkit/dist/iterator/range.mjs +0 -25
- package/node_modules/es-toolkit/dist/iterator/scan.d.mts +0 -23
- package/node_modules/es-toolkit/dist/iterator/scan.d.ts +0 -23
- package/node_modules/es-toolkit/dist/iterator/scan.js +0 -47
- package/node_modules/es-toolkit/dist/iterator/scan.mjs +0 -47
- package/node_modules/es-toolkit/dist/iterator/takeWhile.d.mts +0 -20
- package/node_modules/es-toolkit/dist/iterator/takeWhile.d.ts +0 -20
- package/node_modules/es-toolkit/dist/iterator/takeWhile.js +0 -34
- package/node_modules/es-toolkit/dist/iterator/takeWhile.mjs +0 -34
- package/node_modules/es-toolkit/dist/iterator/uniqBy.d.mts +0 -22
- package/node_modules/es-toolkit/dist/iterator/uniqBy.d.ts +0 -22
- package/node_modules/es-toolkit/dist/iterator/uniqBy.js +0 -43
- package/node_modules/es-toolkit/dist/iterator/uniqBy.mjs +0 -43
- package/node_modules/es-toolkit/dist/iterator/zip.d.mts +0 -23
- package/node_modules/es-toolkit/dist/iterator/zip.d.ts +0 -23
- package/node_modules/es-toolkit/dist/iterator/zip.js +0 -45
- package/node_modules/es-toolkit/dist/iterator/zip.mjs +0 -45
- package/node_modules/es-toolkit/dist/types/EmptyObject.d.mts +0 -21
- package/node_modules/es-toolkit/dist/types/EmptyObject.d.ts +0 -21
- package/node_modules/es-toolkit/dist/types/IsEqual.d.mts +0 -18
- package/node_modules/es-toolkit/dist/types/IsEqual.d.ts +0 -18
- package/node_modules/es-toolkit/dist/types/JSONValue.d.mts +0 -24
- package/node_modules/es-toolkit/dist/types/JSONValue.d.ts +0 -24
- package/node_modules/es-toolkit/dist/types/Merge.d.mts +0 -37
- package/node_modules/es-toolkit/dist/types/Merge.d.ts +0 -37
- package/node_modules/es-toolkit/dist/types/ObjectKeys.d.mts +0 -19
- package/node_modules/es-toolkit/dist/types/ObjectKeys.d.ts +0 -19
- package/node_modules/es-toolkit/dist/types/Primitive.d.mts +0 -14
- package/node_modules/es-toolkit/dist/types/Primitive.d.ts +0 -14
- package/node_modules/es-toolkit/dist/types/SetOptional.d.mts +0 -20
- package/node_modules/es-toolkit/dist/types/SetOptional.d.ts +0 -20
- package/node_modules/es-toolkit/dist/types/SetRequired.d.mts +0 -20
- package/node_modules/es-toolkit/dist/types/SetRequired.d.ts +0 -20
- package/node_modules/es-toolkit/dist/types/UnknownRecord.d.mts +0 -24
- package/node_modules/es-toolkit/dist/types/UnknownRecord.d.ts +0 -24
- package/node_modules/es-toolkit/dist/util/defer.d.mts +0 -27
- package/node_modules/es-toolkit/dist/util/defer.d.ts +0 -27
- package/node_modules/es-toolkit/dist/util/defer.js +0 -31
- package/node_modules/es-toolkit/dist/util/defer.mjs +0 -31
- package/node_modules/es-toolkit/dist/util/deferAsync.d.mts +0 -30
- package/node_modules/es-toolkit/dist/util/deferAsync.d.ts +0 -30
- package/node_modules/es-toolkit/dist/util/deferAsync.js +0 -34
- package/node_modules/es-toolkit/dist/util/deferAsync.mjs +0 -34
- package/node_modules/es-toolkit/fp/iterator.d.ts +0 -1
- package/node_modules/es-toolkit/fp/iterator.js +0 -1
- package/node_modules/es-toolkit/iterator.d.ts +0 -1
- package/node_modules/es-toolkit/iterator.js +0 -1
- package/node_modules/fs-ext/build/Makefile +0 -347
- package/node_modules/fs-ext/build/Release/.deps/Release/fs_ext.node.d +0 -1
- package/node_modules/fs-ext/build/Release/.deps/Release/obj.target/fs_ext/fs-ext.o.d +0 -165
- package/node_modules/fs-ext/build/Release/fs_ext.node +0 -0
- package/node_modules/fs-ext/build/Release/obj.target/fs_ext/fs-ext.o +0 -0
- package/node_modules/fs-ext/build/binding.Makefile +0 -6
- package/node_modules/fs-ext/build/config.gypi +0 -503
- package/node_modules/fs-ext/build/fs_ext.target.mk +0 -183
- package/node_modules/fs-ext/build/gyp-mac-tool +0 -768
- package/node_modules/keytar/build/Release/keytar.node +0 -0
- package/node_modules/type-fest/source/is-boolean-literal.d.ts +0 -39
- package/node_modules/type-fest/source/is-numeric-literal.d.ts +0 -50
- package/node_modules/type-fest/source/is-string-literal.d.ts +0 -72
- package/node_modules/type-fest/source/is-symbol-literal.d.ts +0 -39
- package/node_modules/type-fest/source/rename-keys.d.ts +0 -163
- /package/node_modules/@quantiya/codevibe-core/dist/{orchestration-shell/__tests__/direct-file-delete.test.d.ts → appsync/__tests__/supervision-subscription.test.d.ts} +0 -0
- /package/node_modules/{keytar/node_modules/node-addon-api → node-addon-api}/LICENSE.md +0 -0
- /package/node_modules/{keytar/node_modules/node-addon-api → node-addon-api}/README.md +0 -0
- /package/node_modules/{keytar/node_modules/node-addon-api → node-addon-api}/common.gypi +0 -0
- /package/node_modules/{keytar/node_modules/node-addon-api → node-addon-api}/except.gypi +0 -0
- /package/node_modules/{keytar/node_modules/node-addon-api → node-addon-api}/index.js +0 -0
- /package/node_modules/{keytar/node_modules/node-addon-api → node-addon-api}/napi-inl.deprecated.h +0 -0
- /package/node_modules/{keytar/node_modules/node-addon-api → node-addon-api}/napi-inl.h +0 -0
- /package/node_modules/{keytar/node_modules/node-addon-api → node-addon-api}/napi.h +0 -0
- /package/node_modules/{keytar/node_modules/node-addon-api → node-addon-api}/node_api.gyp +0 -0
- /package/node_modules/{keytar/node_modules/node-addon-api → node-addon-api}/noexcept.gypi +0 -0
- /package/node_modules/{keytar/node_modules/node-addon-api → node-addon-api}/nothing.c +0 -0
- /package/node_modules/{keytar/node_modules/node-addon-api → node-addon-api}/package-support.json +0 -0
- /package/node_modules/{keytar/node_modules/node-addon-api → node-addon-api}/package.json +0 -0
- /package/node_modules/{keytar/node_modules/node-addon-api → node-addon-api}/tools/README.md +0 -0
- /package/node_modules/{keytar/node_modules/node-addon-api → node-addon-api}/tools/check-napi.js +0 -0
- /package/node_modules/{keytar/node_modules/node-addon-api → node-addon-api}/tools/clang-format.js +0 -0
- /package/node_modules/{keytar/node_modules/node-addon-api → node-addon-api}/tools/conversion.js +0 -0
- /package/node_modules/{keytar/node_modules/node-addon-api → node-addon-api}/tools/eslint-format.js +0 -0
|
@@ -2,6 +2,46 @@ const require_isPlainObject = require("../predicate/isPlainObject.js");
|
|
|
2
2
|
const require_isMergeableValue = require("../_internal/isMergeableValue.js");
|
|
3
3
|
const require_isUnsafeProperty = require("../_internal/isUnsafeProperty.js");
|
|
4
4
|
//#region src/object/merge.ts
|
|
5
|
+
/**
|
|
6
|
+
* Merges the properties of the source object into the target object.
|
|
7
|
+
*
|
|
8
|
+
* This function performs a deep merge, meaning nested objects and arrays are merged recursively.
|
|
9
|
+
* If a property in the source object is an array or an object and the corresponding property in the target object is also an array or object, they will be merged.
|
|
10
|
+
* If a property in the source object is undefined, it will not overwrite a defined property in the target object.
|
|
11
|
+
*
|
|
12
|
+
* Note that this function mutates the target object.
|
|
13
|
+
*
|
|
14
|
+
* @param target - The target object into which the source object properties will be merged. This object is modified in place.
|
|
15
|
+
* @param source - The source object whose properties will be merged into the target object.
|
|
16
|
+
* @returns The updated target object with properties from the source object merged in.
|
|
17
|
+
*
|
|
18
|
+
* @template T - Type of the target object.
|
|
19
|
+
* @template S - Type of the source object.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* const target = { a: 1, b: { x: 1, y: 2 } };
|
|
23
|
+
* const source = { b: { y: 3, z: 4 }, c: 5 };
|
|
24
|
+
*
|
|
25
|
+
* const result = merge(target, source);
|
|
26
|
+
* console.log(result);
|
|
27
|
+
* // Output: { a: 1, b: { x: 1, y: 3, z: 4 }, c: 5 }
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* const target = { a: [1, 2], b: { x: 1 } };
|
|
31
|
+
* const source = { a: [3], b: { y: 2 } };
|
|
32
|
+
*
|
|
33
|
+
* const result = merge(target, source);
|
|
34
|
+
* console.log(result);
|
|
35
|
+
* // Output: { a: [3, 2], b: { x: 1, y: 2 } }
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* const target = { a: null };
|
|
39
|
+
* const source = { a: [1, 2, 3] };
|
|
40
|
+
*
|
|
41
|
+
* const result = merge(target, source);
|
|
42
|
+
* console.log(result);
|
|
43
|
+
* // Output: { a: [1, 2, 3] }
|
|
44
|
+
*/
|
|
5
45
|
function merge(target, source) {
|
|
6
46
|
const sourceKeys = Object.keys(source);
|
|
7
47
|
for (let i = 0; i < sourceKeys.length; i++) {
|
|
@@ -2,6 +2,46 @@ import { isPlainObject } from "../predicate/isPlainObject.mjs";
|
|
|
2
2
|
import { isMergeableValue } from "../_internal/isMergeableValue.mjs";
|
|
3
3
|
import { isUnsafeProperty } from "../_internal/isUnsafeProperty.mjs";
|
|
4
4
|
//#region src/object/merge.ts
|
|
5
|
+
/**
|
|
6
|
+
* Merges the properties of the source object into the target object.
|
|
7
|
+
*
|
|
8
|
+
* This function performs a deep merge, meaning nested objects and arrays are merged recursively.
|
|
9
|
+
* If a property in the source object is an array or an object and the corresponding property in the target object is also an array or object, they will be merged.
|
|
10
|
+
* If a property in the source object is undefined, it will not overwrite a defined property in the target object.
|
|
11
|
+
*
|
|
12
|
+
* Note that this function mutates the target object.
|
|
13
|
+
*
|
|
14
|
+
* @param target - The target object into which the source object properties will be merged. This object is modified in place.
|
|
15
|
+
* @param source - The source object whose properties will be merged into the target object.
|
|
16
|
+
* @returns The updated target object with properties from the source object merged in.
|
|
17
|
+
*
|
|
18
|
+
* @template T - Type of the target object.
|
|
19
|
+
* @template S - Type of the source object.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* const target = { a: 1, b: { x: 1, y: 2 } };
|
|
23
|
+
* const source = { b: { y: 3, z: 4 }, c: 5 };
|
|
24
|
+
*
|
|
25
|
+
* const result = merge(target, source);
|
|
26
|
+
* console.log(result);
|
|
27
|
+
* // Output: { a: 1, b: { x: 1, y: 3, z: 4 }, c: 5 }
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* const target = { a: [1, 2], b: { x: 1 } };
|
|
31
|
+
* const source = { a: [3], b: { y: 2 } };
|
|
32
|
+
*
|
|
33
|
+
* const result = merge(target, source);
|
|
34
|
+
* console.log(result);
|
|
35
|
+
* // Output: { a: [3, 2], b: { x: 1, y: 2 } }
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* const target = { a: null };
|
|
39
|
+
* const source = { a: [1, 2, 3] };
|
|
40
|
+
*
|
|
41
|
+
* const result = merge(target, source);
|
|
42
|
+
* console.log(result);
|
|
43
|
+
* // Output: { a: [1, 2, 3] }
|
|
44
|
+
*/
|
|
5
45
|
function merge(target, source) {
|
|
6
46
|
const sourceKeys = Object.keys(source);
|
|
7
47
|
for (let i = 0; i < sourceKeys.length; i++) {
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { ObjectKeys } from "../types/ObjectKeys.mjs";
|
|
2
|
-
|
|
3
1
|
//#region src/object/omitBy.d.ts
|
|
4
2
|
/**
|
|
5
3
|
* Creates a new object composed of the properties that do not satisfy the predicate function.
|
|
@@ -11,7 +9,7 @@ import { ObjectKeys } from "../types/ObjectKeys.mjs";
|
|
|
11
9
|
* @param obj - The object to omit properties from.
|
|
12
10
|
* @param shouldOmit - A predicate function that determines
|
|
13
11
|
* whether a property should be omitted. It takes the property's key and value as arguments and returns `true`
|
|
14
|
-
* if the property should be omitted, and `false` otherwise.
|
|
12
|
+
* if the property should be omitted, and `false` otherwise.
|
|
15
13
|
* @returns A new object with the properties that do not satisfy the predicate function.
|
|
16
14
|
*
|
|
17
15
|
* @example
|
|
@@ -20,6 +18,6 @@ import { ObjectKeys } from "../types/ObjectKeys.mjs";
|
|
|
20
18
|
* const result = omitBy(obj, shouldOmit);
|
|
21
19
|
* // result will be { a: 1, c: 3 }
|
|
22
20
|
*/
|
|
23
|
-
declare function omitBy<T extends Record<string, any>>(obj: T, shouldOmit: (value: T[keyof T], key:
|
|
21
|
+
declare function omitBy<T extends Record<string, any>>(obj: T, shouldOmit: (value: T[keyof T], key: keyof T) => boolean): Partial<T>;
|
|
24
22
|
//#endregion
|
|
25
23
|
export { omitBy };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { ObjectKeys } from "../types/ObjectKeys.js";
|
|
2
|
-
|
|
3
1
|
//#region src/object/omitBy.d.ts
|
|
4
2
|
/**
|
|
5
3
|
* Creates a new object composed of the properties that do not satisfy the predicate function.
|
|
@@ -11,7 +9,7 @@ import { ObjectKeys } from "../types/ObjectKeys.js";
|
|
|
11
9
|
* @param obj - The object to omit properties from.
|
|
12
10
|
* @param shouldOmit - A predicate function that determines
|
|
13
11
|
* whether a property should be omitted. It takes the property's key and value as arguments and returns `true`
|
|
14
|
-
* if the property should be omitted, and `false` otherwise.
|
|
12
|
+
* if the property should be omitted, and `false` otherwise.
|
|
15
13
|
* @returns A new object with the properties that do not satisfy the predicate function.
|
|
16
14
|
*
|
|
17
15
|
* @example
|
|
@@ -20,6 +18,6 @@ import { ObjectKeys } from "../types/ObjectKeys.js";
|
|
|
20
18
|
* const result = omitBy(obj, shouldOmit);
|
|
21
19
|
* // result will be { a: 1, c: 3 }
|
|
22
20
|
*/
|
|
23
|
-
declare function omitBy<T extends Record<string, any>>(obj: T, shouldOmit: (value: T[keyof T], key:
|
|
21
|
+
declare function omitBy<T extends Record<string, any>>(obj: T, shouldOmit: (value: T[keyof T], key: keyof T) => boolean): Partial<T>;
|
|
24
22
|
//#endregion
|
|
25
23
|
export { omitBy };
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* @param obj - The object to omit properties from.
|
|
10
10
|
* @param shouldOmit - A predicate function that determines
|
|
11
11
|
* whether a property should be omitted. It takes the property's key and value as arguments and returns `true`
|
|
12
|
-
* if the property should be omitted, and `false` otherwise.
|
|
12
|
+
* if the property should be omitted, and `false` otherwise.
|
|
13
13
|
* @returns A new object with the properties that do not satisfy the predicate function.
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
@@ -23,9 +23,8 @@ function omitBy(obj, shouldOmit) {
|
|
|
23
23
|
const keys = Object.keys(obj);
|
|
24
24
|
for (let i = 0; i < keys.length; i++) {
|
|
25
25
|
const key = keys[i];
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
if (!shouldOmit(value, key)) result[objectKey] = value;
|
|
26
|
+
const value = obj[key];
|
|
27
|
+
if (!shouldOmit(value, key)) result[key] = value;
|
|
29
28
|
}
|
|
30
29
|
return result;
|
|
31
30
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* @param obj - The object to omit properties from.
|
|
10
10
|
* @param shouldOmit - A predicate function that determines
|
|
11
11
|
* whether a property should be omitted. It takes the property's key and value as arguments and returns `true`
|
|
12
|
-
* if the property should be omitted, and `false` otherwise.
|
|
12
|
+
* if the property should be omitted, and `false` otherwise.
|
|
13
13
|
* @returns A new object with the properties that do not satisfy the predicate function.
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
@@ -23,9 +23,8 @@ function omitBy(obj, shouldOmit) {
|
|
|
23
23
|
const keys = Object.keys(obj);
|
|
24
24
|
for (let i = 0; i < keys.length; i++) {
|
|
25
25
|
const key = keys[i];
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
if (!shouldOmit(value, key)) result[objectKey] = value;
|
|
26
|
+
const value = obj[key];
|
|
27
|
+
if (!shouldOmit(value, key)) result[key] = value;
|
|
29
28
|
}
|
|
30
29
|
return result;
|
|
31
30
|
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { ObjectKeys } from "../types/ObjectKeys.mjs";
|
|
2
|
-
|
|
3
1
|
//#region src/object/pickBy.d.ts
|
|
4
2
|
/**
|
|
5
3
|
* Creates a new object composed of the properties that satisfy the predicate function.
|
|
@@ -11,7 +9,7 @@ import { ObjectKeys } from "../types/ObjectKeys.mjs";
|
|
|
11
9
|
* @param obj - The object to pick properties from.
|
|
12
10
|
* @param shouldPick - A predicate function that determines
|
|
13
11
|
* whether a property should be picked. It takes the property's key and value as arguments and returns `true`
|
|
14
|
-
* if the property should be picked, and `false` otherwise.
|
|
12
|
+
* if the property should be picked, and `false` otherwise.
|
|
15
13
|
* @returns A new object with the properties that satisfy the predicate function.
|
|
16
14
|
*
|
|
17
15
|
* @example
|
|
@@ -20,6 +18,6 @@ import { ObjectKeys } from "../types/ObjectKeys.mjs";
|
|
|
20
18
|
* const result = pickBy(obj, shouldPick);
|
|
21
19
|
* // result will be { b: 'pick' }
|
|
22
20
|
*/
|
|
23
|
-
declare function pickBy<T extends Record<string, any>>(obj: T, shouldPick: (value: T[keyof T], key:
|
|
21
|
+
declare function pickBy<T extends Record<string, any>>(obj: T, shouldPick: (value: T[keyof T], key: keyof T) => boolean): Partial<T>;
|
|
24
22
|
//#endregion
|
|
25
23
|
export { pickBy };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { ObjectKeys } from "../types/ObjectKeys.js";
|
|
2
|
-
|
|
3
1
|
//#region src/object/pickBy.d.ts
|
|
4
2
|
/**
|
|
5
3
|
* Creates a new object composed of the properties that satisfy the predicate function.
|
|
@@ -11,7 +9,7 @@ import { ObjectKeys } from "../types/ObjectKeys.js";
|
|
|
11
9
|
* @param obj - The object to pick properties from.
|
|
12
10
|
* @param shouldPick - A predicate function that determines
|
|
13
11
|
* whether a property should be picked. It takes the property's key and value as arguments and returns `true`
|
|
14
|
-
* if the property should be picked, and `false` otherwise.
|
|
12
|
+
* if the property should be picked, and `false` otherwise.
|
|
15
13
|
* @returns A new object with the properties that satisfy the predicate function.
|
|
16
14
|
*
|
|
17
15
|
* @example
|
|
@@ -20,6 +18,6 @@ import { ObjectKeys } from "../types/ObjectKeys.js";
|
|
|
20
18
|
* const result = pickBy(obj, shouldPick);
|
|
21
19
|
* // result will be { b: 'pick' }
|
|
22
20
|
*/
|
|
23
|
-
declare function pickBy<T extends Record<string, any>>(obj: T, shouldPick: (value: T[keyof T], key:
|
|
21
|
+
declare function pickBy<T extends Record<string, any>>(obj: T, shouldPick: (value: T[keyof T], key: keyof T) => boolean): Partial<T>;
|
|
24
22
|
//#endregion
|
|
25
23
|
export { pickBy };
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* @param obj - The object to pick properties from.
|
|
10
10
|
* @param shouldPick - A predicate function that determines
|
|
11
11
|
* whether a property should be picked. It takes the property's key and value as arguments and returns `true`
|
|
12
|
-
* if the property should be picked, and `false` otherwise.
|
|
12
|
+
* if the property should be picked, and `false` otherwise.
|
|
13
13
|
* @returns A new object with the properties that satisfy the predicate function.
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
@@ -23,9 +23,8 @@ function pickBy(obj, shouldPick) {
|
|
|
23
23
|
const keys = Object.keys(obj);
|
|
24
24
|
for (let i = 0; i < keys.length; i++) {
|
|
25
25
|
const key = keys[i];
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
if (shouldPick(value, key)) result[objectKey] = value;
|
|
26
|
+
const value = obj[key];
|
|
27
|
+
if (shouldPick(value, key)) result[key] = value;
|
|
29
28
|
}
|
|
30
29
|
return result;
|
|
31
30
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* @param obj - The object to pick properties from.
|
|
10
10
|
* @param shouldPick - A predicate function that determines
|
|
11
11
|
* whether a property should be picked. It takes the property's key and value as arguments and returns `true`
|
|
12
|
-
* if the property should be picked, and `false` otherwise.
|
|
12
|
+
* if the property should be picked, and `false` otherwise.
|
|
13
13
|
* @returns A new object with the properties that satisfy the predicate function.
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
@@ -23,9 +23,8 @@ function pickBy(obj, shouldPick) {
|
|
|
23
23
|
const keys = Object.keys(obj);
|
|
24
24
|
for (let i = 0; i < keys.length; i++) {
|
|
25
25
|
const key = keys[i];
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
if (shouldPick(value, key)) result[objectKey] = value;
|
|
26
|
+
const value = obj[key];
|
|
27
|
+
if (shouldPick(value, key)) result[key] = value;
|
|
29
28
|
}
|
|
30
29
|
return result;
|
|
31
30
|
}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { Simplify } from "./Simplify.mjs";
|
|
2
|
-
import { Merge } from "./Merge.mjs";
|
|
3
|
-
import { ObjectKeys } from "./ObjectKeys.mjs";
|
|
4
1
|
import { ToCamelCaseKeys } from "./ToCamelCaseKeys.mjs";
|
|
5
2
|
import { ToConstantCaseKeys } from "./ToConstantCaseKeys.mjs";
|
|
6
3
|
import { ToKebabCaseKeys } from "./ToKebabCaseKeys.mjs";
|
|
@@ -8,14 +5,8 @@ import { ToPascalCaseKeys } from "./ToPascalCaseKeys.mjs";
|
|
|
8
5
|
import { ToSnakeCaseKeys } from "./ToSnakeCaseKeys.mjs";
|
|
9
6
|
import { DeepPartial } from "./DeepPartial.mjs";
|
|
10
7
|
import { DeepReadonly } from "./DeepReadonly.mjs";
|
|
11
|
-
import { EmptyObject } from "./EmptyObject.mjs";
|
|
12
|
-
import { IsEqual } from "./IsEqual.mjs";
|
|
13
|
-
import { JSONValue } from "./JSONValue.mjs";
|
|
14
8
|
import { NonEmptyArray } from "./NonEmptyArray.mjs";
|
|
15
|
-
import {
|
|
16
|
-
import { SetOptional } from "./SetOptional.mjs";
|
|
17
|
-
import { SetRequired } from "./SetRequired.mjs";
|
|
18
|
-
import { UnknownRecord } from "./UnknownRecord.mjs";
|
|
9
|
+
import { Simplify } from "./Simplify.mjs";
|
|
19
10
|
import { ValueOf } from "./ValueOf.mjs";
|
|
20
11
|
import { Writable } from "./Writable.mjs";
|
|
21
|
-
export { type DeepPartial, type DeepReadonly, type
|
|
12
|
+
export { type DeepPartial, type DeepReadonly, type NonEmptyArray, type Simplify, type ToCamelCaseKeys, type ToConstantCaseKeys, type ToKebabCaseKeys, type ToPascalCaseKeys, type ToSnakeCaseKeys, type ValueOf, type Writable };
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { Simplify } from "./Simplify.js";
|
|
2
|
-
import { Merge } from "./Merge.js";
|
|
3
|
-
import { ObjectKeys } from "./ObjectKeys.js";
|
|
4
1
|
import { ToCamelCaseKeys } from "./ToCamelCaseKeys.js";
|
|
5
2
|
import { ToConstantCaseKeys } from "./ToConstantCaseKeys.js";
|
|
6
3
|
import { ToKebabCaseKeys } from "./ToKebabCaseKeys.js";
|
|
@@ -8,14 +5,8 @@ import { ToPascalCaseKeys } from "./ToPascalCaseKeys.js";
|
|
|
8
5
|
import { ToSnakeCaseKeys } from "./ToSnakeCaseKeys.js";
|
|
9
6
|
import { DeepPartial } from "./DeepPartial.js";
|
|
10
7
|
import { DeepReadonly } from "./DeepReadonly.js";
|
|
11
|
-
import { EmptyObject } from "./EmptyObject.js";
|
|
12
|
-
import { IsEqual } from "./IsEqual.js";
|
|
13
|
-
import { JSONValue } from "./JSONValue.js";
|
|
14
8
|
import { NonEmptyArray } from "./NonEmptyArray.js";
|
|
15
|
-
import {
|
|
16
|
-
import { SetOptional } from "./SetOptional.js";
|
|
17
|
-
import { SetRequired } from "./SetRequired.js";
|
|
18
|
-
import { UnknownRecord } from "./UnknownRecord.js";
|
|
9
|
+
import { Simplify } from "./Simplify.js";
|
|
19
10
|
import { ValueOf } from "./ValueOf.js";
|
|
20
11
|
import { Writable } from "./Writable.js";
|
|
21
|
-
export { type DeepPartial, type DeepReadonly, type
|
|
12
|
+
export { type DeepPartial, type DeepReadonly, type NonEmptyArray, type Simplify, type ToCamelCaseKeys, type ToConstantCaseKeys, type ToKebabCaseKeys, type ToPascalCaseKeys, type ToSnakeCaseKeys, type ValueOf, type Writable };
|
|
@@ -31,6 +31,6 @@
|
|
|
31
31
|
* });
|
|
32
32
|
* // users is typed as User[]
|
|
33
33
|
*/
|
|
34
|
-
declare function attemptAsync<T, E
|
|
34
|
+
declare function attemptAsync<T, E>(func: () => Promise<T>): Promise<[null, T] | [E, null]>;
|
|
35
35
|
//#endregion
|
|
36
36
|
export { attemptAsync };
|
|
@@ -31,6 +31,6 @@
|
|
|
31
31
|
* });
|
|
32
32
|
* // users is typed as User[]
|
|
33
33
|
*/
|
|
34
|
-
declare function attemptAsync<T, E
|
|
34
|
+
declare function attemptAsync<T, E>(func: () => Promise<T>): Promise<[null, T] | [E, null]>;
|
|
35
35
|
//#endregion
|
|
36
36
|
export { attemptAsync };
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { attempt } from "./attempt.mjs";
|
|
2
2
|
import { attemptAsync } from "./attemptAsync.mjs";
|
|
3
|
-
import { defer } from "./defer.mjs";
|
|
4
|
-
import { deferAsync } from "./deferAsync.mjs";
|
|
5
3
|
import { invariant } from "./invariant.mjs";
|
|
6
|
-
export { invariant as assert, attempt, attemptAsync,
|
|
4
|
+
export { invariant as assert, attempt, attemptAsync, invariant };
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { attempt } from "./attempt.js";
|
|
2
2
|
import { attemptAsync } from "./attemptAsync.js";
|
|
3
|
-
import { defer } from "./defer.js";
|
|
4
|
-
import { deferAsync } from "./deferAsync.js";
|
|
5
3
|
import { invariant } from "./invariant.js";
|
|
6
|
-
export { invariant as assert, attempt, attemptAsync,
|
|
4
|
+
export { invariant as assert, attempt, attemptAsync, invariant };
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_attempt = require("./attempt.js");
|
|
3
3
|
const require_attemptAsync = require("./attemptAsync.js");
|
|
4
|
-
const require_defer = require("./defer.js");
|
|
5
|
-
const require_deferAsync = require("./deferAsync.js");
|
|
6
4
|
const require_invariant = require("./invariant.js");
|
|
7
5
|
exports.assert = require_invariant.invariant;
|
|
8
6
|
exports.attempt = require_attempt.attempt;
|
|
9
7
|
exports.attemptAsync = require_attemptAsync.attemptAsync;
|
|
10
|
-
exports.defer = require_defer.defer;
|
|
11
|
-
exports.deferAsync = require_deferAsync.deferAsync;
|
|
12
8
|
exports.invariant = require_invariant.invariant;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { attempt } from "./attempt.mjs";
|
|
2
2
|
import { attemptAsync } from "./attemptAsync.mjs";
|
|
3
|
-
import { defer } from "./defer.mjs";
|
|
4
|
-
import { deferAsync } from "./deferAsync.mjs";
|
|
5
3
|
import { invariant } from "./invariant.mjs";
|
|
6
|
-
export { invariant as assert, attempt, attemptAsync,
|
|
4
|
+
export { invariant as assert, attempt, attemptAsync, invariant };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "es-toolkit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.51.0",
|
|
4
4
|
"description": "A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.",
|
|
5
5
|
"homepage": "https://es-toolkit.dev",
|
|
6
6
|
"bugs": "https://github.com/toss/es-toolkit/issues",
|
|
@@ -94,16 +94,6 @@
|
|
|
94
94
|
"default": "./dist/fp/index.js"
|
|
95
95
|
}
|
|
96
96
|
},
|
|
97
|
-
"./fp/iterator": {
|
|
98
|
-
"import": {
|
|
99
|
-
"types": "./dist/fp/iterator/index.d.mts",
|
|
100
|
-
"default": "./dist/fp/iterator/index.mjs"
|
|
101
|
-
},
|
|
102
|
-
"require": {
|
|
103
|
-
"types": "./dist/fp/iterator/index.d.ts",
|
|
104
|
-
"default": "./dist/fp/iterator/index.js"
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
97
|
"./function": {
|
|
108
98
|
"import": {
|
|
109
99
|
"types": "./dist/function/index.d.mts",
|
|
@@ -114,16 +104,6 @@
|
|
|
114
104
|
"default": "./dist/function/index.js"
|
|
115
105
|
}
|
|
116
106
|
},
|
|
117
|
-
"./iterator": {
|
|
118
|
-
"import": {
|
|
119
|
-
"types": "./dist/iterator/index.d.mts",
|
|
120
|
-
"default": "./dist/iterator/index.mjs"
|
|
121
|
-
},
|
|
122
|
-
"require": {
|
|
123
|
-
"types": "./dist/iterator/index.d.ts",
|
|
124
|
-
"default": "./dist/iterator/index.js"
|
|
125
|
-
}
|
|
126
|
-
},
|
|
127
107
|
"./map": {
|
|
128
108
|
"import": {
|
|
129
109
|
"types": "./dist/map/index.d.mts",
|
|
@@ -224,10 +204,7 @@
|
|
|
224
204
|
"compat.js",
|
|
225
205
|
"error.js",
|
|
226
206
|
"fp.js",
|
|
227
|
-
"fp/iterator.js",
|
|
228
|
-
"fp/iterator.d.ts",
|
|
229
207
|
"function.js",
|
|
230
|
-
"iterator.js",
|
|
231
208
|
"map.js",
|
|
232
209
|
"math.js",
|
|
233
210
|
"object.js",
|
|
@@ -381,16 +358,6 @@
|
|
|
381
358
|
"default": "./dist/fp/index.js"
|
|
382
359
|
}
|
|
383
360
|
},
|
|
384
|
-
"./fp/iterator": {
|
|
385
|
-
"import": {
|
|
386
|
-
"types": "./dist/fp/iterator/index.d.mts",
|
|
387
|
-
"default": "./dist/fp/iterator/index.mjs"
|
|
388
|
-
},
|
|
389
|
-
"require": {
|
|
390
|
-
"types": "./dist/fp/iterator/index.d.ts",
|
|
391
|
-
"default": "./dist/fp/iterator/index.js"
|
|
392
|
-
}
|
|
393
|
-
},
|
|
394
361
|
"./function": {
|
|
395
362
|
"import": {
|
|
396
363
|
"types": "./dist/function/index.d.mts",
|
|
@@ -401,16 +368,6 @@
|
|
|
401
368
|
"default": "./dist/function/index.js"
|
|
402
369
|
}
|
|
403
370
|
},
|
|
404
|
-
"./iterator": {
|
|
405
|
-
"import": {
|
|
406
|
-
"types": "./dist/iterator/index.d.mts",
|
|
407
|
-
"default": "./dist/iterator/index.mjs"
|
|
408
|
-
},
|
|
409
|
-
"require": {
|
|
410
|
-
"types": "./dist/iterator/index.d.ts",
|
|
411
|
-
"default": "./dist/iterator/index.js"
|
|
412
|
-
}
|
|
413
|
-
},
|
|
414
371
|
"./map": {
|
|
415
372
|
"import": {
|
|
416
373
|
"types": "./dist/map/index.d.mts",
|
|
@@ -25,7 +25,7 @@ Caller Application → qs.stringify(obj, options) → Stringifying Engine → Ou
|
|
|
25
25
|
|
|
26
26
|
**Trust Boundaries:**
|
|
27
27
|
- **Input string (parse):** May come from untrusted sources (e.g., user input, network requests)
|
|
28
|
-
- **Input object (stringify):**
|
|
28
|
+
- **Input object (stringify):** May contain cycles, which can lead to infinite loops during stringification
|
|
29
29
|
- **Options:** Provided by the caller
|
|
30
30
|
- **Cycle Tracking:** Used only during stringification to detect and handle circular references
|
|
31
31
|
|
|
@@ -58,7 +58,7 @@ Caller Application → qs.stringify(obj, options) → Stringifying Engine → Ou
|
|
|
58
58
|
|---------------------------------------------------|---------------------|
|
|
59
59
|
| Tampering (malicious input, prototype pollution) | Strict input validation; keep `allowPrototypes: false` by default; use `plainObjects` for output; ensure builtins/globals are never modified by parse[4][8]. |
|
|
60
60
|
| Information Disclosure (error messages) | Generic error messages without stack traces or internal paths. |
|
|
61
|
-
| Denial of Service (memory/CPU exhaustion) |
|
|
61
|
+
| Denial of Service (memory/CPU exhaustion) | Enforce `arrayLimit` and `parameterLimit` with safe defaults; enable `throwOnLimitExceeded`; limit nesting depth[7]. |
|
|
62
62
|
| Elevation of Privilege (prototype pollution) | Keep `allowPrototypes: false`; validate options against allowlist; use `plainObjects` to avoid prototype pollution[4][8]. |
|
|
63
63
|
|
|
64
64
|
### 7. Risk Ranking
|
|
@@ -70,7 +70,7 @@ Caller Application → qs.stringify(obj, options) → Stringifying Engine → Ou
|
|
|
70
70
|
### 8. Next Steps & Review
|
|
71
71
|
|
|
72
72
|
1. **Audit option validation logic.**
|
|
73
|
-
2. **
|
|
73
|
+
2. **Add depth limiting to nested parsing and stringification.**
|
|
74
74
|
3. **Implement fuzz testing for parser and stringifier edge cases.**
|
|
75
75
|
4. **Regularly review dependencies for vulnerabilities.**
|
|
76
76
|
5. **Keep documentation and threat model up to date.**
|
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
## **6.16.0**
|
|
2
|
-
- [New] `stringify`: add a `depth` option to bound recursion depth (default `Infinity`)
|
|
3
|
-
- [Fix] stringify: serialize Date values when a filter is provided
|
|
4
|
-
- [Fix] `parse`: enforce `arrayLimit` on comma groups under `[]=` when `throwOnLimitExceeded` is set
|
|
5
|
-
- [Fix] `parse`: flatten a collection appended to an overflowed array (#571)
|
|
6
|
-
- [Fix] `utils`: `isBuffer`: do not invoke a non-callable `constructor.isBuffer`
|
|
7
|
-
- [Fix] `stringify`: do not let `allowEmptyArrays` skip cycle detection (or drop own keys) on an empty array with own properties
|
|
8
|
-
- [Fix] `stringify`: encode dots in a top-level key with a primitive value when encodeDotInKeys is set (#562)
|
|
9
|
-
- [Docs] threat model: clarify `stringify` deep-nesting DoS is caller-bounded
|
|
10
|
-
- [Docs] clarify `arrayLimit` is a representation threshold, not an element-count cap
|
|
11
|
-
- [Tests] `parse`: remove a test that pinned `[]=` comma groups escaping `arrayLimit`
|
|
12
|
-
- [Tests] `stringify`: pin current `encodeDotInKeys` separator-dot behavior
|
|
13
|
-
- [Dev Deps] update `@ljharb/eslint-config`, `eslint`
|
|
14
|
-
- [Dev Deps] update `eslint`, `evalmd`
|
|
15
|
-
|
|
16
1
|
## **6.15.3**
|
|
17
2
|
- [Fix] `parse`: enforce `throwOnLimitExceeded` for cumulative array growth via `combine`/`merge`
|
|
18
3
|
- [Fix] `utils`: respect encoding of surrogate pairs across chunks (#559)
|
|
@@ -147,8 +147,6 @@ try {
|
|
|
147
147
|
|
|
148
148
|
When `throwOnLimitExceeded` is set to `false` (default), **qs** will parse up to the specified `parameterLimit` and ignore the rest without throwing an error.
|
|
149
149
|
|
|
150
|
-
Note that `parameterLimit` only bounds the number of `&`-delimited parameters; it does not limit how many values a single parameter expands into. In particular, when `comma: true` is enabled, a single parameter's value is split on commas into arbitrarily many elements, which `parameterLimit` does not constrain. To bound the total element count from untrusted input, set `throwOnLimitExceeded: true` (see `arrayLimit` below), and always bound the input size at the transport layer (e.g. an HTTP body-size limit).
|
|
151
|
-
|
|
152
150
|
To bypass the leading question mark, use `ignoreQueryPrefix`:
|
|
153
151
|
|
|
154
152
|
```javascript
|
|
@@ -315,9 +313,7 @@ try {
|
|
|
315
313
|
}
|
|
316
314
|
```
|
|
317
315
|
|
|
318
|
-
When `throwOnLimitExceeded` is set to `false` (default), **qs** will parse up to the specified `arrayLimit` and if the limit is exceeded, the array will instead be converted to an object with the index as the key
|
|
319
|
-
|
|
320
|
-
Note that `arrayLimit` is a *representation* threshold that controls when a numerically-indexed collection switches from an array to an object — it is **not** a hard cap on the total number of elements parsed. With the default `throwOnLimitExceeded: false`, exceeding `arrayLimit` never rejects or truncates input; it only changes the container type, and the resulting object still holds every element (so its size stays proportional to the input). This conversion is itself a safeguard: it avoids allocating a huge sparse array for input like `a[999999999]`. If you need a hard limit that rejects oversized input from untrusted sources, set `throwOnLimitExceeded: true`.
|
|
316
|
+
When `throwOnLimitExceeded` is set to `false` (default), **qs** will parse up to the specified `arrayLimit` and if the limit is exceeded, the array will instead be converted to an object with the index as the key
|
|
321
317
|
|
|
322
318
|
To prevent array syntax (`a[]`, `a[0]`) from being parsed as arrays, set `parseArrays` to `false`.
|
|
323
319
|
Note that duplicate keys (e.g. `a=b&a=c`) may still produce arrays when `duplicates` is `'combine'` (the default).
|
|
@@ -414,20 +410,6 @@ var encoded = qs.stringify({ a: { b: 'c' } }, { encoder: function (str) {
|
|
|
414
410
|
|
|
415
411
|
_(Note: the `encoder` option does not apply if `encode` is `false`)_
|
|
416
412
|
|
|
417
|
-
By default, `qs.stringify` serializes an object of any nesting depth.
|
|
418
|
-
For backwards compatibility, and because its input is the caller's own object rather than a query string parsed by **qs**, this is unbounded.
|
|
419
|
-
If you serialize objects whose nesting can be influenced by untrusted input, bound it with the numeric `depth` option (default `Infinity`);
|
|
420
|
-
exceeding it throws a catchable `RangeError` instead of eventually overflowing the call stack:
|
|
421
|
-
|
|
422
|
-
```javascript
|
|
423
|
-
try {
|
|
424
|
-
qs.stringify({ a: { b: { c: { d: 'e' } } } }, { depth: 2 });
|
|
425
|
-
} catch (err) {
|
|
426
|
-
assert(err instanceof RangeError);
|
|
427
|
-
assert.strictEqual(err.message, 'Input depth exceeded depth option of 2');
|
|
428
|
-
}
|
|
429
|
-
```
|
|
430
|
-
|
|
431
413
|
Analogue to the `encoder` there is a `decoder` option for `parse` to override decoding of properties and values:
|
|
432
414
|
|
|
433
415
|
```javascript
|