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
@@ -0,0 +1,3307 @@
|
|
1
|
+
/**
|
2
|
+
* The `crypto` module provides cryptographic functionality that includes a set of
|
3
|
+
* wrappers for OpenSSL's hash, HMAC, cipher, decipher, sign, and verify functions.
|
4
|
+
*
|
5
|
+
* ```js
|
6
|
+
* const { createHmac } = await import('crypto');
|
7
|
+
*
|
8
|
+
* const secret = 'abcdefg';
|
9
|
+
* const hash = createHmac('sha256', secret)
|
10
|
+
* .update('I love cupcakes')
|
11
|
+
* .digest('hex');
|
12
|
+
* console.log(hash);
|
13
|
+
* // Prints:
|
14
|
+
* // c0fa1bc00531bd78ef38c628449c5102aeabd49b5dc3a2a516ea6ea959d6658e
|
15
|
+
* ```
|
16
|
+
* @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/crypto.js)
|
17
|
+
*/
|
18
|
+
declare module 'crypto' {
|
19
|
+
import * as stream from 'node:stream';
|
20
|
+
import { PeerCertificate } from 'node:tls';
|
21
|
+
interface Certificate {
|
22
|
+
/**
|
23
|
+
* @deprecated
|
24
|
+
* @param spkac
|
25
|
+
* @returns The challenge component of the `spkac` data structure,
|
26
|
+
* which includes a public key and a challenge.
|
27
|
+
*/
|
28
|
+
exportChallenge(spkac: BinaryLike): Buffer;
|
29
|
+
/**
|
30
|
+
* @deprecated
|
31
|
+
* @param spkac
|
32
|
+
* @param encoding The encoding of the spkac string.
|
33
|
+
* @returns The public key component of the `spkac` data structure,
|
34
|
+
* which includes a public key and a challenge.
|
35
|
+
*/
|
36
|
+
exportPublicKey(spkac: BinaryLike, encoding?: string): Buffer;
|
37
|
+
/**
|
38
|
+
* @deprecated
|
39
|
+
* @param spkac
|
40
|
+
* @returns `true` if the given `spkac` data structure is valid,
|
41
|
+
* `false` otherwise.
|
42
|
+
*/
|
43
|
+
verifySpkac(spkac: NodeJS.ArrayBufferView): boolean;
|
44
|
+
}
|
45
|
+
const Certificate: Certificate & {
|
46
|
+
/** @deprecated since v14.9.0 - Use static methods of `crypto.Certificate` instead. */
|
47
|
+
new (): Certificate;
|
48
|
+
/** @deprecated since v14.9.0 - Use static methods of `crypto.Certificate` instead. */
|
49
|
+
(): Certificate;
|
50
|
+
/**
|
51
|
+
* @param spkac
|
52
|
+
* @returns The challenge component of the `spkac` data structure,
|
53
|
+
* which includes a public key and a challenge.
|
54
|
+
*/
|
55
|
+
exportChallenge(spkac: BinaryLike): Buffer;
|
56
|
+
/**
|
57
|
+
* @param spkac
|
58
|
+
* @param encoding The encoding of the spkac string.
|
59
|
+
* @returns The public key component of the `spkac` data structure,
|
60
|
+
* which includes a public key and a challenge.
|
61
|
+
*/
|
62
|
+
exportPublicKey(spkac: BinaryLike, encoding?: string): Buffer;
|
63
|
+
/**
|
64
|
+
* @param spkac
|
65
|
+
* @returns `true` if the given `spkac` data structure is valid,
|
66
|
+
* `false` otherwise.
|
67
|
+
*/
|
68
|
+
verifySpkac(spkac: NodeJS.ArrayBufferView): boolean;
|
69
|
+
};
|
70
|
+
namespace constants {
|
71
|
+
// https://nodejs.org/dist/latest-v10.x/docs/api/crypto.html#crypto_crypto_constants
|
72
|
+
const OPENSSL_VERSION_NUMBER: number;
|
73
|
+
/** Applies multiple bug workarounds within OpenSSL. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html for detail. */
|
74
|
+
const SSL_OP_ALL: number;
|
75
|
+
/** Allows legacy insecure renegotiation between OpenSSL and unpatched clients or servers. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html. */
|
76
|
+
const SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION: number;
|
77
|
+
/** Attempts to use the server's preferences instead of the client's when selecting a cipher. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html. */
|
78
|
+
const SSL_OP_CIPHER_SERVER_PREFERENCE: number;
|
79
|
+
/** Instructs OpenSSL to use Cisco's "speshul" version of DTLS_BAD_VER. */
|
80
|
+
const SSL_OP_CISCO_ANYCONNECT: number;
|
81
|
+
/** Instructs OpenSSL to turn on cookie exchange. */
|
82
|
+
const SSL_OP_COOKIE_EXCHANGE: number;
|
83
|
+
/** Instructs OpenSSL to add server-hello extension from an early version of the cryptopro draft. */
|
84
|
+
const SSL_OP_CRYPTOPRO_TLSEXT_BUG: number;
|
85
|
+
/** Instructs OpenSSL to disable a SSL 3.0/TLS 1.0 vulnerability workaround added in OpenSSL 0.9.6d. */
|
86
|
+
const SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS: number;
|
87
|
+
/** Instructs OpenSSL to always use the tmp_rsa key when performing RSA operations. */
|
88
|
+
const SSL_OP_EPHEMERAL_RSA: number;
|
89
|
+
/** Allows initial connection to servers that do not support RI. */
|
90
|
+
const SSL_OP_LEGACY_SERVER_CONNECT: number;
|
91
|
+
const SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER: number;
|
92
|
+
const SSL_OP_MICROSOFT_SESS_ID_BUG: number;
|
93
|
+
/** Instructs OpenSSL to disable the workaround for a man-in-the-middle protocol-version vulnerability in the SSL 2.0 server implementation. */
|
94
|
+
const SSL_OP_MSIE_SSLV2_RSA_PADDING: number;
|
95
|
+
const SSL_OP_NETSCAPE_CA_DN_BUG: number;
|
96
|
+
const SSL_OP_NETSCAPE_CHALLENGE_BUG: number;
|
97
|
+
const SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG: number;
|
98
|
+
const SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG: number;
|
99
|
+
/** Instructs OpenSSL to disable support for SSL/TLS compression. */
|
100
|
+
const SSL_OP_NO_COMPRESSION: number;
|
101
|
+
const SSL_OP_NO_QUERY_MTU: number;
|
102
|
+
/** Instructs OpenSSL to always start a new session when performing renegotiation. */
|
103
|
+
const SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION: number;
|
104
|
+
const SSL_OP_NO_SSLv2: number;
|
105
|
+
const SSL_OP_NO_SSLv3: number;
|
106
|
+
const SSL_OP_NO_TICKET: number;
|
107
|
+
const SSL_OP_NO_TLSv1: number;
|
108
|
+
const SSL_OP_NO_TLSv1_1: number;
|
109
|
+
const SSL_OP_NO_TLSv1_2: number;
|
110
|
+
const SSL_OP_PKCS1_CHECK_1: number;
|
111
|
+
const SSL_OP_PKCS1_CHECK_2: number;
|
112
|
+
/** Instructs OpenSSL to always create a new key when using temporary/ephemeral DH parameters. */
|
113
|
+
const SSL_OP_SINGLE_DH_USE: number;
|
114
|
+
/** Instructs OpenSSL to always create a new key when using temporary/ephemeral ECDH parameters. */
|
115
|
+
const SSL_OP_SINGLE_ECDH_USE: number;
|
116
|
+
const SSL_OP_SSLEAY_080_CLIENT_DH_BUG: number;
|
117
|
+
const SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG: number;
|
118
|
+
const SSL_OP_TLS_BLOCK_PADDING_BUG: number;
|
119
|
+
const SSL_OP_TLS_D5_BUG: number;
|
120
|
+
/** Instructs OpenSSL to disable version rollback attack detection. */
|
121
|
+
const SSL_OP_TLS_ROLLBACK_BUG: number;
|
122
|
+
const ENGINE_METHOD_RSA: number;
|
123
|
+
const ENGINE_METHOD_DSA: number;
|
124
|
+
const ENGINE_METHOD_DH: number;
|
125
|
+
const ENGINE_METHOD_RAND: number;
|
126
|
+
const ENGINE_METHOD_EC: number;
|
127
|
+
const ENGINE_METHOD_CIPHERS: number;
|
128
|
+
const ENGINE_METHOD_DIGESTS: number;
|
129
|
+
const ENGINE_METHOD_PKEY_METHS: number;
|
130
|
+
const ENGINE_METHOD_PKEY_ASN1_METHS: number;
|
131
|
+
const ENGINE_METHOD_ALL: number;
|
132
|
+
const ENGINE_METHOD_NONE: number;
|
133
|
+
const DH_CHECK_P_NOT_SAFE_PRIME: number;
|
134
|
+
const DH_CHECK_P_NOT_PRIME: number;
|
135
|
+
const DH_UNABLE_TO_CHECK_GENERATOR: number;
|
136
|
+
const DH_NOT_SUITABLE_GENERATOR: number;
|
137
|
+
const ALPN_ENABLED: number;
|
138
|
+
const RSA_PKCS1_PADDING: number;
|
139
|
+
const RSA_SSLV23_PADDING: number;
|
140
|
+
const RSA_NO_PADDING: number;
|
141
|
+
const RSA_PKCS1_OAEP_PADDING: number;
|
142
|
+
const RSA_X931_PADDING: number;
|
143
|
+
const RSA_PKCS1_PSS_PADDING: number;
|
144
|
+
/** Sets the salt length for RSA_PKCS1_PSS_PADDING to the digest size when signing or verifying. */
|
145
|
+
const RSA_PSS_SALTLEN_DIGEST: number;
|
146
|
+
/** Sets the salt length for RSA_PKCS1_PSS_PADDING to the maximum permissible value when signing data. */
|
147
|
+
const RSA_PSS_SALTLEN_MAX_SIGN: number;
|
148
|
+
/** Causes the salt length for RSA_PKCS1_PSS_PADDING to be determined automatically when verifying a signature. */
|
149
|
+
const RSA_PSS_SALTLEN_AUTO: number;
|
150
|
+
const POINT_CONVERSION_COMPRESSED: number;
|
151
|
+
const POINT_CONVERSION_UNCOMPRESSED: number;
|
152
|
+
const POINT_CONVERSION_HYBRID: number;
|
153
|
+
/** Specifies the built-in default cipher list used by Node.js (colon-separated values). */
|
154
|
+
const defaultCoreCipherList: string;
|
155
|
+
/** Specifies the active default cipher list used by the current Node.js process (colon-separated values). */
|
156
|
+
const defaultCipherList: string;
|
157
|
+
}
|
158
|
+
interface HashOptions extends stream.TransformOptions {
|
159
|
+
/**
|
160
|
+
* For XOF hash functions such as `shake256`, the
|
161
|
+
* outputLength option can be used to specify the desired output length in bytes.
|
162
|
+
*/
|
163
|
+
outputLength?: number | undefined;
|
164
|
+
}
|
165
|
+
/** @deprecated since v10.0.0 */
|
166
|
+
const fips: boolean;
|
167
|
+
/**
|
168
|
+
* Creates and returns a `Hash` object that can be used to generate hash digests
|
169
|
+
* using the given `algorithm`. Optional `options` argument controls stream
|
170
|
+
* behavior. For XOF hash functions such as `'shake256'`, the `outputLength` option
|
171
|
+
* can be used to specify the desired output length in bytes.
|
172
|
+
*
|
173
|
+
* The `algorithm` is dependent on the available algorithms supported by the
|
174
|
+
* version of OpenSSL on the platform. Examples are `'sha256'`, `'sha512'`, etc.
|
175
|
+
* On recent releases of OpenSSL, `openssl list -digest-algorithms`(`openssl list-message-digest-algorithms` for older versions of OpenSSL) will
|
176
|
+
* display the available digest algorithms.
|
177
|
+
*
|
178
|
+
* Example: generating the sha256 sum of a file
|
179
|
+
*
|
180
|
+
* ```js
|
181
|
+
* import {
|
182
|
+
* createReadStream
|
183
|
+
* } from 'fs';
|
184
|
+
* import { argv } from 'process';
|
185
|
+
* const {
|
186
|
+
* createHash
|
187
|
+
* } = await import('crypto');
|
188
|
+
*
|
189
|
+
* const filename = argv[2];
|
190
|
+
*
|
191
|
+
* const hash = createHash('sha256');
|
192
|
+
*
|
193
|
+
* const input = createReadStream(filename);
|
194
|
+
* input.on('readable', () => {
|
195
|
+
* // Only one element is going to be produced by the
|
196
|
+
* // hash stream.
|
197
|
+
* const data = input.read();
|
198
|
+
* if (data)
|
199
|
+
* hash.update(data);
|
200
|
+
* else {
|
201
|
+
* console.log(`${hash.digest('hex')} ${filename}`);
|
202
|
+
* }
|
203
|
+
* });
|
204
|
+
* ```
|
205
|
+
* @since v0.1.92
|
206
|
+
* @param options `stream.transform` options
|
207
|
+
*/
|
208
|
+
function createHash(algorithm: string, options?: HashOptions): Hash;
|
209
|
+
/**
|
210
|
+
* Creates and returns an `Hmac` object that uses the given `algorithm` and `key`.
|
211
|
+
* Optional `options` argument controls stream behavior.
|
212
|
+
*
|
213
|
+
* The `algorithm` is dependent on the available algorithms supported by the
|
214
|
+
* version of OpenSSL on the platform. Examples are `'sha256'`, `'sha512'`, etc.
|
215
|
+
* On recent releases of OpenSSL, `openssl list -digest-algorithms`(`openssl list-message-digest-algorithms` for older versions of OpenSSL) will
|
216
|
+
* display the available digest algorithms.
|
217
|
+
*
|
218
|
+
* The `key` is the HMAC key used to generate the cryptographic HMAC hash. If it is
|
219
|
+
* a `KeyObject`, its type must be `secret`.
|
220
|
+
*
|
221
|
+
* Example: generating the sha256 HMAC of a file
|
222
|
+
*
|
223
|
+
* ```js
|
224
|
+
* import {
|
225
|
+
* createReadStream
|
226
|
+
* } from 'fs';
|
227
|
+
* import { argv } from 'process';
|
228
|
+
* const {
|
229
|
+
* createHmac
|
230
|
+
* } = await import('crypto');
|
231
|
+
*
|
232
|
+
* const filename = argv[2];
|
233
|
+
*
|
234
|
+
* const hmac = createHmac('sha256', 'a secret');
|
235
|
+
*
|
236
|
+
* const input = createReadStream(filename);
|
237
|
+
* input.on('readable', () => {
|
238
|
+
* // Only one element is going to be produced by the
|
239
|
+
* // hash stream.
|
240
|
+
* const data = input.read();
|
241
|
+
* if (data)
|
242
|
+
* hmac.update(data);
|
243
|
+
* else {
|
244
|
+
* console.log(`${hmac.digest('hex')} ${filename}`);
|
245
|
+
* }
|
246
|
+
* });
|
247
|
+
* ```
|
248
|
+
* @since v0.1.94
|
249
|
+
* @param options `stream.transform` options
|
250
|
+
*/
|
251
|
+
function createHmac(algorithm: string, key: BinaryLike | KeyObject, options?: stream.TransformOptions): Hmac;
|
252
|
+
// https://nodejs.org/api/buffer.html#buffer_buffers_and_character_encodings
|
253
|
+
type BinaryToTextEncoding = 'base64' | 'base64url' | 'hex' | 'binary';
|
254
|
+
type CharacterEncoding = 'utf8' | 'utf-8' | 'utf16le' | 'latin1';
|
255
|
+
type LegacyCharacterEncoding = 'ascii' | 'binary' | 'ucs2' | 'ucs-2';
|
256
|
+
type Encoding = BinaryToTextEncoding | CharacterEncoding | LegacyCharacterEncoding;
|
257
|
+
type ECDHKeyFormat = 'compressed' | 'uncompressed' | 'hybrid';
|
258
|
+
/**
|
259
|
+
* The `Hash` class is a utility for creating hash digests of data. It can be
|
260
|
+
* used in one of two ways:
|
261
|
+
*
|
262
|
+
* * As a `stream` that is both readable and writable, where data is written
|
263
|
+
* to produce a computed hash digest on the readable side, or
|
264
|
+
* * Using the `hash.update()` and `hash.digest()` methods to produce the
|
265
|
+
* computed hash.
|
266
|
+
*
|
267
|
+
* The {@link createHash} method is used to create `Hash` instances. `Hash`objects are not to be created directly using the `new` keyword.
|
268
|
+
*
|
269
|
+
* Example: Using `Hash` objects as streams:
|
270
|
+
*
|
271
|
+
* ```js
|
272
|
+
* const {
|
273
|
+
* createHash
|
274
|
+
* } = await import('crypto');
|
275
|
+
*
|
276
|
+
* const hash = createHash('sha256');
|
277
|
+
*
|
278
|
+
* hash.on('readable', () => {
|
279
|
+
* // Only one element is going to be produced by the
|
280
|
+
* // hash stream.
|
281
|
+
* const data = hash.read();
|
282
|
+
* if (data) {
|
283
|
+
* console.log(data.toString('hex'));
|
284
|
+
* // Prints:
|
285
|
+
* // 6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50
|
286
|
+
* }
|
287
|
+
* });
|
288
|
+
*
|
289
|
+
* hash.write('some data to hash');
|
290
|
+
* hash.end();
|
291
|
+
* ```
|
292
|
+
*
|
293
|
+
* Example: Using `Hash` and piped streams:
|
294
|
+
*
|
295
|
+
* ```js
|
296
|
+
* import { createReadStream } from 'fs';
|
297
|
+
* import { stdout } from 'process';
|
298
|
+
* const { createHash } = await import('crypto');
|
299
|
+
*
|
300
|
+
* const hash = createHash('sha256');
|
301
|
+
*
|
302
|
+
* const input = createReadStream('test.js');
|
303
|
+
* input.pipe(hash).setEncoding('hex').pipe(stdout);
|
304
|
+
* ```
|
305
|
+
*
|
306
|
+
* Example: Using the `hash.update()` and `hash.digest()` methods:
|
307
|
+
*
|
308
|
+
* ```js
|
309
|
+
* const {
|
310
|
+
* createHash
|
311
|
+
* } = await import('crypto');
|
312
|
+
*
|
313
|
+
* const hash = createHash('sha256');
|
314
|
+
*
|
315
|
+
* hash.update('some data to hash');
|
316
|
+
* console.log(hash.digest('hex'));
|
317
|
+
* // Prints:
|
318
|
+
* // 6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50
|
319
|
+
* ```
|
320
|
+
* @since v0.1.92
|
321
|
+
*/
|
322
|
+
class Hash extends stream.Transform {
|
323
|
+
private constructor();
|
324
|
+
/**
|
325
|
+
* Creates a new `Hash` object that contains a deep copy of the internal state
|
326
|
+
* of the current `Hash` object.
|
327
|
+
*
|
328
|
+
* The optional `options` argument controls stream behavior. For XOF hash
|
329
|
+
* functions such as `'shake256'`, the `outputLength` option can be used to
|
330
|
+
* specify the desired output length in bytes.
|
331
|
+
*
|
332
|
+
* An error is thrown when an attempt is made to copy the `Hash` object after
|
333
|
+
* its `hash.digest()` method has been called.
|
334
|
+
*
|
335
|
+
* ```js
|
336
|
+
* // Calculate a rolling hash.
|
337
|
+
* const {
|
338
|
+
* createHash
|
339
|
+
* } = await import('crypto');
|
340
|
+
*
|
341
|
+
* const hash = createHash('sha256');
|
342
|
+
*
|
343
|
+
* hash.update('one');
|
344
|
+
* console.log(hash.copy().digest('hex'));
|
345
|
+
*
|
346
|
+
* hash.update('two');
|
347
|
+
* console.log(hash.copy().digest('hex'));
|
348
|
+
*
|
349
|
+
* hash.update('three');
|
350
|
+
* console.log(hash.copy().digest('hex'));
|
351
|
+
*
|
352
|
+
* // Etc.
|
353
|
+
* ```
|
354
|
+
* @since v13.1.0
|
355
|
+
* @param options `stream.transform` options
|
356
|
+
*/
|
357
|
+
copy(options?: stream.TransformOptions): Hash;
|
358
|
+
/**
|
359
|
+
* Updates the hash content with the given `data`, the encoding of which
|
360
|
+
* is given in `inputEncoding`.
|
361
|
+
* If `encoding` is not provided, and the `data` is a string, an
|
362
|
+
* encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or`DataView`, then `inputEncoding` is ignored.
|
363
|
+
*
|
364
|
+
* This can be called many times with new data as it is streamed.
|
365
|
+
* @since v0.1.92
|
366
|
+
* @param inputEncoding The `encoding` of the `data` string.
|
367
|
+
*/
|
368
|
+
update(data: BinaryLike): Hash;
|
369
|
+
update(data: string, inputEncoding: Encoding): Hash;
|
370
|
+
/**
|
371
|
+
* Calculates the digest of all of the data passed to be hashed (using the `hash.update()` method).
|
372
|
+
* If `encoding` is provided a string will be returned; otherwise
|
373
|
+
* a `Buffer` is returned.
|
374
|
+
*
|
375
|
+
* The `Hash` object can not be used again after `hash.digest()` method has been
|
376
|
+
* called. Multiple calls will cause an error to be thrown.
|
377
|
+
* @since v0.1.92
|
378
|
+
* @param encoding The `encoding` of the return value.
|
379
|
+
*/
|
380
|
+
digest(): Buffer;
|
381
|
+
digest(encoding: BinaryToTextEncoding): string;
|
382
|
+
}
|
383
|
+
/**
|
384
|
+
* The `Hmac` class is a utility for creating cryptographic HMAC digests. It can
|
385
|
+
* be used in one of two ways:
|
386
|
+
*
|
387
|
+
* * As a `stream` that is both readable and writable, where data is written
|
388
|
+
* to produce a computed HMAC digest on the readable side, or
|
389
|
+
* * Using the `hmac.update()` and `hmac.digest()` methods to produce the
|
390
|
+
* computed HMAC digest.
|
391
|
+
*
|
392
|
+
* The {@link createHmac} method is used to create `Hmac` instances. `Hmac`objects are not to be created directly using the `new` keyword.
|
393
|
+
*
|
394
|
+
* Example: Using `Hmac` objects as streams:
|
395
|
+
*
|
396
|
+
* ```js
|
397
|
+
* const {
|
398
|
+
* createHmac
|
399
|
+
* } = await import('crypto');
|
400
|
+
*
|
401
|
+
* const hmac = createHmac('sha256', 'a secret');
|
402
|
+
*
|
403
|
+
* hmac.on('readable', () => {
|
404
|
+
* // Only one element is going to be produced by the
|
405
|
+
* // hash stream.
|
406
|
+
* const data = hmac.read();
|
407
|
+
* if (data) {
|
408
|
+
* console.log(data.toString('hex'));
|
409
|
+
* // Prints:
|
410
|
+
* // 7fd04df92f636fd450bc841c9418e5825c17f33ad9c87c518115a45971f7f77e
|
411
|
+
* }
|
412
|
+
* });
|
413
|
+
*
|
414
|
+
* hmac.write('some data to hash');
|
415
|
+
* hmac.end();
|
416
|
+
* ```
|
417
|
+
*
|
418
|
+
* Example: Using `Hmac` and piped streams:
|
419
|
+
*
|
420
|
+
* ```js
|
421
|
+
* import { createReadStream } from 'fs';
|
422
|
+
* import { stdout } from 'process';
|
423
|
+
* const {
|
424
|
+
* createHmac
|
425
|
+
* } = await import('crypto');
|
426
|
+
*
|
427
|
+
* const hmac = createHmac('sha256', 'a secret');
|
428
|
+
*
|
429
|
+
* const input = createReadStream('test.js');
|
430
|
+
* input.pipe(hmac).pipe(stdout);
|
431
|
+
* ```
|
432
|
+
*
|
433
|
+
* Example: Using the `hmac.update()` and `hmac.digest()` methods:
|
434
|
+
*
|
435
|
+
* ```js
|
436
|
+
* const {
|
437
|
+
* createHmac
|
438
|
+
* } = await import('crypto');
|
439
|
+
*
|
440
|
+
* const hmac = createHmac('sha256', 'a secret');
|
441
|
+
*
|
442
|
+
* hmac.update('some data to hash');
|
443
|
+
* console.log(hmac.digest('hex'));
|
444
|
+
* // Prints:
|
445
|
+
* // 7fd04df92f636fd450bc841c9418e5825c17f33ad9c87c518115a45971f7f77e
|
446
|
+
* ```
|
447
|
+
* @since v0.1.94
|
448
|
+
*/
|
449
|
+
class Hmac extends stream.Transform {
|
450
|
+
private constructor();
|
451
|
+
/**
|
452
|
+
* Updates the `Hmac` content with the given `data`, the encoding of which
|
453
|
+
* is given in `inputEncoding`.
|
454
|
+
* If `encoding` is not provided, and the `data` is a string, an
|
455
|
+
* encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or`DataView`, then `inputEncoding` is ignored.
|
456
|
+
*
|
457
|
+
* This can be called many times with new data as it is streamed.
|
458
|
+
* @since v0.1.94
|
459
|
+
* @param inputEncoding The `encoding` of the `data` string.
|
460
|
+
*/
|
461
|
+
update(data: BinaryLike): Hmac;
|
462
|
+
update(data: string, inputEncoding: Encoding): Hmac;
|
463
|
+
/**
|
464
|
+
* Calculates the HMAC digest of all of the data passed using `hmac.update()`.
|
465
|
+
* If `encoding` is
|
466
|
+
* provided a string is returned; otherwise a `Buffer` is returned;
|
467
|
+
*
|
468
|
+
* The `Hmac` object can not be used again after `hmac.digest()` has been
|
469
|
+
* called. Multiple calls to `hmac.digest()` will result in an error being thrown.
|
470
|
+
* @since v0.1.94
|
471
|
+
* @param encoding The `encoding` of the return value.
|
472
|
+
*/
|
473
|
+
digest(): Buffer;
|
474
|
+
digest(encoding: BinaryToTextEncoding): string;
|
475
|
+
}
|
476
|
+
type KeyObjectType = 'secret' | 'public' | 'private';
|
477
|
+
interface KeyExportOptions<T extends KeyFormat> {
|
478
|
+
type: 'pkcs1' | 'spki' | 'pkcs8' | 'sec1';
|
479
|
+
format: T;
|
480
|
+
cipher?: string | undefined;
|
481
|
+
passphrase?: string | Buffer | undefined;
|
482
|
+
}
|
483
|
+
interface JwkKeyExportOptions {
|
484
|
+
format: 'jwk';
|
485
|
+
}
|
486
|
+
interface JsonWebKey {
|
487
|
+
crv?: string | undefined;
|
488
|
+
d?: string | undefined;
|
489
|
+
dp?: string | undefined;
|
490
|
+
dq?: string | undefined;
|
491
|
+
e?: string | undefined;
|
492
|
+
k?: string | undefined;
|
493
|
+
kty?: string | undefined;
|
494
|
+
n?: string | undefined;
|
495
|
+
p?: string | undefined;
|
496
|
+
q?: string | undefined;
|
497
|
+
qi?: string | undefined;
|
498
|
+
x?: string | undefined;
|
499
|
+
y?: string | undefined;
|
500
|
+
[key: string]: unknown;
|
501
|
+
}
|
502
|
+
interface AsymmetricKeyDetails {
|
503
|
+
/**
|
504
|
+
* Key size in bits (RSA, DSA).
|
505
|
+
*/
|
506
|
+
modulusLength?: number | undefined;
|
507
|
+
/**
|
508
|
+
* Public exponent (RSA).
|
509
|
+
*/
|
510
|
+
publicExponent?: bigint | undefined;
|
511
|
+
/**
|
512
|
+
* Name of the message digest (RSA-PSS).
|
513
|
+
*/
|
514
|
+
hashAlgorithm?: string | undefined;
|
515
|
+
/**
|
516
|
+
* Name of the message digest used by MGF1 (RSA-PSS).
|
517
|
+
*/
|
518
|
+
mgf1HashAlgorithm?: string | undefined;
|
519
|
+
/**
|
520
|
+
* Minimal salt length in bytes (RSA-PSS).
|
521
|
+
*/
|
522
|
+
saltLength?: number | undefined;
|
523
|
+
/**
|
524
|
+
* Size of q in bits (DSA).
|
525
|
+
*/
|
526
|
+
divisorLength?: number | undefined;
|
527
|
+
/**
|
528
|
+
* Name of the curve (EC).
|
529
|
+
*/
|
530
|
+
namedCurve?: string | undefined;
|
531
|
+
}
|
532
|
+
interface JwkKeyExportOptions {
|
533
|
+
format: 'jwk';
|
534
|
+
}
|
535
|
+
/**
|
536
|
+
* Node.js uses a `KeyObject` class to represent a symmetric or asymmetric key,
|
537
|
+
* and each kind of key exposes different functions. The {@link createSecretKey}, {@link createPublicKey} and {@link createPrivateKey} methods are used to create `KeyObject`instances. `KeyObject`
|
538
|
+
* objects are not to be created directly using the `new`keyword.
|
539
|
+
*
|
540
|
+
* Most applications should consider using the new `KeyObject` API instead of
|
541
|
+
* passing keys as strings or `Buffer`s due to improved security features.
|
542
|
+
*
|
543
|
+
* `KeyObject` instances can be passed to other threads via `postMessage()`.
|
544
|
+
* The receiver obtains a cloned `KeyObject`, and the `KeyObject` does not need to
|
545
|
+
* be listed in the `transferList` argument.
|
546
|
+
* @since v11.6.0
|
547
|
+
*/
|
548
|
+
class KeyObject {
|
549
|
+
private constructor();
|
550
|
+
/**
|
551
|
+
* Example: Converting a `CryptoKey` instance to a `KeyObject`:
|
552
|
+
*
|
553
|
+
* ```js
|
554
|
+
* const { webcrypto, KeyObject } = await import('crypto');
|
555
|
+
* const { subtle } = webcrypto;
|
556
|
+
*
|
557
|
+
* const key = await subtle.generateKey({
|
558
|
+
* name: 'HMAC',
|
559
|
+
* hash: 'SHA-256',
|
560
|
+
* length: 256
|
561
|
+
* }, true, ['sign', 'verify']);
|
562
|
+
*
|
563
|
+
* const keyObject = KeyObject.from(key);
|
564
|
+
* console.log(keyObject.symmetricKeySize);
|
565
|
+
* // Prints: 32 (symmetric key size in bytes)
|
566
|
+
* ```
|
567
|
+
* @since v15.0.0
|
568
|
+
*/
|
569
|
+
static from(key: webcrypto.CryptoKey): KeyObject;
|
570
|
+
/**
|
571
|
+
* For asymmetric keys, this property represents the type of the key. Supported key
|
572
|
+
* types are:
|
573
|
+
*
|
574
|
+
* * `'rsa'` (OID 1.2.840.113549.1.1.1)
|
575
|
+
* * `'rsa-pss'` (OID 1.2.840.113549.1.1.10)
|
576
|
+
* * `'dsa'` (OID 1.2.840.10040.4.1)
|
577
|
+
* * `'ec'` (OID 1.2.840.10045.2.1)
|
578
|
+
* * `'x25519'` (OID 1.3.101.110)
|
579
|
+
* * `'x448'` (OID 1.3.101.111)
|
580
|
+
* * `'ed25519'` (OID 1.3.101.112)
|
581
|
+
* * `'ed448'` (OID 1.3.101.113)
|
582
|
+
* * `'dh'` (OID 1.2.840.113549.1.3.1)
|
583
|
+
*
|
584
|
+
* This property is `undefined` for unrecognized `KeyObject` types and symmetric
|
585
|
+
* keys.
|
586
|
+
* @since v11.6.0
|
587
|
+
*/
|
588
|
+
asymmetricKeyType?: KeyType | undefined;
|
589
|
+
/**
|
590
|
+
* For asymmetric keys, this property represents the size of the embedded key in
|
591
|
+
* bytes. This property is `undefined` for symmetric keys.
|
592
|
+
*/
|
593
|
+
asymmetricKeySize?: number | undefined;
|
594
|
+
/**
|
595
|
+
* This property exists only on asymmetric keys. Depending on the type of the key,
|
596
|
+
* this object contains information about the key. None of the information obtained
|
597
|
+
* through this property can be used to uniquely identify a key or to compromise
|
598
|
+
* the security of the key.
|
599
|
+
*
|
600
|
+
* For RSA-PSS keys, if the key material contains a `RSASSA-PSS-params` sequence,
|
601
|
+
* the `hashAlgorithm`, `mgf1HashAlgorithm`, and `saltLength` properties will be
|
602
|
+
* set.
|
603
|
+
*
|
604
|
+
* Other key details might be exposed via this API using additional attributes.
|
605
|
+
* @since v15.7.0
|
606
|
+
*/
|
607
|
+
asymmetricKeyDetails?: AsymmetricKeyDetails | undefined;
|
608
|
+
/**
|
609
|
+
* For symmetric keys, the following encoding options can be used:
|
610
|
+
*
|
611
|
+
* For public keys, the following encoding options can be used:
|
612
|
+
*
|
613
|
+
* For private keys, the following encoding options can be used:
|
614
|
+
*
|
615
|
+
* The result type depends on the selected encoding format, when PEM the
|
616
|
+
* result is a string, when DER it will be a buffer containing the data
|
617
|
+
* encoded as DER, when [JWK](https://tools.ietf.org/html/rfc7517) it will be an object.
|
618
|
+
*
|
619
|
+
* When [JWK](https://tools.ietf.org/html/rfc7517) encoding format was selected, all other encoding options are
|
620
|
+
* ignored.
|
621
|
+
*
|
622
|
+
* PKCS#1, SEC1, and PKCS#8 type keys can be encrypted by using a combination of
|
623
|
+
* the `cipher` and `format` options. The PKCS#8 `type` can be used with any`format` to encrypt any key algorithm (RSA, EC, or DH) by specifying a`cipher`. PKCS#1 and SEC1 can only be
|
624
|
+
* encrypted by specifying a `cipher`when the PEM `format` is used. For maximum compatibility, use PKCS#8 for
|
625
|
+
* encrypted private keys. Since PKCS#8 defines its own
|
626
|
+
* encryption mechanism, PEM-level encryption is not supported when encrypting
|
627
|
+
* a PKCS#8 key. See [RFC 5208](https://www.rfc-editor.org/rfc/rfc5208.txt) for PKCS#8 encryption and [RFC 1421](https://www.rfc-editor.org/rfc/rfc1421.txt) for
|
628
|
+
* PKCS#1 and SEC1 encryption.
|
629
|
+
* @since v11.6.0
|
630
|
+
*/
|
631
|
+
export(options: KeyExportOptions<'pem'>): string | Buffer;
|
632
|
+
export(options?: KeyExportOptions<'der'>): Buffer;
|
633
|
+
export(options?: JwkKeyExportOptions): JsonWebKey;
|
634
|
+
/**
|
635
|
+
* For secret keys, this property represents the size of the key in bytes. This
|
636
|
+
* property is `undefined` for asymmetric keys.
|
637
|
+
* @since v11.6.0
|
638
|
+
*/
|
639
|
+
symmetricKeySize?: number | undefined;
|
640
|
+
/**
|
641
|
+
* Depending on the type of this `KeyObject`, this property is either`'secret'` for secret (symmetric) keys, `'public'` for public (asymmetric) keys
|
642
|
+
* or `'private'` for private (asymmetric) keys.
|
643
|
+
* @since v11.6.0
|
644
|
+
*/
|
645
|
+
type: KeyObjectType;
|
646
|
+
}
|
647
|
+
type CipherCCMTypes = 'aes-128-ccm' | 'aes-192-ccm' | 'aes-256-ccm' | 'chacha20-poly1305';
|
648
|
+
type CipherGCMTypes = 'aes-128-gcm' | 'aes-192-gcm' | 'aes-256-gcm';
|
649
|
+
type BinaryLike = string | NodeJS.ArrayBufferView;
|
650
|
+
type CipherKey = BinaryLike | KeyObject;
|
651
|
+
interface CipherCCMOptions extends stream.TransformOptions {
|
652
|
+
authTagLength: number;
|
653
|
+
}
|
654
|
+
interface CipherGCMOptions extends stream.TransformOptions {
|
655
|
+
authTagLength?: number | undefined;
|
656
|
+
}
|
657
|
+
/**
|
658
|
+
* Creates and returns a `Cipher` object that uses the given `algorithm` and`password`.
|
659
|
+
*
|
660
|
+
* The `options` argument controls stream behavior and is optional except when a
|
661
|
+
* cipher in CCM or OCB mode is used (e.g. `'aes-128-ccm'`). In that case, the`authTagLength` option is required and specifies the length of the
|
662
|
+
* authentication tag in bytes, see `CCM mode`. In GCM mode, the `authTagLength`option is not required but can be used to set the length of the authentication
|
663
|
+
* tag that will be returned by `getAuthTag()` and defaults to 16 bytes.
|
664
|
+
*
|
665
|
+
* The `algorithm` is dependent on OpenSSL, examples are `'aes192'`, etc. On
|
666
|
+
* recent OpenSSL releases, `openssl list -cipher-algorithms`(`openssl list-cipher-algorithms` for older versions of OpenSSL) will
|
667
|
+
* display the available cipher algorithms.
|
668
|
+
*
|
669
|
+
* The `password` is used to derive the cipher key and initialization vector (IV).
|
670
|
+
* The value must be either a `'latin1'` encoded string, a `Buffer`, a`TypedArray`, or a `DataView`.
|
671
|
+
*
|
672
|
+
* The implementation of `crypto.createCipher()` derives keys using the OpenSSL
|
673
|
+
* function [`EVP_BytesToKey`](https://www.openssl.org/docs/man1.1.0/crypto/EVP_BytesToKey.html) with the digest algorithm set to MD5, one
|
674
|
+
* iteration, and no salt. The lack of salt allows dictionary attacks as the same
|
675
|
+
* password always creates the same key. The low iteration count and
|
676
|
+
* non-cryptographically secure hash algorithm allow passwords to be tested very
|
677
|
+
* rapidly.
|
678
|
+
*
|
679
|
+
* In line with OpenSSL's recommendation to use a more modern algorithm instead of [`EVP_BytesToKey`](https://www.openssl.org/docs/man1.1.0/crypto/EVP_BytesToKey.html) it is recommended that
|
680
|
+
* developers derive a key and IV on
|
681
|
+
* their own using {@link scrypt} and to use {@link createCipheriv} to create the `Cipher` object. Users should not use ciphers with counter mode
|
682
|
+
* (e.g. CTR, GCM, or CCM) in `crypto.createCipher()`. A warning is emitted when
|
683
|
+
* they are used in order to avoid the risk of IV reuse that causes
|
684
|
+
* vulnerabilities. For the case when IV is reused in GCM, see [Nonce-Disrespecting Adversaries](https://github.com/nonce-disrespect/nonce-disrespect) for details.
|
685
|
+
* @since v0.1.94
|
686
|
+
* @deprecated Since v10.0.0 - Use {@link createCipheriv} instead.
|
687
|
+
* @param options `stream.transform` options
|
688
|
+
*/
|
689
|
+
function createCipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): CipherCCM;
|
690
|
+
/** @deprecated since v10.0.0 use `createCipheriv()` */
|
691
|
+
function createCipher(algorithm: CipherGCMTypes, password: BinaryLike, options?: CipherGCMOptions): CipherGCM;
|
692
|
+
/** @deprecated since v10.0.0 use `createCipheriv()` */
|
693
|
+
function createCipher(algorithm: string, password: BinaryLike, options?: stream.TransformOptions): Cipher;
|
694
|
+
/**
|
695
|
+
* Creates and returns a `Cipher` object, with the given `algorithm`, `key` and
|
696
|
+
* initialization vector (`iv`).
|
697
|
+
*
|
698
|
+
* The `options` argument controls stream behavior and is optional except when a
|
699
|
+
* cipher in CCM or OCB mode is used (e.g. `'aes-128-ccm'`). In that case, the`authTagLength` option is required and specifies the length of the
|
700
|
+
* authentication tag in bytes, see `CCM mode`. In GCM mode, the `authTagLength`option is not required but can be used to set the length of the authentication
|
701
|
+
* tag that will be returned by `getAuthTag()` and defaults to 16 bytes.
|
702
|
+
*
|
703
|
+
* The `algorithm` is dependent on OpenSSL, examples are `'aes192'`, etc. On
|
704
|
+
* recent OpenSSL releases, `openssl list -cipher-algorithms`(`openssl list-cipher-algorithms` for older versions of OpenSSL) will
|
705
|
+
* display the available cipher algorithms.
|
706
|
+
*
|
707
|
+
* The `key` is the raw key used by the `algorithm` and `iv` is an [initialization vector](https://en.wikipedia.org/wiki/Initialization_vector). Both arguments must be `'utf8'` encoded
|
708
|
+
* strings,`Buffers`, `TypedArray`, or `DataView`s. The `key` may optionally be
|
709
|
+
* a `KeyObject` of type `secret`. If the cipher does not need
|
710
|
+
* an initialization vector, `iv` may be `null`.
|
711
|
+
*
|
712
|
+
* When passing strings for `key` or `iv`, please consider `caveats when using strings as inputs to cryptographic APIs`.
|
713
|
+
*
|
714
|
+
* Initialization vectors should be unpredictable and unique; ideally, they will be
|
715
|
+
* cryptographically random. They do not have to be secret: IVs are typically just
|
716
|
+
* added to ciphertext messages unencrypted. It may sound contradictory that
|
717
|
+
* something has to be unpredictable and unique, but does not have to be secret;
|
718
|
+
* remember that an attacker must not be able to predict ahead of time what a
|
719
|
+
* given IV will be.
|
720
|
+
* @since v0.1.94
|
721
|
+
* @param options `stream.transform` options
|
722
|
+
*/
|
723
|
+
function createCipheriv(algorithm: CipherCCMTypes, key: CipherKey, iv: BinaryLike | null, options: CipherCCMOptions): CipherCCM;
|
724
|
+
function createCipheriv(algorithm: CipherGCMTypes, key: CipherKey, iv: BinaryLike | null, options?: CipherGCMOptions): CipherGCM;
|
725
|
+
function createCipheriv(algorithm: string, key: CipherKey, iv: BinaryLike | null, options?: stream.TransformOptions): Cipher;
|
726
|
+
/**
|
727
|
+
* Instances of the `Cipher` class are used to encrypt data. The class can be
|
728
|
+
* used in one of two ways:
|
729
|
+
*
|
730
|
+
* * As a `stream` that is both readable and writable, where plain unencrypted
|
731
|
+
* data is written to produce encrypted data on the readable side, or
|
732
|
+
* * Using the `cipher.update()` and `cipher.final()` methods to produce
|
733
|
+
* the encrypted data.
|
734
|
+
*
|
735
|
+
* The {@link createCipher} or {@link createCipheriv} methods are
|
736
|
+
* used to create `Cipher` instances. `Cipher` objects are not to be created
|
737
|
+
* directly using the `new` keyword.
|
738
|
+
*
|
739
|
+
* Example: Using `Cipher` objects as streams:
|
740
|
+
*
|
741
|
+
* ```js
|
742
|
+
* const {
|
743
|
+
* scrypt,
|
744
|
+
* randomFill,
|
745
|
+
* createCipheriv
|
746
|
+
* } = await import('crypto');
|
747
|
+
*
|
748
|
+
* const algorithm = 'aes-192-cbc';
|
749
|
+
* const password = 'Password used to generate key';
|
750
|
+
*
|
751
|
+
* // First, we'll generate the key. The key length is dependent on the algorithm.
|
752
|
+
* // In this case for aes192, it is 24 bytes (192 bits).
|
753
|
+
* scrypt(password, 'salt', 24, (err, key) => {
|
754
|
+
* if (err) throw err;
|
755
|
+
* // Then, we'll generate a random initialization vector
|
756
|
+
* randomFill(new Uint8Array(16), (err, iv) => {
|
757
|
+
* if (err) throw err;
|
758
|
+
*
|
759
|
+
* // Once we have the key and iv, we can create and use the cipher...
|
760
|
+
* const cipher = createCipheriv(algorithm, key, iv);
|
761
|
+
*
|
762
|
+
* let encrypted = '';
|
763
|
+
* cipher.setEncoding('hex');
|
764
|
+
*
|
765
|
+
* cipher.on('data', (chunk) => encrypted += chunk);
|
766
|
+
* cipher.on('end', () => console.log(encrypted));
|
767
|
+
*
|
768
|
+
* cipher.write('some clear text data');
|
769
|
+
* cipher.end();
|
770
|
+
* });
|
771
|
+
* });
|
772
|
+
* ```
|
773
|
+
*
|
774
|
+
* Example: Using `Cipher` and piped streams:
|
775
|
+
*
|
776
|
+
* ```js
|
777
|
+
* import {
|
778
|
+
* createReadStream,
|
779
|
+
* createWriteStream,
|
780
|
+
* } from 'fs';
|
781
|
+
*
|
782
|
+
* import {
|
783
|
+
* pipeline
|
784
|
+
* } from 'stream';
|
785
|
+
*
|
786
|
+
* const {
|
787
|
+
* scrypt,
|
788
|
+
* randomFill,
|
789
|
+
* createCipheriv
|
790
|
+
* } = await import('crypto');
|
791
|
+
*
|
792
|
+
* const algorithm = 'aes-192-cbc';
|
793
|
+
* const password = 'Password used to generate key';
|
794
|
+
*
|
795
|
+
* // First, we'll generate the key. The key length is dependent on the algorithm.
|
796
|
+
* // In this case for aes192, it is 24 bytes (192 bits).
|
797
|
+
* scrypt(password, 'salt', 24, (err, key) => {
|
798
|
+
* if (err) throw err;
|
799
|
+
* // Then, we'll generate a random initialization vector
|
800
|
+
* randomFill(new Uint8Array(16), (err, iv) => {
|
801
|
+
* if (err) throw err;
|
802
|
+
*
|
803
|
+
* const cipher = createCipheriv(algorithm, key, iv);
|
804
|
+
*
|
805
|
+
* const input = createReadStream('test.js');
|
806
|
+
* const output = createWriteStream('test.enc');
|
807
|
+
*
|
808
|
+
* pipeline(input, cipher, output, (err) => {
|
809
|
+
* if (err) throw err;
|
810
|
+
* });
|
811
|
+
* });
|
812
|
+
* });
|
813
|
+
* ```
|
814
|
+
*
|
815
|
+
* Example: Using the `cipher.update()` and `cipher.final()` methods:
|
816
|
+
*
|
817
|
+
* ```js
|
818
|
+
* const {
|
819
|
+
* scrypt,
|
820
|
+
* randomFill,
|
821
|
+
* createCipheriv
|
822
|
+
* } = await import('crypto');
|
823
|
+
*
|
824
|
+
* const algorithm = 'aes-192-cbc';
|
825
|
+
* const password = 'Password used to generate key';
|
826
|
+
*
|
827
|
+
* // First, we'll generate the key. The key length is dependent on the algorithm.
|
828
|
+
* // In this case for aes192, it is 24 bytes (192 bits).
|
829
|
+
* scrypt(password, 'salt', 24, (err, key) => {
|
830
|
+
* if (err) throw err;
|
831
|
+
* // Then, we'll generate a random initialization vector
|
832
|
+
* randomFill(new Uint8Array(16), (err, iv) => {
|
833
|
+
* if (err) throw err;
|
834
|
+
*
|
835
|
+
* const cipher = createCipheriv(algorithm, key, iv);
|
836
|
+
*
|
837
|
+
* let encrypted = cipher.update('some clear text data', 'utf8', 'hex');
|
838
|
+
* encrypted += cipher.final('hex');
|
839
|
+
* console.log(encrypted);
|
840
|
+
* });
|
841
|
+
* });
|
842
|
+
* ```
|
843
|
+
* @since v0.1.94
|
844
|
+
*/
|
845
|
+
class Cipher extends stream.Transform {
|
846
|
+
private constructor();
|
847
|
+
/**
|
848
|
+
* Updates the cipher with `data`. If the `inputEncoding` argument is given,
|
849
|
+
* the `data`argument is a string using the specified encoding. If the `inputEncoding`argument is not given, `data` must be a `Buffer`, `TypedArray`, or`DataView`. If `data` is a `Buffer`,
|
850
|
+
* `TypedArray`, or `DataView`, then`inputEncoding` is ignored.
|
851
|
+
*
|
852
|
+
* The `outputEncoding` specifies the output format of the enciphered
|
853
|
+
* data. If the `outputEncoding`is specified, a string using the specified encoding is returned. If no`outputEncoding` is provided, a `Buffer` is returned.
|
854
|
+
*
|
855
|
+
* The `cipher.update()` method can be called multiple times with new data until `cipher.final()` is called. Calling `cipher.update()` after `cipher.final()` will result in an error being
|
856
|
+
* thrown.
|
857
|
+
* @since v0.1.94
|
858
|
+
* @param inputEncoding The `encoding` of the data.
|
859
|
+
* @param outputEncoding The `encoding` of the return value.
|
860
|
+
*/
|
861
|
+
update(data: BinaryLike): Buffer;
|
862
|
+
update(data: string, inputEncoding: Encoding): Buffer;
|
863
|
+
update(data: NodeJS.ArrayBufferView, inputEncoding: undefined, outputEncoding: Encoding): string;
|
864
|
+
update(data: string, inputEncoding: Encoding | undefined, outputEncoding: Encoding): string;
|
865
|
+
/**
|
866
|
+
* Once the `cipher.final()` method has been called, the `Cipher` object can no
|
867
|
+
* longer be used to encrypt data. Attempts to call `cipher.final()` more than
|
868
|
+
* once will result in an error being thrown.
|
869
|
+
* @since v0.1.94
|
870
|
+
* @param outputEncoding The `encoding` of the return value.
|
871
|
+
* @return Any remaining enciphered contents. If `outputEncoding` is specified, a string is returned. If an `outputEncoding` is not provided, a {@link Buffer} is returned.
|
872
|
+
*/
|
873
|
+
final(): Buffer;
|
874
|
+
final(outputEncoding: BufferEncoding): string;
|
875
|
+
/**
|
876
|
+
* When using block encryption algorithms, the `Cipher` class will automatically
|
877
|
+
* add padding to the input data to the appropriate block size. To disable the
|
878
|
+
* default padding call `cipher.setAutoPadding(false)`.
|
879
|
+
*
|
880
|
+
* When `autoPadding` is `false`, the length of the entire input data must be a
|
881
|
+
* multiple of the cipher's block size or `cipher.final()` will throw an error.
|
882
|
+
* Disabling automatic padding is useful for non-standard padding, for instance
|
883
|
+
* using `0x0` instead of PKCS padding.
|
884
|
+
*
|
885
|
+
* The `cipher.setAutoPadding()` method must be called before `cipher.final()`.
|
886
|
+
* @since v0.7.1
|
887
|
+
* @param [autoPadding=true]
|
888
|
+
* @return for method chaining.
|
889
|
+
*/
|
890
|
+
setAutoPadding(autoPadding?: boolean): this;
|
891
|
+
}
|
892
|
+
interface CipherCCM extends Cipher {
|
893
|
+
setAAD(
|
894
|
+
buffer: NodeJS.ArrayBufferView,
|
895
|
+
options: {
|
896
|
+
plaintextLength: number;
|
897
|
+
}
|
898
|
+
): this;
|
899
|
+
getAuthTag(): Buffer;
|
900
|
+
}
|
901
|
+
interface CipherGCM extends Cipher {
|
902
|
+
setAAD(
|
903
|
+
buffer: NodeJS.ArrayBufferView,
|
904
|
+
options?: {
|
905
|
+
plaintextLength: number;
|
906
|
+
}
|
907
|
+
): this;
|
908
|
+
getAuthTag(): Buffer;
|
909
|
+
}
|
910
|
+
/**
|
911
|
+
* Creates and returns a `Decipher` object that uses the given `algorithm` and`password` (key).
|
912
|
+
*
|
913
|
+
* The `options` argument controls stream behavior and is optional except when a
|
914
|
+
* cipher in CCM or OCB mode is used (e.g. `'aes-128-ccm'`). In that case, the`authTagLength` option is required and specifies the length of the
|
915
|
+
* authentication tag in bytes, see `CCM mode`.
|
916
|
+
*
|
917
|
+
* The implementation of `crypto.createDecipher()` derives keys using the OpenSSL
|
918
|
+
* function [`EVP_BytesToKey`](https://www.openssl.org/docs/man1.1.0/crypto/EVP_BytesToKey.html) with the digest algorithm set to MD5, one
|
919
|
+
* iteration, and no salt. The lack of salt allows dictionary attacks as the same
|
920
|
+
* password always creates the same key. The low iteration count and
|
921
|
+
* non-cryptographically secure hash algorithm allow passwords to be tested very
|
922
|
+
* rapidly.
|
923
|
+
*
|
924
|
+
* In line with OpenSSL's recommendation to use a more modern algorithm instead of [`EVP_BytesToKey`](https://www.openssl.org/docs/man1.1.0/crypto/EVP_BytesToKey.html) it is recommended that
|
925
|
+
* developers derive a key and IV on
|
926
|
+
* their own using {@link scrypt} and to use {@link createDecipheriv} to create the `Decipher` object.
|
927
|
+
* @since v0.1.94
|
928
|
+
* @deprecated Since v10.0.0 - Use {@link createDecipheriv} instead.
|
929
|
+
* @param options `stream.transform` options
|
930
|
+
*/
|
931
|
+
function createDecipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): DecipherCCM;
|
932
|
+
/** @deprecated since v10.0.0 use `createDecipheriv()` */
|
933
|
+
function createDecipher(algorithm: CipherGCMTypes, password: BinaryLike, options?: CipherGCMOptions): DecipherGCM;
|
934
|
+
/** @deprecated since v10.0.0 use `createDecipheriv()` */
|
935
|
+
function createDecipher(algorithm: string, password: BinaryLike, options?: stream.TransformOptions): Decipher;
|
936
|
+
/**
|
937
|
+
* Creates and returns a `Decipher` object that uses the given `algorithm`, `key`and initialization vector (`iv`).
|
938
|
+
*
|
939
|
+
* The `options` argument controls stream behavior and is optional except when a
|
940
|
+
* cipher in CCM or OCB mode is used (e.g. `'aes-128-ccm'`). In that case, the`authTagLength` option is required and specifies the length of the
|
941
|
+
* authentication tag in bytes, see `CCM mode`. In GCM mode, the `authTagLength`option is not required but can be used to restrict accepted authentication tags
|
942
|
+
* to those with the specified length.
|
943
|
+
*
|
944
|
+
* The `algorithm` is dependent on OpenSSL, examples are `'aes192'`, etc. On
|
945
|
+
* recent OpenSSL releases, `openssl list -cipher-algorithms`(`openssl list-cipher-algorithms` for older versions of OpenSSL) will
|
946
|
+
* display the available cipher algorithms.
|
947
|
+
*
|
948
|
+
* The `key` is the raw key used by the `algorithm` and `iv` is an [initialization vector](https://en.wikipedia.org/wiki/Initialization_vector). Both arguments must be `'utf8'` encoded
|
949
|
+
* strings,`Buffers`, `TypedArray`, or `DataView`s. The `key` may optionally be
|
950
|
+
* a `KeyObject` of type `secret`. If the cipher does not need
|
951
|
+
* an initialization vector, `iv` may be `null`.
|
952
|
+
*
|
953
|
+
* When passing strings for `key` or `iv`, please consider `caveats when using strings as inputs to cryptographic APIs`.
|
954
|
+
*
|
955
|
+
* Initialization vectors should be unpredictable and unique; ideally, they will be
|
956
|
+
* cryptographically random. They do not have to be secret: IVs are typically just
|
957
|
+
* added to ciphertext messages unencrypted. It may sound contradictory that
|
958
|
+
* something has to be unpredictable and unique, but does not have to be secret;
|
959
|
+
* remember that an attacker must not be able to predict ahead of time what a given
|
960
|
+
* IV will be.
|
961
|
+
* @since v0.1.94
|
962
|
+
* @param options `stream.transform` options
|
963
|
+
*/
|
964
|
+
function createDecipheriv(algorithm: CipherCCMTypes, key: CipherKey, iv: BinaryLike | null, options: CipherCCMOptions): DecipherCCM;
|
965
|
+
function createDecipheriv(algorithm: CipherGCMTypes, key: CipherKey, iv: BinaryLike | null, options?: CipherGCMOptions): DecipherGCM;
|
966
|
+
function createDecipheriv(algorithm: string, key: CipherKey, iv: BinaryLike | null, options?: stream.TransformOptions): Decipher;
|
967
|
+
/**
|
968
|
+
* Instances of the `Decipher` class are used to decrypt data. The class can be
|
969
|
+
* used in one of two ways:
|
970
|
+
*
|
971
|
+
* * As a `stream` that is both readable and writable, where plain encrypted
|
972
|
+
* data is written to produce unencrypted data on the readable side, or
|
973
|
+
* * Using the `decipher.update()` and `decipher.final()` methods to
|
974
|
+
* produce the unencrypted data.
|
975
|
+
*
|
976
|
+
* The {@link createDecipher} or {@link createDecipheriv} methods are
|
977
|
+
* used to create `Decipher` instances. `Decipher` objects are not to be created
|
978
|
+
* directly using the `new` keyword.
|
979
|
+
*
|
980
|
+
* Example: Using `Decipher` objects as streams:
|
981
|
+
*
|
982
|
+
* ```js
|
983
|
+
* import { Buffer } from 'buffer';
|
984
|
+
* const {
|
985
|
+
* scryptSync,
|
986
|
+
* createDecipheriv
|
987
|
+
* } = await import('crypto');
|
988
|
+
*
|
989
|
+
* const algorithm = 'aes-192-cbc';
|
990
|
+
* const password = 'Password used to generate key';
|
991
|
+
* // Key length is dependent on the algorithm. In this case for aes192, it is
|
992
|
+
* // 24 bytes (192 bits).
|
993
|
+
* // Use the async `crypto.scrypt()` instead.
|
994
|
+
* const key = scryptSync(password, 'salt', 24);
|
995
|
+
* // The IV is usually passed along with the ciphertext.
|
996
|
+
* const iv = Buffer.alloc(16, 0); // Initialization vector.
|
997
|
+
*
|
998
|
+
* const decipher = createDecipheriv(algorithm, key, iv);
|
999
|
+
*
|
1000
|
+
* let decrypted = '';
|
1001
|
+
* decipher.on('readable', () => {
|
1002
|
+
* while (null !== (chunk = decipher.read())) {
|
1003
|
+
* decrypted += chunk.toString('utf8');
|
1004
|
+
* }
|
1005
|
+
* });
|
1006
|
+
* decipher.on('end', () => {
|
1007
|
+
* console.log(decrypted);
|
1008
|
+
* // Prints: some clear text data
|
1009
|
+
* });
|
1010
|
+
*
|
1011
|
+
* // Encrypted with same algorithm, key and iv.
|
1012
|
+
* const encrypted =
|
1013
|
+
* 'e5f79c5915c02171eec6b212d5520d44480993d7d622a7c4c2da32f6efda0ffa';
|
1014
|
+
* decipher.write(encrypted, 'hex');
|
1015
|
+
* decipher.end();
|
1016
|
+
* ```
|
1017
|
+
*
|
1018
|
+
* Example: Using `Decipher` and piped streams:
|
1019
|
+
*
|
1020
|
+
* ```js
|
1021
|
+
* import {
|
1022
|
+
* createReadStream,
|
1023
|
+
* createWriteStream,
|
1024
|
+
* } from 'fs';
|
1025
|
+
* import { Buffer } from 'buffer';
|
1026
|
+
* const {
|
1027
|
+
* scryptSync,
|
1028
|
+
* createDecipheriv
|
1029
|
+
* } = await import('crypto');
|
1030
|
+
*
|
1031
|
+
* const algorithm = 'aes-192-cbc';
|
1032
|
+
* const password = 'Password used to generate key';
|
1033
|
+
* // Use the async `crypto.scrypt()` instead.
|
1034
|
+
* const key = scryptSync(password, 'salt', 24);
|
1035
|
+
* // The IV is usually passed along with the ciphertext.
|
1036
|
+
* const iv = Buffer.alloc(16, 0); // Initialization vector.
|
1037
|
+
*
|
1038
|
+
* const decipher = createDecipheriv(algorithm, key, iv);
|
1039
|
+
*
|
1040
|
+
* const input = createReadStream('test.enc');
|
1041
|
+
* const output = createWriteStream('test.js');
|
1042
|
+
*
|
1043
|
+
* input.pipe(decipher).pipe(output);
|
1044
|
+
* ```
|
1045
|
+
*
|
1046
|
+
* Example: Using the `decipher.update()` and `decipher.final()` methods:
|
1047
|
+
*
|
1048
|
+
* ```js
|
1049
|
+
* import { Buffer } from 'buffer';
|
1050
|
+
* const {
|
1051
|
+
* scryptSync,
|
1052
|
+
* createDecipheriv
|
1053
|
+
* } = await import('crypto');
|
1054
|
+
*
|
1055
|
+
* const algorithm = 'aes-192-cbc';
|
1056
|
+
* const password = 'Password used to generate key';
|
1057
|
+
* // Use the async `crypto.scrypt()` instead.
|
1058
|
+
* const key = scryptSync(password, 'salt', 24);
|
1059
|
+
* // The IV is usually passed along with the ciphertext.
|
1060
|
+
* const iv = Buffer.alloc(16, 0); // Initialization vector.
|
1061
|
+
*
|
1062
|
+
* const decipher = createDecipheriv(algorithm, key, iv);
|
1063
|
+
*
|
1064
|
+
* // Encrypted using same algorithm, key and iv.
|
1065
|
+
* const encrypted =
|
1066
|
+
* 'e5f79c5915c02171eec6b212d5520d44480993d7d622a7c4c2da32f6efda0ffa';
|
1067
|
+
* let decrypted = decipher.update(encrypted, 'hex', 'utf8');
|
1068
|
+
* decrypted += decipher.final('utf8');
|
1069
|
+
* console.log(decrypted);
|
1070
|
+
* // Prints: some clear text data
|
1071
|
+
* ```
|
1072
|
+
* @since v0.1.94
|
1073
|
+
*/
|
1074
|
+
class Decipher extends stream.Transform {
|
1075
|
+
private constructor();
|
1076
|
+
/**
|
1077
|
+
* Updates the decipher with `data`. If the `inputEncoding` argument is given,
|
1078
|
+
* the `data`argument is a string using the specified encoding. If the `inputEncoding`argument is not given, `data` must be a `Buffer`. If `data` is a `Buffer` then `inputEncoding` is
|
1079
|
+
* ignored.
|
1080
|
+
*
|
1081
|
+
* The `outputEncoding` specifies the output format of the enciphered
|
1082
|
+
* data. If the `outputEncoding`is specified, a string using the specified encoding is returned. If no`outputEncoding` is provided, a `Buffer` is returned.
|
1083
|
+
*
|
1084
|
+
* The `decipher.update()` method can be called multiple times with new data until `decipher.final()` is called. Calling `decipher.update()` after `decipher.final()` will result in an error
|
1085
|
+
* being thrown.
|
1086
|
+
* @since v0.1.94
|
1087
|
+
* @param inputEncoding The `encoding` of the `data` string.
|
1088
|
+
* @param outputEncoding The `encoding` of the return value.
|
1089
|
+
*/
|
1090
|
+
update(data: NodeJS.ArrayBufferView): Buffer;
|
1091
|
+
update(data: string, inputEncoding: Encoding): Buffer;
|
1092
|
+
update(data: NodeJS.ArrayBufferView, inputEncoding: undefined, outputEncoding: Encoding): string;
|
1093
|
+
update(data: string, inputEncoding: Encoding | undefined, outputEncoding: Encoding): string;
|
1094
|
+
/**
|
1095
|
+
* Once the `decipher.final()` method has been called, the `Decipher` object can
|
1096
|
+
* no longer be used to decrypt data. Attempts to call `decipher.final()` more
|
1097
|
+
* than once will result in an error being thrown.
|
1098
|
+
* @since v0.1.94
|
1099
|
+
* @param outputEncoding The `encoding` of the return value.
|
1100
|
+
* @return Any remaining deciphered contents. If `outputEncoding` is specified, a string is returned. If an `outputEncoding` is not provided, a {@link Buffer} is returned.
|
1101
|
+
*/
|
1102
|
+
final(): Buffer;
|
1103
|
+
final(outputEncoding: BufferEncoding): string;
|
1104
|
+
/**
|
1105
|
+
* When data has been encrypted without standard block padding, calling`decipher.setAutoPadding(false)` will disable automatic padding to prevent `decipher.final()` from checking for and
|
1106
|
+
* removing padding.
|
1107
|
+
*
|
1108
|
+
* Turning auto padding off will only work if the input data's length is a
|
1109
|
+
* multiple of the ciphers block size.
|
1110
|
+
*
|
1111
|
+
* The `decipher.setAutoPadding()` method must be called before `decipher.final()`.
|
1112
|
+
* @since v0.7.1
|
1113
|
+
* @param [autoPadding=true]
|
1114
|
+
* @return for method chaining.
|
1115
|
+
*/
|
1116
|
+
setAutoPadding(auto_padding?: boolean): this;
|
1117
|
+
}
|
1118
|
+
interface DecipherCCM extends Decipher {
|
1119
|
+
setAuthTag(buffer: NodeJS.ArrayBufferView): this;
|
1120
|
+
setAAD(
|
1121
|
+
buffer: NodeJS.ArrayBufferView,
|
1122
|
+
options: {
|
1123
|
+
plaintextLength: number;
|
1124
|
+
}
|
1125
|
+
): this;
|
1126
|
+
}
|
1127
|
+
interface DecipherGCM extends Decipher {
|
1128
|
+
setAuthTag(buffer: NodeJS.ArrayBufferView): this;
|
1129
|
+
setAAD(
|
1130
|
+
buffer: NodeJS.ArrayBufferView,
|
1131
|
+
options?: {
|
1132
|
+
plaintextLength: number;
|
1133
|
+
}
|
1134
|
+
): this;
|
1135
|
+
}
|
1136
|
+
interface PrivateKeyInput {
|
1137
|
+
key: string | Buffer;
|
1138
|
+
format?: KeyFormat | undefined;
|
1139
|
+
type?: 'pkcs1' | 'pkcs8' | 'sec1' | undefined;
|
1140
|
+
passphrase?: string | Buffer | undefined;
|
1141
|
+
}
|
1142
|
+
interface PublicKeyInput {
|
1143
|
+
key: string | Buffer;
|
1144
|
+
format?: KeyFormat | undefined;
|
1145
|
+
type?: 'pkcs1' | 'spki' | undefined;
|
1146
|
+
}
|
1147
|
+
/**
|
1148
|
+
* Asynchronously generates a new random secret key of the given `length`. The`type` will determine which validations will be performed on the `length`.
|
1149
|
+
*
|
1150
|
+
* ```js
|
1151
|
+
* const {
|
1152
|
+
* generateKey
|
1153
|
+
* } = await import('crypto');
|
1154
|
+
*
|
1155
|
+
* generateKey('hmac', { length: 64 }, (err, key) => {
|
1156
|
+
* if (err) throw err;
|
1157
|
+
* console.log(key.export().toString('hex')); // 46e..........620
|
1158
|
+
* });
|
1159
|
+
* ```
|
1160
|
+
* @since v15.0.0
|
1161
|
+
* @param type The intended use of the generated secret key. Currently accepted values are `'hmac'` and `'aes'`.
|
1162
|
+
*/
|
1163
|
+
function generateKey(
|
1164
|
+
type: 'hmac' | 'aes',
|
1165
|
+
options: {
|
1166
|
+
length: number;
|
1167
|
+
},
|
1168
|
+
callback: (err: Error | null, key: KeyObject) => void
|
1169
|
+
): void;
|
1170
|
+
/**
|
1171
|
+
* Synchronously generates a new random secret key of the given `length`. The`type` will determine which validations will be performed on the `length`.
|
1172
|
+
*
|
1173
|
+
* ```js
|
1174
|
+
* const {
|
1175
|
+
* generateKeySync
|
1176
|
+
* } = await import('crypto');
|
1177
|
+
*
|
1178
|
+
* const key = generateKeySync('hmac', { length: 64 });
|
1179
|
+
* console.log(key.export().toString('hex')); // e89..........41e
|
1180
|
+
* ```
|
1181
|
+
* @since v15.0.0
|
1182
|
+
* @param type The intended use of the generated secret key. Currently accepted values are `'hmac'` and `'aes'`.
|
1183
|
+
*/
|
1184
|
+
function generateKeySync(
|
1185
|
+
type: 'hmac' | 'aes',
|
1186
|
+
options: {
|
1187
|
+
length: number;
|
1188
|
+
}
|
1189
|
+
): KeyObject;
|
1190
|
+
interface JsonWebKeyInput {
|
1191
|
+
key: JsonWebKey;
|
1192
|
+
format: 'jwk';
|
1193
|
+
}
|
1194
|
+
/**
|
1195
|
+
* Creates and returns a new key object containing a private key. If `key` is a
|
1196
|
+
* string or `Buffer`, `format` is assumed to be `'pem'`; otherwise, `key`must be an object with the properties described above.
|
1197
|
+
*
|
1198
|
+
* If the private key is encrypted, a `passphrase` must be specified. The length
|
1199
|
+
* of the passphrase is limited to 1024 bytes.
|
1200
|
+
* @since v11.6.0
|
1201
|
+
*/
|
1202
|
+
function createPrivateKey(key: PrivateKeyInput | string | Buffer | JsonWebKeyInput): KeyObject;
|
1203
|
+
/**
|
1204
|
+
* Creates and returns a new key object containing a public key. If `key` is a
|
1205
|
+
* string or `Buffer`, `format` is assumed to be `'pem'`; if `key` is a `KeyObject`with type `'private'`, the public key is derived from the given private key;
|
1206
|
+
* otherwise, `key` must be an object with the properties described above.
|
1207
|
+
*
|
1208
|
+
* If the format is `'pem'`, the `'key'` may also be an X.509 certificate.
|
1209
|
+
*
|
1210
|
+
* Because public keys can be derived from private keys, a private key may be
|
1211
|
+
* passed instead of a public key. In that case, this function behaves as if {@link createPrivateKey} had been called, except that the type of the
|
1212
|
+
* returned `KeyObject` will be `'public'` and that the private key cannot be
|
1213
|
+
* extracted from the returned `KeyObject`. Similarly, if a `KeyObject` with type`'private'` is given, a new `KeyObject` with type `'public'` will be returned
|
1214
|
+
* and it will be impossible to extract the private key from the returned object.
|
1215
|
+
* @since v11.6.0
|
1216
|
+
*/
|
1217
|
+
function createPublicKey(key: PublicKeyInput | string | Buffer | KeyObject | JsonWebKeyInput): KeyObject;
|
1218
|
+
/**
|
1219
|
+
* Creates and returns a new key object containing a secret key for symmetric
|
1220
|
+
* encryption or `Hmac`.
|
1221
|
+
* @since v11.6.0
|
1222
|
+
* @param encoding The string encoding when `key` is a string.
|
1223
|
+
*/
|
1224
|
+
function createSecretKey(key: NodeJS.ArrayBufferView): KeyObject;
|
1225
|
+
function createSecretKey(key: string, encoding: BufferEncoding): KeyObject;
|
1226
|
+
/**
|
1227
|
+
* Creates and returns a `Sign` object that uses the given `algorithm`. Use {@link getHashes} to obtain the names of the available digest algorithms.
|
1228
|
+
* Optional `options` argument controls the `stream.Writable` behavior.
|
1229
|
+
*
|
1230
|
+
* In some cases, a `Sign` instance can be created using the name of a signature
|
1231
|
+
* algorithm, such as `'RSA-SHA256'`, instead of a digest algorithm. This will use
|
1232
|
+
* the corresponding digest algorithm. This does not work for all signature
|
1233
|
+
* algorithms, such as `'ecdsa-with-SHA256'`, so it is best to always use digest
|
1234
|
+
* algorithm names.
|
1235
|
+
* @since v0.1.92
|
1236
|
+
* @param options `stream.Writable` options
|
1237
|
+
*/
|
1238
|
+
function createSign(algorithm: string, options?: stream.WritableOptions): Sign;
|
1239
|
+
type DSAEncoding = 'der' | 'ieee-p1363';
|
1240
|
+
interface SigningOptions {
|
1241
|
+
/**
|
1242
|
+
* @See crypto.constants.RSA_PKCS1_PADDING
|
1243
|
+
*/
|
1244
|
+
padding?: number | undefined;
|
1245
|
+
saltLength?: number | undefined;
|
1246
|
+
dsaEncoding?: DSAEncoding | undefined;
|
1247
|
+
}
|
1248
|
+
interface SignPrivateKeyInput extends PrivateKeyInput, SigningOptions {}
|
1249
|
+
interface SignKeyObjectInput extends SigningOptions {
|
1250
|
+
key: KeyObject;
|
1251
|
+
}
|
1252
|
+
interface VerifyPublicKeyInput extends PublicKeyInput, SigningOptions {}
|
1253
|
+
interface VerifyKeyObjectInput extends SigningOptions {
|
1254
|
+
key: KeyObject;
|
1255
|
+
}
|
1256
|
+
type KeyLike = string | Buffer | KeyObject;
|
1257
|
+
/**
|
1258
|
+
* The `Sign` class is a utility for generating signatures. It can be used in one
|
1259
|
+
* of two ways:
|
1260
|
+
*
|
1261
|
+
* * As a writable `stream`, where data to be signed is written and the `sign.sign()` method is used to generate and return the signature, or
|
1262
|
+
* * Using the `sign.update()` and `sign.sign()` methods to produce the
|
1263
|
+
* signature.
|
1264
|
+
*
|
1265
|
+
* The {@link createSign} method is used to create `Sign` instances. The
|
1266
|
+
* argument is the string name of the hash function to use. `Sign` objects are not
|
1267
|
+
* to be created directly using the `new` keyword.
|
1268
|
+
*
|
1269
|
+
* Example: Using `Sign` and `Verify` objects as streams:
|
1270
|
+
*
|
1271
|
+
* ```js
|
1272
|
+
* const {
|
1273
|
+
* generateKeyPairSync,
|
1274
|
+
* createSign,
|
1275
|
+
* createVerify
|
1276
|
+
* } = await import('crypto');
|
1277
|
+
*
|
1278
|
+
* const { privateKey, publicKey } = generateKeyPairSync('ec', {
|
1279
|
+
* namedCurve: 'sect239k1'
|
1280
|
+
* });
|
1281
|
+
*
|
1282
|
+
* const sign = createSign('SHA256');
|
1283
|
+
* sign.write('some data to sign');
|
1284
|
+
* sign.end();
|
1285
|
+
* const signature = sign.sign(privateKey, 'hex');
|
1286
|
+
*
|
1287
|
+
* const verify = createVerify('SHA256');
|
1288
|
+
* verify.write('some data to sign');
|
1289
|
+
* verify.end();
|
1290
|
+
* console.log(verify.verify(publicKey, signature, 'hex'));
|
1291
|
+
* // Prints: true
|
1292
|
+
* ```
|
1293
|
+
*
|
1294
|
+
* Example: Using the `sign.update()` and `verify.update()` methods:
|
1295
|
+
*
|
1296
|
+
* ```js
|
1297
|
+
* const {
|
1298
|
+
* generateKeyPairSync,
|
1299
|
+
* createSign,
|
1300
|
+
* createVerify
|
1301
|
+
* } = await import('crypto');
|
1302
|
+
*
|
1303
|
+
* const { privateKey, publicKey } = generateKeyPairSync('rsa', {
|
1304
|
+
* modulusLength: 2048,
|
1305
|
+
* });
|
1306
|
+
*
|
1307
|
+
* const sign = createSign('SHA256');
|
1308
|
+
* sign.update('some data to sign');
|
1309
|
+
* sign.end();
|
1310
|
+
* const signature = sign.sign(privateKey);
|
1311
|
+
*
|
1312
|
+
* const verify = createVerify('SHA256');
|
1313
|
+
* verify.update('some data to sign');
|
1314
|
+
* verify.end();
|
1315
|
+
* console.log(verify.verify(publicKey, signature));
|
1316
|
+
* // Prints: true
|
1317
|
+
* ```
|
1318
|
+
* @since v0.1.92
|
1319
|
+
*/
|
1320
|
+
class Sign extends stream.Writable {
|
1321
|
+
private constructor();
|
1322
|
+
/**
|
1323
|
+
* Updates the `Sign` content with the given `data`, the encoding of which
|
1324
|
+
* is given in `inputEncoding`.
|
1325
|
+
* If `encoding` is not provided, and the `data` is a string, an
|
1326
|
+
* encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or`DataView`, then `inputEncoding` is ignored.
|
1327
|
+
*
|
1328
|
+
* This can be called many times with new data as it is streamed.
|
1329
|
+
* @since v0.1.92
|
1330
|
+
* @param inputEncoding The `encoding` of the `data` string.
|
1331
|
+
*/
|
1332
|
+
update(data: BinaryLike): this;
|
1333
|
+
update(data: string, inputEncoding: Encoding): this;
|
1334
|
+
/**
|
1335
|
+
* Calculates the signature on all the data passed through using either `sign.update()` or `sign.write()`.
|
1336
|
+
*
|
1337
|
+
* If `privateKey` is not a `KeyObject`, this function behaves as if`privateKey` had been passed to {@link createPrivateKey}. If it is an
|
1338
|
+
* object, the following additional properties can be passed:
|
1339
|
+
*
|
1340
|
+
* If `outputEncoding` is provided a string is returned; otherwise a `Buffer` is returned.
|
1341
|
+
*
|
1342
|
+
* The `Sign` object can not be again used after `sign.sign()` method has been
|
1343
|
+
* called. Multiple calls to `sign.sign()` will result in an error being thrown.
|
1344
|
+
* @since v0.1.92
|
1345
|
+
*/
|
1346
|
+
sign(privateKey: KeyLike | SignKeyObjectInput | SignPrivateKeyInput): Buffer;
|
1347
|
+
sign(privateKey: KeyLike | SignKeyObjectInput | SignPrivateKeyInput, outputFormat: BinaryToTextEncoding): string;
|
1348
|
+
}
|
1349
|
+
/**
|
1350
|
+
* Creates and returns a `Verify` object that uses the given algorithm.
|
1351
|
+
* Use {@link getHashes} to obtain an array of names of the available
|
1352
|
+
* signing algorithms. Optional `options` argument controls the`stream.Writable` behavior.
|
1353
|
+
*
|
1354
|
+
* In some cases, a `Verify` instance can be created using the name of a signature
|
1355
|
+
* algorithm, such as `'RSA-SHA256'`, instead of a digest algorithm. This will use
|
1356
|
+
* the corresponding digest algorithm. This does not work for all signature
|
1357
|
+
* algorithms, such as `'ecdsa-with-SHA256'`, so it is best to always use digest
|
1358
|
+
* algorithm names.
|
1359
|
+
* @since v0.1.92
|
1360
|
+
* @param options `stream.Writable` options
|
1361
|
+
*/
|
1362
|
+
function createVerify(algorithm: string, options?: stream.WritableOptions): Verify;
|
1363
|
+
/**
|
1364
|
+
* The `Verify` class is a utility for verifying signatures. It can be used in one
|
1365
|
+
* of two ways:
|
1366
|
+
*
|
1367
|
+
* * As a writable `stream` where written data is used to validate against the
|
1368
|
+
* supplied signature, or
|
1369
|
+
* * Using the `verify.update()` and `verify.verify()` methods to verify
|
1370
|
+
* the signature.
|
1371
|
+
*
|
1372
|
+
* The {@link createVerify} method is used to create `Verify` instances.`Verify` objects are not to be created directly using the `new` keyword.
|
1373
|
+
*
|
1374
|
+
* See `Sign` for examples.
|
1375
|
+
* @since v0.1.92
|
1376
|
+
*/
|
1377
|
+
class Verify extends stream.Writable {
|
1378
|
+
private constructor();
|
1379
|
+
/**
|
1380
|
+
* Updates the `Verify` content with the given `data`, the encoding of which
|
1381
|
+
* is given in `inputEncoding`.
|
1382
|
+
* If `inputEncoding` is not provided, and the `data` is a string, an
|
1383
|
+
* encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or`DataView`, then `inputEncoding` is ignored.
|
1384
|
+
*
|
1385
|
+
* This can be called many times with new data as it is streamed.
|
1386
|
+
* @since v0.1.92
|
1387
|
+
* @param inputEncoding The `encoding` of the `data` string.
|
1388
|
+
*/
|
1389
|
+
update(data: BinaryLike): Verify;
|
1390
|
+
update(data: string, inputEncoding: Encoding): Verify;
|
1391
|
+
/**
|
1392
|
+
* Verifies the provided data using the given `object` and `signature`.
|
1393
|
+
*
|
1394
|
+
* If `object` is not a `KeyObject`, this function behaves as if`object` had been passed to {@link createPublicKey}. If it is an
|
1395
|
+
* object, the following additional properties can be passed:
|
1396
|
+
*
|
1397
|
+
* The `signature` argument is the previously calculated signature for the data, in
|
1398
|
+
* the `signatureEncoding`.
|
1399
|
+
* If a `signatureEncoding` is specified, the `signature` is expected to be a
|
1400
|
+
* string; otherwise `signature` is expected to be a `Buffer`,`TypedArray`, or `DataView`.
|
1401
|
+
*
|
1402
|
+
* The `verify` object can not be used again after `verify.verify()` has been
|
1403
|
+
* called. Multiple calls to `verify.verify()` will result in an error being
|
1404
|
+
* thrown.
|
1405
|
+
*
|
1406
|
+
* Because public keys can be derived from private keys, a private key may
|
1407
|
+
* be passed instead of a public key.
|
1408
|
+
* @since v0.1.92
|
1409
|
+
*/
|
1410
|
+
verify(object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput, signature: NodeJS.ArrayBufferView): boolean;
|
1411
|
+
verify(object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput, signature: string, signature_format?: BinaryToTextEncoding): boolean;
|
1412
|
+
}
|
1413
|
+
/**
|
1414
|
+
* Creates a `DiffieHellman` key exchange object using the supplied `prime` and an
|
1415
|
+
* optional specific `generator`.
|
1416
|
+
*
|
1417
|
+
* The `generator` argument can be a number, string, or `Buffer`. If`generator` is not specified, the value `2` is used.
|
1418
|
+
*
|
1419
|
+
* If `primeEncoding` is specified, `prime` is expected to be a string; otherwise
|
1420
|
+
* a `Buffer`, `TypedArray`, or `DataView` is expected.
|
1421
|
+
*
|
1422
|
+
* If `generatorEncoding` is specified, `generator` is expected to be a string;
|
1423
|
+
* otherwise a number, `Buffer`, `TypedArray`, or `DataView` is expected.
|
1424
|
+
* @since v0.11.12
|
1425
|
+
* @param primeEncoding The `encoding` of the `prime` string.
|
1426
|
+
* @param [generator=2]
|
1427
|
+
* @param generatorEncoding The `encoding` of the `generator` string.
|
1428
|
+
*/
|
1429
|
+
function createDiffieHellman(primeLength: number, generator?: number | NodeJS.ArrayBufferView): DiffieHellman;
|
1430
|
+
function createDiffieHellman(prime: NodeJS.ArrayBufferView): DiffieHellman;
|
1431
|
+
function createDiffieHellman(prime: string, primeEncoding: BinaryToTextEncoding): DiffieHellman;
|
1432
|
+
function createDiffieHellman(prime: string, primeEncoding: BinaryToTextEncoding, generator: number | NodeJS.ArrayBufferView): DiffieHellman;
|
1433
|
+
function createDiffieHellman(prime: string, primeEncoding: BinaryToTextEncoding, generator: string, generatorEncoding: BinaryToTextEncoding): DiffieHellman;
|
1434
|
+
/**
|
1435
|
+
* The `DiffieHellman` class is a utility for creating Diffie-Hellman key
|
1436
|
+
* exchanges.
|
1437
|
+
*
|
1438
|
+
* Instances of the `DiffieHellman` class can be created using the {@link createDiffieHellman} function.
|
1439
|
+
*
|
1440
|
+
* ```js
|
1441
|
+
* import assert from 'assert';
|
1442
|
+
*
|
1443
|
+
* const {
|
1444
|
+
* createDiffieHellman
|
1445
|
+
* } = await import('crypto');
|
1446
|
+
*
|
1447
|
+
* // Generate Alice's keys...
|
1448
|
+
* const alice = createDiffieHellman(2048);
|
1449
|
+
* const aliceKey = alice.generateKeys();
|
1450
|
+
*
|
1451
|
+
* // Generate Bob's keys...
|
1452
|
+
* const bob = createDiffieHellman(alice.getPrime(), alice.getGenerator());
|
1453
|
+
* const bobKey = bob.generateKeys();
|
1454
|
+
*
|
1455
|
+
* // Exchange and generate the secret...
|
1456
|
+
* const aliceSecret = alice.computeSecret(bobKey);
|
1457
|
+
* const bobSecret = bob.computeSecret(aliceKey);
|
1458
|
+
*
|
1459
|
+
* // OK
|
1460
|
+
* assert.strictEqual(aliceSecret.toString('hex'), bobSecret.toString('hex'));
|
1461
|
+
* ```
|
1462
|
+
* @since v0.5.0
|
1463
|
+
*/
|
1464
|
+
class DiffieHellman {
|
1465
|
+
private constructor();
|
1466
|
+
/**
|
1467
|
+
* Generates private and public Diffie-Hellman key values, and returns
|
1468
|
+
* the public key in the specified `encoding`. This key should be
|
1469
|
+
* transferred to the other party.
|
1470
|
+
* If `encoding` is provided a string is returned; otherwise a `Buffer` is returned.
|
1471
|
+
* @since v0.5.0
|
1472
|
+
* @param encoding The `encoding` of the return value.
|
1473
|
+
*/
|
1474
|
+
generateKeys(): Buffer;
|
1475
|
+
generateKeys(encoding: BinaryToTextEncoding): string;
|
1476
|
+
/**
|
1477
|
+
* Computes the shared secret using `otherPublicKey` as the other
|
1478
|
+
* party's public key and returns the computed shared secret. The supplied
|
1479
|
+
* key is interpreted using the specified `inputEncoding`, and secret is
|
1480
|
+
* encoded using specified `outputEncoding`.
|
1481
|
+
* If the `inputEncoding` is not
|
1482
|
+
* provided, `otherPublicKey` is expected to be a `Buffer`,`TypedArray`, or `DataView`.
|
1483
|
+
*
|
1484
|
+
* If `outputEncoding` is given a string is returned; otherwise, a `Buffer` is returned.
|
1485
|
+
* @since v0.5.0
|
1486
|
+
* @param inputEncoding The `encoding` of an `otherPublicKey` string.
|
1487
|
+
* @param outputEncoding The `encoding` of the return value.
|
1488
|
+
*/
|
1489
|
+
computeSecret(otherPublicKey: NodeJS.ArrayBufferView): Buffer;
|
1490
|
+
computeSecret(otherPublicKey: string, inputEncoding: BinaryToTextEncoding): Buffer;
|
1491
|
+
computeSecret(otherPublicKey: NodeJS.ArrayBufferView, outputEncoding: BinaryToTextEncoding): string;
|
1492
|
+
computeSecret(otherPublicKey: string, inputEncoding: BinaryToTextEncoding, outputEncoding: BinaryToTextEncoding): string;
|
1493
|
+
/**
|
1494
|
+
* Returns the Diffie-Hellman prime in the specified `encoding`.
|
1495
|
+
* If `encoding` is provided a string is
|
1496
|
+
* returned; otherwise a `Buffer` is returned.
|
1497
|
+
* @since v0.5.0
|
1498
|
+
* @param encoding The `encoding` of the return value.
|
1499
|
+
*/
|
1500
|
+
getPrime(): Buffer;
|
1501
|
+
getPrime(encoding: BinaryToTextEncoding): string;
|
1502
|
+
/**
|
1503
|
+
* Returns the Diffie-Hellman generator in the specified `encoding`.
|
1504
|
+
* If `encoding` is provided a string is
|
1505
|
+
* returned; otherwise a `Buffer` is returned.
|
1506
|
+
* @since v0.5.0
|
1507
|
+
* @param encoding The `encoding` of the return value.
|
1508
|
+
*/
|
1509
|
+
getGenerator(): Buffer;
|
1510
|
+
getGenerator(encoding: BinaryToTextEncoding): string;
|
1511
|
+
/**
|
1512
|
+
* Returns the Diffie-Hellman public key in the specified `encoding`.
|
1513
|
+
* If `encoding` is provided a
|
1514
|
+
* string is returned; otherwise a `Buffer` is returned.
|
1515
|
+
* @since v0.5.0
|
1516
|
+
* @param encoding The `encoding` of the return value.
|
1517
|
+
*/
|
1518
|
+
getPublicKey(): Buffer;
|
1519
|
+
getPublicKey(encoding: BinaryToTextEncoding): string;
|
1520
|
+
/**
|
1521
|
+
* Returns the Diffie-Hellman private key in the specified `encoding`.
|
1522
|
+
* If `encoding` is provided a
|
1523
|
+
* string is returned; otherwise a `Buffer` is returned.
|
1524
|
+
* @since v0.5.0
|
1525
|
+
* @param encoding The `encoding` of the return value.
|
1526
|
+
*/
|
1527
|
+
getPrivateKey(): Buffer;
|
1528
|
+
getPrivateKey(encoding: BinaryToTextEncoding): string;
|
1529
|
+
/**
|
1530
|
+
* Sets the Diffie-Hellman public key. If the `encoding` argument is provided,`publicKey` is expected
|
1531
|
+
* to be a string. If no `encoding` is provided, `publicKey` is expected
|
1532
|
+
* to be a `Buffer`, `TypedArray`, or `DataView`.
|
1533
|
+
* @since v0.5.0
|
1534
|
+
* @param encoding The `encoding` of the `publicKey` string.
|
1535
|
+
*/
|
1536
|
+
setPublicKey(publicKey: NodeJS.ArrayBufferView): void;
|
1537
|
+
setPublicKey(publicKey: string, encoding: BufferEncoding): void;
|
1538
|
+
/**
|
1539
|
+
* Sets the Diffie-Hellman private key. If the `encoding` argument is provided,`privateKey` is expected
|
1540
|
+
* to be a string. If no `encoding` is provided, `privateKey` is expected
|
1541
|
+
* to be a `Buffer`, `TypedArray`, or `DataView`.
|
1542
|
+
* @since v0.5.0
|
1543
|
+
* @param encoding The `encoding` of the `privateKey` string.
|
1544
|
+
*/
|
1545
|
+
setPrivateKey(privateKey: NodeJS.ArrayBufferView): void;
|
1546
|
+
setPrivateKey(privateKey: string, encoding: BufferEncoding): void;
|
1547
|
+
/**
|
1548
|
+
* A bit field containing any warnings and/or errors resulting from a check
|
1549
|
+
* performed during initialization of the `DiffieHellman` object.
|
1550
|
+
*
|
1551
|
+
* The following values are valid for this property (as defined in `constants`module):
|
1552
|
+
*
|
1553
|
+
* * `DH_CHECK_P_NOT_SAFE_PRIME`
|
1554
|
+
* * `DH_CHECK_P_NOT_PRIME`
|
1555
|
+
* * `DH_UNABLE_TO_CHECK_GENERATOR`
|
1556
|
+
* * `DH_NOT_SUITABLE_GENERATOR`
|
1557
|
+
* @since v0.11.12
|
1558
|
+
*/
|
1559
|
+
verifyError: number;
|
1560
|
+
}
|
1561
|
+
/**
|
1562
|
+
* Creates a predefined `DiffieHellmanGroup` key exchange object. The
|
1563
|
+
* supported groups are: `'modp1'`, `'modp2'`, `'modp5'` (defined in [RFC 2412](https://www.rfc-editor.org/rfc/rfc2412.txt), but see `Caveats`) and `'modp14'`, `'modp15'`,`'modp16'`, `'modp17'`,
|
1564
|
+
* `'modp18'` (defined in [RFC 3526](https://www.rfc-editor.org/rfc/rfc3526.txt)). The
|
1565
|
+
* returned object mimics the interface of objects created by {@link createDiffieHellman}, but will not allow changing
|
1566
|
+
* the keys (with `diffieHellman.setPublicKey()`, for example). The
|
1567
|
+
* advantage of using this method is that the parties do not have to
|
1568
|
+
* generate nor exchange a group modulus beforehand, saving both processor
|
1569
|
+
* and communication time.
|
1570
|
+
*
|
1571
|
+
* Example (obtaining a shared secret):
|
1572
|
+
*
|
1573
|
+
* ```js
|
1574
|
+
* const {
|
1575
|
+
* getDiffieHellman
|
1576
|
+
* } = await import('crypto');
|
1577
|
+
* const alice = getDiffieHellman('modp14');
|
1578
|
+
* const bob = getDiffieHellman('modp14');
|
1579
|
+
*
|
1580
|
+
* alice.generateKeys();
|
1581
|
+
* bob.generateKeys();
|
1582
|
+
*
|
1583
|
+
* const aliceSecret = alice.computeSecret(bob.getPublicKey(), null, 'hex');
|
1584
|
+
* const bobSecret = bob.computeSecret(alice.getPublicKey(), null, 'hex');
|
1585
|
+
*
|
1586
|
+
* // aliceSecret and bobSecret should be the same
|
1587
|
+
* console.log(aliceSecret === bobSecret);
|
1588
|
+
* ```
|
1589
|
+
* @since v0.7.5
|
1590
|
+
*/
|
1591
|
+
function getDiffieHellman(groupName: string): DiffieHellman;
|
1592
|
+
/**
|
1593
|
+
* Provides an asynchronous Password-Based Key Derivation Function 2 (PBKDF2)
|
1594
|
+
* implementation. A selected HMAC digest algorithm specified by `digest` is
|
1595
|
+
* applied to derive a key of the requested byte length (`keylen`) from the`password`, `salt` and `iterations`.
|
1596
|
+
*
|
1597
|
+
* The supplied `callback` function is called with two arguments: `err` and`derivedKey`. If an error occurs while deriving the key, `err` will be set;
|
1598
|
+
* otherwise `err` will be `null`. By default, the successfully generated`derivedKey` will be passed to the callback as a `Buffer`. An error will be
|
1599
|
+
* thrown if any of the input arguments specify invalid values or types.
|
1600
|
+
*
|
1601
|
+
* If `digest` is `null`, `'sha1'` will be used. This behavior is deprecated,
|
1602
|
+
* please specify a `digest` explicitly.
|
1603
|
+
*
|
1604
|
+
* The `iterations` argument must be a number set as high as possible. The
|
1605
|
+
* higher the number of iterations, the more secure the derived key will be,
|
1606
|
+
* but will take a longer amount of time to complete.
|
1607
|
+
*
|
1608
|
+
* The `salt` should be as unique as possible. It is recommended that a salt is
|
1609
|
+
* random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details.
|
1610
|
+
*
|
1611
|
+
* When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`.
|
1612
|
+
*
|
1613
|
+
* ```js
|
1614
|
+
* const {
|
1615
|
+
* pbkdf2
|
1616
|
+
* } = await import('crypto');
|
1617
|
+
*
|
1618
|
+
* pbkdf2('secret', 'salt', 100000, 64, 'sha512', (err, derivedKey) => {
|
1619
|
+
* if (err) throw err;
|
1620
|
+
* console.log(derivedKey.toString('hex')); // '3745e48...08d59ae'
|
1621
|
+
* });
|
1622
|
+
* ```
|
1623
|
+
*
|
1624
|
+
* The `crypto.DEFAULT_ENCODING` property can be used to change the way the`derivedKey` is passed to the callback. This property, however, has been
|
1625
|
+
* deprecated and use should be avoided.
|
1626
|
+
*
|
1627
|
+
* ```js
|
1628
|
+
* import crypto from 'crypto';
|
1629
|
+
* crypto.DEFAULT_ENCODING = 'hex';
|
1630
|
+
* crypto.pbkdf2('secret', 'salt', 100000, 512, 'sha512', (err, derivedKey) => {
|
1631
|
+
* if (err) throw err;
|
1632
|
+
* console.log(derivedKey); // '3745e48...aa39b34'
|
1633
|
+
* });
|
1634
|
+
* ```
|
1635
|
+
*
|
1636
|
+
* An array of supported digest functions can be retrieved using {@link getHashes}.
|
1637
|
+
*
|
1638
|
+
* This API uses libuv's threadpool, which can have surprising and
|
1639
|
+
* negative performance implications for some applications; see the `UV_THREADPOOL_SIZE` documentation for more information.
|
1640
|
+
* @since v0.5.5
|
1641
|
+
*/
|
1642
|
+
function pbkdf2(password: BinaryLike, salt: BinaryLike, iterations: number, keylen: number, digest: string, callback: (err: Error | null, derivedKey: Buffer) => void): void;
|
1643
|
+
/**
|
1644
|
+
* Provides a synchronous Password-Based Key Derivation Function 2 (PBKDF2)
|
1645
|
+
* implementation. A selected HMAC digest algorithm specified by `digest` is
|
1646
|
+
* applied to derive a key of the requested byte length (`keylen`) from the`password`, `salt` and `iterations`.
|
1647
|
+
*
|
1648
|
+
* If an error occurs an `Error` will be thrown, otherwise the derived key will be
|
1649
|
+
* returned as a `Buffer`.
|
1650
|
+
*
|
1651
|
+
* If `digest` is `null`, `'sha1'` will be used. This behavior is deprecated,
|
1652
|
+
* please specify a `digest` explicitly.
|
1653
|
+
*
|
1654
|
+
* The `iterations` argument must be a number set as high as possible. The
|
1655
|
+
* higher the number of iterations, the more secure the derived key will be,
|
1656
|
+
* but will take a longer amount of time to complete.
|
1657
|
+
*
|
1658
|
+
* The `salt` should be as unique as possible. It is recommended that a salt is
|
1659
|
+
* random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details.
|
1660
|
+
*
|
1661
|
+
* When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`.
|
1662
|
+
*
|
1663
|
+
* ```js
|
1664
|
+
* const {
|
1665
|
+
* pbkdf2Sync
|
1666
|
+
* } = await import('crypto');
|
1667
|
+
*
|
1668
|
+
* const key = pbkdf2Sync('secret', 'salt', 100000, 64, 'sha512');
|
1669
|
+
* console.log(key.toString('hex')); // '3745e48...08d59ae'
|
1670
|
+
* ```
|
1671
|
+
*
|
1672
|
+
* The `crypto.DEFAULT_ENCODING` property may be used to change the way the`derivedKey` is returned. This property, however, is deprecated and use
|
1673
|
+
* should be avoided.
|
1674
|
+
*
|
1675
|
+
* ```js
|
1676
|
+
* import crypto from 'crypto';
|
1677
|
+
* crypto.DEFAULT_ENCODING = 'hex';
|
1678
|
+
* const key = crypto.pbkdf2Sync('secret', 'salt', 100000, 512, 'sha512');
|
1679
|
+
* console.log(key); // '3745e48...aa39b34'
|
1680
|
+
* ```
|
1681
|
+
*
|
1682
|
+
* An array of supported digest functions can be retrieved using {@link getHashes}.
|
1683
|
+
* @since v0.9.3
|
1684
|
+
*/
|
1685
|
+
function pbkdf2Sync(password: BinaryLike, salt: BinaryLike, iterations: number, keylen: number, digest: string): Buffer;
|
1686
|
+
/**
|
1687
|
+
* Generates cryptographically strong pseudorandom data. The `size` argument
|
1688
|
+
* is a number indicating the number of bytes to generate.
|
1689
|
+
*
|
1690
|
+
* If a `callback` function is provided, the bytes are generated asynchronously
|
1691
|
+
* and the `callback` function is invoked with two arguments: `err` and `buf`.
|
1692
|
+
* If an error occurs, `err` will be an `Error` object; otherwise it is `null`. The`buf` argument is a `Buffer` containing the generated bytes.
|
1693
|
+
*
|
1694
|
+
* ```js
|
1695
|
+
* // Asynchronous
|
1696
|
+
* const {
|
1697
|
+
* randomBytes
|
1698
|
+
* } = await import('crypto');
|
1699
|
+
*
|
1700
|
+
* randomBytes(256, (err, buf) => {
|
1701
|
+
* if (err) throw err;
|
1702
|
+
* console.log(`${buf.length} bytes of random data: ${buf.toString('hex')}`);
|
1703
|
+
* });
|
1704
|
+
* ```
|
1705
|
+
*
|
1706
|
+
* If the `callback` function is not provided, the random bytes are generated
|
1707
|
+
* synchronously and returned as a `Buffer`. An error will be thrown if
|
1708
|
+
* there is a problem generating the bytes.
|
1709
|
+
*
|
1710
|
+
* ```js
|
1711
|
+
* // Synchronous
|
1712
|
+
* const {
|
1713
|
+
* randomBytes
|
1714
|
+
* } = await import('crypto');
|
1715
|
+
*
|
1716
|
+
* const buf = randomBytes(256);
|
1717
|
+
* console.log(
|
1718
|
+
* `${buf.length} bytes of random data: ${buf.toString('hex')}`);
|
1719
|
+
* ```
|
1720
|
+
*
|
1721
|
+
* The `crypto.randomBytes()` method will not complete until there is
|
1722
|
+
* sufficient entropy available.
|
1723
|
+
* This should normally never take longer than a few milliseconds. The only time
|
1724
|
+
* when generating the random bytes may conceivably block for a longer period of
|
1725
|
+
* time is right after boot, when the whole system is still low on entropy.
|
1726
|
+
*
|
1727
|
+
* This API uses libuv's threadpool, which can have surprising and
|
1728
|
+
* negative performance implications for some applications; see the `UV_THREADPOOL_SIZE` documentation for more information.
|
1729
|
+
*
|
1730
|
+
* The asynchronous version of `crypto.randomBytes()` is carried out in a single
|
1731
|
+
* threadpool request. To minimize threadpool task length variation, partition
|
1732
|
+
* large `randomBytes` requests when doing so as part of fulfilling a client
|
1733
|
+
* request.
|
1734
|
+
* @since v0.5.8
|
1735
|
+
* @param size The number of bytes to generate. The `size` must not be larger than `2**31 - 1`.
|
1736
|
+
* @return if the `callback` function is not provided.
|
1737
|
+
*/
|
1738
|
+
function randomBytes(size: number): Buffer;
|
1739
|
+
function randomBytes(size: number, callback: (err: Error | null, buf: Buffer) => void): void;
|
1740
|
+
function pseudoRandomBytes(size: number): Buffer;
|
1741
|
+
function pseudoRandomBytes(size: number, callback: (err: Error | null, buf: Buffer) => void): void;
|
1742
|
+
/**
|
1743
|
+
* Return a random integer `n` such that `min <= n < max`. This
|
1744
|
+
* implementation avoids [modulo bias](https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle#Modulo_bias).
|
1745
|
+
*
|
1746
|
+
* The range (`max - min`) must be less than 248. `min` and `max` must
|
1747
|
+
* be [safe integers](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isSafeInteger).
|
1748
|
+
*
|
1749
|
+
* If the `callback` function is not provided, the random integer is
|
1750
|
+
* generated synchronously.
|
1751
|
+
*
|
1752
|
+
* ```js
|
1753
|
+
* // Asynchronous
|
1754
|
+
* const {
|
1755
|
+
* randomInt
|
1756
|
+
* } = await import('crypto');
|
1757
|
+
*
|
1758
|
+
* randomInt(3, (err, n) => {
|
1759
|
+
* if (err) throw err;
|
1760
|
+
* console.log(`Random number chosen from (0, 1, 2): ${n}`);
|
1761
|
+
* });
|
1762
|
+
* ```
|
1763
|
+
*
|
1764
|
+
* ```js
|
1765
|
+
* // Synchronous
|
1766
|
+
* const {
|
1767
|
+
* randomInt
|
1768
|
+
* } = await import('crypto');
|
1769
|
+
*
|
1770
|
+
* const n = randomInt(3);
|
1771
|
+
* console.log(`Random number chosen from (0, 1, 2): ${n}`);
|
1772
|
+
* ```
|
1773
|
+
*
|
1774
|
+
* ```js
|
1775
|
+
* // With `min` argument
|
1776
|
+
* const {
|
1777
|
+
* randomInt
|
1778
|
+
* } = await import('crypto');
|
1779
|
+
*
|
1780
|
+
* const n = randomInt(1, 7);
|
1781
|
+
* console.log(`The dice rolled: ${n}`);
|
1782
|
+
* ```
|
1783
|
+
* @since v14.10.0, v12.19.0
|
1784
|
+
* @param [min=0] Start of random range (inclusive).
|
1785
|
+
* @param max End of random range (exclusive).
|
1786
|
+
* @param callback `function(err, n) {}`.
|
1787
|
+
*/
|
1788
|
+
function randomInt(max: number): number;
|
1789
|
+
function randomInt(min: number, max: number): number;
|
1790
|
+
function randomInt(max: number, callback: (err: Error | null, value: number) => void): void;
|
1791
|
+
function randomInt(min: number, max: number, callback: (err: Error | null, value: number) => void): void;
|
1792
|
+
/**
|
1793
|
+
* Synchronous version of {@link randomFill}.
|
1794
|
+
*
|
1795
|
+
* ```js
|
1796
|
+
* import { Buffer } from 'buffer';
|
1797
|
+
* const { randomFillSync } = await import('crypto');
|
1798
|
+
*
|
1799
|
+
* const buf = Buffer.alloc(10);
|
1800
|
+
* console.log(randomFillSync(buf).toString('hex'));
|
1801
|
+
*
|
1802
|
+
* randomFillSync(buf, 5);
|
1803
|
+
* console.log(buf.toString('hex'));
|
1804
|
+
*
|
1805
|
+
* // The above is equivalent to the following:
|
1806
|
+
* randomFillSync(buf, 5, 5);
|
1807
|
+
* console.log(buf.toString('hex'));
|
1808
|
+
* ```
|
1809
|
+
*
|
1810
|
+
* Any `ArrayBuffer`, `TypedArray` or `DataView` instance may be passed as`buffer`.
|
1811
|
+
*
|
1812
|
+
* ```js
|
1813
|
+
* import { Buffer } from 'buffer';
|
1814
|
+
* const { randomFillSync } = await import('crypto');
|
1815
|
+
*
|
1816
|
+
* const a = new Uint32Array(10);
|
1817
|
+
* console.log(Buffer.from(randomFillSync(a).buffer,
|
1818
|
+
* a.byteOffset, a.byteLength).toString('hex'));
|
1819
|
+
*
|
1820
|
+
* const b = new DataView(new ArrayBuffer(10));
|
1821
|
+
* console.log(Buffer.from(randomFillSync(b).buffer,
|
1822
|
+
* b.byteOffset, b.byteLength).toString('hex'));
|
1823
|
+
*
|
1824
|
+
* const c = new ArrayBuffer(10);
|
1825
|
+
* console.log(Buffer.from(randomFillSync(c)).toString('hex'));
|
1826
|
+
* ```
|
1827
|
+
* @since v7.10.0, v6.13.0
|
1828
|
+
* @param buffer Must be supplied. The size of the provided `buffer` must not be larger than `2**31 - 1`.
|
1829
|
+
* @param [offset=0]
|
1830
|
+
* @param [size=buffer.length - offset]
|
1831
|
+
* @return The object passed as `buffer` argument.
|
1832
|
+
*/
|
1833
|
+
function randomFillSync<T extends NodeJS.ArrayBufferView>(buffer: T, offset?: number, size?: number): T;
|
1834
|
+
/**
|
1835
|
+
* This function is similar to {@link randomBytes} but requires the first
|
1836
|
+
* argument to be a `Buffer` that will be filled. It also
|
1837
|
+
* requires that a callback is passed in.
|
1838
|
+
*
|
1839
|
+
* If the `callback` function is not provided, an error will be thrown.
|
1840
|
+
*
|
1841
|
+
* ```js
|
1842
|
+
* import { Buffer } from 'buffer';
|
1843
|
+
* const { randomFill } = await import('crypto');
|
1844
|
+
*
|
1845
|
+
* const buf = Buffer.alloc(10);
|
1846
|
+
* randomFill(buf, (err, buf) => {
|
1847
|
+
* if (err) throw err;
|
1848
|
+
* console.log(buf.toString('hex'));
|
1849
|
+
* });
|
1850
|
+
*
|
1851
|
+
* randomFill(buf, 5, (err, buf) => {
|
1852
|
+
* if (err) throw err;
|
1853
|
+
* console.log(buf.toString('hex'));
|
1854
|
+
* });
|
1855
|
+
*
|
1856
|
+
* // The above is equivalent to the following:
|
1857
|
+
* randomFill(buf, 5, 5, (err, buf) => {
|
1858
|
+
* if (err) throw err;
|
1859
|
+
* console.log(buf.toString('hex'));
|
1860
|
+
* });
|
1861
|
+
* ```
|
1862
|
+
*
|
1863
|
+
* Any `ArrayBuffer`, `TypedArray`, or `DataView` instance may be passed as`buffer`.
|
1864
|
+
*
|
1865
|
+
* While this includes instances of `Float32Array` and `Float64Array`, this
|
1866
|
+
* function should not be used to generate random floating-point numbers. The
|
1867
|
+
* result may contain `+Infinity`, `-Infinity`, and `NaN`, and even if the array
|
1868
|
+
* contains finite numbers only, they are not drawn from a uniform random
|
1869
|
+
* distribution and have no meaningful lower or upper bounds.
|
1870
|
+
*
|
1871
|
+
* ```js
|
1872
|
+
* import { Buffer } from 'buffer';
|
1873
|
+
* const { randomFill } = await import('crypto');
|
1874
|
+
*
|
1875
|
+
* const a = new Uint32Array(10);
|
1876
|
+
* randomFill(a, (err, buf) => {
|
1877
|
+
* if (err) throw err;
|
1878
|
+
* console.log(Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength)
|
1879
|
+
* .toString('hex'));
|
1880
|
+
* });
|
1881
|
+
*
|
1882
|
+
* const b = new DataView(new ArrayBuffer(10));
|
1883
|
+
* randomFill(b, (err, buf) => {
|
1884
|
+
* if (err) throw err;
|
1885
|
+
* console.log(Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength)
|
1886
|
+
* .toString('hex'));
|
1887
|
+
* });
|
1888
|
+
*
|
1889
|
+
* const c = new ArrayBuffer(10);
|
1890
|
+
* randomFill(c, (err, buf) => {
|
1891
|
+
* if (err) throw err;
|
1892
|
+
* console.log(Buffer.from(buf).toString('hex'));
|
1893
|
+
* });
|
1894
|
+
* ```
|
1895
|
+
*
|
1896
|
+
* This API uses libuv's threadpool, which can have surprising and
|
1897
|
+
* negative performance implications for some applications; see the `UV_THREADPOOL_SIZE` documentation for more information.
|
1898
|
+
*
|
1899
|
+
* The asynchronous version of `crypto.randomFill()` is carried out in a single
|
1900
|
+
* threadpool request. To minimize threadpool task length variation, partition
|
1901
|
+
* large `randomFill` requests when doing so as part of fulfilling a client
|
1902
|
+
* request.
|
1903
|
+
* @since v7.10.0, v6.13.0
|
1904
|
+
* @param buffer Must be supplied. The size of the provided `buffer` must not be larger than `2**31 - 1`.
|
1905
|
+
* @param [offset=0]
|
1906
|
+
* @param [size=buffer.length - offset]
|
1907
|
+
* @param callback `function(err, buf) {}`.
|
1908
|
+
*/
|
1909
|
+
function randomFill<T extends NodeJS.ArrayBufferView>(buffer: T, callback: (err: Error | null, buf: T) => void): void;
|
1910
|
+
function randomFill<T extends NodeJS.ArrayBufferView>(buffer: T, offset: number, callback: (err: Error | null, buf: T) => void): void;
|
1911
|
+
function randomFill<T extends NodeJS.ArrayBufferView>(buffer: T, offset: number, size: number, callback: (err: Error | null, buf: T) => void): void;
|
1912
|
+
interface ScryptOptions {
|
1913
|
+
cost?: number | undefined;
|
1914
|
+
blockSize?: number | undefined;
|
1915
|
+
parallelization?: number | undefined;
|
1916
|
+
N?: number | undefined;
|
1917
|
+
r?: number | undefined;
|
1918
|
+
p?: number | undefined;
|
1919
|
+
maxmem?: number | undefined;
|
1920
|
+
}
|
1921
|
+
/**
|
1922
|
+
* Provides an asynchronous [scrypt](https://en.wikipedia.org/wiki/Scrypt) implementation. Scrypt is a password-based
|
1923
|
+
* key derivation function that is designed to be expensive computationally and
|
1924
|
+
* memory-wise in order to make brute-force attacks unrewarding.
|
1925
|
+
*
|
1926
|
+
* The `salt` should be as unique as possible. It is recommended that a salt is
|
1927
|
+
* random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details.
|
1928
|
+
*
|
1929
|
+
* When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`.
|
1930
|
+
*
|
1931
|
+
* The `callback` function is called with two arguments: `err` and `derivedKey`.`err` is an exception object when key derivation fails, otherwise `err` is`null`. `derivedKey` is passed to the
|
1932
|
+
* callback as a `Buffer`.
|
1933
|
+
*
|
1934
|
+
* An exception is thrown when any of the input arguments specify invalid values
|
1935
|
+
* or types.
|
1936
|
+
*
|
1937
|
+
* ```js
|
1938
|
+
* const {
|
1939
|
+
* scrypt
|
1940
|
+
* } = await import('crypto');
|
1941
|
+
*
|
1942
|
+
* // Using the factory defaults.
|
1943
|
+
* scrypt('password', 'salt', 64, (err, derivedKey) => {
|
1944
|
+
* if (err) throw err;
|
1945
|
+
* console.log(derivedKey.toString('hex')); // '3745e48...08d59ae'
|
1946
|
+
* });
|
1947
|
+
* // Using a custom N parameter. Must be a power of two.
|
1948
|
+
* scrypt('password', 'salt', 64, { N: 1024 }, (err, derivedKey) => {
|
1949
|
+
* if (err) throw err;
|
1950
|
+
* console.log(derivedKey.toString('hex')); // '3745e48...aa39b34'
|
1951
|
+
* });
|
1952
|
+
* ```
|
1953
|
+
* @since v10.5.0
|
1954
|
+
*/
|
1955
|
+
function scrypt(password: BinaryLike, salt: BinaryLike, keylen: number, callback: (err: Error | null, derivedKey: Buffer) => void): void;
|
1956
|
+
function scrypt(password: BinaryLike, salt: BinaryLike, keylen: number, options: ScryptOptions, callback: (err: Error | null, derivedKey: Buffer) => void): void;
|
1957
|
+
/**
|
1958
|
+
* Provides a synchronous [scrypt](https://en.wikipedia.org/wiki/Scrypt) implementation. Scrypt is a password-based
|
1959
|
+
* key derivation function that is designed to be expensive computationally and
|
1960
|
+
* memory-wise in order to make brute-force attacks unrewarding.
|
1961
|
+
*
|
1962
|
+
* The `salt` should be as unique as possible. It is recommended that a salt is
|
1963
|
+
* random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details.
|
1964
|
+
*
|
1965
|
+
* When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`.
|
1966
|
+
*
|
1967
|
+
* An exception is thrown when key derivation fails, otherwise the derived key is
|
1968
|
+
* returned as a `Buffer`.
|
1969
|
+
*
|
1970
|
+
* An exception is thrown when any of the input arguments specify invalid values
|
1971
|
+
* or types.
|
1972
|
+
*
|
1973
|
+
* ```js
|
1974
|
+
* const {
|
1975
|
+
* scryptSync
|
1976
|
+
* } = await import('crypto');
|
1977
|
+
* // Using the factory defaults.
|
1978
|
+
*
|
1979
|
+
* const key1 = scryptSync('password', 'salt', 64);
|
1980
|
+
* console.log(key1.toString('hex')); // '3745e48...08d59ae'
|
1981
|
+
* // Using a custom N parameter. Must be a power of two.
|
1982
|
+
* const key2 = scryptSync('password', 'salt', 64, { N: 1024 });
|
1983
|
+
* console.log(key2.toString('hex')); // '3745e48...aa39b34'
|
1984
|
+
* ```
|
1985
|
+
* @since v10.5.0
|
1986
|
+
*/
|
1987
|
+
function scryptSync(password: BinaryLike, salt: BinaryLike, keylen: number, options?: ScryptOptions): Buffer;
|
1988
|
+
interface RsaPublicKey {
|
1989
|
+
key: KeyLike;
|
1990
|
+
padding?: number | undefined;
|
1991
|
+
}
|
1992
|
+
interface RsaPrivateKey {
|
1993
|
+
key: KeyLike;
|
1994
|
+
passphrase?: string | undefined;
|
1995
|
+
/**
|
1996
|
+
* @default 'sha1'
|
1997
|
+
*/
|
1998
|
+
oaepHash?: string | undefined;
|
1999
|
+
oaepLabel?: NodeJS.TypedArray | undefined;
|
2000
|
+
padding?: number | undefined;
|
2001
|
+
}
|
2002
|
+
/**
|
2003
|
+
* Encrypts the content of `buffer` with `key` and returns a new `Buffer` with encrypted content. The returned data can be decrypted using
|
2004
|
+
* the corresponding private key, for example using {@link privateDecrypt}.
|
2005
|
+
*
|
2006
|
+
* If `key` is not a `KeyObject`, this function behaves as if`key` had been passed to {@link createPublicKey}. If it is an
|
2007
|
+
* object, the `padding` property can be passed. Otherwise, this function uses`RSA_PKCS1_OAEP_PADDING`.
|
2008
|
+
*
|
2009
|
+
* Because RSA public keys can be derived from private keys, a private key may
|
2010
|
+
* be passed instead of a public key.
|
2011
|
+
* @since v0.11.14
|
2012
|
+
*/
|
2013
|
+
function publicEncrypt(key: RsaPublicKey | RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
|
2014
|
+
/**
|
2015
|
+
* Decrypts `buffer` with `key`.`buffer` was previously encrypted using
|
2016
|
+
* the corresponding private key, for example using {@link privateEncrypt}.
|
2017
|
+
*
|
2018
|
+
* If `key` is not a `KeyObject`, this function behaves as if`key` had been passed to {@link createPublicKey}. If it is an
|
2019
|
+
* object, the `padding` property can be passed. Otherwise, this function uses`RSA_PKCS1_PADDING`.
|
2020
|
+
*
|
2021
|
+
* Because RSA public keys can be derived from private keys, a private key may
|
2022
|
+
* be passed instead of a public key.
|
2023
|
+
* @since v1.1.0
|
2024
|
+
*/
|
2025
|
+
function publicDecrypt(key: RsaPublicKey | RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
|
2026
|
+
/**
|
2027
|
+
* Decrypts `buffer` with `privateKey`. `buffer` was previously encrypted using
|
2028
|
+
* the corresponding public key, for example using {@link publicEncrypt}.
|
2029
|
+
*
|
2030
|
+
* If `privateKey` is not a `KeyObject`, this function behaves as if`privateKey` had been passed to {@link createPrivateKey}. If it is an
|
2031
|
+
* object, the `padding` property can be passed. Otherwise, this function uses`RSA_PKCS1_OAEP_PADDING`.
|
2032
|
+
* @since v0.11.14
|
2033
|
+
*/
|
2034
|
+
function privateDecrypt(privateKey: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
|
2035
|
+
/**
|
2036
|
+
* Encrypts `buffer` with `privateKey`. The returned data can be decrypted using
|
2037
|
+
* the corresponding public key, for example using {@link publicDecrypt}.
|
2038
|
+
*
|
2039
|
+
* If `privateKey` is not a `KeyObject`, this function behaves as if`privateKey` had been passed to {@link createPrivateKey}. If it is an
|
2040
|
+
* object, the `padding` property can be passed. Otherwise, this function uses`RSA_PKCS1_PADDING`.
|
2041
|
+
* @since v1.1.0
|
2042
|
+
*/
|
2043
|
+
function privateEncrypt(privateKey: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
|
2044
|
+
/**
|
2045
|
+
* ```js
|
2046
|
+
* const {
|
2047
|
+
* getCiphers
|
2048
|
+
* } = await import('crypto');
|
2049
|
+
*
|
2050
|
+
* console.log(getCiphers()); // ['aes-128-cbc', 'aes-128-ccm', ...]
|
2051
|
+
* ```
|
2052
|
+
* @since v0.9.3
|
2053
|
+
* @return An array with the names of the supported cipher algorithms.
|
2054
|
+
*/
|
2055
|
+
function getCiphers(): string[];
|
2056
|
+
/**
|
2057
|
+
* ```js
|
2058
|
+
* const {
|
2059
|
+
* getCurves
|
2060
|
+
* } = await import('crypto');
|
2061
|
+
*
|
2062
|
+
* console.log(getCurves()); // ['Oakley-EC2N-3', 'Oakley-EC2N-4', ...]
|
2063
|
+
* ```
|
2064
|
+
* @since v2.3.0
|
2065
|
+
* @return An array with the names of the supported elliptic curves.
|
2066
|
+
*/
|
2067
|
+
function getCurves(): string[];
|
2068
|
+
/**
|
2069
|
+
* @since v10.0.0
|
2070
|
+
* @return `1` if and only if a FIPS compliant crypto provider is currently in use, `0` otherwise. A future semver-major release may change the return type of this API to a {boolean}.
|
2071
|
+
*/
|
2072
|
+
function getFips(): 1 | 0;
|
2073
|
+
/**
|
2074
|
+
* ```js
|
2075
|
+
* const {
|
2076
|
+
* getHashes
|
2077
|
+
* } = await import('crypto');
|
2078
|
+
*
|
2079
|
+
* console.log(getHashes()); // ['DSA', 'DSA-SHA', 'DSA-SHA1', ...]
|
2080
|
+
* ```
|
2081
|
+
* @since v0.9.3
|
2082
|
+
* @return An array of the names of the supported hash algorithms, such as `'RSA-SHA256'`. Hash algorithms are also called "digest" algorithms.
|
2083
|
+
*/
|
2084
|
+
function getHashes(): string[];
|
2085
|
+
/**
|
2086
|
+
* The `ECDH` class is a utility for creating Elliptic Curve Diffie-Hellman (ECDH)
|
2087
|
+
* key exchanges.
|
2088
|
+
*
|
2089
|
+
* Instances of the `ECDH` class can be created using the {@link createECDH} function.
|
2090
|
+
*
|
2091
|
+
* ```js
|
2092
|
+
* import assert from 'assert';
|
2093
|
+
*
|
2094
|
+
* const {
|
2095
|
+
* createECDH
|
2096
|
+
* } = await import('crypto');
|
2097
|
+
*
|
2098
|
+
* // Generate Alice's keys...
|
2099
|
+
* const alice = createECDH('secp521r1');
|
2100
|
+
* const aliceKey = alice.generateKeys();
|
2101
|
+
*
|
2102
|
+
* // Generate Bob's keys...
|
2103
|
+
* const bob = createECDH('secp521r1');
|
2104
|
+
* const bobKey = bob.generateKeys();
|
2105
|
+
*
|
2106
|
+
* // Exchange and generate the secret...
|
2107
|
+
* const aliceSecret = alice.computeSecret(bobKey);
|
2108
|
+
* const bobSecret = bob.computeSecret(aliceKey);
|
2109
|
+
*
|
2110
|
+
* assert.strictEqual(aliceSecret.toString('hex'), bobSecret.toString('hex'));
|
2111
|
+
* // OK
|
2112
|
+
* ```
|
2113
|
+
* @since v0.11.14
|
2114
|
+
*/
|
2115
|
+
class ECDH {
|
2116
|
+
private constructor();
|
2117
|
+
/**
|
2118
|
+
* Converts the EC Diffie-Hellman public key specified by `key` and `curve` to the
|
2119
|
+
* format specified by `format`. The `format` argument specifies point encoding
|
2120
|
+
* and can be `'compressed'`, `'uncompressed'` or `'hybrid'`. The supplied key is
|
2121
|
+
* interpreted using the specified `inputEncoding`, and the returned key is encoded
|
2122
|
+
* using the specified `outputEncoding`.
|
2123
|
+
*
|
2124
|
+
* Use {@link getCurves} to obtain a list of available curve names.
|
2125
|
+
* On recent OpenSSL releases, `openssl ecparam -list_curves` will also display
|
2126
|
+
* the name and description of each available elliptic curve.
|
2127
|
+
*
|
2128
|
+
* If `format` is not specified the point will be returned in `'uncompressed'`format.
|
2129
|
+
*
|
2130
|
+
* If the `inputEncoding` is not provided, `key` is expected to be a `Buffer`,`TypedArray`, or `DataView`.
|
2131
|
+
*
|
2132
|
+
* Example (uncompressing a key):
|
2133
|
+
*
|
2134
|
+
* ```js
|
2135
|
+
* const {
|
2136
|
+
* createECDH,
|
2137
|
+
* ECDH
|
2138
|
+
* } = await import('crypto');
|
2139
|
+
*
|
2140
|
+
* const ecdh = createECDH('secp256k1');
|
2141
|
+
* ecdh.generateKeys();
|
2142
|
+
*
|
2143
|
+
* const compressedKey = ecdh.getPublicKey('hex', 'compressed');
|
2144
|
+
*
|
2145
|
+
* const uncompressedKey = ECDH.convertKey(compressedKey,
|
2146
|
+
* 'secp256k1',
|
2147
|
+
* 'hex',
|
2148
|
+
* 'hex',
|
2149
|
+
* 'uncompressed');
|
2150
|
+
*
|
2151
|
+
* // The converted key and the uncompressed public key should be the same
|
2152
|
+
* console.log(uncompressedKey === ecdh.getPublicKey('hex'));
|
2153
|
+
* ```
|
2154
|
+
* @since v10.0.0
|
2155
|
+
* @param inputEncoding The `encoding` of the `key` string.
|
2156
|
+
* @param outputEncoding The `encoding` of the return value.
|
2157
|
+
* @param [format='uncompressed']
|
2158
|
+
*/
|
2159
|
+
static convertKey(
|
2160
|
+
key: BinaryLike,
|
2161
|
+
curve: string,
|
2162
|
+
inputEncoding?: BinaryToTextEncoding,
|
2163
|
+
outputEncoding?: 'latin1' | 'hex' | 'base64' | 'base64url',
|
2164
|
+
format?: 'uncompressed' | 'compressed' | 'hybrid'
|
2165
|
+
): Buffer | string;
|
2166
|
+
/**
|
2167
|
+
* Generates private and public EC Diffie-Hellman key values, and returns
|
2168
|
+
* the public key in the specified `format` and `encoding`. This key should be
|
2169
|
+
* transferred to the other party.
|
2170
|
+
*
|
2171
|
+
* The `format` argument specifies point encoding and can be `'compressed'` or`'uncompressed'`. If `format` is not specified, the point will be returned in`'uncompressed'` format.
|
2172
|
+
*
|
2173
|
+
* If `encoding` is provided a string is returned; otherwise a `Buffer` is returned.
|
2174
|
+
* @since v0.11.14
|
2175
|
+
* @param encoding The `encoding` of the return value.
|
2176
|
+
* @param [format='uncompressed']
|
2177
|
+
*/
|
2178
|
+
generateKeys(): Buffer;
|
2179
|
+
generateKeys(encoding: BinaryToTextEncoding, format?: ECDHKeyFormat): string;
|
2180
|
+
/**
|
2181
|
+
* Computes the shared secret using `otherPublicKey` as the other
|
2182
|
+
* party's public key and returns the computed shared secret. The supplied
|
2183
|
+
* key is interpreted using specified `inputEncoding`, and the returned secret
|
2184
|
+
* is encoded using the specified `outputEncoding`.
|
2185
|
+
* If the `inputEncoding` is not
|
2186
|
+
* provided, `otherPublicKey` is expected to be a `Buffer`, `TypedArray`, or`DataView`.
|
2187
|
+
*
|
2188
|
+
* If `outputEncoding` is given a string will be returned; otherwise a `Buffer` is returned.
|
2189
|
+
*
|
2190
|
+
* `ecdh.computeSecret` will throw an`ERR_CRYPTO_ECDH_INVALID_PUBLIC_KEY` error when `otherPublicKey`lies outside of the elliptic curve. Since `otherPublicKey` is
|
2191
|
+
* usually supplied from a remote user over an insecure network,
|
2192
|
+
* be sure to handle this exception accordingly.
|
2193
|
+
* @since v0.11.14
|
2194
|
+
* @param inputEncoding The `encoding` of the `otherPublicKey` string.
|
2195
|
+
* @param outputEncoding The `encoding` of the return value.
|
2196
|
+
*/
|
2197
|
+
computeSecret(otherPublicKey: NodeJS.ArrayBufferView): Buffer;
|
2198
|
+
computeSecret(otherPublicKey: string, inputEncoding: BinaryToTextEncoding): Buffer;
|
2199
|
+
computeSecret(otherPublicKey: NodeJS.ArrayBufferView, outputEncoding: BinaryToTextEncoding): string;
|
2200
|
+
computeSecret(otherPublicKey: string, inputEncoding: BinaryToTextEncoding, outputEncoding: BinaryToTextEncoding): string;
|
2201
|
+
/**
|
2202
|
+
* If `encoding` is specified, a string is returned; otherwise a `Buffer` is
|
2203
|
+
* returned.
|
2204
|
+
* @since v0.11.14
|
2205
|
+
* @param encoding The `encoding` of the return value.
|
2206
|
+
* @return The EC Diffie-Hellman in the specified `encoding`.
|
2207
|
+
*/
|
2208
|
+
getPrivateKey(): Buffer;
|
2209
|
+
getPrivateKey(encoding: BinaryToTextEncoding): string;
|
2210
|
+
/**
|
2211
|
+
* The `format` argument specifies point encoding and can be `'compressed'` or`'uncompressed'`. If `format` is not specified the point will be returned in`'uncompressed'` format.
|
2212
|
+
*
|
2213
|
+
* If `encoding` is specified, a string is returned; otherwise a `Buffer` is
|
2214
|
+
* returned.
|
2215
|
+
* @since v0.11.14
|
2216
|
+
* @param encoding The `encoding` of the return value.
|
2217
|
+
* @param [format='uncompressed']
|
2218
|
+
* @return The EC Diffie-Hellman public key in the specified `encoding` and `format`.
|
2219
|
+
*/
|
2220
|
+
getPublicKey(): Buffer;
|
2221
|
+
getPublicKey(encoding: BinaryToTextEncoding, format?: ECDHKeyFormat): string;
|
2222
|
+
/**
|
2223
|
+
* Sets the EC Diffie-Hellman private key.
|
2224
|
+
* If `encoding` is provided, `privateKey` is expected
|
2225
|
+
* to be a string; otherwise `privateKey` is expected to be a `Buffer`,`TypedArray`, or `DataView`.
|
2226
|
+
*
|
2227
|
+
* If `privateKey` is not valid for the curve specified when the `ECDH` object was
|
2228
|
+
* created, an error is thrown. Upon setting the private key, the associated
|
2229
|
+
* public point (key) is also generated and set in the `ECDH` object.
|
2230
|
+
* @since v0.11.14
|
2231
|
+
* @param encoding The `encoding` of the `privateKey` string.
|
2232
|
+
*/
|
2233
|
+
setPrivateKey(privateKey: NodeJS.ArrayBufferView): void;
|
2234
|
+
setPrivateKey(privateKey: string, encoding: BinaryToTextEncoding): void;
|
2235
|
+
}
|
2236
|
+
/**
|
2237
|
+
* Creates an Elliptic Curve Diffie-Hellman (`ECDH`) key exchange object using a
|
2238
|
+
* predefined curve specified by the `curveName` string. Use {@link getCurves} to obtain a list of available curve names. On recent
|
2239
|
+
* OpenSSL releases, `openssl ecparam -list_curves` will also display the name
|
2240
|
+
* and description of each available elliptic curve.
|
2241
|
+
* @since v0.11.14
|
2242
|
+
*/
|
2243
|
+
function createECDH(curveName: string): ECDH;
|
2244
|
+
/**
|
2245
|
+
* This function is based on a constant-time algorithm.
|
2246
|
+
* Returns true if `a` is equal to `b`, without leaking timing information that
|
2247
|
+
* would allow an attacker to guess one of the values. This is suitable for
|
2248
|
+
* comparing HMAC digests or secret values like authentication cookies or [capability urls](https://www.w3.org/TR/capability-urls/).
|
2249
|
+
*
|
2250
|
+
* `a` and `b` must both be `Buffer`s, `TypedArray`s, or `DataView`s, and they
|
2251
|
+
* must have the same byte length.
|
2252
|
+
*
|
2253
|
+
* If at least one of `a` and `b` is a `TypedArray` with more than one byte per
|
2254
|
+
* entry, such as `Uint16Array`, the result will be computed using the platform
|
2255
|
+
* byte order.
|
2256
|
+
*
|
2257
|
+
* Use of `crypto.timingSafeEqual` does not guarantee that the _surrounding_ code
|
2258
|
+
* is timing-safe. Care should be taken to ensure that the surrounding code does
|
2259
|
+
* not introduce timing vulnerabilities.
|
2260
|
+
* @since v6.6.0
|
2261
|
+
*/
|
2262
|
+
function timingSafeEqual(a: NodeJS.ArrayBufferView, b: NodeJS.ArrayBufferView): boolean;
|
2263
|
+
/** @deprecated since v10.0.0 */
|
2264
|
+
const DEFAULT_ENCODING: BufferEncoding;
|
2265
|
+
type KeyType = 'rsa' | 'rsa-pss' | 'dsa' | 'ec' | 'ed25519' | 'ed448' | 'x25519' | 'x448';
|
2266
|
+
type KeyFormat = 'pem' | 'der';
|
2267
|
+
interface BasePrivateKeyEncodingOptions<T extends KeyFormat> {
|
2268
|
+
format: T;
|
2269
|
+
cipher?: string | undefined;
|
2270
|
+
passphrase?: string | undefined;
|
2271
|
+
}
|
2272
|
+
interface KeyPairKeyObjectResult {
|
2273
|
+
publicKey: KeyObject;
|
2274
|
+
privateKey: KeyObject;
|
2275
|
+
}
|
2276
|
+
interface ED25519KeyPairKeyObjectOptions {}
|
2277
|
+
interface ED448KeyPairKeyObjectOptions {}
|
2278
|
+
interface X25519KeyPairKeyObjectOptions {}
|
2279
|
+
interface X448KeyPairKeyObjectOptions {}
|
2280
|
+
interface ECKeyPairKeyObjectOptions {
|
2281
|
+
/**
|
2282
|
+
* Name of the curve to use
|
2283
|
+
*/
|
2284
|
+
namedCurve: string;
|
2285
|
+
}
|
2286
|
+
interface RSAKeyPairKeyObjectOptions {
|
2287
|
+
/**
|
2288
|
+
* Key size in bits
|
2289
|
+
*/
|
2290
|
+
modulusLength: number;
|
2291
|
+
/**
|
2292
|
+
* Public exponent
|
2293
|
+
* @default 0x10001
|
2294
|
+
*/
|
2295
|
+
publicExponent?: number | undefined;
|
2296
|
+
}
|
2297
|
+
interface RSAPSSKeyPairKeyObjectOptions {
|
2298
|
+
/**
|
2299
|
+
* Key size in bits
|
2300
|
+
*/
|
2301
|
+
modulusLength: number;
|
2302
|
+
/**
|
2303
|
+
* Public exponent
|
2304
|
+
* @default 0x10001
|
2305
|
+
*/
|
2306
|
+
publicExponent?: number | undefined;
|
2307
|
+
/**
|
2308
|
+
* Name of the message digest
|
2309
|
+
*/
|
2310
|
+
hashAlgorithm?: string;
|
2311
|
+
/**
|
2312
|
+
* Name of the message digest used by MGF1
|
2313
|
+
*/
|
2314
|
+
mgf1HashAlgorithm?: string;
|
2315
|
+
/**
|
2316
|
+
* Minimal salt length in bytes
|
2317
|
+
*/
|
2318
|
+
saltLength?: string;
|
2319
|
+
}
|
2320
|
+
interface DSAKeyPairKeyObjectOptions {
|
2321
|
+
/**
|
2322
|
+
* Key size in bits
|
2323
|
+
*/
|
2324
|
+
modulusLength: number;
|
2325
|
+
/**
|
2326
|
+
* Size of q in bits
|
2327
|
+
*/
|
2328
|
+
divisorLength: number;
|
2329
|
+
}
|
2330
|
+
interface RSAKeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
|
2331
|
+
/**
|
2332
|
+
* Key size in bits
|
2333
|
+
*/
|
2334
|
+
modulusLength: number;
|
2335
|
+
/**
|
2336
|
+
* Public exponent
|
2337
|
+
* @default 0x10001
|
2338
|
+
*/
|
2339
|
+
publicExponent?: number | undefined;
|
2340
|
+
publicKeyEncoding: {
|
2341
|
+
type: 'pkcs1' | 'spki';
|
2342
|
+
format: PubF;
|
2343
|
+
};
|
2344
|
+
privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
|
2345
|
+
type: 'pkcs1' | 'pkcs8';
|
2346
|
+
};
|
2347
|
+
}
|
2348
|
+
interface RSAPSSKeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
|
2349
|
+
/**
|
2350
|
+
* Key size in bits
|
2351
|
+
*/
|
2352
|
+
modulusLength: number;
|
2353
|
+
/**
|
2354
|
+
* Public exponent
|
2355
|
+
* @default 0x10001
|
2356
|
+
*/
|
2357
|
+
publicExponent?: number | undefined;
|
2358
|
+
/**
|
2359
|
+
* Name of the message digest
|
2360
|
+
*/
|
2361
|
+
hashAlgorithm?: string;
|
2362
|
+
/**
|
2363
|
+
* Name of the message digest used by MGF1
|
2364
|
+
*/
|
2365
|
+
mgf1HashAlgorithm?: string;
|
2366
|
+
/**
|
2367
|
+
* Minimal salt length in bytes
|
2368
|
+
*/
|
2369
|
+
saltLength?: string;
|
2370
|
+
publicKeyEncoding: {
|
2371
|
+
type: 'spki';
|
2372
|
+
format: PubF;
|
2373
|
+
};
|
2374
|
+
privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
|
2375
|
+
type: 'pkcs8';
|
2376
|
+
};
|
2377
|
+
}
|
2378
|
+
interface DSAKeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
|
2379
|
+
/**
|
2380
|
+
* Key size in bits
|
2381
|
+
*/
|
2382
|
+
modulusLength: number;
|
2383
|
+
/**
|
2384
|
+
* Size of q in bits
|
2385
|
+
*/
|
2386
|
+
divisorLength: number;
|
2387
|
+
publicKeyEncoding: {
|
2388
|
+
type: 'spki';
|
2389
|
+
format: PubF;
|
2390
|
+
};
|
2391
|
+
privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
|
2392
|
+
type: 'pkcs8';
|
2393
|
+
};
|
2394
|
+
}
|
2395
|
+
interface ECKeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
|
2396
|
+
/**
|
2397
|
+
* Name of the curve to use.
|
2398
|
+
*/
|
2399
|
+
namedCurve: string;
|
2400
|
+
publicKeyEncoding: {
|
2401
|
+
type: 'pkcs1' | 'spki';
|
2402
|
+
format: PubF;
|
2403
|
+
};
|
2404
|
+
privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
|
2405
|
+
type: 'sec1' | 'pkcs8';
|
2406
|
+
};
|
2407
|
+
}
|
2408
|
+
interface ED25519KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
|
2409
|
+
publicKeyEncoding: {
|
2410
|
+
type: 'spki';
|
2411
|
+
format: PubF;
|
2412
|
+
};
|
2413
|
+
privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
|
2414
|
+
type: 'pkcs8';
|
2415
|
+
};
|
2416
|
+
}
|
2417
|
+
interface ED448KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
|
2418
|
+
publicKeyEncoding: {
|
2419
|
+
type: 'spki';
|
2420
|
+
format: PubF;
|
2421
|
+
};
|
2422
|
+
privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
|
2423
|
+
type: 'pkcs8';
|
2424
|
+
};
|
2425
|
+
}
|
2426
|
+
interface X25519KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
|
2427
|
+
publicKeyEncoding: {
|
2428
|
+
type: 'spki';
|
2429
|
+
format: PubF;
|
2430
|
+
};
|
2431
|
+
privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
|
2432
|
+
type: 'pkcs8';
|
2433
|
+
};
|
2434
|
+
}
|
2435
|
+
interface X448KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
|
2436
|
+
publicKeyEncoding: {
|
2437
|
+
type: 'spki';
|
2438
|
+
format: PubF;
|
2439
|
+
};
|
2440
|
+
privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
|
2441
|
+
type: 'pkcs8';
|
2442
|
+
};
|
2443
|
+
}
|
2444
|
+
interface KeyPairSyncResult<T1 extends string | Buffer, T2 extends string | Buffer> {
|
2445
|
+
publicKey: T1;
|
2446
|
+
privateKey: T2;
|
2447
|
+
}
|
2448
|
+
/**
|
2449
|
+
* Generates a new asymmetric key pair of the given `type`. RSA, RSA-PSS, DSA, EC,
|
2450
|
+
* Ed25519, Ed448, X25519, X448, and DH are currently supported.
|
2451
|
+
*
|
2452
|
+
* If a `publicKeyEncoding` or `privateKeyEncoding` was specified, this function
|
2453
|
+
* behaves as if `keyObject.export()` had been called on its result. Otherwise,
|
2454
|
+
* the respective part of the key is returned as a `KeyObject`.
|
2455
|
+
*
|
2456
|
+
* When encoding public keys, it is recommended to use `'spki'`. When encoding
|
2457
|
+
* private keys, it is recommended to use `'pkcs8'` with a strong passphrase,
|
2458
|
+
* and to keep the passphrase confidential.
|
2459
|
+
*
|
2460
|
+
* ```js
|
2461
|
+
* const {
|
2462
|
+
* generateKeyPairSync
|
2463
|
+
* } = await import('crypto');
|
2464
|
+
*
|
2465
|
+
* const {
|
2466
|
+
* publicKey,
|
2467
|
+
* privateKey,
|
2468
|
+
* } = generateKeyPairSync('rsa', {
|
2469
|
+
* modulusLength: 4096,
|
2470
|
+
* publicKeyEncoding: {
|
2471
|
+
* type: 'spki',
|
2472
|
+
* format: 'pem'
|
2473
|
+
* },
|
2474
|
+
* privateKeyEncoding: {
|
2475
|
+
* type: 'pkcs8',
|
2476
|
+
* format: 'pem',
|
2477
|
+
* cipher: 'aes-256-cbc',
|
2478
|
+
* passphrase: 'top secret'
|
2479
|
+
* }
|
2480
|
+
* });
|
2481
|
+
* ```
|
2482
|
+
*
|
2483
|
+
* The return value `{ publicKey, privateKey }` represents the generated key pair.
|
2484
|
+
* When PEM encoding was selected, the respective key will be a string, otherwise
|
2485
|
+
* it will be a buffer containing the data encoded as DER.
|
2486
|
+
* @since v10.12.0
|
2487
|
+
* @param type Must be `'rsa'`, `'rsa-pss'`, `'dsa'`, `'ec'`, `'ed25519'`, `'ed448'`, `'x25519'`, `'x448'`, or `'dh'`.
|
2488
|
+
*/
|
2489
|
+
function generateKeyPairSync(type: 'rsa', options: RSAKeyPairOptions<'pem', 'pem'>): KeyPairSyncResult<string, string>;
|
2490
|
+
function generateKeyPairSync(type: 'rsa', options: RSAKeyPairOptions<'pem', 'der'>): KeyPairSyncResult<string, Buffer>;
|
2491
|
+
function generateKeyPairSync(type: 'rsa', options: RSAKeyPairOptions<'der', 'pem'>): KeyPairSyncResult<Buffer, string>;
|
2492
|
+
function generateKeyPairSync(type: 'rsa', options: RSAKeyPairOptions<'der', 'der'>): KeyPairSyncResult<Buffer, Buffer>;
|
2493
|
+
function generateKeyPairSync(type: 'rsa', options: RSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
|
2494
|
+
function generateKeyPairSync(type: 'rsa-pss', options: RSAPSSKeyPairOptions<'pem', 'pem'>): KeyPairSyncResult<string, string>;
|
2495
|
+
function generateKeyPairSync(type: 'rsa-pss', options: RSAPSSKeyPairOptions<'pem', 'der'>): KeyPairSyncResult<string, Buffer>;
|
2496
|
+
function generateKeyPairSync(type: 'rsa-pss', options: RSAPSSKeyPairOptions<'der', 'pem'>): KeyPairSyncResult<Buffer, string>;
|
2497
|
+
function generateKeyPairSync(type: 'rsa-pss', options: RSAPSSKeyPairOptions<'der', 'der'>): KeyPairSyncResult<Buffer, Buffer>;
|
2498
|
+
function generateKeyPairSync(type: 'rsa-pss', options: RSAPSSKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
|
2499
|
+
function generateKeyPairSync(type: 'dsa', options: DSAKeyPairOptions<'pem', 'pem'>): KeyPairSyncResult<string, string>;
|
2500
|
+
function generateKeyPairSync(type: 'dsa', options: DSAKeyPairOptions<'pem', 'der'>): KeyPairSyncResult<string, Buffer>;
|
2501
|
+
function generateKeyPairSync(type: 'dsa', options: DSAKeyPairOptions<'der', 'pem'>): KeyPairSyncResult<Buffer, string>;
|
2502
|
+
function generateKeyPairSync(type: 'dsa', options: DSAKeyPairOptions<'der', 'der'>): KeyPairSyncResult<Buffer, Buffer>;
|
2503
|
+
function generateKeyPairSync(type: 'dsa', options: DSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
|
2504
|
+
function generateKeyPairSync(type: 'ec', options: ECKeyPairOptions<'pem', 'pem'>): KeyPairSyncResult<string, string>;
|
2505
|
+
function generateKeyPairSync(type: 'ec', options: ECKeyPairOptions<'pem', 'der'>): KeyPairSyncResult<string, Buffer>;
|
2506
|
+
function generateKeyPairSync(type: 'ec', options: ECKeyPairOptions<'der', 'pem'>): KeyPairSyncResult<Buffer, string>;
|
2507
|
+
function generateKeyPairSync(type: 'ec', options: ECKeyPairOptions<'der', 'der'>): KeyPairSyncResult<Buffer, Buffer>;
|
2508
|
+
function generateKeyPairSync(type: 'ec', options: ECKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
|
2509
|
+
function generateKeyPairSync(type: 'ed25519', options: ED25519KeyPairOptions<'pem', 'pem'>): KeyPairSyncResult<string, string>;
|
2510
|
+
function generateKeyPairSync(type: 'ed25519', options: ED25519KeyPairOptions<'pem', 'der'>): KeyPairSyncResult<string, Buffer>;
|
2511
|
+
function generateKeyPairSync(type: 'ed25519', options: ED25519KeyPairOptions<'der', 'pem'>): KeyPairSyncResult<Buffer, string>;
|
2512
|
+
function generateKeyPairSync(type: 'ed25519', options: ED25519KeyPairOptions<'der', 'der'>): KeyPairSyncResult<Buffer, Buffer>;
|
2513
|
+
function generateKeyPairSync(type: 'ed25519', options?: ED25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
|
2514
|
+
function generateKeyPairSync(type: 'ed448', options: ED448KeyPairOptions<'pem', 'pem'>): KeyPairSyncResult<string, string>;
|
2515
|
+
function generateKeyPairSync(type: 'ed448', options: ED448KeyPairOptions<'pem', 'der'>): KeyPairSyncResult<string, Buffer>;
|
2516
|
+
function generateKeyPairSync(type: 'ed448', options: ED448KeyPairOptions<'der', 'pem'>): KeyPairSyncResult<Buffer, string>;
|
2517
|
+
function generateKeyPairSync(type: 'ed448', options: ED448KeyPairOptions<'der', 'der'>): KeyPairSyncResult<Buffer, Buffer>;
|
2518
|
+
function generateKeyPairSync(type: 'ed448', options?: ED448KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
|
2519
|
+
function generateKeyPairSync(type: 'x25519', options: X25519KeyPairOptions<'pem', 'pem'>): KeyPairSyncResult<string, string>;
|
2520
|
+
function generateKeyPairSync(type: 'x25519', options: X25519KeyPairOptions<'pem', 'der'>): KeyPairSyncResult<string, Buffer>;
|
2521
|
+
function generateKeyPairSync(type: 'x25519', options: X25519KeyPairOptions<'der', 'pem'>): KeyPairSyncResult<Buffer, string>;
|
2522
|
+
function generateKeyPairSync(type: 'x25519', options: X25519KeyPairOptions<'der', 'der'>): KeyPairSyncResult<Buffer, Buffer>;
|
2523
|
+
function generateKeyPairSync(type: 'x25519', options?: X25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
|
2524
|
+
function generateKeyPairSync(type: 'x448', options: X448KeyPairOptions<'pem', 'pem'>): KeyPairSyncResult<string, string>;
|
2525
|
+
function generateKeyPairSync(type: 'x448', options: X448KeyPairOptions<'pem', 'der'>): KeyPairSyncResult<string, Buffer>;
|
2526
|
+
function generateKeyPairSync(type: 'x448', options: X448KeyPairOptions<'der', 'pem'>): KeyPairSyncResult<Buffer, string>;
|
2527
|
+
function generateKeyPairSync(type: 'x448', options: X448KeyPairOptions<'der', 'der'>): KeyPairSyncResult<Buffer, Buffer>;
|
2528
|
+
function generateKeyPairSync(type: 'x448', options?: X448KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
|
2529
|
+
/**
|
2530
|
+
* Generates a new asymmetric key pair of the given `type`. RSA, RSA-PSS, DSA, EC,
|
2531
|
+
* Ed25519, Ed448, X25519, X448, and DH are currently supported.
|
2532
|
+
*
|
2533
|
+
* If a `publicKeyEncoding` or `privateKeyEncoding` was specified, this function
|
2534
|
+
* behaves as if `keyObject.export()` had been called on its result. Otherwise,
|
2535
|
+
* the respective part of the key is returned as a `KeyObject`.
|
2536
|
+
*
|
2537
|
+
* It is recommended to encode public keys as `'spki'` and private keys as`'pkcs8'` with encryption for long-term storage:
|
2538
|
+
*
|
2539
|
+
* ```js
|
2540
|
+
* const {
|
2541
|
+
* generateKeyPair
|
2542
|
+
* } = await import('crypto');
|
2543
|
+
*
|
2544
|
+
* generateKeyPair('rsa', {
|
2545
|
+
* modulusLength: 4096,
|
2546
|
+
* publicKeyEncoding: {
|
2547
|
+
* type: 'spki',
|
2548
|
+
* format: 'pem'
|
2549
|
+
* },
|
2550
|
+
* privateKeyEncoding: {
|
2551
|
+
* type: 'pkcs8',
|
2552
|
+
* format: 'pem',
|
2553
|
+
* cipher: 'aes-256-cbc',
|
2554
|
+
* passphrase: 'top secret'
|
2555
|
+
* }
|
2556
|
+
* }, (err, publicKey, privateKey) => {
|
2557
|
+
* // Handle errors and use the generated key pair.
|
2558
|
+
* });
|
2559
|
+
* ```
|
2560
|
+
*
|
2561
|
+
* On completion, `callback` will be called with `err` set to `undefined` and`publicKey` / `privateKey` representing the generated key pair.
|
2562
|
+
*
|
2563
|
+
* If this method is invoked as its `util.promisify()` ed version, it returns
|
2564
|
+
* a `Promise` for an `Object` with `publicKey` and `privateKey` properties.
|
2565
|
+
* @since v10.12.0
|
2566
|
+
* @param type Must be `'rsa'`, `'rsa-pss'`, `'dsa'`, `'ec'`, `'ed25519'`, `'ed448'`, `'x25519'`, `'x448'`, or `'dh'`.
|
2567
|
+
*/
|
2568
|
+
function generateKeyPair(type: 'rsa', options: RSAKeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void;
|
2569
|
+
function generateKeyPair(type: 'rsa', options: RSAKeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void;
|
2570
|
+
function generateKeyPair(type: 'rsa', options: RSAKeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void;
|
2571
|
+
function generateKeyPair(type: 'rsa', options: RSAKeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void;
|
2572
|
+
function generateKeyPair(type: 'rsa', options: RSAKeyPairKeyObjectOptions, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void;
|
2573
|
+
function generateKeyPair(type: 'rsa-pss', options: RSAPSSKeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void;
|
2574
|
+
function generateKeyPair(type: 'rsa-pss', options: RSAPSSKeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void;
|
2575
|
+
function generateKeyPair(type: 'rsa-pss', options: RSAPSSKeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void;
|
2576
|
+
function generateKeyPair(type: 'rsa-pss', options: RSAPSSKeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void;
|
2577
|
+
function generateKeyPair(type: 'rsa-pss', options: RSAPSSKeyPairKeyObjectOptions, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void;
|
2578
|
+
function generateKeyPair(type: 'dsa', options: DSAKeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void;
|
2579
|
+
function generateKeyPair(type: 'dsa', options: DSAKeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void;
|
2580
|
+
function generateKeyPair(type: 'dsa', options: DSAKeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void;
|
2581
|
+
function generateKeyPair(type: 'dsa', options: DSAKeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void;
|
2582
|
+
function generateKeyPair(type: 'dsa', options: DSAKeyPairKeyObjectOptions, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void;
|
2583
|
+
function generateKeyPair(type: 'ec', options: ECKeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void;
|
2584
|
+
function generateKeyPair(type: 'ec', options: ECKeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void;
|
2585
|
+
function generateKeyPair(type: 'ec', options: ECKeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void;
|
2586
|
+
function generateKeyPair(type: 'ec', options: ECKeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void;
|
2587
|
+
function generateKeyPair(type: 'ec', options: ECKeyPairKeyObjectOptions, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void;
|
2588
|
+
function generateKeyPair(type: 'ed25519', options: ED25519KeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void;
|
2589
|
+
function generateKeyPair(type: 'ed25519', options: ED25519KeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void;
|
2590
|
+
function generateKeyPair(type: 'ed25519', options: ED25519KeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void;
|
2591
|
+
function generateKeyPair(type: 'ed25519', options: ED25519KeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void;
|
2592
|
+
function generateKeyPair(type: 'ed25519', options: ED25519KeyPairKeyObjectOptions | undefined, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void;
|
2593
|
+
function generateKeyPair(type: 'ed448', options: ED448KeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void;
|
2594
|
+
function generateKeyPair(type: 'ed448', options: ED448KeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void;
|
2595
|
+
function generateKeyPair(type: 'ed448', options: ED448KeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void;
|
2596
|
+
function generateKeyPair(type: 'ed448', options: ED448KeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void;
|
2597
|
+
function generateKeyPair(type: 'ed448', options: ED448KeyPairKeyObjectOptions | undefined, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void;
|
2598
|
+
function generateKeyPair(type: 'x25519', options: X25519KeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void;
|
2599
|
+
function generateKeyPair(type: 'x25519', options: X25519KeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void;
|
2600
|
+
function generateKeyPair(type: 'x25519', options: X25519KeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void;
|
2601
|
+
function generateKeyPair(type: 'x25519', options: X25519KeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void;
|
2602
|
+
function generateKeyPair(type: 'x25519', options: X25519KeyPairKeyObjectOptions | undefined, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void;
|
2603
|
+
function generateKeyPair(type: 'x448', options: X448KeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void;
|
2604
|
+
function generateKeyPair(type: 'x448', options: X448KeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void;
|
2605
|
+
function generateKeyPair(type: 'x448', options: X448KeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void;
|
2606
|
+
function generateKeyPair(type: 'x448', options: X448KeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void;
|
2607
|
+
function generateKeyPair(type: 'x448', options: X448KeyPairKeyObjectOptions | undefined, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void;
|
2608
|
+
namespace generateKeyPair {
|
2609
|
+
function __promisify__(
|
2610
|
+
type: 'rsa',
|
2611
|
+
options: RSAKeyPairOptions<'pem', 'pem'>
|
2612
|
+
): Promise<{
|
2613
|
+
publicKey: string;
|
2614
|
+
privateKey: string;
|
2615
|
+
}>;
|
2616
|
+
function __promisify__(
|
2617
|
+
type: 'rsa',
|
2618
|
+
options: RSAKeyPairOptions<'pem', 'der'>
|
2619
|
+
): Promise<{
|
2620
|
+
publicKey: string;
|
2621
|
+
privateKey: Buffer;
|
2622
|
+
}>;
|
2623
|
+
function __promisify__(
|
2624
|
+
type: 'rsa',
|
2625
|
+
options: RSAKeyPairOptions<'der', 'pem'>
|
2626
|
+
): Promise<{
|
2627
|
+
publicKey: Buffer;
|
2628
|
+
privateKey: string;
|
2629
|
+
}>;
|
2630
|
+
function __promisify__(
|
2631
|
+
type: 'rsa',
|
2632
|
+
options: RSAKeyPairOptions<'der', 'der'>
|
2633
|
+
): Promise<{
|
2634
|
+
publicKey: Buffer;
|
2635
|
+
privateKey: Buffer;
|
2636
|
+
}>;
|
2637
|
+
function __promisify__(type: 'rsa', options: RSAKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
|
2638
|
+
function __promisify__(
|
2639
|
+
type: 'rsa-pss',
|
2640
|
+
options: RSAPSSKeyPairOptions<'pem', 'pem'>
|
2641
|
+
): Promise<{
|
2642
|
+
publicKey: string;
|
2643
|
+
privateKey: string;
|
2644
|
+
}>;
|
2645
|
+
function __promisify__(
|
2646
|
+
type: 'rsa-pss',
|
2647
|
+
options: RSAPSSKeyPairOptions<'pem', 'der'>
|
2648
|
+
): Promise<{
|
2649
|
+
publicKey: string;
|
2650
|
+
privateKey: Buffer;
|
2651
|
+
}>;
|
2652
|
+
function __promisify__(
|
2653
|
+
type: 'rsa-pss',
|
2654
|
+
options: RSAPSSKeyPairOptions<'der', 'pem'>
|
2655
|
+
): Promise<{
|
2656
|
+
publicKey: Buffer;
|
2657
|
+
privateKey: string;
|
2658
|
+
}>;
|
2659
|
+
function __promisify__(
|
2660
|
+
type: 'rsa-pss',
|
2661
|
+
options: RSAPSSKeyPairOptions<'der', 'der'>
|
2662
|
+
): Promise<{
|
2663
|
+
publicKey: Buffer;
|
2664
|
+
privateKey: Buffer;
|
2665
|
+
}>;
|
2666
|
+
function __promisify__(type: 'rsa-pss', options: RSAPSSKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
|
2667
|
+
function __promisify__(
|
2668
|
+
type: 'dsa',
|
2669
|
+
options: DSAKeyPairOptions<'pem', 'pem'>
|
2670
|
+
): Promise<{
|
2671
|
+
publicKey: string;
|
2672
|
+
privateKey: string;
|
2673
|
+
}>;
|
2674
|
+
function __promisify__(
|
2675
|
+
type: 'dsa',
|
2676
|
+
options: DSAKeyPairOptions<'pem', 'der'>
|
2677
|
+
): Promise<{
|
2678
|
+
publicKey: string;
|
2679
|
+
privateKey: Buffer;
|
2680
|
+
}>;
|
2681
|
+
function __promisify__(
|
2682
|
+
type: 'dsa',
|
2683
|
+
options: DSAKeyPairOptions<'der', 'pem'>
|
2684
|
+
): Promise<{
|
2685
|
+
publicKey: Buffer;
|
2686
|
+
privateKey: string;
|
2687
|
+
}>;
|
2688
|
+
function __promisify__(
|
2689
|
+
type: 'dsa',
|
2690
|
+
options: DSAKeyPairOptions<'der', 'der'>
|
2691
|
+
): Promise<{
|
2692
|
+
publicKey: Buffer;
|
2693
|
+
privateKey: Buffer;
|
2694
|
+
}>;
|
2695
|
+
function __promisify__(type: 'dsa', options: DSAKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
|
2696
|
+
function __promisify__(
|
2697
|
+
type: 'ec',
|
2698
|
+
options: ECKeyPairOptions<'pem', 'pem'>
|
2699
|
+
): Promise<{
|
2700
|
+
publicKey: string;
|
2701
|
+
privateKey: string;
|
2702
|
+
}>;
|
2703
|
+
function __promisify__(
|
2704
|
+
type: 'ec',
|
2705
|
+
options: ECKeyPairOptions<'pem', 'der'>
|
2706
|
+
): Promise<{
|
2707
|
+
publicKey: string;
|
2708
|
+
privateKey: Buffer;
|
2709
|
+
}>;
|
2710
|
+
function __promisify__(
|
2711
|
+
type: 'ec',
|
2712
|
+
options: ECKeyPairOptions<'der', 'pem'>
|
2713
|
+
): Promise<{
|
2714
|
+
publicKey: Buffer;
|
2715
|
+
privateKey: string;
|
2716
|
+
}>;
|
2717
|
+
function __promisify__(
|
2718
|
+
type: 'ec',
|
2719
|
+
options: ECKeyPairOptions<'der', 'der'>
|
2720
|
+
): Promise<{
|
2721
|
+
publicKey: Buffer;
|
2722
|
+
privateKey: Buffer;
|
2723
|
+
}>;
|
2724
|
+
function __promisify__(type: 'ec', options: ECKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
|
2725
|
+
function __promisify__(
|
2726
|
+
type: 'ed25519',
|
2727
|
+
options: ED25519KeyPairOptions<'pem', 'pem'>
|
2728
|
+
): Promise<{
|
2729
|
+
publicKey: string;
|
2730
|
+
privateKey: string;
|
2731
|
+
}>;
|
2732
|
+
function __promisify__(
|
2733
|
+
type: 'ed25519',
|
2734
|
+
options: ED25519KeyPairOptions<'pem', 'der'>
|
2735
|
+
): Promise<{
|
2736
|
+
publicKey: string;
|
2737
|
+
privateKey: Buffer;
|
2738
|
+
}>;
|
2739
|
+
function __promisify__(
|
2740
|
+
type: 'ed25519',
|
2741
|
+
options: ED25519KeyPairOptions<'der', 'pem'>
|
2742
|
+
): Promise<{
|
2743
|
+
publicKey: Buffer;
|
2744
|
+
privateKey: string;
|
2745
|
+
}>;
|
2746
|
+
function __promisify__(
|
2747
|
+
type: 'ed25519',
|
2748
|
+
options: ED25519KeyPairOptions<'der', 'der'>
|
2749
|
+
): Promise<{
|
2750
|
+
publicKey: Buffer;
|
2751
|
+
privateKey: Buffer;
|
2752
|
+
}>;
|
2753
|
+
function __promisify__(type: 'ed25519', options?: ED25519KeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
|
2754
|
+
function __promisify__(
|
2755
|
+
type: 'ed448',
|
2756
|
+
options: ED448KeyPairOptions<'pem', 'pem'>
|
2757
|
+
): Promise<{
|
2758
|
+
publicKey: string;
|
2759
|
+
privateKey: string;
|
2760
|
+
}>;
|
2761
|
+
function __promisify__(
|
2762
|
+
type: 'ed448',
|
2763
|
+
options: ED448KeyPairOptions<'pem', 'der'>
|
2764
|
+
): Promise<{
|
2765
|
+
publicKey: string;
|
2766
|
+
privateKey: Buffer;
|
2767
|
+
}>;
|
2768
|
+
function __promisify__(
|
2769
|
+
type: 'ed448',
|
2770
|
+
options: ED448KeyPairOptions<'der', 'pem'>
|
2771
|
+
): Promise<{
|
2772
|
+
publicKey: Buffer;
|
2773
|
+
privateKey: string;
|
2774
|
+
}>;
|
2775
|
+
function __promisify__(
|
2776
|
+
type: 'ed448',
|
2777
|
+
options: ED448KeyPairOptions<'der', 'der'>
|
2778
|
+
): Promise<{
|
2779
|
+
publicKey: Buffer;
|
2780
|
+
privateKey: Buffer;
|
2781
|
+
}>;
|
2782
|
+
function __promisify__(type: 'ed448', options?: ED448KeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
|
2783
|
+
function __promisify__(
|
2784
|
+
type: 'x25519',
|
2785
|
+
options: X25519KeyPairOptions<'pem', 'pem'>
|
2786
|
+
): Promise<{
|
2787
|
+
publicKey: string;
|
2788
|
+
privateKey: string;
|
2789
|
+
}>;
|
2790
|
+
function __promisify__(
|
2791
|
+
type: 'x25519',
|
2792
|
+
options: X25519KeyPairOptions<'pem', 'der'>
|
2793
|
+
): Promise<{
|
2794
|
+
publicKey: string;
|
2795
|
+
privateKey: Buffer;
|
2796
|
+
}>;
|
2797
|
+
function __promisify__(
|
2798
|
+
type: 'x25519',
|
2799
|
+
options: X25519KeyPairOptions<'der', 'pem'>
|
2800
|
+
): Promise<{
|
2801
|
+
publicKey: Buffer;
|
2802
|
+
privateKey: string;
|
2803
|
+
}>;
|
2804
|
+
function __promisify__(
|
2805
|
+
type: 'x25519',
|
2806
|
+
options: X25519KeyPairOptions<'der', 'der'>
|
2807
|
+
): Promise<{
|
2808
|
+
publicKey: Buffer;
|
2809
|
+
privateKey: Buffer;
|
2810
|
+
}>;
|
2811
|
+
function __promisify__(type: 'x25519', options?: X25519KeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
|
2812
|
+
function __promisify__(
|
2813
|
+
type: 'x448',
|
2814
|
+
options: X448KeyPairOptions<'pem', 'pem'>
|
2815
|
+
): Promise<{
|
2816
|
+
publicKey: string;
|
2817
|
+
privateKey: string;
|
2818
|
+
}>;
|
2819
|
+
function __promisify__(
|
2820
|
+
type: 'x448',
|
2821
|
+
options: X448KeyPairOptions<'pem', 'der'>
|
2822
|
+
): Promise<{
|
2823
|
+
publicKey: string;
|
2824
|
+
privateKey: Buffer;
|
2825
|
+
}>;
|
2826
|
+
function __promisify__(
|
2827
|
+
type: 'x448',
|
2828
|
+
options: X448KeyPairOptions<'der', 'pem'>
|
2829
|
+
): Promise<{
|
2830
|
+
publicKey: Buffer;
|
2831
|
+
privateKey: string;
|
2832
|
+
}>;
|
2833
|
+
function __promisify__(
|
2834
|
+
type: 'x448',
|
2835
|
+
options: X448KeyPairOptions<'der', 'der'>
|
2836
|
+
): Promise<{
|
2837
|
+
publicKey: Buffer;
|
2838
|
+
privateKey: Buffer;
|
2839
|
+
}>;
|
2840
|
+
function __promisify__(type: 'x448', options?: X448KeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
|
2841
|
+
}
|
2842
|
+
/**
|
2843
|
+
* Calculates and returns the signature for `data` using the given private key and
|
2844
|
+
* algorithm. If `algorithm` is `null` or `undefined`, then the algorithm is
|
2845
|
+
* dependent upon the key type (especially Ed25519 and Ed448).
|
2846
|
+
*
|
2847
|
+
* If `key` is not a `KeyObject`, this function behaves as if `key` had been
|
2848
|
+
* passed to {@link createPrivateKey}. If it is an object, the following
|
2849
|
+
* additional properties can be passed:
|
2850
|
+
*
|
2851
|
+
* If the `callback` function is provided this function uses libuv's threadpool.
|
2852
|
+
* @since v12.0.0
|
2853
|
+
*/
|
2854
|
+
function sign(algorithm: string | null | undefined, data: NodeJS.ArrayBufferView, key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput): Buffer;
|
2855
|
+
function sign(
|
2856
|
+
algorithm: string | null | undefined,
|
2857
|
+
data: NodeJS.ArrayBufferView,
|
2858
|
+
key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput,
|
2859
|
+
callback: (error: Error | null, data: Buffer) => void
|
2860
|
+
): void;
|
2861
|
+
/**
|
2862
|
+
* Verifies the given signature for `data` using the given key and algorithm. If`algorithm` is `null` or `undefined`, then the algorithm is dependent upon the
|
2863
|
+
* key type (especially Ed25519 and Ed448).
|
2864
|
+
*
|
2865
|
+
* If `key` is not a `KeyObject`, this function behaves as if `key` had been
|
2866
|
+
* passed to {@link createPublicKey}. If it is an object, the following
|
2867
|
+
* additional properties can be passed:
|
2868
|
+
*
|
2869
|
+
* The `signature` argument is the previously calculated signature for the `data`.
|
2870
|
+
*
|
2871
|
+
* Because public keys can be derived from private keys, a private key or a public
|
2872
|
+
* key may be passed for `key`.
|
2873
|
+
*
|
2874
|
+
* If the `callback` function is provided this function uses libuv's threadpool.
|
2875
|
+
* @since v12.0.0
|
2876
|
+
*/
|
2877
|
+
function verify(algorithm: string | null | undefined, data: NodeJS.ArrayBufferView, key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput, signature: NodeJS.ArrayBufferView): boolean;
|
2878
|
+
function verify(
|
2879
|
+
algorithm: string | null | undefined,
|
2880
|
+
data: NodeJS.ArrayBufferView,
|
2881
|
+
key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput,
|
2882
|
+
signature: NodeJS.ArrayBufferView,
|
2883
|
+
callback: (error: Error | null, result: boolean) => void
|
2884
|
+
): void;
|
2885
|
+
/**
|
2886
|
+
* Computes the Diffie-Hellman secret based on a `privateKey` and a `publicKey`.
|
2887
|
+
* Both keys must have the same `asymmetricKeyType`, which must be one of `'dh'`(for Diffie-Hellman), `'ec'` (for ECDH), `'x448'`, or `'x25519'` (for ECDH-ES).
|
2888
|
+
* @since v13.9.0, v12.17.0
|
2889
|
+
*/
|
2890
|
+
function diffieHellman(options: { privateKey: KeyObject; publicKey: KeyObject }): Buffer;
|
2891
|
+
type CipherMode = 'cbc' | 'ccm' | 'cfb' | 'ctr' | 'ecb' | 'gcm' | 'ocb' | 'ofb' | 'stream' | 'wrap' | 'xts';
|
2892
|
+
interface CipherInfoOptions {
|
2893
|
+
/**
|
2894
|
+
* A test key length.
|
2895
|
+
*/
|
2896
|
+
keyLength?: number | undefined;
|
2897
|
+
/**
|
2898
|
+
* A test IV length.
|
2899
|
+
*/
|
2900
|
+
ivLength?: number | undefined;
|
2901
|
+
}
|
2902
|
+
interface CipherInfo {
|
2903
|
+
/**
|
2904
|
+
* The name of the cipher.
|
2905
|
+
*/
|
2906
|
+
name: string;
|
2907
|
+
/**
|
2908
|
+
* The nid of the cipher.
|
2909
|
+
*/
|
2910
|
+
nid: number;
|
2911
|
+
/**
|
2912
|
+
* The block size of the cipher in bytes.
|
2913
|
+
* This property is omitted when mode is 'stream'.
|
2914
|
+
*/
|
2915
|
+
blockSize?: number | undefined;
|
2916
|
+
/**
|
2917
|
+
* The expected or default initialization vector length in bytes.
|
2918
|
+
* This property is omitted if the cipher does not use an initialization vector.
|
2919
|
+
*/
|
2920
|
+
ivLength?: number | undefined;
|
2921
|
+
/**
|
2922
|
+
* The expected or default key length in bytes.
|
2923
|
+
*/
|
2924
|
+
keyLength: number;
|
2925
|
+
/**
|
2926
|
+
* The cipher mode.
|
2927
|
+
*/
|
2928
|
+
mode: CipherMode;
|
2929
|
+
}
|
2930
|
+
/**
|
2931
|
+
* Returns information about a given cipher.
|
2932
|
+
*
|
2933
|
+
* Some ciphers accept variable length keys and initialization vectors. By default,
|
2934
|
+
* the `crypto.getCipherInfo()` method will return the default values for these
|
2935
|
+
* ciphers. To test if a given key length or iv length is acceptable for given
|
2936
|
+
* cipher, use the `keyLength` and `ivLength` options. If the given values are
|
2937
|
+
* unacceptable, `undefined` will be returned.
|
2938
|
+
* @since v15.0.0
|
2939
|
+
* @param nameOrNid The name or nid of the cipher to query.
|
2940
|
+
*/
|
2941
|
+
function getCipherInfo(nameOrNid: string | number, options?: CipherInfoOptions): CipherInfo | undefined;
|
2942
|
+
/**
|
2943
|
+
* HKDF is a simple key derivation function defined in RFC 5869\. The given `ikm`,`salt` and `info` are used with the `digest` to derive a key of `keylen` bytes.
|
2944
|
+
*
|
2945
|
+
* The supplied `callback` function is called with two arguments: `err` and`derivedKey`. If an errors occurs while deriving the key, `err` will be set;
|
2946
|
+
* otherwise `err` will be `null`. The successfully generated `derivedKey` will
|
2947
|
+
* be passed to the callback as an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). An error will be thrown if any
|
2948
|
+
* of the input arguments specify invalid values or types.
|
2949
|
+
*
|
2950
|
+
* ```js
|
2951
|
+
* import { Buffer } from 'buffer';
|
2952
|
+
* const {
|
2953
|
+
* hkdf
|
2954
|
+
* } = await import('crypto');
|
2955
|
+
*
|
2956
|
+
* hkdf('sha512', 'key', 'salt', 'info', 64, (err, derivedKey) => {
|
2957
|
+
* if (err) throw err;
|
2958
|
+
* console.log(Buffer.from(derivedKey).toString('hex')); // '24156e2...5391653'
|
2959
|
+
* });
|
2960
|
+
* ```
|
2961
|
+
* @since v15.0.0
|
2962
|
+
* @param digest The digest algorithm to use.
|
2963
|
+
* @param ikm The input keying material. It must be at least one byte in length.
|
2964
|
+
* @param salt The salt value. Must be provided but can be zero-length.
|
2965
|
+
* @param info Additional info value. Must be provided but can be zero-length, and cannot be more than 1024 bytes.
|
2966
|
+
* @param keylen The length of the key to generate. Must be greater than 0. The maximum allowable value is `255` times the number of bytes produced by the selected digest function (e.g. `sha512`
|
2967
|
+
* generates 64-byte hashes, making the maximum HKDF output 16320 bytes).
|
2968
|
+
*/
|
2969
|
+
function hkdf(digest: string, irm: BinaryLike | KeyObject, salt: BinaryLike, info: BinaryLike, keylen: number, callback: (err: Error | null, derivedKey: ArrayBuffer) => void): void;
|
2970
|
+
/**
|
2971
|
+
* Provides a synchronous HKDF key derivation function as defined in RFC 5869\. The
|
2972
|
+
* given `ikm`, `salt` and `info` are used with the `digest` to derive a key of`keylen` bytes.
|
2973
|
+
*
|
2974
|
+
* The successfully generated `derivedKey` will be returned as an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer).
|
2975
|
+
*
|
2976
|
+
* An error will be thrown if any of the input arguments specify invalid values or
|
2977
|
+
* types, or if the derived key cannot be generated.
|
2978
|
+
*
|
2979
|
+
* ```js
|
2980
|
+
* import { Buffer } from 'buffer';
|
2981
|
+
* const {
|
2982
|
+
* hkdfSync
|
2983
|
+
* } = await import('crypto');
|
2984
|
+
*
|
2985
|
+
* const derivedKey = hkdfSync('sha512', 'key', 'salt', 'info', 64);
|
2986
|
+
* console.log(Buffer.from(derivedKey).toString('hex')); // '24156e2...5391653'
|
2987
|
+
* ```
|
2988
|
+
* @since v15.0.0
|
2989
|
+
* @param digest The digest algorithm to use.
|
2990
|
+
* @param ikm The input keying material. It must be at least one byte in length.
|
2991
|
+
* @param salt The salt value. Must be provided but can be zero-length.
|
2992
|
+
* @param info Additional info value. Must be provided but can be zero-length, and cannot be more than 1024 bytes.
|
2993
|
+
* @param keylen The length of the key to generate. Must be greater than 0. The maximum allowable value is `255` times the number of bytes produced by the selected digest function (e.g. `sha512`
|
2994
|
+
* generates 64-byte hashes, making the maximum HKDF output 16320 bytes).
|
2995
|
+
*/
|
2996
|
+
function hkdfSync(digest: string, ikm: BinaryLike | KeyObject, salt: BinaryLike, info: BinaryLike, keylen: number): ArrayBuffer;
|
2997
|
+
interface SecureHeapUsage {
|
2998
|
+
/**
|
2999
|
+
* The total allocated secure heap size as specified using the `--secure-heap=n` command-line flag.
|
3000
|
+
*/
|
3001
|
+
total: number;
|
3002
|
+
/**
|
3003
|
+
* The minimum allocation from the secure heap as specified using the `--secure-heap-min` command-line flag.
|
3004
|
+
*/
|
3005
|
+
min: number;
|
3006
|
+
/**
|
3007
|
+
* The total number of bytes currently allocated from the secure heap.
|
3008
|
+
*/
|
3009
|
+
used: number;
|
3010
|
+
/**
|
3011
|
+
* The calculated ratio of `used` to `total` allocated bytes.
|
3012
|
+
*/
|
3013
|
+
utilization: number;
|
3014
|
+
}
|
3015
|
+
/**
|
3016
|
+
* @since v15.6.0
|
3017
|
+
*/
|
3018
|
+
function secureHeapUsed(): SecureHeapUsage;
|
3019
|
+
interface RandomUUIDOptions {
|
3020
|
+
/**
|
3021
|
+
* By default, to improve performance,
|
3022
|
+
* Node.js will pre-emptively generate and persistently cache enough
|
3023
|
+
* random data to generate up to 128 random UUIDs. To generate a UUID
|
3024
|
+
* without using the cache, set `disableEntropyCache` to `true`.
|
3025
|
+
*
|
3026
|
+
* @default `false`
|
3027
|
+
*/
|
3028
|
+
disableEntropyCache?: boolean | undefined;
|
3029
|
+
}
|
3030
|
+
/**
|
3031
|
+
* Generates a random [RFC 4122](https://www.rfc-editor.org/rfc/rfc4122.txt) version 4 UUID. The UUID is generated using a
|
3032
|
+
* cryptographic pseudorandom number generator.
|
3033
|
+
* @since v15.6.0, v14.17.0
|
3034
|
+
*/
|
3035
|
+
function randomUUID(options?: RandomUUIDOptions): string;
|
3036
|
+
interface X509CheckOptions {
|
3037
|
+
/**
|
3038
|
+
* @default 'always'
|
3039
|
+
*/
|
3040
|
+
subject: 'always' | 'never';
|
3041
|
+
/**
|
3042
|
+
* @default true
|
3043
|
+
*/
|
3044
|
+
wildcards: boolean;
|
3045
|
+
/**
|
3046
|
+
* @default true
|
3047
|
+
*/
|
3048
|
+
partialWildcards: boolean;
|
3049
|
+
/**
|
3050
|
+
* @default false
|
3051
|
+
*/
|
3052
|
+
multiLabelWildcards: boolean;
|
3053
|
+
/**
|
3054
|
+
* @default false
|
3055
|
+
*/
|
3056
|
+
singleLabelSubdomains: boolean;
|
3057
|
+
}
|
3058
|
+
/**
|
3059
|
+
* Encapsulates an X509 certificate and provides read-only access to
|
3060
|
+
* its information.
|
3061
|
+
*
|
3062
|
+
* ```js
|
3063
|
+
* const { X509Certificate } = await import('crypto');
|
3064
|
+
*
|
3065
|
+
* const x509 = new X509Certificate('{... pem encoded cert ...}');
|
3066
|
+
*
|
3067
|
+
* console.log(x509.subject);
|
3068
|
+
* ```
|
3069
|
+
* @since v15.6.0
|
3070
|
+
*/
|
3071
|
+
class X509Certificate {
|
3072
|
+
/**
|
3073
|
+
* Will be \`true\` if this is a Certificate Authority (ca) certificate.
|
3074
|
+
* @since v15.6.0
|
3075
|
+
*/
|
3076
|
+
readonly ca: boolean;
|
3077
|
+
/**
|
3078
|
+
* The SHA-1 fingerprint of this certificate.
|
3079
|
+
* @since v15.6.0
|
3080
|
+
*/
|
3081
|
+
readonly fingerprint: string;
|
3082
|
+
/**
|
3083
|
+
* The SHA-256 fingerprint of this certificate.
|
3084
|
+
* @since v15.6.0
|
3085
|
+
*/
|
3086
|
+
readonly fingerprint256: string;
|
3087
|
+
/**
|
3088
|
+
* The complete subject of this certificate.
|
3089
|
+
* @since v15.6.0
|
3090
|
+
*/
|
3091
|
+
readonly subject: string;
|
3092
|
+
/**
|
3093
|
+
* The subject alternative name specified for this certificate.
|
3094
|
+
* @since v15.6.0
|
3095
|
+
*/
|
3096
|
+
readonly subjectAltName: string;
|
3097
|
+
/**
|
3098
|
+
* The information access content of this certificate.
|
3099
|
+
* @since v15.6.0
|
3100
|
+
*/
|
3101
|
+
readonly infoAccess: string;
|
3102
|
+
/**
|
3103
|
+
* An array detailing the key usages for this certificate.
|
3104
|
+
* @since v15.6.0
|
3105
|
+
*/
|
3106
|
+
readonly keyUsage: string[];
|
3107
|
+
/**
|
3108
|
+
* The issuer identification included in this certificate.
|
3109
|
+
* @since v15.6.0
|
3110
|
+
*/
|
3111
|
+
readonly issuer: string;
|
3112
|
+
/**
|
3113
|
+
* The issuer certificate or `undefined` if the issuer certificate is not
|
3114
|
+
* available.
|
3115
|
+
* @since v15.9.0
|
3116
|
+
*/
|
3117
|
+
readonly issuerCertificate?: X509Certificate | undefined;
|
3118
|
+
/**
|
3119
|
+
* The public key `KeyObject` for this certificate.
|
3120
|
+
* @since v15.6.0
|
3121
|
+
*/
|
3122
|
+
readonly publicKey: KeyObject;
|
3123
|
+
/**
|
3124
|
+
* A `Buffer` containing the DER encoding of this certificate.
|
3125
|
+
* @since v15.6.0
|
3126
|
+
*/
|
3127
|
+
readonly raw: Buffer;
|
3128
|
+
/**
|
3129
|
+
* The serial number of this certificate.
|
3130
|
+
* @since v15.6.0
|
3131
|
+
*/
|
3132
|
+
readonly serialNumber: string;
|
3133
|
+
/**
|
3134
|
+
* The date/time from which this certificate is considered valid.
|
3135
|
+
* @since v15.6.0
|
3136
|
+
*/
|
3137
|
+
readonly validFrom: string;
|
3138
|
+
/**
|
3139
|
+
* The date/time until which this certificate is considered valid.
|
3140
|
+
* @since v15.6.0
|
3141
|
+
*/
|
3142
|
+
readonly validTo: string;
|
3143
|
+
constructor(buffer: BinaryLike);
|
3144
|
+
/**
|
3145
|
+
* Checks whether the certificate matches the given email address.
|
3146
|
+
* @since v15.6.0
|
3147
|
+
* @return Returns `email` if the certificate matches, `undefined` if it does not.
|
3148
|
+
*/
|
3149
|
+
checkEmail(email: string, options?: X509CheckOptions): string | undefined;
|
3150
|
+
/**
|
3151
|
+
* Checks whether the certificate matches the given host name.
|
3152
|
+
* @since v15.6.0
|
3153
|
+
* @return Returns `name` if the certificate matches, `undefined` if it does not.
|
3154
|
+
*/
|
3155
|
+
checkHost(name: string, options?: X509CheckOptions): string | undefined;
|
3156
|
+
/**
|
3157
|
+
* Checks whether the certificate matches the given IP address (IPv4 or IPv6).
|
3158
|
+
* @since v15.6.0
|
3159
|
+
* @return Returns `ip` if the certificate matches, `undefined` if it does not.
|
3160
|
+
*/
|
3161
|
+
checkIP(ip: string, options?: X509CheckOptions): string | undefined;
|
3162
|
+
/**
|
3163
|
+
* Checks whether this certificate was issued by the given `otherCert`.
|
3164
|
+
* @since v15.6.0
|
3165
|
+
*/
|
3166
|
+
checkIssued(otherCert: X509Certificate): boolean;
|
3167
|
+
/**
|
3168
|
+
* Checks whether the public key for this certificate is consistent with
|
3169
|
+
* the given private key.
|
3170
|
+
* @since v15.6.0
|
3171
|
+
* @param privateKey A private key.
|
3172
|
+
*/
|
3173
|
+
checkPrivateKey(privateKey: KeyObject): boolean;
|
3174
|
+
/**
|
3175
|
+
* There is no standard JSON encoding for X509 certificates. The`toJSON()` method returns a string containing the PEM encoded
|
3176
|
+
* certificate.
|
3177
|
+
* @since v15.6.0
|
3178
|
+
*/
|
3179
|
+
toJSON(): string;
|
3180
|
+
/**
|
3181
|
+
* Returns information about this certificate using the legacy `certificate object` encoding.
|
3182
|
+
* @since v15.6.0
|
3183
|
+
*/
|
3184
|
+
toLegacyObject(): PeerCertificate;
|
3185
|
+
/**
|
3186
|
+
* Returns the PEM-encoded certificate.
|
3187
|
+
* @since v15.6.0
|
3188
|
+
*/
|
3189
|
+
toString(): string;
|
3190
|
+
/**
|
3191
|
+
* Verifies that this certificate was signed by the given public key.
|
3192
|
+
* Does not perform any other validation checks on the certificate.
|
3193
|
+
* @since v15.6.0
|
3194
|
+
* @param publicKey A public key.
|
3195
|
+
*/
|
3196
|
+
verify(publicKey: KeyObject): boolean;
|
3197
|
+
}
|
3198
|
+
type LargeNumberLike = NodeJS.ArrayBufferView | SharedArrayBuffer | ArrayBuffer | bigint;
|
3199
|
+
interface GeneratePrimeOptions {
|
3200
|
+
add?: LargeNumberLike | undefined;
|
3201
|
+
rem?: LargeNumberLike | undefined;
|
3202
|
+
/**
|
3203
|
+
* @default false
|
3204
|
+
*/
|
3205
|
+
safe?: boolean | undefined;
|
3206
|
+
bigint?: boolean | undefined;
|
3207
|
+
}
|
3208
|
+
interface GeneratePrimeOptionsBigInt extends GeneratePrimeOptions {
|
3209
|
+
bigint: true;
|
3210
|
+
}
|
3211
|
+
interface GeneratePrimeOptionsArrayBuffer extends GeneratePrimeOptions {
|
3212
|
+
bigint?: false | undefined;
|
3213
|
+
}
|
3214
|
+
/**
|
3215
|
+
* Generates a pseudorandom prime of `size` bits.
|
3216
|
+
*
|
3217
|
+
* If `options.safe` is `true`, the prime will be a safe prime -- that is,`(prime - 1) / 2` will also be a prime.
|
3218
|
+
*
|
3219
|
+
* The `options.add` and `options.rem` parameters can be used to enforce additional
|
3220
|
+
* requirements, e.g., for Diffie-Hellman:
|
3221
|
+
*
|
3222
|
+
* * If `options.add` and `options.rem` are both set, the prime will satisfy the
|
3223
|
+
* condition that `prime % add = rem`.
|
3224
|
+
* * If only `options.add` is set and `options.safe` is not `true`, the prime will
|
3225
|
+
* satisfy the condition that `prime % add = 1`.
|
3226
|
+
* * If only `options.add` is set and `options.safe` is set to `true`, the prime
|
3227
|
+
* will instead satisfy the condition that `prime % add = 3`. This is necessary
|
3228
|
+
* because `prime % add = 1` for `options.add > 2` would contradict the condition
|
3229
|
+
* enforced by `options.safe`.
|
3230
|
+
* * `options.rem` is ignored if `options.add` is not given.
|
3231
|
+
*
|
3232
|
+
* Both `options.add` and `options.rem` must be encoded as big-endian sequences
|
3233
|
+
* if given as an `ArrayBuffer`, `SharedArrayBuffer`, `TypedArray`, `Buffer`, or`DataView`.
|
3234
|
+
*
|
3235
|
+
* By default, the prime is encoded as a big-endian sequence of octets
|
3236
|
+
* in an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). If the `bigint` option is `true`, then a
|
3237
|
+
* [bigint](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) is provided.
|
3238
|
+
* @since v15.8.0
|
3239
|
+
* @param size The size (in bits) of the prime to generate.
|
3240
|
+
*/
|
3241
|
+
function generatePrime(size: number, callback: (err: Error | null, prime: ArrayBuffer) => void): void;
|
3242
|
+
function generatePrime(size: number, options: GeneratePrimeOptionsBigInt, callback: (err: Error | null, prime: bigint) => void): void;
|
3243
|
+
function generatePrime(size: number, options: GeneratePrimeOptionsArrayBuffer, callback: (err: Error | null, prime: ArrayBuffer) => void): void;
|
3244
|
+
function generatePrime(size: number, options: GeneratePrimeOptions, callback: (err: Error | null, prime: ArrayBuffer | bigint) => void): void;
|
3245
|
+
/**
|
3246
|
+
* Generates a pseudorandom prime of `size` bits.
|
3247
|
+
*
|
3248
|
+
* If `options.safe` is `true`, the prime will be a safe prime -- that is,`(prime - 1) / 2` will also be a prime.
|
3249
|
+
*
|
3250
|
+
* The `options.add` and `options.rem` parameters can be used to enforce additional
|
3251
|
+
* requirements, e.g., for Diffie-Hellman:
|
3252
|
+
*
|
3253
|
+
* * If `options.add` and `options.rem` are both set, the prime will satisfy the
|
3254
|
+
* condition that `prime % add = rem`.
|
3255
|
+
* * If only `options.add` is set and `options.safe` is not `true`, the prime will
|
3256
|
+
* satisfy the condition that `prime % add = 1`.
|
3257
|
+
* * If only `options.add` is set and `options.safe` is set to `true`, the prime
|
3258
|
+
* will instead satisfy the condition that `prime % add = 3`. This is necessary
|
3259
|
+
* because `prime % add = 1` for `options.add > 2` would contradict the condition
|
3260
|
+
* enforced by `options.safe`.
|
3261
|
+
* * `options.rem` is ignored if `options.add` is not given.
|
3262
|
+
*
|
3263
|
+
* Both `options.add` and `options.rem` must be encoded as big-endian sequences
|
3264
|
+
* if given as an `ArrayBuffer`, `SharedArrayBuffer`, `TypedArray`, `Buffer`, or`DataView`.
|
3265
|
+
*
|
3266
|
+
* By default, the prime is encoded as a big-endian sequence of octets
|
3267
|
+
* in an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). If the `bigint` option is `true`, then a
|
3268
|
+
* [bigint](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) is provided.
|
3269
|
+
* @since v15.8.0
|
3270
|
+
* @param size The size (in bits) of the prime to generate.
|
3271
|
+
*/
|
3272
|
+
function generatePrimeSync(size: number): ArrayBuffer;
|
3273
|
+
function generatePrimeSync(size: number, options: GeneratePrimeOptionsBigInt): bigint;
|
3274
|
+
function generatePrimeSync(size: number, options: GeneratePrimeOptionsArrayBuffer): ArrayBuffer;
|
3275
|
+
function generatePrimeSync(size: number, options: GeneratePrimeOptions): ArrayBuffer | bigint;
|
3276
|
+
interface CheckPrimeOptions {
|
3277
|
+
/**
|
3278
|
+
* The number of Miller-Rabin probabilistic primality iterations to perform.
|
3279
|
+
* When the value is 0 (zero), a number of checks is used that yields a false positive rate of at most 2-64 for random input.
|
3280
|
+
* Care must be used when selecting a number of checks.
|
3281
|
+
* Refer to the OpenSSL documentation for the BN_is_prime_ex function nchecks options for more details.
|
3282
|
+
*
|
3283
|
+
* @default 0
|
3284
|
+
*/
|
3285
|
+
checks?: number | undefined;
|
3286
|
+
}
|
3287
|
+
/**
|
3288
|
+
* Checks the primality of the `candidate`.
|
3289
|
+
* @since v15.8.0
|
3290
|
+
* @param candidate A possible prime encoded as a sequence of big endian octets of arbitrary length.
|
3291
|
+
*/
|
3292
|
+
function checkPrime(value: LargeNumberLike, callback: (err: Error | null, result: boolean) => void): void;
|
3293
|
+
function checkPrime(value: LargeNumberLike, options: CheckPrimeOptions, callback: (err: Error | null, result: boolean) => void): void;
|
3294
|
+
/**
|
3295
|
+
* Checks the primality of the `candidate`.
|
3296
|
+
* @since v15.8.0
|
3297
|
+
* @param candidate A possible prime encoded as a sequence of big endian octets of arbitrary length.
|
3298
|
+
* @return `true` if the candidate is a prime with an error probability less than `0.25 ** options.checks`.
|
3299
|
+
*/
|
3300
|
+
function checkPrimeSync(candidate: LargeNumberLike, options?: CheckPrimeOptions): boolean;
|
3301
|
+
namespace webcrypto {
|
3302
|
+
class CryptoKey {} // placeholder
|
3303
|
+
}
|
3304
|
+
}
|
3305
|
+
declare module 'node:crypto' {
|
3306
|
+
export * from 'crypto';
|
3307
|
+
}
|