@copilotkit/aimock 1.11.0 → 1.13.0
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/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/README.md +24 -4
- package/dist/_virtual/_rolldown/runtime.cjs +2 -0
- package/dist/_virtual/_rolldown/runtime.js +29 -0
- package/dist/agui-types.d.cts.map +1 -1
- package/dist/aimock-cli.cjs +16 -0
- package/dist/aimock-cli.cjs.map +1 -1
- package/dist/aimock-cli.d.cts +2 -0
- package/dist/aimock-cli.d.cts.map +1 -1
- package/dist/aimock-cli.d.ts +2 -0
- package/dist/aimock-cli.d.ts.map +1 -1
- package/dist/aimock-cli.js +16 -0
- package/dist/aimock-cli.js.map +1 -1
- package/dist/bedrock-converse.cjs +2 -0
- package/dist/bedrock-converse.cjs.map +1 -1
- package/dist/bedrock-converse.d.cts.map +1 -1
- package/dist/bedrock-converse.d.ts.map +1 -1
- package/dist/bedrock-converse.js +2 -0
- package/dist/bedrock-converse.js.map +1 -1
- package/dist/bedrock.cjs +2 -0
- package/dist/bedrock.cjs.map +1 -1
- package/dist/bedrock.d.cts.map +1 -1
- package/dist/bedrock.d.ts.map +1 -1
- package/dist/bedrock.js +2 -0
- package/dist/bedrock.js.map +1 -1
- package/dist/cohere.cjs +1 -0
- package/dist/cohere.cjs.map +1 -1
- package/dist/cohere.js +1 -0
- package/dist/cohere.js.map +1 -1
- package/dist/config-loader.d.cts.map +1 -1
- package/dist/convert-mockllm.cjs +232 -0
- package/dist/convert-mockllm.cjs.map +1 -0
- package/dist/convert-mockllm.js +230 -0
- package/dist/convert-mockllm.js.map +1 -0
- package/dist/convert-vidaimock.cjs +110 -0
- package/dist/convert-vidaimock.cjs.map +1 -0
- package/dist/convert-vidaimock.js +108 -0
- package/dist/convert-vidaimock.js.map +1 -0
- package/dist/convert.cjs +158 -0
- package/dist/convert.cjs.map +1 -0
- package/dist/convert.d.cts +16 -0
- package/dist/convert.d.cts.map +1 -0
- package/dist/convert.d.ts +16 -0
- package/dist/convert.d.ts.map +1 -0
- package/dist/convert.js +157 -0
- package/dist/convert.js.map +1 -0
- package/dist/embeddings.cjs +2 -1
- package/dist/embeddings.cjs.map +1 -1
- package/dist/embeddings.js +2 -1
- package/dist/embeddings.js.map +1 -1
- package/dist/gemini.cjs +1 -0
- package/dist/gemini.cjs.map +1 -1
- package/dist/gemini.js +1 -0
- package/dist/gemini.js.map +1 -1
- package/dist/helpers.cjs +16 -0
- package/dist/helpers.cjs.map +1 -1
- package/dist/helpers.d.cts +6 -2
- package/dist/helpers.d.cts.map +1 -1
- package/dist/helpers.d.ts +6 -2
- package/dist/helpers.d.ts.map +1 -1
- package/dist/helpers.js +13 -1
- package/dist/helpers.js.map +1 -1
- package/dist/images.cjs +166 -0
- package/dist/images.cjs.map +1 -0
- package/dist/images.d.cts +11 -0
- package/dist/images.d.cts.map +1 -0
- package/dist/images.d.ts +11 -0
- package/dist/images.d.ts.map +1 -0
- package/dist/images.js +166 -0
- package/dist/images.js.map +1 -0
- package/dist/index.cjs +13 -0
- package/dist/index.d.cts +7 -3
- package/dist/index.d.ts +7 -3
- package/dist/index.js +6 -2
- package/dist/jest.cjs +70 -0
- package/dist/jest.cjs.map +1 -0
- package/dist/jest.d.cts +33 -0
- package/dist/jest.d.cts.map +1 -0
- package/dist/jest.d.ts +33 -0
- package/dist/jest.d.ts.map +1 -0
- package/dist/jest.js +67 -0
- package/dist/jest.js.map +1 -0
- package/dist/llmock.cjs +37 -1
- package/dist/llmock.cjs.map +1 -1
- package/dist/llmock.d.cts +5 -1
- package/dist/llmock.d.cts.map +1 -1
- package/dist/llmock.d.ts +5 -1
- package/dist/llmock.d.ts.map +1 -1
- package/dist/llmock.js +37 -1
- package/dist/llmock.js.map +1 -1
- package/dist/messages.cjs +1 -0
- package/dist/messages.cjs.map +1 -1
- package/dist/messages.js +1 -0
- package/dist/messages.js.map +1 -1
- package/dist/node_modules/.pnpm/@vitest_pretty-format@3.2.4/node_modules/@vitest/pretty-format/dist/index.cjs +934 -0
- package/dist/node_modules/.pnpm/@vitest_pretty-format@3.2.4/node_modules/@vitest/pretty-format/dist/index.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_pretty-format@3.2.4/node_modules/@vitest/pretty-format/dist/index.js +934 -0
- package/dist/node_modules/.pnpm/@vitest_pretty-format@3.2.4/node_modules/@vitest/pretty-format/dist/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/chunk-hooks.cjs +1051 -0
- package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/chunk-hooks.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/chunk-hooks.js +1042 -0
- package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/chunk-hooks.js.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/index.cjs +1 -0
- package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/index.js +3 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.cjs +96 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js +93 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/helpers.cjs +49 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/helpers.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/helpers.js +43 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/helpers.js.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/index.cjs +456 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/index.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/index.js +456 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/source-map.cjs +170 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/source-map.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/source-map.js +169 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/source-map.js.map +1 -0
- package/dist/node_modules/.pnpm/js-tokens@9.0.1/node_modules/js-tokens/index.cjs +388 -0
- package/dist/node_modules/.pnpm/js-tokens@9.0.1/node_modules/js-tokens/index.cjs.map +1 -0
- package/dist/node_modules/.pnpm/js-tokens@9.0.1/node_modules/js-tokens/index.js +385 -0
- package/dist/node_modules/.pnpm/js-tokens@9.0.1/node_modules/js-tokens/index.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/arguments.cjs +12 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/arguments.cjs.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/arguments.js +12 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/arguments.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/array.cjs +17 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/array.cjs.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/array.js +17 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/array.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/bigint.cjs +12 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/bigint.cjs.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/bigint.js +12 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/bigint.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/class.cjs +16 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/class.cjs.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/class.js +16 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/class.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/date.cjs +14 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/date.cjs.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/date.js +14 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/date.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/error.cjs +35 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/error.cjs.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/error.js +35 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/error.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/function.cjs +13 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/function.cjs.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/function.js +13 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/function.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/helpers.cjs +128 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/helpers.cjs.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/helpers.js +123 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/helpers.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/html.cjs +41 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/html.cjs.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/html.js +40 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/html.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/index.cjs +100 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/index.cjs.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/index.js +100 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/index.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/map.cjs +26 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/map.cjs.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/map.js +26 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/map.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/number.cjs +15 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/number.cjs.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/number.js +15 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/number.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/object.cjs +22 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/object.cjs.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/object.js +22 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/object.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/promise.cjs +7 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/promise.cjs.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/promise.js +6 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/promise.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/regexp.cjs +13 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/regexp.cjs.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/regexp.js +13 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/regexp.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/set.cjs +19 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/set.cjs.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/set.js +19 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/set.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/string.cjs +26 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/string.cjs.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/string.js +26 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/string.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/symbol.cjs +10 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/symbol.cjs.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/symbol.js +9 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/symbol.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/typedarray.cjs +31 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/typedarray.cjs.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/typedarray.js +31 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/typedarray.js.map +1 -0
- package/dist/node_modules/.pnpm/strip-literal@3.1.0/node_modules/strip-literal/dist/index.cjs +52 -0
- package/dist/node_modules/.pnpm/strip-literal@3.1.0/node_modules/strip-literal/dist/index.cjs.map +1 -0
- package/dist/node_modules/.pnpm/strip-literal@3.1.0/node_modules/strip-literal/dist/index.js +52 -0
- package/dist/node_modules/.pnpm/strip-literal@3.1.0/node_modules/strip-literal/dist/index.js.map +1 -0
- package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.cjs +83 -0
- package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.cjs.map +1 -0
- package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js +82 -0
- package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js.map +1 -0
- package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/node.cjs +10 -0
- package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/node.cjs.map +1 -0
- package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/node.js +10 -0
- package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/node.js.map +1 -0
- package/dist/ollama.cjs +2 -0
- package/dist/ollama.cjs.map +1 -1
- package/dist/ollama.d.cts.map +1 -1
- package/dist/ollama.d.ts.map +1 -1
- package/dist/ollama.js +2 -0
- package/dist/ollama.js.map +1 -1
- package/dist/recorder.cjs +50 -7
- package/dist/recorder.cjs.map +1 -1
- package/dist/recorder.js +50 -7
- package/dist/recorder.js.map +1 -1
- package/dist/responses.cjs +1 -0
- package/dist/responses.cjs.map +1 -1
- package/dist/responses.js +1 -0
- package/dist/responses.js.map +1 -1
- package/dist/router.cjs +8 -0
- package/dist/router.cjs.map +1 -1
- package/dist/router.d.cts.map +1 -1
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +9 -0
- package/dist/router.js.map +1 -1
- package/dist/server.cjs +80 -3
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +2 -0
- package/dist/server.d.cts.map +1 -1
- package/dist/server.d.ts +2 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +80 -3
- package/dist/server.js.map +1 -1
- package/dist/speech.cjs +144 -0
- package/dist/speech.cjs.map +1 -0
- package/dist/speech.d.cts +11 -0
- package/dist/speech.d.cts.map +1 -0
- package/dist/speech.d.ts +11 -0
- package/dist/speech.d.ts.map +1 -0
- package/dist/speech.js +144 -0
- package/dist/speech.js.map +1 -0
- package/dist/transcription.cjs +134 -0
- package/dist/transcription.cjs.map +1 -0
- package/dist/transcription.d.cts +11 -0
- package/dist/transcription.d.cts.map +1 -0
- package/dist/transcription.d.ts +11 -0
- package/dist/transcription.d.ts.map +1 -0
- package/dist/transcription.js +134 -0
- package/dist/transcription.js.map +1 -0
- package/dist/types.d.cts +44 -2
- package/dist/types.d.cts.map +1 -1
- package/dist/types.d.ts +44 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/video.cjs +196 -0
- package/dist/video.cjs.map +1 -0
- package/dist/video.d.cts +14 -0
- package/dist/video.d.cts.map +1 -0
- package/dist/video.d.ts +14 -0
- package/dist/video.d.ts.map +1 -0
- package/dist/video.js +195 -0
- package/dist/video.js.map +1 -0
- package/dist/vitest.cjs +80 -0
- package/dist/vitest.cjs.map +1 -0
- package/dist/vitest.d.cts +30 -0
- package/dist/vitest.d.cts.map +1 -0
- package/dist/vitest.d.ts +30 -0
- package/dist/vitest.d.ts.map +1 -0
- package/dist/vitest.js +77 -0
- package/dist/vitest.js.map +1 -0
- package/fixtures/examples/a2a/a2a-config.json +42 -0
- package/fixtures/examples/agui/agui-text-response.json +35 -0
- package/fixtures/examples/chaos/chaos-config.json +10 -0
- package/fixtures/examples/full-suite.json +116 -0
- package/fixtures/examples/llm/embeddings.json +10 -0
- package/fixtures/examples/llm/error-injection.json +15 -0
- package/fixtures/examples/llm/sequential-responses.json +20 -0
- package/fixtures/examples/llm/streaming-physics.json +15 -0
- package/fixtures/examples/mcp/mcp-config.json +26 -0
- package/fixtures/examples/record-replay/record-config.json +11 -0
- package/fixtures/examples/vector/vector-config.json +34 -0
- package/package.json +60 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["inspectNumber","inspectBigInt","inspectString","inspectFunction","inspectSymbol","inspectArray","inspectDate","inspectMap","inspectSet","inspectRegExp","inspectPromise","inspectArguments","inspectTypedArray","inspectError","inspectNodeCollection","normaliseOptions","inspectObject","inspectHTMLElement","inspectClass"],"sources":["../../../../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/index.js"],"sourcesContent":["/* !\n * loupe\n * Copyright(c) 2013 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\nimport inspectArray from './array.js';\nimport inspectTypedArray from './typedarray.js';\nimport inspectDate from './date.js';\nimport inspectFunction from './function.js';\nimport inspectMap from './map.js';\nimport inspectNumber from './number.js';\nimport inspectBigInt from './bigint.js';\nimport inspectRegExp from './regexp.js';\nimport inspectSet from './set.js';\nimport inspectString from './string.js';\nimport inspectSymbol from './symbol.js';\nimport inspectPromise from './promise.js';\nimport inspectClass from './class.js';\nimport inspectObject from './object.js';\nimport inspectArguments from './arguments.js';\nimport inspectError from './error.js';\nimport inspectHTMLElement, { inspectNodeCollection } from './html.js';\nimport { normaliseOptions } from './helpers.js';\nconst symbolsSupported = typeof Symbol === 'function' && typeof Symbol.for === 'function';\nconst chaiInspect = symbolsSupported ? Symbol.for('chai/inspect') : '@@chai/inspect';\nconst nodeInspect = Symbol.for('nodejs.util.inspect.custom');\nconst constructorMap = new WeakMap();\nconst stringTagMap = {};\nconst baseTypesMap = {\n undefined: (value, options) => options.stylize('undefined', 'undefined'),\n null: (value, options) => options.stylize('null', 'null'),\n boolean: (value, options) => options.stylize(String(value), 'boolean'),\n Boolean: (value, options) => options.stylize(String(value), 'boolean'),\n number: inspectNumber,\n Number: inspectNumber,\n bigint: inspectBigInt,\n BigInt: inspectBigInt,\n string: inspectString,\n String: inspectString,\n function: inspectFunction,\n Function: inspectFunction,\n symbol: inspectSymbol,\n // A Symbol polyfill will return `Symbol` not `symbol` from typedetect\n Symbol: inspectSymbol,\n Array: inspectArray,\n Date: inspectDate,\n Map: inspectMap,\n Set: inspectSet,\n RegExp: inspectRegExp,\n Promise: inspectPromise,\n // WeakSet, WeakMap are totally opaque to us\n WeakSet: (value, options) => options.stylize('WeakSet{…}', 'special'),\n WeakMap: (value, options) => options.stylize('WeakMap{…}', 'special'),\n Arguments: inspectArguments,\n Int8Array: inspectTypedArray,\n Uint8Array: inspectTypedArray,\n Uint8ClampedArray: inspectTypedArray,\n Int16Array: inspectTypedArray,\n Uint16Array: inspectTypedArray,\n Int32Array: inspectTypedArray,\n Uint32Array: inspectTypedArray,\n Float32Array: inspectTypedArray,\n Float64Array: inspectTypedArray,\n Generator: () => '',\n DataView: () => '',\n ArrayBuffer: () => '',\n Error: inspectError,\n HTMLCollection: inspectNodeCollection,\n NodeList: inspectNodeCollection,\n};\n// eslint-disable-next-line complexity\nconst inspectCustom = (value, options, type, inspectFn) => {\n if (chaiInspect in value && typeof value[chaiInspect] === 'function') {\n return value[chaiInspect](options);\n }\n if (nodeInspect in value && typeof value[nodeInspect] === 'function') {\n return value[nodeInspect](options.depth, options, inspectFn);\n }\n if ('inspect' in value && typeof value.inspect === 'function') {\n return value.inspect(options.depth, options);\n }\n if ('constructor' in value && constructorMap.has(value.constructor)) {\n return constructorMap.get(value.constructor)(value, options);\n }\n if (stringTagMap[type]) {\n return stringTagMap[type](value, options);\n }\n return '';\n};\nconst toString = Object.prototype.toString;\n// eslint-disable-next-line complexity\nexport function inspect(value, opts = {}) {\n const options = normaliseOptions(opts, inspect);\n const { customInspect } = options;\n let type = value === null ? 'null' : typeof value;\n if (type === 'object') {\n type = toString.call(value).slice(8, -1);\n }\n // If it is a base value that we already support, then use Loupe's inspector\n if (type in baseTypesMap) {\n return baseTypesMap[type](value, options);\n }\n // If `options.customInspect` is set to true then try to use the custom inspector\n if (customInspect && value) {\n const output = inspectCustom(value, options, type, inspect);\n if (output) {\n if (typeof output === 'string')\n return output;\n return inspect(output, options);\n }\n }\n const proto = value ? Object.getPrototypeOf(value) : false;\n // If it's a plain Object then use Loupe's inspector\n if (proto === Object.prototype || proto === null) {\n return inspectObject(value, options);\n }\n // Specifically account for HTMLElements\n // @ts-ignore\n if (value && typeof HTMLElement === 'function' && value instanceof HTMLElement) {\n return inspectHTMLElement(value, options);\n }\n if ('constructor' in value) {\n // If it is a class, inspect it like an object but add the constructor name\n if (value.constructor !== Object) {\n return inspectClass(value, options);\n }\n // If it is an object with an anonymous prototype, display it as an object.\n return inspectObject(value, options);\n }\n // last chance to check if it's an object\n if (value === Object(value)) {\n return inspectObject(value, options);\n }\n // We have run out of options! Just stringify the value\n return options.stylize(String(value), type);\n}\nexport function registerConstructor(constructor, inspector) {\n if (constructorMap.has(constructor)) {\n return false;\n }\n constructorMap.set(constructor, inspector);\n return true;\n}\nexport function registerStringTag(stringTag, inspector) {\n if (stringTag in stringTagMap) {\n return false;\n }\n stringTagMap[stringTag] = inspector;\n return true;\n}\nexport const custom = chaiInspect;\nexport default inspect;\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;;;;;;;;AAwBA,MAAM,cADmB,OAAO,WAAW,cAAc,OAAO,OAAO,QAAQ,aACxC,OAAO,IAAI,eAAe,GAAG;AACpE,MAAM,cAAc,OAAO,IAAI,6BAA6B;AAC5D,MAAM,iCAAiB,IAAI,SAAS;AACpC,MAAM,eAAe,EAAE;AACvB,MAAM,eAAe;CACjB,YAAY,OAAO,YAAY,QAAQ,QAAQ,aAAa,YAAY;CACxE,OAAO,OAAO,YAAY,QAAQ,QAAQ,QAAQ,OAAO;CACzD,UAAU,OAAO,YAAY,QAAQ,QAAQ,OAAO,MAAM,EAAE,UAAU;CACtE,UAAU,OAAO,YAAY,QAAQ,QAAQ,OAAO,MAAM,EAAE,UAAU;CACtE,QAAQA;CACR,QAAQA;CACR,QAAQC;CACR,QAAQA;CACR,QAAQC;CACR,QAAQA;CACR,UAAUC;CACV,UAAUA;CACV,QAAQC;CAER,QAAQA;CACR,OAAOC;CACP,MAAMC;CACN,KAAKC;CACL,KAAKC;CACL,QAAQC;CACR,SAASC;CAET,UAAU,OAAO,YAAY,QAAQ,QAAQ,cAAc,UAAU;CACrE,UAAU,OAAO,YAAY,QAAQ,QAAQ,cAAc,UAAU;CACrE,WAAWC;CACX,WAAWC;CACX,YAAYA;CACZ,mBAAmBA;CACnB,YAAYA;CACZ,aAAaA;CACb,YAAYA;CACZ,aAAaA;CACb,cAAcA;CACd,cAAcA;CACd,iBAAiB;CACjB,gBAAgB;CAChB,mBAAmB;CACnB,OAAOC;CACP,gBAAgBC;CAChB,UAAUA;CACb;AAED,MAAM,iBAAiB,OAAO,SAAS,MAAM,cAAc;AACvD,KAAI,eAAe,SAAS,OAAO,MAAM,iBAAiB,WACtD,QAAO,MAAM,aAAa,QAAQ;AAEtC,KAAI,eAAe,SAAS,OAAO,MAAM,iBAAiB,WACtD,QAAO,MAAM,aAAa,QAAQ,OAAO,SAAS,UAAU;AAEhE,KAAI,aAAa,SAAS,OAAO,MAAM,YAAY,WAC/C,QAAO,MAAM,QAAQ,QAAQ,OAAO,QAAQ;AAEhD,KAAI,iBAAiB,SAAS,eAAe,IAAI,MAAM,YAAY,CAC/D,QAAO,eAAe,IAAI,MAAM,YAAY,CAAC,OAAO,QAAQ;AAEhE,KAAI,aAAa,MACb,QAAO,aAAa,MAAM,OAAO,QAAQ;AAE7C,QAAO;;AAEX,MAAM,WAAW,OAAO,UAAU;AAElC,SAAgB,QAAQ,OAAO,OAAO,EAAE,EAAE;CACtC,MAAM,UAAUC,iCAAiB,MAAM,QAAQ;CAC/C,MAAM,EAAE,kBAAkB;CAC1B,IAAI,OAAO,UAAU,OAAO,SAAS,OAAO;AAC5C,KAAI,SAAS,SACT,QAAO,SAAS,KAAK,MAAM,CAAC,MAAM,GAAG,GAAG;AAG5C,KAAI,QAAQ,aACR,QAAO,aAAa,MAAM,OAAO,QAAQ;AAG7C,KAAI,iBAAiB,OAAO;EACxB,MAAM,SAAS,cAAc,OAAO,SAAS,MAAM,QAAQ;AAC3D,MAAI,QAAQ;AACR,OAAI,OAAO,WAAW,SAClB,QAAO;AACX,UAAO,QAAQ,QAAQ,QAAQ;;;CAGvC,MAAM,QAAQ,QAAQ,OAAO,eAAe,MAAM,GAAG;AAErD,KAAI,UAAU,OAAO,aAAa,UAAU,KACxC,QAAOC,uBAAc,OAAO,QAAQ;AAIxC,KAAI,SAAS,OAAO,gBAAgB,cAAc,iBAAiB,YAC/D,QAAOC,qBAAmB,OAAO,QAAQ;AAE7C,KAAI,iBAAiB,OAAO;AAExB,MAAI,MAAM,gBAAgB,OACtB,QAAOC,sBAAa,OAAO,QAAQ;AAGvC,SAAOF,uBAAc,OAAO,QAAQ;;AAGxC,KAAI,UAAU,OAAO,MAAM,CACvB,QAAOA,uBAAc,OAAO,QAAQ;AAGxC,QAAO,QAAQ,QAAQ,OAAO,MAAM,EAAE,KAAK"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { normaliseOptions } from "./helpers.js";
|
|
2
|
+
import inspectArray from "./array.js";
|
|
3
|
+
import inspectTypedArray from "./typedarray.js";
|
|
4
|
+
import inspectDate from "./date.js";
|
|
5
|
+
import inspectFunction from "./function.js";
|
|
6
|
+
import inspectMap from "./map.js";
|
|
7
|
+
import inspectNumber from "./number.js";
|
|
8
|
+
import inspectBigInt from "./bigint.js";
|
|
9
|
+
import inspectRegExp from "./regexp.js";
|
|
10
|
+
import inspectSet from "./set.js";
|
|
11
|
+
import inspectString from "./string.js";
|
|
12
|
+
import inspectSymbol from "./symbol.js";
|
|
13
|
+
import getPromiseValue from "./promise.js";
|
|
14
|
+
import inspectObject from "./object.js";
|
|
15
|
+
import inspectClass from "./class.js";
|
|
16
|
+
import inspectArguments from "./arguments.js";
|
|
17
|
+
import inspectObject$1 from "./error.js";
|
|
18
|
+
import inspectHTML, { inspectNodeCollection } from "./html.js";
|
|
19
|
+
|
|
20
|
+
//#region node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/index.js
|
|
21
|
+
const chaiInspect = typeof Symbol === "function" && typeof Symbol.for === "function" ? Symbol.for("chai/inspect") : "@@chai/inspect";
|
|
22
|
+
const nodeInspect = Symbol.for("nodejs.util.inspect.custom");
|
|
23
|
+
const constructorMap = /* @__PURE__ */ new WeakMap();
|
|
24
|
+
const stringTagMap = {};
|
|
25
|
+
const baseTypesMap = {
|
|
26
|
+
undefined: (value, options) => options.stylize("undefined", "undefined"),
|
|
27
|
+
null: (value, options) => options.stylize("null", "null"),
|
|
28
|
+
boolean: (value, options) => options.stylize(String(value), "boolean"),
|
|
29
|
+
Boolean: (value, options) => options.stylize(String(value), "boolean"),
|
|
30
|
+
number: inspectNumber,
|
|
31
|
+
Number: inspectNumber,
|
|
32
|
+
bigint: inspectBigInt,
|
|
33
|
+
BigInt: inspectBigInt,
|
|
34
|
+
string: inspectString,
|
|
35
|
+
String: inspectString,
|
|
36
|
+
function: inspectFunction,
|
|
37
|
+
Function: inspectFunction,
|
|
38
|
+
symbol: inspectSymbol,
|
|
39
|
+
Symbol: inspectSymbol,
|
|
40
|
+
Array: inspectArray,
|
|
41
|
+
Date: inspectDate,
|
|
42
|
+
Map: inspectMap,
|
|
43
|
+
Set: inspectSet,
|
|
44
|
+
RegExp: inspectRegExp,
|
|
45
|
+
Promise: getPromiseValue,
|
|
46
|
+
WeakSet: (value, options) => options.stylize("WeakSet{…}", "special"),
|
|
47
|
+
WeakMap: (value, options) => options.stylize("WeakMap{…}", "special"),
|
|
48
|
+
Arguments: inspectArguments,
|
|
49
|
+
Int8Array: inspectTypedArray,
|
|
50
|
+
Uint8Array: inspectTypedArray,
|
|
51
|
+
Uint8ClampedArray: inspectTypedArray,
|
|
52
|
+
Int16Array: inspectTypedArray,
|
|
53
|
+
Uint16Array: inspectTypedArray,
|
|
54
|
+
Int32Array: inspectTypedArray,
|
|
55
|
+
Uint32Array: inspectTypedArray,
|
|
56
|
+
Float32Array: inspectTypedArray,
|
|
57
|
+
Float64Array: inspectTypedArray,
|
|
58
|
+
Generator: () => "",
|
|
59
|
+
DataView: () => "",
|
|
60
|
+
ArrayBuffer: () => "",
|
|
61
|
+
Error: inspectObject$1,
|
|
62
|
+
HTMLCollection: inspectNodeCollection,
|
|
63
|
+
NodeList: inspectNodeCollection
|
|
64
|
+
};
|
|
65
|
+
const inspectCustom = (value, options, type, inspectFn) => {
|
|
66
|
+
if (chaiInspect in value && typeof value[chaiInspect] === "function") return value[chaiInspect](options);
|
|
67
|
+
if (nodeInspect in value && typeof value[nodeInspect] === "function") return value[nodeInspect](options.depth, options, inspectFn);
|
|
68
|
+
if ("inspect" in value && typeof value.inspect === "function") return value.inspect(options.depth, options);
|
|
69
|
+
if ("constructor" in value && constructorMap.has(value.constructor)) return constructorMap.get(value.constructor)(value, options);
|
|
70
|
+
if (stringTagMap[type]) return stringTagMap[type](value, options);
|
|
71
|
+
return "";
|
|
72
|
+
};
|
|
73
|
+
const toString = Object.prototype.toString;
|
|
74
|
+
function inspect(value, opts = {}) {
|
|
75
|
+
const options = normaliseOptions(opts, inspect);
|
|
76
|
+
const { customInspect } = options;
|
|
77
|
+
let type = value === null ? "null" : typeof value;
|
|
78
|
+
if (type === "object") type = toString.call(value).slice(8, -1);
|
|
79
|
+
if (type in baseTypesMap) return baseTypesMap[type](value, options);
|
|
80
|
+
if (customInspect && value) {
|
|
81
|
+
const output = inspectCustom(value, options, type, inspect);
|
|
82
|
+
if (output) {
|
|
83
|
+
if (typeof output === "string") return output;
|
|
84
|
+
return inspect(output, options);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
const proto = value ? Object.getPrototypeOf(value) : false;
|
|
88
|
+
if (proto === Object.prototype || proto === null) return inspectObject(value, options);
|
|
89
|
+
if (value && typeof HTMLElement === "function" && value instanceof HTMLElement) return inspectHTML(value, options);
|
|
90
|
+
if ("constructor" in value) {
|
|
91
|
+
if (value.constructor !== Object) return inspectClass(value, options);
|
|
92
|
+
return inspectObject(value, options);
|
|
93
|
+
}
|
|
94
|
+
if (value === Object(value)) return inspectObject(value, options);
|
|
95
|
+
return options.stylize(String(value), type);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
//#endregion
|
|
99
|
+
export { inspect as default };
|
|
100
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["inspectPromise","inspectError","inspectHTMLElement"],"sources":["../../../../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/index.js"],"sourcesContent":["/* !\n * loupe\n * Copyright(c) 2013 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\nimport inspectArray from './array.js';\nimport inspectTypedArray from './typedarray.js';\nimport inspectDate from './date.js';\nimport inspectFunction from './function.js';\nimport inspectMap from './map.js';\nimport inspectNumber from './number.js';\nimport inspectBigInt from './bigint.js';\nimport inspectRegExp from './regexp.js';\nimport inspectSet from './set.js';\nimport inspectString from './string.js';\nimport inspectSymbol from './symbol.js';\nimport inspectPromise from './promise.js';\nimport inspectClass from './class.js';\nimport inspectObject from './object.js';\nimport inspectArguments from './arguments.js';\nimport inspectError from './error.js';\nimport inspectHTMLElement, { inspectNodeCollection } from './html.js';\nimport { normaliseOptions } from './helpers.js';\nconst symbolsSupported = typeof Symbol === 'function' && typeof Symbol.for === 'function';\nconst chaiInspect = symbolsSupported ? Symbol.for('chai/inspect') : '@@chai/inspect';\nconst nodeInspect = Symbol.for('nodejs.util.inspect.custom');\nconst constructorMap = new WeakMap();\nconst stringTagMap = {};\nconst baseTypesMap = {\n undefined: (value, options) => options.stylize('undefined', 'undefined'),\n null: (value, options) => options.stylize('null', 'null'),\n boolean: (value, options) => options.stylize(String(value), 'boolean'),\n Boolean: (value, options) => options.stylize(String(value), 'boolean'),\n number: inspectNumber,\n Number: inspectNumber,\n bigint: inspectBigInt,\n BigInt: inspectBigInt,\n string: inspectString,\n String: inspectString,\n function: inspectFunction,\n Function: inspectFunction,\n symbol: inspectSymbol,\n // A Symbol polyfill will return `Symbol` not `symbol` from typedetect\n Symbol: inspectSymbol,\n Array: inspectArray,\n Date: inspectDate,\n Map: inspectMap,\n Set: inspectSet,\n RegExp: inspectRegExp,\n Promise: inspectPromise,\n // WeakSet, WeakMap are totally opaque to us\n WeakSet: (value, options) => options.stylize('WeakSet{…}', 'special'),\n WeakMap: (value, options) => options.stylize('WeakMap{…}', 'special'),\n Arguments: inspectArguments,\n Int8Array: inspectTypedArray,\n Uint8Array: inspectTypedArray,\n Uint8ClampedArray: inspectTypedArray,\n Int16Array: inspectTypedArray,\n Uint16Array: inspectTypedArray,\n Int32Array: inspectTypedArray,\n Uint32Array: inspectTypedArray,\n Float32Array: inspectTypedArray,\n Float64Array: inspectTypedArray,\n Generator: () => '',\n DataView: () => '',\n ArrayBuffer: () => '',\n Error: inspectError,\n HTMLCollection: inspectNodeCollection,\n NodeList: inspectNodeCollection,\n};\n// eslint-disable-next-line complexity\nconst inspectCustom = (value, options, type, inspectFn) => {\n if (chaiInspect in value && typeof value[chaiInspect] === 'function') {\n return value[chaiInspect](options);\n }\n if (nodeInspect in value && typeof value[nodeInspect] === 'function') {\n return value[nodeInspect](options.depth, options, inspectFn);\n }\n if ('inspect' in value && typeof value.inspect === 'function') {\n return value.inspect(options.depth, options);\n }\n if ('constructor' in value && constructorMap.has(value.constructor)) {\n return constructorMap.get(value.constructor)(value, options);\n }\n if (stringTagMap[type]) {\n return stringTagMap[type](value, options);\n }\n return '';\n};\nconst toString = Object.prototype.toString;\n// eslint-disable-next-line complexity\nexport function inspect(value, opts = {}) {\n const options = normaliseOptions(opts, inspect);\n const { customInspect } = options;\n let type = value === null ? 'null' : typeof value;\n if (type === 'object') {\n type = toString.call(value).slice(8, -1);\n }\n // If it is a base value that we already support, then use Loupe's inspector\n if (type in baseTypesMap) {\n return baseTypesMap[type](value, options);\n }\n // If `options.customInspect` is set to true then try to use the custom inspector\n if (customInspect && value) {\n const output = inspectCustom(value, options, type, inspect);\n if (output) {\n if (typeof output === 'string')\n return output;\n return inspect(output, options);\n }\n }\n const proto = value ? Object.getPrototypeOf(value) : false;\n // If it's a plain Object then use Loupe's inspector\n if (proto === Object.prototype || proto === null) {\n return inspectObject(value, options);\n }\n // Specifically account for HTMLElements\n // @ts-ignore\n if (value && typeof HTMLElement === 'function' && value instanceof HTMLElement) {\n return inspectHTMLElement(value, options);\n }\n if ('constructor' in value) {\n // If it is a class, inspect it like an object but add the constructor name\n if (value.constructor !== Object) {\n return inspectClass(value, options);\n }\n // If it is an object with an anonymous prototype, display it as an object.\n return inspectObject(value, options);\n }\n // last chance to check if it's an object\n if (value === Object(value)) {\n return inspectObject(value, options);\n }\n // We have run out of options! Just stringify the value\n return options.stylize(String(value), type);\n}\nexport function registerConstructor(constructor, inspector) {\n if (constructorMap.has(constructor)) {\n return false;\n }\n constructorMap.set(constructor, inspector);\n return true;\n}\nexport function registerStringTag(stringTag, inspector) {\n if (stringTag in stringTagMap) {\n return false;\n }\n stringTagMap[stringTag] = inspector;\n return true;\n}\nexport const custom = chaiInspect;\nexport default inspect;\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;;;;;;;;AAwBA,MAAM,cADmB,OAAO,WAAW,cAAc,OAAO,OAAO,QAAQ,aACxC,OAAO,IAAI,eAAe,GAAG;AACpE,MAAM,cAAc,OAAO,IAAI,6BAA6B;AAC5D,MAAM,iCAAiB,IAAI,SAAS;AACpC,MAAM,eAAe,EAAE;AACvB,MAAM,eAAe;CACjB,YAAY,OAAO,YAAY,QAAQ,QAAQ,aAAa,YAAY;CACxE,OAAO,OAAO,YAAY,QAAQ,QAAQ,QAAQ,OAAO;CACzD,UAAU,OAAO,YAAY,QAAQ,QAAQ,OAAO,MAAM,EAAE,UAAU;CACtE,UAAU,OAAO,YAAY,QAAQ,QAAQ,OAAO,MAAM,EAAE,UAAU;CACtE,QAAQ;CACR,QAAQ;CACR,QAAQ;CACR,QAAQ;CACR,QAAQ;CACR,QAAQ;CACR,UAAU;CACV,UAAU;CACV,QAAQ;CAER,QAAQ;CACR,OAAO;CACP,MAAM;CACN,KAAK;CACL,KAAK;CACL,QAAQ;CACR,SAASA;CAET,UAAU,OAAO,YAAY,QAAQ,QAAQ,cAAc,UAAU;CACrE,UAAU,OAAO,YAAY,QAAQ,QAAQ,cAAc,UAAU;CACrE,WAAW;CACX,WAAW;CACX,YAAY;CACZ,mBAAmB;CACnB,YAAY;CACZ,aAAa;CACb,YAAY;CACZ,aAAa;CACb,cAAc;CACd,cAAc;CACd,iBAAiB;CACjB,gBAAgB;CAChB,mBAAmB;CACnB,OAAOC;CACP,gBAAgB;CAChB,UAAU;CACb;AAED,MAAM,iBAAiB,OAAO,SAAS,MAAM,cAAc;AACvD,KAAI,eAAe,SAAS,OAAO,MAAM,iBAAiB,WACtD,QAAO,MAAM,aAAa,QAAQ;AAEtC,KAAI,eAAe,SAAS,OAAO,MAAM,iBAAiB,WACtD,QAAO,MAAM,aAAa,QAAQ,OAAO,SAAS,UAAU;AAEhE,KAAI,aAAa,SAAS,OAAO,MAAM,YAAY,WAC/C,QAAO,MAAM,QAAQ,QAAQ,OAAO,QAAQ;AAEhD,KAAI,iBAAiB,SAAS,eAAe,IAAI,MAAM,YAAY,CAC/D,QAAO,eAAe,IAAI,MAAM,YAAY,CAAC,OAAO,QAAQ;AAEhE,KAAI,aAAa,MACb,QAAO,aAAa,MAAM,OAAO,QAAQ;AAE7C,QAAO;;AAEX,MAAM,WAAW,OAAO,UAAU;AAElC,SAAgB,QAAQ,OAAO,OAAO,EAAE,EAAE;CACtC,MAAM,UAAU,iBAAiB,MAAM,QAAQ;CAC/C,MAAM,EAAE,kBAAkB;CAC1B,IAAI,OAAO,UAAU,OAAO,SAAS,OAAO;AAC5C,KAAI,SAAS,SACT,QAAO,SAAS,KAAK,MAAM,CAAC,MAAM,GAAG,GAAG;AAG5C,KAAI,QAAQ,aACR,QAAO,aAAa,MAAM,OAAO,QAAQ;AAG7C,KAAI,iBAAiB,OAAO;EACxB,MAAM,SAAS,cAAc,OAAO,SAAS,MAAM,QAAQ;AAC3D,MAAI,QAAQ;AACR,OAAI,OAAO,WAAW,SAClB,QAAO;AACX,UAAO,QAAQ,QAAQ,QAAQ;;;CAGvC,MAAM,QAAQ,QAAQ,OAAO,eAAe,MAAM,GAAG;AAErD,KAAI,UAAU,OAAO,aAAa,UAAU,KACxC,QAAO,cAAc,OAAO,QAAQ;AAIxC,KAAI,SAAS,OAAO,gBAAgB,cAAc,iBAAiB,YAC/D,QAAOC,YAAmB,OAAO,QAAQ;AAE7C,KAAI,iBAAiB,OAAO;AAExB,MAAI,MAAM,gBAAgB,OACtB,QAAO,aAAa,OAAO,QAAQ;AAGvC,SAAO,cAAc,OAAO,QAAQ;;AAGxC,KAAI,UAAU,OAAO,MAAM,CACvB,QAAO,cAAc,OAAO,QAAQ;AAGxC,QAAO,QAAQ,QAAQ,OAAO,MAAM,EAAE,KAAK"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const require_helpers = require('./helpers.cjs');
|
|
2
|
+
|
|
3
|
+
//#region node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/map.js
|
|
4
|
+
function inspectMapEntry([key, value], options) {
|
|
5
|
+
options.truncate -= 4;
|
|
6
|
+
key = options.inspect(key, options);
|
|
7
|
+
options.truncate -= key.length;
|
|
8
|
+
value = options.inspect(value, options);
|
|
9
|
+
return `${key} => ${value}`;
|
|
10
|
+
}
|
|
11
|
+
function mapToEntries(map) {
|
|
12
|
+
const entries = [];
|
|
13
|
+
map.forEach((value, key) => {
|
|
14
|
+
entries.push([key, value]);
|
|
15
|
+
});
|
|
16
|
+
return entries;
|
|
17
|
+
}
|
|
18
|
+
function inspectMap(map, options) {
|
|
19
|
+
if (map.size === 0) return "Map{}";
|
|
20
|
+
options.truncate -= 7;
|
|
21
|
+
return `Map{ ${require_helpers.inspectList(mapToEntries(map), options, inspectMapEntry)} }`;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
exports.default = inspectMap;
|
|
26
|
+
//# sourceMappingURL=map.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"map.cjs","names":["inspectList"],"sources":["../../../../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/map.js"],"sourcesContent":["import { inspectList } from './helpers.js';\nfunction inspectMapEntry([key, value], options) {\n options.truncate -= 4;\n key = options.inspect(key, options);\n options.truncate -= key.length;\n value = options.inspect(value, options);\n return `${key} => ${value}`;\n}\n// IE11 doesn't support `map.entries()`\nfunction mapToEntries(map) {\n const entries = [];\n map.forEach((value, key) => {\n entries.push([key, value]);\n });\n return entries;\n}\nexport default function inspectMap(map, options) {\n if (map.size === 0)\n return 'Map{}';\n options.truncate -= 7;\n return `Map{ ${inspectList(mapToEntries(map), options, inspectMapEntry)} }`;\n}\n"],"x_google_ignoreList":[0],"mappings":";;;AACA,SAAS,gBAAgB,CAAC,KAAK,QAAQ,SAAS;AAC5C,SAAQ,YAAY;AACpB,OAAM,QAAQ,QAAQ,KAAK,QAAQ;AACnC,SAAQ,YAAY,IAAI;AACxB,SAAQ,QAAQ,QAAQ,OAAO,QAAQ;AACvC,QAAO,GAAG,IAAI,MAAM;;AAGxB,SAAS,aAAa,KAAK;CACvB,MAAM,UAAU,EAAE;AAClB,KAAI,SAAS,OAAO,QAAQ;AACxB,UAAQ,KAAK,CAAC,KAAK,MAAM,CAAC;GAC5B;AACF,QAAO;;AAEX,SAAwB,WAAW,KAAK,SAAS;AAC7C,KAAI,IAAI,SAAS,EACb,QAAO;AACX,SAAQ,YAAY;AACpB,QAAO,QAAQA,4BAAY,aAAa,IAAI,EAAE,SAAS,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { inspectList } from "./helpers.js";
|
|
2
|
+
|
|
3
|
+
//#region node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/map.js
|
|
4
|
+
function inspectMapEntry([key, value], options) {
|
|
5
|
+
options.truncate -= 4;
|
|
6
|
+
key = options.inspect(key, options);
|
|
7
|
+
options.truncate -= key.length;
|
|
8
|
+
value = options.inspect(value, options);
|
|
9
|
+
return `${key} => ${value}`;
|
|
10
|
+
}
|
|
11
|
+
function mapToEntries(map) {
|
|
12
|
+
const entries = [];
|
|
13
|
+
map.forEach((value, key) => {
|
|
14
|
+
entries.push([key, value]);
|
|
15
|
+
});
|
|
16
|
+
return entries;
|
|
17
|
+
}
|
|
18
|
+
function inspectMap(map, options) {
|
|
19
|
+
if (map.size === 0) return "Map{}";
|
|
20
|
+
options.truncate -= 7;
|
|
21
|
+
return `Map{ ${inspectList(mapToEntries(map), options, inspectMapEntry)} }`;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
export { inspectMap as default };
|
|
26
|
+
//# sourceMappingURL=map.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"map.js","names":[],"sources":["../../../../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/map.js"],"sourcesContent":["import { inspectList } from './helpers.js';\nfunction inspectMapEntry([key, value], options) {\n options.truncate -= 4;\n key = options.inspect(key, options);\n options.truncate -= key.length;\n value = options.inspect(value, options);\n return `${key} => ${value}`;\n}\n// IE11 doesn't support `map.entries()`\nfunction mapToEntries(map) {\n const entries = [];\n map.forEach((value, key) => {\n entries.push([key, value]);\n });\n return entries;\n}\nexport default function inspectMap(map, options) {\n if (map.size === 0)\n return 'Map{}';\n options.truncate -= 7;\n return `Map{ ${inspectList(mapToEntries(map), options, inspectMapEntry)} }`;\n}\n"],"x_google_ignoreList":[0],"mappings":";;;AACA,SAAS,gBAAgB,CAAC,KAAK,QAAQ,SAAS;AAC5C,SAAQ,YAAY;AACpB,OAAM,QAAQ,QAAQ,KAAK,QAAQ;AACnC,SAAQ,YAAY,IAAI;AACxB,SAAQ,QAAQ,QAAQ,OAAO,QAAQ;AACvC,QAAO,GAAG,IAAI,MAAM;;AAGxB,SAAS,aAAa,KAAK;CACvB,MAAM,UAAU,EAAE;AAClB,KAAI,SAAS,OAAO,QAAQ;AACxB,UAAQ,KAAK,CAAC,KAAK,MAAM,CAAC;GAC5B;AACF,QAAO;;AAEX,SAAwB,WAAW,KAAK,SAAS;AAC7C,KAAI,IAAI,SAAS,EACb,QAAO;AACX,SAAQ,YAAY;AACpB,QAAO,QAAQ,YAAY,aAAa,IAAI,EAAE,SAAS,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const require_helpers = require('./helpers.cjs');
|
|
2
|
+
|
|
3
|
+
//#region node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/number.js
|
|
4
|
+
const isNaN = Number.isNaN || ((i) => i !== i);
|
|
5
|
+
function inspectNumber(number, options) {
|
|
6
|
+
if (isNaN(number)) return options.stylize("NaN", "number");
|
|
7
|
+
if (number === Infinity) return options.stylize("Infinity", "number");
|
|
8
|
+
if (number === -Infinity) return options.stylize("-Infinity", "number");
|
|
9
|
+
if (number === 0) return options.stylize(1 / number === Infinity ? "+0" : "-0", "number");
|
|
10
|
+
return options.stylize(require_helpers.truncate(String(number), options.truncate), "number");
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
exports.default = inspectNumber;
|
|
15
|
+
//# sourceMappingURL=number.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"number.cjs","names":["truncate"],"sources":["../../../../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/number.js"],"sourcesContent":["import { truncate } from './helpers.js';\nconst isNaN = Number.isNaN || (i => i !== i); // eslint-disable-line no-self-compare\nexport default function inspectNumber(number, options) {\n if (isNaN(number)) {\n return options.stylize('NaN', 'number');\n }\n if (number === Infinity) {\n return options.stylize('Infinity', 'number');\n }\n if (number === -Infinity) {\n return options.stylize('-Infinity', 'number');\n }\n if (number === 0) {\n return options.stylize(1 / number === Infinity ? '+0' : '-0', 'number');\n }\n return options.stylize(truncate(String(number), options.truncate), 'number');\n}\n"],"x_google_ignoreList":[0],"mappings":";;;AACA,MAAM,QAAQ,OAAO,WAAU,MAAK,MAAM;AAC1C,SAAwB,cAAc,QAAQ,SAAS;AACnD,KAAI,MAAM,OAAO,CACb,QAAO,QAAQ,QAAQ,OAAO,SAAS;AAE3C,KAAI,WAAW,SACX,QAAO,QAAQ,QAAQ,YAAY,SAAS;AAEhD,KAAI,WAAW,UACX,QAAO,QAAQ,QAAQ,aAAa,SAAS;AAEjD,KAAI,WAAW,EACX,QAAO,QAAQ,QAAQ,IAAI,WAAW,WAAW,OAAO,MAAM,SAAS;AAE3E,QAAO,QAAQ,QAAQA,yBAAS,OAAO,OAAO,EAAE,QAAQ,SAAS,EAAE,SAAS"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { truncate } from "./helpers.js";
|
|
2
|
+
|
|
3
|
+
//#region node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/number.js
|
|
4
|
+
const isNaN = Number.isNaN || ((i) => i !== i);
|
|
5
|
+
function inspectNumber(number, options) {
|
|
6
|
+
if (isNaN(number)) return options.stylize("NaN", "number");
|
|
7
|
+
if (number === Infinity) return options.stylize("Infinity", "number");
|
|
8
|
+
if (number === -Infinity) return options.stylize("-Infinity", "number");
|
|
9
|
+
if (number === 0) return options.stylize(1 / number === Infinity ? "+0" : "-0", "number");
|
|
10
|
+
return options.stylize(truncate(String(number), options.truncate), "number");
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { inspectNumber as default };
|
|
15
|
+
//# sourceMappingURL=number.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"number.js","names":[],"sources":["../../../../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/number.js"],"sourcesContent":["import { truncate } from './helpers.js';\nconst isNaN = Number.isNaN || (i => i !== i); // eslint-disable-line no-self-compare\nexport default function inspectNumber(number, options) {\n if (isNaN(number)) {\n return options.stylize('NaN', 'number');\n }\n if (number === Infinity) {\n return options.stylize('Infinity', 'number');\n }\n if (number === -Infinity) {\n return options.stylize('-Infinity', 'number');\n }\n if (number === 0) {\n return options.stylize(1 / number === Infinity ? '+0' : '-0', 'number');\n }\n return options.stylize(truncate(String(number), options.truncate), 'number');\n}\n"],"x_google_ignoreList":[0],"mappings":";;;AACA,MAAM,QAAQ,OAAO,WAAU,MAAK,MAAM;AAC1C,SAAwB,cAAc,QAAQ,SAAS;AACnD,KAAI,MAAM,OAAO,CACb,QAAO,QAAQ,QAAQ,OAAO,SAAS;AAE3C,KAAI,WAAW,SACX,QAAO,QAAQ,QAAQ,YAAY,SAAS;AAEhD,KAAI,WAAW,UACX,QAAO,QAAQ,QAAQ,aAAa,SAAS;AAEjD,KAAI,WAAW,EACX,QAAO,QAAQ,QAAQ,IAAI,WAAW,WAAW,OAAO,MAAM,SAAS;AAE3E,QAAO,QAAQ,QAAQ,SAAS,OAAO,OAAO,EAAE,QAAQ,SAAS,EAAE,SAAS"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const require_helpers = require('./helpers.cjs');
|
|
2
|
+
|
|
3
|
+
//#region node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/object.js
|
|
4
|
+
function inspectObject(object, options) {
|
|
5
|
+
const properties = Object.getOwnPropertyNames(object);
|
|
6
|
+
const symbols = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(object) : [];
|
|
7
|
+
if (properties.length === 0 && symbols.length === 0) return "{}";
|
|
8
|
+
options.truncate -= 4;
|
|
9
|
+
options.seen = options.seen || [];
|
|
10
|
+
if (options.seen.includes(object)) return "[Circular]";
|
|
11
|
+
options.seen.push(object);
|
|
12
|
+
const propertyContents = require_helpers.inspectList(properties.map((key) => [key, object[key]]), options, require_helpers.inspectProperty);
|
|
13
|
+
const symbolContents = require_helpers.inspectList(symbols.map((key) => [key, object[key]]), options, require_helpers.inspectProperty);
|
|
14
|
+
options.seen.pop();
|
|
15
|
+
let sep = "";
|
|
16
|
+
if (propertyContents && symbolContents) sep = ", ";
|
|
17
|
+
return `{ ${propertyContents}${sep}${symbolContents} }`;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
exports.default = inspectObject;
|
|
22
|
+
//# sourceMappingURL=object.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"object.cjs","names":["inspectList","inspectProperty"],"sources":["../../../../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/object.js"],"sourcesContent":["import { inspectList, inspectProperty } from './helpers.js';\nexport default function inspectObject(object, options) {\n const properties = Object.getOwnPropertyNames(object);\n const symbols = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(object) : [];\n if (properties.length === 0 && symbols.length === 0) {\n return '{}';\n }\n options.truncate -= 4;\n options.seen = options.seen || [];\n if (options.seen.includes(object)) {\n return '[Circular]';\n }\n options.seen.push(object);\n const propertyContents = inspectList(properties.map(key => [key, object[key]]), options, inspectProperty);\n const symbolContents = inspectList(symbols.map(key => [key, object[key]]), options, inspectProperty);\n options.seen.pop();\n let sep = '';\n if (propertyContents && symbolContents) {\n sep = ', ';\n }\n return `{ ${propertyContents}${sep}${symbolContents} }`;\n}\n"],"x_google_ignoreList":[0],"mappings":";;;AACA,SAAwB,cAAc,QAAQ,SAAS;CACnD,MAAM,aAAa,OAAO,oBAAoB,OAAO;CACrD,MAAM,UAAU,OAAO,wBAAwB,OAAO,sBAAsB,OAAO,GAAG,EAAE;AACxF,KAAI,WAAW,WAAW,KAAK,QAAQ,WAAW,EAC9C,QAAO;AAEX,SAAQ,YAAY;AACpB,SAAQ,OAAO,QAAQ,QAAQ,EAAE;AACjC,KAAI,QAAQ,KAAK,SAAS,OAAO,CAC7B,QAAO;AAEX,SAAQ,KAAK,KAAK,OAAO;CACzB,MAAM,mBAAmBA,4BAAY,WAAW,KAAI,QAAO,CAAC,KAAK,OAAO,KAAK,CAAC,EAAE,SAASC,gCAAgB;CACzG,MAAM,iBAAiBD,4BAAY,QAAQ,KAAI,QAAO,CAAC,KAAK,OAAO,KAAK,CAAC,EAAE,SAASC,gCAAgB;AACpG,SAAQ,KAAK,KAAK;CAClB,IAAI,MAAM;AACV,KAAI,oBAAoB,eACpB,OAAM;AAEV,QAAO,KAAK,mBAAmB,MAAM,eAAe"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { inspectList, inspectProperty } from "./helpers.js";
|
|
2
|
+
|
|
3
|
+
//#region node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/object.js
|
|
4
|
+
function inspectObject(object, options) {
|
|
5
|
+
const properties = Object.getOwnPropertyNames(object);
|
|
6
|
+
const symbols = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(object) : [];
|
|
7
|
+
if (properties.length === 0 && symbols.length === 0) return "{}";
|
|
8
|
+
options.truncate -= 4;
|
|
9
|
+
options.seen = options.seen || [];
|
|
10
|
+
if (options.seen.includes(object)) return "[Circular]";
|
|
11
|
+
options.seen.push(object);
|
|
12
|
+
const propertyContents = inspectList(properties.map((key) => [key, object[key]]), options, inspectProperty);
|
|
13
|
+
const symbolContents = inspectList(symbols.map((key) => [key, object[key]]), options, inspectProperty);
|
|
14
|
+
options.seen.pop();
|
|
15
|
+
let sep = "";
|
|
16
|
+
if (propertyContents && symbolContents) sep = ", ";
|
|
17
|
+
return `{ ${propertyContents}${sep}${symbolContents} }`;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
export { inspectObject as default };
|
|
22
|
+
//# sourceMappingURL=object.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"object.js","names":[],"sources":["../../../../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/object.js"],"sourcesContent":["import { inspectList, inspectProperty } from './helpers.js';\nexport default function inspectObject(object, options) {\n const properties = Object.getOwnPropertyNames(object);\n const symbols = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(object) : [];\n if (properties.length === 0 && symbols.length === 0) {\n return '{}';\n }\n options.truncate -= 4;\n options.seen = options.seen || [];\n if (options.seen.includes(object)) {\n return '[Circular]';\n }\n options.seen.push(object);\n const propertyContents = inspectList(properties.map(key => [key, object[key]]), options, inspectProperty);\n const symbolContents = inspectList(symbols.map(key => [key, object[key]]), options, inspectProperty);\n options.seen.pop();\n let sep = '';\n if (propertyContents && symbolContents) {\n sep = ', ';\n }\n return `{ ${propertyContents}${sep}${symbolContents} }`;\n}\n"],"x_google_ignoreList":[0],"mappings":";;;AACA,SAAwB,cAAc,QAAQ,SAAS;CACnD,MAAM,aAAa,OAAO,oBAAoB,OAAO;CACrD,MAAM,UAAU,OAAO,wBAAwB,OAAO,sBAAsB,OAAO,GAAG,EAAE;AACxF,KAAI,WAAW,WAAW,KAAK,QAAQ,WAAW,EAC9C,QAAO;AAEX,SAAQ,YAAY;AACpB,SAAQ,OAAO,QAAQ,QAAQ,EAAE;AACjC,KAAI,QAAQ,KAAK,SAAS,OAAO,CAC7B,QAAO;AAEX,SAAQ,KAAK,KAAK,OAAO;CACzB,MAAM,mBAAmB,YAAY,WAAW,KAAI,QAAO,CAAC,KAAK,OAAO,KAAK,CAAC,EAAE,SAAS,gBAAgB;CACzG,MAAM,iBAAiB,YAAY,QAAQ,KAAI,QAAO,CAAC,KAAK,OAAO,KAAK,CAAC,EAAE,SAAS,gBAAgB;AACpG,SAAQ,KAAK,KAAK;CAClB,IAAI,MAAM;AACV,KAAI,oBAAoB,eACpB,OAAM;AAEV,QAAO,KAAK,mBAAmB,MAAM,eAAe"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promise.cjs","names":[],"sources":["../../../../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/promise.js"],"sourcesContent":["const getPromiseValue = () => 'Promise{…}';\nexport default getPromiseValue;\n"],"x_google_ignoreList":[0],"mappings":";;AAAA,MAAM,wBAAwB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promise.js","names":[],"sources":["../../../../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/promise.js"],"sourcesContent":["const getPromiseValue = () => 'Promise{…}';\nexport default getPromiseValue;\n"],"x_google_ignoreList":[0],"mappings":";AAAA,MAAM,wBAAwB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const require_helpers = require('./helpers.cjs');
|
|
2
|
+
|
|
3
|
+
//#region node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/regexp.js
|
|
4
|
+
function inspectRegExp(value, options) {
|
|
5
|
+
const flags = value.toString().split("/")[2];
|
|
6
|
+
const sourceLength = options.truncate - (2 + flags.length);
|
|
7
|
+
const source = value.source;
|
|
8
|
+
return options.stylize(`/${require_helpers.truncate(source, sourceLength)}/${flags}`, "regexp");
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
exports.default = inspectRegExp;
|
|
13
|
+
//# sourceMappingURL=regexp.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"regexp.cjs","names":["truncate"],"sources":["../../../../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/regexp.js"],"sourcesContent":["import { truncate } from './helpers.js';\nexport default function inspectRegExp(value, options) {\n const flags = value.toString().split('/')[2];\n const sourceLength = options.truncate - (2 + flags.length);\n const source = value.source;\n return options.stylize(`/${truncate(source, sourceLength)}/${flags}`, 'regexp');\n}\n"],"x_google_ignoreList":[0],"mappings":";;;AACA,SAAwB,cAAc,OAAO,SAAS;CAClD,MAAM,QAAQ,MAAM,UAAU,CAAC,MAAM,IAAI,CAAC;CAC1C,MAAM,eAAe,QAAQ,YAAY,IAAI,MAAM;CACnD,MAAM,SAAS,MAAM;AACrB,QAAO,QAAQ,QAAQ,IAAIA,yBAAS,QAAQ,aAAa,CAAC,GAAG,SAAS,SAAS"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { truncate } from "./helpers.js";
|
|
2
|
+
|
|
3
|
+
//#region node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/regexp.js
|
|
4
|
+
function inspectRegExp(value, options) {
|
|
5
|
+
const flags = value.toString().split("/")[2];
|
|
6
|
+
const sourceLength = options.truncate - (2 + flags.length);
|
|
7
|
+
const source = value.source;
|
|
8
|
+
return options.stylize(`/${truncate(source, sourceLength)}/${flags}`, "regexp");
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { inspectRegExp as default };
|
|
13
|
+
//# sourceMappingURL=regexp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"regexp.js","names":[],"sources":["../../../../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/regexp.js"],"sourcesContent":["import { truncate } from './helpers.js';\nexport default function inspectRegExp(value, options) {\n const flags = value.toString().split('/')[2];\n const sourceLength = options.truncate - (2 + flags.length);\n const source = value.source;\n return options.stylize(`/${truncate(source, sourceLength)}/${flags}`, 'regexp');\n}\n"],"x_google_ignoreList":[0],"mappings":";;;AACA,SAAwB,cAAc,OAAO,SAAS;CAClD,MAAM,QAAQ,MAAM,UAAU,CAAC,MAAM,IAAI,CAAC;CAC1C,MAAM,eAAe,QAAQ,YAAY,IAAI,MAAM;CACnD,MAAM,SAAS,MAAM;AACrB,QAAO,QAAQ,QAAQ,IAAI,SAAS,QAAQ,aAAa,CAAC,GAAG,SAAS,SAAS"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const require_helpers = require('./helpers.cjs');
|
|
2
|
+
|
|
3
|
+
//#region node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/set.js
|
|
4
|
+
function arrayFromSet(set) {
|
|
5
|
+
const values = [];
|
|
6
|
+
set.forEach((value) => {
|
|
7
|
+
values.push(value);
|
|
8
|
+
});
|
|
9
|
+
return values;
|
|
10
|
+
}
|
|
11
|
+
function inspectSet(set, options) {
|
|
12
|
+
if (set.size === 0) return "Set{}";
|
|
13
|
+
options.truncate -= 7;
|
|
14
|
+
return `Set{ ${require_helpers.inspectList(arrayFromSet(set), options)} }`;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
exports.default = inspectSet;
|
|
19
|
+
//# sourceMappingURL=set.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set.cjs","names":["inspectList"],"sources":["../../../../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/set.js"],"sourcesContent":["import { inspectList } from './helpers.js';\n// IE11 doesn't support `Array.from(set)`\nfunction arrayFromSet(set) {\n const values = [];\n set.forEach(value => {\n values.push(value);\n });\n return values;\n}\nexport default function inspectSet(set, options) {\n if (set.size === 0)\n return 'Set{}';\n options.truncate -= 7;\n return `Set{ ${inspectList(arrayFromSet(set), options)} }`;\n}\n"],"x_google_ignoreList":[0],"mappings":";;;AAEA,SAAS,aAAa,KAAK;CACvB,MAAM,SAAS,EAAE;AACjB,KAAI,SAAQ,UAAS;AACjB,SAAO,KAAK,MAAM;GACpB;AACF,QAAO;;AAEX,SAAwB,WAAW,KAAK,SAAS;AAC7C,KAAI,IAAI,SAAS,EACb,QAAO;AACX,SAAQ,YAAY;AACpB,QAAO,QAAQA,4BAAY,aAAa,IAAI,EAAE,QAAQ,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { inspectList } from "./helpers.js";
|
|
2
|
+
|
|
3
|
+
//#region node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/set.js
|
|
4
|
+
function arrayFromSet(set) {
|
|
5
|
+
const values = [];
|
|
6
|
+
set.forEach((value) => {
|
|
7
|
+
values.push(value);
|
|
8
|
+
});
|
|
9
|
+
return values;
|
|
10
|
+
}
|
|
11
|
+
function inspectSet(set, options) {
|
|
12
|
+
if (set.size === 0) return "Set{}";
|
|
13
|
+
options.truncate -= 7;
|
|
14
|
+
return `Set{ ${inspectList(arrayFromSet(set), options)} }`;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
export { inspectSet as default };
|
|
19
|
+
//# sourceMappingURL=set.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set.js","names":[],"sources":["../../../../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/set.js"],"sourcesContent":["import { inspectList } from './helpers.js';\n// IE11 doesn't support `Array.from(set)`\nfunction arrayFromSet(set) {\n const values = [];\n set.forEach(value => {\n values.push(value);\n });\n return values;\n}\nexport default function inspectSet(set, options) {\n if (set.size === 0)\n return 'Set{}';\n options.truncate -= 7;\n return `Set{ ${inspectList(arrayFromSet(set), options)} }`;\n}\n"],"x_google_ignoreList":[0],"mappings":";;;AAEA,SAAS,aAAa,KAAK;CACvB,MAAM,SAAS,EAAE;AACjB,KAAI,SAAQ,UAAS;AACjB,SAAO,KAAK,MAAM;GACpB;AACF,QAAO;;AAEX,SAAwB,WAAW,KAAK,SAAS;AAC7C,KAAI,IAAI,SAAS,EACb,QAAO;AACX,SAAQ,YAAY;AACpB,QAAO,QAAQ,YAAY,aAAa,IAAI,EAAE,QAAQ,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const require_helpers = require('./helpers.cjs');
|
|
2
|
+
|
|
3
|
+
//#region node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/string.js
|
|
4
|
+
const stringEscapeChars = new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]", "g");
|
|
5
|
+
const escapeCharacters = {
|
|
6
|
+
"\b": "\\b",
|
|
7
|
+
" ": "\\t",
|
|
8
|
+
"\n": "\\n",
|
|
9
|
+
"\f": "\\f",
|
|
10
|
+
"\r": "\\r",
|
|
11
|
+
"'": "\\'",
|
|
12
|
+
"\\": "\\\\"
|
|
13
|
+
};
|
|
14
|
+
const hex = 16;
|
|
15
|
+
const unicodeLength = 4;
|
|
16
|
+
function escape(char) {
|
|
17
|
+
return escapeCharacters[char] || `\\u${`0000${char.charCodeAt(0).toString(hex)}`.slice(-unicodeLength)}`;
|
|
18
|
+
}
|
|
19
|
+
function inspectString(string, options) {
|
|
20
|
+
if (stringEscapeChars.test(string)) string = string.replace(stringEscapeChars, escape);
|
|
21
|
+
return options.stylize(`'${require_helpers.truncate(string, options.truncate - 2)}'`, "string");
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
exports.default = inspectString;
|
|
26
|
+
//# sourceMappingURL=string.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"string.cjs","names":["truncate"],"sources":["../../../../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/string.js"],"sourcesContent":["import { truncate } from './helpers.js';\nconst stringEscapeChars = new RegExp(\"['\\\\u0000-\\\\u001f\\\\u007f-\\\\u009f\\\\u00ad\\\\u0600-\\\\u0604\\\\u070f\\\\u17b4\\\\u17b5\" +\n '\\\\u200c-\\\\u200f\\\\u2028-\\\\u202f\\\\u2060-\\\\u206f\\\\ufeff\\\\ufff0-\\\\uffff]', 'g');\nconst escapeCharacters = {\n '\\b': '\\\\b',\n '\\t': '\\\\t',\n '\\n': '\\\\n',\n '\\f': '\\\\f',\n '\\r': '\\\\r',\n \"'\": \"\\\\'\",\n '\\\\': '\\\\\\\\',\n};\nconst hex = 16;\nconst unicodeLength = 4;\nfunction escape(char) {\n return (escapeCharacters[char] ||\n `\\\\u${`0000${char.charCodeAt(0).toString(hex)}`.slice(-unicodeLength)}`);\n}\nexport default function inspectString(string, options) {\n if (stringEscapeChars.test(string)) {\n string = string.replace(stringEscapeChars, escape);\n }\n return options.stylize(`'${truncate(string, options.truncate - 2)}'`, 'string');\n}\n"],"x_google_ignoreList":[0],"mappings":";;;AACA,MAAM,oBAAoB,IAAI,OAAO,mJACuC,IAAI;AAChF,MAAM,mBAAmB;CACrB,MAAM;CACN,KAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,KAAK;CACL,MAAM;CACT;AACD,MAAM,MAAM;AACZ,MAAM,gBAAgB;AACtB,SAAS,OAAO,MAAM;AAClB,QAAQ,iBAAiB,SACrB,MAAM,OAAO,KAAK,WAAW,EAAE,CAAC,SAAS,IAAI,GAAG,MAAM,CAAC,cAAc;;AAE7E,SAAwB,cAAc,QAAQ,SAAS;AACnD,KAAI,kBAAkB,KAAK,OAAO,CAC9B,UAAS,OAAO,QAAQ,mBAAmB,OAAO;AAEtD,QAAO,QAAQ,QAAQ,IAAIA,yBAAS,QAAQ,QAAQ,WAAW,EAAE,CAAC,IAAI,SAAS"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { truncate } from "./helpers.js";
|
|
2
|
+
|
|
3
|
+
//#region node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/string.js
|
|
4
|
+
const stringEscapeChars = new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]", "g");
|
|
5
|
+
const escapeCharacters = {
|
|
6
|
+
"\b": "\\b",
|
|
7
|
+
" ": "\\t",
|
|
8
|
+
"\n": "\\n",
|
|
9
|
+
"\f": "\\f",
|
|
10
|
+
"\r": "\\r",
|
|
11
|
+
"'": "\\'",
|
|
12
|
+
"\\": "\\\\"
|
|
13
|
+
};
|
|
14
|
+
const hex = 16;
|
|
15
|
+
const unicodeLength = 4;
|
|
16
|
+
function escape(char) {
|
|
17
|
+
return escapeCharacters[char] || `\\u${`0000${char.charCodeAt(0).toString(hex)}`.slice(-unicodeLength)}`;
|
|
18
|
+
}
|
|
19
|
+
function inspectString(string, options) {
|
|
20
|
+
if (stringEscapeChars.test(string)) string = string.replace(stringEscapeChars, escape);
|
|
21
|
+
return options.stylize(`'${truncate(string, options.truncate - 2)}'`, "string");
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
export { inspectString as default };
|
|
26
|
+
//# sourceMappingURL=string.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"string.js","names":[],"sources":["../../../../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/string.js"],"sourcesContent":["import { truncate } from './helpers.js';\nconst stringEscapeChars = new RegExp(\"['\\\\u0000-\\\\u001f\\\\u007f-\\\\u009f\\\\u00ad\\\\u0600-\\\\u0604\\\\u070f\\\\u17b4\\\\u17b5\" +\n '\\\\u200c-\\\\u200f\\\\u2028-\\\\u202f\\\\u2060-\\\\u206f\\\\ufeff\\\\ufff0-\\\\uffff]', 'g');\nconst escapeCharacters = {\n '\\b': '\\\\b',\n '\\t': '\\\\t',\n '\\n': '\\\\n',\n '\\f': '\\\\f',\n '\\r': '\\\\r',\n \"'\": \"\\\\'\",\n '\\\\': '\\\\\\\\',\n};\nconst hex = 16;\nconst unicodeLength = 4;\nfunction escape(char) {\n return (escapeCharacters[char] ||\n `\\\\u${`0000${char.charCodeAt(0).toString(hex)}`.slice(-unicodeLength)}`);\n}\nexport default function inspectString(string, options) {\n if (stringEscapeChars.test(string)) {\n string = string.replace(stringEscapeChars, escape);\n }\n return options.stylize(`'${truncate(string, options.truncate - 2)}'`, 'string');\n}\n"],"x_google_ignoreList":[0],"mappings":";;;AACA,MAAM,oBAAoB,IAAI,OAAO,mJACuC,IAAI;AAChF,MAAM,mBAAmB;CACrB,MAAM;CACN,KAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,KAAK;CACL,MAAM;CACT;AACD,MAAM,MAAM;AACZ,MAAM,gBAAgB;AACtB,SAAS,OAAO,MAAM;AAClB,QAAQ,iBAAiB,SACrB,MAAM,OAAO,KAAK,WAAW,EAAE,CAAC,SAAS,IAAI,GAAG,MAAM,CAAC,cAAc;;AAE7E,SAAwB,cAAc,QAAQ,SAAS;AACnD,KAAI,kBAAkB,KAAK,OAAO,CAC9B,UAAS,OAAO,QAAQ,mBAAmB,OAAO;AAEtD,QAAO,QAAQ,QAAQ,IAAI,SAAS,QAAQ,QAAQ,WAAW,EAAE,CAAC,IAAI,SAAS"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
|
|
2
|
+
//#region node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/symbol.js
|
|
3
|
+
function inspectSymbol(value) {
|
|
4
|
+
if ("description" in Symbol.prototype) return value.description ? `Symbol(${value.description})` : "Symbol()";
|
|
5
|
+
return value.toString();
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
//#endregion
|
|
9
|
+
exports.default = inspectSymbol;
|
|
10
|
+
//# sourceMappingURL=symbol.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"symbol.cjs","names":[],"sources":["../../../../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/symbol.js"],"sourcesContent":["export default function inspectSymbol(value) {\n if ('description' in Symbol.prototype) {\n return value.description ? `Symbol(${value.description})` : 'Symbol()';\n }\n return value.toString();\n}\n"],"x_google_ignoreList":[0],"mappings":";;AAAA,SAAwB,cAAc,OAAO;AACzC,KAAI,iBAAiB,OAAO,UACxB,QAAO,MAAM,cAAc,UAAU,MAAM,YAAY,KAAK;AAEhE,QAAO,MAAM,UAAU"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/symbol.js
|
|
2
|
+
function inspectSymbol(value) {
|
|
3
|
+
if ("description" in Symbol.prototype) return value.description ? `Symbol(${value.description})` : "Symbol()";
|
|
4
|
+
return value.toString();
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
export { inspectSymbol as default };
|
|
9
|
+
//# sourceMappingURL=symbol.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"symbol.js","names":[],"sources":["../../../../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/symbol.js"],"sourcesContent":["export default function inspectSymbol(value) {\n if ('description' in Symbol.prototype) {\n return value.description ? `Symbol(${value.description})` : 'Symbol()';\n }\n return value.toString();\n}\n"],"x_google_ignoreList":[0],"mappings":";AAAA,SAAwB,cAAc,OAAO;AACzC,KAAI,iBAAiB,OAAO,UACxB,QAAO,MAAM,cAAc,UAAU,MAAM,YAAY,KAAK;AAEhE,QAAO,MAAM,UAAU"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const require_helpers = require('./helpers.cjs');
|
|
2
|
+
|
|
3
|
+
//#region node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/typedarray.js
|
|
4
|
+
const getArrayName = (array) => {
|
|
5
|
+
if (typeof Buffer === "function" && array instanceof Buffer) return "Buffer";
|
|
6
|
+
if (array[Symbol.toStringTag]) return array[Symbol.toStringTag];
|
|
7
|
+
return array.constructor.name;
|
|
8
|
+
};
|
|
9
|
+
function inspectTypedArray(array, options) {
|
|
10
|
+
const name = getArrayName(array);
|
|
11
|
+
options.truncate -= name.length + 4;
|
|
12
|
+
const nonIndexProperties = Object.keys(array).slice(array.length);
|
|
13
|
+
if (!array.length && !nonIndexProperties.length) return `${name}[]`;
|
|
14
|
+
let output = "";
|
|
15
|
+
for (let i = 0; i < array.length; i++) {
|
|
16
|
+
const string = `${options.stylize(require_helpers.truncate(array[i], options.truncate), "number")}${i === array.length - 1 ? "" : ", "}`;
|
|
17
|
+
options.truncate -= string.length;
|
|
18
|
+
if (array[i] !== array.length && options.truncate <= 3) {
|
|
19
|
+
output += `${require_helpers.truncator}(${array.length - array[i] + 1})`;
|
|
20
|
+
break;
|
|
21
|
+
}
|
|
22
|
+
output += string;
|
|
23
|
+
}
|
|
24
|
+
let propertyContents = "";
|
|
25
|
+
if (nonIndexProperties.length) propertyContents = require_helpers.inspectList(nonIndexProperties.map((key) => [key, array[key]]), options, require_helpers.inspectProperty);
|
|
26
|
+
return `${name}[ ${output}${propertyContents ? `, ${propertyContents}` : ""} ]`;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
//#endregion
|
|
30
|
+
exports.default = inspectTypedArray;
|
|
31
|
+
//# sourceMappingURL=typedarray.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typedarray.cjs","names":["truncate","truncator","inspectList","inspectProperty"],"sources":["../../../../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/typedarray.js"],"sourcesContent":["import { inspectList, inspectProperty, truncate, truncator } from './helpers.js';\nconst getArrayName = (array) => {\n // We need to special case Node.js' Buffers, which report to be Uint8Array\n // @ts-ignore\n if (typeof Buffer === 'function' && array instanceof Buffer) {\n return 'Buffer';\n }\n if (array[Symbol.toStringTag]) {\n return array[Symbol.toStringTag];\n }\n return array.constructor.name;\n};\nexport default function inspectTypedArray(array, options) {\n const name = getArrayName(array);\n options.truncate -= name.length + 4;\n // Object.keys will always output the Array indices first, so we can slice by\n // `array.length` to get non-index properties\n const nonIndexProperties = Object.keys(array).slice(array.length);\n if (!array.length && !nonIndexProperties.length)\n return `${name}[]`;\n // As we know TypedArrays only contain Unsigned Integers, we can skip inspecting each one and simply\n // stylise the toString() value of them\n let output = '';\n for (let i = 0; i < array.length; i++) {\n const string = `${options.stylize(truncate(array[i], options.truncate), 'number')}${i === array.length - 1 ? '' : ', '}`;\n options.truncate -= string.length;\n if (array[i] !== array.length && options.truncate <= 3) {\n output += `${truncator}(${array.length - array[i] + 1})`;\n break;\n }\n output += string;\n }\n let propertyContents = '';\n if (nonIndexProperties.length) {\n propertyContents = inspectList(nonIndexProperties.map(key => [key, array[key]]), options, inspectProperty);\n }\n return `${name}[ ${output}${propertyContents ? `, ${propertyContents}` : ''} ]`;\n}\n"],"x_google_ignoreList":[0],"mappings":";;;AACA,MAAM,gBAAgB,UAAU;AAG5B,KAAI,OAAO,WAAW,cAAc,iBAAiB,OACjD,QAAO;AAEX,KAAI,MAAM,OAAO,aACb,QAAO,MAAM,OAAO;AAExB,QAAO,MAAM,YAAY;;AAE7B,SAAwB,kBAAkB,OAAO,SAAS;CACtD,MAAM,OAAO,aAAa,MAAM;AAChC,SAAQ,YAAY,KAAK,SAAS;CAGlC,MAAM,qBAAqB,OAAO,KAAK,MAAM,CAAC,MAAM,MAAM,OAAO;AACjE,KAAI,CAAC,MAAM,UAAU,CAAC,mBAAmB,OACrC,QAAO,GAAG,KAAK;CAGnB,IAAI,SAAS;AACb,MAAK,IAAI,IAAI,GAAG,IAAI,MAAM,QAAQ,KAAK;EACnC,MAAM,SAAS,GAAG,QAAQ,QAAQA,yBAAS,MAAM,IAAI,QAAQ,SAAS,EAAE,SAAS,GAAG,MAAM,MAAM,SAAS,IAAI,KAAK;AAClH,UAAQ,YAAY,OAAO;AAC3B,MAAI,MAAM,OAAO,MAAM,UAAU,QAAQ,YAAY,GAAG;AACpD,aAAU,GAAGC,0BAAU,GAAG,MAAM,SAAS,MAAM,KAAK,EAAE;AACtD;;AAEJ,YAAU;;CAEd,IAAI,mBAAmB;AACvB,KAAI,mBAAmB,OACnB,oBAAmBC,4BAAY,mBAAmB,KAAI,QAAO,CAAC,KAAK,MAAM,KAAK,CAAC,EAAE,SAASC,gCAAgB;AAE9G,QAAO,GAAG,KAAK,IAAI,SAAS,mBAAmB,KAAK,qBAAqB,GAAG"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { inspectList, inspectProperty, truncate, truncator } from "./helpers.js";
|
|
2
|
+
|
|
3
|
+
//#region node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/typedarray.js
|
|
4
|
+
const getArrayName = (array) => {
|
|
5
|
+
if (typeof Buffer === "function" && array instanceof Buffer) return "Buffer";
|
|
6
|
+
if (array[Symbol.toStringTag]) return array[Symbol.toStringTag];
|
|
7
|
+
return array.constructor.name;
|
|
8
|
+
};
|
|
9
|
+
function inspectTypedArray(array, options) {
|
|
10
|
+
const name = getArrayName(array);
|
|
11
|
+
options.truncate -= name.length + 4;
|
|
12
|
+
const nonIndexProperties = Object.keys(array).slice(array.length);
|
|
13
|
+
if (!array.length && !nonIndexProperties.length) return `${name}[]`;
|
|
14
|
+
let output = "";
|
|
15
|
+
for (let i = 0; i < array.length; i++) {
|
|
16
|
+
const string = `${options.stylize(truncate(array[i], options.truncate), "number")}${i === array.length - 1 ? "" : ", "}`;
|
|
17
|
+
options.truncate -= string.length;
|
|
18
|
+
if (array[i] !== array.length && options.truncate <= 3) {
|
|
19
|
+
output += `${truncator}(${array.length - array[i] + 1})`;
|
|
20
|
+
break;
|
|
21
|
+
}
|
|
22
|
+
output += string;
|
|
23
|
+
}
|
|
24
|
+
let propertyContents = "";
|
|
25
|
+
if (nonIndexProperties.length) propertyContents = inspectList(nonIndexProperties.map((key) => [key, array[key]]), options, inspectProperty);
|
|
26
|
+
return `${name}[ ${output}${propertyContents ? `, ${propertyContents}` : ""} ]`;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
//#endregion
|
|
30
|
+
export { inspectTypedArray as default };
|
|
31
|
+
//# sourceMappingURL=typedarray.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typedarray.js","names":[],"sources":["../../../../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/typedarray.js"],"sourcesContent":["import { inspectList, inspectProperty, truncate, truncator } from './helpers.js';\nconst getArrayName = (array) => {\n // We need to special case Node.js' Buffers, which report to be Uint8Array\n // @ts-ignore\n if (typeof Buffer === 'function' && array instanceof Buffer) {\n return 'Buffer';\n }\n if (array[Symbol.toStringTag]) {\n return array[Symbol.toStringTag];\n }\n return array.constructor.name;\n};\nexport default function inspectTypedArray(array, options) {\n const name = getArrayName(array);\n options.truncate -= name.length + 4;\n // Object.keys will always output the Array indices first, so we can slice by\n // `array.length` to get non-index properties\n const nonIndexProperties = Object.keys(array).slice(array.length);\n if (!array.length && !nonIndexProperties.length)\n return `${name}[]`;\n // As we know TypedArrays only contain Unsigned Integers, we can skip inspecting each one and simply\n // stylise the toString() value of them\n let output = '';\n for (let i = 0; i < array.length; i++) {\n const string = `${options.stylize(truncate(array[i], options.truncate), 'number')}${i === array.length - 1 ? '' : ', '}`;\n options.truncate -= string.length;\n if (array[i] !== array.length && options.truncate <= 3) {\n output += `${truncator}(${array.length - array[i] + 1})`;\n break;\n }\n output += string;\n }\n let propertyContents = '';\n if (nonIndexProperties.length) {\n propertyContents = inspectList(nonIndexProperties.map(key => [key, array[key]]), options, inspectProperty);\n }\n return `${name}[ ${output}${propertyContents ? `, ${propertyContents}` : ''} ]`;\n}\n"],"x_google_ignoreList":[0],"mappings":";;;AACA,MAAM,gBAAgB,UAAU;AAG5B,KAAI,OAAO,WAAW,cAAc,iBAAiB,OACjD,QAAO;AAEX,KAAI,MAAM,OAAO,aACb,QAAO,MAAM,OAAO;AAExB,QAAO,MAAM,YAAY;;AAE7B,SAAwB,kBAAkB,OAAO,SAAS;CACtD,MAAM,OAAO,aAAa,MAAM;AAChC,SAAQ,YAAY,KAAK,SAAS;CAGlC,MAAM,qBAAqB,OAAO,KAAK,MAAM,CAAC,MAAM,MAAM,OAAO;AACjE,KAAI,CAAC,MAAM,UAAU,CAAC,mBAAmB,OACrC,QAAO,GAAG,KAAK;CAGnB,IAAI,SAAS;AACb,MAAK,IAAI,IAAI,GAAG,IAAI,MAAM,QAAQ,KAAK;EACnC,MAAM,SAAS,GAAG,QAAQ,QAAQ,SAAS,MAAM,IAAI,QAAQ,SAAS,EAAE,SAAS,GAAG,MAAM,MAAM,SAAS,IAAI,KAAK;AAClH,UAAQ,YAAY,OAAO;AAC3B,MAAI,MAAM,OAAO,MAAM,UAAU,QAAQ,YAAY,GAAG;AACpD,aAAU,GAAG,UAAU,GAAG,MAAM,SAAS,MAAM,KAAK,EAAE;AACtD;;AAEJ,YAAU;;CAEd,IAAI,mBAAmB;AACvB,KAAI,mBAAmB,OACnB,oBAAmB,YAAY,mBAAmB,KAAI,QAAO,CAAC,KAAK,MAAM,KAAK,CAAC,EAAE,SAAS,gBAAgB;AAE9G,QAAO,GAAG,KAAK,IAAI,SAAS,mBAAmB,KAAK,qBAAqB,GAAG"}
|