@quantiya/codevibe-claude-plugin 2.0.27 → 2.0.29
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.d.ts +5 -1
- package/node_modules/@quantiya/codevibe-core/dist/index.js +447 -415
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/__tests__/local-executor-teams-summary.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/hook-bridge.d.ts +2 -1
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/index.d.ts +5 -0
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/local-executor-impl.d.ts +16 -0
- package/node_modules/@quantiya/codevibe-core/dist/local-executor/team-summary.d.ts +151 -0
- package/node_modules/@quantiya/codevibe-core/dist/local-model/ollama.d.ts +3 -1
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/__tests__/audit-buffer-join.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/__tests__/audit-normalization.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/__tests__/audit-summary.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/__tests__/decision-map-lifecycle.test.d.ts +1 -0
- 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/__tests__/query_audit_tier_gate.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/__tests__/quorum-loop-fail-safe.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/__tests__/quorum-loop-summary.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/audit-runner.d.ts +25 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/audit-summary.d.ts +240 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/cli.d.ts +11 -3
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/cli.js +3693 -1315
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/context-compaction.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/gate-decision-submit.d.ts +1 -1
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/index.d.ts +23 -17
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/quorum-loop.d.ts +96 -1
- package/node_modules/@quantiya/codevibe-core/dist/planner/local-gemma.d.ts +35 -7
- package/node_modules/@quantiya/codevibe-core/package.json +2 -2
- 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
|
@@ -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
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
"use strict";var stringify=require(4),parse=require(3),formats=require(1);module.exports={formats:formats,parse:parse,stringify:stringify};
|
|
6
6
|
|
|
7
7
|
},{"1":1,"3":3,"4":4}],3:[function(require,module,exports){
|
|
8
|
-
"use strict";var utils=require(5),has=Object.prototype.hasOwnProperty,isArray=Array.isArray,defaults={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:utils.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},interpretNumericEntities=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},parseArrayValue=function(e,t,r){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1){if(t.throwOnLimitExceeded)for(var
|
|
8
|
+
"use strict";var utils=require(5),has=Object.prototype.hasOwnProperty,isArray=Array.isArray,defaults={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:utils.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},interpretNumericEntities=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},parseArrayValue=function(e,t,r,i){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1){if(i&&t.throwOnLimitExceeded)for(var a=0,o=e.indexOf(",");o>-1;){if((a+=1)>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");o=e.indexOf(",",o+1)}return e.split(",")}if(t.throwOnLimitExceeded&&r>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},isoSentinel="utf8=%26%2310003%3B",charsetSentinel="utf8=%E2%9C%93",parseValues=function parseQueryStringValues(e,t){var r={__proto__:null},i=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;i=i.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var a=t.parameterLimit===1/0?void 0:t.parameterLimit,o=i.split(t.delimiter,t.throwOnLimitExceeded&&void 0!==a?a+1:a);if(t.throwOnLimitExceeded&&void 0!==a&&o.length>a)throw new RangeError("Parameter limit exceeded. Only "+a+" parameter"+(1===a?"":"s")+" allowed.");var l,n=-1,s=t.charset;if(t.charsetSentinel)for(l=0;l<o.length;++l)0===o[l].indexOf("utf8=")&&(o[l]===charsetSentinel?s="utf-8":o[l]===isoSentinel&&(s="iso-8859-1"),n=l,l=o.length);for(l=0;l<o.length;++l)if(l!==n){var d,c,p=o[l],u=p.indexOf("]="),y=-1===u?p.indexOf("="):u+1;if(-1===y?(d=t.decoder(p,defaults.decoder,s,"key"),c=t.strictNullHandling?null:""):null!==(d=t.decoder(p.slice(0,y),defaults.decoder,s,"key"))&&(c=utils.maybeMap(parseArrayValue(p.slice(y+1),t,isArray(r[d])?r[d].length:0,-1===p.indexOf("[]=")),function(e){return t.decoder(e,defaults.decoder,s,"value")})),c&&t.interpretNumericEntities&&"iso-8859-1"===s&&(c=interpretNumericEntities(String(c))),p.indexOf("[]=")>-1&&(c=isArray(c)?[c]:c),t.comma&&isArray(c)&&c.length>t.arrayLimit&&(c=utils.combine([],c,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded)),null!==d){var f=has.call(r,d);f&&("combine"===t.duplicates||p.indexOf("[]=")>-1)?r[d]=utils.combine(r[d],c,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded):f&&"last"!==t.duplicates||(r[d]=c)}}return r},parseObject=function(e,t,r,i){var a=0;if(e.length>0&&"[]"===e[e.length-1]){var o=e.slice(0,-1).join("");a=Array.isArray(t)&&t[o]?t[o].length:0}for(var l=i?t:parseArrayValue(t,r,a),n=e.length-1;n>=0;--n){var s,d=e[n];if("[]"===d&&r.parseArrays)s=utils.isOverflow(l)?l:r.allowEmptyArrays&&(""===l||r.strictNullHandling&&null===l)?[]:utils.combine([],l,r.arrayLimit,r.plainObjects,r.throwOnLimitExceeded);else{s=r.plainObjects?{__proto__:null}:{};var c="["===d.charAt(0)&&"]"===d.charAt(d.length-1)?d.slice(1,-1):d,p=r.decodeDotInKeys?c.replace(/%2E/g,"."):c,u=parseInt(p,10),y=!isNaN(u)&&d!==p&&String(u)===p&&u>=0&&r.parseArrays;if(r.parseArrays||""!==p)if(y&&u<r.arrayLimit)(s=[])[u]=l;else{if(y&&r.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(1===r.arrayLimit?"":"s")+" allowed in an array.");y?(s[u]=l,utils.markOverflow(s,u)):"__proto__"!==p&&(s[p]=l)}else s={0:l}}l=s}return l},splitKeyIntoSegments=function splitKeyIntoSegments(e,t){var r=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0){if(!t.plainObjects&&has.call(Object.prototype,r)&&!t.allowPrototypes)return;return[r]}var i=[],a=r.indexOf("["),o=a>=0?r.slice(0,a):r;if(o){if(!t.plainObjects&&has.call(Object.prototype,o)&&!t.allowPrototypes)return;i[i.length]=o}for(var l=r.length,n=a,s=0;n>=0&&s<t.depth;){for(var d=1,c=n+1,p=-1;c<l&&p<0;){var u=r.charCodeAt(c);91===u?d+=1:93===u&&0==(d-=1)&&(p=c),c+=1}if(p<0)return i[i.length]="["+r.slice(n)+"]",i;var y=r.slice(n,p+1),f=y.slice(1,-1);if(!t.plainObjects&&has.call(Object.prototype,f)&&!t.allowPrototypes)return;i[i.length]=y,s+=1,n=r.indexOf("[",p+1)}if(n>=0){if(!0===t.strictDepth)throw new RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");i[i.length]="["+r.slice(n)+"]"}return i},parseKeys=function parseQueryStringKeys(e,t,r,i){if(e){var a=splitKeyIntoSegments(e,r);if(a)return parseObject(a,t,r,i)}},normalizeParseOptions=function normalizeParseOptions(e){if(!e)return defaults;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?defaults.charset:e.charset,r=void 0===e.duplicates?defaults.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||defaults.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:defaults.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:defaults.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:defaults.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:defaults.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:defaults.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:defaults.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:defaults.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:defaults.decoder,delimiter:"string"==typeof e.delimiter||utils.isRegExp(e.delimiter)?e.delimiter:defaults.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:defaults.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:defaults.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:defaults.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:defaults.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:defaults.strictDepth,strictMerge:"boolean"==typeof e.strictMerge?!!e.strictMerge:defaults.strictMerge,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:defaults.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}};module.exports=function(e,t){var r=normalizeParseOptions(t);if(""===e||null==e)return r.plainObjects?{__proto__:null}:{};for(var i="string"==typeof e?parseValues(e,r):e,a=r.plainObjects?{__proto__:null}:{},o=Object.keys(i),l=0;l<o.length;++l){var n=o[l],s=parseKeys(n,i[n],r,"string"==typeof e);a=utils.merge(a,s,r)}return!0===r.allowSparse?a:utils.compact(a)};
|
|
9
9
|
|
|
10
10
|
},{"5":5}],4:[function(require,module,exports){
|
|
11
|
-
"use strict";var getSideChannel=require(46),utils=require(5),formats=require(1),has=Object.prototype.hasOwnProperty,arrayPrefixGenerators={brackets:function brackets(e){return e+"[]"},comma:"comma",indices:function indices(e,r){return e+"["+r+"]"},repeat:function repeat(e){return e}},isArray=Array.isArray,push=Array.prototype.push,pushToArray=function(e,r){push.apply(e,isArray(r)?r:[r])},toISO=Date.prototype.toISOString,defaultFormat=formats.default,defaults={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",
|
|
11
|
+
"use strict";var getSideChannel=require(46),utils=require(5),formats=require(1),has=Object.prototype.hasOwnProperty,arrayPrefixGenerators={brackets:function brackets(e){return e+"[]"},comma:"comma",indices:function indices(e,r){return e+"["+r+"]"},repeat:function repeat(e){return e}},isArray=Array.isArray,push=Array.prototype.push,pushToArray=function(e,r){push.apply(e,isArray(r)?r:[r])},toISO=Date.prototype.toISOString,defaultFormat=formats.default,defaults={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:utils.encode,encodeValuesOnly:!1,filter:void 0,format:defaultFormat,formatter:formats.formatters[defaultFormat],indices:!1,serializeDate:function serializeDate(e){return toISO.call(e)},skipNulls:!1,strictNullHandling:!1},isNonNullishPrimitive=function isNonNullishPrimitive(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e||"symbol"==typeof e||"bigint"==typeof e},sentinel={},stringify=function stringify(e,r,t,o,a,n,i,l,s,f,u,d,y,c,p,m,h,v){for(var g=e,w=v,b=0,A=!1;void 0!==(w=w.get(sentinel))&&!A;){var D=w.get(e);if(b+=1,void 0!==D){if(D===b)throw new RangeError("Cyclic object value");A=!0}void 0===w.get(sentinel)&&(b=0)}if("function"==typeof f?g=f(r,g):g instanceof Date?g=y(g):"comma"===t&&isArray(g)&&(g=utils.maybeMap(g,function(e){return e instanceof Date?y(e):e})),null===g){if(n)return p(s&&!m?s(r,defaults.encoder,h,"key",c):r);g=""}if(isNonNullishPrimitive(g)||utils.isBuffer(g))return s?[p(m?r:s(r,defaults.encoder,h,"key",c))+"="+p(s(g,defaults.encoder,h,"value",c))]:[p(r)+"="+p(String(g))];var S,E=[];if(void 0===g)return E;if("comma"===t&&isArray(g))m&&s&&(g=utils.maybeMap(g,function(e){return null==e?e:s(e)})),S=[{value:g.length>0?g.join(",")||null:void 0}];else if(isArray(f))S=f;else{var N=Object.keys(g);S=u?N.sort(u):N}var T=l?String(r).replace(/\./g,"%2E"):String(r),O=o&&isArray(g)&&1===g.length?T+"[]":T;if(a&&isArray(g)&&0===g.length)return O+"[]";for(var k=0;k<S.length;++k){var I=S[k],P="object"==typeof I&&I&&void 0!==I.value?I.value:g[I];if(!i||null!==P){var x=d&&l?String(I).replace(/\./g,"%2E"):String(I),z=isArray(g)?"function"==typeof t?t(O,x):O:O+(d?"."+x:"["+x+"]");v.set(e,b);var K=getSideChannel();K.set(sentinel,v),pushToArray(E,stringify(P,z,t,o,a,n,i,l,"comma"===t&&m&&isArray(g)?null:s,f,u,d,y,c,p,m,h,K))}}return E},normalizeStringifyOptions=function normalizeStringifyOptions(e){if(!e)return defaults;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var r=e.charset||defaults.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=formats.default;if(void 0!==e.format){if(!has.call(formats.formatters,e.format))throw new TypeError("Unknown format option provided.");t=e.format}var o,a=formats.formatters[t],n=defaults.filter;if(("function"==typeof e.filter||isArray(e.filter))&&(n=e.filter),o=e.arrayFormat in arrayPrefixGenerators?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":defaults.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var i=void 0===e.allowDots?!0===e.encodeDotInKeys||defaults.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:defaults.addQueryPrefix,allowDots:i,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:defaults.allowEmptyArrays,arrayFormat:o,charset:r,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:defaults.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?defaults.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:defaults.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:defaults.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:defaults.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:defaults.encodeValuesOnly,filter:n,format:t,formatter:a,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:defaults.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:defaults.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:defaults.strictNullHandling}};module.exports=function(e,r){var t,o=e,a=normalizeStringifyOptions(r);"function"==typeof a.filter?o=(0,a.filter)("",o):isArray(a.filter)&&(t=a.filter);var n=[];if("object"!=typeof o||null===o)return"";var i=arrayPrefixGenerators[a.arrayFormat],l="comma"===i&&a.commaRoundTrip;t||(t=Object.keys(o)),a.sort&&t.sort(a.sort);for(var s=getSideChannel(),f=0;f<t.length;++f){var u=t[f];if(null!=u){var d=o[u];a.skipNulls&&null===d||pushToArray(n,stringify(d,u,i,l,a.allowEmptyArrays,a.strictNullHandling,a.skipNulls,a.encodeDotInKeys,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,s))}}var y=n.join(a.delimiter),c=!0===a.addQueryPrefix?"?":"";return a.charsetSentinel&&("iso-8859-1"===a.charset?c+="utf8=%26%2310003%3B"+a.delimiter:c+="utf8=%E2%9C%93"+a.delimiter),y.length>0?c+y:""};
|
|
12
12
|
|
|
13
13
|
},{"1":1,"46":46,"5":5}],5:[function(require,module,exports){
|
|
14
|
-
"use strict";var formats=require(1),getSideChannel=require(46),defineProperty=require(14),has=Object.prototype.hasOwnProperty,isArray=Array.isArray,overflowChannel=getSideChannel(),markOverflow=function markOverflow(e,r){return overflowChannel.set(e,r),e},isOverflow=function isOverflow(e){return overflowChannel.has(e)},getMaxIndex=function getMaxIndex(e){return overflowChannel.get(e)},setMaxIndex=function setMaxIndex(e,r){overflowChannel.set(e,r)},hexTable=function(){for(var e=[],r=0;r<256;++r)e[e.length]="%"+((r<16?"0":"")+r.toString(16)).toUpperCase();return e}(),compactQueue=function compactQueue(e){for(;e.length>1;){var r=e.pop(),t=r.obj[r.prop];if(isArray(t)){for(var n=[],a=0;a<t.length;++a)void 0!==t[a]&&(n[n.length]=t[a]);r.obj[r.prop]=n}}},arrayToObject=function arrayToObject(e,r){for(var t=r&&r.plainObjects?{__proto__:null}:{},n=0;n<e.length;++n)void 0!==e[n]&&(t[n]=e[n]);return t},setProperty=function setProperty(e,r,t){"__proto__"===r&&defineProperty?defineProperty(e,r,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[r]=t},merge=function merge(e,r,t){if(!r)return e;if("object"!=typeof r&&"function"!=typeof r){if(isArray(e)){var n=e.length;if(t&&"number"==typeof t.arrayLimit&&n>=t.arrayLimit){if(t.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return markOverflow(arrayToObject(e.concat(r),t),n)}e[n]=r}else{if(!e||"object"!=typeof e)return[e,r];if(isOverflow(e)){var a=getMaxIndex(e)+1;e[a]=r,setMaxIndex(e,a)}else{if(t&&t.strictMerge)return[e,r];(t&&(t.plainObjects||t.allowPrototypes)||!has.call(Object.prototype,r))&&(e[r]=!0)}}return e}if(!e||"object"!=typeof e){if(isOverflow(r)){for(var o=Object.keys(r),i=t&&t.plainObjects?{__proto__:null,0:e}:{0:e},l=0;l<o.length;l++)i[parseInt(o[l],10)+1]=r[o[l]];return markOverflow(i,getMaxIndex(r)+1)}var c=[e].concat(r);if(t&&"number"==typeof t.arrayLimit&&c.length>t.arrayLimit){if(t.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return markOverflow(arrayToObject(c,t),c.length-1)}return c}var f=e;if(isArray(e)&&!isArray(r)&&(f=arrayToObject(e,t)),isArray(e)&&isArray(r)){if(r.forEach(function(r,n){if(has.call(e,n)){var a=e[n];a&&"object"==typeof a&&r&&"object"==typeof r?e[n]=merge(a,r,t):e[e.length]=r}else e[n]=r}),t&&"number"==typeof t.arrayLimit&&e.length>t.arrayLimit){if(t.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return markOverflow(arrayToObject(e,t),e.length-1)}return e}return Object.keys(r).reduce(function(e,n){var a=r[n];if(has.call(e,n)?setProperty(e,n,merge(e[n],a,t)):setProperty(e,n,a),isOverflow(r)&&!isOverflow(e)&&markOverflow(e,getMaxIndex(r)),isOverflow(e)){var o=parseInt(n,10);String(o)===n&&o>=0&&o>getMaxIndex(e)&&setMaxIndex(e,o)}return e},f)},assign=function assignSingleSource(e,r){return Object.keys(r).reduce(function(e,t){return setProperty(e,t,r[t]),e},e)},decode=function(e,r,t){var n=e.replace(/\+/g," ");if("iso-8859-1"===t)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},limit=1024,encode=function encode(e,r,t,n,a){if(0===e.length)return e;var o=e;if("symbol"==typeof e?o=Symbol.prototype.toString.call(e):"string"!=typeof e&&(o=String(e)),"iso-8859-1"===t)return escape(o).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var i="",l=0;l<o.length;l+=limit){var c=o.length>=limit?o.slice(l,l+limit):o;if(l+limit<o.length){var f=c.charCodeAt(c.length-1);f>=55296&&f<=56319&&(c=c.slice(0,-1),l-=1)}for(var s=[],u=0;u<c.length;++u){var y=c.charCodeAt(u);45===y||46===y||95===y||126===y||y>=48&&y<=57||y>=65&&y<=90||y>=97&&y<=122||a===formats.RFC1738&&(40===y||41===y)?s[s.length]=c.charAt(u):y<128?s[s.length]=hexTable[y]:y<2048?s[s.length]=hexTable[192|y>>6]+hexTable[128|63&y]:y<55296||y>=57344?s[s.length]=hexTable[224|y>>12]+hexTable[128|y>>6&63]+hexTable[128|63&y]:(u+=1,y=65536+((1023&y)<<10|1023&c.charCodeAt(u)),s[s.length]=hexTable[240|y>>18]+hexTable[128|y>>12&63]+hexTable[128|y>>6&63]+hexTable[128|63&y])}i+=s.join("")}return i},compact=function compact(e){for(var r=[{obj:{o:e},prop:"o"}],t=getSideChannel(),n=0;n<r.length;++n)for(var a=r[n],o=a.obj[a.prop],i=Object.keys(o),l=0;l<i.length;++l){var c=i[l],f=o[c];"object"!=typeof f||null===f||t.has(f)||(r[r.length]={obj:o,prop:c},t.set(f,!0))}return compactQueue(r),e},isRegExp=function isRegExp(e){return"[object RegExp]"===Object.prototype.toString.call(e)},isBuffer=function isBuffer(e){return!(!e||"object"!=typeof e||!e.constructor
|
|
14
|
+
"use strict";var formats=require(1),getSideChannel=require(46),defineProperty=require(14),has=Object.prototype.hasOwnProperty,isArray=Array.isArray,overflowChannel=getSideChannel(),markOverflow=function markOverflow(e,r){return overflowChannel.set(e,r),e},isOverflow=function isOverflow(e){return overflowChannel.has(e)},getMaxIndex=function getMaxIndex(e){return overflowChannel.get(e)},setMaxIndex=function setMaxIndex(e,r){overflowChannel.set(e,r)},hexTable=function(){for(var e=[],r=0;r<256;++r)e[e.length]="%"+((r<16?"0":"")+r.toString(16)).toUpperCase();return e}(),compactQueue=function compactQueue(e){for(;e.length>1;){var r=e.pop(),t=r.obj[r.prop];if(isArray(t)){for(var n=[],a=0;a<t.length;++a)void 0!==t[a]&&(n[n.length]=t[a]);r.obj[r.prop]=n}}},arrayToObject=function arrayToObject(e,r){for(var t=r&&r.plainObjects?{__proto__:null}:{},n=0;n<e.length;++n)void 0!==e[n]&&(t[n]=e[n]);return t},setProperty=function setProperty(e,r,t){"__proto__"===r&&defineProperty?defineProperty(e,r,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[r]=t},merge=function merge(e,r,t){if(!r)return e;if("object"!=typeof r&&"function"!=typeof r){if(isArray(e)){var n=e.length;if(t&&"number"==typeof t.arrayLimit&&n>=t.arrayLimit){if(t.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return markOverflow(arrayToObject(e.concat(r),t),n)}e[n]=r}else{if(!e||"object"!=typeof e)return[e,r];if(isOverflow(e)){var a=getMaxIndex(e)+1;e[a]=r,setMaxIndex(e,a)}else{if(t&&t.strictMerge)return[e,r];(t&&(t.plainObjects||t.allowPrototypes)||!has.call(Object.prototype,r))&&(e[r]=!0)}}return e}if(!e||"object"!=typeof e){if(isOverflow(r)){for(var o=Object.keys(r),i=t&&t.plainObjects?{__proto__:null,0:e}:{0:e},l=0;l<o.length;l++)i[parseInt(o[l],10)+1]=r[o[l]];return markOverflow(i,getMaxIndex(r)+1)}var c=[e].concat(r);if(t&&"number"==typeof t.arrayLimit&&c.length>t.arrayLimit){if(t.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return markOverflow(arrayToObject(c,t),c.length-1)}return c}var f=e;if(isArray(e)&&!isArray(r)&&(f=arrayToObject(e,t)),isArray(e)&&isArray(r)){if(r.forEach(function(r,n){if(has.call(e,n)){var a=e[n];a&&"object"==typeof a&&r&&"object"==typeof r?e[n]=merge(a,r,t):e[e.length]=r}else e[n]=r}),t&&"number"==typeof t.arrayLimit&&e.length>t.arrayLimit){if(t.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return markOverflow(arrayToObject(e,t),e.length-1)}return e}return Object.keys(r).reduce(function(e,n){var a=r[n];if(has.call(e,n)?setProperty(e,n,merge(e[n],a,t)):setProperty(e,n,a),isOverflow(r)&&!isOverflow(e)&&markOverflow(e,getMaxIndex(r)),isOverflow(e)){var o=parseInt(n,10);String(o)===n&&o>=0&&o>getMaxIndex(e)&&setMaxIndex(e,o)}return e},f)},assign=function assignSingleSource(e,r){return Object.keys(r).reduce(function(e,t){return setProperty(e,t,r[t]),e},e)},decode=function(e,r,t){var n=e.replace(/\+/g," ");if("iso-8859-1"===t)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},limit=1024,encode=function encode(e,r,t,n,a){if(0===e.length)return e;var o=e;if("symbol"==typeof e?o=Symbol.prototype.toString.call(e):"string"!=typeof e&&(o=String(e)),"iso-8859-1"===t)return escape(o).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var i="",l=0;l<o.length;l+=limit){var c=o.length>=limit?o.slice(l,l+limit):o;if(l+limit<o.length){var f=c.charCodeAt(c.length-1);f>=55296&&f<=56319&&(c=c.slice(0,-1),l-=1)}for(var s=[],u=0;u<c.length;++u){var y=c.charCodeAt(u);45===y||46===y||95===y||126===y||y>=48&&y<=57||y>=65&&y<=90||y>=97&&y<=122||a===formats.RFC1738&&(40===y||41===y)?s[s.length]=c.charAt(u):y<128?s[s.length]=hexTable[y]:y<2048?s[s.length]=hexTable[192|y>>6]+hexTable[128|63&y]:y<55296||y>=57344?s[s.length]=hexTable[224|y>>12]+hexTable[128|y>>6&63]+hexTable[128|63&y]:(u+=1,y=65536+((1023&y)<<10|1023&c.charCodeAt(u)),s[s.length]=hexTable[240|y>>18]+hexTable[128|y>>12&63]+hexTable[128|y>>6&63]+hexTable[128|63&y])}i+=s.join("")}return i},compact=function compact(e){for(var r=[{obj:{o:e},prop:"o"}],t=getSideChannel(),n=0;n<r.length;++n)for(var a=r[n],o=a.obj[a.prop],i=Object.keys(o),l=0;l<i.length;++l){var c=i[l],f=o[c];"object"!=typeof f||null===f||t.has(f)||(r[r.length]={obj:o,prop:c},t.set(f,!0))}return compactQueue(r),e},isRegExp=function isRegExp(e){return"[object RegExp]"===Object.prototype.toString.call(e)},isBuffer=function isBuffer(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},combine=function combine(e,r,t,n,a){if(isOverflow(e)){if(a)throw new RangeError("Array limit exceeded. Only "+t+" element"+(1===t?"":"s")+" allowed in an array.");var o=getMaxIndex(e)+1;return e[o]=r,setMaxIndex(e,o),e}var i=[].concat(e,r);if(i.length>t){if(a)throw new RangeError("Array limit exceeded. Only "+t+" element"+(1===t?"":"s")+" allowed in an array.");return markOverflow(arrayToObject(i,{plainObjects:n}),i.length-1)}return i},maybeMap=function maybeMap(e,r){if(isArray(e)){for(var t=[],n=0;n<e.length;n+=1)t[t.length]=r(e[n]);return t}return r(e)};module.exports={/* common-shake removed: arrayToObject:arrayToObject *//* common-shake removed: assign:assign */combine:combine,compact:compact,decode:decode,encode:encode,isBuffer:isBuffer,isOverflow:isOverflow,isRegExp:isRegExp,markOverflow:markOverflow,maybeMap:maybeMap,merge:merge};
|
|
15
15
|
|
|
16
16
|
},{"1":1,"14":14,"46":46}],46:[function(require,module,exports){
|
|
17
17
|
"use strict";var $TypeError=require(20),inspect=require(42),getSideChannelList=require(43),getSideChannelMap=require(44),getSideChannelWeakMap=require(45),makeChannel=getSideChannelWeakMap||getSideChannelMap||getSideChannelList;module.exports=function getSideChannel(){var e,n={assert:function(e){if(!n.has(e)){var t=e&&Object(e)===e?"the given object key":inspect(e);throw new $TypeError("Side channel does not contain "+t)}},delete:function(n){return!!e&&e.delete(n)},get:function(n){return e&&e.get(n)},has:function(n){return!!e&&e.has(n)},set:function(n,t){e||(e=makeChannel()),e.set(n,t)}};return n};
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
},{}],7:[function(require,module,exports){
|
|
25
25
|
"use strict";var bind=require(24),$apply=require(8),$call=require(9),$reflectApply=require(11);module.exports=$reflectApply||bind.call($call,$apply);
|
|
26
26
|
|
|
27
|
-
},{"11":11,"24":24,"8":8,"9":9}],
|
|
28
|
-
"use strict";module.exports=Function.prototype.apply;
|
|
29
|
-
|
|
30
|
-
},{}],9:[function(require,module,exports){
|
|
27
|
+
},{"11":11,"24":24,"8":8,"9":9}],9:[function(require,module,exports){
|
|
31
28
|
"use strict";module.exports=Function.prototype.call;
|
|
32
29
|
|
|
30
|
+
},{}],8:[function(require,module,exports){
|
|
31
|
+
"use strict";module.exports=Function.prototype.apply;
|
|
32
|
+
|
|
33
33
|
},{}],24:[function(require,module,exports){
|
|
34
34
|
"use strict";var implementation=require(23);module.exports=Function.prototype.bind||implementation;
|
|
35
35
|
|
|
@@ -78,37 +78,37 @@
|
|
|
78
78
|
},{}],23:[function(require,module,exports){
|
|
79
79
|
"use strict";var ERROR_MESSAGE="Function.prototype.bind called on incompatible ",toStr=Object.prototype.toString,max=Math.max,funcType="[object Function]",concatty=function concatty(t,n){for(var r=[],o=0;o<t.length;o+=1)r[o]=t[o];for(var e=0;e<n.length;e+=1)r[e+t.length]=n[e];return r},slicy=function slicy(t,n){for(var r=[],o=n||0,e=0;o<t.length;o+=1,e+=1)r[e]=t[o];return r},joiny=function(t,n){for(var r="",o=0;o<t.length;o+=1)r+=t[o],o+1<t.length&&(r+=n);return r};module.exports=function bind(t){var n=this;if("function"!=typeof n||toStr.apply(n)!==funcType)throw new TypeError(ERROR_MESSAGE+n);for(var r,o=slicy(arguments,1),e=max(0,n.length-o.length),i=[],c=0;c<e;c++)i[c]="$"+c;if(r=Function("binder","return function ("+joiny(i,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof r){var e=n.apply(this,concatty(o,arguments));return Object(e)===e?e:this}return n.apply(t,concatty(o,arguments))}),n.prototype){var p=function Empty(){};p.prototype=n.prototype,r.prototype=new p,p.prototype=null}return r};
|
|
80
80
|
|
|
81
|
-
},{}],35:[function(require,module,exports){
|
|
82
|
-
"use strict";module.exports=Math.floor;
|
|
83
|
-
|
|
84
|
-
},{}],34:[function(require,module,exports){
|
|
85
|
-
"use strict";module.exports=Math.abs;
|
|
86
|
-
|
|
87
81
|
},{}],37:[function(require,module,exports){
|
|
88
82
|
"use strict";module.exports=Math.max;
|
|
89
83
|
|
|
90
|
-
},{}],39:[function(require,module,exports){
|
|
91
|
-
"use strict";module.exports=Math.pow;
|
|
92
|
-
|
|
93
84
|
},{}],40:[function(require,module,exports){
|
|
94
85
|
"use strict";module.exports=Math.round;
|
|
95
86
|
|
|
87
|
+
},{}],34:[function(require,module,exports){
|
|
88
|
+
"use strict";module.exports=Math.abs;
|
|
89
|
+
|
|
96
90
|
},{}],38:[function(require,module,exports){
|
|
97
91
|
"use strict";module.exports=Math.min;
|
|
98
92
|
|
|
93
|
+
},{}],39:[function(require,module,exports){
|
|
94
|
+
"use strict";module.exports=Math.pow;
|
|
95
|
+
|
|
96
|
+
},{}],35:[function(require,module,exports){
|
|
97
|
+
"use strict";module.exports=Math.floor;
|
|
98
|
+
|
|
99
99
|
},{}],27:[function(require,module,exports){
|
|
100
100
|
"use strict";module.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null;
|
|
101
101
|
|
|
102
102
|
},{}],26:[function(require,module,exports){
|
|
103
103
|
"use strict";var $Object=require(22);module.exports=$Object.getPrototypeOf||null;
|
|
104
104
|
|
|
105
|
-
},{"22":22}],
|
|
106
|
-
"use strict";var $isNaN=require(36);module.exports=function sign(i){return $isNaN(i)||0===i?i:i<0?-1:1};
|
|
107
|
-
|
|
108
|
-
},{"36":36}],33:[function(require,module,exports){
|
|
105
|
+
},{"22":22}],33:[function(require,module,exports){
|
|
109
106
|
"use strict";var call=Function.prototype.call,$hasOwn=Object.prototype.hasOwnProperty,bind=require(24);module.exports=bind.call(call,$hasOwn);
|
|
110
107
|
|
|
111
|
-
},{"24":24}],
|
|
108
|
+
},{"24":24}],41:[function(require,module,exports){
|
|
109
|
+
"use strict";var $isNaN=require(36);module.exports=function sign(i){return $isNaN(i)||0===i?i:i<0?-1:1};
|
|
110
|
+
|
|
111
|
+
},{"36":36}],31:[function(require,module,exports){
|
|
112
112
|
"use strict";var origSymbol="undefined"!=typeof Symbol&&Symbol,hasSymbolSham=require(32);module.exports=function hasNativeSymbols(){return"function"==typeof origSymbol&&"function"==typeof Symbol&&"symbol"==typeof origSymbol("foo")&&"symbol"==typeof Symbol("bar")&&hasSymbolSham()};
|
|
113
113
|
|
|
114
114
|
},{"32":32}],28:[function(require,module,exports){
|