ibm-cloud-sdk-core 4.3.2 → 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/CHANGELOG.md +7 -0
- package/es/lib/sdk-test-helpers.js +1 -2
- package/iamtest.env +3 -0
- package/lib/sdk-test-helpers.js +11 -9
- package/package.json +3 -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,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "slash",
|
|
3
|
+
"version": "3.0.0",
|
|
4
|
+
"description": "Convert Windows backslash paths to slash paths",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "sindresorhus/slash",
|
|
7
|
+
"author": {
|
|
8
|
+
"name": "Sindre Sorhus",
|
|
9
|
+
"email": "sindresorhus@gmail.com",
|
|
10
|
+
"url": "sindresorhus.com"
|
|
11
|
+
},
|
|
12
|
+
"engines": {
|
|
13
|
+
"node": ">=8"
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"test": "xo && ava && tsd"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"index.js",
|
|
20
|
+
"index.d.ts"
|
|
21
|
+
],
|
|
22
|
+
"keywords": [
|
|
23
|
+
"path",
|
|
24
|
+
"seperator",
|
|
25
|
+
"slash",
|
|
26
|
+
"backslash",
|
|
27
|
+
"windows",
|
|
28
|
+
"convert"
|
|
29
|
+
],
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"ava": "^1.4.1",
|
|
32
|
+
"tsd": "^0.7.2",
|
|
33
|
+
"xo": "^0.24.0"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# slash [](https://travis-ci.org/sindresorhus/slash)
|
|
2
|
+
|
|
3
|
+
> Convert Windows backslash paths to slash paths: `foo\\bar` ➔ `foo/bar`
|
|
4
|
+
|
|
5
|
+
[Forward-slash paths can be used in Windows](http://superuser.com/a/176395/6877) as long as they're not extended-length paths and don't contain any non-ascii characters.
|
|
6
|
+
|
|
7
|
+
This was created since the `path` methods in Node.js outputs `\\` paths on Windows.
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## Install
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
$ npm install slash
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
```js
|
|
20
|
+
const path = require('path');
|
|
21
|
+
const slash = require('slash');
|
|
22
|
+
|
|
23
|
+
const string = path.join('foo', 'bar');
|
|
24
|
+
// Unix => foo/bar
|
|
25
|
+
// Windows => foo\\bar
|
|
26
|
+
|
|
27
|
+
slash(string);
|
|
28
|
+
// Unix => foo/bar
|
|
29
|
+
// Windows => foo/bar
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
## API
|
|
34
|
+
|
|
35
|
+
### slash(path)
|
|
36
|
+
|
|
37
|
+
Type: `string`
|
|
38
|
+
|
|
39
|
+
Accepts a Windows backslash path and returns a path with forward slashes.
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
## License
|
|
43
|
+
|
|
44
|
+
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2016-2022 Isaac Z. Schlueter <i@izs.me>, James Talmage <james@talmage.io> (github.com/jamestalmage), and Contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1,344 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const escapeStringRegexp = require('escape-string-regexp');
|
|
4
|
+
|
|
5
|
+
const cwd = typeof process === 'object' && process && typeof process.cwd === 'function'
|
|
6
|
+
? process.cwd()
|
|
7
|
+
: '.'
|
|
8
|
+
|
|
9
|
+
const natives = [].concat(
|
|
10
|
+
require('module').builtinModules,
|
|
11
|
+
'bootstrap_node',
|
|
12
|
+
'node',
|
|
13
|
+
).map(n => new RegExp(`(?:\\((?:node:)?${n}(?:\\.js)?:\\d+:\\d+\\)$|^\\s*at (?:node:)?${n}(?:\\.js)?:\\d+:\\d+$)`));
|
|
14
|
+
|
|
15
|
+
natives.push(
|
|
16
|
+
/\((?:node:)?internal\/[^:]+:\d+:\d+\)$/,
|
|
17
|
+
/\s*at (?:node:)?internal\/[^:]+:\d+:\d+$/,
|
|
18
|
+
/\/\.node-spawn-wrap-\w+-\w+\/node:\d+:\d+\)?$/
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
class StackUtils {
|
|
22
|
+
constructor (opts) {
|
|
23
|
+
opts = {
|
|
24
|
+
ignoredPackages: [],
|
|
25
|
+
...opts
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
if ('internals' in opts === false) {
|
|
29
|
+
opts.internals = StackUtils.nodeInternals();
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
if ('cwd' in opts === false) {
|
|
33
|
+
opts.cwd = cwd
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
this._cwd = opts.cwd.replace(/\\/g, '/');
|
|
37
|
+
this._internals = [].concat(
|
|
38
|
+
opts.internals,
|
|
39
|
+
ignoredPackagesRegExp(opts.ignoredPackages)
|
|
40
|
+
);
|
|
41
|
+
|
|
42
|
+
this._wrapCallSite = opts.wrapCallSite || false;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
static nodeInternals () {
|
|
46
|
+
return [...natives];
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
clean (stack, indent = 0) {
|
|
50
|
+
indent = ' '.repeat(indent);
|
|
51
|
+
|
|
52
|
+
if (!Array.isArray(stack)) {
|
|
53
|
+
stack = stack.split('\n');
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
if (!(/^\s*at /.test(stack[0])) && (/^\s*at /.test(stack[1]))) {
|
|
57
|
+
stack = stack.slice(1);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
let outdent = false;
|
|
61
|
+
let lastNonAtLine = null;
|
|
62
|
+
const result = [];
|
|
63
|
+
|
|
64
|
+
stack.forEach(st => {
|
|
65
|
+
st = st.replace(/\\/g, '/');
|
|
66
|
+
|
|
67
|
+
if (this._internals.some(internal => internal.test(st))) {
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
const isAtLine = /^\s*at /.test(st);
|
|
72
|
+
|
|
73
|
+
if (outdent) {
|
|
74
|
+
st = st.trimEnd().replace(/^(\s+)at /, '$1');
|
|
75
|
+
} else {
|
|
76
|
+
st = st.trim();
|
|
77
|
+
if (isAtLine) {
|
|
78
|
+
st = st.slice(3);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
st = st.replace(`${this._cwd}/`, '');
|
|
83
|
+
|
|
84
|
+
if (st) {
|
|
85
|
+
if (isAtLine) {
|
|
86
|
+
if (lastNonAtLine) {
|
|
87
|
+
result.push(lastNonAtLine);
|
|
88
|
+
lastNonAtLine = null;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
result.push(st);
|
|
92
|
+
} else {
|
|
93
|
+
outdent = true;
|
|
94
|
+
lastNonAtLine = st;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
return result.map(line => `${indent}${line}\n`).join('');
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
captureString (limit, fn = this.captureString) {
|
|
103
|
+
if (typeof limit === 'function') {
|
|
104
|
+
fn = limit;
|
|
105
|
+
limit = Infinity;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
const {stackTraceLimit} = Error;
|
|
109
|
+
if (limit) {
|
|
110
|
+
Error.stackTraceLimit = limit;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
const obj = {};
|
|
114
|
+
|
|
115
|
+
Error.captureStackTrace(obj, fn);
|
|
116
|
+
const {stack} = obj;
|
|
117
|
+
Error.stackTraceLimit = stackTraceLimit;
|
|
118
|
+
|
|
119
|
+
return this.clean(stack);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
capture (limit, fn = this.capture) {
|
|
123
|
+
if (typeof limit === 'function') {
|
|
124
|
+
fn = limit;
|
|
125
|
+
limit = Infinity;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
const {prepareStackTrace, stackTraceLimit} = Error;
|
|
129
|
+
Error.prepareStackTrace = (obj, site) => {
|
|
130
|
+
if (this._wrapCallSite) {
|
|
131
|
+
return site.map(this._wrapCallSite);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
return site;
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
if (limit) {
|
|
138
|
+
Error.stackTraceLimit = limit;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
const obj = {};
|
|
142
|
+
Error.captureStackTrace(obj, fn);
|
|
143
|
+
const { stack } = obj;
|
|
144
|
+
Object.assign(Error, {prepareStackTrace, stackTraceLimit});
|
|
145
|
+
|
|
146
|
+
return stack;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
at (fn = this.at) {
|
|
150
|
+
const [site] = this.capture(1, fn);
|
|
151
|
+
|
|
152
|
+
if (!site) {
|
|
153
|
+
return {};
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
const res = {
|
|
157
|
+
line: site.getLineNumber(),
|
|
158
|
+
column: site.getColumnNumber()
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
setFile(res, site.getFileName(), this._cwd);
|
|
162
|
+
|
|
163
|
+
if (site.isConstructor()) {
|
|
164
|
+
Object.defineProperty(res, 'constructor', {
|
|
165
|
+
value: true,
|
|
166
|
+
configurable: true,
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
if (site.isEval()) {
|
|
171
|
+
res.evalOrigin = site.getEvalOrigin();
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
// Node v10 stopped with the isNative() on callsites, apparently
|
|
175
|
+
/* istanbul ignore next */
|
|
176
|
+
if (site.isNative()) {
|
|
177
|
+
res.native = true;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
let typename;
|
|
181
|
+
try {
|
|
182
|
+
typename = site.getTypeName();
|
|
183
|
+
} catch (_) {
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
if (typename && typename !== 'Object' && typename !== '[object Object]') {
|
|
187
|
+
res.type = typename;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
const fname = site.getFunctionName();
|
|
191
|
+
if (fname) {
|
|
192
|
+
res.function = fname;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
const meth = site.getMethodName();
|
|
196
|
+
if (meth && fname !== meth) {
|
|
197
|
+
res.method = meth;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
return res;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
parseLine (line) {
|
|
204
|
+
const match = line && line.match(re);
|
|
205
|
+
if (!match) {
|
|
206
|
+
return null;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
const ctor = match[1] === 'new';
|
|
210
|
+
let fname = match[2];
|
|
211
|
+
const evalOrigin = match[3];
|
|
212
|
+
const evalFile = match[4];
|
|
213
|
+
const evalLine = Number(match[5]);
|
|
214
|
+
const evalCol = Number(match[6]);
|
|
215
|
+
let file = match[7];
|
|
216
|
+
const lnum = match[8];
|
|
217
|
+
const col = match[9];
|
|
218
|
+
const native = match[10] === 'native';
|
|
219
|
+
const closeParen = match[11] === ')';
|
|
220
|
+
let method;
|
|
221
|
+
|
|
222
|
+
const res = {};
|
|
223
|
+
|
|
224
|
+
if (lnum) {
|
|
225
|
+
res.line = Number(lnum);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
if (col) {
|
|
229
|
+
res.column = Number(col);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
if (closeParen && file) {
|
|
233
|
+
// make sure parens are balanced
|
|
234
|
+
// if we have a file like "asdf) [as foo] (xyz.js", then odds are
|
|
235
|
+
// that the fname should be += " (asdf) [as foo]" and the file
|
|
236
|
+
// should be just "xyz.js"
|
|
237
|
+
// walk backwards from the end to find the last unbalanced (
|
|
238
|
+
let closes = 0;
|
|
239
|
+
for (let i = file.length - 1; i > 0; i--) {
|
|
240
|
+
if (file.charAt(i) === ')') {
|
|
241
|
+
closes++;
|
|
242
|
+
} else if (file.charAt(i) === '(' && file.charAt(i - 1) === ' ') {
|
|
243
|
+
closes--;
|
|
244
|
+
if (closes === -1 && file.charAt(i - 1) === ' ') {
|
|
245
|
+
const before = file.slice(0, i - 1);
|
|
246
|
+
const after = file.slice(i + 1);
|
|
247
|
+
file = after;
|
|
248
|
+
fname += ` (${before}`;
|
|
249
|
+
break;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
if (fname) {
|
|
256
|
+
const methodMatch = fname.match(methodRe);
|
|
257
|
+
if (methodMatch) {
|
|
258
|
+
fname = methodMatch[1];
|
|
259
|
+
method = methodMatch[2];
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
setFile(res, file, this._cwd);
|
|
264
|
+
|
|
265
|
+
if (ctor) {
|
|
266
|
+
Object.defineProperty(res, 'constructor', {
|
|
267
|
+
value: true,
|
|
268
|
+
configurable: true,
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
if (evalOrigin) {
|
|
273
|
+
res.evalOrigin = evalOrigin;
|
|
274
|
+
res.evalLine = evalLine;
|
|
275
|
+
res.evalColumn = evalCol;
|
|
276
|
+
res.evalFile = evalFile && evalFile.replace(/\\/g, '/');
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
if (native) {
|
|
280
|
+
res.native = true;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
if (fname) {
|
|
284
|
+
res.function = fname;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
if (method && fname !== method) {
|
|
288
|
+
res.method = method;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
return res;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
function setFile (result, filename, cwd) {
|
|
296
|
+
if (filename) {
|
|
297
|
+
filename = filename.replace(/\\/g, '/');
|
|
298
|
+
if (filename.startsWith(`${cwd}/`)) {
|
|
299
|
+
filename = filename.slice(cwd.length + 1);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
result.file = filename;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
function ignoredPackagesRegExp(ignoredPackages) {
|
|
307
|
+
if (ignoredPackages.length === 0) {
|
|
308
|
+
return [];
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
const packages = ignoredPackages.map(mod => escapeStringRegexp(mod));
|
|
312
|
+
|
|
313
|
+
return new RegExp(`[\/\\\\]node_modules[\/\\\\](?:${packages.join('|')})[\/\\\\][^:]+:\\d+:\\d+`)
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
const re = new RegExp(
|
|
317
|
+
'^' +
|
|
318
|
+
// Sometimes we strip out the ' at' because it's noisy
|
|
319
|
+
'(?:\\s*at )?' +
|
|
320
|
+
// $1 = ctor if 'new'
|
|
321
|
+
'(?:(new) )?' +
|
|
322
|
+
// $2 = function name (can be literally anything)
|
|
323
|
+
// May contain method at the end as [as xyz]
|
|
324
|
+
'(?:(.*?) \\()?' +
|
|
325
|
+
// (eval at <anonymous> (file.js:1:1),
|
|
326
|
+
// $3 = eval origin
|
|
327
|
+
// $4:$5:$6 are eval file/line/col, but not normally reported
|
|
328
|
+
'(?:eval at ([^ ]+) \\((.+?):(\\d+):(\\d+)\\), )?' +
|
|
329
|
+
// file:line:col
|
|
330
|
+
// $7:$8:$9
|
|
331
|
+
// $10 = 'native' if native
|
|
332
|
+
'(?:(.+?):(\\d+):(\\d+)|(native))' +
|
|
333
|
+
// maybe close the paren, then end
|
|
334
|
+
// if $11 is ), then we only allow balanced parens in the filename
|
|
335
|
+
// any imbalance is placed on the fname. This is a heuristic, and
|
|
336
|
+
// bound to be incorrect in some edge cases. The bet is that
|
|
337
|
+
// having weird characters in method names is more common than
|
|
338
|
+
// having weird characters in filenames, which seems reasonable.
|
|
339
|
+
'(\\)?)$'
|
|
340
|
+
);
|
|
341
|
+
|
|
342
|
+
const methodRe = /^(.*?) \[as (.*?)\]$/;
|
|
343
|
+
|
|
344
|
+
module.exports = StackUtils;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "stack-utils",
|
|
3
|
+
"version": "2.0.6",
|
|
4
|
+
"description": "Captures and cleans stack traces",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "tapjs/stack-utils",
|
|
7
|
+
"author": {
|
|
8
|
+
"name": "James Talmage",
|
|
9
|
+
"email": "james@talmage.io",
|
|
10
|
+
"url": "github.com/jamestalmage"
|
|
11
|
+
},
|
|
12
|
+
"engines": {
|
|
13
|
+
"node": ">=10"
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"test": "tap",
|
|
17
|
+
"preversion": "npm test",
|
|
18
|
+
"postversion": "npm publish",
|
|
19
|
+
"prepublishOnly": "git push origin --follow-tags"
|
|
20
|
+
},
|
|
21
|
+
"tap": {
|
|
22
|
+
"check-coverage": true
|
|
23
|
+
},
|
|
24
|
+
"files": [
|
|
25
|
+
"index.js"
|
|
26
|
+
],
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"escape-string-regexp": "^2.0.0"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"bluebird": "^3.7.2",
|
|
32
|
+
"coveralls": "^3.0.9",
|
|
33
|
+
"nested-error-stacks": "^2.1.0",
|
|
34
|
+
"pify": "^4.0.1",
|
|
35
|
+
"q": "^1.5.1",
|
|
36
|
+
"source-map-support": "^0.5.20",
|
|
37
|
+
"tap": "^16.3.0"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
# stack-utils
|
|
2
|
+
|
|
3
|
+
> Captures and cleans stack traces.
|
|
4
|
+
|
|
5
|
+
[](https://travis-ci.org/tapjs/stack-utils) [](https://ci.appveyor.com/project/jamestalmage/stack-utils-oiw96/branch/master) [](https://coveralls.io/github/tapjs/stack-utils?branch=master)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Extracted from `lib/stack.js` in the [`node-tap` project](https://github.com/tapjs/node-tap)
|
|
9
|
+
|
|
10
|
+
## Install
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
$ npm install --save stack-utils
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
```js
|
|
20
|
+
const StackUtils = require('stack-utils');
|
|
21
|
+
const stack = new StackUtils({cwd: process.cwd(), internals: StackUtils.nodeInternals()});
|
|
22
|
+
|
|
23
|
+
console.log(stack.clean(new Error().stack));
|
|
24
|
+
// outputs a beautified stack trace
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
## API
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### new StackUtils([options])
|
|
32
|
+
|
|
33
|
+
Creates a new `stackUtils` instance.
|
|
34
|
+
|
|
35
|
+
#### options
|
|
36
|
+
|
|
37
|
+
##### internals
|
|
38
|
+
|
|
39
|
+
Type: `array` of `RegularExpression`s
|
|
40
|
+
|
|
41
|
+
A set of regular expressions that match internal stack stack trace lines which should be culled from the stack trace.
|
|
42
|
+
The default is `StackUtils.nodeInternals()`, this can be disabled by setting `[]` or appended using
|
|
43
|
+
`StackUtils.nodeInternals().concat(additionalRegExp)`. See also `ignoredPackages`.
|
|
44
|
+
|
|
45
|
+
##### ignoredPackages
|
|
46
|
+
|
|
47
|
+
Type: `array` of `string`s
|
|
48
|
+
|
|
49
|
+
An array of npm modules to be culled from the stack trace. This list will mapped to regular
|
|
50
|
+
expressions and merged with the `internals`.
|
|
51
|
+
|
|
52
|
+
Default `''`.
|
|
53
|
+
|
|
54
|
+
##### cwd
|
|
55
|
+
|
|
56
|
+
Type: `string`
|
|
57
|
+
|
|
58
|
+
The path to the current working directory. File names in the stack trace will be shown relative to this directory.
|
|
59
|
+
|
|
60
|
+
##### wrapCallSite
|
|
61
|
+
|
|
62
|
+
Type: `function(CallSite)`
|
|
63
|
+
|
|
64
|
+
A mapping function for manipulating CallSites before processing. The first argument is a CallSite instance, and the function should return a modified CallSite. This is useful for providing source map support.
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
### StackUtils.nodeInternals()
|
|
68
|
+
|
|
69
|
+
Returns an array of regular expressions that be used to cull lines from the stack trace that reference common Node.js internal files.
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
### stackUtils.clean(stack, indent = 0)
|
|
73
|
+
|
|
74
|
+
Cleans up a stack trace by deleting any lines that match the `internals` passed to the constructor, and shortening file names relative to `cwd`.
|
|
75
|
+
|
|
76
|
+
Returns a `string` with the cleaned up stack (always terminated with a `\n` newline character).
|
|
77
|
+
Spaces at the start of each line are trimmed, indentation can be added by setting `indent` to the desired number of spaces.
|
|
78
|
+
|
|
79
|
+
#### stack
|
|
80
|
+
|
|
81
|
+
*Required*
|
|
82
|
+
Type: `string` or an `array` of `string`s
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
### stackUtils.capture([limit], [startStackFunction])
|
|
86
|
+
|
|
87
|
+
Captures the current stack trace, returning an array of `CallSite`s. There are good overviews of the available CallSite methods [here](https://github.com/v8/v8/wiki/Stack%20Trace%20API#customizing-stack-traces), and [here](https://github.com/sindresorhus/callsites#api).
|
|
88
|
+
|
|
89
|
+
#### limit
|
|
90
|
+
|
|
91
|
+
Type: `number`
|
|
92
|
+
Default: `Infinity`
|
|
93
|
+
|
|
94
|
+
Limits the number of lines returned by dropping all lines in excess of the limit. This removes lines from the stack trace.
|
|
95
|
+
|
|
96
|
+
#### startStackFunction
|
|
97
|
+
|
|
98
|
+
Type: `function`
|
|
99
|
+
|
|
100
|
+
The function where the stack trace should start. The first line of the stack trace will be the function that called `startStackFunction`. This removes lines from the end of the stack trace.
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
### stackUtils.captureString([limit], [startStackFunction])
|
|
104
|
+
|
|
105
|
+
Captures the current stack trace, cleans it using `stackUtils.clean(stack)`, and returns a string with the cleaned stack trace. It takes the same arguments as `stackUtils.capture`.
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
### stackUtils.at([startStackFunction])
|
|
109
|
+
|
|
110
|
+
Captures the first line of the stack trace (or the first line after `startStackFunction` if supplied), and returns a `CallSite` like object that is serialization friendly (properties are actual values instead of getter functions).
|
|
111
|
+
|
|
112
|
+
The available properties are:
|
|
113
|
+
|
|
114
|
+
- `line`: `number`
|
|
115
|
+
- `column`: `number`
|
|
116
|
+
- `file`: `string`
|
|
117
|
+
- `constructor`: `boolean`
|
|
118
|
+
- `evalOrigin`: `string`
|
|
119
|
+
- `native`: `boolean`
|
|
120
|
+
- `type`: `string`
|
|
121
|
+
- `function`: `string`
|
|
122
|
+
- `method`: `string`
|
|
123
|
+
|
|
124
|
+
### stackUtils.parseLine(line)
|
|
125
|
+
|
|
126
|
+
Parses a `string` (which should be a single line from a stack trace), and generates an object with the following properties:
|
|
127
|
+
|
|
128
|
+
- `line`: `number`
|
|
129
|
+
- `column`: `number`
|
|
130
|
+
- `file`: `string`
|
|
131
|
+
- `constructor`: `boolean`
|
|
132
|
+
- `evalOrigin`: `string`
|
|
133
|
+
- `evalLine`: `number`
|
|
134
|
+
- `evalColumn`: `number`
|
|
135
|
+
- `evalFile`: `string`
|
|
136
|
+
- `native`: `boolean`
|
|
137
|
+
- `function`: `string`
|
|
138
|
+
- `method`: `string`
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
## License
|
|
142
|
+
|
|
143
|
+
MIT © [Isaac Z. Schlueter](http://github.com/isaacs), [James Talmage](http://github.com/jamestalmage)
|