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,467 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const util = require('util');
|
|
4
|
+
const braces = require('braces');
|
|
5
|
+
const picomatch = require('picomatch');
|
|
6
|
+
const utils = require('picomatch/lib/utils');
|
|
7
|
+
const isEmptyString = val => val === '' || val === './';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Returns an array of strings that match one or more glob patterns.
|
|
11
|
+
*
|
|
12
|
+
* ```js
|
|
13
|
+
* const mm = require('micromatch');
|
|
14
|
+
* // mm(list, patterns[, options]);
|
|
15
|
+
*
|
|
16
|
+
* console.log(mm(['a.js', 'a.txt'], ['*.js']));
|
|
17
|
+
* //=> [ 'a.js' ]
|
|
18
|
+
* ```
|
|
19
|
+
* @param {String|Array<string>} `list` List of strings to match.
|
|
20
|
+
* @param {String|Array<string>} `patterns` One or more glob patterns to use for matching.
|
|
21
|
+
* @param {Object} `options` See available [options](#options)
|
|
22
|
+
* @return {Array} Returns an array of matches
|
|
23
|
+
* @summary false
|
|
24
|
+
* @api public
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
const micromatch = (list, patterns, options) => {
|
|
28
|
+
patterns = [].concat(patterns);
|
|
29
|
+
list = [].concat(list);
|
|
30
|
+
|
|
31
|
+
let omit = new Set();
|
|
32
|
+
let keep = new Set();
|
|
33
|
+
let items = new Set();
|
|
34
|
+
let negatives = 0;
|
|
35
|
+
|
|
36
|
+
let onResult = state => {
|
|
37
|
+
items.add(state.output);
|
|
38
|
+
if (options && options.onResult) {
|
|
39
|
+
options.onResult(state);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
for (let i = 0; i < patterns.length; i++) {
|
|
44
|
+
let isMatch = picomatch(String(patterns[i]), { ...options, onResult }, true);
|
|
45
|
+
let negated = isMatch.state.negated || isMatch.state.negatedExtglob;
|
|
46
|
+
if (negated) negatives++;
|
|
47
|
+
|
|
48
|
+
for (let item of list) {
|
|
49
|
+
let matched = isMatch(item, true);
|
|
50
|
+
|
|
51
|
+
let match = negated ? !matched.isMatch : matched.isMatch;
|
|
52
|
+
if (!match) continue;
|
|
53
|
+
|
|
54
|
+
if (negated) {
|
|
55
|
+
omit.add(matched.output);
|
|
56
|
+
} else {
|
|
57
|
+
omit.delete(matched.output);
|
|
58
|
+
keep.add(matched.output);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
let result = negatives === patterns.length ? [...items] : [...keep];
|
|
64
|
+
let matches = result.filter(item => !omit.has(item));
|
|
65
|
+
|
|
66
|
+
if (options && matches.length === 0) {
|
|
67
|
+
if (options.failglob === true) {
|
|
68
|
+
throw new Error(`No matches found for "${patterns.join(', ')}"`);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
if (options.nonull === true || options.nullglob === true) {
|
|
72
|
+
return options.unescape ? patterns.map(p => p.replace(/\\/g, '')) : patterns;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
return matches;
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Backwards compatibility
|
|
81
|
+
*/
|
|
82
|
+
|
|
83
|
+
micromatch.match = micromatch;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Returns a matcher function from the given glob `pattern` and `options`.
|
|
87
|
+
* The returned function takes a string to match as its only argument and returns
|
|
88
|
+
* true if the string is a match.
|
|
89
|
+
*
|
|
90
|
+
* ```js
|
|
91
|
+
* const mm = require('micromatch');
|
|
92
|
+
* // mm.matcher(pattern[, options]);
|
|
93
|
+
*
|
|
94
|
+
* const isMatch = mm.matcher('*.!(*a)');
|
|
95
|
+
* console.log(isMatch('a.a')); //=> false
|
|
96
|
+
* console.log(isMatch('a.b')); //=> true
|
|
97
|
+
* ```
|
|
98
|
+
* @param {String} `pattern` Glob pattern
|
|
99
|
+
* @param {Object} `options`
|
|
100
|
+
* @return {Function} Returns a matcher function.
|
|
101
|
+
* @api public
|
|
102
|
+
*/
|
|
103
|
+
|
|
104
|
+
micromatch.matcher = (pattern, options) => picomatch(pattern, options);
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Returns true if **any** of the given glob `patterns` match the specified `string`.
|
|
108
|
+
*
|
|
109
|
+
* ```js
|
|
110
|
+
* const mm = require('micromatch');
|
|
111
|
+
* // mm.isMatch(string, patterns[, options]);
|
|
112
|
+
*
|
|
113
|
+
* console.log(mm.isMatch('a.a', ['b.*', '*.a'])); //=> true
|
|
114
|
+
* console.log(mm.isMatch('a.a', 'b.*')); //=> false
|
|
115
|
+
* ```
|
|
116
|
+
* @param {String} `str` The string to test.
|
|
117
|
+
* @param {String|Array} `patterns` One or more glob patterns to use for matching.
|
|
118
|
+
* @param {Object} `[options]` See available [options](#options).
|
|
119
|
+
* @return {Boolean} Returns true if any patterns match `str`
|
|
120
|
+
* @api public
|
|
121
|
+
*/
|
|
122
|
+
|
|
123
|
+
micromatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Backwards compatibility
|
|
127
|
+
*/
|
|
128
|
+
|
|
129
|
+
micromatch.any = micromatch.isMatch;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Returns a list of strings that _**do not match any**_ of the given `patterns`.
|
|
133
|
+
*
|
|
134
|
+
* ```js
|
|
135
|
+
* const mm = require('micromatch');
|
|
136
|
+
* // mm.not(list, patterns[, options]);
|
|
137
|
+
*
|
|
138
|
+
* console.log(mm.not(['a.a', 'b.b', 'c.c'], '*.a'));
|
|
139
|
+
* //=> ['b.b', 'c.c']
|
|
140
|
+
* ```
|
|
141
|
+
* @param {Array} `list` Array of strings to match.
|
|
142
|
+
* @param {String|Array} `patterns` One or more glob pattern to use for matching.
|
|
143
|
+
* @param {Object} `options` See available [options](#options) for changing how matches are performed
|
|
144
|
+
* @return {Array} Returns an array of strings that **do not match** the given patterns.
|
|
145
|
+
* @api public
|
|
146
|
+
*/
|
|
147
|
+
|
|
148
|
+
micromatch.not = (list, patterns, options = {}) => {
|
|
149
|
+
patterns = [].concat(patterns).map(String);
|
|
150
|
+
let result = new Set();
|
|
151
|
+
let items = [];
|
|
152
|
+
|
|
153
|
+
let onResult = state => {
|
|
154
|
+
if (options.onResult) options.onResult(state);
|
|
155
|
+
items.push(state.output);
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
let matches = new Set(micromatch(list, patterns, { ...options, onResult }));
|
|
159
|
+
|
|
160
|
+
for (let item of items) {
|
|
161
|
+
if (!matches.has(item)) {
|
|
162
|
+
result.add(item);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
return [...result];
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Returns true if the given `string` contains the given pattern. Similar
|
|
170
|
+
* to [.isMatch](#isMatch) but the pattern can match any part of the string.
|
|
171
|
+
*
|
|
172
|
+
* ```js
|
|
173
|
+
* var mm = require('micromatch');
|
|
174
|
+
* // mm.contains(string, pattern[, options]);
|
|
175
|
+
*
|
|
176
|
+
* console.log(mm.contains('aa/bb/cc', '*b'));
|
|
177
|
+
* //=> true
|
|
178
|
+
* console.log(mm.contains('aa/bb/cc', '*d'));
|
|
179
|
+
* //=> false
|
|
180
|
+
* ```
|
|
181
|
+
* @param {String} `str` The string to match.
|
|
182
|
+
* @param {String|Array} `patterns` Glob pattern to use for matching.
|
|
183
|
+
* @param {Object} `options` See available [options](#options) for changing how matches are performed
|
|
184
|
+
* @return {Boolean} Returns true if any of the patterns matches any part of `str`.
|
|
185
|
+
* @api public
|
|
186
|
+
*/
|
|
187
|
+
|
|
188
|
+
micromatch.contains = (str, pattern, options) => {
|
|
189
|
+
if (typeof str !== 'string') {
|
|
190
|
+
throw new TypeError(`Expected a string: "${util.inspect(str)}"`);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
if (Array.isArray(pattern)) {
|
|
194
|
+
return pattern.some(p => micromatch.contains(str, p, options));
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
if (typeof pattern === 'string') {
|
|
198
|
+
if (isEmptyString(str) || isEmptyString(pattern)) {
|
|
199
|
+
return false;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
if (str.includes(pattern) || (str.startsWith('./') && str.slice(2).includes(pattern))) {
|
|
203
|
+
return true;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
return micromatch.isMatch(str, pattern, { ...options, contains: true });
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Filter the keys of the given object with the given `glob` pattern
|
|
212
|
+
* and `options`. Does not attempt to match nested keys. If you need this feature,
|
|
213
|
+
* use [glob-object][] instead.
|
|
214
|
+
*
|
|
215
|
+
* ```js
|
|
216
|
+
* const mm = require('micromatch');
|
|
217
|
+
* // mm.matchKeys(object, patterns[, options]);
|
|
218
|
+
*
|
|
219
|
+
* const obj = { aa: 'a', ab: 'b', ac: 'c' };
|
|
220
|
+
* console.log(mm.matchKeys(obj, '*b'));
|
|
221
|
+
* //=> { ab: 'b' }
|
|
222
|
+
* ```
|
|
223
|
+
* @param {Object} `object` The object with keys to filter.
|
|
224
|
+
* @param {String|Array} `patterns` One or more glob patterns to use for matching.
|
|
225
|
+
* @param {Object} `options` See available [options](#options) for changing how matches are performed
|
|
226
|
+
* @return {Object} Returns an object with only keys that match the given patterns.
|
|
227
|
+
* @api public
|
|
228
|
+
*/
|
|
229
|
+
|
|
230
|
+
micromatch.matchKeys = (obj, patterns, options) => {
|
|
231
|
+
if (!utils.isObject(obj)) {
|
|
232
|
+
throw new TypeError('Expected the first argument to be an object');
|
|
233
|
+
}
|
|
234
|
+
let keys = micromatch(Object.keys(obj), patterns, options);
|
|
235
|
+
let res = {};
|
|
236
|
+
for (let key of keys) res[key] = obj[key];
|
|
237
|
+
return res;
|
|
238
|
+
};
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* Returns true if some of the strings in the given `list` match any of the given glob `patterns`.
|
|
242
|
+
*
|
|
243
|
+
* ```js
|
|
244
|
+
* const mm = require('micromatch');
|
|
245
|
+
* // mm.some(list, patterns[, options]);
|
|
246
|
+
*
|
|
247
|
+
* console.log(mm.some(['foo.js', 'bar.js'], ['*.js', '!foo.js']));
|
|
248
|
+
* // true
|
|
249
|
+
* console.log(mm.some(['foo.js'], ['*.js', '!foo.js']));
|
|
250
|
+
* // false
|
|
251
|
+
* ```
|
|
252
|
+
* @param {String|Array} `list` The string or array of strings to test. Returns as soon as the first match is found.
|
|
253
|
+
* @param {String|Array} `patterns` One or more glob patterns to use for matching.
|
|
254
|
+
* @param {Object} `options` See available [options](#options) for changing how matches are performed
|
|
255
|
+
* @return {Boolean} Returns true if any `patterns` matches any of the strings in `list`
|
|
256
|
+
* @api public
|
|
257
|
+
*/
|
|
258
|
+
|
|
259
|
+
micromatch.some = (list, patterns, options) => {
|
|
260
|
+
let items = [].concat(list);
|
|
261
|
+
|
|
262
|
+
for (let pattern of [].concat(patterns)) {
|
|
263
|
+
let isMatch = picomatch(String(pattern), options);
|
|
264
|
+
if (items.some(item => isMatch(item))) {
|
|
265
|
+
return true;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
return false;
|
|
269
|
+
};
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* Returns true if every string in the given `list` matches
|
|
273
|
+
* any of the given glob `patterns`.
|
|
274
|
+
*
|
|
275
|
+
* ```js
|
|
276
|
+
* const mm = require('micromatch');
|
|
277
|
+
* // mm.every(list, patterns[, options]);
|
|
278
|
+
*
|
|
279
|
+
* console.log(mm.every('foo.js', ['foo.js']));
|
|
280
|
+
* // true
|
|
281
|
+
* console.log(mm.every(['foo.js', 'bar.js'], ['*.js']));
|
|
282
|
+
* // true
|
|
283
|
+
* console.log(mm.every(['foo.js', 'bar.js'], ['*.js', '!foo.js']));
|
|
284
|
+
* // false
|
|
285
|
+
* console.log(mm.every(['foo.js'], ['*.js', '!foo.js']));
|
|
286
|
+
* // false
|
|
287
|
+
* ```
|
|
288
|
+
* @param {String|Array} `list` The string or array of strings to test.
|
|
289
|
+
* @param {String|Array} `patterns` One or more glob patterns to use for matching.
|
|
290
|
+
* @param {Object} `options` See available [options](#options) for changing how matches are performed
|
|
291
|
+
* @return {Boolean} Returns true if all `patterns` matches all of the strings in `list`
|
|
292
|
+
* @api public
|
|
293
|
+
*/
|
|
294
|
+
|
|
295
|
+
micromatch.every = (list, patterns, options) => {
|
|
296
|
+
let items = [].concat(list);
|
|
297
|
+
|
|
298
|
+
for (let pattern of [].concat(patterns)) {
|
|
299
|
+
let isMatch = picomatch(String(pattern), options);
|
|
300
|
+
if (!items.every(item => isMatch(item))) {
|
|
301
|
+
return false;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
return true;
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* Returns true if **all** of the given `patterns` match
|
|
309
|
+
* the specified string.
|
|
310
|
+
*
|
|
311
|
+
* ```js
|
|
312
|
+
* const mm = require('micromatch');
|
|
313
|
+
* // mm.all(string, patterns[, options]);
|
|
314
|
+
*
|
|
315
|
+
* console.log(mm.all('foo.js', ['foo.js']));
|
|
316
|
+
* // true
|
|
317
|
+
*
|
|
318
|
+
* console.log(mm.all('foo.js', ['*.js', '!foo.js']));
|
|
319
|
+
* // false
|
|
320
|
+
*
|
|
321
|
+
* console.log(mm.all('foo.js', ['*.js', 'foo.js']));
|
|
322
|
+
* // true
|
|
323
|
+
*
|
|
324
|
+
* console.log(mm.all('foo.js', ['*.js', 'f*', '*o*', '*o.js']));
|
|
325
|
+
* // true
|
|
326
|
+
* ```
|
|
327
|
+
* @param {String|Array} `str` The string to test.
|
|
328
|
+
* @param {String|Array} `patterns` One or more glob patterns to use for matching.
|
|
329
|
+
* @param {Object} `options` See available [options](#options) for changing how matches are performed
|
|
330
|
+
* @return {Boolean} Returns true if any patterns match `str`
|
|
331
|
+
* @api public
|
|
332
|
+
*/
|
|
333
|
+
|
|
334
|
+
micromatch.all = (str, patterns, options) => {
|
|
335
|
+
if (typeof str !== 'string') {
|
|
336
|
+
throw new TypeError(`Expected a string: "${util.inspect(str)}"`);
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
return [].concat(patterns).every(p => picomatch(p, options)(str));
|
|
340
|
+
};
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* Returns an array of matches captured by `pattern` in `string, or `null` if the pattern did not match.
|
|
344
|
+
*
|
|
345
|
+
* ```js
|
|
346
|
+
* const mm = require('micromatch');
|
|
347
|
+
* // mm.capture(pattern, string[, options]);
|
|
348
|
+
*
|
|
349
|
+
* console.log(mm.capture('test/*.js', 'test/foo.js'));
|
|
350
|
+
* //=> ['foo']
|
|
351
|
+
* console.log(mm.capture('test/*.js', 'foo/bar.css'));
|
|
352
|
+
* //=> null
|
|
353
|
+
* ```
|
|
354
|
+
* @param {String} `glob` Glob pattern to use for matching.
|
|
355
|
+
* @param {String} `input` String to match
|
|
356
|
+
* @param {Object} `options` See available [options](#options) for changing how matches are performed
|
|
357
|
+
* @return {Array|null} Returns an array of captures if the input matches the glob pattern, otherwise `null`.
|
|
358
|
+
* @api public
|
|
359
|
+
*/
|
|
360
|
+
|
|
361
|
+
micromatch.capture = (glob, input, options) => {
|
|
362
|
+
let posix = utils.isWindows(options);
|
|
363
|
+
let regex = picomatch.makeRe(String(glob), { ...options, capture: true });
|
|
364
|
+
let match = regex.exec(posix ? utils.toPosixSlashes(input) : input);
|
|
365
|
+
|
|
366
|
+
if (match) {
|
|
367
|
+
return match.slice(1).map(v => v === void 0 ? '' : v);
|
|
368
|
+
}
|
|
369
|
+
};
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* Create a regular expression from the given glob `pattern`.
|
|
373
|
+
*
|
|
374
|
+
* ```js
|
|
375
|
+
* const mm = require('micromatch');
|
|
376
|
+
* // mm.makeRe(pattern[, options]);
|
|
377
|
+
*
|
|
378
|
+
* console.log(mm.makeRe('*.js'));
|
|
379
|
+
* //=> /^(?:(\.[\\\/])?(?!\.)(?=.)[^\/]*?\.js)$/
|
|
380
|
+
* ```
|
|
381
|
+
* @param {String} `pattern` A glob pattern to convert to regex.
|
|
382
|
+
* @param {Object} `options`
|
|
383
|
+
* @return {RegExp} Returns a regex created from the given pattern.
|
|
384
|
+
* @api public
|
|
385
|
+
*/
|
|
386
|
+
|
|
387
|
+
micromatch.makeRe = (...args) => picomatch.makeRe(...args);
|
|
388
|
+
|
|
389
|
+
/**
|
|
390
|
+
* Scan a glob pattern to separate the pattern into segments. Used
|
|
391
|
+
* by the [split](#split) method.
|
|
392
|
+
*
|
|
393
|
+
* ```js
|
|
394
|
+
* const mm = require('micromatch');
|
|
395
|
+
* const state = mm.scan(pattern[, options]);
|
|
396
|
+
* ```
|
|
397
|
+
* @param {String} `pattern`
|
|
398
|
+
* @param {Object} `options`
|
|
399
|
+
* @return {Object} Returns an object with
|
|
400
|
+
* @api public
|
|
401
|
+
*/
|
|
402
|
+
|
|
403
|
+
micromatch.scan = (...args) => picomatch.scan(...args);
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* Parse a glob pattern to create the source string for a regular
|
|
407
|
+
* expression.
|
|
408
|
+
*
|
|
409
|
+
* ```js
|
|
410
|
+
* const mm = require('micromatch');
|
|
411
|
+
* const state = mm.parse(pattern[, options]);
|
|
412
|
+
* ```
|
|
413
|
+
* @param {String} `glob`
|
|
414
|
+
* @param {Object} `options`
|
|
415
|
+
* @return {Object} Returns an object with useful properties and output to be used as regex source string.
|
|
416
|
+
* @api public
|
|
417
|
+
*/
|
|
418
|
+
|
|
419
|
+
micromatch.parse = (patterns, options) => {
|
|
420
|
+
let res = [];
|
|
421
|
+
for (let pattern of [].concat(patterns || [])) {
|
|
422
|
+
for (let str of braces(String(pattern), options)) {
|
|
423
|
+
res.push(picomatch.parse(str, options));
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
return res;
|
|
427
|
+
};
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* Process the given brace `pattern`.
|
|
431
|
+
*
|
|
432
|
+
* ```js
|
|
433
|
+
* const { braces } = require('micromatch');
|
|
434
|
+
* console.log(braces('foo/{a,b,c}/bar'));
|
|
435
|
+
* //=> [ 'foo/(a|b|c)/bar' ]
|
|
436
|
+
*
|
|
437
|
+
* console.log(braces('foo/{a,b,c}/bar', { expand: true }));
|
|
438
|
+
* //=> [ 'foo/a/bar', 'foo/b/bar', 'foo/c/bar' ]
|
|
439
|
+
* ```
|
|
440
|
+
* @param {String} `pattern` String with brace pattern to process.
|
|
441
|
+
* @param {Object} `options` Any [options](#options) to change how expansion is performed. See the [braces][] library for all available options.
|
|
442
|
+
* @return {Array}
|
|
443
|
+
* @api public
|
|
444
|
+
*/
|
|
445
|
+
|
|
446
|
+
micromatch.braces = (pattern, options) => {
|
|
447
|
+
if (typeof pattern !== 'string') throw new TypeError('Expected a string');
|
|
448
|
+
if ((options && options.nobrace === true) || !/\{.*\}/.test(pattern)) {
|
|
449
|
+
return [pattern];
|
|
450
|
+
}
|
|
451
|
+
return braces(pattern, options);
|
|
452
|
+
};
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* Expand braces
|
|
456
|
+
*/
|
|
457
|
+
|
|
458
|
+
micromatch.braceExpand = (pattern, options) => {
|
|
459
|
+
if (typeof pattern !== 'string') throw new TypeError('Expected a string');
|
|
460
|
+
return micromatch.braces(pattern, { ...options, expand: true });
|
|
461
|
+
};
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* Expose micromatch
|
|
465
|
+
*/
|
|
466
|
+
|
|
467
|
+
module.exports = micromatch;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "micromatch",
|
|
3
|
+
"description": "Glob matching for javascript/node.js. A replacement and faster alternative to minimatch and multimatch.",
|
|
4
|
+
"version": "4.0.7",
|
|
5
|
+
"homepage": "https://github.com/micromatch/micromatch",
|
|
6
|
+
"author": "Jon Schlinkert (https://github.com/jonschlinkert)",
|
|
7
|
+
"contributors": [
|
|
8
|
+
"(https://github.com/DianeLooney)",
|
|
9
|
+
"Amila Welihinda (amilajack.com)",
|
|
10
|
+
"Bogdan Chadkin (https://github.com/TrySound)",
|
|
11
|
+
"Brian Woodward (https://twitter.com/doowb)",
|
|
12
|
+
"Devon Govett (http://badassjs.com)",
|
|
13
|
+
"Elan Shanker (https://github.com/es128)",
|
|
14
|
+
"Fabrício Matté (https://ultcombo.js.org)",
|
|
15
|
+
"Jon Schlinkert (http://twitter.com/jonschlinkert)",
|
|
16
|
+
"Martin Kolárik (https://kolarik.sk)",
|
|
17
|
+
"Olsten Larck (https://i.am.charlike.online)",
|
|
18
|
+
"Paul Miller (paulmillr.com)",
|
|
19
|
+
"Tom Byrer (https://github.com/tomByrer)",
|
|
20
|
+
"Tyler Akins (http://rumkin.com)",
|
|
21
|
+
"Peter Bright <drpizza@quiscalusmexicanus.org> (https://github.com/drpizza)",
|
|
22
|
+
"Kuba Juszczyk (https://github.com/ku8ar)"
|
|
23
|
+
],
|
|
24
|
+
"repository": "micromatch/micromatch",
|
|
25
|
+
"bugs": {
|
|
26
|
+
"url": "https://github.com/micromatch/micromatch/issues"
|
|
27
|
+
},
|
|
28
|
+
"license": "MIT",
|
|
29
|
+
"files": ["index.js"],
|
|
30
|
+
"main": "index.js",
|
|
31
|
+
"engines": {
|
|
32
|
+
"node": ">=8.6"
|
|
33
|
+
},
|
|
34
|
+
"scripts": {
|
|
35
|
+
"test": "mocha"
|
|
36
|
+
},
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"braces": "^3.0.3",
|
|
39
|
+
"picomatch": "^2.3.1"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"fill-range": "^7.0.1",
|
|
43
|
+
"gulp-format-md": "^2.0.0",
|
|
44
|
+
"minimatch": "^5.0.1",
|
|
45
|
+
"mocha": "^9.2.2",
|
|
46
|
+
"time-require": "github:jonschlinkert/time-require"
|
|
47
|
+
},
|
|
48
|
+
"keywords": [
|
|
49
|
+
"bash",
|
|
50
|
+
"bracket",
|
|
51
|
+
"character-class",
|
|
52
|
+
"expand",
|
|
53
|
+
"expansion",
|
|
54
|
+
"expression",
|
|
55
|
+
"extglob",
|
|
56
|
+
"extglobs",
|
|
57
|
+
"file",
|
|
58
|
+
"files",
|
|
59
|
+
"filter",
|
|
60
|
+
"find",
|
|
61
|
+
"glob",
|
|
62
|
+
"globbing",
|
|
63
|
+
"globs",
|
|
64
|
+
"globstar",
|
|
65
|
+
"lookahead",
|
|
66
|
+
"lookaround",
|
|
67
|
+
"lookbehind",
|
|
68
|
+
"match",
|
|
69
|
+
"matcher",
|
|
70
|
+
"matches",
|
|
71
|
+
"matching",
|
|
72
|
+
"micromatch",
|
|
73
|
+
"minimatch",
|
|
74
|
+
"multimatch",
|
|
75
|
+
"negate",
|
|
76
|
+
"negation",
|
|
77
|
+
"path",
|
|
78
|
+
"pattern",
|
|
79
|
+
"patterns",
|
|
80
|
+
"posix",
|
|
81
|
+
"regex",
|
|
82
|
+
"regexp",
|
|
83
|
+
"regular",
|
|
84
|
+
"shell",
|
|
85
|
+
"star",
|
|
86
|
+
"wildcard"
|
|
87
|
+
],
|
|
88
|
+
"verb": {
|
|
89
|
+
"toc": "collapsible",
|
|
90
|
+
"layout": "default",
|
|
91
|
+
"tasks": ["readme"],
|
|
92
|
+
"plugins": ["gulp-format-md"],
|
|
93
|
+
"lint": {
|
|
94
|
+
"reflinks": true
|
|
95
|
+
},
|
|
96
|
+
"related": {
|
|
97
|
+
"list": ["braces", "expand-brackets", "extglob", "fill-range", "nanomatch"]
|
|
98
|
+
},
|
|
99
|
+
"reflinks": ["extglob", "fill-range", "glob-object", "minimatch", "multimatch"]
|
|
100
|
+
}
|
|
101
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
ISC License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 Alexey Raspopov, Kostiantyn Denysov, Anton Verinov
|
|
4
|
+
|
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
7
|
+
copyright notice and this permission notice appear in all copies.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
10
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
11
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
12
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
13
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
14
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
15
|
+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# picocolors
|
|
2
|
+
|
|
3
|
+
The tiniest and the fastest library for terminal output formatting with ANSI colors.
|
|
4
|
+
|
|
5
|
+
```javascript
|
|
6
|
+
import pc from "picocolors"
|
|
7
|
+
|
|
8
|
+
console.log(
|
|
9
|
+
pc.green(`How are ${pc.italic(`you`)} doing?`)
|
|
10
|
+
)
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
- **No dependencies.**
|
|
14
|
+
- **14 times** smaller and **2 times** faster than chalk.
|
|
15
|
+
- Used by popular tools like PostCSS, SVGO, Stylelint, and Browserslist.
|
|
16
|
+
- Node.js v6+ & browsers support. Support for both CJS and ESM projects.
|
|
17
|
+
- TypeScript type declarations included.
|
|
18
|
+
- [`NO_COLOR`](https://no-color.org/) friendly.
|
|
19
|
+
|
|
20
|
+
## Docs
|
|
21
|
+
Read **[full docs](https://github.com/alexeyraspopov/picocolors#readme)** on GitHub.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "picocolors",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"main": "./picocolors.js",
|
|
5
|
+
"types": "./picocolors.d.ts",
|
|
6
|
+
"browser": {
|
|
7
|
+
"./picocolors.js": "./picocolors.browser.js"
|
|
8
|
+
},
|
|
9
|
+
"sideEffects": false,
|
|
10
|
+
"description": "The tiniest and the fastest library for terminal output formatting with ANSI colors",
|
|
11
|
+
"files": [
|
|
12
|
+
"picocolors.*",
|
|
13
|
+
"types.ts"
|
|
14
|
+
],
|
|
15
|
+
"keywords": [
|
|
16
|
+
"terminal",
|
|
17
|
+
"colors",
|
|
18
|
+
"formatting",
|
|
19
|
+
"cli",
|
|
20
|
+
"console"
|
|
21
|
+
],
|
|
22
|
+
"author": "Alexey Raspopov",
|
|
23
|
+
"repository": "alexeyraspopov/picocolors",
|
|
24
|
+
"license": "ISC"
|
|
25
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var x=String;
|
|
2
|
+
var create=function() {return {isColorSupported:false,reset:x,bold:x,dim:x,italic:x,underline:x,inverse:x,hidden:x,strikethrough:x,black:x,red:x,green:x,yellow:x,blue:x,magenta:x,cyan:x,white:x,gray:x,bgBlack:x,bgRed:x,bgGreen:x,bgYellow:x,bgBlue:x,bgMagenta:x,bgCyan:x,bgWhite:x}};
|
|
3
|
+
module.exports=create();
|
|
4
|
+
module.exports.createColors = create;
|