mathjs 10.4.1 → 10.4.2
Sign up to get free protection for your applications and to get access to all the features.
- package/HISTORY.md +17 -0
- package/docs/datatypes/units.md +2 -2
- package/docs/reference/functions/format.md +3 -0
- package/examples/node_modules/.bin/acorn +12 -0
- package/examples/node_modules/.bin/acorn.cmd +17 -0
- package/examples/node_modules/.bin/acorn.ps1 +28 -0
- package/examples/node_modules/.bin/browserslist +12 -0
- package/examples/node_modules/.bin/browserslist.cmd +17 -0
- package/examples/node_modules/.bin/browserslist.ps1 +28 -0
- package/examples/node_modules/.bin/envinfo +2 -5
- package/examples/node_modules/.bin/envinfo.cmd +6 -6
- package/examples/node_modules/.bin/envinfo.ps1 +12 -2
- package/examples/node_modules/.bin/import-local-fixture +2 -5
- package/examples/node_modules/.bin/import-local-fixture.cmd +6 -6
- package/examples/node_modules/.bin/import-local-fixture.ps1 +12 -2
- package/examples/node_modules/.bin/node-which +2 -5
- package/examples/node_modules/.bin/node-which.cmd +6 -6
- package/examples/node_modules/.bin/node-which.ps1 +12 -2
- package/examples/node_modules/.bin/resolve +12 -0
- package/examples/node_modules/.bin/resolve.cmd +17 -0
- package/examples/node_modules/.bin/resolve.ps1 +28 -0
- package/examples/node_modules/.bin/terser +12 -0
- package/examples/node_modules/.bin/terser.cmd +17 -0
- package/examples/node_modules/.bin/terser.ps1 +28 -0
- package/examples/node_modules/.bin/webpack +12 -0
- package/examples/node_modules/.bin/webpack-cli +2 -5
- package/examples/node_modules/.bin/webpack-cli.cmd +6 -6
- package/examples/node_modules/.bin/webpack-cli.ps1 +12 -2
- package/examples/node_modules/.bin/webpack.cmd +17 -0
- package/examples/node_modules/.bin/webpack.ps1 +28 -0
- package/examples/node_modules/.package-lock.json +1407 -0
- package/examples/node_modules/@discoveryjs/json-ext/README.md +2 -1
- package/examples/node_modules/@discoveryjs/json-ext/dist/json-ext.js +147 -164
- package/examples/node_modules/@discoveryjs/json-ext/dist/json-ext.min.js +1 -1
- package/examples/node_modules/@discoveryjs/json-ext/dist/version.js +1 -0
- package/examples/node_modules/@discoveryjs/json-ext/index.d.ts +31 -0
- package/examples/node_modules/@discoveryjs/json-ext/package.json +53 -90
- package/examples/node_modules/@discoveryjs/json-ext/src/index.js +1 -1
- package/examples/node_modules/@discoveryjs/json-ext/src/parse-chunked.js +89 -44
- package/examples/node_modules/@discoveryjs/json-ext/src/stringify-info.js +11 -4
- package/examples/node_modules/@discoveryjs/json-ext/src/stringify-stream.js +17 -3
- package/examples/node_modules/@discoveryjs/json-ext/src/utils.js +6 -5
- package/examples/node_modules/@discoveryjs/json-ext/src/version.js +1 -0
- package/examples/node_modules/@types/eslint/LICENSE +21 -0
- package/examples/node_modules/@types/eslint/README.md +16 -0
- package/examples/node_modules/@types/eslint/helpers.d.ts +3 -0
- package/examples/node_modules/@types/eslint/index.d.ts +953 -0
- package/examples/node_modules/@types/eslint/package.json +65 -0
- package/examples/node_modules/@types/eslint/rules/best-practices.d.ts +931 -0
- package/examples/node_modules/@types/eslint/rules/deprecated.d.ts +267 -0
- package/examples/node_modules/@types/eslint/rules/ecmascript-6.d.ts +502 -0
- package/examples/node_modules/@types/eslint/rules/index.d.ts +21 -0
- package/examples/node_modules/@types/eslint/rules/node-commonjs.d.ts +133 -0
- package/examples/node_modules/@types/eslint/rules/possible-errors.d.ts +484 -0
- package/examples/node_modules/@types/eslint/rules/strict-mode.d.ts +11 -0
- package/examples/node_modules/@types/eslint/rules/stylistic-issues.d.ts +1893 -0
- package/examples/node_modules/@types/eslint/rules/variables.d.ts +187 -0
- package/examples/node_modules/@types/eslint/use-at-your-own-risk.d.ts +8 -0
- package/examples/node_modules/@types/eslint-scope/LICENSE +21 -0
- package/examples/node_modules/@types/eslint-scope/README.md +84 -0
- package/examples/node_modules/@types/eslint-scope/index.d.ts +64 -0
- package/examples/node_modules/@types/eslint-scope/package.json +28 -0
- package/examples/node_modules/@types/estree/LICENSE +21 -0
- package/examples/node_modules/@types/estree/README.md +16 -0
- package/examples/node_modules/@types/estree/flow.d.ts +174 -0
- package/examples/node_modules/@types/estree/index.d.ts +595 -0
- package/examples/node_modules/@types/estree/package.json +25 -0
- package/examples/node_modules/@types/json-schema/LICENSE +21 -0
- package/examples/node_modules/@types/json-schema/README.md +16 -0
- package/examples/node_modules/@types/json-schema/index.d.ts +758 -0
- package/examples/node_modules/@types/json-schema/package.json +40 -0
- package/examples/node_modules/@types/node/LICENSE +21 -0
- package/examples/node_modules/@types/node/README.md +16 -0
- package/examples/node_modules/@types/node/assert/strict.d.ts +8 -0
- package/examples/node_modules/@types/node/assert.d.ts +912 -0
- package/examples/node_modules/@types/node/async_hooks.d.ts +501 -0
- package/examples/node_modules/@types/node/buffer.d.ts +2232 -0
- package/examples/node_modules/@types/node/child_process.d.ts +1366 -0
- package/examples/node_modules/@types/node/cluster.d.ts +414 -0
- package/examples/node_modules/@types/node/console.d.ts +412 -0
- package/examples/node_modules/@types/node/constants.d.ts +18 -0
- package/examples/node_modules/@types/node/crypto.d.ts +3307 -0
- package/examples/node_modules/@types/node/dgram.d.ts +545 -0
- package/examples/node_modules/@types/node/diagnostics_channel.d.ts +134 -0
- package/examples/node_modules/@types/node/dns/promises.d.ts +370 -0
- package/examples/node_modules/@types/node/dns.d.ts +659 -0
- package/examples/node_modules/@types/node/domain.d.ts +169 -0
- package/examples/node_modules/@types/node/events.d.ts +651 -0
- package/examples/node_modules/@types/node/fs/promises.d.ts +1091 -0
- package/examples/node_modules/@types/node/fs.d.ts +3869 -0
- package/examples/node_modules/@types/node/globals.d.ts +284 -0
- package/examples/node_modules/@types/node/globals.global.d.ts +1 -0
- package/examples/node_modules/@types/node/http.d.ts +1396 -0
- package/examples/node_modules/@types/node/http2.d.ts +2100 -0
- package/examples/node_modules/@types/node/https.d.ts +391 -0
- package/examples/node_modules/@types/node/index.d.ts +129 -0
- package/examples/node_modules/@types/node/inspector.d.ts +2744 -0
- package/examples/node_modules/@types/node/module.d.ts +114 -0
- package/examples/node_modules/@types/node/net.d.ts +784 -0
- package/examples/node_modules/@types/node/os.d.ts +455 -0
- package/examples/node_modules/@types/node/package.json +220 -0
- package/examples/node_modules/@types/node/path.d.ts +180 -0
- package/examples/node_modules/@types/node/perf_hooks.d.ts +557 -0
- package/examples/node_modules/@types/node/process.d.ts +1481 -0
- package/examples/node_modules/@types/node/punycode.d.ts +117 -0
- package/examples/node_modules/@types/node/querystring.d.ts +131 -0
- package/examples/node_modules/@types/node/readline.d.ts +650 -0
- package/examples/node_modules/@types/node/repl.d.ts +424 -0
- package/examples/node_modules/@types/node/stream/consumers.d.ts +24 -0
- package/examples/node_modules/@types/node/stream/promises.d.ts +42 -0
- package/examples/node_modules/@types/node/stream/web.d.ts +330 -0
- package/examples/node_modules/@types/node/stream.d.ts +1249 -0
- package/examples/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/examples/node_modules/@types/node/timers/promises.d.ts +68 -0
- package/examples/node_modules/@types/node/timers.d.ts +94 -0
- package/examples/node_modules/@types/node/tls.d.ts +1020 -0
- package/examples/node_modules/@types/node/trace_events.d.ts +161 -0
- package/examples/node_modules/@types/node/tty.d.ts +204 -0
- package/examples/node_modules/@types/node/url.d.ts +891 -0
- package/examples/node_modules/@types/node/util.d.ts +1594 -0
- package/examples/node_modules/@types/node/v8.d.ts +378 -0
- package/examples/node_modules/@types/node/vm.d.ts +507 -0
- package/examples/node_modules/@types/node/wasi.d.ts +158 -0
- package/examples/node_modules/@types/node/worker_threads.d.ts +649 -0
- package/examples/node_modules/@types/node/zlib.d.ts +517 -0
- package/examples/node_modules/@webassemblyjs/ast/LICENSE +21 -0
- package/examples/node_modules/@webassemblyjs/ast/README.md +167 -0
- package/examples/node_modules/@webassemblyjs/ast/esm/clone.js +3 -0
- package/examples/node_modules/@webassemblyjs/ast/esm/definitions.js +668 -0
- package/examples/node_modules/@webassemblyjs/ast/esm/index.js +7 -0
- package/examples/node_modules/@webassemblyjs/ast/esm/node-helpers.js +84 -0
- package/examples/node_modules/@webassemblyjs/ast/esm/node-path.js +137 -0
- package/examples/node_modules/@webassemblyjs/ast/esm/nodes.js +925 -0
- package/examples/node_modules/@webassemblyjs/ast/esm/signatures.js +199 -0
- package/examples/node_modules/@webassemblyjs/ast/esm/transform/ast-module-to-module-context/index.js +378 -0
- package/examples/node_modules/@webassemblyjs/ast/esm/transform/denormalize-type-references/index.js +76 -0
- package/examples/node_modules/@webassemblyjs/ast/esm/transform/wast-identifier-to-index/index.js +216 -0
- package/examples/node_modules/@webassemblyjs/ast/esm/traverse.js +96 -0
- package/examples/node_modules/{webpack-cli/lib/utils/__tests__/test-all-lock/pnpm-lock.yaml → @webassemblyjs/ast/esm/types/basic.js} +0 -0
- package/examples/node_modules/{webpack-cli/lib/utils/__tests__/test-all-lock/yarn.lock → @webassemblyjs/ast/esm/types/nodes.js} +0 -0
- package/examples/node_modules/{webpack-cli/lib/utils/__tests__/test-npm-and-pnpm/pnpm-lock.yaml → @webassemblyjs/ast/esm/types/traverse.js} +0 -0
- package/examples/node_modules/@webassemblyjs/ast/esm/utils.js +265 -0
- package/examples/node_modules/@webassemblyjs/ast/lib/clone.js +10 -0
- package/examples/node_modules/@webassemblyjs/ast/lib/definitions.js +668 -0
- package/examples/node_modules/@webassemblyjs/ast/lib/index.js +127 -0
- package/examples/node_modules/@webassemblyjs/ast/lib/node-helpers.js +107 -0
- package/examples/node_modules/@webassemblyjs/ast/lib/node-path.js +144 -0
- package/examples/node_modules/@webassemblyjs/ast/lib/nodes.js +1144 -0
- package/examples/node_modules/@webassemblyjs/ast/lib/signatures.js +207 -0
- package/examples/node_modules/@webassemblyjs/ast/lib/transform/ast-module-to-module-context/index.js +389 -0
- package/examples/node_modules/@webassemblyjs/ast/lib/transform/denormalize-type-references/index.js +83 -0
- package/examples/node_modules/@webassemblyjs/ast/lib/transform/wast-identifier-to-index/index.js +225 -0
- package/examples/node_modules/@webassemblyjs/ast/lib/traverse.js +105 -0
- package/examples/node_modules/{webpack-cli/lib/utils/__tests__/test-npm-and-yarn/yarn.lock → @webassemblyjs/ast/lib/types/basic.js} +0 -0
- package/examples/node_modules/{webpack-cli/lib/utils/__tests__/test-pnpm-lock/pnpm-lock.yaml → @webassemblyjs/ast/lib/types/nodes.js} +0 -0
- package/examples/node_modules/{webpack-cli/lib/utils/__tests__/test-yarn-and-pnpm/pnpm-lock.yaml → @webassemblyjs/ast/lib/types/traverse.js} +0 -0
- package/examples/node_modules/@webassemblyjs/ast/lib/utils.js +306 -0
- package/examples/node_modules/@webassemblyjs/ast/package.json +32 -0
- package/examples/node_modules/@webassemblyjs/ast/scripts/generateNodeUtils.js +219 -0
- package/examples/node_modules/@webassemblyjs/ast/scripts/generateTypeDefinitions.js +47 -0
- package/examples/node_modules/@webassemblyjs/ast/scripts/util.js +38 -0
- package/examples/node_modules/@webassemblyjs/floating-point-hex-parser/LICENSE +21 -0
- package/examples/node_modules/@webassemblyjs/floating-point-hex-parser/README.md +34 -0
- package/examples/node_modules/@webassemblyjs/floating-point-hex-parser/esm/index.js +42 -0
- package/examples/node_modules/@webassemblyjs/floating-point-hex-parser/lib/index.js +49 -0
- package/examples/node_modules/@webassemblyjs/floating-point-hex-parser/package.json +24 -0
- package/examples/node_modules/@webassemblyjs/helper-api-error/LICENSE +21 -0
- package/examples/node_modules/@webassemblyjs/helper-api-error/esm/index.js +47 -0
- package/examples/node_modules/@webassemblyjs/helper-api-error/lib/index.js +62 -0
- package/examples/node_modules/@webassemblyjs/helper-api-error/package.json +18 -0
- package/examples/node_modules/@webassemblyjs/helper-buffer/LICENSE +21 -0
- package/examples/node_modules/@webassemblyjs/helper-buffer/esm/compare.js +65 -0
- package/examples/node_modules/@webassemblyjs/helper-buffer/esm/index.js +67 -0
- package/examples/node_modules/@webassemblyjs/helper-buffer/lib/compare.js +73 -0
- package/examples/node_modules/@webassemblyjs/helper-buffer/lib/index.js +78 -0
- package/examples/node_modules/@webassemblyjs/helper-buffer/package.json +24 -0
- package/examples/node_modules/@webassemblyjs/helper-numbers/LICENSE +21 -0
- package/examples/node_modules/@webassemblyjs/helper-numbers/esm/index.js +91 -0
- package/examples/node_modules/@webassemblyjs/helper-numbers/lib/index.js +116 -0
- package/examples/node_modules/@webassemblyjs/helper-numbers/package.json +25 -0
- package/examples/node_modules/@webassemblyjs/helper-numbers/src/index.js +105 -0
- package/examples/node_modules/@webassemblyjs/helper-wasm-bytecode/LICENSE +21 -0
- package/examples/node_modules/@webassemblyjs/helper-wasm-bytecode/esm/index.js +391 -0
- package/examples/node_modules/@webassemblyjs/helper-wasm-bytecode/esm/section.js +31 -0
- package/examples/node_modules/@webassemblyjs/helper-wasm-bytecode/lib/index.js +406 -0
- package/examples/node_modules/@webassemblyjs/helper-wasm-bytecode/lib/section.js +38 -0
- package/examples/node_modules/@webassemblyjs/helper-wasm-bytecode/package.json +20 -0
- package/examples/node_modules/@webassemblyjs/helper-wasm-section/LICENSE +21 -0
- package/examples/node_modules/@webassemblyjs/helper-wasm-section/esm/create.js +107 -0
- package/examples/node_modules/@webassemblyjs/helper-wasm-section/esm/index.js +3 -0
- package/examples/node_modules/@webassemblyjs/helper-wasm-section/esm/remove.js +36 -0
- package/examples/node_modules/@webassemblyjs/helper-wasm-section/esm/resize.js +78 -0
- package/examples/node_modules/@webassemblyjs/helper-wasm-section/lib/create.js +121 -0
- package/examples/node_modules/@webassemblyjs/helper-wasm-section/lib/index.js +35 -0
- package/examples/node_modules/@webassemblyjs/helper-wasm-section/lib/remove.js +45 -0
- package/examples/node_modules/@webassemblyjs/helper-wasm-section/lib/resize.js +90 -0
- package/examples/node_modules/@webassemblyjs/helper-wasm-section/package.json +29 -0
- package/examples/node_modules/@webassemblyjs/ieee754/LICENSE +21 -0
- package/examples/node_modules/@webassemblyjs/ieee754/esm/index.js +33 -0
- package/examples/node_modules/@webassemblyjs/ieee754/lib/index.js +52 -0
- package/examples/node_modules/@webassemblyjs/ieee754/package.json +23 -0
- package/examples/node_modules/@webassemblyjs/ieee754/src/index.js +47 -0
- package/examples/node_modules/@webassemblyjs/leb128/LICENSE.txt +194 -0
- package/examples/node_modules/@webassemblyjs/leb128/esm/bits.js +145 -0
- package/examples/node_modules/@webassemblyjs/leb128/esm/bufs.js +218 -0
- package/examples/node_modules/@webassemblyjs/leb128/esm/index.js +34 -0
- package/examples/node_modules/@webassemblyjs/leb128/esm/leb.js +316 -0
- package/examples/node_modules/@webassemblyjs/leb128/lib/bits.js +156 -0
- package/examples/node_modules/@webassemblyjs/leb128/lib/bufs.js +236 -0
- package/examples/node_modules/@webassemblyjs/leb128/lib/index.js +59 -0
- package/examples/node_modules/@webassemblyjs/leb128/lib/leb.js +332 -0
- package/examples/node_modules/@webassemblyjs/leb128/package.json +23 -0
- package/examples/node_modules/@webassemblyjs/utf8/LICENSE +21 -0
- package/examples/node_modules/@webassemblyjs/utf8/esm/decoder.js +95 -0
- package/examples/node_modules/@webassemblyjs/utf8/esm/encoder.js +46 -0
- package/examples/node_modules/@webassemblyjs/utf8/esm/index.js +2 -0
- package/examples/node_modules/@webassemblyjs/utf8/lib/decoder.js +102 -0
- package/examples/node_modules/@webassemblyjs/utf8/lib/encoder.js +53 -0
- package/examples/node_modules/@webassemblyjs/utf8/lib/index.js +21 -0
- package/examples/node_modules/@webassemblyjs/utf8/package.json +20 -0
- package/examples/node_modules/@webassemblyjs/utf8/src/decoder.js +86 -0
- package/examples/node_modules/@webassemblyjs/utf8/src/encoder.js +44 -0
- package/examples/node_modules/@webassemblyjs/utf8/src/index.js +4 -0
- package/examples/node_modules/@webassemblyjs/utf8/test/index.js +13 -0
- package/examples/node_modules/@webassemblyjs/wasm-edit/LICENSE +21 -0
- package/examples/node_modules/@webassemblyjs/wasm-edit/README.md +86 -0
- package/examples/node_modules/@webassemblyjs/wasm-edit/esm/apply.js +299 -0
- package/examples/node_modules/@webassemblyjs/wasm-edit/esm/index.js +114 -0
- package/examples/node_modules/@webassemblyjs/wasm-edit/lib/apply.js +311 -0
- package/examples/node_modules/@webassemblyjs/wasm-edit/lib/index.js +133 -0
- package/examples/node_modules/@webassemblyjs/wasm-edit/package.json +33 -0
- package/examples/node_modules/@webassemblyjs/wasm-gen/LICENSE +21 -0
- package/examples/node_modules/@webassemblyjs/wasm-gen/esm/encoder/index.js +301 -0
- package/examples/node_modules/@webassemblyjs/wasm-gen/esm/index.js +51 -0
- package/examples/node_modules/@webassemblyjs/wasm-gen/lib/encoder/index.js +357 -0
- package/examples/node_modules/@webassemblyjs/wasm-gen/lib/index.js +64 -0
- package/examples/node_modules/@webassemblyjs/wasm-gen/package.json +27 -0
- package/examples/node_modules/@webassemblyjs/wasm-opt/LICENSE +21 -0
- package/examples/node_modules/@webassemblyjs/wasm-opt/esm/index.js +41 -0
- package/examples/node_modules/@webassemblyjs/wasm-opt/esm/leb128.js +47 -0
- package/examples/node_modules/@webassemblyjs/wasm-opt/lib/index.js +50 -0
- package/examples/node_modules/@webassemblyjs/wasm-opt/lib/leb128.js +56 -0
- package/examples/node_modules/@webassemblyjs/wasm-opt/package.json +26 -0
- package/examples/node_modules/@webassemblyjs/wasm-parser/LICENSE +21 -0
- package/examples/node_modules/@webassemblyjs/wasm-parser/README.md +28 -0
- package/examples/node_modules/@webassemblyjs/wasm-parser/esm/decoder.js +1776 -0
- package/examples/node_modules/@webassemblyjs/wasm-parser/esm/index.js +247 -0
- package/examples/node_modules/{webpack-cli/lib/utils/__tests__/test-yarn-and-pnpm/yarn.lock → @webassemblyjs/wasm-parser/esm/types/decoder.js} +0 -0
- package/examples/node_modules/@webassemblyjs/wasm-parser/lib/decoder.js +1792 -0
- package/examples/node_modules/@webassemblyjs/wasm-parser/lib/index.js +257 -0
- package/examples/node_modules/{webpack-cli/lib/utils/__tests__/test-yarn-lock/yarn.lock → @webassemblyjs/wasm-parser/lib/types/decoder.js} +0 -0
- package/examples/node_modules/@webassemblyjs/wasm-parser/package.json +44 -0
- package/examples/node_modules/@webassemblyjs/wast-printer/LICENSE +21 -0
- package/examples/node_modules/@webassemblyjs/wast-printer/README.md +17 -0
- package/examples/node_modules/@webassemblyjs/wast-printer/esm/index.js +904 -0
- package/examples/node_modules/@webassemblyjs/wast-printer/lib/index.js +915 -0
- package/examples/node_modules/@webassemblyjs/wast-printer/package.json +36 -0
- package/examples/node_modules/@webpack-cli/configtest/README.md +27 -0
- package/examples/node_modules/@webpack-cli/configtest/lib/index.js +18 -25
- package/examples/node_modules/@webpack-cli/configtest/package.json +14 -36
- package/examples/node_modules/@webpack-cli/info/README.md +6 -5
- package/examples/node_modules/@webpack-cli/info/lib/index.js +57 -38
- package/examples/node_modules/@webpack-cli/info/package.json +19 -37
- package/examples/node_modules/@webpack-cli/serve/README.md +4 -0
- package/examples/node_modules/@webpack-cli/serve/lib/index.js +214 -41
- package/examples/node_modules/@webpack-cli/serve/lib/types.d.ts +62 -19
- package/examples/node_modules/@webpack-cli/serve/lib/types.js +21 -2
- package/examples/node_modules/@webpack-cli/serve/package.json +15 -36
- package/examples/node_modules/@xtuc/ieee754/LICENSE +28 -0
- package/examples/node_modules/@xtuc/ieee754/README.md +51 -0
- package/examples/node_modules/@xtuc/ieee754/dist/.gitkeep +0 -0
- package/examples/node_modules/@xtuc/ieee754/dist/index.cjs.js +96 -0
- package/examples/node_modules/@xtuc/ieee754/index.js +84 -0
- package/examples/node_modules/@xtuc/ieee754/package.json +42 -0
- package/examples/node_modules/@xtuc/long/LICENSE +202 -0
- package/examples/node_modules/@xtuc/long/README.md +257 -0
- package/examples/node_modules/@xtuc/long/dist/long.js +2 -0
- package/examples/node_modules/@xtuc/long/dist/long.js.map +1 -0
- package/examples/node_modules/@xtuc/long/index.d.ts +429 -0
- package/examples/node_modules/@xtuc/long/index.js +1 -0
- package/examples/node_modules/@xtuc/long/package.json +36 -0
- package/examples/node_modules/@xtuc/long/src/long.js +1405 -0
- package/examples/node_modules/acorn/CHANGELOG.md +788 -0
- package/examples/node_modules/acorn/LICENSE +21 -0
- package/examples/node_modules/acorn/README.md +280 -0
- package/examples/node_modules/acorn/bin/acorn +4 -0
- package/examples/node_modules/acorn/dist/acorn.d.ts +214 -0
- package/examples/node_modules/acorn/dist/acorn.js +5619 -0
- package/examples/node_modules/acorn/dist/acorn.mjs +5588 -0
- package/examples/node_modules/acorn/dist/acorn.mjs.d.ts +2 -0
- package/examples/node_modules/acorn/dist/bin.js +91 -0
- package/examples/node_modules/acorn/package.json +46 -0
- package/examples/node_modules/acorn-import-assertions/README.md +15 -0
- package/examples/node_modules/acorn-import-assertions/lib/index.js +287 -0
- package/examples/node_modules/acorn-import-assertions/lib/index.mjs +242 -0
- package/examples/node_modules/acorn-import-assertions/package.json +49 -0
- package/examples/node_modules/acorn-import-assertions/src/index.js +242 -0
- package/examples/node_modules/ajv/.tonic_example.js +20 -0
- package/examples/node_modules/ajv/LICENSE +22 -0
- package/examples/node_modules/ajv/README.md +1497 -0
- package/examples/node_modules/ajv/dist/ajv.bundle.js +7189 -0
- package/examples/node_modules/ajv/dist/ajv.min.js +3 -0
- package/examples/node_modules/ajv/dist/ajv.min.js.map +1 -0
- package/examples/node_modules/ajv/lib/ajv.d.ts +397 -0
- package/examples/node_modules/ajv/lib/ajv.js +506 -0
- package/examples/node_modules/ajv/lib/cache.js +26 -0
- package/examples/node_modules/ajv/lib/compile/async.js +90 -0
- package/examples/node_modules/ajv/lib/compile/equal.js +5 -0
- package/examples/node_modules/ajv/lib/compile/error_classes.js +34 -0
- package/examples/node_modules/ajv/lib/compile/formats.js +142 -0
- package/examples/node_modules/ajv/lib/compile/index.js +387 -0
- package/examples/node_modules/ajv/lib/compile/resolve.js +270 -0
- package/examples/node_modules/ajv/lib/compile/rules.js +66 -0
- package/examples/node_modules/ajv/lib/compile/schema_obj.js +9 -0
- package/examples/node_modules/ajv/lib/compile/ucs2length.js +20 -0
- package/examples/node_modules/ajv/lib/compile/util.js +239 -0
- package/examples/node_modules/ajv/lib/data.js +49 -0
- package/examples/node_modules/ajv/lib/definition_schema.js +37 -0
- package/examples/node_modules/ajv/lib/dot/_limit.jst +113 -0
- package/examples/node_modules/ajv/lib/dot/_limitItems.jst +12 -0
- package/examples/node_modules/ajv/lib/dot/_limitLength.jst +12 -0
- package/examples/node_modules/ajv/lib/dot/_limitProperties.jst +12 -0
- package/examples/node_modules/ajv/lib/dot/allOf.jst +32 -0
- package/examples/node_modules/ajv/lib/dot/anyOf.jst +46 -0
- package/examples/node_modules/ajv/lib/dot/coerce.def +51 -0
- package/examples/node_modules/ajv/lib/dot/comment.jst +9 -0
- package/examples/node_modules/ajv/lib/dot/const.jst +11 -0
- package/examples/node_modules/ajv/lib/dot/contains.jst +55 -0
- package/examples/node_modules/ajv/lib/dot/custom.jst +191 -0
- package/examples/node_modules/ajv/lib/dot/defaults.def +47 -0
- package/examples/node_modules/ajv/lib/dot/definitions.def +203 -0
- package/examples/node_modules/ajv/lib/dot/dependencies.jst +79 -0
- package/examples/node_modules/ajv/lib/dot/enum.jst +30 -0
- package/examples/node_modules/ajv/lib/dot/errors.def +194 -0
- package/examples/node_modules/ajv/lib/dot/format.jst +106 -0
- package/examples/node_modules/ajv/lib/dot/if.jst +73 -0
- package/examples/node_modules/ajv/lib/dot/items.jst +98 -0
- package/examples/node_modules/ajv/lib/dot/missing.def +39 -0
- package/examples/node_modules/ajv/lib/dot/multipleOf.jst +22 -0
- package/examples/node_modules/ajv/lib/dot/not.jst +43 -0
- package/examples/node_modules/ajv/lib/dot/oneOf.jst +54 -0
- package/examples/node_modules/ajv/lib/dot/pattern.jst +14 -0
- package/examples/node_modules/ajv/lib/dot/properties.jst +245 -0
- package/examples/node_modules/ajv/lib/dot/propertyNames.jst +52 -0
- package/examples/node_modules/ajv/lib/dot/ref.jst +85 -0
- package/examples/node_modules/ajv/lib/dot/required.jst +108 -0
- package/examples/node_modules/ajv/lib/dot/uniqueItems.jst +62 -0
- package/examples/node_modules/ajv/lib/dot/validate.jst +276 -0
- package/examples/node_modules/ajv/lib/dotjs/README.md +3 -0
- package/examples/node_modules/ajv/lib/dotjs/_limit.js +163 -0
- package/examples/node_modules/ajv/lib/dotjs/_limitItems.js +80 -0
- package/examples/node_modules/ajv/lib/dotjs/_limitLength.js +85 -0
- package/examples/node_modules/ajv/lib/dotjs/_limitProperties.js +80 -0
- package/examples/node_modules/ajv/lib/dotjs/allOf.js +42 -0
- package/examples/node_modules/ajv/lib/dotjs/anyOf.js +73 -0
- package/examples/node_modules/ajv/lib/dotjs/comment.js +14 -0
- package/examples/node_modules/ajv/lib/dotjs/const.js +56 -0
- package/examples/node_modules/ajv/lib/dotjs/contains.js +81 -0
- package/examples/node_modules/ajv/lib/dotjs/custom.js +228 -0
- package/examples/node_modules/ajv/lib/dotjs/dependencies.js +168 -0
- package/examples/node_modules/ajv/lib/dotjs/enum.js +66 -0
- package/examples/node_modules/ajv/lib/dotjs/format.js +150 -0
- package/examples/node_modules/ajv/lib/dotjs/if.js +103 -0
- package/examples/node_modules/ajv/lib/dotjs/index.js +33 -0
- package/examples/node_modules/ajv/lib/dotjs/items.js +140 -0
- package/examples/node_modules/ajv/lib/dotjs/multipleOf.js +80 -0
- package/examples/node_modules/ajv/lib/dotjs/not.js +84 -0
- package/examples/node_modules/ajv/lib/dotjs/oneOf.js +73 -0
- package/examples/node_modules/ajv/lib/dotjs/pattern.js +75 -0
- package/examples/node_modules/ajv/lib/dotjs/properties.js +335 -0
- package/examples/node_modules/ajv/lib/dotjs/propertyNames.js +81 -0
- package/examples/node_modules/ajv/lib/dotjs/ref.js +124 -0
- package/examples/node_modules/ajv/lib/dotjs/required.js +270 -0
- package/examples/node_modules/ajv/lib/dotjs/uniqueItems.js +86 -0
- package/examples/node_modules/ajv/lib/dotjs/validate.js +482 -0
- package/examples/node_modules/ajv/lib/keyword.js +146 -0
- package/examples/node_modules/ajv/lib/refs/data.json +17 -0
- package/examples/node_modules/ajv/lib/refs/json-schema-draft-04.json +149 -0
- package/examples/node_modules/ajv/lib/refs/json-schema-draft-06.json +154 -0
- package/examples/node_modules/ajv/lib/refs/json-schema-draft-07.json +168 -0
- package/examples/node_modules/ajv/lib/refs/json-schema-secure.json +94 -0
- package/examples/node_modules/ajv/package.json +106 -0
- package/examples/node_modules/ajv/scripts/.eslintrc.yml +3 -0
- package/examples/node_modules/ajv/scripts/bundle.js +61 -0
- package/examples/node_modules/ajv/scripts/compile-dots.js +73 -0
- package/examples/node_modules/ajv/scripts/info +10 -0
- package/examples/node_modules/ajv/scripts/prepare-tests +12 -0
- package/examples/node_modules/ajv/scripts/publish-built-version +32 -0
- package/examples/node_modules/ajv/scripts/travis-gh-pages +23 -0
- package/examples/node_modules/ajv-keywords/LICENSE +21 -0
- package/examples/node_modules/ajv-keywords/README.md +836 -0
- package/examples/node_modules/ajv-keywords/ajv-keywords.d.ts +7 -0
- package/examples/node_modules/ajv-keywords/index.js +35 -0
- package/examples/node_modules/ajv-keywords/keywords/_formatLimit.js +101 -0
- package/examples/node_modules/ajv-keywords/keywords/_util.js +15 -0
- package/examples/node_modules/ajv-keywords/keywords/allRequired.js +18 -0
- package/examples/node_modules/ajv-keywords/keywords/anyRequired.js +24 -0
- package/examples/node_modules/ajv-keywords/keywords/deepProperties.js +54 -0
- package/examples/node_modules/ajv-keywords/keywords/deepRequired.js +57 -0
- package/examples/node_modules/ajv-keywords/keywords/dot/_formatLimit.jst +116 -0
- package/examples/node_modules/ajv-keywords/keywords/dot/patternRequired.jst +33 -0
- package/examples/node_modules/ajv-keywords/keywords/dot/switch.jst +71 -0
- package/examples/node_modules/ajv-keywords/keywords/dotjs/README.md +3 -0
- package/examples/node_modules/ajv-keywords/keywords/dotjs/_formatLimit.js +178 -0
- package/examples/node_modules/ajv-keywords/keywords/dotjs/patternRequired.js +58 -0
- package/examples/node_modules/ajv-keywords/keywords/dotjs/switch.js +129 -0
- package/examples/node_modules/ajv-keywords/keywords/dynamicDefaults.js +72 -0
- package/examples/node_modules/ajv-keywords/keywords/formatMaximum.js +3 -0
- package/examples/node_modules/ajv-keywords/keywords/formatMinimum.js +3 -0
- package/examples/node_modules/ajv-keywords/keywords/index.js +22 -0
- package/examples/node_modules/ajv-keywords/keywords/instanceof.js +58 -0
- package/examples/node_modules/ajv-keywords/keywords/oneRequired.js +24 -0
- package/examples/node_modules/ajv-keywords/keywords/patternRequired.js +21 -0
- package/examples/node_modules/ajv-keywords/keywords/prohibited.js +24 -0
- package/examples/node_modules/ajv-keywords/keywords/range.js +36 -0
- package/examples/node_modules/ajv-keywords/keywords/regexp.js +36 -0
- package/examples/node_modules/ajv-keywords/keywords/select.js +79 -0
- package/examples/node_modules/ajv-keywords/keywords/switch.js +38 -0
- package/examples/node_modules/ajv-keywords/keywords/transform.js +80 -0
- package/examples/node_modules/ajv-keywords/keywords/typeof.js +32 -0
- package/examples/node_modules/ajv-keywords/keywords/uniqueItemProperties.js +59 -0
- package/examples/node_modules/ajv-keywords/package.json +53 -0
- package/examples/node_modules/browserslist/LICENSE +20 -0
- package/examples/node_modules/browserslist/README.md +66 -0
- package/examples/node_modules/browserslist/browser.js +50 -0
- package/examples/node_modules/browserslist/cli.js +152 -0
- package/examples/node_modules/browserslist/error.d.ts +7 -0
- package/examples/node_modules/browserslist/error.js +12 -0
- package/examples/node_modules/browserslist/index.d.ts +178 -0
- package/examples/node_modules/browserslist/index.js +1235 -0
- package/examples/node_modules/browserslist/node.js +393 -0
- package/examples/node_modules/browserslist/package.json +41 -0
- package/examples/node_modules/browserslist/update-db.js +317 -0
- package/examples/node_modules/buffer-from/LICENSE +21 -0
- package/examples/node_modules/buffer-from/index.js +72 -0
- package/examples/node_modules/buffer-from/package.json +19 -0
- package/examples/node_modules/buffer-from/readme.md +69 -0
- package/examples/node_modules/caniuse-lite/LICENSE +395 -0
- package/examples/node_modules/caniuse-lite/README.md +92 -0
- package/examples/node_modules/caniuse-lite/data/agents.js +1 -0
- package/examples/node_modules/caniuse-lite/data/browserVersions.js +1 -0
- package/examples/node_modules/caniuse-lite/data/browsers.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/aac.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/abortcontroller.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/ac3-ec3.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/accelerometer.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/addeventlistener.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/alternate-stylesheet.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/ambient-light.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/apng.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/array-find-index.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/array-find.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/array-flat.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/array-includes.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/arrow-functions.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/asmjs.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/async-clipboard.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/async-functions.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/atob-btoa.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/audio-api.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/audio.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/audiotracks.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/autofocus.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/auxclick.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/av1.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/avif.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/background-attachment.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/background-clip-text.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/background-img-opts.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/background-position-x-y.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/background-repeat-round-space.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/background-sync.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/battery-status.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/beacon.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/beforeafterprint.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/bigint.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/blobbuilder.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/bloburls.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/border-image.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/border-radius.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/broadcastchannel.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/brotli.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/calc.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/canvas-blending.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/canvas-text.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/canvas.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/ch-unit.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/chacha20-poly1305.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/channel-messaging.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/childnode-remove.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/classlist.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/client-hints-dpr-width-viewport.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/clipboard.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/colr-v1.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/colr.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/comparedocumentposition.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/console-basic.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/console-time.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/const.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/constraint-validation.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/contenteditable.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/contentsecuritypolicy.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/contentsecuritypolicy2.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/cookie-store-api.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/cors.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/createimagebitmap.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/credential-management.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/cryptography.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-all.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-animation.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-any-link.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-appearance.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-at-counter-style.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-autofill.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-backdrop-filter.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-background-offsets.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-backgroundblendmode.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-boxdecorationbreak.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-boxshadow.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-canvas.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-caret-color.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-cascade-layers.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-case-insensitive.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-clip-path.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-color-adjust.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-color-function.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-conic-gradients.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-container-queries.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-containment.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-content-visibility.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-counters.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-crisp-edges.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-cross-fade.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-default-pseudo.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-descendant-gtgt.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-deviceadaptation.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-dir-pseudo.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-display-contents.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-element-function.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-env-function.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-exclusions.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-featurequeries.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-file-selector-button.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-filter-function.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-filters.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-first-letter.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-first-line.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-fixed.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-focus-visible.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-focus-within.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-font-palette.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-font-rendering-controls.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-font-stretch.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-gencontent.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-gradients.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-grid.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-hanging-punctuation.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-has.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-hyphenate.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-hyphens.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-image-orientation.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-image-set.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-in-out-of-range.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-indeterminate-pseudo.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-initial-letter.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-initial-value.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-lch-lab.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-letter-spacing.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-line-clamp.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-logical-props.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-marker-pseudo.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-masks.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-matches-pseudo.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-math-functions.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-media-interaction.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-media-resolution.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-media-scripting.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-mediaqueries.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-mixblendmode.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-motion-paths.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-namespaces.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-nesting.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-not-sel-list.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-nth-child-of.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-opacity.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-optional-pseudo.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-overflow-anchor.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-overflow-overlay.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-overflow.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-overscroll-behavior.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-page-break.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-paged-media.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-paint-api.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-placeholder-shown.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-placeholder.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-read-only-write.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-rebeccapurple.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-reflections.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-regions.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-repeating-gradients.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-resize.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-revert-value.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-rrggbbaa.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-scroll-behavior.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-scroll-timeline.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-scrollbar.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-sel2.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-sel3.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-selection.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-shapes.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-snappoints.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-sticky.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-subgrid.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-supports-api.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-table.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-text-align-last.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-text-indent.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-text-justify.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-text-orientation.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-text-spacing.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-textshadow.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-touch-action-2.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-touch-action.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-transitions.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-unicode-bidi.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-unset-value.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-variables.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-when-else.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-widows-orphans.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-width-stretch.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-writing-mode.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-zoom.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css3-attr.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css3-boxsizing.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css3-colors.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css3-cursors-grab.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css3-cursors-newer.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css3-cursors.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css3-tabsize.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/currentcolor.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/custom-elements.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/custom-elementsv1.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/customevent.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/datalist.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/dataset.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/datauri.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/date-tolocaledatestring.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/decorators.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/details.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/deviceorientation.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/devicepixelratio.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/dialog.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/dispatchevent.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/dnssec.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/do-not-track.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/document-currentscript.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/document-evaluate-xpath.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/document-execcommand.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/document-policy.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/document-scrollingelement.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/documenthead.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/dom-manip-convenience.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/dom-range.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/domcontentloaded.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/domfocusin-domfocusout-events.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/dommatrix.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/download.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/dragndrop.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/element-closest.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/element-from-point.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/element-scroll-methods.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/eme.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/eot.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/es5.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/es6-class.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/es6-generators.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/es6-module-dynamic-import.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/es6-module.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/es6-number.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/es6-string-includes.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/es6.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/eventsource.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/extended-system-fonts.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/feature-policy.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/fetch.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/fieldset-disabled.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/fileapi.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/filereader.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/filereadersync.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/filesystem.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/flac.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/flexbox-gap.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/flexbox.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/flow-root.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/focusin-focusout-events.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/focusoptions-preventscroll.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/font-family-system-ui.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/font-feature.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/font-kerning.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/font-loading.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/font-metrics-overrides.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/font-size-adjust.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/font-smooth.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/font-unicode-range.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/font-variant-alternates.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/font-variant-east-asian.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/font-variant-numeric.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/fontface.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/form-attribute.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/form-submit-attributes.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/form-validation.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/forms.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/fullscreen.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/gamepad.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/geolocation.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/getboundingclientrect.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/getcomputedstyle.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/getelementsbyclassname.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/getrandomvalues.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/gyroscope.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/hardwareconcurrency.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/hashchange.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/heif.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/hevc.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/hidden.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/high-resolution-time.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/history.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/html-media-capture.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/html5semantic.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/http-live-streaming.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/http2.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/http3.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/iframe-sandbox.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/iframe-seamless.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/iframe-srcdoc.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/imagecapture.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/ime.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/img-naturalwidth-naturalheight.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/import-maps.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/imports.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/indeterminate-checkbox.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/indexeddb.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/indexeddb2.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/inline-block.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/innertext.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/input-autocomplete-onoff.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/input-color.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/input-datetime.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/input-email-tel-url.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/input-event.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/input-file-accept.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/input-file-directory.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/input-file-multiple.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/input-inputmode.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/input-minlength.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/input-number.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/input-pattern.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/input-placeholder.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/input-range.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/input-search.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/input-selection.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/insert-adjacent.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/insertadjacenthtml.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/internationalization.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/intersectionobserver-v2.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/intersectionobserver.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/intl-pluralrules.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/intrinsic-width.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/jpeg2000.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/jpegxl.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/jpegxr.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/js-regexp-lookbehind.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/json.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/justify-content-space-evenly.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/kerning-pairs-ligatures.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/keyboardevent-charcode.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/keyboardevent-code.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/keyboardevent-getmodifierstate.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/keyboardevent-key.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/keyboardevent-location.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/keyboardevent-which.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/lazyload.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/let.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/link-icon-png.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/link-icon-svg.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/link-rel-dns-prefetch.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/link-rel-modulepreload.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/link-rel-preconnect.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/link-rel-prefetch.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/link-rel-preload.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/link-rel-prerender.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/loading-lazy-attr.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/localecompare.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/magnetometer.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/matchesselector.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/matchmedia.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/mathml.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/maxlength.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/media-attribute.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/media-fragments.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/media-session-api.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/mediacapture-fromelement.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/mediarecorder.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/mediasource.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/menu.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/meta-theme-color.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/meter.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/midi.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/minmaxwh.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/mp3.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/mpeg-dash.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/mpeg4.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/multibackgrounds.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/multicolumn.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/mutation-events.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/mutationobserver.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/namevalue-storage.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/native-filesystem-api.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/nav-timing.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/navigator-language.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/netinfo.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/notifications.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/object-entries.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/object-fit.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/object-observe.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/object-values.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/objectrtc.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/offline-apps.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/offscreencanvas.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/ogg-vorbis.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/ogv.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/ol-reversed.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/once-event-listener.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/online-status.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/opus.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/orientation-sensor.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/outline.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/pad-start-end.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/page-transition-events.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/pagevisibility.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/passive-event-listener.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/passwordrules.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/path2d.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/payment-request.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/pdf-viewer.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/permissions-api.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/permissions-policy.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/picture-in-picture.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/picture.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/ping.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/png-alpha.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/pointer-events.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/pointer.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/pointerlock.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/portals.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/prefers-color-scheme.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/prefers-reduced-motion.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/private-class-fields.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/private-methods-and-accessors.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/progress.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/promise-finally.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/promises.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/proximity.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/proxy.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/public-class-fields.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/publickeypinning.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/push-api.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/queryselector.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/readonly-attr.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/referrer-policy.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/registerprotocolhandler.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/rel-noopener.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/rel-noreferrer.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/rellist.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/rem.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/requestanimationframe.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/requestidlecallback.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/resizeobserver.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/resource-timing.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/rest-parameters.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/rtcpeerconnection.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/ruby.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/run-in.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/same-site-cookie-attribute.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/screen-orientation.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/script-async.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/script-defer.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/scrollintoview.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/scrollintoviewifneeded.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/sdch.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/selection-api.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/server-timing.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/serviceworkers.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/setimmediate.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/sha-2.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/shadowdom.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/shadowdomv1.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/sharedarraybuffer.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/sharedworkers.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/sni.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/spdy.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/speech-recognition.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/speech-synthesis.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/spellcheck-attribute.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/sql-storage.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/srcset.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/stream.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/streams.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/stricttransportsecurity.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/style-scoped.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/subresource-integrity.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/svg-css.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/svg-filters.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/svg-fonts.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/svg-fragment.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/svg-html.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/svg-html5.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/svg-img.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/svg-smil.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/svg.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/sxg.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/tabindex-attr.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/template-literals.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/template.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/temporal.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/testfeat.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/text-decoration.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/text-emphasis.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/text-overflow.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/text-size-adjust.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/text-stroke.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/text-underline-offset.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/textcontent.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/textencoder.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/tls1-1.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/tls1-2.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/tls1-3.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/token-binding.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/touch.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/transforms2d.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/transforms3d.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/trusted-types.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/ttf.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/typedarrays.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/u2f.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/unhandledrejection.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/upgradeinsecurerequests.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/url-scroll-to-text-fragment.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/url.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/urlsearchparams.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/use-strict.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/user-select-none.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/user-timing.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/variable-fonts.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/vector-effect.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/vibration.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/video.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/videotracks.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/viewport-unit-variants.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/viewport-units.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/wai-aria.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/wake-lock.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/wasm.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/wav.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/wbr-element.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/web-animation.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/web-app-manifest.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/web-bluetooth.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/web-serial.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/web-share.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/webauthn.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/webgl.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/webgl2.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/webgpu.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/webhid.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/webkit-user-drag.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/webm.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/webnfc.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/webp.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/websockets.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/webusb.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/webvr.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/webvtt.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/webworkers.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/webxr.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/will-change.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/woff.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/woff2.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/word-break.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/wordwrap.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/x-doc-messaging.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/x-frame-options.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/xhr2.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/xhtml.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/xhtmlsmil.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/xml-serializer.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/AD.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/AE.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/AF.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/AG.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/AI.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/AL.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/AM.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/AO.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/AR.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/AS.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/AT.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/AU.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/AW.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/AX.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/AZ.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/BA.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/BB.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/BD.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/BE.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/BF.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/BG.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/BH.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/BI.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/BJ.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/BM.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/BN.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/BO.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/BR.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/BS.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/BT.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/BW.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/BY.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/BZ.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/CA.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/CD.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/CF.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/CG.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/CH.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/CI.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/CK.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/CL.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/CM.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/CN.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/CO.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/CR.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/CU.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/CV.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/CX.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/CY.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/CZ.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/DE.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/DJ.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/DK.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/DM.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/DO.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/DZ.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/EC.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/EE.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/EG.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/ER.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/ES.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/ET.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/FI.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/FJ.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/FK.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/FM.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/FO.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/FR.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/GA.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/GB.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/GD.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/GE.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/GF.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/GG.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/GH.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/GI.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/GL.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/GM.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/GN.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/GP.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/GQ.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/GR.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/GT.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/GU.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/GW.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/GY.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/HK.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/HN.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/HR.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/HT.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/HU.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/ID.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/IE.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/IL.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/IM.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/IN.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/IQ.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/IR.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/IS.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/IT.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/JE.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/JM.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/JO.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/JP.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/KE.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/KG.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/KH.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/KI.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/KM.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/KN.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/KP.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/KR.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/KW.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/KY.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/KZ.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/LA.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/LB.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/LC.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/LI.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/LK.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/LR.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/LS.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/LT.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/LU.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/LV.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/LY.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/MA.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/MC.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/MD.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/ME.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/MG.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/MH.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/MK.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/ML.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/MM.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/MN.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/MO.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/MP.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/MQ.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/MR.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/MS.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/MT.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/MU.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/MV.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/MW.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/MX.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/MY.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/MZ.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/NA.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/NC.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/NE.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/NF.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/NG.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/NI.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/NL.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/NO.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/NP.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/NR.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/NU.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/NZ.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/OM.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/PA.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/PE.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/PF.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/PG.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/PH.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/PK.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/PL.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/PM.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/PN.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/PR.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/PS.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/PT.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/PW.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/PY.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/QA.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/RE.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/RO.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/RS.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/RU.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/RW.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/SA.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/SB.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/SC.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/SD.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/SE.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/SG.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/SH.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/SI.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/SK.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/SL.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/SM.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/SN.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/SO.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/SR.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/ST.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/SV.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/SY.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/SZ.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/TC.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/TD.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/TG.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/TH.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/TJ.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/TK.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/TL.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/TM.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/TN.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/TO.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/TR.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/TT.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/TV.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/TW.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/TZ.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/UA.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/UG.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/US.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/UY.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/UZ.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/VA.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/VC.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/VE.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/VG.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/VI.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/VN.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/VU.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/WF.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/WS.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/YE.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/YT.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/ZA.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/ZM.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/ZW.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/alt-af.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/alt-an.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/alt-as.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/alt-eu.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/alt-na.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/alt-oc.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/alt-sa.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/alt-ww.js +1 -0
- package/examples/node_modules/caniuse-lite/dist/lib/statuses.js +9 -0
- package/examples/node_modules/caniuse-lite/dist/lib/supported.js +9 -0
- package/examples/node_modules/caniuse-lite/dist/unpacker/agents.js +47 -0
- package/examples/node_modules/caniuse-lite/dist/unpacker/browserVersions.js +1 -0
- package/examples/node_modules/caniuse-lite/dist/unpacker/browsers.js +1 -0
- package/examples/node_modules/caniuse-lite/dist/unpacker/feature.js +48 -0
- package/examples/node_modules/caniuse-lite/dist/unpacker/features.js +6 -0
- package/examples/node_modules/caniuse-lite/dist/unpacker/index.js +4 -0
- package/examples/node_modules/caniuse-lite/dist/unpacker/region.js +22 -0
- package/examples/node_modules/caniuse-lite/package.json +34 -0
- package/examples/node_modules/chrome-trace-event/CHANGES.md +26 -0
- package/examples/node_modules/chrome-trace-event/LICENSE.txt +23 -0
- package/examples/node_modules/chrome-trace-event/README.md +31 -0
- package/examples/node_modules/chrome-trace-event/dist/trace-event.d.ts +52 -0
- package/examples/node_modules/chrome-trace-event/dist/trace-event.js +170 -0
- package/examples/node_modules/chrome-trace-event/dist/trace-event.js.map +1 -0
- package/examples/node_modules/chrome-trace-event/package.json +38 -0
- package/examples/node_modules/clone-deep/package.json +17 -48
- package/examples/node_modules/colorette/README.md +54 -22
- package/examples/node_modules/colorette/index.cjs +213 -71
- package/examples/node_modules/colorette/index.d.ts +91 -47
- package/examples/node_modules/colorette/index.js +142 -68
- package/examples/node_modules/colorette/package.json +17 -51
- package/examples/node_modules/commander/CHANGELOG.md +339 -360
- package/examples/node_modules/commander/Readme.md +254 -743
- package/examples/node_modules/commander/index.js +1003 -1996
- package/examples/node_modules/commander/package.json +24 -86
- package/examples/node_modules/commander/typings/index.d.ts +153 -470
- package/examples/node_modules/cross-spawn/package.json +40 -71
- package/examples/node_modules/electron-to-chromium/CHANGELOG.md +14 -0
- package/examples/node_modules/electron-to-chromium/LICENSE +5 -0
- package/examples/node_modules/electron-to-chromium/README.md +186 -0
- package/examples/node_modules/electron-to-chromium/chromium-versions.js +45 -0
- package/examples/node_modules/electron-to-chromium/chromium-versions.json +1 -0
- package/examples/node_modules/electron-to-chromium/full-chromium-versions.js +1833 -0
- package/examples/node_modules/electron-to-chromium/full-chromium-versions.json +1 -0
- package/examples/node_modules/electron-to-chromium/full-versions.js +1335 -0
- package/examples/node_modules/electron-to-chromium/full-versions.json +1 -0
- package/examples/node_modules/electron-to-chromium/index.js +36 -0
- package/examples/node_modules/electron-to-chromium/package.json +42 -0
- package/examples/node_modules/electron-to-chromium/versions.js +89 -0
- package/examples/node_modules/electron-to-chromium/versions.json +1 -0
- package/examples/node_modules/enhanced-resolve/LICENSE +20 -0
- package/examples/node_modules/enhanced-resolve/README.md +167 -0
- package/examples/node_modules/enhanced-resolve/lib/AliasFieldPlugin.js +96 -0
- package/examples/node_modules/enhanced-resolve/lib/AliasPlugin.js +120 -0
- package/examples/node_modules/enhanced-resolve/lib/AppendPlugin.js +47 -0
- package/examples/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js +477 -0
- package/examples/node_modules/enhanced-resolve/lib/CloneBasenamePlugin.js +45 -0
- package/examples/node_modules/enhanced-resolve/lib/ConditionalPlugin.js +59 -0
- package/examples/node_modules/enhanced-resolve/lib/DescriptionFilePlugin.js +96 -0
- package/examples/node_modules/enhanced-resolve/lib/DescriptionFileUtils.js +170 -0
- package/examples/node_modules/enhanced-resolve/lib/DirectoryExistsPlugin.js +63 -0
- package/examples/node_modules/enhanced-resolve/lib/ExportsFieldPlugin.js +149 -0
- package/examples/node_modules/enhanced-resolve/lib/FileExistsPlugin.js +58 -0
- package/examples/node_modules/enhanced-resolve/lib/ImportsFieldPlugin.js +171 -0
- package/examples/node_modules/enhanced-resolve/lib/JoinRequestPartPlugin.js +64 -0
- package/examples/node_modules/enhanced-resolve/lib/JoinRequestPlugin.js +41 -0
- package/examples/node_modules/enhanced-resolve/lib/LogInfoPlugin.js +50 -0
- package/examples/node_modules/enhanced-resolve/lib/MainFieldPlugin.js +81 -0
- package/examples/node_modules/enhanced-resolve/lib/ModulesInHierachicDirectoriesPlugin.js +9 -0
- package/examples/node_modules/enhanced-resolve/lib/ModulesInHierarchicalDirectoriesPlugin.js +80 -0
- package/examples/node_modules/enhanced-resolve/lib/ModulesInRootPlugin.js +47 -0
- package/examples/node_modules/enhanced-resolve/lib/NextPlugin.js +33 -0
- package/examples/node_modules/enhanced-resolve/lib/ParsePlugin.js +74 -0
- package/examples/node_modules/enhanced-resolve/lib/PnpPlugin.js +103 -0
- package/examples/node_modules/enhanced-resolve/lib/Resolver.js +500 -0
- package/examples/node_modules/enhanced-resolve/lib/ResolverFactory.js +661 -0
- package/examples/node_modules/enhanced-resolve/lib/RestrictionsPlugin.js +65 -0
- package/examples/node_modules/enhanced-resolve/lib/ResultPlugin.js +42 -0
- package/examples/node_modules/enhanced-resolve/lib/RootsPlugin.js +62 -0
- package/examples/node_modules/enhanced-resolve/lib/SelfReferencePlugin.js +80 -0
- package/examples/node_modules/enhanced-resolve/lib/SymlinkPlugin.js +88 -0
- package/examples/node_modules/enhanced-resolve/lib/SyncAsyncFileSystemDecorator.js +95 -0
- package/examples/node_modules/enhanced-resolve/lib/TryNextPlugin.js +41 -0
- package/examples/node_modules/enhanced-resolve/lib/UnsafeCachePlugin.js +99 -0
- package/examples/node_modules/enhanced-resolve/lib/UseFilePlugin.js +49 -0
- package/examples/node_modules/enhanced-resolve/lib/createInnerContext.js +37 -0
- package/examples/node_modules/enhanced-resolve/lib/forEachBail.js +25 -0
- package/examples/node_modules/enhanced-resolve/lib/getInnerRequest.js +27 -0
- package/examples/node_modules/enhanced-resolve/lib/getPaths.js +37 -0
- package/examples/node_modules/enhanced-resolve/lib/index.js +131 -0
- package/examples/node_modules/enhanced-resolve/lib/util/entrypoints.js +667 -0
- package/examples/node_modules/enhanced-resolve/lib/util/identifier.js +26 -0
- package/examples/node_modules/enhanced-resolve/lib/util/path.js +221 -0
- package/examples/node_modules/enhanced-resolve/lib/util/process-browser.js +16 -0
- package/examples/node_modules/enhanced-resolve/package.json +70 -0
- package/examples/node_modules/enhanced-resolve/types.d.ts +506 -0
- package/examples/node_modules/envinfo/dist/cli.js +1 -1
- package/examples/node_modules/envinfo/dist/envinfo.js +1 -1
- package/examples/node_modules/envinfo/package.json +55 -89
- package/examples/node_modules/es-module-lexer/LICENSE +10 -0
- package/examples/node_modules/es-module-lexer/README.md +251 -0
- package/examples/node_modules/es-module-lexer/dist/lexer.asm.js +1 -0
- package/examples/node_modules/es-module-lexer/dist/lexer.cjs +1 -0
- package/examples/node_modules/es-module-lexer/dist/lexer.js +2 -0
- package/examples/node_modules/es-module-lexer/lexer.js +899 -0
- package/examples/node_modules/es-module-lexer/package.json +53 -0
- package/examples/node_modules/es-module-lexer/types/lexer.d.ts +86 -0
- package/examples/node_modules/escalade/dist/index.js +22 -0
- package/examples/node_modules/escalade/dist/index.mjs +22 -0
- package/examples/node_modules/escalade/index.d.ts +3 -0
- package/examples/node_modules/escalade/license +9 -0
- package/examples/node_modules/escalade/package.json +61 -0
- package/examples/node_modules/escalade/readme.md +211 -0
- package/examples/node_modules/escalade/sync/index.d.ts +2 -0
- package/examples/node_modules/escalade/sync/index.js +18 -0
- package/examples/node_modules/escalade/sync/index.mjs +18 -0
- package/examples/node_modules/eslint-scope/CHANGELOG.md +70 -0
- package/examples/node_modules/eslint-scope/LICENSE +22 -0
- package/examples/node_modules/eslint-scope/README.md +54 -0
- package/examples/node_modules/eslint-scope/lib/definition.js +86 -0
- package/examples/node_modules/eslint-scope/lib/index.js +165 -0
- package/examples/node_modules/eslint-scope/lib/pattern-visitor.js +152 -0
- package/examples/node_modules/eslint-scope/lib/reference.js +167 -0
- package/examples/node_modules/eslint-scope/lib/referencer.js +629 -0
- package/examples/node_modules/eslint-scope/lib/scope-manager.js +247 -0
- package/examples/node_modules/eslint-scope/lib/scope.js +748 -0
- package/examples/node_modules/eslint-scope/lib/variable.js +88 -0
- package/examples/node_modules/eslint-scope/package.json +48 -0
- package/examples/node_modules/esrecurse/.babelrc +3 -0
- package/examples/node_modules/esrecurse/README.md +171 -0
- package/examples/node_modules/esrecurse/esrecurse.js +117 -0
- package/examples/node_modules/esrecurse/gulpfile.babel.js +92 -0
- package/examples/node_modules/esrecurse/node_modules/estraverse/.jshintrc +16 -0
- package/examples/node_modules/esrecurse/node_modules/estraverse/LICENSE.BSD +19 -0
- package/examples/node_modules/esrecurse/node_modules/estraverse/README.md +153 -0
- package/examples/node_modules/esrecurse/node_modules/estraverse/estraverse.js +805 -0
- package/examples/node_modules/esrecurse/node_modules/estraverse/gulpfile.js +70 -0
- package/examples/node_modules/esrecurse/node_modules/estraverse/package.json +40 -0
- package/examples/node_modules/esrecurse/package.json +52 -0
- package/examples/node_modules/estraverse/.jshintrc +16 -0
- package/examples/node_modules/estraverse/LICENSE.BSD +19 -0
- package/examples/node_modules/estraverse/README.md +153 -0
- package/examples/node_modules/estraverse/estraverse.js +782 -0
- package/examples/node_modules/estraverse/gulpfile.js +70 -0
- package/examples/node_modules/estraverse/package.json +40 -0
- package/examples/node_modules/events/.airtap.yml +15 -0
- package/examples/node_modules/events/.github/FUNDING.yml +12 -0
- package/examples/node_modules/events/.travis.yml +18 -0
- package/examples/node_modules/events/History.md +118 -0
- package/examples/node_modules/events/LICENSE +22 -0
- package/examples/node_modules/events/Readme.md +50 -0
- package/examples/node_modules/events/events.js +497 -0
- package/examples/node_modules/events/package.json +37 -0
- package/examples/node_modules/events/security.md +10 -0
- package/examples/node_modules/events/tests/add-listeners.js +111 -0
- package/examples/node_modules/events/tests/check-listener-leaks.js +101 -0
- package/examples/node_modules/events/tests/common.js +104 -0
- package/examples/node_modules/events/tests/errors.js +13 -0
- package/examples/node_modules/events/tests/events-list.js +28 -0
- package/examples/node_modules/events/tests/events-once.js +234 -0
- package/examples/node_modules/events/tests/index.js +64 -0
- package/examples/node_modules/events/tests/legacy-compat.js +16 -0
- package/examples/node_modules/events/tests/listener-count.js +37 -0
- package/examples/node_modules/events/tests/listeners-side-effects.js +56 -0
- package/examples/node_modules/events/tests/listeners.js +168 -0
- package/examples/node_modules/events/tests/max-listeners.js +47 -0
- package/examples/node_modules/events/tests/method-names.js +35 -0
- package/examples/node_modules/events/tests/modify-in-emit.js +90 -0
- package/examples/node_modules/events/tests/num-args.js +60 -0
- package/examples/node_modules/events/tests/once.js +83 -0
- package/examples/node_modules/events/tests/prepend.js +31 -0
- package/examples/node_modules/events/tests/remove-all-listeners.js +133 -0
- package/examples/node_modules/events/tests/remove-listeners.js +212 -0
- package/examples/node_modules/events/tests/set-max-listeners-side-effects.js +31 -0
- package/examples/node_modules/events/tests/special-event-names.js +45 -0
- package/examples/node_modules/events/tests/subclass.js +66 -0
- package/examples/node_modules/events/tests/symbols.js +25 -0
- package/examples/node_modules/execa/index.d.ts +12 -2
- package/examples/node_modules/execa/index.js +14 -4
- package/examples/node_modules/execa/lib/command.js +25 -5
- package/examples/node_modules/execa/lib/error.js +2 -0
- package/examples/node_modules/execa/lib/kill.js +7 -4
- package/examples/node_modules/execa/lib/stream.js +1 -1
- package/examples/node_modules/execa/package.json +72 -100
- package/examples/node_modules/execa/readme.md +16 -3
- package/examples/node_modules/fast-deep-equal/LICENSE +21 -0
- package/examples/node_modules/fast-deep-equal/README.md +96 -0
- package/examples/node_modules/fast-deep-equal/es6/index.d.ts +2 -0
- package/examples/node_modules/fast-deep-equal/es6/index.js +72 -0
- package/examples/node_modules/fast-deep-equal/es6/react.d.ts +2 -0
- package/examples/node_modules/fast-deep-equal/es6/react.js +79 -0
- package/examples/node_modules/fast-deep-equal/index.d.ts +4 -0
- package/examples/node_modules/fast-deep-equal/index.js +46 -0
- package/examples/node_modules/fast-deep-equal/package.json +61 -0
- package/examples/node_modules/fast-deep-equal/react.d.ts +2 -0
- package/examples/node_modules/fast-deep-equal/react.js +53 -0
- package/examples/node_modules/fast-json-stable-stringify/.eslintrc.yml +26 -0
- package/examples/node_modules/fast-json-stable-stringify/.github/FUNDING.yml +1 -0
- package/examples/node_modules/fast-json-stable-stringify/.travis.yml +8 -0
- package/examples/node_modules/fast-json-stable-stringify/LICENSE +21 -0
- package/examples/node_modules/fast-json-stable-stringify/README.md +131 -0
- package/examples/node_modules/fast-json-stable-stringify/benchmark/index.js +31 -0
- package/examples/node_modules/fast-json-stable-stringify/benchmark/test.json +137 -0
- package/examples/node_modules/fast-json-stable-stringify/example/key_cmp.js +7 -0
- package/examples/node_modules/fast-json-stable-stringify/example/nested.js +3 -0
- package/examples/node_modules/fast-json-stable-stringify/example/str.js +3 -0
- package/examples/node_modules/fast-json-stable-stringify/example/value_cmp.js +7 -0
- package/examples/node_modules/fast-json-stable-stringify/index.d.ts +4 -0
- package/examples/node_modules/fast-json-stable-stringify/index.js +59 -0
- package/examples/node_modules/fast-json-stable-stringify/package.json +52 -0
- package/examples/node_modules/fast-json-stable-stringify/test/cmp.js +13 -0
- package/examples/node_modules/fast-json-stable-stringify/test/nested.js +44 -0
- package/examples/node_modules/fast-json-stable-stringify/test/str.js +46 -0
- package/examples/node_modules/fast-json-stable-stringify/test/to-json.js +22 -0
- package/examples/node_modules/fastest-levenshtein/package.json +33 -60
- package/examples/node_modules/find-up/package.json +51 -83
- package/examples/node_modules/function-bind/package.json +23 -54
- package/examples/node_modules/get-stream/index.d.ts +1 -1
- package/examples/node_modules/get-stream/package.json +45 -77
- package/examples/node_modules/get-stream/readme.md +1 -1
- package/examples/node_modules/glob-to-regexp/.travis.yml +4 -0
- package/examples/node_modules/glob-to-regexp/README.md +75 -0
- package/examples/node_modules/glob-to-regexp/index.js +130 -0
- package/examples/node_modules/glob-to-regexp/package.json +23 -0
- package/examples/node_modules/glob-to-regexp/test.js +235 -0
- package/examples/node_modules/graceful-fs/LICENSE +15 -0
- package/examples/node_modules/graceful-fs/README.md +143 -0
- package/examples/node_modules/graceful-fs/clone.js +23 -0
- package/examples/node_modules/graceful-fs/graceful-fs.js +429 -0
- package/examples/node_modules/graceful-fs/legacy-streams.js +118 -0
- package/examples/node_modules/graceful-fs/package.json +50 -0
- package/examples/node_modules/graceful-fs/polyfills.js +348 -0
- package/examples/node_modules/has/package.json +21 -46
- package/examples/node_modules/has-flag/index.d.ts +39 -0
- package/examples/node_modules/has-flag/index.js +8 -0
- package/examples/node_modules/has-flag/license +9 -0
- package/examples/node_modules/has-flag/package.json +46 -0
- package/examples/node_modules/has-flag/readme.md +89 -0
- package/examples/node_modules/human-signals/package.json +27 -59
- package/examples/node_modules/import-local/index.js +9 -4
- package/examples/node_modules/import-local/package.json +50 -81
- package/examples/node_modules/import-local/readme.md +7 -8
- package/examples/node_modules/interpret/package.json +24 -67
- package/examples/node_modules/is-core-module/.eslintrc +0 -1
- package/examples/node_modules/is-core-module/.nycrc +0 -4
- package/examples/node_modules/is-core-module/CHANGELOG.md +69 -0
- package/examples/node_modules/is-core-module/README.md +6 -3
- package/examples/node_modules/is-core-module/core.json +85 -16
- package/examples/node_modules/is-core-module/index.js +1 -1
- package/examples/node_modules/is-core-module/package.json +67 -92
- package/examples/node_modules/is-core-module/test/index.js +47 -0
- package/examples/node_modules/is-plain-object/package.json +26 -68
- package/examples/node_modules/is-stream/index.d.ts +0 -1
- package/examples/node_modules/is-stream/index.js +1 -2
- package/examples/node_modules/is-stream/license +1 -1
- package/examples/node_modules/is-stream/package.json +40 -71
- package/examples/node_modules/is-stream/readme.md +12 -9
- package/examples/node_modules/isexe/package.json +16 -45
- package/examples/node_modules/isobject/package.json +24 -69
- package/examples/node_modules/jest-worker/LICENSE +21 -0
- package/examples/node_modules/jest-worker/README.md +247 -0
- package/examples/node_modules/jest-worker/build/Farm.d.ts +29 -0
- package/examples/node_modules/jest-worker/build/Farm.js +206 -0
- package/examples/node_modules/jest-worker/build/FifoQueue.d.ts +18 -0
- package/examples/node_modules/jest-worker/build/FifoQueue.js +171 -0
- package/examples/node_modules/jest-worker/build/PriorityQueue.d.ts +41 -0
- package/examples/node_modules/jest-worker/build/PriorityQueue.js +188 -0
- package/examples/node_modules/jest-worker/build/WorkerPool.d.ts +13 -0
- package/examples/node_modules/jest-worker/build/WorkerPool.js +49 -0
- package/examples/node_modules/jest-worker/build/base/BaseWorkerPool.d.ts +21 -0
- package/examples/node_modules/jest-worker/build/base/BaseWorkerPool.js +201 -0
- package/examples/node_modules/jest-worker/build/index.d.ts +49 -0
- package/examples/node_modules/jest-worker/build/index.js +223 -0
- package/examples/node_modules/jest-worker/build/types.d.ts +143 -0
- package/examples/node_modules/jest-worker/build/types.js +39 -0
- package/examples/node_modules/jest-worker/build/workers/ChildProcessWorker.d.ts +51 -0
- package/examples/node_modules/jest-worker/build/workers/ChildProcessWorker.js +333 -0
- package/examples/node_modules/jest-worker/build/workers/NodeThreadsWorker.d.ts +34 -0
- package/examples/node_modules/jest-worker/build/workers/NodeThreadsWorker.js +344 -0
- package/examples/node_modules/jest-worker/build/workers/messageParent.d.ts +8 -0
- package/examples/node_modules/jest-worker/build/workers/messageParent.js +38 -0
- package/examples/node_modules/jest-worker/build/workers/processChild.d.ts +7 -0
- package/examples/node_modules/jest-worker/build/workers/processChild.js +148 -0
- package/examples/node_modules/jest-worker/build/workers/threadChild.d.ts +7 -0
- package/examples/node_modules/jest-worker/build/workers/threadChild.js +159 -0
- package/examples/node_modules/jest-worker/package.json +38 -0
- package/examples/node_modules/json-parse-better-errors/CHANGELOG.md +46 -0
- package/examples/node_modules/json-parse-better-errors/LICENSE.md +7 -0
- package/examples/node_modules/json-parse-better-errors/README.md +46 -0
- package/examples/node_modules/json-parse-better-errors/index.js +38 -0
- package/examples/node_modules/json-parse-better-errors/package.json +45 -0
- package/examples/node_modules/json-schema-traverse/.eslintrc.yml +27 -0
- package/examples/node_modules/json-schema-traverse/.travis.yml +8 -0
- package/examples/node_modules/json-schema-traverse/LICENSE +21 -0
- package/examples/node_modules/json-schema-traverse/README.md +83 -0
- package/examples/node_modules/json-schema-traverse/index.js +89 -0
- package/examples/node_modules/json-schema-traverse/package.json +43 -0
- package/examples/node_modules/json-schema-traverse/spec/.eslintrc.yml +6 -0
- package/examples/node_modules/json-schema-traverse/spec/fixtures/schema.js +125 -0
- package/examples/node_modules/json-schema-traverse/spec/index.spec.js +171 -0
- package/examples/node_modules/kind-of/package.json +27 -83
- package/examples/node_modules/loader-runner/LICENSE +21 -0
- package/examples/node_modules/loader-runner/README.md +53 -0
- package/examples/node_modules/loader-runner/lib/LoaderLoadingError.js +11 -0
- package/examples/node_modules/loader-runner/lib/LoaderRunner.js +415 -0
- package/examples/node_modules/loader-runner/lib/loadLoader.js +54 -0
- package/examples/node_modules/loader-runner/package.json +45 -0
- package/examples/node_modules/locate-path/package.json +43 -75
- package/examples/node_modules/merge-stream/package.json +10 -45
- package/examples/node_modules/mime-db/HISTORY.md +507 -0
- package/examples/node_modules/mime-db/LICENSE +23 -0
- package/examples/node_modules/mime-db/README.md +100 -0
- package/examples/node_modules/mime-db/db.json +8519 -0
- package/examples/node_modules/mime-db/index.js +12 -0
- package/examples/node_modules/mime-db/package.json +60 -0
- package/examples/node_modules/mime-types/HISTORY.md +397 -0
- package/examples/node_modules/mime-types/LICENSE +23 -0
- package/examples/node_modules/mime-types/README.md +113 -0
- package/examples/node_modules/mime-types/index.js +188 -0
- package/examples/node_modules/mime-types/package.json +44 -0
- package/examples/node_modules/mimic-fn/package.json +40 -72
- package/examples/node_modules/neo-async/LICENSE +22 -0
- package/examples/node_modules/neo-async/README.md +273 -0
- package/examples/node_modules/neo-async/all.js +3 -0
- package/examples/node_modules/neo-async/allLimit.js +3 -0
- package/examples/node_modules/neo-async/allSeries.js +3 -0
- package/examples/node_modules/neo-async/angelFall.js +3 -0
- package/examples/node_modules/neo-async/any.js +3 -0
- package/examples/node_modules/neo-async/anyLimit.js +3 -0
- package/examples/node_modules/neo-async/anySeries.js +3 -0
- package/examples/node_modules/neo-async/apply.js +3 -0
- package/examples/node_modules/neo-async/applyEach.js +3 -0
- package/examples/node_modules/neo-async/applyEachSeries.js +3 -0
- package/examples/node_modules/neo-async/async.js +9184 -0
- package/examples/node_modules/neo-async/async.min.js +80 -0
- package/examples/node_modules/neo-async/asyncify.js +3 -0
- package/examples/node_modules/neo-async/auto.js +3 -0
- package/examples/node_modules/neo-async/autoInject.js +3 -0
- package/examples/node_modules/neo-async/cargo.js +3 -0
- package/examples/node_modules/neo-async/compose.js +3 -0
- package/examples/node_modules/neo-async/concat.js +3 -0
- package/examples/node_modules/neo-async/concatLimit.js +3 -0
- package/examples/node_modules/neo-async/concatSeries.js +3 -0
- package/examples/node_modules/neo-async/constant.js +3 -0
- package/examples/node_modules/neo-async/createLogger.js +3 -0
- package/examples/node_modules/neo-async/detect.js +3 -0
- package/examples/node_modules/neo-async/detectLimit.js +3 -0
- package/examples/node_modules/neo-async/detectSeries.js +3 -0
- package/examples/node_modules/neo-async/dir.js +3 -0
- package/examples/node_modules/neo-async/doDuring.js +3 -0
- package/examples/node_modules/neo-async/doUntil.js +3 -0
- package/examples/node_modules/neo-async/doWhilst.js +3 -0
- package/examples/node_modules/neo-async/during.js +3 -0
- package/examples/node_modules/neo-async/each.js +3 -0
- package/examples/node_modules/neo-async/eachLimit.js +3 -0
- package/examples/node_modules/neo-async/eachOf.js +3 -0
- package/examples/node_modules/neo-async/eachOfLimit.js +3 -0
- package/examples/node_modules/neo-async/eachOfSeries.js +3 -0
- package/examples/node_modules/neo-async/eachSeries.js +3 -0
- package/examples/node_modules/neo-async/ensureAsync.js +3 -0
- package/examples/node_modules/neo-async/every.js +3 -0
- package/examples/node_modules/neo-async/everyLimit.js +3 -0
- package/examples/node_modules/neo-async/everySeries.js +3 -0
- package/examples/node_modules/neo-async/fast.js +3 -0
- package/examples/node_modules/neo-async/filter.js +3 -0
- package/examples/node_modules/neo-async/filterLimit.js +3 -0
- package/examples/node_modules/neo-async/filterSeries.js +3 -0
- package/examples/node_modules/neo-async/find.js +3 -0
- package/examples/node_modules/neo-async/findLimit.js +3 -0
- package/examples/node_modules/neo-async/findSeries.js +3 -0
- package/examples/node_modules/neo-async/foldl.js +3 -0
- package/examples/node_modules/neo-async/foldr.js +3 -0
- package/examples/node_modules/neo-async/forEach.js +3 -0
- package/examples/node_modules/neo-async/forEachLimit.js +3 -0
- package/examples/node_modules/neo-async/forEachOf.js +3 -0
- package/examples/node_modules/neo-async/forEachOfLimit.js +3 -0
- package/examples/node_modules/neo-async/forEachOfSeries.js +3 -0
- package/examples/node_modules/neo-async/forEachSeries.js +3 -0
- package/examples/node_modules/neo-async/forever.js +3 -0
- package/examples/node_modules/neo-async/groupBy.js +3 -0
- package/examples/node_modules/neo-async/groupByLimit.js +3 -0
- package/examples/node_modules/neo-async/groupBySeries.js +3 -0
- package/examples/node_modules/neo-async/inject.js +3 -0
- package/examples/node_modules/neo-async/iterator.js +3 -0
- package/examples/node_modules/neo-async/log.js +3 -0
- package/examples/node_modules/neo-async/map.js +3 -0
- package/examples/node_modules/neo-async/mapLimit.js +3 -0
- package/examples/node_modules/neo-async/mapSeries.js +3 -0
- package/examples/node_modules/neo-async/mapValues.js +3 -0
- package/examples/node_modules/neo-async/mapValuesLimit.js +3 -0
- package/examples/node_modules/neo-async/mapValuesSeries.js +3 -0
- package/examples/node_modules/neo-async/memoize.js +3 -0
- package/examples/node_modules/neo-async/nextTick.js +3 -0
- package/examples/node_modules/neo-async/omit.js +3 -0
- package/examples/node_modules/neo-async/omitLimit.js +3 -0
- package/examples/node_modules/neo-async/omitSeries.js +3 -0
- package/examples/node_modules/neo-async/package.json +57 -0
- package/examples/node_modules/neo-async/parallel.js +3 -0
- package/examples/node_modules/neo-async/parallelLimit.js +3 -0
- package/examples/node_modules/neo-async/pick.js +3 -0
- package/examples/node_modules/neo-async/pickLimit.js +3 -0
- package/examples/node_modules/neo-async/pickSeries.js +3 -0
- package/examples/node_modules/neo-async/priorityQueue.js +3 -0
- package/examples/node_modules/neo-async/queue.js +3 -0
- package/examples/node_modules/neo-async/race.js +3 -0
- package/examples/node_modules/neo-async/reduce.js +3 -0
- package/examples/node_modules/neo-async/reduceRight.js +3 -0
- package/examples/node_modules/neo-async/reflect.js +3 -0
- package/examples/node_modules/neo-async/reflectAll.js +3 -0
- package/examples/node_modules/neo-async/reject.js +3 -0
- package/examples/node_modules/neo-async/rejectLimit.js +3 -0
- package/examples/node_modules/neo-async/rejectSeries.js +3 -0
- package/examples/node_modules/neo-async/retry.js +3 -0
- package/examples/node_modules/neo-async/retryable.js +3 -0
- package/examples/node_modules/neo-async/safe.js +3 -0
- package/examples/node_modules/neo-async/select.js +3 -0
- package/examples/node_modules/neo-async/selectLimit.js +3 -0
- package/examples/node_modules/neo-async/selectSeries.js +3 -0
- package/examples/node_modules/neo-async/seq.js +3 -0
- package/examples/node_modules/neo-async/series.js +3 -0
- package/examples/node_modules/neo-async/setImmediate.js +3 -0
- package/examples/node_modules/neo-async/some.js +3 -0
- package/examples/node_modules/neo-async/someLimit.js +3 -0
- package/examples/node_modules/neo-async/someSeries.js +3 -0
- package/examples/node_modules/neo-async/sortBy.js +3 -0
- package/examples/node_modules/neo-async/sortByLimit.js +3 -0
- package/examples/node_modules/neo-async/sortBySeries.js +3 -0
- package/examples/node_modules/neo-async/timeout.js +3 -0
- package/examples/node_modules/neo-async/times.js +3 -0
- package/examples/node_modules/neo-async/timesLimit.js +3 -0
- package/examples/node_modules/neo-async/timesSeries.js +3 -0
- package/examples/node_modules/neo-async/transform.js +3 -0
- package/examples/node_modules/neo-async/transformLimit.js +3 -0
- package/examples/node_modules/neo-async/transformSeries.js +3 -0
- package/examples/node_modules/neo-async/tryEach.js +3 -0
- package/examples/node_modules/neo-async/unmemoize.js +3 -0
- package/examples/node_modules/neo-async/until.js +3 -0
- package/examples/node_modules/neo-async/waterfall.js +3 -0
- package/examples/node_modules/neo-async/whilst.js +3 -0
- package/examples/node_modules/neo-async/wrapSync.js +3 -0
- package/examples/node_modules/node-releases/LICENSE +21 -0
- package/examples/node_modules/node-releases/README.md +31 -0
- package/examples/node_modules/node-releases/data/processed/envs.json +1 -0
- package/examples/node_modules/node-releases/data/release-schedule/release-schedule.json +1 -0
- package/examples/node_modules/node-releases/package.json +18 -0
- package/examples/node_modules/npm-run-path/package.json +42 -74
- package/examples/node_modules/onetime/package.json +41 -73
- package/examples/node_modules/p-limit/package.json +50 -82
- package/examples/node_modules/p-locate/package.json +51 -83
- package/examples/node_modules/p-try/package.json +40 -72
- package/examples/node_modules/path-exists/package.json +37 -69
- package/examples/node_modules/path-key/package.json +37 -70
- package/examples/node_modules/path-parse/index.js +17 -35
- package/examples/node_modules/path-parse/package.json +13 -41
- package/examples/node_modules/picocolors/LICENSE +15 -0
- package/examples/node_modules/picocolors/README.md +21 -0
- package/examples/node_modules/picocolors/package.json +25 -0
- package/examples/node_modules/picocolors/picocolors.browser.js +4 -0
- package/examples/node_modules/picocolors/picocolors.d.ts +5 -0
- package/examples/node_modules/picocolors/picocolors.js +58 -0
- package/examples/node_modules/picocolors/types.ts +30 -0
- package/examples/node_modules/pkg-dir/package.json +54 -86
- package/examples/node_modules/punycode/LICENSE-MIT.txt +20 -0
- package/examples/node_modules/punycode/README.md +122 -0
- package/examples/node_modules/punycode/package.json +58 -0
- package/examples/node_modules/punycode/punycode.es6.js +441 -0
- package/examples/node_modules/punycode/punycode.js +440 -0
- package/examples/node_modules/randombytes/.travis.yml +15 -0
- package/examples/node_modules/randombytes/.zuul.yml +1 -0
- package/examples/node_modules/randombytes/LICENSE +21 -0
- package/examples/node_modules/randombytes/README.md +14 -0
- package/examples/node_modules/randombytes/browser.js +50 -0
- package/examples/node_modules/randombytes/index.js +1 -0
- package/examples/node_modules/randombytes/package.json +36 -0
- package/examples/node_modules/randombytes/test.js +81 -0
- package/examples/node_modules/rechoir/README.md +9 -0
- package/examples/node_modules/rechoir/lib/extension.js +35 -10
- package/examples/node_modules/rechoir/package.json +24 -67
- package/examples/node_modules/resolve/.eslintrc +34 -8
- package/examples/node_modules/resolve/.github/FUNDING.yml +12 -0
- package/examples/node_modules/resolve/appveyor.yml +4 -2
- package/examples/node_modules/resolve/async.js +3 -0
- package/examples/node_modules/resolve/bin/resolve +50 -0
- package/examples/node_modules/resolve/lib/async.js +10 -1
- package/examples/node_modules/resolve/lib/core.js +1 -2
- package/examples/node_modules/resolve/lib/core.json +85 -16
- package/examples/node_modules/resolve/lib/homedir.js +24 -0
- package/examples/node_modules/resolve/lib/node-modules-paths.js +1 -1
- package/examples/node_modules/resolve/lib/sync.js +14 -5
- package/examples/node_modules/resolve/package.json +60 -78
- package/examples/node_modules/resolve/readme.markdown +35 -13
- package/examples/node_modules/resolve/sync.js +3 -0
- package/examples/node_modules/resolve/test/home_paths.js +127 -0
- package/examples/node_modules/resolve/test/home_paths_sync.js +114 -0
- package/examples/node_modules/resolve/test/mock_sync.js +2 -4
- package/examples/node_modules/resolve/test/node_path.js +1 -1
- package/examples/node_modules/resolve/test/resolver/invalid_main/package.json +1 -1
- package/examples/node_modules/resolve/test/resolver/malformed_package_json/index.js +0 -0
- package/examples/node_modules/resolve/test/resolver/malformed_package_json/package.json +1 -0
- package/examples/node_modules/resolve/test/resolver.js +99 -3
- package/examples/node_modules/resolve/test/resolver_sync.js +310 -23
- package/examples/node_modules/resolve-cwd/package.json +41 -73
- package/examples/node_modules/resolve-from/package.json +34 -66
- package/examples/node_modules/safe-buffer/LICENSE +21 -0
- package/examples/node_modules/safe-buffer/README.md +584 -0
- package/examples/node_modules/safe-buffer/index.d.ts +187 -0
- package/examples/node_modules/safe-buffer/index.js +65 -0
- package/examples/node_modules/safe-buffer/package.json +51 -0
- package/examples/node_modules/schema-utils/LICENSE +20 -0
- package/examples/node_modules/schema-utils/README.md +290 -0
- package/examples/node_modules/schema-utils/declarations/ValidationError.d.ts +74 -0
- package/examples/node_modules/schema-utils/declarations/index.d.ts +3 -0
- package/examples/node_modules/schema-utils/declarations/keywords/absolutePath.d.ts +10 -0
- package/examples/node_modules/schema-utils/declarations/util/Range.d.ts +79 -0
- package/examples/node_modules/schema-utils/declarations/util/hints.d.ts +3 -0
- package/examples/node_modules/schema-utils/declarations/validate.d.ts +37 -0
- package/examples/node_modules/schema-utils/dist/ValidationError.js +1271 -0
- package/examples/node_modules/schema-utils/dist/index.js +11 -0
- package/examples/node_modules/schema-utils/dist/keywords/absolutePath.js +93 -0
- package/examples/node_modules/schema-utils/dist/util/Range.js +163 -0
- package/examples/node_modules/schema-utils/dist/util/hints.js +105 -0
- package/examples/node_modules/schema-utils/dist/validate.js +163 -0
- package/examples/node_modules/schema-utils/package.json +78 -0
- package/examples/node_modules/serialize-javascript/LICENSE +27 -0
- package/examples/node_modules/serialize-javascript/README.md +142 -0
- package/examples/node_modules/serialize-javascript/index.js +268 -0
- package/examples/node_modules/serialize-javascript/package.json +36 -0
- package/examples/node_modules/shallow-clone/package.json +20 -57
- package/examples/node_modules/shebang-command/package.json +32 -64
- package/examples/node_modules/shebang-regex/package.json +33 -65
- package/examples/node_modules/signal-exit/README.md +1 -1
- package/examples/node_modules/signal-exit/index.js +169 -130
- package/examples/node_modules/signal-exit/package.json +24 -52
- package/examples/node_modules/source-map/CHANGELOG.md +301 -0
- package/examples/node_modules/source-map/LICENSE +28 -0
- package/examples/node_modules/source-map/README.md +742 -0
- package/examples/node_modules/source-map/dist/source-map.debug.js +3234 -0
- package/examples/node_modules/source-map/dist/source-map.js +3233 -0
- package/examples/node_modules/source-map/dist/source-map.min.js +2 -0
- package/examples/node_modules/source-map/dist/source-map.min.js.map +1 -0
- package/examples/node_modules/source-map/lib/array-set.js +121 -0
- package/examples/node_modules/source-map/lib/base64-vlq.js +140 -0
- package/examples/node_modules/source-map/lib/base64.js +67 -0
- package/examples/node_modules/source-map/lib/binary-search.js +111 -0
- package/examples/node_modules/source-map/lib/mapping-list.js +79 -0
- package/examples/node_modules/source-map/lib/quick-sort.js +114 -0
- package/examples/node_modules/source-map/lib/source-map-consumer.js +1145 -0
- package/examples/node_modules/source-map/lib/source-map-generator.js +425 -0
- package/examples/node_modules/source-map/lib/source-node.js +413 -0
- package/examples/node_modules/source-map/lib/util.js +488 -0
- package/examples/node_modules/source-map/package.json +73 -0
- package/examples/node_modules/source-map/source-map.d.ts +98 -0
- package/examples/node_modules/source-map/source-map.js +8 -0
- package/examples/node_modules/source-map-support/LICENSE.md +21 -0
- package/examples/node_modules/source-map-support/README.md +284 -0
- package/examples/node_modules/source-map-support/browser-source-map-support.js +114 -0
- package/examples/node_modules/source-map-support/package.json +31 -0
- package/examples/node_modules/source-map-support/register-hook-require.js +1 -0
- package/examples/node_modules/source-map-support/register.js +1 -0
- package/examples/node_modules/source-map-support/source-map-support.js +625 -0
- package/examples/node_modules/strip-final-newline/package.json +38 -70
- package/examples/node_modules/supports-color/browser.js +24 -0
- package/examples/node_modules/supports-color/index.js +152 -0
- package/examples/node_modules/supports-color/license +9 -0
- package/examples/node_modules/supports-color/package.json +58 -0
- package/examples/node_modules/supports-color/readme.md +77 -0
- package/examples/node_modules/supports-preserve-symlinks-flag/.eslintrc +14 -0
- package/examples/node_modules/supports-preserve-symlinks-flag/.github/FUNDING.yml +12 -0
- package/examples/node_modules/supports-preserve-symlinks-flag/.nycrc +9 -0
- package/examples/node_modules/supports-preserve-symlinks-flag/CHANGELOG.md +22 -0
- package/examples/node_modules/supports-preserve-symlinks-flag/LICENSE +21 -0
- package/examples/node_modules/supports-preserve-symlinks-flag/README.md +42 -0
- package/examples/node_modules/supports-preserve-symlinks-flag/browser.js +3 -0
- package/examples/node_modules/supports-preserve-symlinks-flag/index.js +9 -0
- package/examples/node_modules/supports-preserve-symlinks-flag/package.json +70 -0
- package/examples/node_modules/supports-preserve-symlinks-flag/test/index.js +29 -0
- package/examples/node_modules/tapable/LICENSE +21 -0
- package/examples/node_modules/tapable/README.md +296 -0
- package/examples/node_modules/tapable/lib/AsyncParallelBailHook.js +85 -0
- package/examples/node_modules/tapable/lib/AsyncParallelHook.js +37 -0
- package/examples/node_modules/tapable/lib/AsyncSeriesBailHook.js +42 -0
- package/examples/node_modules/tapable/lib/AsyncSeriesHook.js +37 -0
- package/examples/node_modules/tapable/lib/AsyncSeriesLoopHook.js +37 -0
- package/examples/node_modules/tapable/lib/AsyncSeriesWaterfallHook.js +47 -0
- package/examples/node_modules/tapable/lib/Hook.js +175 -0
- package/examples/node_modules/tapable/lib/HookCodeFactory.js +468 -0
- package/examples/node_modules/tapable/lib/HookMap.js +61 -0
- package/examples/node_modules/tapable/lib/MultiHook.js +54 -0
- package/examples/node_modules/tapable/lib/SyncBailHook.js +51 -0
- package/examples/node_modules/tapable/lib/SyncHook.js +46 -0
- package/examples/node_modules/tapable/lib/SyncLoopHook.js +46 -0
- package/examples/node_modules/tapable/lib/SyncWaterfallHook.js +57 -0
- package/examples/node_modules/tapable/lib/index.js +19 -0
- package/examples/node_modules/tapable/lib/util-browser.js +16 -0
- package/examples/node_modules/tapable/package.json +44 -0
- package/examples/node_modules/tapable/tapable.d.ts +116 -0
- package/examples/node_modules/terser/CHANGELOG.md +480 -0
- package/examples/node_modules/terser/LICENSE +29 -0
- package/examples/node_modules/terser/PATRONS.md +15 -0
- package/examples/node_modules/terser/README.md +1374 -0
- package/examples/node_modules/terser/bin/package.json +10 -0
- package/examples/node_modules/terser/bin/terser +21 -0
- package/examples/node_modules/terser/bin/uglifyjs +10 -0
- package/examples/node_modules/terser/dist/.gitkeep +0 -0
- package/examples/node_modules/terser/dist/bundle.min.js +28332 -0
- package/examples/node_modules/terser/dist/package.json +10 -0
- package/examples/node_modules/terser/lib/ast.js +1858 -0
- package/examples/node_modules/terser/lib/cli.js +479 -0
- package/examples/node_modules/terser/lib/compress/common.js +296 -0
- package/examples/node_modules/terser/lib/compress/compressor-flags.js +63 -0
- package/examples/node_modules/terser/lib/compress/drop-side-effect-free.js +350 -0
- package/examples/node_modules/terser/lib/compress/evaluate.js +461 -0
- package/examples/node_modules/terser/lib/compress/index.js +4667 -0
- package/examples/node_modules/terser/lib/compress/inference.js +948 -0
- package/examples/node_modules/terser/lib/compress/native-objects.js +184 -0
- package/examples/node_modules/terser/lib/compress/reduce-vars.js +675 -0
- package/examples/node_modules/terser/lib/compress/tighten-body.js +1461 -0
- package/examples/node_modules/terser/lib/equivalent-to.js +313 -0
- package/examples/node_modules/terser/lib/minify.js +335 -0
- package/examples/node_modules/terser/lib/mozilla-ast.js +1376 -0
- package/examples/node_modules/terser/lib/output.js +2347 -0
- package/examples/node_modules/terser/lib/parse.js +3362 -0
- package/examples/node_modules/terser/lib/propmangle.js +376 -0
- package/examples/node_modules/terser/lib/scope.js +1042 -0
- package/examples/node_modules/terser/lib/size.js +490 -0
- package/examples/node_modules/terser/lib/sourcemap.js +114 -0
- package/examples/node_modules/terser/lib/transform.js +318 -0
- package/examples/node_modules/terser/lib/utils/first_in_statement.js +50 -0
- package/examples/node_modules/terser/lib/utils/index.js +302 -0
- package/examples/node_modules/terser/main.js +27 -0
- package/examples/node_modules/terser/node_modules/source-map/CHANGELOG.md +344 -0
- package/examples/node_modules/terser/node_modules/source-map/LICENSE +28 -0
- package/examples/node_modules/terser/node_modules/source-map/README.md +822 -0
- package/examples/node_modules/terser/node_modules/source-map/dist/source-map.js +3351 -0
- package/examples/node_modules/terser/node_modules/source-map/lib/array-set.js +100 -0
- package/examples/node_modules/terser/node_modules/source-map/lib/base64-vlq.js +111 -0
- package/examples/node_modules/terser/node_modules/source-map/lib/base64.js +18 -0
- package/examples/node_modules/terser/node_modules/source-map/lib/binary-search.js +107 -0
- package/examples/node_modules/terser/node_modules/source-map/lib/mapping-list.js +80 -0
- package/examples/node_modules/terser/node_modules/source-map/lib/mappings.wasm +0 -0
- package/examples/node_modules/terser/node_modules/source-map/lib/read-wasm.js +40 -0
- package/examples/node_modules/terser/node_modules/source-map/lib/source-map-consumer.js +1254 -0
- package/examples/node_modules/terser/node_modules/source-map/lib/source-map-generator.js +413 -0
- package/examples/node_modules/terser/node_modules/source-map/lib/source-node.js +404 -0
- package/examples/node_modules/terser/node_modules/source-map/lib/util.js +546 -0
- package/examples/node_modules/terser/node_modules/source-map/lib/wasm.js +107 -0
- package/examples/node_modules/terser/node_modules/source-map/package.json +90 -0
- package/examples/node_modules/terser/node_modules/source-map/source-map.d.ts +369 -0
- package/examples/node_modules/terser/node_modules/source-map/source-map.js +8 -0
- package/examples/node_modules/terser/package.json +152 -0
- package/examples/node_modules/terser/tools/domprops.js +7771 -0
- package/examples/node_modules/terser/tools/exit.cjs +7 -0
- package/examples/node_modules/terser/tools/props.html +55 -0
- package/examples/node_modules/terser/tools/terser.d.ts +207 -0
- package/examples/node_modules/terser-webpack-plugin/LICENSE +20 -0
- package/examples/node_modules/terser-webpack-plugin/README.md +742 -0
- package/examples/node_modules/terser-webpack-plugin/dist/index.js +798 -0
- package/examples/node_modules/terser-webpack-plugin/dist/minify.js +50 -0
- package/examples/node_modules/terser-webpack-plugin/dist/options.json +164 -0
- package/examples/node_modules/terser-webpack-plugin/dist/utils.js +687 -0
- package/examples/node_modules/terser-webpack-plugin/package.json +114 -0
- package/examples/node_modules/terser-webpack-plugin/types/index.d.ts +329 -0
- package/examples/node_modules/terser-webpack-plugin/types/minify.d.ts +17 -0
- package/examples/node_modules/terser-webpack-plugin/types/utils.d.ts +100 -0
- package/examples/node_modules/uri-js/LICENSE +11 -0
- package/examples/node_modules/uri-js/README.md +203 -0
- package/examples/node_modules/uri-js/dist/es5/uri.all.d.ts +59 -0
- package/examples/node_modules/uri-js/dist/es5/uri.all.js +1443 -0
- package/examples/node_modules/uri-js/dist/es5/uri.all.js.map +1 -0
- package/examples/node_modules/uri-js/dist/es5/uri.all.min.d.ts +59 -0
- package/examples/node_modules/uri-js/dist/es5/uri.all.min.js +3 -0
- package/examples/node_modules/uri-js/dist/es5/uri.all.min.js.map +1 -0
- package/examples/node_modules/uri-js/dist/esnext/index.d.ts +1 -0
- package/examples/node_modules/uri-js/dist/esnext/index.js +17 -0
- package/examples/node_modules/uri-js/dist/esnext/index.js.map +1 -0
- package/examples/node_modules/uri-js/dist/esnext/regexps-iri.d.ts +3 -0
- package/examples/node_modules/uri-js/dist/esnext/regexps-iri.js +3 -0
- package/examples/node_modules/uri-js/dist/esnext/regexps-iri.js.map +1 -0
- package/examples/node_modules/uri-js/dist/esnext/regexps-uri.d.ts +4 -0
- package/examples/node_modules/uri-js/dist/esnext/regexps-uri.js +42 -0
- package/examples/node_modules/uri-js/dist/esnext/regexps-uri.js.map +1 -0
- package/examples/node_modules/uri-js/dist/esnext/schemes/http.d.ts +3 -0
- package/examples/node_modules/uri-js/dist/esnext/schemes/http.js +28 -0
- package/examples/node_modules/uri-js/dist/esnext/schemes/http.js.map +1 -0
- package/examples/node_modules/uri-js/dist/esnext/schemes/https.d.ts +3 -0
- package/examples/node_modules/uri-js/dist/esnext/schemes/https.js +9 -0
- package/examples/node_modules/uri-js/dist/esnext/schemes/https.js.map +1 -0
- package/examples/node_modules/uri-js/dist/esnext/schemes/mailto.d.ts +12 -0
- package/examples/node_modules/uri-js/dist/esnext/schemes/mailto.js +148 -0
- package/examples/node_modules/uri-js/dist/esnext/schemes/mailto.js.map +1 -0
- package/examples/node_modules/uri-js/dist/esnext/schemes/urn-uuid.d.ts +7 -0
- package/examples/node_modules/uri-js/dist/esnext/schemes/urn-uuid.js +23 -0
- package/examples/node_modules/uri-js/dist/esnext/schemes/urn-uuid.js.map +1 -0
- package/examples/node_modules/uri-js/dist/esnext/schemes/urn.d.ts +10 -0
- package/examples/node_modules/uri-js/dist/esnext/schemes/urn.js +49 -0
- package/examples/node_modules/uri-js/dist/esnext/schemes/urn.js.map +1 -0
- package/examples/node_modules/uri-js/dist/esnext/schemes/ws.d.ts +7 -0
- package/examples/node_modules/uri-js/dist/esnext/schemes/ws.js +41 -0
- package/examples/node_modules/uri-js/dist/esnext/schemes/ws.js.map +1 -0
- package/examples/node_modules/uri-js/dist/esnext/schemes/wss.d.ts +3 -0
- package/examples/node_modules/uri-js/dist/esnext/schemes/wss.js +9 -0
- package/examples/node_modules/uri-js/dist/esnext/schemes/wss.js.map +1 -0
- package/examples/node_modules/uri-js/dist/esnext/uri.d.ts +59 -0
- package/examples/node_modules/uri-js/dist/esnext/uri.js +480 -0
- package/examples/node_modules/uri-js/dist/esnext/uri.js.map +1 -0
- package/examples/node_modules/uri-js/dist/esnext/util.d.ts +6 -0
- package/examples/node_modules/uri-js/dist/esnext/util.js +36 -0
- package/examples/node_modules/uri-js/dist/esnext/util.js.map +1 -0
- package/examples/node_modules/uri-js/package.json +77 -0
- package/examples/node_modules/uri-js/yarn.lock +2558 -0
- package/examples/node_modules/watchpack/LICENSE +20 -0
- package/examples/node_modules/watchpack/README.md +149 -0
- package/examples/node_modules/watchpack/lib/DirectoryWatcher.js +785 -0
- package/examples/node_modules/watchpack/lib/LinkResolver.js +107 -0
- package/examples/node_modules/watchpack/lib/getWatcherManager.js +52 -0
- package/examples/node_modules/watchpack/lib/reducePlan.js +138 -0
- package/examples/node_modules/watchpack/lib/watchEventSource.js +335 -0
- package/examples/node_modules/watchpack/lib/watchpack.js +383 -0
- package/examples/node_modules/watchpack/package.json +49 -0
- package/examples/node_modules/webpack/LICENSE +20 -0
- package/examples/node_modules/webpack/README.md +711 -0
- package/examples/node_modules/webpack/SECURITY.md +9 -0
- package/examples/node_modules/webpack/bin/webpack.js +163 -0
- package/examples/node_modules/webpack/hot/dev-server.js +61 -0
- package/examples/node_modules/webpack/hot/emitter.js +2 -0
- package/examples/node_modules/webpack/hot/lazy-compilation-node.js +40 -0
- package/examples/node_modules/webpack/hot/lazy-compilation-web.js +74 -0
- package/examples/node_modules/webpack/hot/log-apply-result.js +44 -0
- package/examples/node_modules/webpack/hot/log.js +59 -0
- package/examples/node_modules/webpack/hot/only-dev-server.js +102 -0
- package/examples/node_modules/webpack/hot/poll.js +37 -0
- package/examples/node_modules/webpack/hot/signal.js +62 -0
- package/examples/node_modules/webpack/lib/APIPlugin.js +253 -0
- package/examples/node_modules/webpack/lib/AbstractMethodError.js +49 -0
- package/examples/node_modules/webpack/lib/AsyncDependenciesBlock.js +106 -0
- package/examples/node_modules/webpack/lib/AsyncDependencyToInitialChunkError.js +31 -0
- package/examples/node_modules/webpack/lib/AutomaticPrefetchPlugin.js +65 -0
- package/examples/node_modules/webpack/lib/BannerPlugin.js +123 -0
- package/examples/node_modules/webpack/lib/Cache.js +161 -0
- package/examples/node_modules/webpack/lib/CacheFacade.js +345 -0
- package/examples/node_modules/webpack/lib/CaseSensitiveModulesWarning.js +71 -0
- package/examples/node_modules/webpack/lib/Chunk.js +820 -0
- package/examples/node_modules/webpack/lib/ChunkGraph.js +1727 -0
- package/examples/node_modules/webpack/lib/ChunkGroup.js +584 -0
- package/examples/node_modules/webpack/lib/ChunkRenderError.js +31 -0
- package/examples/node_modules/webpack/lib/ChunkTemplate.js +138 -0
- package/examples/node_modules/webpack/lib/CleanPlugin.js +420 -0
- package/examples/node_modules/webpack/lib/CodeGenerationError.js +29 -0
- package/examples/node_modules/webpack/lib/CodeGenerationResults.js +155 -0
- package/examples/node_modules/webpack/lib/CommentCompilationWarning.js +33 -0
- package/examples/node_modules/webpack/lib/CompatibilityPlugin.js +152 -0
- package/examples/node_modules/webpack/lib/Compilation.js +5292 -0
- package/examples/node_modules/webpack/lib/Compiler.js +1217 -0
- package/examples/node_modules/webpack/lib/ConcatenationScope.js +159 -0
- package/examples/node_modules/webpack/lib/ConcurrentCompilationError.js +18 -0
- package/examples/node_modules/webpack/lib/ConditionalInitFragment.js +112 -0
- package/examples/node_modules/webpack/lib/ConstPlugin.js +497 -0
- package/examples/node_modules/webpack/lib/ContextExclusionPlugin.js +32 -0
- package/examples/node_modules/webpack/lib/ContextModule.js +1147 -0
- package/examples/node_modules/webpack/lib/ContextModuleFactory.js +437 -0
- package/examples/node_modules/webpack/lib/ContextReplacementPlugin.js +157 -0
- package/examples/node_modules/webpack/lib/DefinePlugin.js +601 -0
- package/examples/node_modules/webpack/lib/DelegatedModule.js +239 -0
- package/examples/node_modules/webpack/lib/DelegatedModuleFactoryPlugin.js +91 -0
- package/examples/node_modules/webpack/lib/DelegatedPlugin.js +43 -0
- package/examples/node_modules/webpack/lib/DependenciesBlock.js +107 -0
- package/examples/node_modules/webpack/lib/Dependency.js +348 -0
- package/examples/node_modules/webpack/lib/DependencyTemplate.js +57 -0
- package/examples/node_modules/webpack/lib/DependencyTemplates.js +67 -0
- package/examples/node_modules/webpack/lib/DllEntryPlugin.js +55 -0
- package/examples/node_modules/webpack/lib/DllModule.js +157 -0
- package/examples/node_modules/webpack/lib/DllModuleFactory.js +37 -0
- package/examples/node_modules/webpack/lib/DllPlugin.js +68 -0
- package/examples/node_modules/webpack/lib/DllReferencePlugin.js +162 -0
- package/examples/node_modules/webpack/lib/DynamicEntryPlugin.js +79 -0
- package/examples/node_modules/webpack/lib/EntryOptionPlugin.js +93 -0
- package/examples/node_modules/webpack/lib/EntryPlugin.js +67 -0
- package/examples/node_modules/webpack/lib/Entrypoint.js +101 -0
- package/examples/node_modules/webpack/lib/EnvironmentPlugin.js +63 -0
- package/examples/node_modules/webpack/lib/ErrorHelpers.js +61 -0
- package/examples/node_modules/webpack/lib/EvalDevToolModulePlugin.js +117 -0
- package/examples/node_modules/webpack/lib/EvalSourceMapDevToolPlugin.js +206 -0
- package/examples/node_modules/webpack/lib/ExportsInfo.js +1523 -0
- package/examples/node_modules/webpack/lib/ExportsInfoApiPlugin.js +71 -0
- package/examples/node_modules/webpack/lib/ExternalModule.js +758 -0
- package/examples/node_modules/webpack/lib/ExternalModuleFactoryPlugin.js +254 -0
- package/examples/node_modules/webpack/lib/ExternalsPlugin.js +37 -0
- package/examples/node_modules/webpack/lib/FileSystemInfo.js +3559 -0
- package/examples/node_modules/webpack/lib/FlagAllModulesAsUsedPlugin.js +55 -0
- package/examples/node_modules/webpack/lib/FlagDependencyExportsPlugin.js +417 -0
- package/examples/node_modules/webpack/lib/FlagDependencyUsagePlugin.js +347 -0
- package/examples/node_modules/webpack/lib/FlagEntryExportAsUsedPlugin.js +53 -0
- package/examples/node_modules/webpack/lib/Generator.js +149 -0
- package/examples/node_modules/webpack/lib/GraphHelpers.js +37 -0
- package/examples/node_modules/webpack/lib/HarmonyLinkingError.js +16 -0
- package/examples/node_modules/webpack/lib/HookWebpackError.js +93 -0
- package/examples/node_modules/webpack/lib/HotModuleReplacementPlugin.js +778 -0
- package/examples/node_modules/webpack/lib/HotUpdateChunk.js +19 -0
- package/examples/node_modules/webpack/lib/IgnoreErrorModuleFactory.js +39 -0
- package/examples/node_modules/webpack/lib/IgnorePlugin.js +83 -0
- package/examples/node_modules/webpack/lib/IgnoreWarningsPlugin.js +39 -0
- package/examples/node_modules/webpack/lib/InitFragment.js +161 -0
- package/examples/node_modules/webpack/lib/InvalidDependenciesModuleWarning.js +44 -0
- package/examples/node_modules/webpack/lib/JavascriptMetaInfoPlugin.js +68 -0
- package/examples/node_modules/webpack/lib/LibManifestPlugin.js +115 -0
- package/examples/node_modules/webpack/lib/LibraryTemplatePlugin.js +48 -0
- package/examples/node_modules/webpack/lib/LoaderOptionsPlugin.js +71 -0
- package/examples/node_modules/webpack/lib/LoaderTargetPlugin.js +37 -0
- package/examples/node_modules/webpack/lib/MainTemplate.js +329 -0
- package/examples/node_modules/webpack/lib/Module.js +1091 -0
- package/examples/node_modules/webpack/lib/ModuleBuildError.js +77 -0
- package/examples/node_modules/webpack/lib/ModuleDependencyError.js +40 -0
- package/examples/node_modules/webpack/lib/ModuleDependencyWarning.js +45 -0
- package/examples/node_modules/webpack/lib/ModuleError.js +61 -0
- package/examples/node_modules/webpack/lib/ModuleFactory.js +50 -0
- package/examples/node_modules/webpack/lib/ModuleFilenameHelpers.js +277 -0
- package/examples/node_modules/webpack/lib/ModuleGraph.js +856 -0
- package/examples/node_modules/webpack/lib/ModuleGraphConnection.js +191 -0
- package/examples/node_modules/webpack/lib/ModuleHashingError.js +29 -0
- package/examples/node_modules/webpack/lib/ModuleInfoHeaderPlugin.js +255 -0
- package/examples/node_modules/webpack/lib/ModuleNotFoundError.js +86 -0
- package/examples/node_modules/webpack/lib/ModuleParseError.js +109 -0
- package/examples/node_modules/webpack/lib/ModuleProfile.js +107 -0
- package/examples/node_modules/webpack/lib/ModuleRestoreError.js +42 -0
- package/examples/node_modules/webpack/lib/ModuleStoreError.js +42 -0
- package/examples/node_modules/webpack/lib/ModuleTemplate.js +142 -0
- package/examples/node_modules/webpack/lib/ModuleWarning.js +61 -0
- package/examples/node_modules/webpack/lib/MultiCompiler.js +582 -0
- package/examples/node_modules/webpack/lib/MultiStats.js +166 -0
- package/examples/node_modules/webpack/lib/MultiWatching.js +77 -0
- package/examples/node_modules/webpack/lib/NoEmitOnErrorsPlugin.js +28 -0
- package/examples/node_modules/webpack/lib/NoModeWarning.js +22 -0
- package/examples/node_modules/webpack/lib/NodeStuffInWebError.js +34 -0
- package/examples/node_modules/webpack/lib/NodeStuffPlugin.js +186 -0
- package/examples/node_modules/webpack/lib/NormalModule.js +1411 -0
- package/examples/node_modules/webpack/lib/NormalModuleFactory.js +1118 -0
- package/examples/node_modules/webpack/lib/NormalModuleReplacementPlugin.js +71 -0
- package/examples/node_modules/webpack/lib/NullFactory.js +23 -0
- package/examples/node_modules/webpack/lib/OptimizationStages.js +10 -0
- package/examples/node_modules/webpack/lib/OptionsApply.js +11 -0
- package/examples/node_modules/webpack/lib/Parser.js +38 -0
- package/examples/node_modules/webpack/lib/PrefetchPlugin.js +50 -0
- package/examples/node_modules/webpack/lib/ProgressPlugin.js +613 -0
- package/examples/node_modules/webpack/lib/ProvidePlugin.js +101 -0
- package/examples/node_modules/webpack/lib/RawModule.js +152 -0
- package/examples/node_modules/webpack/lib/RecordIdsPlugin.js +238 -0
- package/examples/node_modules/webpack/lib/RequestShortener.js +34 -0
- package/examples/node_modules/webpack/lib/RequireJsStuffPlugin.js +77 -0
- package/examples/node_modules/webpack/lib/ResolverFactory.js +151 -0
- package/examples/node_modules/webpack/lib/RuntimeGlobals.js +381 -0
- package/examples/node_modules/webpack/lib/RuntimeModule.js +213 -0
- package/examples/node_modules/webpack/lib/RuntimePlugin.js +444 -0
- package/examples/node_modules/webpack/lib/RuntimeTemplate.js +1041 -0
- package/examples/node_modules/webpack/lib/SelfModuleFactory.js +21 -0
- package/examples/node_modules/webpack/lib/SingleEntryPlugin.js +8 -0
- package/examples/node_modules/webpack/lib/SizeFormatHelpers.js +27 -0
- package/examples/node_modules/webpack/lib/SourceMapDevToolModuleOptionsPlugin.js +57 -0
- package/examples/node_modules/webpack/lib/SourceMapDevToolPlugin.js +560 -0
- package/examples/node_modules/webpack/lib/Stats.js +84 -0
- package/examples/node_modules/webpack/lib/Template.js +419 -0
- package/examples/node_modules/webpack/lib/TemplatedPathPlugin.js +346 -0
- package/examples/node_modules/webpack/lib/UnhandledSchemeError.js +33 -0
- package/examples/node_modules/webpack/lib/UnsupportedFeatureWarning.js +32 -0
- package/examples/node_modules/webpack/lib/UseStrictPlugin.js +56 -0
- package/examples/node_modules/webpack/lib/WarnCaseSensitiveModulesPlugin.js +53 -0
- package/examples/node_modules/webpack/lib/WarnDeprecatedOptionPlugin.js +54 -0
- package/examples/node_modules/webpack/lib/WarnNoModeSetPlugin.js +25 -0
- package/examples/node_modules/webpack/lib/WatchIgnorePlugin.js +132 -0
- package/examples/node_modules/webpack/lib/Watching.js +479 -0
- package/examples/node_modules/webpack/lib/WebpackError.js +61 -0
- package/examples/node_modules/webpack/lib/WebpackIsIncludedPlugin.js +85 -0
- package/examples/node_modules/webpack/lib/WebpackOptionsApply.js +700 -0
- package/examples/node_modules/webpack/lib/WebpackOptionsDefaulter.js +19 -0
- package/examples/node_modules/webpack/lib/asset/AssetGenerator.js +464 -0
- package/examples/node_modules/webpack/lib/asset/AssetModulesPlugin.js +223 -0
- package/examples/node_modules/webpack/lib/asset/AssetParser.js +56 -0
- package/examples/node_modules/webpack/lib/asset/AssetSourceGenerator.js +71 -0
- package/examples/node_modules/webpack/lib/asset/AssetSourceParser.js +31 -0
- package/examples/node_modules/webpack/lib/asset/RawDataUrlModule.js +148 -0
- package/examples/node_modules/webpack/lib/async-modules/AwaitDependenciesInitFragment.js +69 -0
- package/examples/node_modules/webpack/lib/async-modules/InferAsyncModulesPlugin.js +55 -0
- package/examples/node_modules/webpack/lib/buildChunkGraph.js +1401 -0
- package/examples/node_modules/webpack/lib/cache/AddBuildDependenciesPlugin.js +33 -0
- package/examples/node_modules/webpack/lib/cache/AddManagedPathsPlugin.js +35 -0
- package/examples/node_modules/webpack/lib/cache/IdleFileCachePlugin.js +227 -0
- package/examples/node_modules/webpack/lib/cache/MemoryCachePlugin.js +57 -0
- package/examples/node_modules/webpack/lib/cache/MemoryWithGcCachePlugin.js +129 -0
- package/examples/node_modules/webpack/lib/cache/PackFileCacheStrategy.js +1426 -0
- package/examples/node_modules/webpack/lib/cache/ResolverCachePlugin.js +354 -0
- package/examples/node_modules/webpack/lib/cache/getLazyHashedEtag.js +81 -0
- package/examples/node_modules/webpack/lib/cache/mergeEtags.js +74 -0
- package/examples/node_modules/webpack/lib/cli.js +655 -0
- package/examples/node_modules/webpack/lib/config/browserslistTargetHandler.js +333 -0
- package/examples/node_modules/webpack/lib/config/defaults.js +1309 -0
- package/examples/node_modules/webpack/lib/config/normalization.js +529 -0
- package/examples/node_modules/webpack/lib/config/target.js +348 -0
- package/examples/node_modules/webpack/lib/container/ContainerEntryDependency.js +47 -0
- package/examples/node_modules/webpack/lib/container/ContainerEntryModule.js +283 -0
- package/examples/node_modules/webpack/lib/container/ContainerEntryModuleFactory.js +27 -0
- package/examples/node_modules/webpack/lib/container/ContainerExposedDependency.js +52 -0
- package/examples/node_modules/webpack/lib/container/ContainerPlugin.js +105 -0
- package/examples/node_modules/webpack/lib/container/ContainerReferencePlugin.js +142 -0
- package/examples/node_modules/webpack/lib/container/FallbackDependency.js +51 -0
- package/examples/node_modules/webpack/lib/container/FallbackItemDependency.js +30 -0
- package/examples/node_modules/webpack/lib/container/FallbackModule.js +173 -0
- package/examples/node_modules/webpack/lib/container/FallbackModuleFactory.js +27 -0
- package/examples/node_modules/webpack/lib/container/ModuleFederationPlugin.js +92 -0
- package/examples/node_modules/webpack/lib/container/RemoteModule.js +171 -0
- package/examples/node_modules/webpack/lib/container/RemoteRuntimeModule.js +128 -0
- package/examples/node_modules/webpack/lib/container/RemoteToExternalDependency.js +30 -0
- package/examples/node_modules/webpack/lib/container/options.js +91 -0
- package/examples/node_modules/webpack/lib/css/CssExportsGenerator.js +139 -0
- package/examples/node_modules/webpack/lib/css/CssGenerator.js +109 -0
- package/examples/node_modules/webpack/lib/css/CssLoadingRuntimeModule.js +440 -0
- package/examples/node_modules/webpack/lib/css/CssModulesPlugin.js +462 -0
- package/examples/node_modules/webpack/lib/css/CssParser.js +618 -0
- package/examples/node_modules/webpack/lib/css/walkCssTokens.js +659 -0
- package/examples/node_modules/webpack/lib/debug/ProfilingPlugin.js +454 -0
- package/examples/node_modules/webpack/lib/dependencies/AMDDefineDependency.js +221 -0
- package/examples/node_modules/webpack/lib/dependencies/AMDDefineDependencyParserPlugin.js +354 -0
- package/examples/node_modules/webpack/lib/dependencies/AMDPlugin.js +216 -0
- package/examples/node_modules/webpack/lib/dependencies/AMDRequireArrayDependency.js +99 -0
- package/examples/node_modules/webpack/lib/dependencies/AMDRequireContextDependency.js +53 -0
- package/examples/node_modules/webpack/lib/dependencies/AMDRequireDependenciesBlock.js +22 -0
- package/examples/node_modules/webpack/lib/dependencies/AMDRequireDependenciesBlockParserPlugin.js +279 -0
- package/examples/node_modules/webpack/lib/dependencies/AMDRequireDependency.js +174 -0
- package/examples/node_modules/webpack/lib/dependencies/AMDRequireItemDependency.js +35 -0
- package/examples/node_modules/webpack/lib/dependencies/AMDRuntimeModules.js +48 -0
- package/examples/node_modules/webpack/lib/dependencies/CachedConstDependency.js +106 -0
- package/examples/node_modules/webpack/lib/dependencies/CommonJsDependencyHelpers.js +49 -0
- package/examples/node_modules/webpack/lib/dependencies/CommonJsExportRequireDependency.js +374 -0
- package/examples/node_modules/webpack/lib/dependencies/CommonJsExportsDependency.js +160 -0
- package/examples/node_modules/webpack/lib/dependencies/CommonJsExportsParserPlugin.js +336 -0
- package/examples/node_modules/webpack/lib/dependencies/CommonJsFullRequireDependency.js +136 -0
- package/examples/node_modules/webpack/lib/dependencies/CommonJsImportsParserPlugin.js +388 -0
- package/examples/node_modules/webpack/lib/dependencies/CommonJsPlugin.js +280 -0
- package/examples/node_modules/webpack/lib/dependencies/CommonJsRequireContextDependency.js +55 -0
- package/examples/node_modules/webpack/lib/dependencies/CommonJsRequireDependency.js +34 -0
- package/examples/node_modules/webpack/lib/dependencies/CommonJsSelfReferenceDependency.js +141 -0
- package/examples/node_modules/webpack/lib/dependencies/ConstDependency.js +108 -0
- package/examples/node_modules/webpack/lib/dependencies/ContextDependency.js +147 -0
- package/examples/node_modules/webpack/lib/dependencies/ContextDependencyHelpers.js +232 -0
- package/examples/node_modules/webpack/lib/dependencies/ContextDependencyTemplateAsId.js +61 -0
- package/examples/node_modules/webpack/lib/dependencies/ContextDependencyTemplateAsRequireCall.js +59 -0
- package/examples/node_modules/webpack/lib/dependencies/ContextElementDependency.js +77 -0
- package/examples/node_modules/webpack/lib/dependencies/CreateScriptUrlDependency.js +66 -0
- package/examples/node_modules/webpack/lib/dependencies/CriticalDependencyWarning.js +25 -0
- package/examples/node_modules/webpack/lib/dependencies/CssExportDependency.js +85 -0
- package/examples/node_modules/webpack/lib/dependencies/CssImportDependency.js +75 -0
- package/examples/node_modules/webpack/lib/dependencies/CssLocalIdentifierDependency.js +119 -0
- package/examples/node_modules/webpack/lib/dependencies/CssSelfLocalIdentifierDependency.js +101 -0
- package/examples/node_modules/webpack/lib/dependencies/CssUrlDependency.js +132 -0
- package/examples/node_modules/webpack/lib/dependencies/DelegatedSourceDependency.js +30 -0
- package/examples/node_modules/webpack/lib/dependencies/DllEntryDependency.js +47 -0
- package/examples/node_modules/webpack/lib/dependencies/DynamicExports.js +69 -0
- package/examples/node_modules/webpack/lib/dependencies/EntryDependency.js +30 -0
- package/examples/node_modules/webpack/lib/dependencies/ExportsInfoDependency.js +143 -0
- package/examples/node_modules/webpack/lib/dependencies/HarmonyAcceptDependency.js +134 -0
- package/examples/node_modules/webpack/lib/dependencies/HarmonyAcceptImportDependency.js +37 -0
- package/examples/node_modules/webpack/lib/dependencies/HarmonyCompatibilityDependency.js +91 -0
- package/examples/node_modules/webpack/lib/dependencies/HarmonyDetectionParserPlugin.js +97 -0
- package/examples/node_modules/webpack/lib/dependencies/HarmonyExportDependencyParserPlugin.js +185 -0
- package/examples/node_modules/webpack/lib/dependencies/HarmonyExportExpressionDependency.js +190 -0
- package/examples/node_modules/webpack/lib/dependencies/HarmonyExportHeaderDependency.js +65 -0
- package/examples/node_modules/webpack/lib/dependencies/HarmonyExportImportedSpecifierDependency.js +1271 -0
- package/examples/node_modules/webpack/lib/dependencies/HarmonyExportInitFragment.js +168 -0
- package/examples/node_modules/webpack/lib/dependencies/HarmonyExportSpecifierDependency.js +111 -0
- package/examples/node_modules/webpack/lib/dependencies/HarmonyExports.js +40 -0
- package/examples/node_modules/webpack/lib/dependencies/HarmonyImportDependency.js +359 -0
- package/examples/node_modules/webpack/lib/dependencies/HarmonyImportDependencyParserPlugin.js +256 -0
- package/examples/node_modules/webpack/lib/dependencies/HarmonyImportSideEffectDependency.js +80 -0
- package/examples/node_modules/webpack/lib/dependencies/HarmonyImportSpecifierDependency.js +331 -0
- package/examples/node_modules/webpack/lib/dependencies/HarmonyModulesPlugin.js +121 -0
- package/examples/node_modules/webpack/lib/dependencies/HarmonyTopLevelThisParserPlugin.js +27 -0
- package/examples/node_modules/webpack/lib/dependencies/ImportContextDependency.js +52 -0
- package/examples/node_modules/webpack/lib/dependencies/ImportDependency.js +101 -0
- package/examples/node_modules/webpack/lib/dependencies/ImportEagerDependency.js +69 -0
- package/examples/node_modules/webpack/lib/dependencies/ImportMetaContextDependency.js +35 -0
- package/examples/node_modules/webpack/lib/dependencies/ImportMetaContextDependencyParserPlugin.js +252 -0
- package/examples/node_modules/webpack/lib/dependencies/ImportMetaContextPlugin.js +59 -0
- package/examples/node_modules/webpack/lib/dependencies/ImportMetaHotAcceptDependency.js +35 -0
- package/examples/node_modules/webpack/lib/dependencies/ImportMetaHotDeclineDependency.js +36 -0
- package/examples/node_modules/webpack/lib/dependencies/ImportMetaPlugin.js +203 -0
- package/examples/node_modules/webpack/lib/dependencies/ImportParserPlugin.js +267 -0
- package/examples/node_modules/webpack/lib/dependencies/ImportPlugin.js +82 -0
- package/examples/node_modules/webpack/lib/dependencies/ImportWeakDependency.js +67 -0
- package/examples/node_modules/webpack/lib/dependencies/JsonExportsDependency.js +103 -0
- package/examples/node_modules/webpack/lib/dependencies/LoaderDependency.js +27 -0
- package/examples/node_modules/webpack/lib/dependencies/LoaderImportDependency.js +28 -0
- package/examples/node_modules/webpack/lib/dependencies/LoaderPlugin.js +261 -0
- package/examples/node_modules/webpack/lib/dependencies/LocalModule.js +44 -0
- package/examples/node_modules/webpack/lib/dependencies/LocalModuleDependency.js +69 -0
- package/examples/node_modules/webpack/lib/dependencies/LocalModulesHelpers.js +50 -0
- package/examples/node_modules/webpack/lib/dependencies/ModuleDecoratorDependency.js +129 -0
- package/examples/node_modules/webpack/lib/dependencies/ModuleDependency.js +81 -0
- package/examples/node_modules/webpack/lib/dependencies/ModuleDependencyTemplateAsId.js +34 -0
- package/examples/node_modules/webpack/lib/dependencies/ModuleDependencyTemplateAsRequireId.js +38 -0
- package/examples/node_modules/webpack/lib/dependencies/ModuleHotAcceptDependency.js +35 -0
- package/examples/node_modules/webpack/lib/dependencies/ModuleHotDeclineDependency.js +36 -0
- package/examples/node_modules/webpack/lib/dependencies/NullDependency.js +40 -0
- package/examples/node_modules/webpack/lib/dependencies/PrefetchDependency.js +24 -0
- package/examples/node_modules/webpack/lib/dependencies/ProvidedDependency.js +122 -0
- package/examples/node_modules/webpack/lib/dependencies/PureExpressionDependency.js +128 -0
- package/examples/node_modules/webpack/lib/dependencies/RequireContextDependency.js +31 -0
- package/examples/node_modules/webpack/lib/dependencies/RequireContextDependencyParserPlugin.js +58 -0
- package/examples/node_modules/webpack/lib/dependencies/RequireContextPlugin.js +150 -0
- package/examples/node_modules/webpack/lib/dependencies/RequireEnsureDependenciesBlock.js +22 -0
- package/examples/node_modules/webpack/lib/dependencies/RequireEnsureDependenciesBlockParserPlugin.js +121 -0
- package/examples/node_modules/webpack/lib/dependencies/RequireEnsureDependency.js +101 -0
- package/examples/node_modules/webpack/lib/dependencies/RequireEnsureItemDependency.js +33 -0
- package/examples/node_modules/webpack/lib/dependencies/RequireEnsurePlugin.js +66 -0
- package/examples/node_modules/webpack/lib/dependencies/RequireHeaderDependency.js +57 -0
- package/examples/node_modules/webpack/lib/dependencies/RequireIncludeDependency.js +74 -0
- package/examples/node_modules/webpack/lib/dependencies/RequireIncludeDependencyParserPlugin.js +77 -0
- package/examples/node_modules/webpack/lib/dependencies/RequireIncludePlugin.js +42 -0
- package/examples/node_modules/webpack/lib/dependencies/RequireResolveContextDependency.js +50 -0
- package/examples/node_modules/webpack/lib/dependencies/RequireResolveDependency.js +51 -0
- package/examples/node_modules/webpack/lib/dependencies/RequireResolveHeaderDependency.js +63 -0
- package/examples/node_modules/webpack/lib/dependencies/RuntimeRequirementsDependency.js +77 -0
- package/examples/node_modules/webpack/lib/dependencies/StaticExportsDependency.js +66 -0
- package/examples/node_modules/webpack/lib/dependencies/SystemPlugin.js +140 -0
- package/examples/node_modules/webpack/lib/dependencies/SystemRuntimeModule.js +35 -0
- package/examples/node_modules/webpack/lib/dependencies/URLDependency.js +158 -0
- package/examples/node_modules/webpack/lib/dependencies/URLPlugin.js +114 -0
- package/examples/node_modules/webpack/lib/dependencies/UnsupportedDependency.js +69 -0
- package/examples/node_modules/webpack/lib/dependencies/WebAssemblyExportImportedDependency.js +79 -0
- package/examples/node_modules/webpack/lib/dependencies/WebAssemblyImportDependency.js +100 -0
- package/examples/node_modules/webpack/lib/dependencies/WebpackIsIncludedDependency.js +80 -0
- package/examples/node_modules/webpack/lib/dependencies/WorkerDependency.js +89 -0
- package/examples/node_modules/webpack/lib/dependencies/WorkerPlugin.js +416 -0
- package/examples/node_modules/webpack/lib/dependencies/getFunctionExpression.js +55 -0
- package/examples/node_modules/webpack/lib/dependencies/processExportInfo.js +65 -0
- package/examples/node_modules/webpack/lib/electron/ElectronTargetPlugin.js +68 -0
- package/examples/node_modules/webpack/lib/errors/BuildCycleError.js +27 -0
- package/examples/node_modules/webpack/lib/esm/ExportWebpackRequireRuntimeModule.js +29 -0
- package/examples/node_modules/webpack/lib/esm/ModuleChunkFormatPlugin.js +202 -0
- package/examples/node_modules/webpack/lib/esm/ModuleChunkLoadingPlugin.js +76 -0
- package/examples/node_modules/webpack/lib/esm/ModuleChunkLoadingRuntimeModule.js +242 -0
- package/examples/node_modules/webpack/lib/formatLocation.js +68 -0
- package/examples/node_modules/webpack/lib/hmr/HotModuleReplacement.runtime.js +394 -0
- package/examples/node_modules/webpack/lib/hmr/HotModuleReplacementRuntimeModule.js +42 -0
- package/examples/node_modules/webpack/lib/hmr/JavascriptHotModuleReplacement.runtime.js +462 -0
- package/examples/node_modules/webpack/lib/hmr/LazyCompilationPlugin.js +418 -0
- package/examples/node_modules/webpack/lib/hmr/lazyCompilationBackend.js +143 -0
- package/examples/node_modules/webpack/lib/ids/ChunkModuleIdRangePlugin.js +80 -0
- package/examples/node_modules/webpack/lib/ids/DeterministicChunkIdsPlugin.js +70 -0
- package/examples/node_modules/webpack/lib/ids/DeterministicModuleIdsPlugin.js +93 -0
- package/examples/node_modules/webpack/lib/ids/HashedModuleIdsPlugin.js +77 -0
- package/examples/node_modules/webpack/lib/ids/IdHelpers.js +477 -0
- package/examples/node_modules/webpack/lib/ids/NamedChunkIdsPlugin.js +81 -0
- package/examples/node_modules/webpack/lib/ids/NamedModuleIdsPlugin.js +58 -0
- package/examples/node_modules/webpack/lib/ids/NaturalChunkIdsPlugin.js +33 -0
- package/examples/node_modules/webpack/lib/ids/NaturalModuleIdsPlugin.js +39 -0
- package/examples/node_modules/webpack/lib/ids/OccurrenceChunkIdsPlugin.js +80 -0
- package/examples/node_modules/webpack/lib/ids/OccurrenceModuleIdsPlugin.js +159 -0
- package/examples/node_modules/webpack/lib/ids/SyncModuleIdsPlugin.js +140 -0
- package/examples/node_modules/webpack/lib/index.js +579 -0
- package/examples/node_modules/webpack/lib/javascript/ArrayPushCallbackChunkFormatPlugin.js +154 -0
- package/examples/node_modules/webpack/lib/javascript/BasicEvaluatedExpression.js +480 -0
- package/examples/node_modules/webpack/lib/javascript/ChunkHelpers.js +33 -0
- package/examples/node_modules/webpack/lib/javascript/CommonJsChunkFormatPlugin.js +172 -0
- package/examples/node_modules/webpack/lib/javascript/EnableChunkLoadingPlugin.js +118 -0
- package/examples/node_modules/webpack/lib/javascript/JavascriptGenerator.js +225 -0
- package/examples/node_modules/webpack/lib/javascript/JavascriptModulesPlugin.js +1370 -0
- package/examples/node_modules/webpack/lib/javascript/JavascriptParser.js +3776 -0
- package/examples/node_modules/webpack/lib/javascript/JavascriptParserHelpers.js +107 -0
- package/examples/node_modules/webpack/lib/javascript/StartupHelpers.js +132 -0
- package/examples/node_modules/webpack/lib/json/JsonData.js +41 -0
- package/examples/node_modules/webpack/lib/json/JsonGenerator.js +191 -0
- package/examples/node_modules/webpack/lib/json/JsonModulesPlugin.js +50 -0
- package/examples/node_modules/webpack/lib/json/JsonParser.js +57 -0
- package/examples/node_modules/webpack/lib/library/AbstractLibraryPlugin.js +297 -0
- package/examples/node_modules/webpack/lib/library/AmdLibraryPlugin.js +162 -0
- package/examples/node_modules/webpack/lib/library/AssignLibraryPlugin.js +375 -0
- package/examples/node_modules/webpack/lib/library/EnableLibraryPlugin.js +248 -0
- package/examples/node_modules/webpack/lib/library/ExportPropertyLibraryPlugin.js +113 -0
- package/examples/node_modules/webpack/lib/library/JsonpLibraryPlugin.js +88 -0
- package/examples/node_modules/webpack/lib/library/ModuleLibraryPlugin.js +104 -0
- package/examples/node_modules/webpack/lib/library/SystemLibraryPlugin.js +233 -0
- package/examples/node_modules/webpack/lib/library/UmdLibraryPlugin.js +324 -0
- package/examples/node_modules/webpack/lib/logging/Logger.js +163 -0
- package/examples/node_modules/webpack/lib/logging/createConsoleLogger.js +228 -0
- package/examples/node_modules/webpack/lib/logging/runtime.js +46 -0
- package/examples/node_modules/webpack/lib/logging/truncateArgs.js +82 -0
- package/examples/node_modules/webpack/lib/node/CommonJsChunkLoadingPlugin.js +105 -0
- package/examples/node_modules/webpack/lib/node/NodeEnvironmentPlugin.js +60 -0
- package/examples/node_modules/webpack/lib/node/NodeSourcePlugin.js +19 -0
- package/examples/node_modules/webpack/lib/node/NodeTargetPlugin.js +81 -0
- package/examples/node_modules/webpack/lib/node/NodeTemplatePlugin.js +33 -0
- package/examples/node_modules/webpack/lib/node/NodeWatchFileSystem.js +194 -0
- package/examples/node_modules/webpack/lib/node/ReadFileChunkLoadingRuntimeModule.js +291 -0
- package/examples/node_modules/webpack/lib/node/ReadFileCompileAsyncWasmPlugin.js +107 -0
- package/examples/node_modules/webpack/lib/node/ReadFileCompileWasmPlugin.js +93 -0
- package/examples/node_modules/webpack/lib/node/RequireChunkLoadingRuntimeModule.js +238 -0
- package/examples/node_modules/webpack/lib/node/nodeConsole.js +143 -0
- package/examples/node_modules/webpack/lib/optimize/AggressiveMergingPlugin.js +92 -0
- package/examples/node_modules/webpack/lib/optimize/AggressiveSplittingPlugin.js +329 -0
- package/examples/node_modules/webpack/lib/optimize/ConcatenatedModule.js +1879 -0
- package/examples/node_modules/webpack/lib/optimize/EnsureChunkConditionsPlugin.js +85 -0
- package/examples/node_modules/webpack/lib/optimize/FlagIncludedChunksPlugin.js +118 -0
- package/examples/node_modules/webpack/lib/optimize/InnerGraph.js +346 -0
- package/examples/node_modules/webpack/lib/optimize/InnerGraphPlugin.js +368 -0
- package/examples/node_modules/webpack/lib/optimize/LimitChunkCountPlugin.js +256 -0
- package/examples/node_modules/webpack/lib/optimize/MangleExportsPlugin.js +177 -0
- package/examples/node_modules/webpack/lib/optimize/MergeDuplicateChunksPlugin.js +115 -0
- package/examples/node_modules/webpack/lib/optimize/MinChunkSizePlugin.js +113 -0
- package/examples/node_modules/webpack/lib/optimize/MinMaxSizeWarning.js +30 -0
- package/examples/node_modules/webpack/lib/optimize/ModuleConcatenationPlugin.js +866 -0
- package/examples/node_modules/webpack/lib/optimize/RealContentHashPlugin.js +408 -0
- package/examples/node_modules/webpack/lib/optimize/RemoveEmptyChunksPlugin.js +57 -0
- package/examples/node_modules/webpack/lib/optimize/RemoveParentModulesPlugin.js +121 -0
- package/examples/node_modules/webpack/lib/optimize/RuntimeChunkPlugin.js +44 -0
- package/examples/node_modules/webpack/lib/optimize/SideEffectsFlagPlugin.js +337 -0
- package/examples/node_modules/webpack/lib/optimize/SplitChunksPlugin.js +1723 -0
- package/examples/node_modules/webpack/lib/performance/AssetsOverSizeLimitWarning.js +32 -0
- package/examples/node_modules/webpack/lib/performance/EntrypointsOverSizeLimitWarning.js +35 -0
- package/examples/node_modules/webpack/lib/performance/NoAsyncChunksWarning.js +20 -0
- package/examples/node_modules/webpack/lib/performance/SizeLimitsPlugin.js +165 -0
- package/examples/node_modules/webpack/lib/prefetch/ChunkPrefetchFunctionRuntimeModule.js +44 -0
- package/examples/node_modules/webpack/lib/prefetch/ChunkPrefetchPreloadPlugin.js +95 -0
- package/examples/node_modules/webpack/lib/prefetch/ChunkPrefetchStartupRuntimeModule.js +52 -0
- package/examples/node_modules/webpack/lib/prefetch/ChunkPrefetchTriggerRuntimeModule.js +49 -0
- package/examples/node_modules/webpack/lib/prefetch/ChunkPreloadTriggerRuntimeModule.js +43 -0
- package/examples/node_modules/webpack/lib/rules/BasicEffectRulePlugin.js +39 -0
- package/examples/node_modules/webpack/lib/rules/BasicMatcherRulePlugin.js +47 -0
- package/examples/node_modules/webpack/lib/rules/ObjectMatcherRulePlugin.js +47 -0
- package/examples/node_modules/webpack/lib/rules/RuleSetCompiler.js +379 -0
- package/examples/node_modules/webpack/lib/rules/UseEffectRulePlugin.js +194 -0
- package/examples/node_modules/webpack/lib/runtime/AsyncModuleRuntimeModule.js +156 -0
- package/examples/node_modules/webpack/lib/runtime/AutoPublicPathRuntimeModule.js +69 -0
- package/examples/node_modules/webpack/lib/runtime/ChunkNameRuntimeModule.js +27 -0
- package/examples/node_modules/webpack/lib/runtime/CompatGetDefaultExportRuntimeModule.js +37 -0
- package/examples/node_modules/webpack/lib/runtime/CompatRuntimeModule.js +78 -0
- package/examples/node_modules/webpack/lib/runtime/CreateFakeNamespaceObjectRuntimeModule.js +66 -0
- package/examples/node_modules/webpack/lib/runtime/CreateScriptRuntimeModule.js +36 -0
- package/examples/node_modules/webpack/lib/runtime/CreateScriptUrlRuntimeModule.js +36 -0
- package/examples/node_modules/webpack/lib/runtime/DefinePropertyGettersRuntimeModule.js +39 -0
- package/examples/node_modules/webpack/lib/runtime/EnsureChunkRuntimeModule.js +54 -0
- package/examples/node_modules/webpack/lib/runtime/GetChunkFilenameRuntimeModule.js +282 -0
- package/examples/node_modules/webpack/lib/runtime/GetFullHashRuntimeModule.js +29 -0
- package/examples/node_modules/webpack/lib/runtime/GetMainFilenameRuntimeModule.js +44 -0
- package/examples/node_modules/webpack/lib/runtime/GetTrustedTypesPolicyRuntimeModule.js +76 -0
- package/examples/node_modules/webpack/lib/runtime/GlobalRuntimeModule.js +47 -0
- package/examples/node_modules/webpack/lib/runtime/HasOwnPropertyRuntimeModule.js +32 -0
- package/examples/node_modules/webpack/lib/runtime/HelperRuntimeModule.js +18 -0
- package/examples/node_modules/webpack/lib/runtime/LoadScriptRuntimeModule.js +158 -0
- package/examples/node_modules/webpack/lib/runtime/MakeNamespaceObjectRuntimeModule.js +36 -0
- package/examples/node_modules/webpack/lib/runtime/OnChunksLoadedRuntimeModule.js +76 -0
- package/examples/node_modules/webpack/lib/runtime/PublicPathRuntimeModule.js +30 -0
- package/examples/node_modules/webpack/lib/runtime/RelativeUrlRuntimeModule.js +41 -0
- package/examples/node_modules/webpack/lib/runtime/RuntimeIdRuntimeModule.js +28 -0
- package/examples/node_modules/webpack/lib/runtime/StartupChunkDependenciesPlugin.js +74 -0
- package/examples/node_modules/webpack/lib/runtime/StartupChunkDependenciesRuntimeModule.js +67 -0
- package/examples/node_modules/webpack/lib/runtime/StartupEntrypointRuntimeModule.js +50 -0
- package/examples/node_modules/webpack/lib/runtime/SystemContextRuntimeModule.js +25 -0
- package/examples/node_modules/webpack/lib/schemes/DataUriPlugin.js +56 -0
- package/examples/node_modules/webpack/lib/schemes/FileUriPlugin.js +49 -0
- package/examples/node_modules/webpack/lib/schemes/HttpUriPlugin.js +1118 -0
- package/examples/node_modules/webpack/lib/serialization/ArraySerializer.js +22 -0
- package/examples/node_modules/webpack/lib/serialization/BinaryMiddleware.js +950 -0
- package/examples/node_modules/webpack/lib/serialization/DateObjectSerializer.js +16 -0
- package/examples/node_modules/webpack/lib/serialization/ErrorObjectSerializer.js +27 -0
- package/examples/node_modules/webpack/lib/serialization/FileMiddleware.js +665 -0
- package/examples/node_modules/webpack/lib/serialization/MapObjectSerializer.js +31 -0
- package/examples/node_modules/webpack/lib/serialization/NullPrototypeObjectSerializer.js +33 -0
- package/examples/node_modules/webpack/lib/serialization/ObjectMiddleware.js +734 -0
- package/examples/node_modules/webpack/lib/serialization/PlainObjectSerializer.js +80 -0
- package/examples/node_modules/webpack/lib/serialization/RegExpObjectSerializer.js +17 -0
- package/examples/node_modules/webpack/lib/serialization/Serializer.js +46 -0
- package/examples/node_modules/webpack/lib/serialization/SerializerMiddleware.js +153 -0
- package/examples/node_modules/webpack/lib/serialization/SetObjectSerializer.js +24 -0
- package/examples/node_modules/webpack/lib/serialization/SingleItemMiddleware.js +34 -0
- package/examples/node_modules/webpack/lib/serialization/types.js +13 -0
- package/examples/node_modules/webpack/lib/sharing/ConsumeSharedFallbackDependency.js +30 -0
- package/examples/node_modules/webpack/lib/sharing/ConsumeSharedModule.js +251 -0
- package/examples/node_modules/webpack/lib/sharing/ConsumeSharedPlugin.js +319 -0
- package/examples/node_modules/webpack/lib/sharing/ConsumeSharedRuntimeModule.js +360 -0
- package/examples/node_modules/webpack/lib/sharing/ProvideForSharedDependency.js +34 -0
- package/examples/node_modules/webpack/lib/sharing/ProvideSharedDependency.js +63 -0
- package/examples/node_modules/webpack/lib/sharing/ProvideSharedModule.js +184 -0
- package/examples/node_modules/webpack/lib/sharing/ProvideSharedModuleFactory.js +35 -0
- package/examples/node_modules/webpack/lib/sharing/ProvideSharedPlugin.js +237 -0
- package/examples/node_modules/webpack/lib/sharing/SharePlugin.js +92 -0
- package/examples/node_modules/webpack/lib/sharing/ShareRuntimeModule.js +141 -0
- package/examples/node_modules/webpack/lib/sharing/resolveMatchedConfigs.js +91 -0
- package/examples/node_modules/webpack/lib/sharing/utils.js +90 -0
- package/examples/node_modules/webpack/lib/stats/DefaultStatsFactoryPlugin.js +2398 -0
- package/examples/node_modules/webpack/lib/stats/DefaultStatsPresetPlugin.js +326 -0
- package/examples/node_modules/webpack/lib/stats/DefaultStatsPrinterPlugin.js +1380 -0
- package/examples/node_modules/webpack/lib/stats/StatsFactory.js +292 -0
- package/examples/node_modules/webpack/lib/stats/StatsPrinter.js +249 -0
- package/examples/node_modules/webpack/lib/util/ArrayHelpers.js +44 -0
- package/examples/node_modules/webpack/lib/util/ArrayQueue.js +111 -0
- package/examples/node_modules/webpack/lib/util/AsyncQueue.js +373 -0
- package/examples/node_modules/webpack/lib/util/Hash.js +35 -0
- package/examples/node_modules/webpack/lib/util/IterableHelpers.js +46 -0
- package/examples/node_modules/webpack/lib/util/LazyBucketSortedSet.js +236 -0
- package/examples/node_modules/webpack/lib/util/LazySet.js +208 -0
- package/examples/node_modules/webpack/lib/util/MapHelpers.js +22 -0
- package/examples/node_modules/webpack/lib/util/ParallelismFactorCalculator.js +59 -0
- package/examples/node_modules/webpack/lib/util/Queue.js +51 -0
- package/examples/node_modules/webpack/lib/util/Semaphore.js +54 -0
- package/examples/node_modules/webpack/lib/util/SetHelpers.js +94 -0
- package/examples/node_modules/webpack/lib/util/SortableSet.js +160 -0
- package/examples/node_modules/webpack/lib/util/StackedCacheMap.js +110 -0
- package/examples/node_modules/webpack/lib/util/StackedMap.js +166 -0
- package/examples/node_modules/webpack/lib/util/StringXor.js +55 -0
- package/examples/node_modules/webpack/lib/util/TupleQueue.js +61 -0
- package/examples/node_modules/webpack/lib/util/TupleSet.js +150 -0
- package/examples/node_modules/webpack/lib/util/URLAbsoluteSpecifier.js +87 -0
- package/examples/node_modules/webpack/lib/util/WeakTupleMap.js +171 -0
- package/examples/node_modules/webpack/lib/util/binarySearchBounds.js +86 -0
- package/examples/node_modules/webpack/lib/util/cleverMerge.js +568 -0
- package/examples/node_modules/webpack/lib/util/comparators.js +459 -0
- package/examples/node_modules/webpack/lib/util/compileBooleanMatcher.js +206 -0
- package/examples/node_modules/webpack/lib/util/create-schema-validation.js +28 -0
- package/examples/node_modules/webpack/lib/util/createHash.js +171 -0
- package/examples/node_modules/webpack/lib/util/deprecation.js +264 -0
- package/examples/node_modules/webpack/lib/util/deterministicGrouping.js +508 -0
- package/examples/node_modules/webpack/lib/util/extractUrlAndGlobal.js +18 -0
- package/examples/node_modules/webpack/lib/util/findGraphRoots.js +229 -0
- package/examples/node_modules/webpack/lib/util/fs.js +337 -0
- package/examples/node_modules/webpack/lib/util/hash/BatchedHash.js +68 -0
- package/examples/node_modules/webpack/lib/util/hash/md4.js +20 -0
- package/examples/node_modules/webpack/lib/util/hash/wasm-hash.js +163 -0
- package/examples/node_modules/webpack/lib/util/hash/xxhash64.js +20 -0
- package/examples/node_modules/webpack/lib/util/identifier.js +377 -0
- package/examples/node_modules/webpack/lib/util/internalSerializables.js +211 -0
- package/examples/node_modules/webpack/lib/util/makeSerializable.js +30 -0
- package/examples/node_modules/webpack/lib/util/memoize.js +32 -0
- package/examples/node_modules/webpack/lib/util/nonNumericOnlyHash.js +22 -0
- package/examples/node_modules/webpack/lib/util/numberHash.js +45 -0
- package/examples/node_modules/webpack/lib/util/objectToMap.js +15 -0
- package/examples/node_modules/webpack/lib/util/processAsyncTree.js +62 -0
- package/examples/node_modules/webpack/lib/util/propertyAccess.js +78 -0
- package/examples/node_modules/webpack/lib/util/registerExternalSerializer.js +337 -0
- package/examples/node_modules/webpack/lib/util/runtime.js +623 -0
- package/examples/node_modules/webpack/lib/util/semver.js +484 -0
- package/examples/node_modules/webpack/lib/util/serialization.js +128 -0
- package/examples/node_modules/webpack/lib/util/smartGrouping.js +206 -0
- package/examples/node_modules/webpack/lib/util/source.js +61 -0
- package/examples/node_modules/webpack/lib/validateSchema.js +175 -0
- package/examples/node_modules/webpack/lib/wasm/EnableWasmLoadingPlugin.js +118 -0
- package/examples/node_modules/webpack/lib/wasm-async/AsyncWasmLoadingRuntimeModule.js +78 -0
- package/examples/node_modules/webpack/lib/wasm-async/AsyncWebAssemblyGenerator.js +53 -0
- package/examples/node_modules/webpack/lib/wasm-async/AsyncWebAssemblyJavascriptGenerator.js +194 -0
- package/examples/node_modules/webpack/lib/wasm-async/AsyncWebAssemblyModulesPlugin.js +198 -0
- package/examples/node_modules/webpack/lib/wasm-async/AsyncWebAssemblyParser.js +75 -0
- package/examples/node_modules/webpack/lib/wasm-sync/UnsupportedWebAssemblyFeatureError.js +16 -0
- package/examples/node_modules/webpack/lib/wasm-sync/WasmChunkLoadingRuntimeModule.js +372 -0
- package/examples/node_modules/webpack/lib/wasm-sync/WasmFinalizeExportsPlugin.js +82 -0
- package/examples/node_modules/webpack/lib/wasm-sync/WebAssemblyGenerator.js +501 -0
- package/examples/node_modules/webpack/lib/wasm-sync/WebAssemblyInInitialChunkError.js +106 -0
- package/examples/node_modules/webpack/lib/wasm-sync/WebAssemblyJavascriptGenerator.js +216 -0
- package/examples/node_modules/webpack/lib/wasm-sync/WebAssemblyModulesPlugin.js +142 -0
- package/examples/node_modules/webpack/lib/wasm-sync/WebAssemblyParser.js +192 -0
- package/examples/node_modules/webpack/lib/wasm-sync/WebAssemblyUtils.js +65 -0
- package/examples/node_modules/webpack/lib/web/FetchCompileAsyncWasmPlugin.js +62 -0
- package/examples/node_modules/webpack/lib/web/FetchCompileWasmPlugin.js +71 -0
- package/examples/node_modules/webpack/lib/web/JsonpChunkLoadingPlugin.js +91 -0
- package/examples/node_modules/webpack/lib/web/JsonpChunkLoadingRuntimeModule.js +450 -0
- package/examples/node_modules/webpack/lib/web/JsonpTemplatePlugin.js +38 -0
- package/examples/node_modules/webpack/lib/webpack.js +171 -0
- package/examples/node_modules/webpack/lib/webworker/ImportScriptsChunkLoadingPlugin.js +94 -0
- package/examples/node_modules/webpack/lib/webworker/ImportScriptsChunkLoadingRuntimeModule.js +238 -0
- package/examples/node_modules/webpack/lib/webworker/WebWorkerTemplatePlugin.js +25 -0
- package/examples/node_modules/webpack/module.d.ts +215 -0
- package/examples/node_modules/webpack/package.json +242 -0
- package/examples/node_modules/webpack/schemas/WebpackOptions.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/WebpackOptions.check.js +6 -0
- package/examples/node_modules/webpack/schemas/WebpackOptions.json +5321 -0
- package/examples/node_modules/webpack/schemas/_container.json +155 -0
- package/examples/node_modules/webpack/schemas/_sharing.json +118 -0
- package/examples/node_modules/webpack/schemas/plugins/BannerPlugin.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/BannerPlugin.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/BannerPlugin.json +103 -0
- package/examples/node_modules/webpack/schemas/plugins/DllPlugin.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/DllPlugin.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/DllPlugin.json +36 -0
- package/examples/node_modules/webpack/schemas/plugins/DllReferencePlugin.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/DllReferencePlugin.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/DllReferencePlugin.json +206 -0
- package/examples/node_modules/webpack/schemas/plugins/HashedModuleIdsPlugin.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/HashedModuleIdsPlugin.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/HashedModuleIdsPlugin.json +44 -0
- package/examples/node_modules/webpack/schemas/plugins/IgnorePlugin.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/IgnorePlugin.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/IgnorePlugin.json +34 -0
- package/examples/node_modules/webpack/schemas/plugins/JsonModulesPluginParser.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/JsonModulesPluginParser.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/JsonModulesPluginParser.json +12 -0
- package/examples/node_modules/webpack/schemas/plugins/LoaderOptionsPlugin.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/LoaderOptionsPlugin.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/LoaderOptionsPlugin.json +27 -0
- package/examples/node_modules/webpack/schemas/plugins/ProgressPlugin.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/ProgressPlugin.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/ProgressPlugin.json +65 -0
- package/examples/node_modules/webpack/schemas/plugins/SourceMapDevToolPlugin.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/SourceMapDevToolPlugin.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/SourceMapDevToolPlugin.json +143 -0
- package/examples/node_modules/webpack/schemas/plugins/WatchIgnorePlugin.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/WatchIgnorePlugin.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/WatchIgnorePlugin.json +25 -0
- package/examples/node_modules/webpack/schemas/plugins/asset/AssetGeneratorOptions.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/asset/AssetGeneratorOptions.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/asset/AssetGeneratorOptions.json +3 -0
- package/examples/node_modules/webpack/schemas/plugins/asset/AssetInlineGeneratorOptions.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/asset/AssetInlineGeneratorOptions.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/asset/AssetInlineGeneratorOptions.json +3 -0
- package/examples/node_modules/webpack/schemas/plugins/asset/AssetParserOptions.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/asset/AssetParserOptions.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/asset/AssetParserOptions.json +3 -0
- package/examples/node_modules/webpack/schemas/plugins/asset/AssetResourceGeneratorOptions.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/asset/AssetResourceGeneratorOptions.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/asset/AssetResourceGeneratorOptions.json +3 -0
- package/examples/node_modules/webpack/schemas/plugins/container/ContainerPlugin.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/container/ContainerPlugin.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/container/ContainerPlugin.json +286 -0
- package/examples/node_modules/webpack/schemas/plugins/container/ContainerReferencePlugin.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/container/ContainerReferencePlugin.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/container/ContainerReferencePlugin.json +128 -0
- package/examples/node_modules/webpack/schemas/plugins/container/ExternalsType.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/container/ExternalsType.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/container/ExternalsType.json +3 -0
- package/examples/node_modules/webpack/schemas/plugins/container/ModuleFederationPlugin.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/container/ModuleFederationPlugin.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/container/ModuleFederationPlugin.json +513 -0
- package/examples/node_modules/webpack/schemas/plugins/css/CssGeneratorOptions.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/css/CssGeneratorOptions.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/css/CssGeneratorOptions.json +3 -0
- package/examples/node_modules/webpack/schemas/plugins/css/CssParserOptions.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/css/CssParserOptions.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/css/CssParserOptions.json +3 -0
- package/examples/node_modules/webpack/schemas/plugins/debug/ProfilingPlugin.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/debug/ProfilingPlugin.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/debug/ProfilingPlugin.json +12 -0
- package/examples/node_modules/webpack/schemas/plugins/ids/OccurrenceChunkIdsPlugin.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/ids/OccurrenceChunkIdsPlugin.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/ids/OccurrenceChunkIdsPlugin.json +11 -0
- package/examples/node_modules/webpack/schemas/plugins/ids/OccurrenceModuleIdsPlugin.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/ids/OccurrenceModuleIdsPlugin.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/ids/OccurrenceModuleIdsPlugin.json +11 -0
- package/examples/node_modules/webpack/schemas/plugins/optimize/AggressiveSplittingPlugin.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/optimize/AggressiveSplittingPlugin.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/optimize/AggressiveSplittingPlugin.json +23 -0
- package/examples/node_modules/webpack/schemas/plugins/optimize/LimitChunkCountPlugin.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/optimize/LimitChunkCountPlugin.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/optimize/LimitChunkCountPlugin.json +21 -0
- package/examples/node_modules/webpack/schemas/plugins/optimize/MinChunkSizePlugin.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/optimize/MinChunkSizePlugin.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/optimize/MinChunkSizePlugin.json +20 -0
- package/examples/node_modules/webpack/schemas/plugins/schemes/HttpUriPlugin.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/schemes/HttpUriPlugin.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/schemes/HttpUriPlugin.json +74 -0
- package/examples/node_modules/webpack/schemas/plugins/sharing/ConsumeSharedPlugin.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/sharing/ConsumeSharedPlugin.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/sharing/ConsumeSharedPlugin.json +120 -0
- package/examples/node_modules/webpack/schemas/plugins/sharing/ProvideSharedPlugin.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/sharing/ProvideSharedPlugin.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/sharing/ProvideSharedPlugin.json +94 -0
- package/examples/node_modules/webpack/schemas/plugins/sharing/SharePlugin.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/sharing/SharePlugin.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/sharing/SharePlugin.json +133 -0
- package/examples/node_modules/webpack/types.d.ts +13072 -0
- package/examples/node_modules/webpack-cli/README.md +45 -14
- package/examples/node_modules/webpack-cli/bin/cli.js +9 -32
- package/examples/node_modules/webpack-cli/lib/bootstrap.js +12 -15
- package/examples/node_modules/webpack-cli/lib/index.js +3 -3
- package/examples/node_modules/webpack-cli/lib/plugins/CLIPlugin.js +101 -68
- package/examples/node_modules/webpack-cli/lib/utils/dynamic-import-loader.js +7 -7
- package/examples/node_modules/webpack-cli/lib/webpack-cli.js +2093 -1553
- package/examples/node_modules/webpack-cli/node_modules/commander/CHANGELOG.md +440 -0
- package/examples/node_modules/webpack-cli/node_modules/commander/LICENSE +22 -0
- package/examples/node_modules/webpack-cli/node_modules/commander/Readme.md +917 -0
- package/examples/node_modules/{commander → webpack-cli/node_modules/commander}/esm.mjs +0 -0
- package/examples/node_modules/webpack-cli/node_modules/commander/index.js +2217 -0
- package/examples/node_modules/{commander → webpack-cli/node_modules/commander}/package-support.json +0 -0
- package/examples/node_modules/webpack-cli/node_modules/commander/package.json +68 -0
- package/examples/node_modules/webpack-cli/node_modules/commander/typings/index.d.ts +627 -0
- package/examples/node_modules/webpack-cli/package.json +30 -63
- package/examples/node_modules/webpack-merge/CHANGELOG.md +5 -0
- package/examples/node_modules/webpack-merge/README.md +3 -3
- package/examples/node_modules/webpack-merge/dist/index.d.ts +4 -4
- package/examples/node_modules/webpack-merge/dist/index.js +8 -7
- package/examples/node_modules/webpack-merge/dist/index.js.map +1 -1
- package/examples/node_modules/webpack-merge/dist/join-arrays.js +7 -6
- package/examples/node_modules/webpack-merge/dist/join-arrays.js.map +1 -1
- package/examples/node_modules/webpack-merge/dist/types.d.ts +1 -0
- package/examples/node_modules/webpack-merge/dist/unique.js +5 -4
- package/examples/node_modules/webpack-merge/dist/unique.js.map +1 -1
- package/examples/node_modules/webpack-merge/dist/utils.d.ts +1 -1
- package/examples/node_modules/webpack-merge/package.json +37 -65
- package/examples/node_modules/webpack-sources/LICENSE +21 -0
- package/examples/node_modules/webpack-sources/README.md +228 -0
- package/examples/node_modules/webpack-sources/lib/CachedSource.js +274 -0
- package/examples/node_modules/webpack-sources/lib/CompatSource.js +66 -0
- package/examples/node_modules/webpack-sources/lib/ConcatSource.js +319 -0
- package/examples/node_modules/webpack-sources/lib/OriginalSource.js +135 -0
- package/examples/node_modules/webpack-sources/lib/PrefixSource.js +114 -0
- package/examples/node_modules/webpack-sources/lib/RawSource.js +81 -0
- package/examples/node_modules/webpack-sources/lib/ReplaceSource.js +467 -0
- package/examples/node_modules/webpack-sources/lib/SizeOnlySource.js +42 -0
- package/examples/node_modules/webpack-sources/lib/Source.js +38 -0
- package/examples/node_modules/webpack-sources/lib/SourceMapSource.js +247 -0
- package/examples/node_modules/webpack-sources/lib/helpers/createMappingsSerializer.js +206 -0
- package/examples/node_modules/webpack-sources/lib/helpers/getFromStreamChunks.js +129 -0
- package/examples/node_modules/webpack-sources/lib/helpers/getGeneratedSourceInfo.js +33 -0
- package/examples/node_modules/webpack-sources/lib/helpers/getName.js +14 -0
- package/examples/node_modules/webpack-sources/lib/helpers/getSource.js +17 -0
- package/examples/node_modules/webpack-sources/lib/helpers/readMappings.js +116 -0
- package/examples/node_modules/webpack-sources/lib/helpers/splitIntoLines.js +21 -0
- package/examples/node_modules/webpack-sources/lib/helpers/splitIntoPotentialTokens.js +41 -0
- package/examples/node_modules/webpack-sources/lib/helpers/streamAndGetSourceAndMap.js +102 -0
- package/examples/node_modules/webpack-sources/lib/helpers/streamChunks.js +36 -0
- package/examples/node_modules/webpack-sources/lib/helpers/streamChunksOfCombinedSourceMap.js +329 -0
- package/examples/node_modules/webpack-sources/lib/helpers/streamChunksOfRawSource.js +34 -0
- package/examples/node_modules/webpack-sources/lib/helpers/streamChunksOfSourceMap.js +412 -0
- package/examples/node_modules/webpack-sources/lib/index.js +30 -0
- package/examples/node_modules/webpack-sources/package.json +58 -0
- package/examples/node_modules/which/package.json +22 -55
- package/examples/node_modules/wildcard/package.json +22 -51
- package/lib/browser/math.js +6 -6
- package/lib/browser/math.js.map +1 -1
- package/lib/cjs/expression/embeddedDocs/function/matrix/forEach.js +1 -1
- package/lib/cjs/expression/node/FunctionNode.js +30 -8
- package/lib/cjs/function/arithmetic/sign.js +4 -0
- package/lib/cjs/function/string/format.js +3 -0
- package/lib/cjs/header.js +2 -2
- package/lib/cjs/type/unit/Unit.js +67 -79
- package/lib/cjs/utils/string.js +17 -4
- package/lib/cjs/version.js +1 -1
- package/lib/esm/expression/embeddedDocs/function/matrix/forEach.js +1 -1
- package/lib/esm/expression/node/FunctionNode.js +29 -9
- package/lib/esm/function/arithmetic/sign.js +4 -0
- package/lib/esm/function/string/format.js +3 -0
- package/lib/esm/type/unit/Unit.js +67 -79
- package/lib/esm/utils/string.js +18 -4
- package/lib/esm/version.js +1 -1
- package/package.json +2 -2
- package/examples/node_modules/@discoveryjs/json-ext/CHANGELOG.md +0 -42
- package/examples/node_modules/@webpack-cli/configtest/CHANGELOG.md +0 -18
- package/examples/node_modules/@webpack-cli/configtest/LICENSE +0 -20
- package/examples/node_modules/@webpack-cli/info/CHANGELOG.md +0 -61
- package/examples/node_modules/@webpack-cli/info/LICENSE +0 -20
- package/examples/node_modules/@webpack-cli/serve/CHANGELOG.md +0 -93
- package/examples/node_modules/@webpack-cli/serve/LICENSE +0 -20
- package/examples/node_modules/@webpack-cli/serve/lib/startDevServer.d.ts +0 -12
- package/examples/node_modules/@webpack-cli/serve/lib/startDevServer.js +0 -113
- package/examples/node_modules/ansi-colors/LICENSE +0 -21
- package/examples/node_modules/ansi-colors/README.md +0 -315
- package/examples/node_modules/ansi-colors/index.js +0 -177
- package/examples/node_modules/ansi-colors/package.json +0 -152
- package/examples/node_modules/ansi-colors/symbols.js +0 -70
- package/examples/node_modules/ansi-colors/types/index.d.ts +0 -161
- package/examples/node_modules/enquirer/CHANGELOG.md +0 -135
- package/examples/node_modules/enquirer/LICENSE +0 -21
- package/examples/node_modules/enquirer/README.md +0 -1752
- package/examples/node_modules/enquirer/index.d.ts +0 -151
- package/examples/node_modules/enquirer/index.js +0 -250
- package/examples/node_modules/enquirer/lib/ansi.js +0 -116
- package/examples/node_modules/enquirer/lib/combos.js +0 -75
- package/examples/node_modules/enquirer/lib/completer.js +0 -52
- package/examples/node_modules/enquirer/lib/interpolate.js +0 -266
- package/examples/node_modules/enquirer/lib/keypress.js +0 -243
- package/examples/node_modules/enquirer/lib/placeholder.js +0 -63
- package/examples/node_modules/enquirer/lib/prompt.js +0 -485
- package/examples/node_modules/enquirer/lib/prompts/autocomplete.js +0 -113
- package/examples/node_modules/enquirer/lib/prompts/basicauth.js +0 -41
- package/examples/node_modules/enquirer/lib/prompts/confirm.js +0 -13
- package/examples/node_modules/enquirer/lib/prompts/editable.js +0 -136
- package/examples/node_modules/enquirer/lib/prompts/form.js +0 -196
- package/examples/node_modules/enquirer/lib/prompts/index.js +0 -28
- package/examples/node_modules/enquirer/lib/prompts/input.js +0 -55
- package/examples/node_modules/enquirer/lib/prompts/invisible.js +0 -11
- package/examples/node_modules/enquirer/lib/prompts/list.js +0 -36
- package/examples/node_modules/enquirer/lib/prompts/multiselect.js +0 -11
- package/examples/node_modules/enquirer/lib/prompts/numeral.js +0 -1
- package/examples/node_modules/enquirer/lib/prompts/password.js +0 -18
- package/examples/node_modules/enquirer/lib/prompts/quiz.js +0 -37
- package/examples/node_modules/enquirer/lib/prompts/scale.js +0 -237
- package/examples/node_modules/enquirer/lib/prompts/select.js +0 -139
- package/examples/node_modules/enquirer/lib/prompts/snippet.js +0 -185
- package/examples/node_modules/enquirer/lib/prompts/sort.js +0 -37
- package/examples/node_modules/enquirer/lib/prompts/survey.js +0 -163
- package/examples/node_modules/enquirer/lib/prompts/text.js +0 -1
- package/examples/node_modules/enquirer/lib/prompts/toggle.js +0 -109
- package/examples/node_modules/enquirer/lib/render.js +0 -33
- package/examples/node_modules/enquirer/lib/roles.js +0 -46
- package/examples/node_modules/enquirer/lib/state.js +0 -69
- package/examples/node_modules/enquirer/lib/styles.js +0 -144
- package/examples/node_modules/enquirer/lib/symbols.js +0 -66
- package/examples/node_modules/enquirer/lib/theme.js +0 -11
- package/examples/node_modules/enquirer/lib/timer.js +0 -38
- package/examples/node_modules/enquirer/lib/types/array.js +0 -658
- package/examples/node_modules/enquirer/lib/types/auth.js +0 -29
- package/examples/node_modules/enquirer/lib/types/boolean.js +0 -88
- package/examples/node_modules/enquirer/lib/types/index.js +0 -7
- package/examples/node_modules/enquirer/lib/types/number.js +0 -86
- package/examples/node_modules/enquirer/lib/types/string.js +0 -185
- package/examples/node_modules/enquirer/lib/utils.js +0 -268
- package/examples/node_modules/enquirer/package.json +0 -148
- package/examples/node_modules/is-core-module/.eslintignore +0 -1
- package/examples/node_modules/is-core-module/.github/FUNDING.yml +0 -12
- package/examples/node_modules/is-core-module/.github/workflows/node-4+.yml +0 -54
- package/examples/node_modules/is-core-module/.github/workflows/node-iojs.yml +0 -58
- package/examples/node_modules/is-core-module/.github/workflows/node-pretest.yml +0 -26
- package/examples/node_modules/is-core-module/.github/workflows/node-zero.yml +0 -58
- package/examples/node_modules/is-core-module/.github/workflows/rebase.yml +0 -15
- package/examples/node_modules/is-core-module/.github/workflows/require-allow-edits.yml +0 -14
- package/examples/node_modules/path-parse/.travis.yml +0 -9
- package/examples/node_modules/path-parse/test.js +0 -77
- package/examples/node_modules/resolve/.eslintignore +0 -1
- package/examples/node_modules/resolve/test/.eslintrc +0 -5
- package/examples/node_modules/signal-exit/CHANGELOG.md +0 -35
- package/examples/node_modules/v8-compile-cache/CHANGELOG.md +0 -53
- package/examples/node_modules/v8-compile-cache/LICENSE +0 -21
- package/examples/node_modules/v8-compile-cache/README.md +0 -55
- package/examples/node_modules/v8-compile-cache/package.json +0 -66
- package/examples/node_modules/v8-compile-cache/v8-compile-cache.js +0 -371
- package/examples/node_modules/webpack-cli/CHANGELOG.md +0 -501
- package/examples/node_modules/webpack-cli/LICENSE +0 -20
- package/examples/node_modules/webpack-cli/lib/utils/__tests__/get-package-manager.test.js +0 -108
- package/examples/node_modules/webpack-cli/lib/utils/__tests__/prompt-installation.test.js +0 -118
- package/examples/node_modules/webpack-cli/lib/utils/capitalize-first-letter.js +0 -9
- package/examples/node_modules/webpack-cli/lib/utils/get-package-manager.js +0 -65
- package/examples/node_modules/webpack-cli/lib/utils/index.js +0 -49
- package/examples/node_modules/webpack-cli/lib/utils/logger.js +0 -11
- package/examples/node_modules/webpack-cli/lib/utils/package-exists.js +0 -9
- package/examples/node_modules/webpack-cli/lib/utils/prompt-installation.js +0 -58
- package/examples/node_modules/webpack-cli/lib/utils/run-command.js +0 -13
- package/examples/node_modules/webpack-cli/lib/utils/to-kebab-case.js +0 -5
@@ -2,2216 +2,1223 @@
|
|
2
2
|
* Module dependencies.
|
3
3
|
*/
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
// Although this is a class, methods are static in style to allow override using subclass or just functions.
|
13
|
-
class Help {
|
14
|
-
constructor() {
|
15
|
-
this.helpWidth = undefined;
|
16
|
-
this.sortSubcommands = false;
|
17
|
-
this.sortOptions = false;
|
18
|
-
}
|
19
|
-
|
20
|
-
/**
|
21
|
-
* Get an array of the visible subcommands. Includes a placeholder for the implicit help command, if there is one.
|
22
|
-
*
|
23
|
-
* @param {Command} cmd
|
24
|
-
* @returns {Command[]}
|
25
|
-
*/
|
26
|
-
|
27
|
-
visibleCommands(cmd) {
|
28
|
-
const visibleCommands = cmd.commands.filter(cmd => !cmd._hidden);
|
29
|
-
if (cmd._hasImplicitHelpCommand()) {
|
30
|
-
// Create a command matching the implicit help command.
|
31
|
-
const args = cmd._helpCommandnameAndArgs.split(/ +/);
|
32
|
-
const helpCommand = cmd.createCommand(args.shift())
|
33
|
-
.helpOption(false);
|
34
|
-
helpCommand.description(cmd._helpCommandDescription);
|
35
|
-
helpCommand._parseExpectedArgs(args);
|
36
|
-
visibleCommands.push(helpCommand);
|
37
|
-
}
|
38
|
-
if (this.sortSubcommands) {
|
39
|
-
visibleCommands.sort((a, b) => {
|
40
|
-
return a.name().localeCompare(b.name());
|
41
|
-
});
|
42
|
-
}
|
43
|
-
return visibleCommands;
|
44
|
-
}
|
45
|
-
|
46
|
-
/**
|
47
|
-
* Get an array of the visible options. Includes a placeholder for the implicit help option, if there is one.
|
48
|
-
*
|
49
|
-
* @param {Command} cmd
|
50
|
-
* @returns {Option[]}
|
51
|
-
*/
|
52
|
-
|
53
|
-
visibleOptions(cmd) {
|
54
|
-
const visibleOptions = cmd.options.filter((option) => !option.hidden);
|
55
|
-
// Implicit help
|
56
|
-
const showShortHelpFlag = cmd._hasHelpOption && cmd._helpShortFlag && !cmd._findOption(cmd._helpShortFlag);
|
57
|
-
const showLongHelpFlag = cmd._hasHelpOption && !cmd._findOption(cmd._helpLongFlag);
|
58
|
-
if (showShortHelpFlag || showLongHelpFlag) {
|
59
|
-
let helpOption;
|
60
|
-
if (!showShortHelpFlag) {
|
61
|
-
helpOption = cmd.createOption(cmd._helpLongFlag, cmd._helpDescription);
|
62
|
-
} else if (!showLongHelpFlag) {
|
63
|
-
helpOption = cmd.createOption(cmd._helpShortFlag, cmd._helpDescription);
|
64
|
-
} else {
|
65
|
-
helpOption = cmd.createOption(cmd._helpFlags, cmd._helpDescription);
|
66
|
-
}
|
67
|
-
visibleOptions.push(helpOption);
|
68
|
-
}
|
69
|
-
if (this.sortOptions) {
|
70
|
-
const getSortKey = (option) => {
|
71
|
-
// WYSIWYG for order displayed in help with short before long, no special handling for negated.
|
72
|
-
return option.short ? option.short.replace(/^-/, '') : option.long.replace(/^--/, '');
|
73
|
-
};
|
74
|
-
visibleOptions.sort((a, b) => {
|
75
|
-
return getSortKey(a).localeCompare(getSortKey(b));
|
76
|
-
});
|
77
|
-
}
|
78
|
-
return visibleOptions;
|
79
|
-
}
|
80
|
-
|
81
|
-
/**
|
82
|
-
* Get an array of the arguments which have descriptions.
|
83
|
-
*
|
84
|
-
* @param {Command} cmd
|
85
|
-
* @returns {{ term: string, description:string }[]}
|
86
|
-
*/
|
87
|
-
|
88
|
-
visibleArguments(cmd) {
|
89
|
-
if (cmd._argsDescription && cmd._args.length) {
|
90
|
-
return cmd._args.map((argument) => {
|
91
|
-
return { term: argument.name, description: cmd._argsDescription[argument.name] || '' };
|
92
|
-
}, 0);
|
93
|
-
}
|
94
|
-
return [];
|
95
|
-
}
|
96
|
-
|
97
|
-
/**
|
98
|
-
* Get the command term to show in the list of subcommands.
|
99
|
-
*
|
100
|
-
* @param {Command} cmd
|
101
|
-
* @returns {string}
|
102
|
-
*/
|
103
|
-
|
104
|
-
subcommandTerm(cmd) {
|
105
|
-
// Legacy. Ignores custom usage string, and nested commands.
|
106
|
-
const args = cmd._args.map(arg => humanReadableArgName(arg)).join(' ');
|
107
|
-
return cmd._name +
|
108
|
-
(cmd._aliases[0] ? '|' + cmd._aliases[0] : '') +
|
109
|
-
(cmd.options.length ? ' [options]' : '') + // simplistic check for non-help option
|
110
|
-
(args ? ' ' + args : '');
|
111
|
-
}
|
5
|
+
var EventEmitter = require('events').EventEmitter;
|
6
|
+
var spawn = require('child_process').spawn;
|
7
|
+
var path = require('path');
|
8
|
+
var dirname = path.dirname;
|
9
|
+
var basename = path.basename;
|
10
|
+
var fs = require('fs');
|
112
11
|
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
* @param {Option} option
|
117
|
-
* @returns {string}
|
118
|
-
*/
|
12
|
+
/**
|
13
|
+
* Inherit `Command` from `EventEmitter.prototype`.
|
14
|
+
*/
|
119
15
|
|
120
|
-
|
121
|
-
return option.flags;
|
122
|
-
}
|
16
|
+
require('util').inherits(Command, EventEmitter);
|
123
17
|
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
* @param {Command} cmd
|
128
|
-
* @param {Help} helper
|
129
|
-
* @returns {number}
|
130
|
-
*/
|
131
|
-
|
132
|
-
longestSubcommandTermLength(cmd, helper) {
|
133
|
-
return helper.visibleCommands(cmd).reduce((max, command) => {
|
134
|
-
return Math.max(max, helper.subcommandTerm(command).length);
|
135
|
-
}, 0);
|
136
|
-
};
|
137
|
-
|
138
|
-
/**
|
139
|
-
* Get the longest option term length.
|
140
|
-
*
|
141
|
-
* @param {Command} cmd
|
142
|
-
* @param {Help} helper
|
143
|
-
* @returns {number}
|
144
|
-
*/
|
145
|
-
|
146
|
-
longestOptionTermLength(cmd, helper) {
|
147
|
-
return helper.visibleOptions(cmd).reduce((max, option) => {
|
148
|
-
return Math.max(max, helper.optionTerm(option).length);
|
149
|
-
}, 0);
|
150
|
-
};
|
18
|
+
/**
|
19
|
+
* Expose the root command.
|
20
|
+
*/
|
151
21
|
|
152
|
-
|
153
|
-
* Get the longest argument term length.
|
154
|
-
*
|
155
|
-
* @param {Command} cmd
|
156
|
-
* @param {Help} helper
|
157
|
-
* @returns {number}
|
158
|
-
*/
|
159
|
-
|
160
|
-
longestArgumentTermLength(cmd, helper) {
|
161
|
-
return helper.visibleArguments(cmd).reduce((max, argument) => {
|
162
|
-
return Math.max(max, argument.term.length);
|
163
|
-
}, 0);
|
164
|
-
};
|
22
|
+
exports = module.exports = new Command();
|
165
23
|
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
* @param {Command} cmd
|
170
|
-
* @returns {string}
|
171
|
-
*/
|
172
|
-
|
173
|
-
commandUsage(cmd) {
|
174
|
-
// Usage
|
175
|
-
let cmdName = cmd._name;
|
176
|
-
if (cmd._aliases[0]) {
|
177
|
-
cmdName = cmdName + '|' + cmd._aliases[0];
|
178
|
-
}
|
179
|
-
let parentCmdNames = '';
|
180
|
-
for (let parentCmd = cmd.parent; parentCmd; parentCmd = parentCmd.parent) {
|
181
|
-
parentCmdNames = parentCmd.name() + ' ' + parentCmdNames;
|
182
|
-
}
|
183
|
-
return parentCmdNames + cmdName + ' ' + cmd.usage();
|
184
|
-
}
|
24
|
+
/**
|
25
|
+
* Expose `Command`.
|
26
|
+
*/
|
185
27
|
|
186
|
-
|
187
|
-
* Get the description for the command.
|
188
|
-
*
|
189
|
-
* @param {Command} cmd
|
190
|
-
* @returns {string}
|
191
|
-
*/
|
28
|
+
exports.Command = Command;
|
192
29
|
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
}
|
30
|
+
/**
|
31
|
+
* Expose `Option`.
|
32
|
+
*/
|
197
33
|
|
198
|
-
|
199
|
-
* Get the command description to show in the list of subcommands.
|
200
|
-
*
|
201
|
-
* @param {Command} cmd
|
202
|
-
* @returns {string}
|
203
|
-
*/
|
34
|
+
exports.Option = Option;
|
204
35
|
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
36
|
+
/**
|
37
|
+
* Initialize a new `Option` with the given `flags` and `description`.
|
38
|
+
*
|
39
|
+
* @param {String} flags
|
40
|
+
* @param {String} description
|
41
|
+
* @api public
|
42
|
+
*/
|
209
43
|
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
44
|
+
function Option(flags, description) {
|
45
|
+
this.flags = flags;
|
46
|
+
this.required = flags.indexOf('<') >= 0;
|
47
|
+
this.optional = flags.indexOf('[') >= 0;
|
48
|
+
this.bool = flags.indexOf('-no-') === -1;
|
49
|
+
flags = flags.split(/[ ,|]+/);
|
50
|
+
if (flags.length > 1 && !/^[[<]/.test(flags[1])) this.short = flags.shift();
|
51
|
+
this.long = flags.shift();
|
52
|
+
this.description = description || '';
|
53
|
+
}
|
216
54
|
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
extraInfo.push(
|
224
|
-
// use stringify to match the display of the default value
|
225
|
-
`choices: ${option.argChoices.map((choice) => JSON.stringify(choice)).join(', ')}`);
|
226
|
-
}
|
227
|
-
if (option.defaultValue !== undefined) {
|
228
|
-
extraInfo.push(`default: ${option.defaultValueDescription || JSON.stringify(option.defaultValue)}`);
|
229
|
-
}
|
230
|
-
if (extraInfo.length > 0) {
|
231
|
-
return `${option.description} (${extraInfo.join(', ')})`;
|
232
|
-
}
|
233
|
-
return option.description;
|
234
|
-
};
|
55
|
+
/**
|
56
|
+
* Return option name.
|
57
|
+
*
|
58
|
+
* @return {String}
|
59
|
+
* @api private
|
60
|
+
*/
|
235
61
|
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
* @returns {string}
|
242
|
-
*/
|
243
|
-
|
244
|
-
formatHelp(cmd, helper) {
|
245
|
-
const termWidth = helper.padWidth(cmd, helper);
|
246
|
-
const helpWidth = helper.helpWidth || 80;
|
247
|
-
const itemIndentWidth = 2;
|
248
|
-
const itemSeparatorWidth = 2; // between term and description
|
249
|
-
function formatItem(term, description) {
|
250
|
-
if (description) {
|
251
|
-
const fullText = `${term.padEnd(termWidth + itemSeparatorWidth)}${description}`;
|
252
|
-
return helper.wrap(fullText, helpWidth - itemIndentWidth, termWidth + itemSeparatorWidth);
|
253
|
-
}
|
254
|
-
return term;
|
255
|
-
};
|
256
|
-
function formatList(textArray) {
|
257
|
-
return textArray.join('\n').replace(/^/gm, ' '.repeat(itemIndentWidth));
|
258
|
-
}
|
62
|
+
Option.prototype.name = function() {
|
63
|
+
return this.long
|
64
|
+
.replace('--', '')
|
65
|
+
.replace('no-', '');
|
66
|
+
};
|
259
67
|
|
260
|
-
|
261
|
-
|
68
|
+
/**
|
69
|
+
* Return option name, in a camelcase format that can be used
|
70
|
+
* as a object attribute key.
|
71
|
+
*
|
72
|
+
* @return {String}
|
73
|
+
* @api private
|
74
|
+
*/
|
262
75
|
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
output = output.concat([commandDescription, '']);
|
267
|
-
}
|
76
|
+
Option.prototype.attributeName = function() {
|
77
|
+
return camelcase(this.name());
|
78
|
+
};
|
268
79
|
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
80
|
+
/**
|
81
|
+
* Check if `arg` matches the short or long flag.
|
82
|
+
*
|
83
|
+
* @param {String} arg
|
84
|
+
* @return {Boolean}
|
85
|
+
* @api private
|
86
|
+
*/
|
276
87
|
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
});
|
281
|
-
if (optionList.length > 0) {
|
282
|
-
output = output.concat(['Options:', formatList(optionList), '']);
|
283
|
-
}
|
88
|
+
Option.prototype.is = function(arg) {
|
89
|
+
return this.short === arg || this.long === arg;
|
90
|
+
};
|
284
91
|
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
}
|
92
|
+
/**
|
93
|
+
* Initialize a new `Command`.
|
94
|
+
*
|
95
|
+
* @param {String} name
|
96
|
+
* @api public
|
97
|
+
*/
|
292
98
|
|
293
|
-
|
294
|
-
|
99
|
+
function Command(name) {
|
100
|
+
this.commands = [];
|
101
|
+
this.options = [];
|
102
|
+
this._execs = {};
|
103
|
+
this._allowUnknownOption = false;
|
104
|
+
this._args = [];
|
105
|
+
this._name = name || '';
|
106
|
+
}
|
295
107
|
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
108
|
+
/**
|
109
|
+
* Add command `name`.
|
110
|
+
*
|
111
|
+
* The `.action()` callback is invoked when the
|
112
|
+
* command `name` is specified via __ARGV__,
|
113
|
+
* and the remaining arguments are applied to the
|
114
|
+
* function for access.
|
115
|
+
*
|
116
|
+
* When the `name` is "*" an un-matched command
|
117
|
+
* will be passed as the first arg, followed by
|
118
|
+
* the rest of __ARGV__ remaining.
|
119
|
+
*
|
120
|
+
* Examples:
|
121
|
+
*
|
122
|
+
* program
|
123
|
+
* .version('0.0.1')
|
124
|
+
* .option('-C, --chdir <path>', 'change the working directory')
|
125
|
+
* .option('-c, --config <path>', 'set config path. defaults to ./deploy.conf')
|
126
|
+
* .option('-T, --no-tests', 'ignore test hook')
|
127
|
+
*
|
128
|
+
* program
|
129
|
+
* .command('setup')
|
130
|
+
* .description('run remote setup commands')
|
131
|
+
* .action(function() {
|
132
|
+
* console.log('setup');
|
133
|
+
* });
|
134
|
+
*
|
135
|
+
* program
|
136
|
+
* .command('exec <cmd>')
|
137
|
+
* .description('run the given remote command')
|
138
|
+
* .action(function(cmd) {
|
139
|
+
* console.log('exec "%s"', cmd);
|
140
|
+
* });
|
141
|
+
*
|
142
|
+
* program
|
143
|
+
* .command('teardown <dir> [otherDirs...]')
|
144
|
+
* .description('run teardown commands')
|
145
|
+
* .action(function(dir, otherDirs) {
|
146
|
+
* console.log('dir "%s"', dir);
|
147
|
+
* if (otherDirs) {
|
148
|
+
* otherDirs.forEach(function (oDir) {
|
149
|
+
* console.log('dir "%s"', oDir);
|
150
|
+
* });
|
151
|
+
* }
|
152
|
+
* });
|
153
|
+
*
|
154
|
+
* program
|
155
|
+
* .command('*')
|
156
|
+
* .description('deploy the given env')
|
157
|
+
* .action(function(env) {
|
158
|
+
* console.log('deploying "%s"', env);
|
159
|
+
* });
|
160
|
+
*
|
161
|
+
* program.parse(process.argv);
|
162
|
+
*
|
163
|
+
* @param {String} name
|
164
|
+
* @param {String} [desc] for git-style sub-commands
|
165
|
+
* @return {Command} the new command
|
166
|
+
* @api public
|
167
|
+
*/
|
311
168
|
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
* @param {string} str
|
317
|
-
* @param {number} width
|
318
|
-
* @param {number} indent
|
319
|
-
* @param {number} [minColumnWidth=40]
|
320
|
-
* @return {string}
|
321
|
-
*
|
322
|
-
*/
|
323
|
-
|
324
|
-
wrap(str, width, indent, minColumnWidth = 40) {
|
325
|
-
// Detect manually wrapped and indented strings by searching for line breaks
|
326
|
-
// followed by multiple spaces/tabs.
|
327
|
-
if (str.match(/[\n]\s+/)) return str;
|
328
|
-
// Do not wrap if not enough room for a wrapped column of text (as could end up with a word per line).
|
329
|
-
const columnWidth = width - indent;
|
330
|
-
if (columnWidth < minColumnWidth) return str;
|
331
|
-
|
332
|
-
const leadingStr = str.substr(0, indent);
|
333
|
-
const columnText = str.substr(indent);
|
334
|
-
|
335
|
-
const indentString = ' '.repeat(indent);
|
336
|
-
const regex = new RegExp('.{1,' + (columnWidth - 1) + '}([\\s\u200B]|$)|[^\\s\u200B]+?([\\s\u200B]|$)', 'g');
|
337
|
-
const lines = columnText.match(regex) || [];
|
338
|
-
return leadingStr + lines.map((line, i) => {
|
339
|
-
if (line.slice(-1) === '\n') {
|
340
|
-
line = line.slice(0, line.length - 1);
|
341
|
-
}
|
342
|
-
return ((i > 0) ? indentString : '') + line.trimRight();
|
343
|
-
}).join('\n');
|
169
|
+
Command.prototype.command = function(name, desc, opts) {
|
170
|
+
if (typeof desc === 'object' && desc !== null) {
|
171
|
+
opts = desc;
|
172
|
+
desc = null;
|
344
173
|
}
|
345
|
-
}
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
constructor(flags, description) {
|
356
|
-
this.flags = flags;
|
357
|
-
this.description = description || '';
|
358
|
-
|
359
|
-
this.required = flags.includes('<'); // A value must be supplied when the option is specified.
|
360
|
-
this.optional = flags.includes('['); // A value is optional when the option is specified.
|
361
|
-
// variadic test ignores <value,...> et al which might be used to describe custom splitting of single argument
|
362
|
-
this.variadic = /\w\.\.\.[>\]]$/.test(flags); // The option can take multiple values.
|
363
|
-
this.mandatory = false; // The option must have a value after parsing, which usually means it must be specified on command line.
|
364
|
-
const optionFlags = _parseOptionFlags(flags);
|
365
|
-
this.short = optionFlags.shortFlag;
|
366
|
-
this.long = optionFlags.longFlag;
|
367
|
-
this.negate = false;
|
368
|
-
if (this.long) {
|
369
|
-
this.negate = this.long.startsWith('--no-');
|
370
|
-
}
|
371
|
-
this.defaultValue = undefined;
|
372
|
-
this.defaultValueDescription = undefined;
|
373
|
-
this.parseArg = undefined;
|
374
|
-
this.hidden = false;
|
375
|
-
this.argChoices = undefined;
|
174
|
+
opts = opts || {};
|
175
|
+
var args = name.split(/ +/);
|
176
|
+
var cmd = new Command(args.shift());
|
177
|
+
|
178
|
+
if (desc) {
|
179
|
+
cmd.description(desc);
|
180
|
+
this.executables = true;
|
181
|
+
this._execs[cmd._name] = true;
|
182
|
+
if (opts.isDefault) this.defaultExecutable = cmd._name;
|
376
183
|
}
|
184
|
+
cmd._noHelp = !!opts.noHelp;
|
185
|
+
this.commands.push(cmd);
|
186
|
+
cmd.parseExpectedArgs(args);
|
187
|
+
cmd.parent = this;
|
377
188
|
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
* @param {any} value
|
382
|
-
* @param {string} [description]
|
383
|
-
* @return {Option}
|
384
|
-
*/
|
385
|
-
|
386
|
-
default(value, description) {
|
387
|
-
this.defaultValue = value;
|
388
|
-
this.defaultValueDescription = description;
|
389
|
-
return this;
|
390
|
-
};
|
391
|
-
|
392
|
-
/**
|
393
|
-
* Set the custom handler for processing CLI option arguments into option values.
|
394
|
-
*
|
395
|
-
* @param {Function} [fn]
|
396
|
-
* @return {Option}
|
397
|
-
*/
|
398
|
-
|
399
|
-
argParser(fn) {
|
400
|
-
this.parseArg = fn;
|
401
|
-
return this;
|
402
|
-
};
|
403
|
-
|
404
|
-
/**
|
405
|
-
* Whether the option is mandatory and must have a value after parsing.
|
406
|
-
*
|
407
|
-
* @param {boolean} [mandatory=true]
|
408
|
-
* @return {Option}
|
409
|
-
*/
|
410
|
-
|
411
|
-
makeOptionMandatory(mandatory = true) {
|
412
|
-
this.mandatory = !!mandatory;
|
413
|
-
return this;
|
414
|
-
};
|
189
|
+
if (desc) return this;
|
190
|
+
return cmd;
|
191
|
+
};
|
415
192
|
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
*/
|
193
|
+
/**
|
194
|
+
* Define argument syntax for the top-level command.
|
195
|
+
*
|
196
|
+
* @api public
|
197
|
+
*/
|
422
198
|
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
};
|
199
|
+
Command.prototype.arguments = function(desc) {
|
200
|
+
return this.parseExpectedArgs(desc.split(/ +/));
|
201
|
+
};
|
427
202
|
|
428
|
-
|
429
|
-
|
430
|
-
|
203
|
+
/**
|
204
|
+
* Add an implicit `help [cmd]` subcommand
|
205
|
+
* which invokes `--help` for the given command.
|
206
|
+
*
|
207
|
+
* @api private
|
208
|
+
*/
|
431
209
|
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
}
|
210
|
+
Command.prototype.addImplicitHelpCommand = function() {
|
211
|
+
this.command('help [cmd]', 'display help for [cmd]');
|
212
|
+
};
|
436
213
|
|
437
|
-
|
438
|
-
|
214
|
+
/**
|
215
|
+
* Parse expected `args`.
|
216
|
+
*
|
217
|
+
* For example `["[type]"]` becomes `[{ required: false, name: 'type' }]`.
|
218
|
+
*
|
219
|
+
* @param {Array} args
|
220
|
+
* @return {Command} for chaining
|
221
|
+
* @api public
|
222
|
+
*/
|
439
223
|
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
this.argChoices = values;
|
449
|
-
this.parseArg = (arg, previous) => {
|
450
|
-
if (!values.includes(arg)) {
|
451
|
-
throw new InvalidOptionArgumentError(`Allowed choices are ${values.join(', ')}.`);
|
452
|
-
}
|
453
|
-
if (this.variadic) {
|
454
|
-
return this._concatValue(arg, previous);
|
455
|
-
}
|
456
|
-
return arg;
|
224
|
+
Command.prototype.parseExpectedArgs = function(args) {
|
225
|
+
if (!args.length) return;
|
226
|
+
var self = this;
|
227
|
+
args.forEach(function(arg) {
|
228
|
+
var argDetails = {
|
229
|
+
required: false,
|
230
|
+
name: '',
|
231
|
+
variadic: false
|
457
232
|
};
|
458
|
-
return this;
|
459
|
-
};
|
460
233
|
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
return this.long.replace(/^--/, '');
|
234
|
+
switch (arg[0]) {
|
235
|
+
case '<':
|
236
|
+
argDetails.required = true;
|
237
|
+
argDetails.name = arg.slice(1, -1);
|
238
|
+
break;
|
239
|
+
case '[':
|
240
|
+
argDetails.name = arg.slice(1, -1);
|
241
|
+
break;
|
470
242
|
}
|
471
|
-
return this.short.replace(/^-/, '');
|
472
|
-
};
|
473
|
-
|
474
|
-
/**
|
475
|
-
* Return option name, in a camelcase format that can be used
|
476
|
-
* as a object attribute key.
|
477
|
-
*
|
478
|
-
* @return {string}
|
479
|
-
* @api private
|
480
|
-
*/
|
481
243
|
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
*/
|
493
|
-
|
494
|
-
is(arg) {
|
495
|
-
return this.short === arg || this.long === arg;
|
496
|
-
};
|
497
|
-
}
|
498
|
-
|
499
|
-
/**
|
500
|
-
* CommanderError class
|
501
|
-
* @class
|
502
|
-
*/
|
503
|
-
class CommanderError extends Error {
|
504
|
-
/**
|
505
|
-
* Constructs the CommanderError class
|
506
|
-
* @param {number} exitCode suggested exit code which could be used with process.exit
|
507
|
-
* @param {string} code an id string representing the error
|
508
|
-
* @param {string} message human-readable description of the error
|
509
|
-
* @constructor
|
510
|
-
*/
|
511
|
-
constructor(exitCode, code, message) {
|
512
|
-
super(message);
|
513
|
-
// properly capture stack trace in Node.js
|
514
|
-
Error.captureStackTrace(this, this.constructor);
|
515
|
-
this.name = this.constructor.name;
|
516
|
-
this.code = code;
|
517
|
-
this.exitCode = exitCode;
|
518
|
-
this.nestedError = undefined;
|
519
|
-
}
|
520
|
-
}
|
244
|
+
if (argDetails.name.length > 3 && argDetails.name.slice(-3) === '...') {
|
245
|
+
argDetails.variadic = true;
|
246
|
+
argDetails.name = argDetails.name.slice(0, -3);
|
247
|
+
}
|
248
|
+
if (argDetails.name) {
|
249
|
+
self._args.push(argDetails);
|
250
|
+
}
|
251
|
+
});
|
252
|
+
return this;
|
253
|
+
};
|
521
254
|
|
522
255
|
/**
|
523
|
-
*
|
524
|
-
*
|
256
|
+
* Register callback `fn` for the command.
|
257
|
+
*
|
258
|
+
* Examples:
|
259
|
+
*
|
260
|
+
* program
|
261
|
+
* .command('help')
|
262
|
+
* .description('display verbose help')
|
263
|
+
* .action(function() {
|
264
|
+
* // output help here
|
265
|
+
* });
|
266
|
+
*
|
267
|
+
* @param {Function} fn
|
268
|
+
* @return {Command} for chaining
|
269
|
+
* @api public
|
525
270
|
*/
|
526
|
-
class InvalidOptionArgumentError extends CommanderError {
|
527
|
-
/**
|
528
|
-
* Constructs the InvalidOptionArgumentError class
|
529
|
-
* @param {string} [message] explanation of why argument is invalid
|
530
|
-
* @constructor
|
531
|
-
*/
|
532
|
-
constructor(message) {
|
533
|
-
super(1, 'commander.invalidOptionArgument', message);
|
534
|
-
// properly capture stack trace in Node.js
|
535
|
-
Error.captureStackTrace(this, this.constructor);
|
536
|
-
this.name = this.constructor.name;
|
537
|
-
}
|
538
|
-
}
|
539
271
|
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
constructor(name) {
|
548
|
-
super();
|
549
|
-
this.commands = [];
|
550
|
-
this.options = [];
|
551
|
-
this.parent = null;
|
552
|
-
this._allowUnknownOption = false;
|
553
|
-
this._allowExcessArguments = true;
|
554
|
-
this._args = [];
|
555
|
-
this.rawArgs = null;
|
556
|
-
this._scriptPath = null;
|
557
|
-
this._name = name || '';
|
558
|
-
this._optionValues = {};
|
559
|
-
this._storeOptionsAsProperties = false;
|
560
|
-
this._actionResults = [];
|
561
|
-
this._actionHandler = null;
|
562
|
-
this._executableHandler = false;
|
563
|
-
this._executableFile = null; // custom name for executable
|
564
|
-
this._defaultCommandName = null;
|
565
|
-
this._exitCallback = null;
|
566
|
-
this._aliases = [];
|
567
|
-
this._combineFlagAndOptionalValue = true;
|
568
|
-
this._description = '';
|
569
|
-
this._argsDescription = undefined;
|
570
|
-
this._enablePositionalOptions = false;
|
571
|
-
this._passThroughOptions = false;
|
572
|
-
|
573
|
-
// see .configureOutput() for docs
|
574
|
-
this._outputConfiguration = {
|
575
|
-
writeOut: (str) => process.stdout.write(str),
|
576
|
-
writeErr: (str) => process.stderr.write(str),
|
577
|
-
getOutHelpWidth: () => process.stdout.isTTY ? process.stdout.columns : undefined,
|
578
|
-
getErrHelpWidth: () => process.stderr.isTTY ? process.stderr.columns : undefined,
|
579
|
-
outputError: (str, write) => write(str)
|
580
|
-
};
|
272
|
+
Command.prototype.action = function(fn) {
|
273
|
+
var self = this;
|
274
|
+
var listener = function(args, unknown) {
|
275
|
+
// Parse any so-far unknown options
|
276
|
+
args = args || [];
|
277
|
+
unknown = unknown || [];
|
581
278
|
|
582
|
-
|
583
|
-
this._hasHelpOption = true;
|
584
|
-
this._helpFlags = '-h, --help';
|
585
|
-
this._helpDescription = 'display help for command';
|
586
|
-
this._helpShortFlag = '-h';
|
587
|
-
this._helpLongFlag = '--help';
|
588
|
-
this._addImplicitHelpCommand = undefined; // Deliberately undefined, not decided whether true or false
|
589
|
-
this._helpCommandName = 'help';
|
590
|
-
this._helpCommandnameAndArgs = 'help [command]';
|
591
|
-
this._helpCommandDescription = 'display help for command';
|
592
|
-
this._helpConfiguration = {};
|
593
|
-
}
|
279
|
+
var parsed = self.parseOptions(unknown);
|
594
280
|
|
595
|
-
|
596
|
-
|
597
|
-
*
|
598
|
-
* There are two styles of command: pay attention to where to put the description.
|
599
|
-
*
|
600
|
-
* Examples:
|
601
|
-
*
|
602
|
-
* // Command implemented using action handler (description is supplied separately to `.command`)
|
603
|
-
* program
|
604
|
-
* .command('clone <source> [destination]')
|
605
|
-
* .description('clone a repository into a newly created directory')
|
606
|
-
* .action((source, destination) => {
|
607
|
-
* console.log('clone command called');
|
608
|
-
* });
|
609
|
-
*
|
610
|
-
* // Command implemented using separate executable file (description is second parameter to `.command`)
|
611
|
-
* program
|
612
|
-
* .command('start <service>', 'start named service')
|
613
|
-
* .command('stop [service]', 'stop named service, or all if no name supplied');
|
614
|
-
*
|
615
|
-
* @param {string} nameAndArgs - command name and arguments, args are `<required>` or `[optional]` and last may also be `variadic...`
|
616
|
-
* @param {Object|string} [actionOptsOrExecDesc] - configuration options (for action), or description (for executable)
|
617
|
-
* @param {Object} [execOpts] - configuration options (for executable)
|
618
|
-
* @return {Command} returns new command for action handler, or `this` for executable command
|
619
|
-
*/
|
620
|
-
|
621
|
-
command(nameAndArgs, actionOptsOrExecDesc, execOpts) {
|
622
|
-
let desc = actionOptsOrExecDesc;
|
623
|
-
let opts = execOpts;
|
624
|
-
if (typeof desc === 'object' && desc !== null) {
|
625
|
-
opts = desc;
|
626
|
-
desc = null;
|
627
|
-
}
|
628
|
-
opts = opts || {};
|
629
|
-
const args = nameAndArgs.split(/ +/);
|
630
|
-
const cmd = this.createCommand(args.shift());
|
281
|
+
// Output help if necessary
|
282
|
+
outputHelpIfNecessary(self, parsed.unknown);
|
631
283
|
|
632
|
-
|
633
|
-
|
634
|
-
|
284
|
+
// If there are still any unknown options, then we simply
|
285
|
+
// die, unless someone asked for help, in which case we give it
|
286
|
+
// to them, and then we die.
|
287
|
+
if (parsed.unknown.length > 0) {
|
288
|
+
self.unknownOption(parsed.unknown[0]);
|
635
289
|
}
|
636
|
-
if (opts.isDefault) this._defaultCommandName = cmd._name;
|
637
|
-
|
638
|
-
cmd._outputConfiguration = this._outputConfiguration;
|
639
|
-
|
640
|
-
cmd._hidden = !!(opts.noHelp || opts.hidden); // noHelp is deprecated old name for hidden
|
641
|
-
cmd._hasHelpOption = this._hasHelpOption;
|
642
|
-
cmd._helpFlags = this._helpFlags;
|
643
|
-
cmd._helpDescription = this._helpDescription;
|
644
|
-
cmd._helpShortFlag = this._helpShortFlag;
|
645
|
-
cmd._helpLongFlag = this._helpLongFlag;
|
646
|
-
cmd._helpCommandName = this._helpCommandName;
|
647
|
-
cmd._helpCommandnameAndArgs = this._helpCommandnameAndArgs;
|
648
|
-
cmd._helpCommandDescription = this._helpCommandDescription;
|
649
|
-
cmd._helpConfiguration = this._helpConfiguration;
|
650
|
-
cmd._exitCallback = this._exitCallback;
|
651
|
-
cmd._storeOptionsAsProperties = this._storeOptionsAsProperties;
|
652
|
-
cmd._combineFlagAndOptionalValue = this._combineFlagAndOptionalValue;
|
653
|
-
cmd._allowExcessArguments = this._allowExcessArguments;
|
654
|
-
cmd._enablePositionalOptions = this._enablePositionalOptions;
|
655
|
-
|
656
|
-
cmd._executableFile = opts.executableFile || null; // Custom name for executable file, set missing to null to match constructor
|
657
|
-
this.commands.push(cmd);
|
658
|
-
cmd._parseExpectedArgs(args);
|
659
|
-
cmd.parent = this;
|
660
|
-
|
661
|
-
if (desc) return this;
|
662
|
-
return cmd;
|
663
|
-
};
|
664
290
|
|
665
|
-
|
666
|
-
|
667
|
-
*
|
668
|
-
* See .command() for creating an attached subcommand, which uses this routine to
|
669
|
-
* create the command. You can override createCommand to customise subcommands.
|
670
|
-
*
|
671
|
-
* @param {string} [name]
|
672
|
-
* @return {Command} new command
|
673
|
-
*/
|
674
|
-
|
675
|
-
createCommand(name) {
|
676
|
-
return new Command(name);
|
677
|
-
};
|
291
|
+
// Leftover arguments need to be pushed back. Fixes issue #56
|
292
|
+
if (parsed.args.length) args = parsed.args.concat(args);
|
678
293
|
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
294
|
+
self._args.forEach(function(arg, i) {
|
295
|
+
if (arg.required && args[i] == null) {
|
296
|
+
self.missingArgument(arg.name);
|
297
|
+
} else if (arg.variadic) {
|
298
|
+
if (i !== self._args.length - 1) {
|
299
|
+
self.variadicArgNotLast(arg.name);
|
300
|
+
}
|
685
301
|
|
686
|
-
|
687
|
-
|
688
|
-
|
302
|
+
args[i] = args.splice(i);
|
303
|
+
}
|
304
|
+
});
|
689
305
|
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
|
306
|
+
// Always append ourselves to the end of the arguments,
|
307
|
+
// to make sure we match the number of arguments the user
|
308
|
+
// expects
|
309
|
+
if (self._args.length) {
|
310
|
+
args[self._args.length] = self;
|
311
|
+
} else {
|
312
|
+
args.push(self);
|
313
|
+
}
|
697
314
|
|
698
|
-
|
699
|
-
|
315
|
+
fn.apply(self, args);
|
316
|
+
};
|
317
|
+
var parent = this.parent || this;
|
318
|
+
var name = parent === this ? '*' : this._name;
|
319
|
+
parent.on('command:' + name, listener);
|
320
|
+
if (this._alias) parent.on('command:' + this._alias, listener);
|
321
|
+
return this;
|
322
|
+
};
|
700
323
|
|
701
|
-
|
702
|
-
|
703
|
-
|
324
|
+
/**
|
325
|
+
* Define option with `flags`, `description` and optional
|
326
|
+
* coercion `fn`.
|
327
|
+
*
|
328
|
+
* The `flags` string should contain both the short and long flags,
|
329
|
+
* separated by comma, a pipe or space. The following are all valid
|
330
|
+
* all will output this way when `--help` is used.
|
331
|
+
*
|
332
|
+
* "-p, --pepper"
|
333
|
+
* "-p|--pepper"
|
334
|
+
* "-p --pepper"
|
335
|
+
*
|
336
|
+
* Examples:
|
337
|
+
*
|
338
|
+
* // simple boolean defaulting to false
|
339
|
+
* program.option('-p, --pepper', 'add pepper');
|
340
|
+
*
|
341
|
+
* --pepper
|
342
|
+
* program.pepper
|
343
|
+
* // => Boolean
|
344
|
+
*
|
345
|
+
* // simple boolean defaulting to true
|
346
|
+
* program.option('-C, --no-cheese', 'remove cheese');
|
347
|
+
*
|
348
|
+
* program.cheese
|
349
|
+
* // => true
|
350
|
+
*
|
351
|
+
* --no-cheese
|
352
|
+
* program.cheese
|
353
|
+
* // => false
|
354
|
+
*
|
355
|
+
* // required argument
|
356
|
+
* program.option('-C, --chdir <path>', 'change the working directory');
|
357
|
+
*
|
358
|
+
* --chdir /tmp
|
359
|
+
* program.chdir
|
360
|
+
* // => "/tmp"
|
361
|
+
*
|
362
|
+
* // optional argument
|
363
|
+
* program.option('-c, --cheese [type]', 'add cheese [marble]');
|
364
|
+
*
|
365
|
+
* @param {String} flags
|
366
|
+
* @param {String} description
|
367
|
+
* @param {Function|*} [fn] or default
|
368
|
+
* @param {*} [defaultValue]
|
369
|
+
* @return {Command} for chaining
|
370
|
+
* @api public
|
371
|
+
*/
|
704
372
|
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
configureOutput(configuration) {
|
725
|
-
if (configuration === undefined) return this._outputConfiguration;
|
726
|
-
|
727
|
-
Object.assign(this._outputConfiguration, configuration);
|
728
|
-
return this;
|
373
|
+
Command.prototype.option = function(flags, description, fn, defaultValue) {
|
374
|
+
var self = this,
|
375
|
+
option = new Option(flags, description),
|
376
|
+
oname = option.name(),
|
377
|
+
name = option.attributeName();
|
378
|
+
|
379
|
+
// default as 3rd arg
|
380
|
+
if (typeof fn !== 'function') {
|
381
|
+
if (fn instanceof RegExp) {
|
382
|
+
var regex = fn;
|
383
|
+
fn = function(val, def) {
|
384
|
+
var m = regex.exec(val);
|
385
|
+
return m ? m[0] : def;
|
386
|
+
};
|
387
|
+
} else {
|
388
|
+
defaultValue = fn;
|
389
|
+
fn = null;
|
390
|
+
}
|
729
391
|
}
|
730
392
|
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
*/
|
740
|
-
|
741
|
-
addCommand(cmd, opts) {
|
742
|
-
if (!cmd._name) throw new Error('Command passed to .addCommand() must have a name');
|
743
|
-
|
744
|
-
// To keep things simple, block automatic name generation for deeply nested executables.
|
745
|
-
// Fail fast and detect when adding rather than later when parsing.
|
746
|
-
function checkExplicitNames(commandArray) {
|
747
|
-
commandArray.forEach((cmd) => {
|
748
|
-
if (cmd._executableHandler && !cmd._executableFile) {
|
749
|
-
throw new Error(`Must specify executableFile for deeply nested executable: ${cmd.name()}`);
|
750
|
-
}
|
751
|
-
checkExplicitNames(cmd.commands);
|
752
|
-
});
|
393
|
+
// preassign default value only for --no-*, [optional], or <required>
|
394
|
+
if (!option.bool || option.optional || option.required) {
|
395
|
+
// when --no-* we make sure default is true
|
396
|
+
if (!option.bool) defaultValue = true;
|
397
|
+
// preassign only if we have a default
|
398
|
+
if (defaultValue !== undefined) {
|
399
|
+
self[name] = defaultValue;
|
400
|
+
option.defaultValue = defaultValue;
|
753
401
|
}
|
754
|
-
|
755
|
-
|
756
|
-
opts = opts || {};
|
757
|
-
if (opts.isDefault) this._defaultCommandName = cmd._name;
|
758
|
-
if (opts.noHelp || opts.hidden) cmd._hidden = true; // modifying passed command due to existing implementation
|
759
|
-
|
760
|
-
this.commands.push(cmd);
|
761
|
-
cmd.parent = this;
|
762
|
-
return this;
|
763
|
-
};
|
402
|
+
}
|
764
403
|
|
765
|
-
|
766
|
-
|
767
|
-
*/
|
404
|
+
// register the option
|
405
|
+
this.options.push(option);
|
768
406
|
|
769
|
-
|
770
|
-
|
771
|
-
|
407
|
+
// when it's passed assign the value
|
408
|
+
// and conditionally invoke the callback
|
409
|
+
this.on('option:' + oname, function(val) {
|
410
|
+
// coercion
|
411
|
+
if (val !== null && fn) {
|
412
|
+
val = fn(val, self[name] === undefined ? defaultValue : self[name]);
|
413
|
+
}
|
772
414
|
|
773
|
-
|
774
|
-
|
775
|
-
|
776
|
-
|
777
|
-
|
778
|
-
|
779
|
-
|
780
|
-
|
781
|
-
|
782
|
-
|
783
|
-
addHelpCommand(enableOrNameAndArgs, description) {
|
784
|
-
if (enableOrNameAndArgs === false) {
|
785
|
-
this._addImplicitHelpCommand = false;
|
786
|
-
} else {
|
787
|
-
this._addImplicitHelpCommand = true;
|
788
|
-
if (typeof enableOrNameAndArgs === 'string') {
|
789
|
-
this._helpCommandName = enableOrNameAndArgs.split(' ')[0];
|
790
|
-
this._helpCommandnameAndArgs = enableOrNameAndArgs;
|
415
|
+
// unassigned or bool
|
416
|
+
if (typeof self[name] === 'boolean' || typeof self[name] === 'undefined') {
|
417
|
+
// if no value, bool true, and we have a default, then use it!
|
418
|
+
if (val == null) {
|
419
|
+
self[name] = option.bool
|
420
|
+
? defaultValue || true
|
421
|
+
: false;
|
422
|
+
} else {
|
423
|
+
self[name] = val;
|
791
424
|
}
|
792
|
-
|
425
|
+
} else if (val !== null) {
|
426
|
+
// reassign
|
427
|
+
self[name] = val;
|
793
428
|
}
|
794
|
-
|
795
|
-
};
|
429
|
+
});
|
796
430
|
|
797
|
-
|
798
|
-
|
799
|
-
* @api private
|
800
|
-
*/
|
431
|
+
return this;
|
432
|
+
};
|
801
433
|
|
802
|
-
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
|
434
|
+
/**
|
435
|
+
* Allow unknown options on the command line.
|
436
|
+
*
|
437
|
+
* @param {Boolean} arg if `true` or omitted, no error will be thrown
|
438
|
+
* for unknown options.
|
439
|
+
* @api public
|
440
|
+
*/
|
441
|
+
Command.prototype.allowUnknownOption = function(arg) {
|
442
|
+
this._allowUnknownOption = arguments.length === 0 || arg;
|
443
|
+
return this;
|
444
|
+
};
|
808
445
|
|
809
|
-
|
810
|
-
|
811
|
-
|
812
|
-
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
* @api private
|
817
|
-
*/
|
818
|
-
|
819
|
-
_parseExpectedArgs(args) {
|
820
|
-
if (!args.length) return;
|
821
|
-
args.forEach((arg) => {
|
822
|
-
const argDetails = {
|
823
|
-
required: false,
|
824
|
-
name: '',
|
825
|
-
variadic: false
|
826
|
-
};
|
446
|
+
/**
|
447
|
+
* Parse `argv`, settings options and invoking commands when defined.
|
448
|
+
*
|
449
|
+
* @param {Array} argv
|
450
|
+
* @return {Command} for chaining
|
451
|
+
* @api public
|
452
|
+
*/
|
827
453
|
|
828
|
-
|
829
|
-
|
830
|
-
|
831
|
-
argDetails.name = arg.slice(1, -1);
|
832
|
-
break;
|
833
|
-
case '[':
|
834
|
-
argDetails.name = arg.slice(1, -1);
|
835
|
-
break;
|
836
|
-
}
|
454
|
+
Command.prototype.parse = function(argv) {
|
455
|
+
// implicit help
|
456
|
+
if (this.executables) this.addImplicitHelpCommand();
|
837
457
|
|
838
|
-
|
839
|
-
|
840
|
-
argDetails.name = argDetails.name.slice(0, -3);
|
841
|
-
}
|
842
|
-
if (argDetails.name) {
|
843
|
-
this._args.push(argDetails);
|
844
|
-
}
|
845
|
-
});
|
846
|
-
this._args.forEach((arg, i) => {
|
847
|
-
if (arg.variadic && i < this._args.length - 1) {
|
848
|
-
throw new Error(`only the last argument can be variadic '${arg.name}'`);
|
849
|
-
}
|
850
|
-
});
|
851
|
-
return this;
|
852
|
-
};
|
458
|
+
// store raw args
|
459
|
+
this.rawArgs = argv;
|
853
460
|
|
854
|
-
|
855
|
-
|
856
|
-
*
|
857
|
-
* @param {Function} [fn] optional callback which will be passed a CommanderError, defaults to throwing
|
858
|
-
* @return {Command} `this` command for chaining
|
859
|
-
*/
|
461
|
+
// guess name
|
462
|
+
this._name = this._name || basename(argv[1], '.js');
|
860
463
|
|
861
|
-
|
862
|
-
|
863
|
-
|
864
|
-
|
865
|
-
|
866
|
-
if (err.code !== 'commander.executeSubCommandAsync') {
|
867
|
-
throw err;
|
868
|
-
} else {
|
869
|
-
// Async callback from spawn events, not useful to throw.
|
870
|
-
}
|
871
|
-
};
|
872
|
-
}
|
873
|
-
return this;
|
874
|
-
};
|
464
|
+
// github-style sub-commands with no sub-command
|
465
|
+
if (this.executables && argv.length < 3 && !this.defaultExecutable) {
|
466
|
+
// this user needs help
|
467
|
+
argv.push('--help');
|
468
|
+
}
|
875
469
|
|
876
|
-
|
877
|
-
|
878
|
-
|
879
|
-
* @param {number} exitCode exit code for using with process.exit
|
880
|
-
* @param {string} code an id string representing the error
|
881
|
-
* @param {string} message human-readable description of the error
|
882
|
-
* @return never
|
883
|
-
* @api private
|
884
|
-
*/
|
885
|
-
|
886
|
-
_exit(exitCode, code, message) {
|
887
|
-
if (this._exitCallback) {
|
888
|
-
this._exitCallback(new CommanderError(exitCode, code, message));
|
889
|
-
// Expecting this line is not reached.
|
890
|
-
}
|
891
|
-
process.exit(exitCode);
|
892
|
-
};
|
470
|
+
// process argv
|
471
|
+
var parsed = this.parseOptions(this.normalize(argv.slice(2)));
|
472
|
+
var args = this.args = parsed.args;
|
893
473
|
|
894
|
-
|
895
|
-
* Register callback `fn` for the command.
|
896
|
-
*
|
897
|
-
* Examples:
|
898
|
-
*
|
899
|
-
* program
|
900
|
-
* .command('help')
|
901
|
-
* .description('display verbose help')
|
902
|
-
* .action(function() {
|
903
|
-
* // output help here
|
904
|
-
* });
|
905
|
-
*
|
906
|
-
* @param {Function} fn
|
907
|
-
* @return {Command} `this` command for chaining
|
908
|
-
*/
|
909
|
-
|
910
|
-
action(fn) {
|
911
|
-
const listener = (args) => {
|
912
|
-
// The .action callback takes an extra parameter which is the command or options.
|
913
|
-
const expectedArgsCount = this._args.length;
|
914
|
-
const actionArgs = args.slice(0, expectedArgsCount);
|
915
|
-
if (this._storeOptionsAsProperties) {
|
916
|
-
actionArgs[expectedArgsCount] = this; // backwards compatible "options"
|
917
|
-
} else {
|
918
|
-
actionArgs[expectedArgsCount] = this.opts();
|
919
|
-
}
|
920
|
-
actionArgs.push(this);
|
474
|
+
var result = this.parseArgs(this.args, parsed.unknown);
|
921
475
|
|
922
|
-
|
923
|
-
|
924
|
-
let rootCommand = this;
|
925
|
-
while (rootCommand.parent) {
|
926
|
-
rootCommand = rootCommand.parent;
|
927
|
-
}
|
928
|
-
rootCommand._actionResults.push(actionResult);
|
929
|
-
};
|
930
|
-
this._actionHandler = listener;
|
931
|
-
return this;
|
932
|
-
};
|
476
|
+
// executable sub-commands
|
477
|
+
var name = result.args[0];
|
933
478
|
|
934
|
-
|
935
|
-
|
936
|
-
|
937
|
-
|
938
|
-
|
939
|
-
|
940
|
-
|
941
|
-
* @param {string} [description]
|
942
|
-
* @return {Option} new option
|
943
|
-
*/
|
944
|
-
|
945
|
-
createOption(flags, description) {
|
946
|
-
return new Option(flags, description);
|
947
|
-
};
|
479
|
+
var aliasCommand = null;
|
480
|
+
// check alias of sub commands
|
481
|
+
if (name) {
|
482
|
+
aliasCommand = this.commands.filter(function(command) {
|
483
|
+
return command.alias() === name;
|
484
|
+
})[0];
|
485
|
+
}
|
948
486
|
|
949
|
-
|
950
|
-
|
951
|
-
|
952
|
-
|
953
|
-
|
954
|
-
|
955
|
-
|
956
|
-
|
957
|
-
|
958
|
-
|
959
|
-
|
960
|
-
|
961
|
-
// preassign default value for --no-*, [optional], <required>, or plain flag if boolean value
|
962
|
-
if (option.negate || option.optional || option.required || typeof defaultValue === 'boolean') {
|
963
|
-
// when --no-foo we make sure default is true, unless a --foo option is already defined
|
964
|
-
if (option.negate) {
|
965
|
-
const positiveLongFlag = option.long.replace(/^--no-/, '--');
|
966
|
-
defaultValue = this._findOption(positiveLongFlag) ? this._getOptionValue(name) : true;
|
967
|
-
}
|
968
|
-
// preassign only if we have a default
|
969
|
-
if (defaultValue !== undefined) {
|
970
|
-
this._setOptionValue(name, defaultValue);
|
971
|
-
}
|
972
|
-
}
|
487
|
+
if (this._execs[name] === true) {
|
488
|
+
return this.executeSubCommand(argv, args, parsed.unknown);
|
489
|
+
} else if (aliasCommand) {
|
490
|
+
// is alias of a subCommand
|
491
|
+
args[0] = aliasCommand._name;
|
492
|
+
return this.executeSubCommand(argv, args, parsed.unknown);
|
493
|
+
} else if (this.defaultExecutable) {
|
494
|
+
// use the default subcommand
|
495
|
+
args.unshift(this.defaultExecutable);
|
496
|
+
return this.executeSubCommand(argv, args, parsed.unknown);
|
497
|
+
}
|
973
498
|
|
974
|
-
|
975
|
-
|
976
|
-
|
977
|
-
// when it's passed assign the value
|
978
|
-
// and conditionally invoke the callback
|
979
|
-
this.on('option:' + oname, (val) => {
|
980
|
-
const oldValue = this._getOptionValue(name);
|
981
|
-
|
982
|
-
// custom processing
|
983
|
-
if (val !== null && option.parseArg) {
|
984
|
-
try {
|
985
|
-
val = option.parseArg(val, oldValue === undefined ? defaultValue : oldValue);
|
986
|
-
} catch (err) {
|
987
|
-
if (err.code === 'commander.invalidOptionArgument') {
|
988
|
-
const message = `error: option '${option.flags}' argument '${val}' is invalid. ${err.message}`;
|
989
|
-
this._displayError(err.exitCode, err.code, message);
|
990
|
-
}
|
991
|
-
throw err;
|
992
|
-
}
|
993
|
-
} else if (val !== null && option.variadic) {
|
994
|
-
val = option._concatValue(val, oldValue);
|
995
|
-
}
|
499
|
+
return result;
|
500
|
+
};
|
996
501
|
|
997
|
-
|
998
|
-
|
999
|
-
|
1000
|
-
|
1001
|
-
|
1002
|
-
|
1003
|
-
|
1004
|
-
|
1005
|
-
this._setOptionValue(name, val);
|
1006
|
-
}
|
1007
|
-
} else if (val !== null) {
|
1008
|
-
// reassign
|
1009
|
-
this._setOptionValue(name, option.negate ? false : val);
|
1010
|
-
}
|
1011
|
-
});
|
502
|
+
/**
|
503
|
+
* Execute a sub-command executable.
|
504
|
+
*
|
505
|
+
* @param {Array} argv
|
506
|
+
* @param {Array} args
|
507
|
+
* @param {Array} unknown
|
508
|
+
* @api private
|
509
|
+
*/
|
1012
510
|
|
1013
|
-
|
1014
|
-
|
511
|
+
Command.prototype.executeSubCommand = function(argv, args, unknown) {
|
512
|
+
args = args.concat(unknown);
|
1015
513
|
|
1016
|
-
|
1017
|
-
|
1018
|
-
*
|
1019
|
-
* @api private
|
1020
|
-
*/
|
1021
|
-
_optionEx(config, flags, description, fn, defaultValue) {
|
1022
|
-
const option = this.createOption(flags, description);
|
1023
|
-
option.makeOptionMandatory(!!config.mandatory);
|
1024
|
-
if (typeof fn === 'function') {
|
1025
|
-
option.default(defaultValue).argParser(fn);
|
1026
|
-
} else if (fn instanceof RegExp) {
|
1027
|
-
// deprecated
|
1028
|
-
const regex = fn;
|
1029
|
-
fn = (val, def) => {
|
1030
|
-
const m = regex.exec(val);
|
1031
|
-
return m ? m[0] : def;
|
1032
|
-
};
|
1033
|
-
option.default(defaultValue).argParser(fn);
|
1034
|
-
} else {
|
1035
|
-
option.default(fn);
|
1036
|
-
}
|
514
|
+
if (!args.length) this.help();
|
515
|
+
if (args[0] === 'help' && args.length === 1) this.help();
|
1037
516
|
|
1038
|
-
|
517
|
+
// <cmd> --help
|
518
|
+
if (args[0] === 'help') {
|
519
|
+
args[0] = args[1];
|
520
|
+
args[1] = '--help';
|
1039
521
|
}
|
1040
522
|
|
1041
|
-
|
1042
|
-
|
1043
|
-
|
1044
|
-
|
1045
|
-
* The `flags` string contains the short and/or long flags,
|
1046
|
-
* separated by comma, a pipe or space. The following are all valid
|
1047
|
-
* all will output this way when `--help` is used.
|
1048
|
-
*
|
1049
|
-
* "-p, --pepper"
|
1050
|
-
* "-p|--pepper"
|
1051
|
-
* "-p --pepper"
|
1052
|
-
*
|
1053
|
-
* Examples:
|
1054
|
-
*
|
1055
|
-
* // simple boolean defaulting to undefined
|
1056
|
-
* program.option('-p, --pepper', 'add pepper');
|
1057
|
-
*
|
1058
|
-
* program.pepper
|
1059
|
-
* // => undefined
|
1060
|
-
*
|
1061
|
-
* --pepper
|
1062
|
-
* program.pepper
|
1063
|
-
* // => true
|
1064
|
-
*
|
1065
|
-
* // simple boolean defaulting to true (unless non-negated option is also defined)
|
1066
|
-
* program.option('-C, --no-cheese', 'remove cheese');
|
1067
|
-
*
|
1068
|
-
* program.cheese
|
1069
|
-
* // => true
|
1070
|
-
*
|
1071
|
-
* --no-cheese
|
1072
|
-
* program.cheese
|
1073
|
-
* // => false
|
1074
|
-
*
|
1075
|
-
* // required argument
|
1076
|
-
* program.option('-C, --chdir <path>', 'change the working directory');
|
1077
|
-
*
|
1078
|
-
* --chdir /tmp
|
1079
|
-
* program.chdir
|
1080
|
-
* // => "/tmp"
|
1081
|
-
*
|
1082
|
-
* // optional argument
|
1083
|
-
* program.option('-c, --cheese [type]', 'add cheese [marble]');
|
1084
|
-
*
|
1085
|
-
* @param {string} flags
|
1086
|
-
* @param {string} [description]
|
1087
|
-
* @param {Function|*} [fn] - custom option processing function or default value
|
1088
|
-
* @param {*} [defaultValue]
|
1089
|
-
* @return {Command} `this` command for chaining
|
1090
|
-
*/
|
1091
|
-
|
1092
|
-
option(flags, description, fn, defaultValue) {
|
1093
|
-
return this._optionEx({}, flags, description, fn, defaultValue);
|
1094
|
-
};
|
523
|
+
// executable
|
524
|
+
var f = argv[1];
|
525
|
+
// name of the subcommand, link `pm-install`
|
526
|
+
var bin = basename(f, path.extname(f)) + '-' + args[0];
|
1095
527
|
|
1096
|
-
|
1097
|
-
|
1098
|
-
|
1099
|
-
*
|
1100
|
-
* The `flags` string contains the short and/or long flags, separated by comma, a pipe or space.
|
1101
|
-
*
|
1102
|
-
* @param {string} flags
|
1103
|
-
* @param {string} [description]
|
1104
|
-
* @param {Function|*} [fn] - custom option processing function or default value
|
1105
|
-
* @param {*} [defaultValue]
|
1106
|
-
* @return {Command} `this` command for chaining
|
1107
|
-
*/
|
1108
|
-
|
1109
|
-
requiredOption(flags, description, fn, defaultValue) {
|
1110
|
-
return this._optionEx({ mandatory: true }, flags, description, fn, defaultValue);
|
1111
|
-
};
|
528
|
+
// In case of globally installed, get the base dir where executable
|
529
|
+
// subcommand file should be located at
|
530
|
+
var baseDir;
|
1112
531
|
|
1113
|
-
|
1114
|
-
* Alter parsing of short flags with optional values.
|
1115
|
-
*
|
1116
|
-
* Examples:
|
1117
|
-
*
|
1118
|
-
* // for `.option('-f,--flag [value]'):
|
1119
|
-
* .combineFlagAndOptionalValue(true) // `-f80` is treated like `--flag=80`, this is the default behaviour
|
1120
|
-
* .combineFlagAndOptionalValue(false) // `-fb` is treated like `-f -b`
|
1121
|
-
*
|
1122
|
-
* @param {Boolean} [combine=true] - if `true` or omitted, an optional value can be specified directly after the flag.
|
1123
|
-
*/
|
1124
|
-
combineFlagAndOptionalValue(combine = true) {
|
1125
|
-
this._combineFlagAndOptionalValue = !!combine;
|
1126
|
-
return this;
|
1127
|
-
};
|
532
|
+
var resolvedLink = fs.realpathSync(f);
|
1128
533
|
|
1129
|
-
|
1130
|
-
* Allow unknown options on the command line.
|
1131
|
-
*
|
1132
|
-
* @param {Boolean} [allowUnknown=true] - if `true` or omitted, no error will be thrown
|
1133
|
-
* for unknown options.
|
1134
|
-
*/
|
1135
|
-
allowUnknownOption(allowUnknown = true) {
|
1136
|
-
this._allowUnknownOption = !!allowUnknown;
|
1137
|
-
return this;
|
1138
|
-
};
|
534
|
+
baseDir = dirname(resolvedLink);
|
1139
535
|
|
1140
|
-
|
1141
|
-
|
1142
|
-
*
|
1143
|
-
* @param {Boolean} [allowExcess=true] - if `true` or omitted, no error will be thrown
|
1144
|
-
* for excess arguments.
|
1145
|
-
*/
|
1146
|
-
allowExcessArguments(allowExcess = true) {
|
1147
|
-
this._allowExcessArguments = !!allowExcess;
|
1148
|
-
return this;
|
1149
|
-
};
|
536
|
+
// prefer local `./<bin>` to bin in the $PATH
|
537
|
+
var localBin = path.join(baseDir, bin);
|
1150
538
|
|
1151
|
-
|
1152
|
-
|
1153
|
-
|
1154
|
-
|
1155
|
-
|
1156
|
-
|
1157
|
-
|
1158
|
-
|
1159
|
-
|
1160
|
-
|
1161
|
-
}
|
539
|
+
// whether bin file is a js script with explicit `.js` or `.ts` extension
|
540
|
+
var isExplicitJS = false;
|
541
|
+
if (exists(localBin + '.js')) {
|
542
|
+
bin = localBin + '.js';
|
543
|
+
isExplicitJS = true;
|
544
|
+
} else if (exists(localBin + '.ts')) {
|
545
|
+
bin = localBin + '.ts';
|
546
|
+
isExplicitJS = true;
|
547
|
+
} else if (exists(localBin)) {
|
548
|
+
bin = localBin;
|
549
|
+
}
|
1162
550
|
|
1163
|
-
|
1164
|
-
* Pass through options that come after command-arguments rather than treat them as command-options,
|
1165
|
-
* so actual command-options come before command-arguments. Turning this on for a subcommand requires
|
1166
|
-
* positional options to have been enabled on the program (parent commands).
|
1167
|
-
* The default behaviour is non-positional and options may appear before or after command-arguments.
|
1168
|
-
*
|
1169
|
-
* @param {Boolean} [passThrough=true]
|
1170
|
-
* for unknown options.
|
1171
|
-
*/
|
1172
|
-
passThroughOptions(passThrough = true) {
|
1173
|
-
this._passThroughOptions = !!passThrough;
|
1174
|
-
if (!!this.parent && passThrough && !this.parent._enablePositionalOptions) {
|
1175
|
-
throw new Error('passThroughOptions can not be used without turning on enablePositionalOptions for parent command(s)');
|
1176
|
-
}
|
1177
|
-
return this;
|
1178
|
-
};
|
551
|
+
args = args.slice(1);
|
1179
552
|
|
1180
|
-
|
1181
|
-
|
1182
|
-
|
1183
|
-
|
1184
|
-
|
1185
|
-
|
1186
|
-
*/
|
1187
|
-
|
1188
|
-
storeOptionsAsProperties(storeAsProperties = true) {
|
1189
|
-
this._storeOptionsAsProperties = !!storeAsProperties;
|
1190
|
-
if (this.options.length) {
|
1191
|
-
throw new Error('call .storeOptionsAsProperties() before adding options');
|
1192
|
-
}
|
1193
|
-
return this;
|
1194
|
-
};
|
553
|
+
var proc;
|
554
|
+
if (process.platform !== 'win32') {
|
555
|
+
if (isExplicitJS) {
|
556
|
+
args.unshift(bin);
|
557
|
+
// add executable arguments to spawn
|
558
|
+
args = (process.execArgv || []).concat(args);
|
1195
559
|
|
1196
|
-
|
1197
|
-
* Store option value
|
1198
|
-
*
|
1199
|
-
* @param {string} key
|
1200
|
-
* @param {Object} value
|
1201
|
-
* @api private
|
1202
|
-
*/
|
1203
|
-
|
1204
|
-
_setOptionValue(key, value) {
|
1205
|
-
if (this._storeOptionsAsProperties) {
|
1206
|
-
this[key] = value;
|
560
|
+
proc = spawn(process.argv[0], args, { stdio: 'inherit', customFds: [0, 1, 2] });
|
1207
561
|
} else {
|
1208
|
-
|
562
|
+
proc = spawn(bin, args, { stdio: 'inherit', customFds: [0, 1, 2] });
|
1209
563
|
}
|
1210
|
-
}
|
1211
|
-
|
1212
|
-
|
1213
|
-
|
1214
|
-
*
|
1215
|
-
* @param {string} key
|
1216
|
-
* @return {Object} value
|
1217
|
-
* @api private
|
1218
|
-
*/
|
1219
|
-
|
1220
|
-
_getOptionValue(key) {
|
1221
|
-
if (this._storeOptionsAsProperties) {
|
1222
|
-
return this[key];
|
1223
|
-
}
|
1224
|
-
return this._optionValues[key];
|
1225
|
-
};
|
564
|
+
} else {
|
565
|
+
args.unshift(bin);
|
566
|
+
proc = spawn(process.execPath, args, { stdio: 'inherit' });
|
567
|
+
}
|
1226
568
|
|
1227
|
-
|
1228
|
-
|
1229
|
-
|
1230
|
-
|
1231
|
-
|
1232
|
-
*
|
1233
|
-
* Examples:
|
1234
|
-
*
|
1235
|
-
* program.parse(process.argv);
|
1236
|
-
* program.parse(); // implicitly use process.argv and auto-detect node vs electron conventions
|
1237
|
-
* program.parse(my-args, { from: 'user' }); // just user supplied arguments, nothing special about argv[0]
|
1238
|
-
*
|
1239
|
-
* @param {string[]} [argv] - optional, defaults to process.argv
|
1240
|
-
* @param {Object} [parseOptions] - optionally specify style of options with from: node/user/electron
|
1241
|
-
* @param {string} [parseOptions.from] - where the args are from: 'node', 'user', 'electron'
|
1242
|
-
* @return {Command} `this` command for chaining
|
1243
|
-
*/
|
1244
|
-
|
1245
|
-
parse(argv, parseOptions) {
|
1246
|
-
if (argv !== undefined && !Array.isArray(argv)) {
|
1247
|
-
throw new Error('first parameter to parse must be array or undefined');
|
1248
|
-
}
|
1249
|
-
parseOptions = parseOptions || {};
|
1250
|
-
|
1251
|
-
// Default to using process.argv
|
1252
|
-
if (argv === undefined) {
|
1253
|
-
argv = process.argv;
|
1254
|
-
// @ts-ignore: unknown property
|
1255
|
-
if (process.versions && process.versions.electron) {
|
1256
|
-
parseOptions.from = 'electron';
|
569
|
+
var signals = ['SIGUSR1', 'SIGUSR2', 'SIGTERM', 'SIGINT', 'SIGHUP'];
|
570
|
+
signals.forEach(function(signal) {
|
571
|
+
process.on(signal, function() {
|
572
|
+
if (proc.killed === false && proc.exitCode === null) {
|
573
|
+
proc.kill(signal);
|
1257
574
|
}
|
575
|
+
});
|
576
|
+
});
|
577
|
+
proc.on('close', process.exit.bind(process));
|
578
|
+
proc.on('error', function(err) {
|
579
|
+
if (err.code === 'ENOENT') {
|
580
|
+
console.error('error: %s(1) does not exist, try --help', bin);
|
581
|
+
} else if (err.code === 'EACCES') {
|
582
|
+
console.error('error: %s(1) not executable. try chmod or run with root', bin);
|
1258
583
|
}
|
1259
|
-
|
1260
|
-
|
1261
|
-
// make it a little easier for callers by supporting various argv conventions
|
1262
|
-
let userArgs;
|
1263
|
-
switch (parseOptions.from) {
|
1264
|
-
case undefined:
|
1265
|
-
case 'node':
|
1266
|
-
this._scriptPath = argv[1];
|
1267
|
-
userArgs = argv.slice(2);
|
1268
|
-
break;
|
1269
|
-
case 'electron':
|
1270
|
-
// @ts-ignore: unknown property
|
1271
|
-
if (process.defaultApp) {
|
1272
|
-
this._scriptPath = argv[1];
|
1273
|
-
userArgs = argv.slice(2);
|
1274
|
-
} else {
|
1275
|
-
userArgs = argv.slice(1);
|
1276
|
-
}
|
1277
|
-
break;
|
1278
|
-
case 'user':
|
1279
|
-
userArgs = argv.slice(0);
|
1280
|
-
break;
|
1281
|
-
default:
|
1282
|
-
throw new Error(`unexpected parse option { from: '${parseOptions.from}' }`);
|
1283
|
-
}
|
1284
|
-
if (!this._scriptPath && require.main) {
|
1285
|
-
this._scriptPath = require.main.filename;
|
1286
|
-
}
|
1287
|
-
|
1288
|
-
// Guess name, used in usage in help.
|
1289
|
-
this._name = this._name || (this._scriptPath && path.basename(this._scriptPath, path.extname(this._scriptPath)));
|
584
|
+
process.exit(1);
|
585
|
+
});
|
1290
586
|
|
1291
|
-
|
1292
|
-
|
587
|
+
// Store the reference to the child process
|
588
|
+
this.runningCommand = proc;
|
589
|
+
};
|
1293
590
|
|
1294
|
-
|
1295
|
-
|
591
|
+
/**
|
592
|
+
* Normalize `args`, splitting joined short flags. For example
|
593
|
+
* the arg "-abc" is equivalent to "-a -b -c".
|
594
|
+
* This also normalizes equal sign and splits "--abc=def" into "--abc def".
|
595
|
+
*
|
596
|
+
* @param {Array} args
|
597
|
+
* @return {Array}
|
598
|
+
* @api private
|
599
|
+
*/
|
1296
600
|
|
1297
|
-
|
1298
|
-
|
1299
|
-
|
1300
|
-
|
1301
|
-
|
1302
|
-
* The default expectation is that the arguments are from node and have the application as argv[0]
|
1303
|
-
* and the script being run in argv[1], with user parameters after that.
|
1304
|
-
*
|
1305
|
-
* Examples:
|
1306
|
-
*
|
1307
|
-
* program.parseAsync(process.argv);
|
1308
|
-
* program.parseAsync(); // implicitly use process.argv and auto-detect node vs electron conventions
|
1309
|
-
* program.parseAsync(my-args, { from: 'user' }); // just user supplied arguments, nothing special about argv[0]
|
1310
|
-
*
|
1311
|
-
* @param {string[]} [argv]
|
1312
|
-
* @param {Object} [parseOptions]
|
1313
|
-
* @param {string} parseOptions.from - where the args are from: 'node', 'user', 'electron'
|
1314
|
-
* @return {Promise}
|
1315
|
-
*/
|
1316
|
-
|
1317
|
-
parseAsync(argv, parseOptions) {
|
1318
|
-
this.parse(argv, parseOptions);
|
1319
|
-
return Promise.all(this._actionResults).then(() => this);
|
1320
|
-
};
|
601
|
+
Command.prototype.normalize = function(args) {
|
602
|
+
var ret = [],
|
603
|
+
arg,
|
604
|
+
lastOpt,
|
605
|
+
index;
|
1321
606
|
|
1322
|
-
|
1323
|
-
|
1324
|
-
|
1325
|
-
|
1326
|
-
*/
|
1327
|
-
|
1328
|
-
_executeSubCommand(subcommand, args) {
|
1329
|
-
args = args.slice();
|
1330
|
-
let launchWithNode = false; // Use node for source targets so do not need to get permissions correct, and on Windows.
|
1331
|
-
const sourceExt = ['.js', '.ts', '.tsx', '.mjs', '.cjs'];
|
1332
|
-
|
1333
|
-
// Not checking for help first. Unlikely to have mandatory and executable, and can't robustly test for help flags in external command.
|
1334
|
-
this._checkForMissingMandatoryOptions();
|
1335
|
-
|
1336
|
-
// Want the entry script as the reference for command name and directory for searching for other files.
|
1337
|
-
let scriptPath = this._scriptPath;
|
1338
|
-
// Fallback in case not set, due to how Command created or called.
|
1339
|
-
if (!scriptPath && require.main) {
|
1340
|
-
scriptPath = require.main.filename;
|
607
|
+
for (var i = 0, len = args.length; i < len; ++i) {
|
608
|
+
arg = args[i];
|
609
|
+
if (i > 0) {
|
610
|
+
lastOpt = this.optionFor(args[i - 1]);
|
1341
611
|
}
|
1342
612
|
|
1343
|
-
|
1344
|
-
|
1345
|
-
|
1346
|
-
|
1347
|
-
}
|
1348
|
-
|
613
|
+
if (arg === '--') {
|
614
|
+
// Honor option terminator
|
615
|
+
ret = ret.concat(args.slice(i));
|
616
|
+
break;
|
617
|
+
} else if (lastOpt && lastOpt.required) {
|
618
|
+
ret.push(arg);
|
619
|
+
} else if (arg.length > 1 && arg[0] === '-' && arg[1] !== '-') {
|
620
|
+
arg.slice(1).split('').forEach(function(c) {
|
621
|
+
ret.push('-' + c);
|
622
|
+
});
|
623
|
+
} else if (/^--/.test(arg) && ~(index = arg.indexOf('='))) {
|
624
|
+
ret.push(arg.slice(0, index), arg.slice(index + 1));
|
625
|
+
} else {
|
626
|
+
ret.push(arg);
|
1349
627
|
}
|
628
|
+
}
|
1350
629
|
|
1351
|
-
|
1352
|
-
|
1353
|
-
if (subcommand._executableFile) {
|
1354
|
-
bin = subcommand._executableFile;
|
1355
|
-
}
|
630
|
+
return ret;
|
631
|
+
};
|
1356
632
|
|
1357
|
-
|
1358
|
-
|
1359
|
-
|
1360
|
-
|
1361
|
-
|
1362
|
-
|
1363
|
-
|
1364
|
-
|
1365
|
-
|
1366
|
-
|
1367
|
-
|
1368
|
-
}
|
1369
|
-
launchWithNode = sourceExt.includes(path.extname(bin));
|
633
|
+
/**
|
634
|
+
* Parse command `args`.
|
635
|
+
*
|
636
|
+
* When listener(s) are available those
|
637
|
+
* callbacks are invoked, otherwise the "*"
|
638
|
+
* event is emitted and those actions are invoked.
|
639
|
+
*
|
640
|
+
* @param {Array} args
|
641
|
+
* @return {Command} for chaining
|
642
|
+
* @api private
|
643
|
+
*/
|
1370
644
|
|
1371
|
-
|
1372
|
-
|
1373
|
-
if (launchWithNode) {
|
1374
|
-
args.unshift(bin);
|
1375
|
-
// add executable arguments to spawn
|
1376
|
-
args = incrementNodeInspectorPort(process.execArgv).concat(args);
|
645
|
+
Command.prototype.parseArgs = function(args, unknown) {
|
646
|
+
var name;
|
1377
647
|
|
1378
|
-
|
1379
|
-
|
1380
|
-
|
1381
|
-
|
648
|
+
if (args.length) {
|
649
|
+
name = args[0];
|
650
|
+
if (this.listeners('command:' + name).length) {
|
651
|
+
this.emit('command:' + args.shift(), args, unknown);
|
1382
652
|
} else {
|
1383
|
-
|
1384
|
-
// add executable arguments to spawn
|
1385
|
-
args = incrementNodeInspectorPort(process.execArgv).concat(args);
|
1386
|
-
proc = childProcess.spawn(process.execPath, args, { stdio: 'inherit' });
|
653
|
+
this.emit('command:*', args);
|
1387
654
|
}
|
655
|
+
} else {
|
656
|
+
outputHelpIfNecessary(this, unknown);
|
1388
657
|
|
1389
|
-
|
1390
|
-
|
1391
|
-
|
1392
|
-
|
1393
|
-
if (proc.killed === false && proc.exitCode === null) {
|
1394
|
-
proc.kill(signal);
|
1395
|
-
}
|
1396
|
-
});
|
1397
|
-
});
|
1398
|
-
|
1399
|
-
// By default terminate process when spawned process terminates.
|
1400
|
-
// Suppressing the exit if exitCallback defined is a bit messy and of limited use, but does allow process to stay running!
|
1401
|
-
const exitCallback = this._exitCallback;
|
1402
|
-
if (!exitCallback) {
|
1403
|
-
proc.on('close', process.exit.bind(process));
|
1404
|
-
} else {
|
1405
|
-
proc.on('close', () => {
|
1406
|
-
exitCallback(new CommanderError(process.exitCode || 0, 'commander.executeSubCommandAsync', '(close)'));
|
1407
|
-
});
|
658
|
+
// If there were no args and we have unknown options,
|
659
|
+
// then they are extraneous and we need to error.
|
660
|
+
if (unknown.length > 0) {
|
661
|
+
this.unknownOption(unknown[0]);
|
1408
662
|
}
|
1409
|
-
|
1410
|
-
|
1411
|
-
|
1412
|
-
|
1413
|
-
|
1414
|
-
- if the default executable name is not suitable, use the executableFile option to supply a custom name`;
|
1415
|
-
throw new Error(executableMissing);
|
1416
|
-
// @ts-ignore
|
1417
|
-
} else if (err.code === 'EACCES') {
|
1418
|
-
throw new Error(`'${bin}' not executable`);
|
1419
|
-
}
|
1420
|
-
if (!exitCallback) {
|
1421
|
-
process.exit(1);
|
1422
|
-
} else {
|
1423
|
-
const wrappedError = new CommanderError(1, 'commander.executeSubCommandAsync', '(error)');
|
1424
|
-
wrappedError.nestedError = err;
|
1425
|
-
exitCallback(wrappedError);
|
1426
|
-
}
|
1427
|
-
});
|
663
|
+
if (this.commands.length === 0 &&
|
664
|
+
this._args.filter(function(a) { return a.required; }).length === 0) {
|
665
|
+
this.emit('command:*');
|
666
|
+
}
|
667
|
+
}
|
1428
668
|
|
1429
|
-
|
1430
|
-
|
1431
|
-
};
|
669
|
+
return this;
|
670
|
+
};
|
1432
671
|
|
1433
|
-
|
1434
|
-
|
1435
|
-
|
1436
|
-
|
1437
|
-
|
1438
|
-
|
672
|
+
/**
|
673
|
+
* Return an option matching `arg` if any.
|
674
|
+
*
|
675
|
+
* @param {String} arg
|
676
|
+
* @return {Option}
|
677
|
+
* @api private
|
678
|
+
*/
|
1439
679
|
|
1440
|
-
|
1441
|
-
|
1442
|
-
|
1443
|
-
|
680
|
+
Command.prototype.optionFor = function(arg) {
|
681
|
+
for (var i = 0, len = this.options.length; i < len; ++i) {
|
682
|
+
if (this.options[i].is(arg)) {
|
683
|
+
return this.options[i];
|
1444
684
|
}
|
1445
|
-
}
|
685
|
+
}
|
686
|
+
};
|
1446
687
|
|
1447
|
-
|
1448
|
-
|
1449
|
-
|
1450
|
-
|
1451
|
-
|
1452
|
-
|
1453
|
-
|
1454
|
-
|
1455
|
-
operands = operands.concat(parsed.operands);
|
1456
|
-
unknown = parsed.unknown;
|
1457
|
-
this.args = operands.concat(unknown);
|
1458
|
-
|
1459
|
-
if (operands && this._findCommand(operands[0])) {
|
1460
|
-
this._dispatchSubcommand(operands[0], operands.slice(1), unknown);
|
1461
|
-
} else if (this._hasImplicitHelpCommand() && operands[0] === this._helpCommandName) {
|
1462
|
-
if (operands.length === 1) {
|
1463
|
-
this.help();
|
1464
|
-
} else {
|
1465
|
-
this._dispatchSubcommand(operands[1], [], [this._helpLongFlag]);
|
1466
|
-
}
|
1467
|
-
} else if (this._defaultCommandName) {
|
1468
|
-
outputHelpIfRequested(this, unknown); // Run the help for default command from parent rather than passing to default command
|
1469
|
-
this._dispatchSubcommand(this._defaultCommandName, operands, unknown);
|
1470
|
-
} else {
|
1471
|
-
if (this.commands.length && this.args.length === 0 && !this._actionHandler && !this._defaultCommandName) {
|
1472
|
-
// probably missing subcommand and no handler, user needs help
|
1473
|
-
this.help({ error: true });
|
1474
|
-
}
|
688
|
+
/**
|
689
|
+
* Parse options from `argv` returning `argv`
|
690
|
+
* void of these options.
|
691
|
+
*
|
692
|
+
* @param {Array} argv
|
693
|
+
* @return {Array}
|
694
|
+
* @api public
|
695
|
+
*/
|
1475
696
|
|
1476
|
-
|
1477
|
-
|
697
|
+
Command.prototype.parseOptions = function(argv) {
|
698
|
+
var args = [],
|
699
|
+
len = argv.length,
|
700
|
+
literal,
|
701
|
+
option,
|
702
|
+
arg;
|
1478
703
|
|
1479
|
-
|
1480
|
-
const checkForUnknownOptions = () => {
|
1481
|
-
if (parsed.unknown.length > 0) {
|
1482
|
-
this.unknownOption(parsed.unknown[0]);
|
1483
|
-
}
|
1484
|
-
};
|
704
|
+
var unknownOptions = [];
|
1485
705
|
|
1486
|
-
|
1487
|
-
|
1488
|
-
|
1489
|
-
|
1490
|
-
|
1491
|
-
|
1492
|
-
|
1493
|
-
|
1494
|
-
|
1495
|
-
|
1496
|
-
|
1497
|
-
|
1498
|
-
|
1499
|
-
|
1500
|
-
this._excessArguments(args);
|
1501
|
-
}
|
706
|
+
// parse options
|
707
|
+
for (var i = 0; i < len; ++i) {
|
708
|
+
arg = argv[i];
|
709
|
+
|
710
|
+
// literal args after --
|
711
|
+
if (literal) {
|
712
|
+
args.push(arg);
|
713
|
+
continue;
|
714
|
+
}
|
715
|
+
|
716
|
+
if (arg === '--') {
|
717
|
+
literal = true;
|
718
|
+
continue;
|
719
|
+
}
|
1502
720
|
|
1503
|
-
|
1504
|
-
|
1505
|
-
|
1506
|
-
|
1507
|
-
|
1508
|
-
|
1509
|
-
|
1510
|
-
|
1511
|
-
|
1512
|
-
|
1513
|
-
|
1514
|
-
|
1515
|
-
|
721
|
+
// find matching Option
|
722
|
+
option = this.optionFor(arg);
|
723
|
+
|
724
|
+
// option is defined
|
725
|
+
if (option) {
|
726
|
+
// requires arg
|
727
|
+
if (option.required) {
|
728
|
+
arg = argv[++i];
|
729
|
+
if (arg == null) return this.optionMissingArgument(option);
|
730
|
+
this.emit('option:' + option.name(), arg);
|
731
|
+
// optional arg
|
732
|
+
} else if (option.optional) {
|
733
|
+
arg = argv[i + 1];
|
734
|
+
if (arg == null || (arg[0] === '-' && arg !== '-')) {
|
735
|
+
arg = null;
|
1516
736
|
} else {
|
1517
|
-
|
737
|
+
++i;
|
1518
738
|
}
|
1519
|
-
|
1520
|
-
|
1521
|
-
this.help({ error: true });
|
739
|
+
this.emit('option:' + option.name(), arg);
|
740
|
+
// bool
|
1522
741
|
} else {
|
1523
|
-
|
1524
|
-
// fall through for caller to handle after calling .parse()
|
742
|
+
this.emit('option:' + option.name());
|
1525
743
|
}
|
744
|
+
continue;
|
1526
745
|
}
|
1527
|
-
};
|
1528
|
-
|
1529
|
-
/**
|
1530
|
-
* Find matching command.
|
1531
|
-
*
|
1532
|
-
* @api private
|
1533
|
-
*/
|
1534
|
-
_findCommand(name) {
|
1535
|
-
if (!name) return undefined;
|
1536
|
-
return this.commands.find(cmd => cmd._name === name || cmd._aliases.includes(name));
|
1537
|
-
};
|
1538
746
|
|
1539
|
-
|
1540
|
-
|
1541
|
-
|
1542
|
-
* @param {string} arg
|
1543
|
-
* @return {Option}
|
1544
|
-
* @api private
|
1545
|
-
*/
|
1546
|
-
|
1547
|
-
_findOption(arg) {
|
1548
|
-
return this.options.find(option => option.is(arg));
|
1549
|
-
};
|
1550
|
-
|
1551
|
-
/**
|
1552
|
-
* Display an error message if a mandatory option does not have a value.
|
1553
|
-
* Lazy calling after checking for help flags from leaf subcommand.
|
1554
|
-
*
|
1555
|
-
* @api private
|
1556
|
-
*/
|
1557
|
-
|
1558
|
-
_checkForMissingMandatoryOptions() {
|
1559
|
-
// Walk up hierarchy so can call in subcommand after checking for displaying help.
|
1560
|
-
for (let cmd = this; cmd; cmd = cmd.parent) {
|
1561
|
-
cmd.options.forEach((anOption) => {
|
1562
|
-
if (anOption.mandatory && (cmd._getOptionValue(anOption.attributeName()) === undefined)) {
|
1563
|
-
cmd.missingMandatoryOptionValue(anOption);
|
1564
|
-
}
|
1565
|
-
});
|
1566
|
-
}
|
1567
|
-
};
|
747
|
+
// looks like an option
|
748
|
+
if (arg.length > 1 && arg[0] === '-') {
|
749
|
+
unknownOptions.push(arg);
|
1568
750
|
|
1569
|
-
|
1570
|
-
|
1571
|
-
|
1572
|
-
|
1573
|
-
|
1574
|
-
|
1575
|
-
|
1576
|
-
* --known kkk op => [op], []
|
1577
|
-
* op --known kkk => [op], []
|
1578
|
-
* sub --unknown uuu op => [sub], [--unknown uuu op]
|
1579
|
-
* sub -- --unknown uuu op => [sub --unknown uuu op], []
|
1580
|
-
*
|
1581
|
-
* @param {String[]} argv
|
1582
|
-
* @return {{operands: String[], unknown: String[]}}
|
1583
|
-
*/
|
1584
|
-
|
1585
|
-
parseOptions(argv) {
|
1586
|
-
const operands = []; // operands, not options or values
|
1587
|
-
const unknown = []; // first unknown option and remaining unknown args
|
1588
|
-
let dest = operands;
|
1589
|
-
const args = argv.slice();
|
1590
|
-
|
1591
|
-
function maybeOption(arg) {
|
1592
|
-
return arg.length > 1 && arg[0] === '-';
|
751
|
+
// If the next argument looks like it might be
|
752
|
+
// an argument for this option, we pass it on.
|
753
|
+
// If it isn't, then it'll simply be ignored
|
754
|
+
if ((i + 1) < argv.length && argv[i + 1][0] !== '-') {
|
755
|
+
unknownOptions.push(argv[++i]);
|
756
|
+
}
|
757
|
+
continue;
|
1593
758
|
}
|
1594
759
|
|
1595
|
-
//
|
1596
|
-
|
1597
|
-
|
1598
|
-
const arg = args.shift();
|
760
|
+
// arg
|
761
|
+
args.push(arg);
|
762
|
+
}
|
1599
763
|
|
1600
|
-
|
1601
|
-
|
1602
|
-
if (dest === unknown) dest.push(arg);
|
1603
|
-
dest.push(...args);
|
1604
|
-
break;
|
1605
|
-
}
|
764
|
+
return { args: args, unknown: unknownOptions };
|
765
|
+
};
|
1606
766
|
|
1607
|
-
|
1608
|
-
|
1609
|
-
|
1610
|
-
|
1611
|
-
|
1612
|
-
|
1613
|
-
|
1614
|
-
|
1615
|
-
|
1616
|
-
if (option) {
|
1617
|
-
if (option.required) {
|
1618
|
-
const value = args.shift();
|
1619
|
-
if (value === undefined) this.optionMissingArgument(option);
|
1620
|
-
this.emit(`option:${option.name()}`, value);
|
1621
|
-
} else if (option.optional) {
|
1622
|
-
let value = null;
|
1623
|
-
// historical behaviour is optional value is following arg unless an option
|
1624
|
-
if (args.length > 0 && !maybeOption(args[0])) {
|
1625
|
-
value = args.shift();
|
1626
|
-
}
|
1627
|
-
this.emit(`option:${option.name()}`, value);
|
1628
|
-
} else { // boolean flag
|
1629
|
-
this.emit(`option:${option.name()}`);
|
1630
|
-
}
|
1631
|
-
activeVariadicOption = option.variadic ? option : null;
|
1632
|
-
continue;
|
1633
|
-
}
|
1634
|
-
}
|
767
|
+
/**
|
768
|
+
* Return an object containing options as key-value pairs
|
769
|
+
*
|
770
|
+
* @return {Object}
|
771
|
+
* @api public
|
772
|
+
*/
|
773
|
+
Command.prototype.opts = function() {
|
774
|
+
var result = {},
|
775
|
+
len = this.options.length;
|
1635
776
|
|
1636
|
-
|
1637
|
-
|
1638
|
-
|
1639
|
-
|
1640
|
-
|
1641
|
-
|
1642
|
-
this.emit(`option:${option.name()}`, arg.slice(2));
|
1643
|
-
} else {
|
1644
|
-
// boolean option, emit and put back remainder of arg for further processing
|
1645
|
-
this.emit(`option:${option.name()}`);
|
1646
|
-
args.unshift(`-${arg.slice(2)}`);
|
1647
|
-
}
|
1648
|
-
continue;
|
1649
|
-
}
|
1650
|
-
}
|
777
|
+
for (var i = 0; i < len; i++) {
|
778
|
+
var key = this.options[i].attributeName();
|
779
|
+
result[key] = key === this._versionOptionName ? this._version : this[key];
|
780
|
+
}
|
781
|
+
return result;
|
782
|
+
};
|
1651
783
|
|
1652
|
-
|
1653
|
-
|
1654
|
-
|
1655
|
-
|
1656
|
-
|
1657
|
-
|
1658
|
-
continue;
|
1659
|
-
}
|
1660
|
-
}
|
784
|
+
/**
|
785
|
+
* Argument `name` is missing.
|
786
|
+
*
|
787
|
+
* @param {String} name
|
788
|
+
* @api private
|
789
|
+
*/
|
1661
790
|
|
1662
|
-
|
1663
|
-
|
791
|
+
Command.prototype.missingArgument = function(name) {
|
792
|
+
console.error("error: missing required argument `%s'", name);
|
793
|
+
process.exit(1);
|
794
|
+
};
|
1664
795
|
|
1665
|
-
|
1666
|
-
|
1667
|
-
|
1668
|
-
|
796
|
+
/**
|
797
|
+
* `Option` is missing an argument, but received `flag` or nothing.
|
798
|
+
*
|
799
|
+
* @param {String} option
|
800
|
+
* @param {String} flag
|
801
|
+
* @api private
|
802
|
+
*/
|
1669
803
|
|
1670
|
-
|
1671
|
-
|
1672
|
-
|
1673
|
-
|
1674
|
-
|
1675
|
-
|
1676
|
-
|
1677
|
-
|
1678
|
-
if (args.length > 0) operands.push(...args);
|
1679
|
-
break;
|
1680
|
-
} else if (this._defaultCommandName) {
|
1681
|
-
unknown.push(arg);
|
1682
|
-
if (args.length > 0) unknown.push(...args);
|
1683
|
-
break;
|
1684
|
-
}
|
1685
|
-
}
|
804
|
+
Command.prototype.optionMissingArgument = function(option, flag) {
|
805
|
+
if (flag) {
|
806
|
+
console.error("error: option `%s' argument missing, got `%s'", option.flags, flag);
|
807
|
+
} else {
|
808
|
+
console.error("error: option `%s' argument missing", option.flags);
|
809
|
+
}
|
810
|
+
process.exit(1);
|
811
|
+
};
|
1686
812
|
|
1687
|
-
|
1688
|
-
|
1689
|
-
|
1690
|
-
|
1691
|
-
|
1692
|
-
|
813
|
+
/**
|
814
|
+
* Unknown option `flag`.
|
815
|
+
*
|
816
|
+
* @param {String} flag
|
817
|
+
* @api private
|
818
|
+
*/
|
1693
819
|
|
1694
|
-
|
1695
|
-
|
1696
|
-
|
820
|
+
Command.prototype.unknownOption = function(flag) {
|
821
|
+
if (this._allowUnknownOption) return;
|
822
|
+
console.error("error: unknown option `%s'", flag);
|
823
|
+
process.exit(1);
|
824
|
+
};
|
1697
825
|
|
1698
|
-
|
1699
|
-
|
826
|
+
/**
|
827
|
+
* Variadic argument with `name` is not the last argument as required.
|
828
|
+
*
|
829
|
+
* @param {String} name
|
830
|
+
* @api private
|
831
|
+
*/
|
1700
832
|
|
1701
|
-
|
1702
|
-
|
1703
|
-
|
1704
|
-
|
1705
|
-
*/
|
1706
|
-
opts() {
|
1707
|
-
if (this._storeOptionsAsProperties) {
|
1708
|
-
// Preserve original behaviour so backwards compatible when still using properties
|
1709
|
-
const result = {};
|
1710
|
-
const len = this.options.length;
|
1711
|
-
|
1712
|
-
for (let i = 0; i < len; i++) {
|
1713
|
-
const key = this.options[i].attributeName();
|
1714
|
-
result[key] = key === this._versionOptionName ? this._version : this[key];
|
1715
|
-
}
|
1716
|
-
return result;
|
1717
|
-
}
|
833
|
+
Command.prototype.variadicArgNotLast = function(name) {
|
834
|
+
console.error("error: variadic arguments must be last `%s'", name);
|
835
|
+
process.exit(1);
|
836
|
+
};
|
1718
837
|
|
1719
|
-
|
1720
|
-
|
838
|
+
/**
|
839
|
+
* Set the program version to `str`.
|
840
|
+
*
|
841
|
+
* This method auto-registers the "-V, --version" flag
|
842
|
+
* which will print the version number when passed.
|
843
|
+
*
|
844
|
+
* @param {String} str
|
845
|
+
* @param {String} [flags]
|
846
|
+
* @return {Command} for chaining
|
847
|
+
* @api public
|
848
|
+
*/
|
1721
849
|
|
1722
|
-
|
1723
|
-
|
1724
|
-
|
1725
|
-
|
1726
|
-
|
1727
|
-
|
1728
|
-
|
1729
|
-
|
1730
|
-
|
850
|
+
Command.prototype.version = function(str, flags) {
|
851
|
+
if (arguments.length === 0) return this._version;
|
852
|
+
this._version = str;
|
853
|
+
flags = flags || '-V, --version';
|
854
|
+
var versionOption = new Option(flags, 'output the version number');
|
855
|
+
this._versionOptionName = versionOption.long.substr(2) || 'version';
|
856
|
+
this.options.push(versionOption);
|
857
|
+
this.on('option:' + this._versionOptionName, function() {
|
858
|
+
process.stdout.write(str + '\n');
|
859
|
+
process.exit(0);
|
860
|
+
});
|
861
|
+
return this;
|
862
|
+
};
|
1731
863
|
|
1732
|
-
|
1733
|
-
|
1734
|
-
|
1735
|
-
|
1736
|
-
|
1737
|
-
|
864
|
+
/**
|
865
|
+
* Set the description to `str`.
|
866
|
+
*
|
867
|
+
* @param {String} str
|
868
|
+
* @param {Object} argsDescription
|
869
|
+
* @return {String|Command}
|
870
|
+
* @api public
|
871
|
+
*/
|
1738
872
|
|
1739
|
-
|
1740
|
-
|
1741
|
-
|
1742
|
-
|
873
|
+
Command.prototype.description = function(str, argsDescription) {
|
874
|
+
if (arguments.length === 0) return this._description;
|
875
|
+
this._description = str;
|
876
|
+
this._argsDescription = argsDescription;
|
877
|
+
return this;
|
878
|
+
};
|
1743
879
|
|
1744
|
-
|
1745
|
-
|
1746
|
-
|
1747
|
-
|
1748
|
-
|
1749
|
-
|
880
|
+
/**
|
881
|
+
* Set an alias for the command
|
882
|
+
*
|
883
|
+
* @param {String} alias
|
884
|
+
* @return {String|Command}
|
885
|
+
* @api public
|
886
|
+
*/
|
1750
887
|
|
1751
|
-
|
1752
|
-
|
1753
|
-
|
1754
|
-
|
888
|
+
Command.prototype.alias = function(alias) {
|
889
|
+
var command = this;
|
890
|
+
if (this.commands.length !== 0) {
|
891
|
+
command = this.commands[this.commands.length - 1];
|
892
|
+
}
|
1755
893
|
|
1756
|
-
|
1757
|
-
* `Option` does not have a value, and is a mandatory option.
|
1758
|
-
*
|
1759
|
-
* @param {Option} option
|
1760
|
-
* @api private
|
1761
|
-
*/
|
894
|
+
if (arguments.length === 0) return command._alias;
|
1762
895
|
|
1763
|
-
|
1764
|
-
const message = `error: required option '${option.flags}' not specified`;
|
1765
|
-
this._displayError(1, 'commander.missingMandatoryOptionValue', message);
|
1766
|
-
};
|
896
|
+
if (alias === command._name) throw new Error('Command alias can\'t be the same as its name');
|
1767
897
|
|
1768
|
-
|
1769
|
-
|
1770
|
-
|
1771
|
-
* @param {string} flag
|
1772
|
-
* @api private
|
1773
|
-
*/
|
1774
|
-
|
1775
|
-
unknownOption(flag) {
|
1776
|
-
if (this._allowUnknownOption) return;
|
1777
|
-
const message = `error: unknown option '${flag}'`;
|
1778
|
-
this._displayError(1, 'commander.unknownOption', message);
|
1779
|
-
};
|
898
|
+
command._alias = alias;
|
899
|
+
return this;
|
900
|
+
};
|
1780
901
|
|
1781
|
-
|
1782
|
-
|
1783
|
-
|
1784
|
-
|
1785
|
-
|
1786
|
-
|
1787
|
-
|
1788
|
-
_excessArguments(receivedArgs) {
|
1789
|
-
if (this._allowExcessArguments) return;
|
1790
|
-
|
1791
|
-
const expected = this._args.length;
|
1792
|
-
const s = (expected === 1) ? '' : 's';
|
1793
|
-
const forSubcommand = this.parent ? ` for '${this.name()}'` : '';
|
1794
|
-
const message = `error: too many arguments${forSubcommand}. Expected ${expected} argument${s} but got ${receivedArgs.length}.`;
|
1795
|
-
this._displayError(1, 'commander.excessArguments', message);
|
1796
|
-
};
|
902
|
+
/**
|
903
|
+
* Set / get the command usage `str`.
|
904
|
+
*
|
905
|
+
* @param {String} str
|
906
|
+
* @return {String|Command}
|
907
|
+
* @api public
|
908
|
+
*/
|
1797
909
|
|
1798
|
-
|
1799
|
-
|
1800
|
-
|
1801
|
-
|
1802
|
-
*/
|
910
|
+
Command.prototype.usage = function(str) {
|
911
|
+
var args = this._args.map(function(arg) {
|
912
|
+
return humanReadableArgName(arg);
|
913
|
+
});
|
1803
914
|
|
1804
|
-
|
1805
|
-
|
1806
|
-
|
1807
|
-
partCommands.unshift(parentCmd.name());
|
1808
|
-
}
|
1809
|
-
const fullCommand = partCommands.join(' ');
|
1810
|
-
const message = `error: unknown command '${this.args[0]}'.` +
|
1811
|
-
(this._hasHelpOption ? ` See '${fullCommand} ${this._helpLongFlag}'.` : '');
|
1812
|
-
this._displayError(1, 'commander.unknownCommand', message);
|
1813
|
-
};
|
915
|
+
var usage = '[options]' +
|
916
|
+
(this.commands.length ? ' [command]' : '') +
|
917
|
+
(this._args.length ? ' ' + args.join(' ') : '');
|
1814
918
|
|
1815
|
-
|
1816
|
-
|
1817
|
-
*
|
1818
|
-
* This method auto-registers the "-V, --version" flag
|
1819
|
-
* which will print the version number when passed.
|
1820
|
-
*
|
1821
|
-
* You can optionally supply the flags and description to override the defaults.
|
1822
|
-
*
|
1823
|
-
* @param {string} str
|
1824
|
-
* @param {string} [flags]
|
1825
|
-
* @param {string} [description]
|
1826
|
-
* @return {this | string} `this` command for chaining, or version string if no arguments
|
1827
|
-
*/
|
1828
|
-
|
1829
|
-
version(str, flags, description) {
|
1830
|
-
if (str === undefined) return this._version;
|
1831
|
-
this._version = str;
|
1832
|
-
flags = flags || '-V, --version';
|
1833
|
-
description = description || 'output the version number';
|
1834
|
-
const versionOption = this.createOption(flags, description);
|
1835
|
-
this._versionOptionName = versionOption.attributeName();
|
1836
|
-
this.options.push(versionOption);
|
1837
|
-
this.on('option:' + versionOption.name(), () => {
|
1838
|
-
this._outputConfiguration.writeOut(`${str}\n`);
|
1839
|
-
this._exit(0, 'commander.version', str);
|
1840
|
-
});
|
1841
|
-
return this;
|
1842
|
-
};
|
919
|
+
if (arguments.length === 0) return this._usage || usage;
|
920
|
+
this._usage = str;
|
1843
921
|
|
1844
|
-
|
1845
|
-
|
1846
|
-
*
|
1847
|
-
* @param {string} [str]
|
1848
|
-
* @param {Object} [argsDescription]
|
1849
|
-
* @return {string|Command}
|
1850
|
-
*/
|
1851
|
-
description(str, argsDescription) {
|
1852
|
-
if (str === undefined && argsDescription === undefined) return this._description;
|
1853
|
-
this._description = str;
|
1854
|
-
this._argsDescription = argsDescription;
|
1855
|
-
return this;
|
1856
|
-
};
|
922
|
+
return this;
|
923
|
+
};
|
1857
924
|
|
1858
|
-
|
1859
|
-
|
1860
|
-
|
1861
|
-
|
1862
|
-
|
1863
|
-
|
1864
|
-
|
1865
|
-
*/
|
1866
|
-
|
1867
|
-
alias(alias) {
|
1868
|
-
if (alias === undefined) return this._aliases[0]; // just return first, for backwards compatibility
|
1869
|
-
|
1870
|
-
let command = this;
|
1871
|
-
if (this.commands.length !== 0 && this.commands[this.commands.length - 1]._executableHandler) {
|
1872
|
-
// assume adding alias for last added executable subcommand, rather than this
|
1873
|
-
command = this.commands[this.commands.length - 1];
|
1874
|
-
}
|
925
|
+
/**
|
926
|
+
* Get or set the name of the command
|
927
|
+
*
|
928
|
+
* @param {String} str
|
929
|
+
* @return {String|Command}
|
930
|
+
* @api public
|
931
|
+
*/
|
1875
932
|
|
1876
|
-
|
933
|
+
Command.prototype.name = function(str) {
|
934
|
+
if (arguments.length === 0) return this._name;
|
935
|
+
this._name = str;
|
936
|
+
return this;
|
937
|
+
};
|
1877
938
|
|
1878
|
-
|
1879
|
-
|
1880
|
-
|
939
|
+
/**
|
940
|
+
* Return prepared commands.
|
941
|
+
*
|
942
|
+
* @return {Array}
|
943
|
+
* @api private
|
944
|
+
*/
|
1881
945
|
|
1882
|
-
|
1883
|
-
|
1884
|
-
|
1885
|
-
|
1886
|
-
|
1887
|
-
|
1888
|
-
|
1889
|
-
|
1890
|
-
|
1891
|
-
|
1892
|
-
|
1893
|
-
|
1894
|
-
|
1895
|
-
|
1896
|
-
|
1897
|
-
};
|
946
|
+
Command.prototype.prepareCommands = function() {
|
947
|
+
return this.commands.filter(function(cmd) {
|
948
|
+
return !cmd._noHelp;
|
949
|
+
}).map(function(cmd) {
|
950
|
+
var args = cmd._args.map(function(arg) {
|
951
|
+
return humanReadableArgName(arg);
|
952
|
+
}).join(' ');
|
953
|
+
|
954
|
+
return [
|
955
|
+
cmd._name +
|
956
|
+
(cmd._alias ? '|' + cmd._alias : '') +
|
957
|
+
(cmd.options.length ? ' [options]' : '') +
|
958
|
+
(args ? ' ' + args : ''),
|
959
|
+
cmd._description
|
960
|
+
];
|
961
|
+
});
|
962
|
+
};
|
1898
963
|
|
1899
|
-
|
1900
|
-
|
1901
|
-
|
1902
|
-
|
1903
|
-
|
1904
|
-
|
964
|
+
/**
|
965
|
+
* Return the largest command length.
|
966
|
+
*
|
967
|
+
* @return {Number}
|
968
|
+
* @api private
|
969
|
+
*/
|
1905
970
|
|
1906
|
-
|
1907
|
-
|
1908
|
-
|
971
|
+
Command.prototype.largestCommandLength = function() {
|
972
|
+
var commands = this.prepareCommands();
|
973
|
+
return commands.reduce(function(max, command) {
|
974
|
+
return Math.max(max, command[0].length);
|
975
|
+
}, 0);
|
976
|
+
};
|
1909
977
|
|
1910
|
-
|
1911
|
-
|
1912
|
-
|
1913
|
-
|
1914
|
-
|
1915
|
-
|
1916
|
-
(this._args.length ? args : [])
|
1917
|
-
).join(' ');
|
1918
|
-
}
|
978
|
+
/**
|
979
|
+
* Return the largest option length.
|
980
|
+
*
|
981
|
+
* @return {Number}
|
982
|
+
* @api private
|
983
|
+
*/
|
1919
984
|
|
1920
|
-
|
1921
|
-
|
1922
|
-
|
985
|
+
Command.prototype.largestOptionLength = function() {
|
986
|
+
var options = [].slice.call(this.options);
|
987
|
+
options.push({
|
988
|
+
flags: '-h, --help'
|
989
|
+
});
|
990
|
+
return options.reduce(function(max, option) {
|
991
|
+
return Math.max(max, option.flags.length);
|
992
|
+
}, 0);
|
993
|
+
};
|
1923
994
|
|
1924
|
-
|
1925
|
-
|
1926
|
-
|
1927
|
-
|
1928
|
-
|
1929
|
-
|
1930
|
-
|
1931
|
-
name(str) {
|
1932
|
-
if (str === undefined) return this._name;
|
1933
|
-
this._name = str;
|
1934
|
-
return this;
|
1935
|
-
};
|
995
|
+
/**
|
996
|
+
* Return the largest arg length.
|
997
|
+
*
|
998
|
+
* @return {Number}
|
999
|
+
* @api private
|
1000
|
+
*/
|
1936
1001
|
|
1937
|
-
|
1938
|
-
|
1939
|
-
|
1940
|
-
|
1941
|
-
|
1942
|
-
*/
|
1943
|
-
|
1944
|
-
helpInformation(contextOptions) {
|
1945
|
-
const helper = this.createHelp();
|
1946
|
-
if (helper.helpWidth === undefined) {
|
1947
|
-
helper.helpWidth = (contextOptions && contextOptions.error) ? this._outputConfiguration.getErrHelpWidth() : this._outputConfiguration.getOutHelpWidth();
|
1948
|
-
}
|
1949
|
-
return helper.formatHelp(this, helper);
|
1950
|
-
};
|
1002
|
+
Command.prototype.largestArgLength = function() {
|
1003
|
+
return this._args.reduce(function(max, arg) {
|
1004
|
+
return Math.max(max, arg.name.length);
|
1005
|
+
}, 0);
|
1006
|
+
};
|
1951
1007
|
|
1952
|
-
|
1953
|
-
|
1954
|
-
|
1008
|
+
/**
|
1009
|
+
* Return the pad width.
|
1010
|
+
*
|
1011
|
+
* @return {Number}
|
1012
|
+
* @api private
|
1013
|
+
*/
|
1955
1014
|
|
1956
|
-
|
1957
|
-
|
1958
|
-
|
1959
|
-
|
1960
|
-
|
1961
|
-
write = (arg) => this._outputConfiguration.writeErr(arg);
|
1962
|
-
} else {
|
1963
|
-
write = (arg) => this._outputConfiguration.writeOut(arg);
|
1015
|
+
Command.prototype.padWidth = function() {
|
1016
|
+
var width = this.largestOptionLength();
|
1017
|
+
if (this._argsDescription && this._args.length) {
|
1018
|
+
if (this.largestArgLength() > width) {
|
1019
|
+
width = this.largestArgLength();
|
1964
1020
|
}
|
1965
|
-
context.write = contextOptions.write || write;
|
1966
|
-
context.command = this;
|
1967
|
-
return context;
|
1968
1021
|
}
|
1969
1022
|
|
1970
|
-
|
1971
|
-
|
1972
|
-
|
1973
|
-
* Outputs built-in help, and custom text added using `.addHelpText()`.
|
1974
|
-
*
|
1975
|
-
* @param {{ error: boolean } | Function} [contextOptions] - pass {error:true} to write to stderr instead of stdout
|
1976
|
-
*/
|
1977
|
-
|
1978
|
-
outputHelp(contextOptions) {
|
1979
|
-
let deprecatedCallback;
|
1980
|
-
if (typeof contextOptions === 'function') {
|
1981
|
-
deprecatedCallback = contextOptions;
|
1982
|
-
contextOptions = undefined;
|
1023
|
+
if (this.commands && this.commands.length) {
|
1024
|
+
if (this.largestCommandLength() > width) {
|
1025
|
+
width = this.largestCommandLength();
|
1983
1026
|
}
|
1984
|
-
|
1027
|
+
}
|
1985
1028
|
|
1986
|
-
|
1987
|
-
|
1988
|
-
|
1989
|
-
|
1990
|
-
|
1991
|
-
|
1029
|
+
return width;
|
1030
|
+
};
|
1031
|
+
|
1032
|
+
/**
|
1033
|
+
* Return help for options.
|
1034
|
+
*
|
1035
|
+
* @return {String}
|
1036
|
+
* @api private
|
1037
|
+
*/
|
1992
1038
|
|
1993
|
-
|
1994
|
-
|
1039
|
+
Command.prototype.optionHelp = function() {
|
1040
|
+
var width = this.padWidth();
|
1995
1041
|
|
1996
|
-
|
1997
|
-
|
1998
|
-
|
1999
|
-
|
2000
|
-
|
2001
|
-
|
2002
|
-
|
2003
|
-
context.write(helpInformation);
|
1042
|
+
// Append the help information
|
1043
|
+
return this.options.map(function(option) {
|
1044
|
+
return pad(option.flags, width) + ' ' + option.description +
|
1045
|
+
((option.bool && option.defaultValue !== undefined) ? ' (default: ' + JSON.stringify(option.defaultValue) + ')' : '');
|
1046
|
+
}).concat([pad('-h, --help', width) + ' ' + 'output usage information'])
|
1047
|
+
.join('\n');
|
1048
|
+
};
|
2004
1049
|
|
2005
|
-
|
2006
|
-
|
2007
|
-
|
2008
|
-
|
1050
|
+
/**
|
1051
|
+
* Return command help documentation.
|
1052
|
+
*
|
1053
|
+
* @return {String}
|
1054
|
+
* @api private
|
1055
|
+
*/
|
2009
1056
|
|
2010
|
-
|
2011
|
-
|
2012
|
-
* flags and help description for your command. Pass in false to
|
2013
|
-
* disable the built-in help option.
|
2014
|
-
*
|
2015
|
-
* @param {string | boolean} [flags]
|
2016
|
-
* @param {string} [description]
|
2017
|
-
* @return {Command} `this` command for chaining
|
2018
|
-
*/
|
2019
|
-
|
2020
|
-
helpOption(flags, description) {
|
2021
|
-
if (typeof flags === 'boolean') {
|
2022
|
-
this._hasHelpOption = flags;
|
2023
|
-
return this;
|
2024
|
-
}
|
2025
|
-
this._helpFlags = flags || this._helpFlags;
|
2026
|
-
this._helpDescription = description || this._helpDescription;
|
1057
|
+
Command.prototype.commandHelp = function() {
|
1058
|
+
if (!this.commands.length) return '';
|
2027
1059
|
|
2028
|
-
|
2029
|
-
|
2030
|
-
this._helpLongFlag = helpFlags.longFlag;
|
1060
|
+
var commands = this.prepareCommands();
|
1061
|
+
var width = this.padWidth();
|
2031
1062
|
|
2032
|
-
|
2033
|
-
|
1063
|
+
return [
|
1064
|
+
'Commands:',
|
1065
|
+
commands.map(function(cmd) {
|
1066
|
+
var desc = cmd[1] ? ' ' + cmd[1] : '';
|
1067
|
+
return (desc ? pad(cmd[0], width) : cmd[0]) + desc;
|
1068
|
+
}).join('\n').replace(/^/gm, ' '),
|
1069
|
+
''
|
1070
|
+
].join('\n');
|
1071
|
+
};
|
2034
1072
|
|
2035
|
-
|
2036
|
-
|
2037
|
-
|
2038
|
-
|
2039
|
-
|
2040
|
-
|
2041
|
-
*/
|
2042
|
-
|
2043
|
-
help(contextOptions) {
|
2044
|
-
this.outputHelp(contextOptions);
|
2045
|
-
let exitCode = process.exitCode || 0;
|
2046
|
-
if (exitCode === 0 && contextOptions && typeof contextOptions !== 'function' && contextOptions.error) {
|
2047
|
-
exitCode = 1;
|
2048
|
-
}
|
2049
|
-
// message: do not have all displayed text available so only passing placeholder.
|
2050
|
-
this._exit(exitCode, 'commander.help', '(outputHelp)');
|
2051
|
-
};
|
1073
|
+
/**
|
1074
|
+
* Return program help documentation.
|
1075
|
+
*
|
1076
|
+
* @return {String}
|
1077
|
+
* @api private
|
1078
|
+
*/
|
2052
1079
|
|
2053
|
-
|
2054
|
-
|
2055
|
-
|
2056
|
-
|
2057
|
-
|
2058
|
-
|
2059
|
-
|
2060
|
-
|
2061
|
-
|
2062
|
-
|
2063
|
-
|
2064
|
-
|
2065
|
-
|
2066
|
-
|
2067
|
-
|
1080
|
+
Command.prototype.helpInformation = function() {
|
1081
|
+
var desc = [];
|
1082
|
+
if (this._description) {
|
1083
|
+
desc = [
|
1084
|
+
this._description,
|
1085
|
+
''
|
1086
|
+
];
|
1087
|
+
|
1088
|
+
var argsDescription = this._argsDescription;
|
1089
|
+
if (argsDescription && this._args.length) {
|
1090
|
+
var width = this.padWidth();
|
1091
|
+
desc.push('Arguments:');
|
1092
|
+
desc.push('');
|
1093
|
+
this._args.forEach(function(arg) {
|
1094
|
+
desc.push(' ' + pad(arg.name, width) + ' ' + argsDescription[arg.name]);
|
1095
|
+
});
|
1096
|
+
desc.push('');
|
2068
1097
|
}
|
2069
|
-
const helpEvent = `${position}Help`;
|
2070
|
-
this.on(helpEvent, (context) => {
|
2071
|
-
let helpStr;
|
2072
|
-
if (typeof text === 'function') {
|
2073
|
-
helpStr = text({ error: context.error, command: context.command });
|
2074
|
-
} else {
|
2075
|
-
helpStr = text;
|
2076
|
-
}
|
2077
|
-
// Ignore falsy value when nothing to output.
|
2078
|
-
if (helpStr) {
|
2079
|
-
context.write(`${helpStr}\n`);
|
2080
|
-
}
|
2081
|
-
});
|
2082
|
-
return this;
|
2083
1098
|
}
|
1099
|
+
|
1100
|
+
var cmdName = this._name;
|
1101
|
+
if (this._alias) {
|
1102
|
+
cmdName = cmdName + '|' + this._alias;
|
1103
|
+
}
|
1104
|
+
var usage = [
|
1105
|
+
'Usage: ' + cmdName + ' ' + this.usage(),
|
1106
|
+
''
|
1107
|
+
];
|
1108
|
+
|
1109
|
+
var cmds = [];
|
1110
|
+
var commandHelp = this.commandHelp();
|
1111
|
+
if (commandHelp) cmds = [commandHelp];
|
1112
|
+
|
1113
|
+
var options = [
|
1114
|
+
'Options:',
|
1115
|
+
'' + this.optionHelp().replace(/^/gm, ' '),
|
1116
|
+
''
|
1117
|
+
];
|
1118
|
+
|
1119
|
+
return usage
|
1120
|
+
.concat(desc)
|
1121
|
+
.concat(options)
|
1122
|
+
.concat(cmds)
|
1123
|
+
.join('\n');
|
2084
1124
|
};
|
2085
1125
|
|
2086
1126
|
/**
|
2087
|
-
*
|
1127
|
+
* Output help information for this command
|
1128
|
+
*
|
1129
|
+
* @api public
|
2088
1130
|
*/
|
2089
1131
|
|
2090
|
-
|
2091
|
-
|
1132
|
+
Command.prototype.outputHelp = function(cb) {
|
1133
|
+
if (!cb) {
|
1134
|
+
cb = function(passthru) {
|
1135
|
+
return passthru;
|
1136
|
+
};
|
1137
|
+
}
|
1138
|
+
process.stdout.write(cb(this.helpInformation()));
|
1139
|
+
this.emit('--help');
|
1140
|
+
};
|
2092
1141
|
|
2093
1142
|
/**
|
2094
|
-
*
|
1143
|
+
* Output help information and exit.
|
1144
|
+
*
|
1145
|
+
* @api public
|
2095
1146
|
*/
|
2096
1147
|
|
2097
|
-
|
2098
|
-
|
2099
|
-
|
2100
|
-
|
2101
|
-
exports.Help = Help;
|
1148
|
+
Command.prototype.help = function(cb) {
|
1149
|
+
this.outputHelp(cb);
|
1150
|
+
process.exit();
|
1151
|
+
};
|
2102
1152
|
|
2103
1153
|
/**
|
2104
1154
|
* Camel-case the given `flag`
|
2105
1155
|
*
|
2106
|
-
* @param {
|
2107
|
-
* @return {
|
1156
|
+
* @param {String} flag
|
1157
|
+
* @return {String}
|
2108
1158
|
* @api private
|
2109
1159
|
*/
|
2110
1160
|
|
2111
1161
|
function camelcase(flag) {
|
2112
|
-
return flag.split('-').reduce((str, word)
|
1162
|
+
return flag.split('-').reduce(function(str, word) {
|
2113
1163
|
return str + word[0].toUpperCase() + word.slice(1);
|
2114
1164
|
});
|
2115
1165
|
}
|
2116
1166
|
|
2117
1167
|
/**
|
2118
|
-
*
|
2119
|
-
*
|
2120
|
-
* @param {Command} cmd - command to output help for
|
2121
|
-
* @param {Array} args - array of options to search for help flags
|
2122
|
-
* @api private
|
2123
|
-
*/
|
2124
|
-
|
2125
|
-
function outputHelpIfRequested(cmd, args) {
|
2126
|
-
const helpOption = cmd._hasHelpOption && args.find(arg => arg === cmd._helpLongFlag || arg === cmd._helpShortFlag);
|
2127
|
-
if (helpOption) {
|
2128
|
-
cmd.outputHelp();
|
2129
|
-
// (Do not have all displayed text available so only passing placeholder.)
|
2130
|
-
cmd._exit(0, 'commander.helpDisplayed', '(outputHelp)');
|
2131
|
-
}
|
2132
|
-
}
|
2133
|
-
|
2134
|
-
/**
|
2135
|
-
* Takes an argument and returns its human readable equivalent for help usage.
|
1168
|
+
* Pad `str` to `width`.
|
2136
1169
|
*
|
2137
|
-
* @param {
|
2138
|
-
* @
|
1170
|
+
* @param {String} str
|
1171
|
+
* @param {Number} width
|
1172
|
+
* @return {String}
|
2139
1173
|
* @api private
|
2140
1174
|
*/
|
2141
1175
|
|
2142
|
-
function
|
2143
|
-
|
2144
|
-
|
2145
|
-
return arg.required
|
2146
|
-
? '<' + nameOutput + '>'
|
2147
|
-
: '[' + nameOutput + ']';
|
1176
|
+
function pad(str, width) {
|
1177
|
+
var len = Math.max(0, width - str.length);
|
1178
|
+
return str + Array(len + 1).join(' ');
|
2148
1179
|
}
|
2149
1180
|
|
2150
1181
|
/**
|
2151
|
-
*
|
1182
|
+
* Output help information if necessary
|
2152
1183
|
*
|
1184
|
+
* @param {Command} command to output help for
|
1185
|
+
* @param {Array} array of options to search for -h or --help
|
2153
1186
|
* @api private
|
2154
1187
|
*/
|
2155
1188
|
|
2156
|
-
function
|
2157
|
-
|
2158
|
-
|
2159
|
-
|
2160
|
-
|
2161
|
-
|
2162
|
-
|
2163
|
-
longFlag = flagParts.shift();
|
2164
|
-
// Add support for lone short flag without significantly changing parsing!
|
2165
|
-
if (!shortFlag && /^-[^-]$/.test(longFlag)) {
|
2166
|
-
shortFlag = longFlag;
|
2167
|
-
longFlag = undefined;
|
1189
|
+
function outputHelpIfNecessary(cmd, options) {
|
1190
|
+
options = options || [];
|
1191
|
+
for (var i = 0; i < options.length; i++) {
|
1192
|
+
if (options[i] === '--help' || options[i] === '-h') {
|
1193
|
+
cmd.outputHelp();
|
1194
|
+
process.exit(0);
|
1195
|
+
}
|
2168
1196
|
}
|
2169
|
-
return { shortFlag, longFlag };
|
2170
1197
|
}
|
2171
1198
|
|
2172
1199
|
/**
|
2173
|
-
*
|
1200
|
+
* Takes an argument an returns its human readable equivalent for help usage.
|
2174
1201
|
*
|
2175
|
-
* @param {
|
2176
|
-
* @
|
1202
|
+
* @param {Object} arg
|
1203
|
+
* @return {String}
|
2177
1204
|
* @api private
|
2178
1205
|
*/
|
2179
1206
|
|
2180
|
-
function
|
2181
|
-
|
2182
|
-
|
2183
|
-
|
2184
|
-
|
2185
|
-
|
2186
|
-
|
2187
|
-
return arg;
|
2188
|
-
}
|
2189
|
-
let debugOption;
|
2190
|
-
let debugHost = '127.0.0.1';
|
2191
|
-
let debugPort = '9229';
|
2192
|
-
let match;
|
2193
|
-
if ((match = arg.match(/^(--inspect(-brk)?)$/)) !== null) {
|
2194
|
-
// e.g. --inspect
|
2195
|
-
debugOption = match[1];
|
2196
|
-
} else if ((match = arg.match(/^(--inspect(-brk|-port)?)=([^:]+)$/)) !== null) {
|
2197
|
-
debugOption = match[1];
|
2198
|
-
if (/^\d+$/.test(match[3])) {
|
2199
|
-
// e.g. --inspect=1234
|
2200
|
-
debugPort = match[3];
|
2201
|
-
} else {
|
2202
|
-
// e.g. --inspect=localhost
|
2203
|
-
debugHost = match[3];
|
2204
|
-
}
|
2205
|
-
} else if ((match = arg.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/)) !== null) {
|
2206
|
-
// e.g. --inspect=localhost:1234
|
2207
|
-
debugOption = match[1];
|
2208
|
-
debugHost = match[3];
|
2209
|
-
debugPort = match[4];
|
2210
|
-
}
|
1207
|
+
function humanReadableArgName(arg) {
|
1208
|
+
var nameOutput = arg.name + (arg.variadic === true ? '...' : '');
|
1209
|
+
|
1210
|
+
return arg.required
|
1211
|
+
? '<' + nameOutput + '>'
|
1212
|
+
: '[' + nameOutput + ']';
|
1213
|
+
}
|
2211
1214
|
|
2212
|
-
|
2213
|
-
|
1215
|
+
// for versions before node v0.8 when there weren't `fs.existsSync`
|
1216
|
+
function exists(file) {
|
1217
|
+
try {
|
1218
|
+
if (fs.statSync(file).isFile()) {
|
1219
|
+
return true;
|
2214
1220
|
}
|
2215
|
-
|
2216
|
-
|
1221
|
+
} catch (e) {
|
1222
|
+
return false;
|
1223
|
+
}
|
2217
1224
|
}
|