@powerlines/plugin-alloy 0.26.191 → 0.26.193
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/dist/_virtual/_rolldown/runtime.cjs +0 -14
- package/dist/core/components/infrastructure-file.cjs +1 -8
- package/dist/core/components/infrastructure-file.mjs +1 -3
- package/dist/core/components/infrastructure-file.mjs.map +1 -1
- package/dist/core/components/output.cjs +1 -9
- package/dist/core/components/output.mjs +1 -3
- package/dist/core/components/output.mjs.map +1 -1
- package/dist/core/components/single-line-comment.cjs +1 -9
- package/dist/core/components/single-line-comment.mjs +1 -3
- package/dist/core/components/single-line-comment.mjs.map +1 -1
- package/dist/core/components/source-file.cjs +1 -8
- package/dist/core/components/source-file.mjs +1 -3
- package/dist/core/components/source-file.mjs.map +1 -1
- package/dist/core/components/spacing.cjs +1 -9
- package/dist/core/components/spacing.mjs +1 -3
- package/dist/core/components/spacing.mjs.map +1 -1
- package/dist/core/contexts/context.cjs +0 -13
- package/dist/core/contexts/context.mjs +1 -8
- package/dist/core/contexts/context.mjs.map +1 -1
- package/dist/core/contexts/meta.cjs +0 -13
- package/dist/core/contexts/meta.mjs +1 -8
- package/dist/core/contexts/meta.mjs.map +1 -1
- package/dist/core/contexts/schema.cjs +0 -13
- package/dist/core/contexts/schema.mjs +1 -8
- package/dist/core/contexts/schema.mjs.map +1 -1
- package/dist/core/helpers/code.cjs +1 -9
- package/dist/core/helpers/code.mjs +1 -3
- package/dist/core/helpers/code.mjs.map +1 -1
- package/dist/hcl/components/block-declaration.cjs +1 -9
- package/dist/hcl/components/block-declaration.mjs +1 -3
- package/dist/hcl/components/block-declaration.mjs.map +1 -1
- package/dist/hcl/components/hcl-file.cjs +1 -12
- package/dist/hcl/components/hcl-file.mjs +1 -6
- package/dist/hcl/components/hcl-file.mjs.map +1 -1
- package/dist/hcl/components/packer-file.cjs +1 -9
- package/dist/hcl/components/packer-file.mjs +1 -3
- package/dist/hcl/components/packer-file.mjs.map +1 -1
- package/dist/hcl/components/terraform-file.cjs +1 -9
- package/dist/hcl/components/terraform-file.mjs +1 -3
- package/dist/hcl/components/terraform-file.mjs.map +1 -1
- package/dist/helpers/capnp.cjs +0 -24
- package/dist/helpers/capnp.mjs +1 -20
- package/dist/helpers/capnp.mjs.map +1 -1
- package/dist/helpers/create-builtin.cjs +1 -9
- package/dist/helpers/create-builtin.mjs +1 -3
- package/dist/helpers/create-builtin.mjs.map +1 -1
- package/dist/helpers/typescript.cjs +1 -9
- package/dist/helpers/typescript.mjs +1 -3
- package/dist/helpers/typescript.mjs.map +1 -1
- package/dist/markdown/components/front-matter.cjs +1 -9
- package/dist/markdown/components/front-matter.mjs +1 -3
- package/dist/markdown/components/front-matter.mjs.map +1 -1
- package/dist/markdown/components/heading.cjs +1 -9
- package/dist/markdown/components/heading.mjs +1 -3
- package/dist/markdown/components/heading.mjs.map +1 -1
- package/dist/markdown/components/markdown-file.cjs +1 -12
- package/dist/markdown/components/markdown-file.mjs +1 -6
- package/dist/markdown/components/markdown-file.mjs.map +1 -1
- package/dist/markdown/components/markdown-table.cjs +1 -13
- package/dist/markdown/components/markdown-table.mjs +1 -7
- package/dist/markdown/components/markdown-table.mjs.map +1 -1
- package/dist/markdown/contexts/markdown-table.cjs +0 -13
- package/dist/markdown/contexts/markdown-table.mjs +1 -8
- package/dist/markdown/contexts/markdown-table.mjs.map +1 -1
- package/dist/typescript/components/builtin-file.cjs +1 -9
- package/dist/typescript/components/builtin-file.mjs +1 -3
- package/dist/typescript/components/builtin-file.mjs.map +1 -1
- package/dist/typescript/components/class-declaration.cjs +1 -16
- package/dist/typescript/components/class-declaration.mjs +1 -10
- package/dist/typescript/components/class-declaration.mjs.map +1 -1
- package/dist/typescript/components/dynamic-import-statement.cjs +1 -9
- package/dist/typescript/components/dynamic-import-statement.mjs +1 -3
- package/dist/typescript/components/dynamic-import-statement.mjs.map +1 -1
- package/dist/typescript/components/entry-file.cjs +1 -8
- package/dist/typescript/components/entry-file.mjs +1 -3
- package/dist/typescript/components/entry-file.mjs.map +1 -1
- package/dist/typescript/components/interface-declaration.cjs +1 -14
- package/dist/typescript/components/interface-declaration.mjs +1 -8
- package/dist/typescript/components/interface-declaration.mjs.map +1 -1
- package/dist/typescript/components/object-declaration.cjs +1 -12
- package/dist/typescript/components/object-declaration.mjs +1 -6
- package/dist/typescript/components/object-declaration.mjs.map +1 -1
- package/dist/typescript/components/property-name.cjs +1 -9
- package/dist/typescript/components/property-name.mjs +1 -3
- package/dist/typescript/components/property-name.mjs.map +1 -1
- package/dist/typescript/components/record-expression.cjs +1 -9
- package/dist/typescript/components/record-expression.mjs +1 -3
- package/dist/typescript/components/record-expression.mjs.map +1 -1
- package/dist/typescript/components/tsdoc-schema.cjs +1 -12
- package/dist/typescript/components/tsdoc-schema.mjs +1 -6
- package/dist/typescript/components/tsdoc-schema.mjs.map +1 -1
- package/dist/typescript/components/tsdoc.cjs +1 -32
- package/dist/typescript/components/tsdoc.mjs +1 -26
- package/dist/typescript/components/tsdoc.mjs.map +1 -1
- package/dist/typescript/components/type-declaration.cjs +1 -9
- package/dist/typescript/components/type-declaration.mjs +1 -3
- package/dist/typescript/components/type-declaration.mjs.map +1 -1
- package/dist/typescript/components/type-parameters.cjs +1 -9
- package/dist/typescript/components/type-parameters.mjs +1 -3
- package/dist/typescript/components/type-parameters.mjs.map +1 -1
- package/dist/typescript/components/typescript-file.cjs +1 -13
- package/dist/typescript/components/typescript-file.mjs +1 -7
- package/dist/typescript/components/typescript-file.mjs.map +1 -1
- package/dist/typescript/contexts/lexical-scope.cjs +1 -9
- package/dist/typescript/contexts/lexical-scope.mjs +1 -3
- package/dist/typescript/contexts/lexical-scope.mjs.map +1 -1
- package/dist/typescript/contexts/member-scope.cjs +1 -9
- package/dist/typescript/contexts/member-scope.mjs +1 -3
- package/dist/typescript/contexts/member-scope.mjs.map +1 -1
- package/dist/typescript/helpers/get-call-signature-props.cjs +1 -9
- package/dist/typescript/helpers/get-call-signature-props.mjs +1 -3
- package/dist/typescript/helpers/get-call-signature-props.mjs.map +1 -1
- package/dist/typescript/helpers/utilities.cjs +1 -9
- package/dist/typescript/helpers/utilities.mjs +1 -4
- package/dist/typescript/helpers/utilities.mjs.map +1 -1
- package/dist/yaml/components/yaml-file.cjs +1 -12
- package/dist/yaml/components/yaml-file.mjs +1 -6
- package/dist/yaml/components/yaml-file.mjs.map +1 -1
- package/package.json +9 -582
- package/dist/_virtual/_rolldown/runtime.mjs +0 -18
- package/dist/core/components/infrastructure-file.test.cjs +0 -16
- package/dist/core/components/infrastructure-file.test.d.cts +0 -1
- package/dist/core/components/infrastructure-file.test.d.mts +0 -1
- package/dist/core/components/infrastructure-file.test.mjs +0 -18
- package/dist/core/components/infrastructure-file.test.mjs.map +0 -1
- package/dist/core/components/output.test.cjs +0 -16
- package/dist/core/components/output.test.d.cts +0 -1
- package/dist/core/components/output.test.d.mts +0 -1
- package/dist/core/components/output.test.mjs +0 -18
- package/dist/core/components/output.test.mjs.map +0 -1
- package/dist/core/components/single-line-comment.test.cjs +0 -16
- package/dist/core/components/single-line-comment.test.d.cts +0 -1
- package/dist/core/components/single-line-comment.test.d.mts +0 -1
- package/dist/core/components/single-line-comment.test.mjs +0 -18
- package/dist/core/components/single-line-comment.test.mjs.map +0 -1
- package/dist/core/components/source-file.test.cjs +0 -16
- package/dist/core/components/source-file.test.d.cts +0 -1
- package/dist/core/components/source-file.test.d.mts +0 -1
- package/dist/core/components/source-file.test.mjs +0 -18
- package/dist/core/components/source-file.test.mjs.map +0 -1
- package/dist/core/components/spacing.test.cjs +0 -16
- package/dist/core/components/spacing.test.d.cts +0 -1
- package/dist/core/components/spacing.test.d.mts +0 -1
- package/dist/core/components/spacing.test.mjs +0 -18
- package/dist/core/components/spacing.test.mjs.map +0 -1
- package/dist/core/contexts/context.test.cjs +0 -16
- package/dist/core/contexts/context.test.d.cts +0 -1
- package/dist/core/contexts/context.test.d.mts +0 -1
- package/dist/core/contexts/context.test.mjs +0 -18
- package/dist/core/contexts/context.test.mjs.map +0 -1
- package/dist/core/contexts/meta.test.cjs +0 -16
- package/dist/core/contexts/meta.test.d.cts +0 -1
- package/dist/core/contexts/meta.test.d.mts +0 -1
- package/dist/core/contexts/meta.test.mjs +0 -18
- package/dist/core/contexts/meta.test.mjs.map +0 -1
- package/dist/core/contexts/schema.test.cjs +0 -16
- package/dist/core/contexts/schema.test.d.cts +0 -1
- package/dist/core/contexts/schema.test.d.mts +0 -1
- package/dist/core/contexts/schema.test.mjs +0 -18
- package/dist/core/contexts/schema.test.mjs.map +0 -1
- package/dist/core/helpers/code.test.cjs +0 -16
- package/dist/core/helpers/code.test.d.cts +0 -1
- package/dist/core/helpers/code.test.d.mts +0 -1
- package/dist/core/helpers/code.test.mjs +0 -18
- package/dist/core/helpers/code.test.mjs.map +0 -1
- package/dist/hcl/components/block-declaration.test.cjs +0 -16
- package/dist/hcl/components/block-declaration.test.d.cts +0 -1
- package/dist/hcl/components/block-declaration.test.d.mts +0 -1
- package/dist/hcl/components/block-declaration.test.mjs +0 -18
- package/dist/hcl/components/block-declaration.test.mjs.map +0 -1
- package/dist/hcl/components/hcl-file.test.cjs +0 -16
- package/dist/hcl/components/hcl-file.test.d.cts +0 -1
- package/dist/hcl/components/hcl-file.test.d.mts +0 -1
- package/dist/hcl/components/hcl-file.test.mjs +0 -18
- package/dist/hcl/components/hcl-file.test.mjs.map +0 -1
- package/dist/hcl/components/packer-file.test.cjs +0 -16
- package/dist/hcl/components/packer-file.test.d.cts +0 -1
- package/dist/hcl/components/packer-file.test.d.mts +0 -1
- package/dist/hcl/components/packer-file.test.mjs +0 -18
- package/dist/hcl/components/packer-file.test.mjs.map +0 -1
- package/dist/hcl/components/terraform-file.test.cjs +0 -16
- package/dist/hcl/components/terraform-file.test.d.cts +0 -1
- package/dist/hcl/components/terraform-file.test.d.mts +0 -1
- package/dist/hcl/components/terraform-file.test.mjs +0 -18
- package/dist/hcl/components/terraform-file.test.mjs.map +0 -1
- package/dist/helpers/capnp.test.cjs +0 -16
- package/dist/helpers/capnp.test.d.cts +0 -1
- package/dist/helpers/capnp.test.d.mts +0 -1
- package/dist/helpers/capnp.test.mjs +0 -18
- package/dist/helpers/capnp.test.mjs.map +0 -1
- package/dist/helpers/create-builtin.test.cjs +0 -16
- package/dist/helpers/create-builtin.test.d.cts +0 -1
- package/dist/helpers/create-builtin.test.d.mts +0 -1
- package/dist/helpers/create-builtin.test.mjs +0 -18
- package/dist/helpers/create-builtin.test.mjs.map +0 -1
- package/dist/helpers/refkey.test.cjs +0 -30
- package/dist/helpers/refkey.test.d.cts +0 -1
- package/dist/helpers/refkey.test.d.mts +0 -1
- package/dist/helpers/refkey.test.mjs +0 -32
- package/dist/helpers/refkey.test.mjs.map +0 -1
- package/dist/helpers/typescript.test.cjs +0 -16
- package/dist/helpers/typescript.test.d.cts +0 -1
- package/dist/helpers/typescript.test.d.mts +0 -1
- package/dist/helpers/typescript.test.mjs +0 -18
- package/dist/helpers/typescript.test.mjs.map +0 -1
- package/dist/markdown/components/front-matter.test.cjs +0 -16
- package/dist/markdown/components/front-matter.test.d.cts +0 -1
- package/dist/markdown/components/front-matter.test.d.mts +0 -1
- package/dist/markdown/components/front-matter.test.mjs +0 -18
- package/dist/markdown/components/front-matter.test.mjs.map +0 -1
- package/dist/markdown/components/heading.test.cjs +0 -16
- package/dist/markdown/components/heading.test.d.cts +0 -1
- package/dist/markdown/components/heading.test.d.mts +0 -1
- package/dist/markdown/components/heading.test.mjs +0 -18
- package/dist/markdown/components/heading.test.mjs.map +0 -1
- package/dist/markdown/components/markdown-file.test.cjs +0 -16
- package/dist/markdown/components/markdown-file.test.d.cts +0 -1
- package/dist/markdown/components/markdown-file.test.d.mts +0 -1
- package/dist/markdown/components/markdown-file.test.mjs +0 -18
- package/dist/markdown/components/markdown-file.test.mjs.map +0 -1
- package/dist/markdown/components/markdown-table.test.cjs +0 -16
- package/dist/markdown/components/markdown-table.test.d.cts +0 -1
- package/dist/markdown/components/markdown-table.test.d.mts +0 -1
- package/dist/markdown/components/markdown-table.test.mjs +0 -18
- package/dist/markdown/components/markdown-table.test.mjs.map +0 -1
- package/dist/markdown/contexts/markdown-table.test.cjs +0 -16
- package/dist/markdown/contexts/markdown-table.test.d.cts +0 -1
- package/dist/markdown/contexts/markdown-table.test.d.mts +0 -1
- package/dist/markdown/contexts/markdown-table.test.mjs +0 -18
- package/dist/markdown/contexts/markdown-table.test.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.cjs +0 -78
- package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +0 -78
- package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@vitest_expect@4.1.7/node_modules/@vitest/expect/dist/index.cjs +0 -1487
- package/dist/node_modules/.pnpm/@vitest_expect@4.1.7/node_modules/@vitest/expect/dist/index.mjs +0 -1473
- package/dist/node_modules/.pnpm/@vitest_expect@4.1.7/node_modules/@vitest/expect/dist/index.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@vitest_pretty-format@4.1.7/node_modules/@vitest/pretty-format/dist/index.cjs +0 -889
- package/dist/node_modules/.pnpm/@vitest_pretty-format@4.1.7/node_modules/@vitest/pretty-format/dist/index.mjs +0 -888
- package/dist/node_modules/.pnpm/@vitest_pretty-format@4.1.7/node_modules/@vitest/pretty-format/dist/index.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.cjs +0 -1614
- package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.mjs +0 -1594
- package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/index.cjs +0 -1
- package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/index.mjs +0 -3
- package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/utils.cjs +0 -1
- package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/utils.mjs +0 -3
- package/dist/node_modules/.pnpm/@vitest_snapshot@4.1.7/node_modules/@vitest/snapshot/dist/index.cjs +0 -923
- package/dist/node_modules/.pnpm/@vitest_snapshot@4.1.7/node_modules/@vitest/snapshot/dist/index.mjs +0 -922
- package/dist/node_modules/.pnpm/@vitest_snapshot@4.1.7/node_modules/@vitest/snapshot/dist/index.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@vitest_spy@4.1.7/node_modules/@vitest/spy/dist/index.cjs +0 -391
- package/dist/node_modules/.pnpm/@vitest_spy@4.1.7/node_modules/@vitest/spy/dist/index.mjs +0 -386
- package/dist/node_modules/.pnpm/@vitest_spy@4.1.7/node_modules/@vitest/spy/dist/index.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.cjs +0 -82
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.mjs +0 -82
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/diff.cjs +0 -1358
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/diff.mjs +0 -1357
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/diff.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/display.cjs +0 -561
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/display.mjs +0 -559
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/display.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/error.cjs +0 -37
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/error.mjs +0 -38
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/error.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/helpers.cjs +0 -197
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/helpers.mjs +0 -181
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/helpers.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/offset.cjs +0 -29
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/offset.mjs +0 -27
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/offset.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/serialize.cjs +0 -77
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/serialize.mjs +0 -77
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/serialize.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/source-map.cjs +0 -374
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/source-map.mjs +0 -374
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/source-map.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/timers.cjs +0 -38
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/timers.mjs +0 -37
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/timers.mjs.map +0 -1
- package/dist/node_modules/.pnpm/chai@6.2.2/node_modules/chai/index.cjs +0 -2978
- package/dist/node_modules/.pnpm/chai@6.2.2/node_modules/chai/index.mjs +0 -2973
- package/dist/node_modules/.pnpm/chai@6.2.2/node_modules/chai/index.mjs.map +0 -1
- package/dist/node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.cjs +0 -939
- package/dist/node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.mjs +0 -940
- package/dist/node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.mjs.map +0 -1
- package/dist/node_modules/.pnpm/tinyrainbow@3.1.0/node_modules/tinyrainbow/dist/index.cjs +0 -87
- package/dist/node_modules/.pnpm/tinyrainbow@3.1.0/node_modules/tinyrainbow/dist/index.mjs +0 -87
- package/dist/node_modules/.pnpm/tinyrainbow@3.1.0/node_modules/tinyrainbow/dist/index.mjs.map +0 -1
- package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/_commonjsHelpers.D26ty3Ew.cjs +0 -6
- package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/_commonjsHelpers.D26ty3Ew.mjs +0 -6
- package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/_commonjsHelpers.D26ty3Ew.mjs.map +0 -1
- package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/rpc.MzXet3jl.cjs +0 -54
- package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/rpc.MzXet3jl.mjs +0 -52
- package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/rpc.MzXet3jl.mjs.map +0 -1
- package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/test.DNmyFkvJ.cjs +0 -2696
- package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/test.DNmyFkvJ.mjs +0 -2697
- package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/test.DNmyFkvJ.mjs.map +0 -1
- package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/utils.BX5Fg8C4.cjs +0 -47
- package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/utils.BX5Fg8C4.mjs +0 -45
- package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/utils.BX5Fg8C4.mjs.map +0 -1
- package/dist/typescript/components/builtin-file.test.cjs +0 -16
- package/dist/typescript/components/builtin-file.test.d.cts +0 -1
- package/dist/typescript/components/builtin-file.test.d.mts +0 -1
- package/dist/typescript/components/builtin-file.test.mjs +0 -18
- package/dist/typescript/components/builtin-file.test.mjs.map +0 -1
- package/dist/typescript/components/class-declaration.test.cjs +0 -16
- package/dist/typescript/components/class-declaration.test.d.cts +0 -1
- package/dist/typescript/components/class-declaration.test.d.mts +0 -1
- package/dist/typescript/components/class-declaration.test.mjs +0 -18
- package/dist/typescript/components/class-declaration.test.mjs.map +0 -1
- package/dist/typescript/components/dynamic-import-statement.test.cjs +0 -16
- package/dist/typescript/components/dynamic-import-statement.test.d.cts +0 -1
- package/dist/typescript/components/dynamic-import-statement.test.d.mts +0 -1
- package/dist/typescript/components/dynamic-import-statement.test.mjs +0 -18
- package/dist/typescript/components/dynamic-import-statement.test.mjs.map +0 -1
- package/dist/typescript/components/entry-file.test.cjs +0 -16
- package/dist/typescript/components/entry-file.test.d.cts +0 -1
- package/dist/typescript/components/entry-file.test.d.mts +0 -1
- package/dist/typescript/components/entry-file.test.mjs +0 -18
- package/dist/typescript/components/entry-file.test.mjs.map +0 -1
- package/dist/typescript/components/interface-declaration.test.cjs +0 -16
- package/dist/typescript/components/interface-declaration.test.d.cts +0 -1
- package/dist/typescript/components/interface-declaration.test.d.mts +0 -1
- package/dist/typescript/components/interface-declaration.test.mjs +0 -18
- package/dist/typescript/components/interface-declaration.test.mjs.map +0 -1
- package/dist/typescript/components/object-declaration.test.cjs +0 -16
- package/dist/typescript/components/object-declaration.test.d.cts +0 -1
- package/dist/typescript/components/object-declaration.test.d.mts +0 -1
- package/dist/typescript/components/object-declaration.test.mjs +0 -18
- package/dist/typescript/components/object-declaration.test.mjs.map +0 -1
- package/dist/typescript/components/property-name.test.cjs +0 -16
- package/dist/typescript/components/property-name.test.d.cts +0 -1
- package/dist/typescript/components/property-name.test.d.mts +0 -1
- package/dist/typescript/components/property-name.test.mjs +0 -18
- package/dist/typescript/components/property-name.test.mjs.map +0 -1
- package/dist/typescript/components/record-expression.test.cjs +0 -16
- package/dist/typescript/components/record-expression.test.d.cts +0 -1
- package/dist/typescript/components/record-expression.test.d.mts +0 -1
- package/dist/typescript/components/record-expression.test.mjs +0 -18
- package/dist/typescript/components/record-expression.test.mjs.map +0 -1
- package/dist/typescript/components/tsdoc-schema.test.cjs +0 -16
- package/dist/typescript/components/tsdoc-schema.test.d.cts +0 -1
- package/dist/typescript/components/tsdoc-schema.test.d.mts +0 -1
- package/dist/typescript/components/tsdoc-schema.test.mjs +0 -18
- package/dist/typescript/components/tsdoc-schema.test.mjs.map +0 -1
- package/dist/typescript/components/tsdoc.test.cjs +0 -16
- package/dist/typescript/components/tsdoc.test.d.cts +0 -1
- package/dist/typescript/components/tsdoc.test.d.mts +0 -1
- package/dist/typescript/components/tsdoc.test.mjs +0 -18
- package/dist/typescript/components/tsdoc.test.mjs.map +0 -1
- package/dist/typescript/components/type-declaration.test.cjs +0 -16
- package/dist/typescript/components/type-declaration.test.d.cts +0 -1
- package/dist/typescript/components/type-declaration.test.d.mts +0 -1
- package/dist/typescript/components/type-declaration.test.mjs +0 -18
- package/dist/typescript/components/type-declaration.test.mjs.map +0 -1
- package/dist/typescript/components/type-parameters.test.cjs +0 -16
- package/dist/typescript/components/type-parameters.test.d.cts +0 -1
- package/dist/typescript/components/type-parameters.test.d.mts +0 -1
- package/dist/typescript/components/type-parameters.test.mjs +0 -18
- package/dist/typescript/components/type-parameters.test.mjs.map +0 -1
- package/dist/typescript/components/typescript-file.test.cjs +0 -16
- package/dist/typescript/components/typescript-file.test.d.cts +0 -1
- package/dist/typescript/components/typescript-file.test.d.mts +0 -1
- package/dist/typescript/components/typescript-file.test.mjs +0 -18
- package/dist/typescript/components/typescript-file.test.mjs.map +0 -1
- package/dist/typescript/contexts/lexical-scope.test.cjs +0 -16
- package/dist/typescript/contexts/lexical-scope.test.d.cts +0 -1
- package/dist/typescript/contexts/lexical-scope.test.d.mts +0 -1
- package/dist/typescript/contexts/lexical-scope.test.mjs +0 -18
- package/dist/typescript/contexts/lexical-scope.test.mjs.map +0 -1
- package/dist/typescript/contexts/member-scope.test.cjs +0 -16
- package/dist/typescript/contexts/member-scope.test.d.cts +0 -1
- package/dist/typescript/contexts/member-scope.test.d.mts +0 -1
- package/dist/typescript/contexts/member-scope.test.mjs +0 -18
- package/dist/typescript/contexts/member-scope.test.mjs.map +0 -1
- package/dist/typescript/helpers/get-call-signature-props.test.cjs +0 -16
- package/dist/typescript/helpers/get-call-signature-props.test.d.cts +0 -1
- package/dist/typescript/helpers/get-call-signature-props.test.d.mts +0 -1
- package/dist/typescript/helpers/get-call-signature-props.test.mjs +0 -18
- package/dist/typescript/helpers/get-call-signature-props.test.mjs.map +0 -1
- package/dist/typescript/helpers/utilities.test.cjs +0 -16
- package/dist/typescript/helpers/utilities.test.d.cts +0 -1
- package/dist/typescript/helpers/utilities.test.d.mts +0 -1
- package/dist/typescript/helpers/utilities.test.mjs +0 -18
- package/dist/typescript/helpers/utilities.test.mjs.map +0 -1
- package/dist/yaml/components/yaml-file.test.cjs +0 -16
- package/dist/yaml/components/yaml-file.test.d.cts +0 -1
- package/dist/yaml/components/yaml-file.test.d.mts +0 -1
- package/dist/yaml/components/yaml-file.test.mjs +0 -18
- package/dist/yaml/components/yaml-file.test.mjs.map +0 -1
package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/source-map.mjs
DELETED
|
@@ -1,374 +0,0 @@
|
|
|
1
|
-
import { isPrimitive, notNullish } from "./helpers.mjs";
|
|
2
|
-
import { resolve } from "./chunk-pathe.M-eThtNZ.mjs";
|
|
3
|
-
|
|
4
|
-
//#region ../../../node_modules/.pnpm/@vitest+utils@4.1.7/node_modules/@vitest/utils/dist/source-map.js
|
|
5
|
-
var comma = ",".charCodeAt(0);
|
|
6
|
-
var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
7
|
-
var intToChar = new Uint8Array(64);
|
|
8
|
-
var charToInt = new Uint8Array(128);
|
|
9
|
-
for (let i = 0; i < chars.length; i++) {
|
|
10
|
-
const c = chars.charCodeAt(i);
|
|
11
|
-
intToChar[i] = c;
|
|
12
|
-
charToInt[c] = i;
|
|
13
|
-
}
|
|
14
|
-
function decodeInteger(reader, relative) {
|
|
15
|
-
let value = 0;
|
|
16
|
-
let shift = 0;
|
|
17
|
-
let integer = 0;
|
|
18
|
-
do {
|
|
19
|
-
integer = charToInt[reader.next()];
|
|
20
|
-
value |= (integer & 31) << shift;
|
|
21
|
-
shift += 5;
|
|
22
|
-
} while (integer & 32);
|
|
23
|
-
const shouldNegate = value & 1;
|
|
24
|
-
value >>>= 1;
|
|
25
|
-
if (shouldNegate) value = -2147483648 | -value;
|
|
26
|
-
return relative + value;
|
|
27
|
-
}
|
|
28
|
-
function hasMoreVlq(reader, max) {
|
|
29
|
-
if (reader.pos >= max) return false;
|
|
30
|
-
return reader.peek() !== comma;
|
|
31
|
-
}
|
|
32
|
-
var StringReader = class {
|
|
33
|
-
constructor(buffer) {
|
|
34
|
-
this.pos = 0;
|
|
35
|
-
this.buffer = buffer;
|
|
36
|
-
}
|
|
37
|
-
next() {
|
|
38
|
-
return this.buffer.charCodeAt(this.pos++);
|
|
39
|
-
}
|
|
40
|
-
peek() {
|
|
41
|
-
return this.buffer.charCodeAt(this.pos);
|
|
42
|
-
}
|
|
43
|
-
indexOf(char) {
|
|
44
|
-
const { buffer, pos } = this;
|
|
45
|
-
const idx = buffer.indexOf(char, pos);
|
|
46
|
-
return idx === -1 ? buffer.length : idx;
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
function decode(mappings) {
|
|
50
|
-
const { length } = mappings;
|
|
51
|
-
const reader = new StringReader(mappings);
|
|
52
|
-
const decoded = [];
|
|
53
|
-
let genColumn = 0;
|
|
54
|
-
let sourcesIndex = 0;
|
|
55
|
-
let sourceLine = 0;
|
|
56
|
-
let sourceColumn = 0;
|
|
57
|
-
let namesIndex = 0;
|
|
58
|
-
do {
|
|
59
|
-
const semi = reader.indexOf(";");
|
|
60
|
-
const line = [];
|
|
61
|
-
let sorted = true;
|
|
62
|
-
let lastCol = 0;
|
|
63
|
-
genColumn = 0;
|
|
64
|
-
while (reader.pos < semi) {
|
|
65
|
-
let seg;
|
|
66
|
-
genColumn = decodeInteger(reader, genColumn);
|
|
67
|
-
if (genColumn < lastCol) sorted = false;
|
|
68
|
-
lastCol = genColumn;
|
|
69
|
-
if (hasMoreVlq(reader, semi)) {
|
|
70
|
-
sourcesIndex = decodeInteger(reader, sourcesIndex);
|
|
71
|
-
sourceLine = decodeInteger(reader, sourceLine);
|
|
72
|
-
sourceColumn = decodeInteger(reader, sourceColumn);
|
|
73
|
-
if (hasMoreVlq(reader, semi)) {
|
|
74
|
-
namesIndex = decodeInteger(reader, namesIndex);
|
|
75
|
-
seg = [
|
|
76
|
-
genColumn,
|
|
77
|
-
sourcesIndex,
|
|
78
|
-
sourceLine,
|
|
79
|
-
sourceColumn,
|
|
80
|
-
namesIndex
|
|
81
|
-
];
|
|
82
|
-
} else seg = [
|
|
83
|
-
genColumn,
|
|
84
|
-
sourcesIndex,
|
|
85
|
-
sourceLine,
|
|
86
|
-
sourceColumn
|
|
87
|
-
];
|
|
88
|
-
} else seg = [genColumn];
|
|
89
|
-
line.push(seg);
|
|
90
|
-
reader.pos++;
|
|
91
|
-
}
|
|
92
|
-
if (!sorted) sort(line);
|
|
93
|
-
decoded.push(line);
|
|
94
|
-
reader.pos = semi + 1;
|
|
95
|
-
} while (reader.pos <= length);
|
|
96
|
-
return decoded;
|
|
97
|
-
}
|
|
98
|
-
function sort(line) {
|
|
99
|
-
line.sort(sortComparator);
|
|
100
|
-
}
|
|
101
|
-
function sortComparator(a, b) {
|
|
102
|
-
return a[0] - b[0];
|
|
103
|
-
}
|
|
104
|
-
var COLUMN = 0;
|
|
105
|
-
var SOURCES_INDEX = 1;
|
|
106
|
-
var SOURCE_LINE = 2;
|
|
107
|
-
var SOURCE_COLUMN = 3;
|
|
108
|
-
var NAMES_INDEX = 4;
|
|
109
|
-
var found = false;
|
|
110
|
-
function binarySearch(haystack, needle, low, high) {
|
|
111
|
-
while (low <= high) {
|
|
112
|
-
const mid = low + (high - low >> 1);
|
|
113
|
-
const cmp = haystack[mid][COLUMN] - needle;
|
|
114
|
-
if (cmp === 0) {
|
|
115
|
-
found = true;
|
|
116
|
-
return mid;
|
|
117
|
-
}
|
|
118
|
-
if (cmp < 0) low = mid + 1;
|
|
119
|
-
else high = mid - 1;
|
|
120
|
-
}
|
|
121
|
-
found = false;
|
|
122
|
-
return low - 1;
|
|
123
|
-
}
|
|
124
|
-
function upperBound(haystack, needle, index) {
|
|
125
|
-
for (let i = index + 1; i < haystack.length; index = i++) if (haystack[i][COLUMN] !== needle) break;
|
|
126
|
-
return index;
|
|
127
|
-
}
|
|
128
|
-
function lowerBound(haystack, needle, index) {
|
|
129
|
-
for (let i = index - 1; i >= 0; index = i--) if (haystack[i][COLUMN] !== needle) break;
|
|
130
|
-
return index;
|
|
131
|
-
}
|
|
132
|
-
function memoizedBinarySearch(haystack, needle, state, key) {
|
|
133
|
-
const { lastKey, lastNeedle, lastIndex } = state;
|
|
134
|
-
let low = 0;
|
|
135
|
-
let high = haystack.length - 1;
|
|
136
|
-
if (key === lastKey) {
|
|
137
|
-
if (needle === lastNeedle) {
|
|
138
|
-
found = lastIndex !== -1 && haystack[lastIndex][COLUMN] === needle;
|
|
139
|
-
return lastIndex;
|
|
140
|
-
}
|
|
141
|
-
if (needle >= lastNeedle) low = lastIndex === -1 ? 0 : lastIndex;
|
|
142
|
-
else high = lastIndex;
|
|
143
|
-
}
|
|
144
|
-
state.lastKey = key;
|
|
145
|
-
state.lastNeedle = needle;
|
|
146
|
-
return state.lastIndex = binarySearch(haystack, needle, low, high);
|
|
147
|
-
}
|
|
148
|
-
var LINE_GTR_ZERO = "`line` must be greater than 0 (lines start at line 1)";
|
|
149
|
-
var COL_GTR_EQ_ZERO = "`column` must be greater than or equal to 0 (columns start at column 0)";
|
|
150
|
-
var LEAST_UPPER_BOUND = -1;
|
|
151
|
-
var GREATEST_LOWER_BOUND = 1;
|
|
152
|
-
function cast(map) {
|
|
153
|
-
return map;
|
|
154
|
-
}
|
|
155
|
-
function decodedMappings(map) {
|
|
156
|
-
var _a;
|
|
157
|
-
return (_a = cast(map))._decoded || (_a._decoded = decode(cast(map)._encoded));
|
|
158
|
-
}
|
|
159
|
-
function originalPositionFor(map, needle) {
|
|
160
|
-
let { line, column, bias } = needle;
|
|
161
|
-
line--;
|
|
162
|
-
if (line < 0) throw new Error(LINE_GTR_ZERO);
|
|
163
|
-
if (column < 0) throw new Error(COL_GTR_EQ_ZERO);
|
|
164
|
-
const decoded = decodedMappings(map);
|
|
165
|
-
if (line >= decoded.length) return OMapping(null, null, null, null);
|
|
166
|
-
const segments = decoded[line];
|
|
167
|
-
const index = traceSegmentInternal(segments, cast(map)._decodedMemo, line, column, bias || GREATEST_LOWER_BOUND);
|
|
168
|
-
if (index === -1) return OMapping(null, null, null, null);
|
|
169
|
-
const segment = segments[index];
|
|
170
|
-
if (segment.length === 1) return OMapping(null, null, null, null);
|
|
171
|
-
const { names, resolvedSources } = map;
|
|
172
|
-
return OMapping(resolvedSources[segment[SOURCES_INDEX]], segment[SOURCE_LINE] + 1, segment[SOURCE_COLUMN], segment.length === 5 ? names[segment[NAMES_INDEX]] : null);
|
|
173
|
-
}
|
|
174
|
-
function OMapping(source, line, column, name) {
|
|
175
|
-
return {
|
|
176
|
-
source,
|
|
177
|
-
line,
|
|
178
|
-
column,
|
|
179
|
-
name
|
|
180
|
-
};
|
|
181
|
-
}
|
|
182
|
-
function traceSegmentInternal(segments, memo, line, column, bias) {
|
|
183
|
-
let index = memoizedBinarySearch(segments, column, memo, line);
|
|
184
|
-
if (found) index = (bias === LEAST_UPPER_BOUND ? upperBound : lowerBound)(segments, column, index);
|
|
185
|
-
else if (bias === LEAST_UPPER_BOUND) index++;
|
|
186
|
-
if (index === -1 || index === segments.length) return -1;
|
|
187
|
-
return index;
|
|
188
|
-
}
|
|
189
|
-
const CHROME_IE_STACK_REGEXP = /^\s*at .*(?:\S:\d+|\(native\))/m;
|
|
190
|
-
const SAFARI_NATIVE_CODE_REGEXP = /^(?:eval@)?(?:\[native code\])?$/;
|
|
191
|
-
const stackIgnorePatterns = [
|
|
192
|
-
"node:internal",
|
|
193
|
-
/\/packages\/\w+\/dist\//,
|
|
194
|
-
/\/@vitest\/\w+\/dist\//,
|
|
195
|
-
"/vitest/dist/",
|
|
196
|
-
"/vitest/src/",
|
|
197
|
-
"/node_modules/chai/",
|
|
198
|
-
"/node_modules/tinyspy/",
|
|
199
|
-
"/vite/dist/node/module-runner",
|
|
200
|
-
"/rolldown-vite/dist/node/module-runner",
|
|
201
|
-
"/deps/chunk-",
|
|
202
|
-
"/deps/@vitest",
|
|
203
|
-
"/deps/loupe",
|
|
204
|
-
"/deps/chai",
|
|
205
|
-
"/browser-playwright/dist/locators.js",
|
|
206
|
-
"/browser-webdriverio/dist/locators.js",
|
|
207
|
-
"/browser-preview/dist/locators.js",
|
|
208
|
-
/node:\w+/,
|
|
209
|
-
/__vitest_test__/,
|
|
210
|
-
/__vitest_browser__/,
|
|
211
|
-
"/@id/__x00__vitest/browser",
|
|
212
|
-
/\/deps\/vitest_/
|
|
213
|
-
];
|
|
214
|
-
const NOW_LENGTH = Date.now().toString().length;
|
|
215
|
-
const REGEXP_VITEST = new RegExp(`vitest=\\d{${NOW_LENGTH}}`);
|
|
216
|
-
function extractLocation(urlLike) {
|
|
217
|
-
if (!urlLike.includes(":")) return [urlLike];
|
|
218
|
-
const parts = /(.+?)(?::(\d+))?(?::(\d+))?$/.exec(urlLike.replace(/^\(|\)$/g, ""));
|
|
219
|
-
if (!parts) return [urlLike];
|
|
220
|
-
let url = parts[1];
|
|
221
|
-
if (url.startsWith("async ")) url = url.slice(6);
|
|
222
|
-
if (url.startsWith("http:") || url.startsWith("https:")) {
|
|
223
|
-
const urlObj = new URL(url);
|
|
224
|
-
urlObj.searchParams.delete("import");
|
|
225
|
-
urlObj.searchParams.delete("browserv");
|
|
226
|
-
url = urlObj.pathname + urlObj.hash + urlObj.search;
|
|
227
|
-
}
|
|
228
|
-
if (url.startsWith("/@fs/")) {
|
|
229
|
-
const isWindows = /^\/@fs\/[a-zA-Z]:\//.test(url);
|
|
230
|
-
url = url.slice(isWindows ? 5 : 4);
|
|
231
|
-
}
|
|
232
|
-
if (url.includes("vitest=")) url = url.replace(REGEXP_VITEST, "").replace(/[?&]$/, "");
|
|
233
|
-
return [
|
|
234
|
-
url,
|
|
235
|
-
parts[2] || void 0,
|
|
236
|
-
parts[3] || void 0
|
|
237
|
-
];
|
|
238
|
-
}
|
|
239
|
-
function parseSingleFFOrSafariStack(raw) {
|
|
240
|
-
let line = raw.trim();
|
|
241
|
-
if (SAFARI_NATIVE_CODE_REGEXP.test(line)) return null;
|
|
242
|
-
if (line.includes(" > eval")) line = line.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, ":$1");
|
|
243
|
-
if (!line.includes("@")) return null;
|
|
244
|
-
let atIndex = -1;
|
|
245
|
-
let locationPart = "";
|
|
246
|
-
let functionName;
|
|
247
|
-
for (let i = 0; i < line.length; i++) if (line[i] === "@") {
|
|
248
|
-
const candidateLocation = line.slice(i + 1);
|
|
249
|
-
if (candidateLocation.includes(":") && candidateLocation.length >= 3) {
|
|
250
|
-
atIndex = i;
|
|
251
|
-
locationPart = candidateLocation;
|
|
252
|
-
functionName = i > 0 ? line.slice(0, i) : void 0;
|
|
253
|
-
break;
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
if (atIndex === -1 || !locationPart.includes(":") || locationPart.length < 3) return null;
|
|
257
|
-
const [url, lineNumber, columnNumber] = extractLocation(locationPart);
|
|
258
|
-
if (!url || !lineNumber || !columnNumber) return null;
|
|
259
|
-
return {
|
|
260
|
-
file: url,
|
|
261
|
-
method: functionName || "",
|
|
262
|
-
line: Number.parseInt(lineNumber),
|
|
263
|
-
column: Number.parseInt(columnNumber)
|
|
264
|
-
};
|
|
265
|
-
}
|
|
266
|
-
function parseSingleStack(raw) {
|
|
267
|
-
const line = raw.trim();
|
|
268
|
-
if (!CHROME_IE_STACK_REGEXP.test(line)) return parseSingleFFOrSafariStack(line);
|
|
269
|
-
return parseSingleV8Stack(line);
|
|
270
|
-
}
|
|
271
|
-
function parseSingleV8Stack(raw) {
|
|
272
|
-
let line = raw.trim();
|
|
273
|
-
if (!CHROME_IE_STACK_REGEXP.test(line)) return null;
|
|
274
|
-
if (line.includes("(eval ")) line = line.replace(/eval code/g, "eval").replace(/(\(eval at [^()]*)|(,.*$)/g, "");
|
|
275
|
-
let sanitizedLine = line.replace(/^\s+/, "").replace(/\(eval code/g, "(").replace(/^.*?\s+/, "");
|
|
276
|
-
const location = sanitizedLine.match(/ (\(.+\)$)/);
|
|
277
|
-
sanitizedLine = location ? sanitizedLine.replace(location[0], "") : sanitizedLine;
|
|
278
|
-
const [url, lineNumber, columnNumber] = extractLocation(location ? location[1] : sanitizedLine);
|
|
279
|
-
let method = location && sanitizedLine || "";
|
|
280
|
-
let file = url && ["eval", "<anonymous>"].includes(url) ? void 0 : url;
|
|
281
|
-
if (!file || !lineNumber || !columnNumber) return null;
|
|
282
|
-
if (method.startsWith("async ")) method = method.slice(6);
|
|
283
|
-
if (file.startsWith("file://")) file = file.slice(7);
|
|
284
|
-
file = file.startsWith("node:") || file.startsWith("internal:") ? file : resolve(file);
|
|
285
|
-
if (method) method = method.replace(/\(0\s?,\s?__vite_ssr_import_\d+__.(\w+)\)/g, "$1").replace(/__(vite_ssr_import|vi_import)_\d+__\./g, "").replace(/(Object\.)?__vite_ssr_export_default__\s?/g, "");
|
|
286
|
-
return {
|
|
287
|
-
method,
|
|
288
|
-
file,
|
|
289
|
-
line: Number.parseInt(lineNumber),
|
|
290
|
-
column: Number.parseInt(columnNumber)
|
|
291
|
-
};
|
|
292
|
-
}
|
|
293
|
-
function parseStacktrace(stack, options = {}) {
|
|
294
|
-
const { ignoreStackEntries = stackIgnorePatterns } = options;
|
|
295
|
-
let stacks = !CHROME_IE_STACK_REGEXP.test(stack) ? parseFFOrSafariStackTrace(stack) : parseV8Stacktrace(stack);
|
|
296
|
-
const helperIndex = stacks.findLastIndex((s) => s.method.includes("__VITEST_HELPER__"));
|
|
297
|
-
if (helperIndex >= 0) stacks = stacks.slice(helperIndex + 1);
|
|
298
|
-
return stacks.map((stack) => {
|
|
299
|
-
if (options.getUrlId) stack.file = options.getUrlId(stack.file);
|
|
300
|
-
const map = options.getSourceMap?.(stack.file);
|
|
301
|
-
if (!map || typeof map !== "object" || !map.version) return shouldFilter(ignoreStackEntries, stack.file) ? null : stack;
|
|
302
|
-
const position = getOriginalPosition(new DecodedMap(map, stack.file), stack);
|
|
303
|
-
if (!position) return stack;
|
|
304
|
-
const { line, column, source, name } = position;
|
|
305
|
-
let file = source || stack.file;
|
|
306
|
-
if (file.match(/\/\w:\//)) file = file.slice(1);
|
|
307
|
-
if (shouldFilter(ignoreStackEntries, file)) return null;
|
|
308
|
-
if (line != null && column != null) return {
|
|
309
|
-
line,
|
|
310
|
-
column,
|
|
311
|
-
file,
|
|
312
|
-
method: name || stack.method
|
|
313
|
-
};
|
|
314
|
-
return stack;
|
|
315
|
-
}).filter((s) => s != null);
|
|
316
|
-
}
|
|
317
|
-
function shouldFilter(ignoreStackEntries, file) {
|
|
318
|
-
return ignoreStackEntries.some((p) => file.match(p));
|
|
319
|
-
}
|
|
320
|
-
function parseFFOrSafariStackTrace(stack) {
|
|
321
|
-
return stack.split("\n").map((line) => parseSingleFFOrSafariStack(line)).filter(notNullish);
|
|
322
|
-
}
|
|
323
|
-
function parseV8Stacktrace(stack) {
|
|
324
|
-
return stack.split("\n").map((line) => parseSingleV8Stack(line)).filter(notNullish);
|
|
325
|
-
}
|
|
326
|
-
function parseErrorStacktrace(e, options = {}) {
|
|
327
|
-
if (!e || isPrimitive(e)) return [];
|
|
328
|
-
if ("stacks" in e && e.stacks) return e.stacks;
|
|
329
|
-
const stackStr = e.stack || "";
|
|
330
|
-
let stackFrames = typeof stackStr === "string" ? parseStacktrace(stackStr, options) : [];
|
|
331
|
-
if (!stackFrames.length) {
|
|
332
|
-
const e_ = e;
|
|
333
|
-
if (e_.fileName != null && e_.lineNumber != null && e_.columnNumber != null) stackFrames = parseStacktrace(`${e_.fileName}:${e_.lineNumber}:${e_.columnNumber}`, options);
|
|
334
|
-
if (e_.sourceURL != null && e_.line != null && e_._column != null) stackFrames = parseStacktrace(`${e_.sourceURL}:${e_.line}:${e_.column}`, options);
|
|
335
|
-
}
|
|
336
|
-
if (options.frameFilter) stackFrames = stackFrames.filter((f) => options.frameFilter(e, f) !== false);
|
|
337
|
-
e.stacks = stackFrames;
|
|
338
|
-
return stackFrames;
|
|
339
|
-
}
|
|
340
|
-
var DecodedMap = class {
|
|
341
|
-
_encoded;
|
|
342
|
-
_decoded;
|
|
343
|
-
_decodedMemo;
|
|
344
|
-
url;
|
|
345
|
-
version;
|
|
346
|
-
names = [];
|
|
347
|
-
resolvedSources;
|
|
348
|
-
constructor(map, from) {
|
|
349
|
-
this.map = map;
|
|
350
|
-
const { mappings, names, sources } = map;
|
|
351
|
-
this.version = map.version;
|
|
352
|
-
this.names = names || [];
|
|
353
|
-
this._encoded = mappings || "";
|
|
354
|
-
this._decodedMemo = memoizedState();
|
|
355
|
-
this.url = from;
|
|
356
|
-
this.resolvedSources = (sources || []).map((s) => resolve(from, "..", s || ""));
|
|
357
|
-
}
|
|
358
|
-
};
|
|
359
|
-
function memoizedState() {
|
|
360
|
-
return {
|
|
361
|
-
lastKey: -1,
|
|
362
|
-
lastNeedle: -1,
|
|
363
|
-
lastIndex: -1
|
|
364
|
-
};
|
|
365
|
-
}
|
|
366
|
-
function getOriginalPosition(map, needle) {
|
|
367
|
-
const result = originalPositionFor(map, needle);
|
|
368
|
-
if (result.column == null) return null;
|
|
369
|
-
return result;
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
//#endregion
|
|
373
|
-
export { parseErrorStacktrace, parseSingleStack };
|
|
374
|
-
//# sourceMappingURL=source-map.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"source-map.mjs","names":[],"sources":["../../../../../../../../../../../node_modules/.pnpm/@vitest+utils@4.1.7/node_modules/@vitest/utils/dist/source-map.js"],"sourcesContent":["import { isPrimitive, notNullish } from './helpers.js';\nimport { r as resolve } from './chunk-pathe.M-eThtNZ.js';\nimport './constants.js';\n\n// src/vlq.ts\nvar comma = \",\".charCodeAt(0);\nvar chars = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";\nvar intToChar = new Uint8Array(64);\nvar charToInt = new Uint8Array(128);\nfor (let i = 0; i < chars.length; i++) {\n const c = chars.charCodeAt(i);\n intToChar[i] = c;\n charToInt[c] = i;\n}\nfunction decodeInteger(reader, relative) {\n let value = 0;\n let shift = 0;\n let integer = 0;\n do {\n const c = reader.next();\n integer = charToInt[c];\n value |= (integer & 31) << shift;\n shift += 5;\n } while (integer & 32);\n const shouldNegate = value & 1;\n value >>>= 1;\n if (shouldNegate) {\n value = -2147483648 | -value;\n }\n return relative + value;\n}\nfunction hasMoreVlq(reader, max) {\n if (reader.pos >= max) return false;\n return reader.peek() !== comma;\n}\nvar StringReader = class {\n constructor(buffer) {\n this.pos = 0;\n this.buffer = buffer;\n }\n next() {\n return this.buffer.charCodeAt(this.pos++);\n }\n peek() {\n return this.buffer.charCodeAt(this.pos);\n }\n indexOf(char) {\n const { buffer, pos } = this;\n const idx = buffer.indexOf(char, pos);\n return idx === -1 ? buffer.length : idx;\n }\n};\n\n// src/sourcemap-codec.ts\nfunction decode(mappings) {\n const { length } = mappings;\n const reader = new StringReader(mappings);\n const decoded = [];\n let genColumn = 0;\n let sourcesIndex = 0;\n let sourceLine = 0;\n let sourceColumn = 0;\n let namesIndex = 0;\n do {\n const semi = reader.indexOf(\";\");\n const line = [];\n let sorted = true;\n let lastCol = 0;\n genColumn = 0;\n while (reader.pos < semi) {\n let seg;\n genColumn = decodeInteger(reader, genColumn);\n if (genColumn < lastCol) sorted = false;\n lastCol = genColumn;\n if (hasMoreVlq(reader, semi)) {\n sourcesIndex = decodeInteger(reader, sourcesIndex);\n sourceLine = decodeInteger(reader, sourceLine);\n sourceColumn = decodeInteger(reader, sourceColumn);\n if (hasMoreVlq(reader, semi)) {\n namesIndex = decodeInteger(reader, namesIndex);\n seg = [genColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex];\n } else {\n seg = [genColumn, sourcesIndex, sourceLine, sourceColumn];\n }\n } else {\n seg = [genColumn];\n }\n line.push(seg);\n reader.pos++;\n }\n if (!sorted) sort(line);\n decoded.push(line);\n reader.pos = semi + 1;\n } while (reader.pos <= length);\n return decoded;\n}\nfunction sort(line) {\n line.sort(sortComparator);\n}\nfunction sortComparator(a, b) {\n return a[0] - b[0];\n}\n\n// src/trace-mapping.ts\n\n// src/sourcemap-segment.ts\nvar COLUMN = 0;\nvar SOURCES_INDEX = 1;\nvar SOURCE_LINE = 2;\nvar SOURCE_COLUMN = 3;\nvar NAMES_INDEX = 4;\n\n// src/binary-search.ts\nvar found = false;\nfunction binarySearch(haystack, needle, low, high) {\n while (low <= high) {\n const mid = low + (high - low >> 1);\n const cmp = haystack[mid][COLUMN] - needle;\n if (cmp === 0) {\n found = true;\n return mid;\n }\n if (cmp < 0) {\n low = mid + 1;\n } else {\n high = mid - 1;\n }\n }\n found = false;\n return low - 1;\n}\nfunction upperBound(haystack, needle, index) {\n for (let i = index + 1; i < haystack.length; index = i++) {\n if (haystack[i][COLUMN] !== needle) break;\n }\n return index;\n}\nfunction lowerBound(haystack, needle, index) {\n for (let i = index - 1; i >= 0; index = i--) {\n if (haystack[i][COLUMN] !== needle) break;\n }\n return index;\n}\nfunction memoizedBinarySearch(haystack, needle, state, key) {\n const { lastKey, lastNeedle, lastIndex } = state;\n let low = 0;\n let high = haystack.length - 1;\n if (key === lastKey) {\n if (needle === lastNeedle) {\n found = lastIndex !== -1 && haystack[lastIndex][COLUMN] === needle;\n return lastIndex;\n }\n if (needle >= lastNeedle) {\n low = lastIndex === -1 ? 0 : lastIndex;\n } else {\n high = lastIndex;\n }\n }\n state.lastKey = key;\n state.lastNeedle = needle;\n return state.lastIndex = binarySearch(haystack, needle, low, high);\n}\n\n// src/trace-mapping.ts\nvar LINE_GTR_ZERO = \"`line` must be greater than 0 (lines start at line 1)\";\nvar COL_GTR_EQ_ZERO = \"`column` must be greater than or equal to 0 (columns start at column 0)\";\nvar LEAST_UPPER_BOUND = -1;\nvar GREATEST_LOWER_BOUND = 1;\nfunction cast(map) {\n return map;\n}\nfunction decodedMappings(map) {\n var _a;\n return (_a = cast(map))._decoded || (_a._decoded = decode(cast(map)._encoded));\n}\nfunction originalPositionFor(map, needle) {\n let { line, column, bias } = needle;\n line--;\n if (line < 0) throw new Error(LINE_GTR_ZERO);\n if (column < 0) throw new Error(COL_GTR_EQ_ZERO);\n const decoded = decodedMappings(map);\n if (line >= decoded.length) return OMapping(null, null, null, null);\n const segments = decoded[line];\n const index = traceSegmentInternal(\n segments,\n cast(map)._decodedMemo,\n line,\n column,\n bias || GREATEST_LOWER_BOUND\n );\n if (index === -1) return OMapping(null, null, null, null);\n const segment = segments[index];\n if (segment.length === 1) return OMapping(null, null, null, null);\n const { names, resolvedSources } = map;\n return OMapping(\n resolvedSources[segment[SOURCES_INDEX]],\n segment[SOURCE_LINE] + 1,\n segment[SOURCE_COLUMN],\n segment.length === 5 ? names[segment[NAMES_INDEX]] : null\n );\n}\nfunction OMapping(source, line, column, name) {\n return { source, line, column, name };\n}\nfunction traceSegmentInternal(segments, memo, line, column, bias) {\n let index = memoizedBinarySearch(segments, column, memo, line);\n if (found) {\n index = (bias === LEAST_UPPER_BOUND ? upperBound : lowerBound)(segments, column, index);\n } else if (bias === LEAST_UPPER_BOUND) index++;\n if (index === -1 || index === segments.length) return -1;\n return index;\n}\n\nconst CHROME_IE_STACK_REGEXP = /^\\s*at .*(?:\\S:\\d+|\\(native\\))/m;\nconst SAFARI_NATIVE_CODE_REGEXP = /^(?:eval@)?(?:\\[native code\\])?$/;\nconst stackIgnorePatterns = [\n\t\"node:internal\",\n\t/\\/packages\\/\\w+\\/dist\\//,\n\t/\\/@vitest\\/\\w+\\/dist\\//,\n\t\"/vitest/dist/\",\n\t\"/vitest/src/\",\n\t\"/node_modules/chai/\",\n\t\"/node_modules/tinyspy/\",\n\t\"/vite/dist/node/module-runner\",\n\t\"/rolldown-vite/dist/node/module-runner\",\n\t\"/deps/chunk-\",\n\t\"/deps/@vitest\",\n\t\"/deps/loupe\",\n\t\"/deps/chai\",\n\t\"/browser-playwright/dist/locators.js\",\n\t\"/browser-webdriverio/dist/locators.js\",\n\t\"/browser-preview/dist/locators.js\",\n\t/node:\\w+/,\n\t/__vitest_test__/,\n\t/__vitest_browser__/,\n\t\"/@id/__x00__vitest/browser\",\n\t/\\/deps\\/vitest_/\n];\nconst NOW_LENGTH = Date.now().toString().length;\nconst REGEXP_VITEST = new RegExp(`vitest=\\\\d{${NOW_LENGTH}}`);\nfunction extractLocation(urlLike) {\n\t// Fail-fast but return locations like \"(native)\"\n\tif (!urlLike.includes(\":\")) {\n\t\treturn [urlLike];\n\t}\n\tconst regExp = /(.+?)(?::(\\d+))?(?::(\\d+))?$/;\n\tconst parts = regExp.exec(urlLike.replace(/^\\(|\\)$/g, \"\"));\n\tif (!parts) {\n\t\treturn [urlLike];\n\t}\n\tlet url = parts[1];\n\tif (url.startsWith(\"async \")) {\n\t\turl = url.slice(6);\n\t}\n\tif (url.startsWith(\"http:\") || url.startsWith(\"https:\")) {\n\t\tconst urlObj = new URL(url);\n\t\turlObj.searchParams.delete(\"import\");\n\t\turlObj.searchParams.delete(\"browserv\");\n\t\turl = urlObj.pathname + urlObj.hash + urlObj.search;\n\t}\n\tif (url.startsWith(\"/@fs/\")) {\n\t\tconst isWindows = /^\\/@fs\\/[a-zA-Z]:\\//.test(url);\n\t\turl = url.slice(isWindows ? 5 : 4);\n\t}\n\tif (url.includes(\"vitest=\")) {\n\t\turl = url.replace(REGEXP_VITEST, \"\").replace(/[?&]$/, \"\");\n\t}\n\treturn [\n\t\turl,\n\t\tparts[2] || undefined,\n\t\tparts[3] || undefined\n\t];\n}\nfunction parseSingleFFOrSafariStack(raw) {\n\tlet line = raw.trim();\n\tif (SAFARI_NATIVE_CODE_REGEXP.test(line)) {\n\t\treturn null;\n\t}\n\tif (line.includes(\" > eval\")) {\n\t\tline = line.replace(/ line (\\d+)(?: > eval line \\d+)* > eval:\\d+:\\d+/g, \":$1\");\n\t}\n\t// Early return for lines that don't look like Firefox/Safari stack traces\n\t// Firefox/Safari stack traces must contain '@' and should have location info after it\n\tif (!line.includes(\"@\")) {\n\t\treturn null;\n\t}\n\t// Find the correct @ that separates function name from location\n\t// For cases like '@https://@fs/path' or 'functionName@https://@fs/path'\n\t// we need to find the first @ that precedes a valid location (containing :)\n\tlet atIndex = -1;\n\tlet locationPart = \"\";\n\tlet functionName;\n\t// Try each @ from left to right to find the one that gives us a valid location\n\tfor (let i = 0; i < line.length; i++) {\n\t\tif (line[i] === \"@\") {\n\t\t\tconst candidateLocation = line.slice(i + 1);\n\t\t\t// Minimum length 3 for valid location: 1 for filename + 1 for colon + 1 for line number (e.g., \"a:1\")\n\t\t\tif (candidateLocation.includes(\":\") && candidateLocation.length >= 3) {\n\t\t\t\tatIndex = i;\n\t\t\t\tlocationPart = candidateLocation;\n\t\t\t\tfunctionName = i > 0 ? line.slice(0, i) : undefined;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\t// Validate we found a valid location with minimum length (filename:line format)\n\tif (atIndex === -1 || !locationPart.includes(\":\") || locationPart.length < 3) {\n\t\treturn null;\n\t}\n\tconst [url, lineNumber, columnNumber] = extractLocation(locationPart);\n\tif (!url || !lineNumber || !columnNumber) {\n\t\treturn null;\n\t}\n\treturn {\n\t\tfile: url,\n\t\tmethod: functionName || \"\",\n\t\tline: Number.parseInt(lineNumber),\n\t\tcolumn: Number.parseInt(columnNumber)\n\t};\n}\nfunction parseSingleStack(raw) {\n\tconst line = raw.trim();\n\tif (!CHROME_IE_STACK_REGEXP.test(line)) {\n\t\treturn parseSingleFFOrSafariStack(line);\n\t}\n\treturn parseSingleV8Stack(line);\n}\n// Based on https://github.com/stacktracejs/error-stack-parser\n// Credit to stacktracejs\nfunction parseSingleV8Stack(raw) {\n\tlet line = raw.trim();\n\tif (!CHROME_IE_STACK_REGEXP.test(line)) {\n\t\treturn null;\n\t}\n\tif (line.includes(\"(eval \")) {\n\t\tline = line.replace(/eval code/g, \"eval\").replace(/(\\(eval at [^()]*)|(,.*$)/g, \"\");\n\t}\n\tlet sanitizedLine = line.replace(/^\\s+/, \"\").replace(/\\(eval code/g, \"(\").replace(/^.*?\\s+/, \"\");\n\t// capture and preserve the parenthesized location \"(/foo/my bar.js:12:87)\" in\n\t// case it has spaces in it, as the string is split on \\s+ later on\n\tconst location = sanitizedLine.match(/ (\\(.+\\)$)/);\n\t// remove the parenthesized location from the line, if it was matched\n\tsanitizedLine = location ? sanitizedLine.replace(location[0], \"\") : sanitizedLine;\n\t// if a location was matched, pass it to extractLocation() otherwise pass all sanitizedLine\n\t// because this line doesn't have function name\n\tconst [url, lineNumber, columnNumber] = extractLocation(location ? location[1] : sanitizedLine);\n\tlet method = location && sanitizedLine || \"\";\n\tlet file = url && [\"eval\", \"<anonymous>\"].includes(url) ? undefined : url;\n\tif (!file || !lineNumber || !columnNumber) {\n\t\treturn null;\n\t}\n\tif (method.startsWith(\"async \")) {\n\t\tmethod = method.slice(6);\n\t}\n\tif (file.startsWith(\"file://\")) {\n\t\tfile = file.slice(7);\n\t}\n\t// normalize Windows path (\\ -> /)\n\tfile = file.startsWith(\"node:\") || file.startsWith(\"internal:\") ? file : resolve(file);\n\tif (method) {\n\t\tmethod = method.replace(/\\(0\\s?,\\s?__vite_ssr_import_\\d+__.(\\w+)\\)/g, \"$1\").replace(/__(vite_ssr_import|vi_import)_\\d+__\\./g, \"\").replace(/(Object\\.)?__vite_ssr_export_default__\\s?/g, \"\");\n\t}\n\treturn {\n\t\tmethod,\n\t\tfile,\n\t\tline: Number.parseInt(lineNumber),\n\t\tcolumn: Number.parseInt(columnNumber)\n\t};\n}\nfunction createStackString(stacks) {\n\treturn stacks.map((stack) => {\n\t\tconst line = `${stack.file}:${stack.line}:${stack.column}`;\n\t\tif (stack.method) {\n\t\t\treturn ` at ${stack.method}(${line})`;\n\t\t}\n\t\treturn ` at ${line}`;\n\t}).join(\"\\n\");\n}\nfunction parseStacktrace(stack, options = {}) {\n\tconst { ignoreStackEntries = stackIgnorePatterns } = options;\n\tlet stacks = !CHROME_IE_STACK_REGEXP.test(stack) ? parseFFOrSafariStackTrace(stack) : parseV8Stacktrace(stack);\n\t// remove vi.defineHelper's internal stacks\n\tconst helperIndex = stacks.findLastIndex((s) => s.method.includes(\"__VITEST_HELPER__\"));\n\tif (helperIndex >= 0) {\n\t\tstacks = stacks.slice(helperIndex + 1);\n\t}\n\treturn stacks.map((stack) => {\n\t\tif (options.getUrlId) {\n\t\t\tstack.file = options.getUrlId(stack.file);\n\t\t}\n\t\tconst map = options.getSourceMap?.(stack.file);\n\t\tif (!map || typeof map !== \"object\" || !map.version) {\n\t\t\treturn shouldFilter(ignoreStackEntries, stack.file) ? null : stack;\n\t\t}\n\t\tconst traceMap = new DecodedMap(map, stack.file);\n\t\tconst position = getOriginalPosition(traceMap, stack);\n\t\tif (!position) {\n\t\t\treturn stack;\n\t\t}\n\t\tconst { line, column, source, name } = position;\n\t\tlet file = source || stack.file;\n\t\tif (file.match(/\\/\\w:\\//)) {\n\t\t\tfile = file.slice(1);\n\t\t}\n\t\tif (shouldFilter(ignoreStackEntries, file)) {\n\t\t\treturn null;\n\t\t}\n\t\tif (line != null && column != null) {\n\t\t\treturn {\n\t\t\t\tline,\n\t\t\t\tcolumn,\n\t\t\t\tfile,\n\t\t\t\tmethod: name || stack.method\n\t\t\t};\n\t\t}\n\t\treturn stack;\n\t}).filter((s) => s != null);\n}\nfunction shouldFilter(ignoreStackEntries, file) {\n\treturn ignoreStackEntries.some((p) => file.match(p));\n}\nfunction parseFFOrSafariStackTrace(stack) {\n\treturn stack.split(\"\\n\").map((line) => parseSingleFFOrSafariStack(line)).filter(notNullish);\n}\nfunction parseV8Stacktrace(stack) {\n\treturn stack.split(\"\\n\").map((line) => parseSingleV8Stack(line)).filter(notNullish);\n}\nfunction parseErrorStacktrace(e, options = {}) {\n\tif (!e || isPrimitive(e)) {\n\t\treturn [];\n\t}\n\tif (\"stacks\" in e && e.stacks) {\n\t\treturn e.stacks;\n\t}\n\tconst stackStr = e.stack || \"\";\n\t// if \"stack\" property was overwritten at runtime to be something else,\n\t// ignore the value because we don't know how to process it\n\tlet stackFrames = typeof stackStr === \"string\" ? parseStacktrace(stackStr, options) : [];\n\tif (!stackFrames.length) {\n\t\tconst e_ = e;\n\t\tif (e_.fileName != null && e_.lineNumber != null && e_.columnNumber != null) {\n\t\t\tstackFrames = parseStacktrace(`${e_.fileName}:${e_.lineNumber}:${e_.columnNumber}`, options);\n\t\t}\n\t\tif (e_.sourceURL != null && e_.line != null && e_._column != null) {\n\t\t\tstackFrames = parseStacktrace(`${e_.sourceURL}:${e_.line}:${e_.column}`, options);\n\t\t}\n\t}\n\tif (options.frameFilter) {\n\t\tstackFrames = stackFrames.filter((f) => options.frameFilter(e, f) !== false);\n\t}\n\te.stacks = stackFrames;\n\treturn stackFrames;\n}\nclass DecodedMap {\n\t_encoded;\n\t_decoded;\n\t_decodedMemo;\n\turl;\n\tversion;\n\tnames = [];\n\tresolvedSources;\n\tconstructor(map, from) {\n\t\tthis.map = map;\n\t\tconst { mappings, names, sources } = map;\n\t\tthis.version = map.version;\n\t\tthis.names = names || [];\n\t\tthis._encoded = mappings || \"\";\n\t\tthis._decodedMemo = memoizedState();\n\t\tthis.url = from;\n\t\tthis.resolvedSources = (sources || []).map((s) => resolve(from, \"..\", s || \"\"));\n\t}\n}\nfunction memoizedState() {\n\treturn {\n\t\tlastKey: -1,\n\t\tlastNeedle: -1,\n\t\tlastIndex: -1\n\t};\n}\nfunction getOriginalPosition(map, needle) {\n\tconst result = originalPositionFor(map, needle);\n\tif (result.column == null) {\n\t\treturn null;\n\t}\n\treturn result;\n}\n\nexport { DecodedMap, createStackString, stackIgnorePatterns as defaultStackIgnorePatterns, getOriginalPosition, parseErrorStacktrace, parseSingleFFOrSafariStack, parseSingleStack, parseSingleV8Stack, parseStacktrace };\n"],"x_google_ignoreList":[0],"mappings":";;;;IAKI,QAAQ,IAAI,WAAW,CAAC;AAC5B,IAAI,QAAQ;AACZ,IAAI,YAAY,IAAI,WAAW,EAAE;AACjC,IAAI,YAAY,IAAI,WAAW,GAAG;AAClC,KAAK,IAAI,IAAI,GAAG,IAAI,MAAM,QAAQ,KAAK;CACrC,MAAM,IAAI,MAAM,WAAW,CAAC;CAC5B,UAAU,KAAK;CACf,UAAU,KAAK;AACjB;AACA,SAAS,cAAc,QAAQ,UAAU;CACvC,IAAI,QAAQ;CACZ,IAAI,QAAQ;CACZ,IAAI,UAAU;CACd,GAAG;EAED,UAAU,UADA,OAAO,KACG;EACpB,UAAU,UAAU,OAAO;EAC3B,SAAS;CACX,SAAS,UAAU;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E7B;CACD,IAAI,QAAA,aACD,cAAc,YAAQ,QAAA,MAAA,QAAA,YAAA,GAAA,CAAA,MAAA,KAAA;CAExB,EAAE,SAAK;CACP,OAAC;AACH;AACA,IAAM,aAAN,MAAS;CACP;CACA;CACD;CACA;CACC;CACD,QAAA,CAAA;CACC;CACD,YAAO,KAAW,MAAA;EACnB,KAAA,MAAA;EACA,MAAM,EACL,UACA,OACA,YACG;EACH,KAAO,UAAA,IAAA;EACP,KAAQ,QAAE,SAAA,CAAA;EACV,KAAA,WAAe,YAAA;EACf,KAAA,eAAuB,cAAA;EACtB,KAAK,MAAM;EACX,KAAO,mBAAkB,WAAY,CAAA,GAAG,KAAA,MAAA,QAAA,MAAA,MAAA,KAAA,EAAA,CAAA;CACxC;AACF;AACA,SAAO,gBAAW;CAChB,OAAK;EACL,SAAW;EACX,YAAK;EACN,WAAA;CACD;AACA;AACA,SAAQ,oBAAA,KAAA,QAAA;CACN,MAAA,SAAW,oBAAA,KAAA,MAAA;CACX,IAAA,OAAW,UAAG,MACd,OAAS;CAEX,OAAA;AACA"}
|
package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/timers.cjs
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
//#region ../../../node_modules/.pnpm/@vitest+utils@4.1.7/node_modules/@vitest/utils/dist/timers.js
|
|
3
|
-
const SAFE_TIMERS_SYMBOL = Symbol("vitest:SAFE_TIMERS");
|
|
4
|
-
function getSafeTimers() {
|
|
5
|
-
const { setTimeout: safeSetTimeout, setInterval: safeSetInterval, clearInterval: safeClearInterval, clearTimeout: safeClearTimeout, setImmediate: safeSetImmediate, clearImmediate: safeClearImmediate, queueMicrotask: safeQueueMicrotask } = globalThis[SAFE_TIMERS_SYMBOL] || globalThis;
|
|
6
|
-
const { nextTick: safeNextTick } = globalThis[SAFE_TIMERS_SYMBOL] || globalThis.process || {};
|
|
7
|
-
return {
|
|
8
|
-
nextTick: safeNextTick,
|
|
9
|
-
setTimeout: safeSetTimeout,
|
|
10
|
-
setInterval: safeSetInterval,
|
|
11
|
-
clearInterval: safeClearInterval,
|
|
12
|
-
clearTimeout: safeClearTimeout,
|
|
13
|
-
setImmediate: safeSetImmediate,
|
|
14
|
-
clearImmediate: safeClearImmediate,
|
|
15
|
-
queueMicrotask: safeQueueMicrotask
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Returns a promise that resolves after the specified duration.
|
|
20
|
-
*
|
|
21
|
-
* @param timeout - Delay in milliseconds
|
|
22
|
-
* @param scheduler - Timer function to use, defaults to `setTimeout`. Useful for mocked timers.
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* await delay(100)
|
|
26
|
-
*
|
|
27
|
-
* @example
|
|
28
|
-
* // With mocked timers
|
|
29
|
-
* const { setTimeout } = getSafeTimers()
|
|
30
|
-
* await delay(100, setTimeout)
|
|
31
|
-
*/
|
|
32
|
-
function delay(timeout, scheduler = setTimeout) {
|
|
33
|
-
return new Promise((resolve) => scheduler(resolve, timeout));
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
//#endregion
|
|
37
|
-
exports.delay = delay;
|
|
38
|
-
exports.getSafeTimers = getSafeTimers;
|
package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/timers.mjs
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
//#region ../../../node_modules/.pnpm/@vitest+utils@4.1.7/node_modules/@vitest/utils/dist/timers.js
|
|
2
|
-
const SAFE_TIMERS_SYMBOL = Symbol("vitest:SAFE_TIMERS");
|
|
3
|
-
function getSafeTimers() {
|
|
4
|
-
const { setTimeout: safeSetTimeout, setInterval: safeSetInterval, clearInterval: safeClearInterval, clearTimeout: safeClearTimeout, setImmediate: safeSetImmediate, clearImmediate: safeClearImmediate, queueMicrotask: safeQueueMicrotask } = globalThis[SAFE_TIMERS_SYMBOL] || globalThis;
|
|
5
|
-
const { nextTick: safeNextTick } = globalThis[SAFE_TIMERS_SYMBOL] || globalThis.process || {};
|
|
6
|
-
return {
|
|
7
|
-
nextTick: safeNextTick,
|
|
8
|
-
setTimeout: safeSetTimeout,
|
|
9
|
-
setInterval: safeSetInterval,
|
|
10
|
-
clearInterval: safeClearInterval,
|
|
11
|
-
clearTimeout: safeClearTimeout,
|
|
12
|
-
setImmediate: safeSetImmediate,
|
|
13
|
-
clearImmediate: safeClearImmediate,
|
|
14
|
-
queueMicrotask: safeQueueMicrotask
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Returns a promise that resolves after the specified duration.
|
|
19
|
-
*
|
|
20
|
-
* @param timeout - Delay in milliseconds
|
|
21
|
-
* @param scheduler - Timer function to use, defaults to `setTimeout`. Useful for mocked timers.
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* await delay(100)
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* // With mocked timers
|
|
28
|
-
* const { setTimeout } = getSafeTimers()
|
|
29
|
-
* await delay(100, setTimeout)
|
|
30
|
-
*/
|
|
31
|
-
function delay(timeout, scheduler = setTimeout) {
|
|
32
|
-
return new Promise((resolve) => scheduler(resolve, timeout));
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
//#endregion
|
|
36
|
-
export { delay, getSafeTimers };
|
|
37
|
-
//# sourceMappingURL=timers.mjs.map
|
package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/timers.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"timers.mjs","names":[],"sources":["../../../../../../../../../../../node_modules/.pnpm/@vitest+utils@4.1.7/node_modules/@vitest/utils/dist/timers.js"],"sourcesContent":["const SAFE_TIMERS_SYMBOL = Symbol(\"vitest:SAFE_TIMERS\");\nfunction getSafeTimers() {\n\tconst { setTimeout: safeSetTimeout, setInterval: safeSetInterval, clearInterval: safeClearInterval, clearTimeout: safeClearTimeout, setImmediate: safeSetImmediate, clearImmediate: safeClearImmediate, queueMicrotask: safeQueueMicrotask } = globalThis[SAFE_TIMERS_SYMBOL] || globalThis;\n\tconst { nextTick: safeNextTick } = globalThis[SAFE_TIMERS_SYMBOL] || globalThis.process || {};\n\treturn {\n\t\tnextTick: safeNextTick,\n\t\tsetTimeout: safeSetTimeout,\n\t\tsetInterval: safeSetInterval,\n\t\tclearInterval: safeClearInterval,\n\t\tclearTimeout: safeClearTimeout,\n\t\tsetImmediate: safeSetImmediate,\n\t\tclearImmediate: safeClearImmediate,\n\t\tqueueMicrotask: safeQueueMicrotask\n\t};\n}\nfunction setSafeTimers() {\n\tconst { setTimeout: safeSetTimeout, setInterval: safeSetInterval, clearInterval: safeClearInterval, clearTimeout: safeClearTimeout, setImmediate: safeSetImmediate, clearImmediate: safeClearImmediate, queueMicrotask: safeQueueMicrotask } = globalThis;\n\tconst { nextTick: safeNextTick } = globalThis.process || {};\n\tconst timers = {\n\t\tnextTick: safeNextTick,\n\t\tsetTimeout: safeSetTimeout,\n\t\tsetInterval: safeSetInterval,\n\t\tclearInterval: safeClearInterval,\n\t\tclearTimeout: safeClearTimeout,\n\t\tsetImmediate: safeSetImmediate,\n\t\tclearImmediate: safeClearImmediate,\n\t\tqueueMicrotask: safeQueueMicrotask\n\t};\n\tglobalThis[SAFE_TIMERS_SYMBOL] = timers;\n}\n/**\n* Returns a promise that resolves after the specified duration.\n*\n* @param timeout - Delay in milliseconds\n* @param scheduler - Timer function to use, defaults to `setTimeout`. Useful for mocked timers.\n*\n* @example\n* await delay(100)\n*\n* @example\n* // With mocked timers\n* const { setTimeout } = getSafeTimers()\n* await delay(100, setTimeout)\n*/\nfunction delay(timeout, scheduler = setTimeout) {\n\treturn new Promise((resolve) => scheduler(resolve, timeout));\n}\n\nexport { delay, getSafeTimers, setSafeTimers };\n"],"x_google_ignoreList":[0],"mappings":";AAAA,MAAM,qBAAqB,OAAO,oBAAoB;AACtD,SAAS,gBAAgB;CACxB,MAAO,EACP,YAAQ,gBACR,aAAO,iBACN,eAAU,mBACV,cAAY,kBACZ,cAAa,kBACb,gBAAe,oBACf,gBAAc,uBACd,WAAc,uBAAgB;CAC9B,MAAA,EACA,UAAA,iBACA,WAAA,uBAAA,WAAA,WAAA,CAAA;CACF,OAAA;EACA,UAAS;EACR,YAAQ;EACR,aAAgB;EAChB,eAAe;EACd,cAAU;EACV,cAAY;EACZ,gBAAa;EACb,gBAAe;CACf;AACF"}
|