ibm-cloud-sdk-core 4.3.3 → 4.3.4
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/iamtest.env +3 -0
- package/package.json +2 -2
- package/sdk-test-utilities/node_modules/.package-lock.json +508 -0
- package/sdk-test-utilities/node_modules/@babel/code-frame/LICENSE +22 -0
- package/sdk-test-utilities/node_modules/@babel/code-frame/README.md +19 -0
- package/sdk-test-utilities/node_modules/@babel/code-frame/lib/index.js +156 -0
- package/sdk-test-utilities/node_modules/@babel/code-frame/lib/index.js.map +1 -0
- package/sdk-test-utilities/node_modules/@babel/code-frame/package.json +30 -0
- package/sdk-test-utilities/node_modules/@babel/helper-validator-identifier/LICENSE +22 -0
- package/sdk-test-utilities/node_modules/@babel/helper-validator-identifier/README.md +19 -0
- package/sdk-test-utilities/node_modules/@babel/helper-validator-identifier/lib/identifier.js +70 -0
- package/sdk-test-utilities/node_modules/@babel/helper-validator-identifier/lib/identifier.js.map +1 -0
- package/sdk-test-utilities/node_modules/@babel/helper-validator-identifier/lib/index.js +57 -0
- package/sdk-test-utilities/node_modules/@babel/helper-validator-identifier/lib/index.js.map +1 -0
- package/sdk-test-utilities/node_modules/@babel/helper-validator-identifier/lib/keyword.js +35 -0
- package/sdk-test-utilities/node_modules/@babel/helper-validator-identifier/lib/keyword.js.map +1 -0
- package/sdk-test-utilities/node_modules/@babel/helper-validator-identifier/package.json +31 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/LICENSE +22 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/README.md +19 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/lib/index.js +119 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/lib/index.js.map +1 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/ansi-styles/index.js +165 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/ansi-styles/license +9 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/ansi-styles/package.json +56 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/ansi-styles/readme.md +147 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/chalk/index.js +228 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/chalk/index.js.flow +93 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/chalk/license +9 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/chalk/package.json +71 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/chalk/readme.md +314 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/chalk/templates.js +128 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/chalk/types/index.d.ts +97 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/color-convert/CHANGELOG.md +54 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/color-convert/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/color-convert/README.md +68 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/color-convert/conversions.js +868 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/color-convert/index.js +78 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/color-convert/package.json +46 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/color-convert/route.js +97 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/color-name/.eslintrc.json +43 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/color-name/LICENSE +8 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/color-name/README.md +11 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/color-name/index.js +152 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/color-name/package.json +25 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/color-name/test.js +7 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/escape-string-regexp/index.js +11 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/escape-string-regexp/license +21 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/escape-string-regexp/package.json +41 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/escape-string-regexp/readme.md +27 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/has-flag/index.js +8 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/has-flag/license +9 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/has-flag/package.json +44 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/has-flag/readme.md +70 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/supports-color/browser.js +5 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/supports-color/index.js +131 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/supports-color/license +9 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/supports-color/package.json +53 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/supports-color/readme.md +66 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/package.json +30 -0
- package/sdk-test-utilities/node_modules/@jest/expect-utils/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/@jest/expect-utils/README.md +5 -0
- package/sdk-test-utilities/node_modules/@jest/expect-utils/build/immutableUtils.js +66 -0
- package/sdk-test-utilities/node_modules/@jest/expect-utils/build/index.d.ts +94 -0
- package/sdk-test-utilities/node_modules/@jest/expect-utils/build/index.js +34 -0
- package/sdk-test-utilities/node_modules/@jest/expect-utils/build/jasmineUtils.js +218 -0
- package/sdk-test-utilities/node_modules/@jest/expect-utils/build/types.js +1 -0
- package/sdk-test-utilities/node_modules/@jest/expect-utils/build/utils.js +462 -0
- package/sdk-test-utilities/node_modules/@jest/expect-utils/package.json +35 -0
- package/sdk-test-utilities/node_modules/@jest/schemas/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/@jest/schemas/README.md +3 -0
- package/sdk-test-utilities/node_modules/@jest/schemas/build/index.d.ts +63 -0
- package/sdk-test-utilities/node_modules/@jest/schemas/build/index.js +60 -0
- package/sdk-test-utilities/node_modules/@jest/schemas/package.json +29 -0
- package/sdk-test-utilities/node_modules/@jest/types/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/@jest/types/README.md +30 -0
- package/sdk-test-utilities/node_modules/@jest/types/build/Circus.js +1 -0
- package/sdk-test-utilities/node_modules/@jest/types/build/Config.js +1 -0
- package/sdk-test-utilities/node_modules/@jest/types/build/Global.js +1 -0
- package/sdk-test-utilities/node_modules/@jest/types/build/TestResult.js +1 -0
- package/sdk-test-utilities/node_modules/@jest/types/build/index.d.ts +1204 -0
- package/sdk-test-utilities/node_modules/@jest/types/build/index.js +1 -0
- package/sdk-test-utilities/node_modules/@jest/types/package.json +38 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/compiler/compiler.d.ts +35 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/compiler/compiler.js +577 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/compiler/index.d.ts +2 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/compiler/index.js +47 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/errors/errors.d.ts +88 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/errors/errors.js +609 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/errors/index.d.ts +1 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/errors/index.js +44 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/license +23 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/package.json +47 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/readme.md +1424 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/system/index.d.ts +1 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/system/index.js +44 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/system/system.d.ts +26 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/system/system.js +90 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/typebox.d.ts +723 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/typebox.js +2220 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/cast.d.ts +30 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/cast.js +372 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/check.d.ts +12 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/check.js +484 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/clone.d.ts +3 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/clone.js +71 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/convert.d.ts +13 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/convert.js +372 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/create.d.ts +26 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/create.js +480 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/delta.d.ts +43 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/delta.js +204 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/equal.d.ts +3 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/equal.js +80 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/hash.d.ts +8 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/hash.js +208 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/index.d.ts +6 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/index.js +56 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/is.d.ts +11 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/is.js +53 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/mutate.d.ts +13 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/mutate.js +121 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/pointer.d.ts +24 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/pointer.js +142 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/value.d.ts +39 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/value.js +99 -0
- package/sdk-test-utilities/node_modules/@types/istanbul-lib-coverage/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/@types/istanbul-lib-coverage/README.md +15 -0
- package/sdk-test-utilities/node_modules/@types/istanbul-lib-coverage/index.d.ts +111 -0
- package/sdk-test-utilities/node_modules/@types/istanbul-lib-coverage/package.json +25 -0
- package/sdk-test-utilities/node_modules/@types/istanbul-lib-report/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/@types/istanbul-lib-report/README.md +15 -0
- package/sdk-test-utilities/node_modules/@types/istanbul-lib-report/index.d.ts +184 -0
- package/sdk-test-utilities/node_modules/@types/istanbul-lib-report/package.json +32 -0
- package/sdk-test-utilities/node_modules/@types/istanbul-reports/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/@types/istanbul-reports/README.md +86 -0
- package/sdk-test-utilities/node_modules/@types/istanbul-reports/index.d.ts +67 -0
- package/sdk-test-utilities/node_modules/@types/istanbul-reports/package.json +32 -0
- package/sdk-test-utilities/node_modules/@types/node/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/@types/node/README.md +15 -0
- package/sdk-test-utilities/node_modules/@types/node/assert/strict.d.ts +8 -0
- package/sdk-test-utilities/node_modules/@types/node/assert.d.ts +1040 -0
- package/sdk-test-utilities/node_modules/@types/node/async_hooks.d.ts +541 -0
- package/sdk-test-utilities/node_modules/@types/node/buffer.d.ts +2363 -0
- package/sdk-test-utilities/node_modules/@types/node/child_process.d.ts +1544 -0
- package/sdk-test-utilities/node_modules/@types/node/cluster.d.ts +578 -0
- package/sdk-test-utilities/node_modules/@types/node/console.d.ts +452 -0
- package/sdk-test-utilities/node_modules/@types/node/constants.d.ts +19 -0
- package/sdk-test-utilities/node_modules/@types/node/crypto.d.ts +4523 -0
- package/sdk-test-utilities/node_modules/@types/node/dgram.d.ts +596 -0
- package/sdk-test-utilities/node_modules/@types/node/diagnostics_channel.d.ts +554 -0
- package/sdk-test-utilities/node_modules/@types/node/dns/promises.d.ts +474 -0
- package/sdk-test-utilities/node_modules/@types/node/dns.d.ts +864 -0
- package/sdk-test-utilities/node_modules/@types/node/dom-events.d.ts +124 -0
- package/sdk-test-utilities/node_modules/@types/node/domain.d.ts +170 -0
- package/sdk-test-utilities/node_modules/@types/node/events.d.ts +909 -0
- package/sdk-test-utilities/node_modules/@types/node/fs/promises.d.ts +1245 -0
- package/sdk-test-utilities/node_modules/@types/node/fs.d.ts +4317 -0
- package/sdk-test-utilities/node_modules/@types/node/globals.d.ts +411 -0
- package/sdk-test-utilities/node_modules/@types/node/globals.global.d.ts +1 -0
- package/sdk-test-utilities/node_modules/@types/node/http.d.ts +1908 -0
- package/sdk-test-utilities/node_modules/@types/node/http2.d.ts +2418 -0
- package/sdk-test-utilities/node_modules/@types/node/https.d.ts +550 -0
- package/sdk-test-utilities/node_modules/@types/node/index.d.ts +89 -0
- package/sdk-test-utilities/node_modules/@types/node/inspector.d.ts +2746 -0
- package/sdk-test-utilities/node_modules/@types/node/module.d.ts +315 -0
- package/sdk-test-utilities/node_modules/@types/node/net.d.ts +999 -0
- package/sdk-test-utilities/node_modules/@types/node/os.d.ts +495 -0
- package/sdk-test-utilities/node_modules/@types/node/package.json +217 -0
- package/sdk-test-utilities/node_modules/@types/node/path.d.ts +191 -0
- package/sdk-test-utilities/node_modules/@types/node/perf_hooks.d.ts +905 -0
- package/sdk-test-utilities/node_modules/@types/node/process.d.ts +1754 -0
- package/sdk-test-utilities/node_modules/@types/node/punycode.d.ts +117 -0
- package/sdk-test-utilities/node_modules/@types/node/querystring.d.ts +153 -0
- package/sdk-test-utilities/node_modules/@types/node/readline/promises.d.ts +150 -0
- package/sdk-test-utilities/node_modules/@types/node/readline.d.ts +540 -0
- package/sdk-test-utilities/node_modules/@types/node/repl.d.ts +430 -0
- package/sdk-test-utilities/node_modules/@types/node/sea.d.ts +153 -0
- package/sdk-test-utilities/node_modules/@types/node/stream/consumers.d.ts +12 -0
- package/sdk-test-utilities/node_modules/@types/node/stream/promises.d.ts +83 -0
- package/sdk-test-utilities/node_modules/@types/node/stream/web.d.ts +367 -0
- package/sdk-test-utilities/node_modules/@types/node/stream.d.ts +1707 -0
- package/sdk-test-utilities/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/sdk-test-utilities/node_modules/@types/node/test.d.ts +1718 -0
- package/sdk-test-utilities/node_modules/@types/node/timers/promises.d.ts +97 -0
- package/sdk-test-utilities/node_modules/@types/node/timers.d.ts +240 -0
- package/sdk-test-utilities/node_modules/@types/node/tls.d.ts +1217 -0
- package/sdk-test-utilities/node_modules/@types/node/trace_events.d.ts +197 -0
- package/sdk-test-utilities/node_modules/@types/node/tty.d.ts +208 -0
- package/sdk-test-utilities/node_modules/@types/node/url.d.ts +952 -0
- package/sdk-test-utilities/node_modules/@types/node/util.d.ts +2292 -0
- package/sdk-test-utilities/node_modules/@types/node/v8.d.ts +808 -0
- package/sdk-test-utilities/node_modules/@types/node/vm.d.ts +924 -0
- package/sdk-test-utilities/node_modules/@types/node/wasi.d.ts +181 -0
- package/sdk-test-utilities/node_modules/@types/node/worker_threads.d.ts +691 -0
- package/sdk-test-utilities/node_modules/@types/node/zlib.d.ts +530 -0
- package/sdk-test-utilities/node_modules/@types/stack-utils/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/@types/stack-utils/README.md +78 -0
- package/sdk-test-utilities/node_modules/@types/stack-utils/index.d.ts +59 -0
- package/sdk-test-utilities/node_modules/@types/stack-utils/package.json +25 -0
- package/sdk-test-utilities/node_modules/@types/yargs/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/@types/yargs/README.md +15 -0
- package/sdk-test-utilities/node_modules/@types/yargs/helpers.d.mts +1 -0
- package/sdk-test-utilities/node_modules/@types/yargs/helpers.d.ts +5 -0
- package/sdk-test-utilities/node_modules/@types/yargs/index.d.mts +46 -0
- package/sdk-test-utilities/node_modules/@types/yargs/index.d.ts +1031 -0
- package/sdk-test-utilities/node_modules/@types/yargs/package.json +87 -0
- package/sdk-test-utilities/node_modules/@types/yargs/yargs.d.ts +9 -0
- package/sdk-test-utilities/node_modules/@types/yargs-parser/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/@types/yargs-parser/README.md +15 -0
- package/sdk-test-utilities/node_modules/@types/yargs-parser/index.d.ts +112 -0
- package/sdk-test-utilities/node_modules/@types/yargs-parser/package.json +25 -0
- package/sdk-test-utilities/node_modules/ansi-styles/index.d.ts +345 -0
- package/sdk-test-utilities/node_modules/ansi-styles/index.js +163 -0
- package/sdk-test-utilities/node_modules/ansi-styles/license +9 -0
- package/sdk-test-utilities/node_modules/ansi-styles/package.json +56 -0
- package/sdk-test-utilities/node_modules/ansi-styles/readme.md +152 -0
- package/sdk-test-utilities/node_modules/braces/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/braces/README.md +586 -0
- package/sdk-test-utilities/node_modules/braces/index.js +170 -0
- package/sdk-test-utilities/node_modules/braces/lib/compile.js +60 -0
- package/sdk-test-utilities/node_modules/braces/lib/constants.js +57 -0
- package/sdk-test-utilities/node_modules/braces/lib/expand.js +113 -0
- package/sdk-test-utilities/node_modules/braces/lib/parse.js +331 -0
- package/sdk-test-utilities/node_modules/braces/lib/stringify.js +32 -0
- package/sdk-test-utilities/node_modules/braces/lib/utils.js +122 -0
- package/sdk-test-utilities/node_modules/braces/package.json +77 -0
- package/sdk-test-utilities/node_modules/chalk/index.d.ts +415 -0
- package/sdk-test-utilities/node_modules/chalk/license +9 -0
- package/sdk-test-utilities/node_modules/chalk/package.json +68 -0
- package/sdk-test-utilities/node_modules/chalk/readme.md +341 -0
- package/sdk-test-utilities/node_modules/chalk/source/index.js +229 -0
- package/sdk-test-utilities/node_modules/chalk/source/templates.js +134 -0
- package/sdk-test-utilities/node_modules/chalk/source/util.js +39 -0
- package/sdk-test-utilities/node_modules/ci-info/CHANGELOG.md +178 -0
- package/sdk-test-utilities/node_modules/ci-info/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/ci-info/README.md +135 -0
- package/sdk-test-utilities/node_modules/ci-info/index.d.ts +75 -0
- package/sdk-test-utilities/node_modules/ci-info/index.js +90 -0
- package/sdk-test-utilities/node_modules/ci-info/package.json +45 -0
- package/sdk-test-utilities/node_modules/ci-info/vendors.json +321 -0
- package/sdk-test-utilities/node_modules/color-convert/CHANGELOG.md +54 -0
- package/sdk-test-utilities/node_modules/color-convert/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/color-convert/README.md +68 -0
- package/sdk-test-utilities/node_modules/color-convert/conversions.js +839 -0
- package/sdk-test-utilities/node_modules/color-convert/index.js +81 -0
- package/sdk-test-utilities/node_modules/color-convert/package.json +48 -0
- package/sdk-test-utilities/node_modules/color-convert/route.js +97 -0
- package/sdk-test-utilities/node_modules/color-name/LICENSE +8 -0
- package/sdk-test-utilities/node_modules/color-name/README.md +11 -0
- package/sdk-test-utilities/node_modules/color-name/index.js +152 -0
- package/sdk-test-utilities/node_modules/color-name/package.json +28 -0
- package/sdk-test-utilities/node_modules/diff-sequences/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/diff-sequences/README.md +404 -0
- package/sdk-test-utilities/node_modules/diff-sequences/build/index.d.ts +38 -0
- package/sdk-test-utilities/node_modules/diff-sequences/build/index.js +798 -0
- package/sdk-test-utilities/node_modules/diff-sequences/package.json +39 -0
- package/sdk-test-utilities/node_modules/escape-string-regexp/index.d.ts +18 -0
- package/sdk-test-utilities/node_modules/escape-string-regexp/index.js +11 -0
- package/sdk-test-utilities/node_modules/escape-string-regexp/license +9 -0
- package/sdk-test-utilities/node_modules/escape-string-regexp/package.json +43 -0
- package/sdk-test-utilities/node_modules/escape-string-regexp/readme.md +29 -0
- package/sdk-test-utilities/node_modules/expect/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/expect/README.md +3 -0
- package/sdk-test-utilities/node_modules/expect/build/asymmetricMatchers.js +375 -0
- package/sdk-test-utilities/node_modules/expect/build/extractExpectedAssertionsErrors.js +86 -0
- package/sdk-test-utilities/node_modules/expect/build/index.d.ts +370 -0
- package/sdk-test-utilities/node_modules/expect/build/index.js +410 -0
- package/sdk-test-utilities/node_modules/expect/build/jestMatchersObject.js +123 -0
- package/sdk-test-utilities/node_modules/expect/build/matchers.js +1292 -0
- package/sdk-test-utilities/node_modules/expect/build/print.js +122 -0
- package/sdk-test-utilities/node_modules/expect/build/spyMatchers.js +1254 -0
- package/sdk-test-utilities/node_modules/expect/build/toThrowMatchers.js +481 -0
- package/sdk-test-utilities/node_modules/expect/build/types.js +3 -0
- package/sdk-test-utilities/node_modules/expect/package.json +43 -0
- package/sdk-test-utilities/node_modules/fill-range/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/fill-range/README.md +237 -0
- package/sdk-test-utilities/node_modules/fill-range/index.js +248 -0
- package/sdk-test-utilities/node_modules/fill-range/package.json +74 -0
- package/sdk-test-utilities/node_modules/graceful-fs/LICENSE +15 -0
- package/sdk-test-utilities/node_modules/graceful-fs/README.md +143 -0
- package/sdk-test-utilities/node_modules/graceful-fs/clone.js +23 -0
- package/sdk-test-utilities/node_modules/graceful-fs/graceful-fs.js +448 -0
- package/sdk-test-utilities/node_modules/graceful-fs/legacy-streams.js +118 -0
- package/sdk-test-utilities/node_modules/graceful-fs/package.json +53 -0
- package/sdk-test-utilities/node_modules/graceful-fs/polyfills.js +355 -0
- package/sdk-test-utilities/node_modules/has-flag/index.d.ts +39 -0
- package/sdk-test-utilities/node_modules/has-flag/index.js +8 -0
- package/sdk-test-utilities/node_modules/has-flag/license +9 -0
- package/sdk-test-utilities/node_modules/has-flag/package.json +46 -0
- package/sdk-test-utilities/node_modules/has-flag/readme.md +89 -0
- package/sdk-test-utilities/node_modules/is-number/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/is-number/README.md +187 -0
- package/sdk-test-utilities/node_modules/is-number/index.js +18 -0
- package/sdk-test-utilities/node_modules/is-number/package.json +82 -0
- package/sdk-test-utilities/node_modules/jest-diff/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/jest-diff/README.md +671 -0
- package/sdk-test-utilities/node_modules/jest-diff/build/cleanupSemantic.js +599 -0
- package/sdk-test-utilities/node_modules/jest-diff/build/constants.js +19 -0
- package/sdk-test-utilities/node_modules/jest-diff/build/diffLines.js +193 -0
- package/sdk-test-utilities/node_modules/jest-diff/build/diffStrings.js +66 -0
- package/sdk-test-utilities/node_modules/jest-diff/build/getAlignedDiffs.js +223 -0
- package/sdk-test-utilities/node_modules/jest-diff/build/index.d.ts +93 -0
- package/sdk-test-utilities/node_modules/jest-diff/build/index.js +232 -0
- package/sdk-test-utilities/node_modules/jest-diff/build/joinAlignedDiffs.js +271 -0
- package/sdk-test-utilities/node_modules/jest-diff/build/normalizeDiffOptions.js +59 -0
- package/sdk-test-utilities/node_modules/jest-diff/build/printDiffs.js +79 -0
- package/sdk-test-utilities/node_modules/jest-diff/build/types.js +1 -0
- package/sdk-test-utilities/node_modules/jest-diff/package.json +36 -0
- package/sdk-test-utilities/node_modules/jest-get-type/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/jest-get-type/build/index.d.ts +27 -0
- package/sdk-test-utilities/node_modules/jest-get-type/build/index.js +53 -0
- package/sdk-test-utilities/node_modules/jest-get-type/package.json +27 -0
- package/sdk-test-utilities/node_modules/jest-matcher-utils/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/jest-matcher-utils/README.md +24 -0
- package/sdk-test-utilities/node_modules/jest-matcher-utils/build/Replaceable.js +64 -0
- package/sdk-test-utilities/node_modules/jest-matcher-utils/build/deepCyclicCopyReplaceable.js +111 -0
- package/sdk-test-utilities/node_modules/jest-matcher-utils/build/index.d.ts +138 -0
- package/sdk-test-utilities/node_modules/jest-matcher-utils/build/index.js +542 -0
- package/sdk-test-utilities/node_modules/jest-matcher-utils/package.json +37 -0
- package/sdk-test-utilities/node_modules/jest-message-util/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/jest-message-util/build/index.d.ts +68 -0
- package/sdk-test-utilities/node_modules/jest-message-util/build/index.js +518 -0
- package/sdk-test-utilities/node_modules/jest-message-util/build/types.js +1 -0
- package/sdk-test-utilities/node_modules/jest-message-util/package.json +43 -0
- package/sdk-test-utilities/node_modules/jest-util/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/jest-util/Readme.md +87 -0
- package/sdk-test-utilities/node_modules/jest-util/build/ErrorWithStack.js +28 -0
- package/sdk-test-utilities/node_modules/jest-util/build/clearLine.js +18 -0
- package/sdk-test-utilities/node_modules/jest-util/build/convertDescriptorToString.js +30 -0
- package/sdk-test-utilities/node_modules/jest-util/build/createDirectory.js +71 -0
- package/sdk-test-utilities/node_modules/jest-util/build/createProcessObject.js +109 -0
- package/sdk-test-utilities/node_modules/jest-util/build/deepCyclicCopy.js +76 -0
- package/sdk-test-utilities/node_modules/jest-util/build/formatTime.js +24 -0
- package/sdk-test-utilities/node_modules/jest-util/build/globsToMatcher.js +98 -0
- package/sdk-test-utilities/node_modules/jest-util/build/index.d.ts +136 -0
- package/sdk-test-utilities/node_modules/jest-util/build/index.js +199 -0
- package/sdk-test-utilities/node_modules/jest-util/build/installCommonGlobals.js +115 -0
- package/sdk-test-utilities/node_modules/jest-util/build/interopRequireDefault.js +22 -0
- package/sdk-test-utilities/node_modules/jest-util/build/invariant.js +18 -0
- package/sdk-test-utilities/node_modules/jest-util/build/isInteractive.js +22 -0
- package/sdk-test-utilities/node_modules/jest-util/build/isNonNullable.js +16 -0
- package/sdk-test-utilities/node_modules/jest-util/build/isPromise.js +20 -0
- package/sdk-test-utilities/node_modules/jest-util/build/pluralize.js +16 -0
- package/sdk-test-utilities/node_modules/jest-util/build/preRunMessage.js +38 -0
- package/sdk-test-utilities/node_modules/jest-util/build/replacePathSepForGlob.js +16 -0
- package/sdk-test-utilities/node_modules/jest-util/build/requireOrImportModule.js +77 -0
- package/sdk-test-utilities/node_modules/jest-util/build/setGlobal.js +17 -0
- package/sdk-test-utilities/node_modules/jest-util/build/specialChars.js +25 -0
- package/sdk-test-utilities/node_modules/jest-util/build/testPathPatternToRegExp.js +19 -0
- package/sdk-test-utilities/node_modules/jest-util/build/tryRealpath.js +30 -0
- package/sdk-test-utilities/node_modules/jest-util/package.json +38 -0
- package/sdk-test-utilities/node_modules/js-tokens/CHANGELOG.md +151 -0
- package/sdk-test-utilities/node_modules/js-tokens/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/js-tokens/README.md +240 -0
- package/sdk-test-utilities/node_modules/js-tokens/index.js +23 -0
- package/sdk-test-utilities/node_modules/js-tokens/package.json +30 -0
- package/sdk-test-utilities/node_modules/micromatch/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/micromatch/README.md +1017 -0
- package/sdk-test-utilities/node_modules/micromatch/index.js +467 -0
- package/sdk-test-utilities/node_modules/micromatch/package.json +101 -0
- package/sdk-test-utilities/node_modules/picocolors/LICENSE +15 -0
- package/sdk-test-utilities/node_modules/picocolors/README.md +21 -0
- package/sdk-test-utilities/node_modules/picocolors/package.json +25 -0
- package/sdk-test-utilities/node_modules/picocolors/picocolors.browser.js +4 -0
- package/sdk-test-utilities/node_modules/picocolors/picocolors.d.ts +5 -0
- package/sdk-test-utilities/node_modules/picocolors/picocolors.js +65 -0
- package/sdk-test-utilities/node_modules/picomatch/CHANGELOG.md +136 -0
- package/sdk-test-utilities/node_modules/picomatch/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/picomatch/README.md +708 -0
- package/sdk-test-utilities/node_modules/picomatch/index.js +3 -0
- package/sdk-test-utilities/node_modules/picomatch/lib/constants.js +179 -0
- package/sdk-test-utilities/node_modules/picomatch/lib/parse.js +1091 -0
- package/sdk-test-utilities/node_modules/picomatch/lib/picomatch.js +342 -0
- package/sdk-test-utilities/node_modules/picomatch/lib/scan.js +391 -0
- package/sdk-test-utilities/node_modules/picomatch/lib/utils.js +64 -0
- package/sdk-test-utilities/node_modules/picomatch/package.json +81 -0
- package/sdk-test-utilities/node_modules/pretty-format/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/pretty-format/README.md +463 -0
- package/sdk-test-utilities/node_modules/pretty-format/build/collections.js +180 -0
- package/sdk-test-utilities/node_modules/pretty-format/build/index.d.ts +163 -0
- package/sdk-test-utilities/node_modules/pretty-format/build/index.js +478 -0
- package/sdk-test-utilities/node_modules/pretty-format/build/plugins/AsymmetricMatcher.js +89 -0
- package/sdk-test-utilities/node_modules/pretty-format/build/plugins/DOMCollection.js +67 -0
- package/sdk-test-utilities/node_modules/pretty-format/build/plugins/DOMElement.js +101 -0
- package/sdk-test-utilities/node_modules/pretty-format/build/plugins/Immutable.js +217 -0
- package/sdk-test-utilities/node_modules/pretty-format/build/plugins/ReactElement.js +143 -0
- package/sdk-test-utilities/node_modules/pretty-format/build/plugins/ReactTestComponent.js +66 -0
- package/sdk-test-utilities/node_modules/pretty-format/build/plugins/lib/escapeHTML.js +16 -0
- package/sdk-test-utilities/node_modules/pretty-format/build/plugins/lib/markup.js +113 -0
- package/sdk-test-utilities/node_modules/pretty-format/build/types.js +1 -0
- package/sdk-test-utilities/node_modules/pretty-format/node_modules/ansi-styles/index.d.ts +167 -0
- package/sdk-test-utilities/node_modules/pretty-format/node_modules/ansi-styles/index.js +164 -0
- package/sdk-test-utilities/node_modules/pretty-format/node_modules/ansi-styles/license +9 -0
- package/sdk-test-utilities/node_modules/pretty-format/node_modules/ansi-styles/package.json +52 -0
- package/sdk-test-utilities/node_modules/pretty-format/node_modules/ansi-styles/readme.md +144 -0
- package/sdk-test-utilities/node_modules/pretty-format/package.json +43 -0
- package/sdk-test-utilities/node_modules/react-is/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/react-is/README.md +104 -0
- package/sdk-test-utilities/node_modules/react-is/cjs/react-is.development.js +221 -0
- package/sdk-test-utilities/node_modules/react-is/cjs/react-is.production.min.js +14 -0
- package/sdk-test-utilities/node_modules/react-is/index.js +7 -0
- package/sdk-test-utilities/node_modules/react-is/package.json +26 -0
- package/sdk-test-utilities/node_modules/react-is/umd/react-is.development.js +220 -0
- package/sdk-test-utilities/node_modules/react-is/umd/react-is.production.min.js +15 -0
- package/sdk-test-utilities/node_modules/slash/index.d.ts +25 -0
- package/sdk-test-utilities/node_modules/slash/index.js +11 -0
- package/sdk-test-utilities/node_modules/slash/license +9 -0
- package/sdk-test-utilities/node_modules/slash/package.json +35 -0
- package/sdk-test-utilities/node_modules/slash/readme.md +44 -0
- package/sdk-test-utilities/node_modules/stack-utils/LICENSE.md +21 -0
- package/sdk-test-utilities/node_modules/stack-utils/index.js +344 -0
- package/sdk-test-utilities/node_modules/stack-utils/package.json +39 -0
- package/sdk-test-utilities/node_modules/stack-utils/readme.md +143 -0
- package/sdk-test-utilities/node_modules/supports-color/browser.js +5 -0
- package/sdk-test-utilities/node_modules/supports-color/index.js +135 -0
- package/sdk-test-utilities/node_modules/supports-color/license +9 -0
- package/sdk-test-utilities/node_modules/supports-color/package.json +53 -0
- package/sdk-test-utilities/node_modules/supports-color/readme.md +76 -0
- package/sdk-test-utilities/node_modules/to-regex-range/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/to-regex-range/README.md +305 -0
- package/sdk-test-utilities/node_modules/to-regex-range/index.js +288 -0
- package/sdk-test-utilities/node_modules/to-regex-range/package.json +88 -0
- package/sdk-test-utilities/node_modules/undici-types/README.md +6 -0
- package/sdk-test-utilities/node_modules/undici-types/agent.d.ts +31 -0
- package/sdk-test-utilities/node_modules/undici-types/api.d.ts +43 -0
- package/sdk-test-utilities/node_modules/undici-types/balanced-pool.d.ts +18 -0
- package/sdk-test-utilities/node_modules/undici-types/cache.d.ts +36 -0
- package/sdk-test-utilities/node_modules/undici-types/client.d.ts +97 -0
- package/sdk-test-utilities/node_modules/undici-types/connector.d.ts +34 -0
- package/sdk-test-utilities/node_modules/undici-types/content-type.d.ts +21 -0
- package/sdk-test-utilities/node_modules/undici-types/cookies.d.ts +28 -0
- package/sdk-test-utilities/node_modules/undici-types/diagnostics-channel.d.ts +67 -0
- package/sdk-test-utilities/node_modules/undici-types/dispatcher.d.ts +241 -0
- package/sdk-test-utilities/node_modules/undici-types/errors.d.ts +128 -0
- package/sdk-test-utilities/node_modules/undici-types/fetch.d.ts +209 -0
- package/sdk-test-utilities/node_modules/undici-types/file.d.ts +39 -0
- package/sdk-test-utilities/node_modules/undici-types/filereader.d.ts +54 -0
- package/sdk-test-utilities/node_modules/undici-types/formdata.d.ts +108 -0
- package/sdk-test-utilities/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/sdk-test-utilities/node_modules/undici-types/global-origin.d.ts +7 -0
- package/sdk-test-utilities/node_modules/undici-types/handlers.d.ts +9 -0
- package/sdk-test-utilities/node_modules/undici-types/header.d.ts +4 -0
- package/sdk-test-utilities/node_modules/undici-types/index.d.ts +63 -0
- package/sdk-test-utilities/node_modules/undici-types/interceptors.d.ts +5 -0
- package/sdk-test-utilities/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/sdk-test-utilities/node_modules/undici-types/mock-client.d.ts +25 -0
- package/sdk-test-utilities/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/sdk-test-utilities/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/sdk-test-utilities/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/sdk-test-utilities/node_modules/undici-types/package.json +55 -0
- package/sdk-test-utilities/node_modules/undici-types/patch.d.ts +71 -0
- package/sdk-test-utilities/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/sdk-test-utilities/node_modules/undici-types/pool.d.ts +28 -0
- package/sdk-test-utilities/node_modules/undici-types/proxy-agent.d.ts +30 -0
- package/sdk-test-utilities/node_modules/undici-types/readable.d.ts +61 -0
- package/sdk-test-utilities/node_modules/undici-types/webidl.d.ts +220 -0
- package/sdk-test-utilities/node_modules/undici-types/websocket.d.ts +131 -0
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
import type {SnapshotFormat} from '@jest/schemas';
|
|
8
|
+
|
|
9
|
+
export declare type Colors = {
|
|
10
|
+
comment: {
|
|
11
|
+
close: string;
|
|
12
|
+
open: string;
|
|
13
|
+
};
|
|
14
|
+
content: {
|
|
15
|
+
close: string;
|
|
16
|
+
open: string;
|
|
17
|
+
};
|
|
18
|
+
prop: {
|
|
19
|
+
close: string;
|
|
20
|
+
open: string;
|
|
21
|
+
};
|
|
22
|
+
tag: {
|
|
23
|
+
close: string;
|
|
24
|
+
open: string;
|
|
25
|
+
};
|
|
26
|
+
value: {
|
|
27
|
+
close: string;
|
|
28
|
+
open: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export declare type CompareKeys =
|
|
33
|
+
| ((a: string, b: string) => number)
|
|
34
|
+
| null
|
|
35
|
+
| undefined;
|
|
36
|
+
|
|
37
|
+
export declare type Config = {
|
|
38
|
+
callToJSON: boolean;
|
|
39
|
+
compareKeys: CompareKeys;
|
|
40
|
+
colors: Colors;
|
|
41
|
+
escapeRegex: boolean;
|
|
42
|
+
escapeString: boolean;
|
|
43
|
+
indent: string;
|
|
44
|
+
maxDepth: number;
|
|
45
|
+
maxWidth: number;
|
|
46
|
+
min: boolean;
|
|
47
|
+
plugins: Plugins;
|
|
48
|
+
printBasicPrototype: boolean;
|
|
49
|
+
printFunctionName: boolean;
|
|
50
|
+
spacingInner: string;
|
|
51
|
+
spacingOuter: string;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export declare const DEFAULT_OPTIONS: {
|
|
55
|
+
callToJSON: true;
|
|
56
|
+
compareKeys: undefined;
|
|
57
|
+
escapeRegex: false;
|
|
58
|
+
escapeString: true;
|
|
59
|
+
highlight: false;
|
|
60
|
+
indent: number;
|
|
61
|
+
maxDepth: number;
|
|
62
|
+
maxWidth: number;
|
|
63
|
+
min: false;
|
|
64
|
+
plugins: never[];
|
|
65
|
+
printBasicPrototype: true;
|
|
66
|
+
printFunctionName: true;
|
|
67
|
+
theme: Required<{
|
|
68
|
+
readonly comment?: string | undefined;
|
|
69
|
+
readonly content?: string | undefined;
|
|
70
|
+
readonly prop?: string | undefined;
|
|
71
|
+
readonly tag?: string | undefined;
|
|
72
|
+
readonly value?: string | undefined;
|
|
73
|
+
}>;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Returns a presentation string of your `val` object
|
|
78
|
+
* @param val any potential JavaScript object
|
|
79
|
+
* @param options Custom settings
|
|
80
|
+
*/
|
|
81
|
+
declare function format(val: unknown, options?: OptionsReceived): string;
|
|
82
|
+
export default format;
|
|
83
|
+
export {format};
|
|
84
|
+
|
|
85
|
+
declare type Indent = (arg0: string) => string;
|
|
86
|
+
|
|
87
|
+
export declare type NewPlugin = {
|
|
88
|
+
serialize: (
|
|
89
|
+
val: any,
|
|
90
|
+
config: Config,
|
|
91
|
+
indentation: string,
|
|
92
|
+
depth: number,
|
|
93
|
+
refs: Refs,
|
|
94
|
+
printer: Printer,
|
|
95
|
+
) => string;
|
|
96
|
+
test: Test;
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
export declare type OldPlugin = {
|
|
100
|
+
print: (
|
|
101
|
+
val: unknown,
|
|
102
|
+
print: Print,
|
|
103
|
+
indent: Indent,
|
|
104
|
+
options: PluginOptions,
|
|
105
|
+
colors: Colors,
|
|
106
|
+
) => string;
|
|
107
|
+
test: Test;
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
export declare interface Options
|
|
111
|
+
extends Omit<RequiredOptions, 'compareKeys' | 'theme'> {
|
|
112
|
+
compareKeys: CompareKeys;
|
|
113
|
+
theme: Required<RequiredOptions['theme']>;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export declare type OptionsReceived = PrettyFormatOptions;
|
|
117
|
+
|
|
118
|
+
declare type Plugin_2 = NewPlugin | OldPlugin;
|
|
119
|
+
export {Plugin_2 as Plugin};
|
|
120
|
+
|
|
121
|
+
declare type PluginOptions = {
|
|
122
|
+
edgeSpacing: string;
|
|
123
|
+
min: boolean;
|
|
124
|
+
spacing: string;
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
export declare type Plugins = Array<Plugin_2>;
|
|
128
|
+
|
|
129
|
+
export declare const plugins: {
|
|
130
|
+
AsymmetricMatcher: NewPlugin;
|
|
131
|
+
DOMCollection: NewPlugin;
|
|
132
|
+
DOMElement: NewPlugin;
|
|
133
|
+
Immutable: NewPlugin;
|
|
134
|
+
ReactElement: NewPlugin;
|
|
135
|
+
ReactTestComponent: NewPlugin;
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
export declare interface PrettyFormatOptions
|
|
139
|
+
extends Omit<SnapshotFormat, 'compareKeys'> {
|
|
140
|
+
compareKeys?: CompareKeys;
|
|
141
|
+
plugins?: Plugins;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
declare type Print = (arg0: unknown) => string;
|
|
145
|
+
|
|
146
|
+
export declare type Printer = (
|
|
147
|
+
val: unknown,
|
|
148
|
+
config: Config,
|
|
149
|
+
indentation: string,
|
|
150
|
+
depth: number,
|
|
151
|
+
refs: Refs,
|
|
152
|
+
hasCalledToJSON?: boolean,
|
|
153
|
+
) => string;
|
|
154
|
+
|
|
155
|
+
export declare type Refs = Array<unknown>;
|
|
156
|
+
|
|
157
|
+
declare type RequiredOptions = Required<PrettyFormatOptions>;
|
|
158
|
+
|
|
159
|
+
declare type Test = (arg0: any) => boolean;
|
|
160
|
+
|
|
161
|
+
export declare type Theme = Options['theme'];
|
|
162
|
+
|
|
163
|
+
export {};
|
|
@@ -0,0 +1,478 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.DEFAULT_OPTIONS = void 0;
|
|
7
|
+
exports.format = format;
|
|
8
|
+
exports.plugins = void 0;
|
|
9
|
+
var _ansiStyles = _interopRequireDefault(require('ansi-styles'));
|
|
10
|
+
var _collections = require('./collections');
|
|
11
|
+
var _AsymmetricMatcher = _interopRequireDefault(
|
|
12
|
+
require('./plugins/AsymmetricMatcher')
|
|
13
|
+
);
|
|
14
|
+
var _DOMCollection = _interopRequireDefault(require('./plugins/DOMCollection'));
|
|
15
|
+
var _DOMElement = _interopRequireDefault(require('./plugins/DOMElement'));
|
|
16
|
+
var _Immutable = _interopRequireDefault(require('./plugins/Immutable'));
|
|
17
|
+
var _ReactElement = _interopRequireDefault(require('./plugins/ReactElement'));
|
|
18
|
+
var _ReactTestComponent = _interopRequireDefault(
|
|
19
|
+
require('./plugins/ReactTestComponent')
|
|
20
|
+
);
|
|
21
|
+
function _interopRequireDefault(obj) {
|
|
22
|
+
return obj && obj.__esModule ? obj : {default: obj};
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
26
|
+
*
|
|
27
|
+
* This source code is licensed under the MIT license found in the
|
|
28
|
+
* LICENSE file in the root directory of this source tree.
|
|
29
|
+
*/
|
|
30
|
+
|
|
31
|
+
/* eslint-disable local/ban-types-eventually */
|
|
32
|
+
|
|
33
|
+
const toString = Object.prototype.toString;
|
|
34
|
+
const toISOString = Date.prototype.toISOString;
|
|
35
|
+
const errorToString = Error.prototype.toString;
|
|
36
|
+
const regExpToString = RegExp.prototype.toString;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Explicitly comparing typeof constructor to function avoids undefined as name
|
|
40
|
+
* when mock identity-obj-proxy returns the key as the value for any key.
|
|
41
|
+
*/
|
|
42
|
+
const getConstructorName = val =>
|
|
43
|
+
(typeof val.constructor === 'function' && val.constructor.name) || 'Object';
|
|
44
|
+
|
|
45
|
+
/* global window */
|
|
46
|
+
/** Is val is equal to global window object? Works even if it does not exist :) */
|
|
47
|
+
const isWindow = val => typeof window !== 'undefined' && val === window;
|
|
48
|
+
const SYMBOL_REGEXP = /^Symbol\((.*)\)(.*)$/;
|
|
49
|
+
const NEWLINE_REGEXP = /\n/gi;
|
|
50
|
+
class PrettyFormatPluginError extends Error {
|
|
51
|
+
constructor(message, stack) {
|
|
52
|
+
super(message);
|
|
53
|
+
this.stack = stack;
|
|
54
|
+
this.name = this.constructor.name;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
function isToStringedArrayType(toStringed) {
|
|
58
|
+
return (
|
|
59
|
+
toStringed === '[object Array]' ||
|
|
60
|
+
toStringed === '[object ArrayBuffer]' ||
|
|
61
|
+
toStringed === '[object DataView]' ||
|
|
62
|
+
toStringed === '[object Float32Array]' ||
|
|
63
|
+
toStringed === '[object Float64Array]' ||
|
|
64
|
+
toStringed === '[object Int8Array]' ||
|
|
65
|
+
toStringed === '[object Int16Array]' ||
|
|
66
|
+
toStringed === '[object Int32Array]' ||
|
|
67
|
+
toStringed === '[object Uint8Array]' ||
|
|
68
|
+
toStringed === '[object Uint8ClampedArray]' ||
|
|
69
|
+
toStringed === '[object Uint16Array]' ||
|
|
70
|
+
toStringed === '[object Uint32Array]'
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
function printNumber(val) {
|
|
74
|
+
return Object.is(val, -0) ? '-0' : String(val);
|
|
75
|
+
}
|
|
76
|
+
function printBigInt(val) {
|
|
77
|
+
return String(`${val}n`);
|
|
78
|
+
}
|
|
79
|
+
function printFunction(val, printFunctionName) {
|
|
80
|
+
if (!printFunctionName) {
|
|
81
|
+
return '[Function]';
|
|
82
|
+
}
|
|
83
|
+
return `[Function ${val.name || 'anonymous'}]`;
|
|
84
|
+
}
|
|
85
|
+
function printSymbol(val) {
|
|
86
|
+
return String(val).replace(SYMBOL_REGEXP, 'Symbol($1)');
|
|
87
|
+
}
|
|
88
|
+
function printError(val) {
|
|
89
|
+
return `[${errorToString.call(val)}]`;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* The first port of call for printing an object, handles most of the
|
|
94
|
+
* data-types in JS.
|
|
95
|
+
*/
|
|
96
|
+
function printBasicValue(val, printFunctionName, escapeRegex, escapeString) {
|
|
97
|
+
if (val === true || val === false) {
|
|
98
|
+
return `${val}`;
|
|
99
|
+
}
|
|
100
|
+
if (val === undefined) {
|
|
101
|
+
return 'undefined';
|
|
102
|
+
}
|
|
103
|
+
if (val === null) {
|
|
104
|
+
return 'null';
|
|
105
|
+
}
|
|
106
|
+
const typeOf = typeof val;
|
|
107
|
+
if (typeOf === 'number') {
|
|
108
|
+
return printNumber(val);
|
|
109
|
+
}
|
|
110
|
+
if (typeOf === 'bigint') {
|
|
111
|
+
return printBigInt(val);
|
|
112
|
+
}
|
|
113
|
+
if (typeOf === 'string') {
|
|
114
|
+
if (escapeString) {
|
|
115
|
+
return `"${val.replace(/"|\\/g, '\\$&')}"`;
|
|
116
|
+
}
|
|
117
|
+
return `"${val}"`;
|
|
118
|
+
}
|
|
119
|
+
if (typeOf === 'function') {
|
|
120
|
+
return printFunction(val, printFunctionName);
|
|
121
|
+
}
|
|
122
|
+
if (typeOf === 'symbol') {
|
|
123
|
+
return printSymbol(val);
|
|
124
|
+
}
|
|
125
|
+
const toStringed = toString.call(val);
|
|
126
|
+
if (toStringed === '[object WeakMap]') {
|
|
127
|
+
return 'WeakMap {}';
|
|
128
|
+
}
|
|
129
|
+
if (toStringed === '[object WeakSet]') {
|
|
130
|
+
return 'WeakSet {}';
|
|
131
|
+
}
|
|
132
|
+
if (
|
|
133
|
+
toStringed === '[object Function]' ||
|
|
134
|
+
toStringed === '[object GeneratorFunction]'
|
|
135
|
+
) {
|
|
136
|
+
return printFunction(val, printFunctionName);
|
|
137
|
+
}
|
|
138
|
+
if (toStringed === '[object Symbol]') {
|
|
139
|
+
return printSymbol(val);
|
|
140
|
+
}
|
|
141
|
+
if (toStringed === '[object Date]') {
|
|
142
|
+
return isNaN(+val) ? 'Date { NaN }' : toISOString.call(val);
|
|
143
|
+
}
|
|
144
|
+
if (toStringed === '[object Error]') {
|
|
145
|
+
return printError(val);
|
|
146
|
+
}
|
|
147
|
+
if (toStringed === '[object RegExp]') {
|
|
148
|
+
if (escapeRegex) {
|
|
149
|
+
// https://github.com/benjamingr/RegExp.escape/blob/main/polyfill.js
|
|
150
|
+
return regExpToString.call(val).replace(/[\\^$*+?.()|[\]{}]/g, '\\$&');
|
|
151
|
+
}
|
|
152
|
+
return regExpToString.call(val);
|
|
153
|
+
}
|
|
154
|
+
if (val instanceof Error) {
|
|
155
|
+
return printError(val);
|
|
156
|
+
}
|
|
157
|
+
return null;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Handles more complex objects ( such as objects with circular references.
|
|
162
|
+
* maps and sets etc )
|
|
163
|
+
*/
|
|
164
|
+
function printComplexValue(
|
|
165
|
+
val,
|
|
166
|
+
config,
|
|
167
|
+
indentation,
|
|
168
|
+
depth,
|
|
169
|
+
refs,
|
|
170
|
+
hasCalledToJSON
|
|
171
|
+
) {
|
|
172
|
+
if (refs.indexOf(val) !== -1) {
|
|
173
|
+
return '[Circular]';
|
|
174
|
+
}
|
|
175
|
+
refs = refs.slice();
|
|
176
|
+
refs.push(val);
|
|
177
|
+
const hitMaxDepth = ++depth > config.maxDepth;
|
|
178
|
+
const min = config.min;
|
|
179
|
+
if (
|
|
180
|
+
config.callToJSON &&
|
|
181
|
+
!hitMaxDepth &&
|
|
182
|
+
val.toJSON &&
|
|
183
|
+
typeof val.toJSON === 'function' &&
|
|
184
|
+
!hasCalledToJSON
|
|
185
|
+
) {
|
|
186
|
+
return printer(val.toJSON(), config, indentation, depth, refs, true);
|
|
187
|
+
}
|
|
188
|
+
const toStringed = toString.call(val);
|
|
189
|
+
if (toStringed === '[object Arguments]') {
|
|
190
|
+
return hitMaxDepth
|
|
191
|
+
? '[Arguments]'
|
|
192
|
+
: `${min ? '' : 'Arguments '}[${(0, _collections.printListItems)(
|
|
193
|
+
val,
|
|
194
|
+
config,
|
|
195
|
+
indentation,
|
|
196
|
+
depth,
|
|
197
|
+
refs,
|
|
198
|
+
printer
|
|
199
|
+
)}]`;
|
|
200
|
+
}
|
|
201
|
+
if (isToStringedArrayType(toStringed)) {
|
|
202
|
+
return hitMaxDepth
|
|
203
|
+
? `[${val.constructor.name}]`
|
|
204
|
+
: `${
|
|
205
|
+
min
|
|
206
|
+
? ''
|
|
207
|
+
: !config.printBasicPrototype && val.constructor.name === 'Array'
|
|
208
|
+
? ''
|
|
209
|
+
: `${val.constructor.name} `
|
|
210
|
+
}[${(0, _collections.printListItems)(
|
|
211
|
+
val,
|
|
212
|
+
config,
|
|
213
|
+
indentation,
|
|
214
|
+
depth,
|
|
215
|
+
refs,
|
|
216
|
+
printer
|
|
217
|
+
)}]`;
|
|
218
|
+
}
|
|
219
|
+
if (toStringed === '[object Map]') {
|
|
220
|
+
return hitMaxDepth
|
|
221
|
+
? '[Map]'
|
|
222
|
+
: `Map {${(0, _collections.printIteratorEntries)(
|
|
223
|
+
val.entries(),
|
|
224
|
+
config,
|
|
225
|
+
indentation,
|
|
226
|
+
depth,
|
|
227
|
+
refs,
|
|
228
|
+
printer,
|
|
229
|
+
' => '
|
|
230
|
+
)}}`;
|
|
231
|
+
}
|
|
232
|
+
if (toStringed === '[object Set]') {
|
|
233
|
+
return hitMaxDepth
|
|
234
|
+
? '[Set]'
|
|
235
|
+
: `Set {${(0, _collections.printIteratorValues)(
|
|
236
|
+
val.values(),
|
|
237
|
+
config,
|
|
238
|
+
indentation,
|
|
239
|
+
depth,
|
|
240
|
+
refs,
|
|
241
|
+
printer
|
|
242
|
+
)}}`;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
// Avoid failure to serialize global window object in jsdom test environment.
|
|
246
|
+
// For example, not even relevant if window is prop of React element.
|
|
247
|
+
return hitMaxDepth || isWindow(val)
|
|
248
|
+
? `[${getConstructorName(val)}]`
|
|
249
|
+
: `${
|
|
250
|
+
min
|
|
251
|
+
? ''
|
|
252
|
+
: !config.printBasicPrototype && getConstructorName(val) === 'Object'
|
|
253
|
+
? ''
|
|
254
|
+
: `${getConstructorName(val)} `
|
|
255
|
+
}{${(0, _collections.printObjectProperties)(
|
|
256
|
+
val,
|
|
257
|
+
config,
|
|
258
|
+
indentation,
|
|
259
|
+
depth,
|
|
260
|
+
refs,
|
|
261
|
+
printer
|
|
262
|
+
)}}`;
|
|
263
|
+
}
|
|
264
|
+
function isNewPlugin(plugin) {
|
|
265
|
+
return plugin.serialize != null;
|
|
266
|
+
}
|
|
267
|
+
function printPlugin(plugin, val, config, indentation, depth, refs) {
|
|
268
|
+
let printed;
|
|
269
|
+
try {
|
|
270
|
+
printed = isNewPlugin(plugin)
|
|
271
|
+
? plugin.serialize(val, config, indentation, depth, refs, printer)
|
|
272
|
+
: plugin.print(
|
|
273
|
+
val,
|
|
274
|
+
valChild => printer(valChild, config, indentation, depth, refs),
|
|
275
|
+
str => {
|
|
276
|
+
const indentationNext = indentation + config.indent;
|
|
277
|
+
return (
|
|
278
|
+
indentationNext +
|
|
279
|
+
str.replace(NEWLINE_REGEXP, `\n${indentationNext}`)
|
|
280
|
+
);
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
edgeSpacing: config.spacingOuter,
|
|
284
|
+
min: config.min,
|
|
285
|
+
spacing: config.spacingInner
|
|
286
|
+
},
|
|
287
|
+
config.colors
|
|
288
|
+
);
|
|
289
|
+
} catch (error) {
|
|
290
|
+
throw new PrettyFormatPluginError(error.message, error.stack);
|
|
291
|
+
}
|
|
292
|
+
if (typeof printed !== 'string') {
|
|
293
|
+
throw new Error(
|
|
294
|
+
`pretty-format: Plugin must return type "string" but instead returned "${typeof printed}".`
|
|
295
|
+
);
|
|
296
|
+
}
|
|
297
|
+
return printed;
|
|
298
|
+
}
|
|
299
|
+
function findPlugin(plugins, val) {
|
|
300
|
+
for (let p = 0; p < plugins.length; p++) {
|
|
301
|
+
try {
|
|
302
|
+
if (plugins[p].test(val)) {
|
|
303
|
+
return plugins[p];
|
|
304
|
+
}
|
|
305
|
+
} catch (error) {
|
|
306
|
+
throw new PrettyFormatPluginError(error.message, error.stack);
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
return null;
|
|
310
|
+
}
|
|
311
|
+
function printer(val, config, indentation, depth, refs, hasCalledToJSON) {
|
|
312
|
+
const plugin = findPlugin(config.plugins, val);
|
|
313
|
+
if (plugin !== null) {
|
|
314
|
+
return printPlugin(plugin, val, config, indentation, depth, refs);
|
|
315
|
+
}
|
|
316
|
+
const basicResult = printBasicValue(
|
|
317
|
+
val,
|
|
318
|
+
config.printFunctionName,
|
|
319
|
+
config.escapeRegex,
|
|
320
|
+
config.escapeString
|
|
321
|
+
);
|
|
322
|
+
if (basicResult !== null) {
|
|
323
|
+
return basicResult;
|
|
324
|
+
}
|
|
325
|
+
return printComplexValue(
|
|
326
|
+
val,
|
|
327
|
+
config,
|
|
328
|
+
indentation,
|
|
329
|
+
depth,
|
|
330
|
+
refs,
|
|
331
|
+
hasCalledToJSON
|
|
332
|
+
);
|
|
333
|
+
}
|
|
334
|
+
const DEFAULT_THEME = {
|
|
335
|
+
comment: 'gray',
|
|
336
|
+
content: 'reset',
|
|
337
|
+
prop: 'yellow',
|
|
338
|
+
tag: 'cyan',
|
|
339
|
+
value: 'green'
|
|
340
|
+
};
|
|
341
|
+
const DEFAULT_THEME_KEYS = Object.keys(DEFAULT_THEME);
|
|
342
|
+
|
|
343
|
+
// could be replaced by `satisfies` operator in the future: https://github.com/microsoft/TypeScript/issues/47920
|
|
344
|
+
const toOptionsSubtype = options => options;
|
|
345
|
+
const DEFAULT_OPTIONS = toOptionsSubtype({
|
|
346
|
+
callToJSON: true,
|
|
347
|
+
compareKeys: undefined,
|
|
348
|
+
escapeRegex: false,
|
|
349
|
+
escapeString: true,
|
|
350
|
+
highlight: false,
|
|
351
|
+
indent: 2,
|
|
352
|
+
maxDepth: Infinity,
|
|
353
|
+
maxWidth: Infinity,
|
|
354
|
+
min: false,
|
|
355
|
+
plugins: [],
|
|
356
|
+
printBasicPrototype: true,
|
|
357
|
+
printFunctionName: true,
|
|
358
|
+
theme: DEFAULT_THEME
|
|
359
|
+
});
|
|
360
|
+
exports.DEFAULT_OPTIONS = DEFAULT_OPTIONS;
|
|
361
|
+
function validateOptions(options) {
|
|
362
|
+
Object.keys(options).forEach(key => {
|
|
363
|
+
if (!Object.prototype.hasOwnProperty.call(DEFAULT_OPTIONS, key)) {
|
|
364
|
+
throw new Error(`pretty-format: Unknown option "${key}".`);
|
|
365
|
+
}
|
|
366
|
+
});
|
|
367
|
+
if (options.min && options.indent !== undefined && options.indent !== 0) {
|
|
368
|
+
throw new Error(
|
|
369
|
+
'pretty-format: Options "min" and "indent" cannot be used together.'
|
|
370
|
+
);
|
|
371
|
+
}
|
|
372
|
+
if (options.theme !== undefined) {
|
|
373
|
+
if (options.theme === null) {
|
|
374
|
+
throw new Error('pretty-format: Option "theme" must not be null.');
|
|
375
|
+
}
|
|
376
|
+
if (typeof options.theme !== 'object') {
|
|
377
|
+
throw new Error(
|
|
378
|
+
`pretty-format: Option "theme" must be of type "object" but instead received "${typeof options.theme}".`
|
|
379
|
+
);
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
const getColorsHighlight = options =>
|
|
384
|
+
DEFAULT_THEME_KEYS.reduce((colors, key) => {
|
|
385
|
+
const value =
|
|
386
|
+
options.theme && options.theme[key] !== undefined
|
|
387
|
+
? options.theme[key]
|
|
388
|
+
: DEFAULT_THEME[key];
|
|
389
|
+
const color = value && _ansiStyles.default[value];
|
|
390
|
+
if (
|
|
391
|
+
color &&
|
|
392
|
+
typeof color.close === 'string' &&
|
|
393
|
+
typeof color.open === 'string'
|
|
394
|
+
) {
|
|
395
|
+
colors[key] = color;
|
|
396
|
+
} else {
|
|
397
|
+
throw new Error(
|
|
398
|
+
`pretty-format: Option "theme" has a key "${key}" whose value "${value}" is undefined in ansi-styles.`
|
|
399
|
+
);
|
|
400
|
+
}
|
|
401
|
+
return colors;
|
|
402
|
+
}, Object.create(null));
|
|
403
|
+
const getColorsEmpty = () =>
|
|
404
|
+
DEFAULT_THEME_KEYS.reduce((colors, key) => {
|
|
405
|
+
colors[key] = {
|
|
406
|
+
close: '',
|
|
407
|
+
open: ''
|
|
408
|
+
};
|
|
409
|
+
return colors;
|
|
410
|
+
}, Object.create(null));
|
|
411
|
+
const getPrintFunctionName = options =>
|
|
412
|
+
options?.printFunctionName ?? DEFAULT_OPTIONS.printFunctionName;
|
|
413
|
+
const getEscapeRegex = options =>
|
|
414
|
+
options?.escapeRegex ?? DEFAULT_OPTIONS.escapeRegex;
|
|
415
|
+
const getEscapeString = options =>
|
|
416
|
+
options?.escapeString ?? DEFAULT_OPTIONS.escapeString;
|
|
417
|
+
const getConfig = options => ({
|
|
418
|
+
callToJSON: options?.callToJSON ?? DEFAULT_OPTIONS.callToJSON,
|
|
419
|
+
colors: options?.highlight ? getColorsHighlight(options) : getColorsEmpty(),
|
|
420
|
+
compareKeys:
|
|
421
|
+
typeof options?.compareKeys === 'function' || options?.compareKeys === null
|
|
422
|
+
? options.compareKeys
|
|
423
|
+
: DEFAULT_OPTIONS.compareKeys,
|
|
424
|
+
escapeRegex: getEscapeRegex(options),
|
|
425
|
+
escapeString: getEscapeString(options),
|
|
426
|
+
indent: options?.min
|
|
427
|
+
? ''
|
|
428
|
+
: createIndent(options?.indent ?? DEFAULT_OPTIONS.indent),
|
|
429
|
+
maxDepth: options?.maxDepth ?? DEFAULT_OPTIONS.maxDepth,
|
|
430
|
+
maxWidth: options?.maxWidth ?? DEFAULT_OPTIONS.maxWidth,
|
|
431
|
+
min: options?.min ?? DEFAULT_OPTIONS.min,
|
|
432
|
+
plugins: options?.plugins ?? DEFAULT_OPTIONS.plugins,
|
|
433
|
+
printBasicPrototype: options?.printBasicPrototype ?? true,
|
|
434
|
+
printFunctionName: getPrintFunctionName(options),
|
|
435
|
+
spacingInner: options?.min ? ' ' : '\n',
|
|
436
|
+
spacingOuter: options?.min ? '' : '\n'
|
|
437
|
+
});
|
|
438
|
+
function createIndent(indent) {
|
|
439
|
+
return new Array(indent + 1).join(' ');
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
* Returns a presentation string of your `val` object
|
|
444
|
+
* @param val any potential JavaScript object
|
|
445
|
+
* @param options Custom settings
|
|
446
|
+
*/
|
|
447
|
+
function format(val, options) {
|
|
448
|
+
if (options) {
|
|
449
|
+
validateOptions(options);
|
|
450
|
+
if (options.plugins) {
|
|
451
|
+
const plugin = findPlugin(options.plugins, val);
|
|
452
|
+
if (plugin !== null) {
|
|
453
|
+
return printPlugin(plugin, val, getConfig(options), '', 0, []);
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
const basicResult = printBasicValue(
|
|
458
|
+
val,
|
|
459
|
+
getPrintFunctionName(options),
|
|
460
|
+
getEscapeRegex(options),
|
|
461
|
+
getEscapeString(options)
|
|
462
|
+
);
|
|
463
|
+
if (basicResult !== null) {
|
|
464
|
+
return basicResult;
|
|
465
|
+
}
|
|
466
|
+
return printComplexValue(val, getConfig(options), '', 0, []);
|
|
467
|
+
}
|
|
468
|
+
const plugins = {
|
|
469
|
+
AsymmetricMatcher: _AsymmetricMatcher.default,
|
|
470
|
+
DOMCollection: _DOMCollection.default,
|
|
471
|
+
DOMElement: _DOMElement.default,
|
|
472
|
+
Immutable: _Immutable.default,
|
|
473
|
+
ReactElement: _ReactElement.default,
|
|
474
|
+
ReactTestComponent: _ReactTestComponent.default
|
|
475
|
+
};
|
|
476
|
+
exports.plugins = plugins;
|
|
477
|
+
var _default = format;
|
|
478
|
+
exports.default = _default;
|