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,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "jest-util",
|
|
3
|
+
"version": "29.7.0",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "https://github.com/jestjs/jest.git",
|
|
7
|
+
"directory": "packages/jest-util"
|
|
8
|
+
},
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"main": "./build/index.js",
|
|
11
|
+
"types": "./build/index.d.ts",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"types": "./build/index.d.ts",
|
|
15
|
+
"default": "./build/index.js"
|
|
16
|
+
},
|
|
17
|
+
"./package.json": "./package.json"
|
|
18
|
+
},
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"@jest/types": "^29.6.3",
|
|
21
|
+
"@types/node": "*",
|
|
22
|
+
"chalk": "^4.0.0",
|
|
23
|
+
"ci-info": "^3.2.0",
|
|
24
|
+
"graceful-fs": "^4.2.9",
|
|
25
|
+
"picomatch": "^2.2.3"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@types/graceful-fs": "^4.1.3",
|
|
29
|
+
"@types/picomatch": "^2.2.2"
|
|
30
|
+
},
|
|
31
|
+
"engines": {
|
|
32
|
+
"node": "^14.15.0 || ^16.10.0 || >=18.0.0"
|
|
33
|
+
},
|
|
34
|
+
"publishConfig": {
|
|
35
|
+
"access": "public"
|
|
36
|
+
},
|
|
37
|
+
"gitHead": "4e56991693da7cd4c3730dc3579a1dd1403ee630"
|
|
38
|
+
}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
### Version 4.0.0 (2018-01-28) ###
|
|
2
|
+
|
|
3
|
+
- Added: Support for ES2018. The only change needed was recognizing the `s`
|
|
4
|
+
regex flag.
|
|
5
|
+
- Changed: _All_ tokens returned by the `matchToToken` function now have a
|
|
6
|
+
`closed` property. It is set to `undefined` for the tokens where “closed”
|
|
7
|
+
doesn’t make sense. This means that all tokens objects have the same shape,
|
|
8
|
+
which might improve performance.
|
|
9
|
+
|
|
10
|
+
These are the breaking changes:
|
|
11
|
+
|
|
12
|
+
- `'/a/s'.match(jsTokens)` no longer returns `['/', 'a', '/', 's']`, but
|
|
13
|
+
`['/a/s']`. (There are of course other variations of this.)
|
|
14
|
+
- Code that rely on some token objects not having the `closed` property could
|
|
15
|
+
now behave differently.
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Version 3.0.2 (2017-06-28) ###
|
|
19
|
+
|
|
20
|
+
- No code changes. Just updates to the readme.
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Version 3.0.1 (2017-01-30) ###
|
|
24
|
+
|
|
25
|
+
- Fixed: ES2015 unicode escapes with more than 6 hex digits are now matched
|
|
26
|
+
correctly.
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Version 3.0.0 (2017-01-11) ###
|
|
30
|
+
|
|
31
|
+
This release contains one breaking change, that should [improve performance in
|
|
32
|
+
V8][v8-perf]:
|
|
33
|
+
|
|
34
|
+
> So how can you, as a JavaScript developer, ensure that your RegExps are fast?
|
|
35
|
+
> If you are not interested in hooking into RegExp internals, make sure that
|
|
36
|
+
> neither the RegExp instance, nor its prototype is modified in order to get the
|
|
37
|
+
> best performance:
|
|
38
|
+
>
|
|
39
|
+
> ```js
|
|
40
|
+
> var re = /./g;
|
|
41
|
+
> re.exec(''); // Fast path.
|
|
42
|
+
> re.new_property = 'slow';
|
|
43
|
+
> ```
|
|
44
|
+
|
|
45
|
+
This module used to export a single regex, with `.matchToToken` bolted
|
|
46
|
+
on, just like in the above example. This release changes the exports of
|
|
47
|
+
the module to avoid this issue.
|
|
48
|
+
|
|
49
|
+
Before:
|
|
50
|
+
|
|
51
|
+
```js
|
|
52
|
+
import jsTokens from "js-tokens"
|
|
53
|
+
// or:
|
|
54
|
+
var jsTokens = require("js-tokens")
|
|
55
|
+
var matchToToken = jsTokens.matchToToken
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
After:
|
|
59
|
+
|
|
60
|
+
```js
|
|
61
|
+
import jsTokens, {matchToToken} from "js-tokens"
|
|
62
|
+
// or:
|
|
63
|
+
var jsTokens = require("js-tokens").default
|
|
64
|
+
var matchToToken = require("js-tokens").matchToToken
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
[v8-perf]: http://v8project.blogspot.se/2017/01/speeding-up-v8-regular-expressions.html
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
### Version 2.0.0 (2016-06-19) ###
|
|
71
|
+
|
|
72
|
+
- Added: Support for ES2016. In other words, support for the `**` exponentiation
|
|
73
|
+
operator.
|
|
74
|
+
|
|
75
|
+
These are the breaking changes:
|
|
76
|
+
|
|
77
|
+
- `'**'.match(jsTokens)` no longer returns `['*', '*']`, but `['**']`.
|
|
78
|
+
- `'**='.match(jsTokens)` no longer returns `['*', '*=']`, but `['**=']`.
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
### Version 1.0.3 (2016-03-27) ###
|
|
82
|
+
|
|
83
|
+
- Improved: Made the regex ever so slightly smaller.
|
|
84
|
+
- Updated: The readme.
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
### Version 1.0.2 (2015-10-18) ###
|
|
88
|
+
|
|
89
|
+
- Improved: Limited npm package contents for a smaller download. Thanks to
|
|
90
|
+
@zertosh!
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
### Version 1.0.1 (2015-06-20) ###
|
|
94
|
+
|
|
95
|
+
- Fixed: Declared an undeclared variable.
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
### Version 1.0.0 (2015-02-26) ###
|
|
99
|
+
|
|
100
|
+
- Changed: Merged the 'operator' and 'punctuation' types into 'punctuator'. That
|
|
101
|
+
type is now equivalent to the Punctuator token in the ECMAScript
|
|
102
|
+
specification. (Backwards-incompatible change.)
|
|
103
|
+
- Fixed: A `-` followed by a number is now correctly matched as a punctuator
|
|
104
|
+
followed by a number. It used to be matched as just a number, but there is no
|
|
105
|
+
such thing as negative number literals. (Possibly backwards-incompatible
|
|
106
|
+
change.)
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
### Version 0.4.1 (2015-02-21) ###
|
|
110
|
+
|
|
111
|
+
- Added: Support for the regex `u` flag.
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
### Version 0.4.0 (2015-02-21) ###
|
|
115
|
+
|
|
116
|
+
- Improved: `jsTokens.matchToToken` performance.
|
|
117
|
+
- Added: Support for octal and binary number literals.
|
|
118
|
+
- Added: Support for template strings.
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
### Version 0.3.1 (2015-01-06) ###
|
|
122
|
+
|
|
123
|
+
- Fixed: Support for unicode spaces. They used to be allowed in names (which is
|
|
124
|
+
very confusing), and some unicode newlines were wrongly allowed in strings and
|
|
125
|
+
regexes.
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
### Version 0.3.0 (2014-12-19) ###
|
|
129
|
+
|
|
130
|
+
- Changed: The `jsTokens.names` array has been replaced with the
|
|
131
|
+
`jsTokens.matchToToken` function. The capturing groups of `jsTokens` are no
|
|
132
|
+
longer part of the public API; instead use said function. See this [gist] for
|
|
133
|
+
an example. (Backwards-incompatible change.)
|
|
134
|
+
- Changed: The empty string is now considered an “invalid” token, instead an
|
|
135
|
+
“empty” token (its own group). (Backwards-incompatible change.)
|
|
136
|
+
- Removed: component support. (Backwards-incompatible change.)
|
|
137
|
+
|
|
138
|
+
[gist]: https://gist.github.com/lydell/be49dbf80c382c473004
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
### Version 0.2.0 (2014-06-19) ###
|
|
142
|
+
|
|
143
|
+
- Changed: Match ES6 function arrows (`=>`) as an operator, instead of its own
|
|
144
|
+
category (“functionArrow”), for simplicity. (Backwards-incompatible change.)
|
|
145
|
+
- Added: ES6 splats (`...`) are now matched as an operator (instead of three
|
|
146
|
+
punctuations). (Backwards-incompatible change.)
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
### Version 0.1.0 (2014-03-08) ###
|
|
150
|
+
|
|
151
|
+
- Initial release.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2014, 2015, 2016, 2017, 2018 Simon Lydell
|
|
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,240 @@
|
|
|
1
|
+
Overview [](https://travis-ci.org/lydell/js-tokens)
|
|
2
|
+
========
|
|
3
|
+
|
|
4
|
+
A regex that tokenizes JavaScript.
|
|
5
|
+
|
|
6
|
+
```js
|
|
7
|
+
var jsTokens = require("js-tokens").default
|
|
8
|
+
|
|
9
|
+
var jsString = "var foo=opts.foo;\n..."
|
|
10
|
+
|
|
11
|
+
jsString.match(jsTokens)
|
|
12
|
+
// ["var", " ", "foo", "=", "opts", ".", "foo", ";", "\n", ...]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
Installation
|
|
17
|
+
============
|
|
18
|
+
|
|
19
|
+
`npm install js-tokens`
|
|
20
|
+
|
|
21
|
+
```js
|
|
22
|
+
import jsTokens from "js-tokens"
|
|
23
|
+
// or:
|
|
24
|
+
var jsTokens = require("js-tokens").default
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
Usage
|
|
29
|
+
=====
|
|
30
|
+
|
|
31
|
+
### `jsTokens` ###
|
|
32
|
+
|
|
33
|
+
A regex with the `g` flag that matches JavaScript tokens.
|
|
34
|
+
|
|
35
|
+
The regex _always_ matches, even invalid JavaScript and the empty string.
|
|
36
|
+
|
|
37
|
+
The next match is always directly after the previous.
|
|
38
|
+
|
|
39
|
+
### `var token = matchToToken(match)` ###
|
|
40
|
+
|
|
41
|
+
```js
|
|
42
|
+
import {matchToToken} from "js-tokens"
|
|
43
|
+
// or:
|
|
44
|
+
var matchToToken = require("js-tokens").matchToToken
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Takes a `match` returned by `jsTokens.exec(string)`, and returns a `{type:
|
|
48
|
+
String, value: String}` object. The following types are available:
|
|
49
|
+
|
|
50
|
+
- string
|
|
51
|
+
- comment
|
|
52
|
+
- regex
|
|
53
|
+
- number
|
|
54
|
+
- name
|
|
55
|
+
- punctuator
|
|
56
|
+
- whitespace
|
|
57
|
+
- invalid
|
|
58
|
+
|
|
59
|
+
Multi-line comments and strings also have a `closed` property indicating if the
|
|
60
|
+
token was closed or not (see below).
|
|
61
|
+
|
|
62
|
+
Comments and strings both come in several flavors. To distinguish them, check if
|
|
63
|
+
the token starts with `//`, `/*`, `'`, `"` or `` ` ``.
|
|
64
|
+
|
|
65
|
+
Names are ECMAScript IdentifierNames, that is, including both identifiers and
|
|
66
|
+
keywords. You may use [is-keyword-js] to tell them apart.
|
|
67
|
+
|
|
68
|
+
Whitespace includes both line terminators and other whitespace.
|
|
69
|
+
|
|
70
|
+
[is-keyword-js]: https://github.com/crissdev/is-keyword-js
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
ECMAScript support
|
|
74
|
+
==================
|
|
75
|
+
|
|
76
|
+
The intention is to always support the latest ECMAScript version whose feature
|
|
77
|
+
set has been finalized.
|
|
78
|
+
|
|
79
|
+
If adding support for a newer version requires changes, a new version with a
|
|
80
|
+
major verion bump will be released.
|
|
81
|
+
|
|
82
|
+
Currently, ECMAScript 2018 is supported.
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
Invalid code handling
|
|
86
|
+
=====================
|
|
87
|
+
|
|
88
|
+
Unterminated strings are still matched as strings. JavaScript strings cannot
|
|
89
|
+
contain (unescaped) newlines, so unterminated strings simply end at the end of
|
|
90
|
+
the line. Unterminated template strings can contain unescaped newlines, though,
|
|
91
|
+
so they go on to the end of input.
|
|
92
|
+
|
|
93
|
+
Unterminated multi-line comments are also still matched as comments. They
|
|
94
|
+
simply go on to the end of the input.
|
|
95
|
+
|
|
96
|
+
Unterminated regex literals are likely matched as division and whatever is
|
|
97
|
+
inside the regex.
|
|
98
|
+
|
|
99
|
+
Invalid ASCII characters have their own capturing group.
|
|
100
|
+
|
|
101
|
+
Invalid non-ASCII characters are treated as names, to simplify the matching of
|
|
102
|
+
names (except unicode spaces which are treated as whitespace). Note: See also
|
|
103
|
+
the [ES2018](#es2018) section.
|
|
104
|
+
|
|
105
|
+
Regex literals may contain invalid regex syntax. They are still matched as
|
|
106
|
+
regex literals. They may also contain repeated regex flags, to keep the regex
|
|
107
|
+
simple.
|
|
108
|
+
|
|
109
|
+
Strings may contain invalid escape sequences.
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
Limitations
|
|
113
|
+
===========
|
|
114
|
+
|
|
115
|
+
Tokenizing JavaScript using regexes—in fact, _one single regex_—won’t be
|
|
116
|
+
perfect. But that’s not the point either.
|
|
117
|
+
|
|
118
|
+
You may compare jsTokens with [esprima] by using `esprima-compare.js`.
|
|
119
|
+
See `npm run esprima-compare`!
|
|
120
|
+
|
|
121
|
+
[esprima]: http://esprima.org/
|
|
122
|
+
|
|
123
|
+
### Template string interpolation ###
|
|
124
|
+
|
|
125
|
+
Template strings are matched as single tokens, from the starting `` ` `` to the
|
|
126
|
+
ending `` ` ``, including interpolations (whose tokens are not matched
|
|
127
|
+
individually).
|
|
128
|
+
|
|
129
|
+
Matching template string interpolations requires recursive balancing of `{` and
|
|
130
|
+
`}`—something that JavaScript regexes cannot do. Only one level of nesting is
|
|
131
|
+
supported.
|
|
132
|
+
|
|
133
|
+
### Division and regex literals collision ###
|
|
134
|
+
|
|
135
|
+
Consider this example:
|
|
136
|
+
|
|
137
|
+
```js
|
|
138
|
+
var g = 9.82
|
|
139
|
+
var number = bar / 2/g
|
|
140
|
+
|
|
141
|
+
var regex = / 2/g
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
A human can easily understand that in the `number` line we’re dealing with
|
|
145
|
+
division, and in the `regex` line we’re dealing with a regex literal. How come?
|
|
146
|
+
Because humans can look at the whole code to put the `/` characters in context.
|
|
147
|
+
A JavaScript regex cannot. It only sees forwards. (Well, ES2018 regexes can also
|
|
148
|
+
look backwards. See the [ES2018](#es2018) section).
|
|
149
|
+
|
|
150
|
+
When the `jsTokens` regex scans throught the above, it will see the following
|
|
151
|
+
at the end of both the `number` and `regex` rows:
|
|
152
|
+
|
|
153
|
+
```js
|
|
154
|
+
/ 2/g
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
It is then impossible to know if that is a regex literal, or part of an
|
|
158
|
+
expression dealing with division.
|
|
159
|
+
|
|
160
|
+
Here is a similar case:
|
|
161
|
+
|
|
162
|
+
```js
|
|
163
|
+
foo /= 2/g
|
|
164
|
+
foo(/= 2/g)
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
The first line divides the `foo` variable with `2/g`. The second line calls the
|
|
168
|
+
`foo` function with the regex literal `/= 2/g`. Again, since `jsTokens` only
|
|
169
|
+
sees forwards, it cannot tell the two cases apart.
|
|
170
|
+
|
|
171
|
+
There are some cases where we _can_ tell division and regex literals apart,
|
|
172
|
+
though.
|
|
173
|
+
|
|
174
|
+
First off, we have the simple cases where there’s only one slash in the line:
|
|
175
|
+
|
|
176
|
+
```js
|
|
177
|
+
var foo = 2/g
|
|
178
|
+
foo /= 2
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
Regex literals cannot contain newlines, so the above cases are correctly
|
|
182
|
+
identified as division. Things are only problematic when there are more than
|
|
183
|
+
one non-comment slash in a single line.
|
|
184
|
+
|
|
185
|
+
Secondly, not every character is a valid regex flag.
|
|
186
|
+
|
|
187
|
+
```js
|
|
188
|
+
var number = bar / 2/e
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
The above example is also correctly identified as division, because `e` is not a
|
|
192
|
+
valid regex flag. I initially wanted to future-proof by allowing `[a-zA-Z]*`
|
|
193
|
+
(any letter) as flags, but it is not worth it since it increases the amount of
|
|
194
|
+
ambigous cases. So only the standard `g`, `m`, `i`, `y` and `u` flags are
|
|
195
|
+
allowed. This means that the above example will be identified as division as
|
|
196
|
+
long as you don’t rename the `e` variable to some permutation of `gmiyus` 1 to 6
|
|
197
|
+
characters long.
|
|
198
|
+
|
|
199
|
+
Lastly, we can look _forward_ for information.
|
|
200
|
+
|
|
201
|
+
- If the token following what looks like a regex literal is not valid after a
|
|
202
|
+
regex literal, but is valid in a division expression, then the regex literal
|
|
203
|
+
is treated as division instead. For example, a flagless regex cannot be
|
|
204
|
+
followed by a string, number or name, but all of those three can be the
|
|
205
|
+
denominator of a division.
|
|
206
|
+
- Generally, if what looks like a regex literal is followed by an operator, the
|
|
207
|
+
regex literal is treated as division instead. This is because regexes are
|
|
208
|
+
seldomly used with operators (such as `+`, `*`, `&&` and `==`), but division
|
|
209
|
+
could likely be part of such an expression.
|
|
210
|
+
|
|
211
|
+
Please consult the regex source and the test cases for precise information on
|
|
212
|
+
when regex or division is matched (should you need to know). In short, you
|
|
213
|
+
could sum it up as:
|
|
214
|
+
|
|
215
|
+
If the end of a statement looks like a regex literal (even if it isn’t), it
|
|
216
|
+
will be treated as one. Otherwise it should work as expected (if you write sane
|
|
217
|
+
code).
|
|
218
|
+
|
|
219
|
+
### ES2018 ###
|
|
220
|
+
|
|
221
|
+
ES2018 added some nice regex improvements to the language.
|
|
222
|
+
|
|
223
|
+
- [Unicode property escapes] should allow telling names and invalid non-ASCII
|
|
224
|
+
characters apart without blowing up the regex size.
|
|
225
|
+
- [Lookbehind assertions] should allow matching telling division and regex
|
|
226
|
+
literals apart in more cases.
|
|
227
|
+
- [Named capture groups] might simplify some things.
|
|
228
|
+
|
|
229
|
+
These things would be nice to do, but are not critical. They probably have to
|
|
230
|
+
wait until the oldest maintained Node.js LTS release supports those features.
|
|
231
|
+
|
|
232
|
+
[Unicode property escapes]: http://2ality.com/2017/07/regexp-unicode-property-escapes.html
|
|
233
|
+
[Lookbehind assertions]: http://2ality.com/2017/05/regexp-lookbehind-assertions.html
|
|
234
|
+
[Named capture groups]: http://2ality.com/2017/05/regexp-named-capture-groups.html
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
License
|
|
238
|
+
=======
|
|
239
|
+
|
|
240
|
+
[MIT](LICENSE).
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// Copyright 2014, 2015, 2016, 2017, 2018 Simon Lydell
|
|
2
|
+
// License: MIT. (See LICENSE.)
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
})
|
|
7
|
+
|
|
8
|
+
// This regex comes from regex.coffee, and is inserted here by generate-index.js
|
|
9
|
+
// (run `npm run build`).
|
|
10
|
+
exports.default = /((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g
|
|
11
|
+
|
|
12
|
+
exports.matchToToken = function(match) {
|
|
13
|
+
var token = {type: "invalid", value: match[0], closed: undefined}
|
|
14
|
+
if (match[ 1]) token.type = "string" , token.closed = !!(match[3] || match[4])
|
|
15
|
+
else if (match[ 5]) token.type = "comment"
|
|
16
|
+
else if (match[ 6]) token.type = "comment", token.closed = !!match[7]
|
|
17
|
+
else if (match[ 8]) token.type = "regex"
|
|
18
|
+
else if (match[ 9]) token.type = "number"
|
|
19
|
+
else if (match[10]) token.type = "name"
|
|
20
|
+
else if (match[11]) token.type = "punctuator"
|
|
21
|
+
else if (match[12]) token.type = "whitespace"
|
|
22
|
+
return token
|
|
23
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "js-tokens",
|
|
3
|
+
"version": "4.0.0",
|
|
4
|
+
"author": "Simon Lydell",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"description": "A regex that tokenizes JavaScript.",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"JavaScript",
|
|
9
|
+
"js",
|
|
10
|
+
"token",
|
|
11
|
+
"tokenize",
|
|
12
|
+
"regex"
|
|
13
|
+
],
|
|
14
|
+
"files": [
|
|
15
|
+
"index.js"
|
|
16
|
+
],
|
|
17
|
+
"repository": "lydell/js-tokens",
|
|
18
|
+
"scripts": {
|
|
19
|
+
"test": "mocha --ui tdd",
|
|
20
|
+
"esprima-compare": "node esprima-compare ./index.js everything.js/es5.js",
|
|
21
|
+
"build": "node generate-index.js",
|
|
22
|
+
"dev": "npm run build && npm test"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"coffeescript": "2.1.1",
|
|
26
|
+
"esprima": "4.0.0",
|
|
27
|
+
"everything.js": "1.0.3",
|
|
28
|
+
"mocha": "5.0.0"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2014-present, Jon Schlinkert.
|
|
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.
|