@emulsify/cli 1.5.0 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +89 -1
- package/dist/handlers/componentInstall.js +9 -5
- package/dist/handlers/componentList.js +1 -1
- package/dist/handlers/init.js +1 -1
- package/dist/handlers/systemInstall.js +27 -11
- package/dist/index.js +13 -21
- package/dist/node_modules/.package-lock.json +34 -43
- package/dist/node_modules/@types/node/LICENSE +0 -0
- package/dist/node_modules/@types/node/README.md +3 -3
- package/dist/node_modules/@types/node/assert.d.ts +33 -31
- package/dist/node_modules/@types/node/async_hooks.d.ts +29 -21
- package/dist/node_modules/@types/node/buffer.d.ts +67 -3
- package/dist/node_modules/@types/node/child_process.d.ts +230 -62
- package/dist/node_modules/@types/node/cluster.d.ts +62 -27
- package/dist/node_modules/@types/node/console.d.ts +6 -6
- package/dist/node_modules/@types/node/constants.d.ts +12 -11
- package/dist/node_modules/@types/node/crypto.d.ts +338 -240
- package/dist/node_modules/@types/node/dgram.d.ts +50 -14
- package/dist/node_modules/@types/node/dns.d.ts +183 -54
- package/dist/node_modules/@types/node/domain.d.ts +4 -4
- package/dist/node_modules/@types/node/events.d.ts +4 -4
- package/dist/node_modules/@types/node/fs/promises.d.ts +105 -39
- package/dist/node_modules/@types/node/fs.d.ts +440 -126
- package/dist/node_modules/@types/node/globals.d.ts +176 -24
- package/dist/node_modules/@types/node/globals.global.d.ts +0 -0
- package/dist/node_modules/@types/node/http.d.ts +309 -218
- package/dist/node_modules/@types/node/http2.d.ts +345 -98
- package/dist/node_modules/@types/node/https.d.ts +250 -118
- package/dist/node_modules/@types/node/index.d.ts +1 -2
- package/dist/node_modules/@types/node/inspector.d.ts +2 -3
- package/dist/node_modules/@types/node/module.d.ts +4 -4
- package/dist/node_modules/@types/node/net.d.ts +42 -14
- package/dist/node_modules/@types/node/os.d.ts +5 -4
- package/dist/node_modules/@types/node/package.json +10 -8
- package/dist/node_modules/@types/node/path.d.ts +35 -24
- package/dist/node_modules/@types/node/perf_hooks.d.ts +5 -5
- package/dist/node_modules/@types/node/process.d.ts +62 -23
- package/dist/node_modules/@types/node/punycode.d.ts +3 -3
- package/dist/node_modules/@types/node/querystring.d.ts +15 -5
- package/dist/node_modules/@types/node/readline.d.ts +16 -6
- package/dist/node_modules/@types/node/repl.d.ts +13 -7
- package/dist/node_modules/@types/node/stream.d.ts +190 -31
- package/dist/node_modules/@types/node/string_decoder.d.ts +3 -3
- package/dist/node_modules/@types/node/timers.d.ts +6 -6
- package/dist/node_modules/@types/node/tls.d.ts +113 -30
- package/dist/node_modules/@types/node/trace_events.d.ts +3 -3
- package/dist/node_modules/@types/node/ts4.8/assert.d.ts +130 -0
- package/dist/node_modules/@types/node/ts4.8/async_hooks.d.ts +237 -0
- package/dist/node_modules/@types/node/ts4.8/buffer.d.ts +89 -0
- package/dist/node_modules/@types/node/ts4.8/child_process.d.ts +682 -0
- package/dist/node_modules/@types/node/ts4.8/cluster.d.ts +300 -0
- package/dist/node_modules/@types/node/ts4.8/console.d.ts +142 -0
- package/dist/node_modules/@types/node/ts4.8/constants.d.ts +19 -0
- package/dist/node_modules/@types/node/ts4.8/crypto.d.ts +1287 -0
- package/dist/node_modules/@types/node/ts4.8/dgram.d.ts +180 -0
- package/dist/node_modules/@types/node/ts4.8/dns.d.ts +516 -0
- package/dist/node_modules/@types/node/ts4.8/domain.d.ts +27 -0
- package/dist/node_modules/@types/node/ts4.8/events.d.ts +82 -0
- package/dist/node_modules/@types/node/ts4.8/fs/promises.d.ts +634 -0
- package/dist/node_modules/@types/node/ts4.8/fs.d.ts +2587 -0
- package/dist/node_modules/@types/node/ts4.8/globals.d.ts +763 -0
- package/dist/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
- package/dist/node_modules/@types/node/ts4.8/http.d.ts +580 -0
- package/dist/node_modules/@types/node/ts4.8/http2.d.ts +1208 -0
- package/dist/node_modules/@types/node/ts4.8/https.d.ts +274 -0
- package/dist/node_modules/@types/node/ts4.8/index.d.ts +53 -0
- package/dist/node_modules/@types/node/ts4.8/inspector.d.ts +3050 -0
- package/dist/node_modules/@types/node/ts4.8/module.d.ts +56 -0
- package/dist/node_modules/@types/node/ts4.8/net.d.ts +324 -0
- package/dist/node_modules/@types/node/ts4.8/os.d.ts +243 -0
- package/dist/node_modules/@types/node/ts4.8/path.d.ts +168 -0
- package/dist/node_modules/@types/node/ts4.8/perf_hooks.d.ts +274 -0
- package/dist/node_modules/@types/node/ts4.8/process.d.ts +452 -0
- package/dist/node_modules/@types/node/ts4.8/punycode.d.ts +78 -0
- package/dist/node_modules/@types/node/ts4.8/querystring.d.ts +41 -0
- package/dist/node_modules/@types/node/ts4.8/readline.d.ts +184 -0
- package/dist/node_modules/@types/node/ts4.8/repl.d.ts +404 -0
- package/dist/node_modules/@types/node/ts4.8/stream.d.ts +518 -0
- package/dist/node_modules/@types/node/ts4.8/string_decoder.d.ts +10 -0
- package/dist/node_modules/@types/node/ts4.8/timers.d.ts +19 -0
- package/dist/node_modules/@types/node/ts4.8/tls.d.ts +866 -0
- package/dist/node_modules/@types/node/ts4.8/trace_events.d.ts +64 -0
- package/dist/node_modules/@types/node/ts4.8/tty.d.ts +69 -0
- package/dist/node_modules/@types/node/ts4.8/url.d.ts +187 -0
- package/dist/node_modules/@types/node/ts4.8/util.d.ts +278 -0
- package/dist/node_modules/@types/node/ts4.8/v8.d.ts +189 -0
- package/dist/node_modules/@types/node/ts4.8/vm.d.ts +155 -0
- package/dist/node_modules/@types/node/ts4.8/wasi.d.ts +88 -0
- package/dist/node_modules/@types/node/ts4.8/worker_threads.d.ts +241 -0
- package/dist/node_modules/@types/node/ts4.8/zlib.d.ts +364 -0
- package/dist/node_modules/@types/node/tty.d.ts +4 -4
- package/dist/node_modules/@types/node/url.d.ts +75 -7
- package/dist/node_modules/@types/node/util.d.ts +103 -41
- package/dist/node_modules/@types/node/v8.d.ts +4 -5
- package/dist/node_modules/@types/node/vm.d.ts +7 -7
- package/dist/node_modules/@types/node/wasi.d.ts +3 -4
- package/dist/node_modules/@types/node/worker_threads.d.ts +8 -8
- package/dist/node_modules/@types/node/zlib.d.ts +13 -13
- package/dist/node_modules/@types/progress/LICENSE +0 -0
- package/dist/node_modules/@types/progress/README.md +2 -3
- package/dist/node_modules/@types/progress/index.d.ts +0 -5
- package/dist/node_modules/@types/progress/package.json +6 -6
- package/dist/node_modules/ajv-formats/node_modules/ajv/README.md +20 -5
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2019.d.ts +3 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2019.js +7 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2019.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2020.d.ts +3 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2020.js +7 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2020.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/ajv.d.ts +3 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/ajv.js +7 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/ajv.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.d.ts +6 -5
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.js +9 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/index.d.ts +2 -2
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/index.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/scope.d.ts +5 -5
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/scope.js +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/scope.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/errors.js +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/errors.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/index.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/index.js +9 -10
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/index.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/parse.js +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/parse.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/serialize.js +19 -8
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/serialize.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/types.d.ts +2 -2
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/names.js +6 -6
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/names.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/ref_error.d.ts +2 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/ref_error.js +3 -3
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/ref_error.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.d.ts +6 -6
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.js +16 -14
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/rules.d.ts +2 -2
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/util.d.ts +2 -2
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/util.js +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/util.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/boolSchema.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/dataType.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/dataType.js +2 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/dataType.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/defaults.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/index.js +12 -2
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/index.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/keyword.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/subschema.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/subschema.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/core.d.ts +7 -5
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/core.js +22 -18
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/core.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/jtd.d.ts +4 -2
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/jtd.js +7 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/jtd.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/equal.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/parseJson.js +2 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/parseJson.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/re2.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/ucs2length.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/uri.d.ts +6 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/uri.js +6 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/uri.js.map +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/standalone/index.js +8 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/standalone/index.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/index.d.ts +25 -19
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/json-schema.d.ts +15 -14
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/jtd-schema.d.ts +31 -25
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +2 -2
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/if.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/not.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/code.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/ref.js +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/ref.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.js +10 -3
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/types.js +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/errors.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/format.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/format.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +3 -3
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/properties.js +8 -5
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/ref.js +3 -2
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +3 -3
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/type.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/values.js +10 -7
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/values.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/const.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/const.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/enum.js +4 -3
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/enum.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/index.d.ts +2 -2
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +3 -3
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/required.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/required.js.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/2019.ts +4 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/2020.ts +4 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/ajv.ts +4 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/codegen/code.ts +8 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/codegen/index.ts +25 -5
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/index.ts +8 -8
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/jtd/parse.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/jtd/serialize.ts +21 -15
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/jtd/types.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/ref_error.ts +4 -3
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/resolve.ts +18 -15
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/rules.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/dataType.ts +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/index.ts +11 -2
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/core.ts +13 -2
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/jtd.ts +4 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/runtime/parseJson.ts +2 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/runtime/uri.ts +6 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/standalone/index.ts +9 -2
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/types/index.ts +14 -3
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/types/json-schema.ts +2 -4
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/types/jtd-schema.ts +25 -16
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/core/ref.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/discriminator/index.ts +11 -3
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/properties.ts +13 -6
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/ref.ts +3 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/values.ts +10 -7
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/enum.ts +5 -3
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/package.json +40 -38
- package/dist/node_modules/commander/Readme.md +407 -169
- package/dist/node_modules/commander/esm.mjs +13 -1
- package/dist/node_modules/commander/index.js +13 -2206
- package/dist/node_modules/commander/lib/argument.js +145 -0
- package/dist/node_modules/commander/lib/command.js +2299 -0
- package/dist/node_modules/commander/lib/error.js +43 -0
- package/dist/node_modules/commander/lib/help.js +457 -0
- package/dist/node_modules/commander/lib/option.js +327 -0
- package/dist/node_modules/commander/lib/suggestSimilar.js +100 -0
- package/dist/node_modules/commander/package.json +46 -34
- package/dist/node_modules/commander/typings/esm.d.mts +3 -0
- package/dist/node_modules/commander/typings/index.d.ts +889 -617
- package/dist/node_modules/debug/README.md +3 -0
- package/dist/node_modules/debug/package.json +1 -1
- package/dist/node_modules/debug/src/common.js +1 -1
- package/dist/node_modules/fs-extra/README.md +3 -5
- package/dist/node_modules/fs-extra/lib/{copy-sync → copy}/copy-sync.js +11 -8
- package/dist/node_modules/fs-extra/lib/copy/copy.js +12 -9
- package/dist/node_modules/fs-extra/lib/copy/index.js +2 -1
- package/dist/node_modules/fs-extra/lib/empty/index.js +10 -19
- package/dist/node_modules/fs-extra/lib/ensure/index.js +15 -15
- package/dist/node_modules/fs-extra/lib/ensure/link.js +10 -7
- package/dist/node_modules/fs-extra/lib/ensure/symlink.js +34 -15
- package/dist/node_modules/fs-extra/lib/fs/index.js +8 -10
- package/dist/node_modules/fs-extra/lib/index.js +1 -12
- package/dist/node_modules/fs-extra/lib/json/output-json-sync.js +1 -1
- package/dist/node_modules/fs-extra/lib/json/output-json.js +1 -1
- package/dist/node_modules/fs-extra/lib/mkdirs/make-dir.js +16 -130
- package/dist/node_modules/fs-extra/lib/mkdirs/utils.js +21 -0
- package/dist/node_modules/fs-extra/lib/move/index.js +2 -1
- package/dist/node_modules/fs-extra/lib/{move-sync → move}/move-sync.js +12 -5
- package/dist/node_modules/fs-extra/lib/move/move.js +14 -4
- package/dist/node_modules/fs-extra/lib/remove/index.js +15 -2
- package/dist/node_modules/fs-extra/lib/util/stat.js +60 -45
- package/dist/node_modules/fs-extra/package.json +7 -10
- package/dist/node_modules/graceful-fs/LICENSE +1 -1
- package/dist/node_modules/graceful-fs/graceful-fs.js +23 -4
- package/dist/node_modules/graceful-fs/package.json +6 -3
- package/dist/node_modules/graceful-fs/polyfills.js +39 -30
- package/dist/node_modules/punycode/README.md +29 -3
- package/dist/node_modules/punycode/package.json +7 -7
- package/dist/node_modules/punycode/punycode.es6.js +25 -22
- package/dist/node_modules/punycode/punycode.js +25 -22
- package/dist/node_modules/ramda/dist/ramda.js +4 -4
- package/dist/node_modules/ramda/dist/ramda.min.js +1 -1
- package/dist/node_modules/ramda/es/trim.js +1 -1
- package/dist/node_modules/ramda/package.json +1 -1
- package/dist/node_modules/ramda/src/trim.js +1 -1
- package/dist/node_modules/universalify/README.md +1 -1
- package/dist/node_modules/universalify/index.js +6 -6
- package/dist/node_modules/universalify/package.json +2 -2
- package/dist/package.json +5 -6
- package/dist/schemas/variant.json +28 -5
- package/dist/util/cache/cloneIntoCache.js +1 -1
- package/dist/util/cache/getCachedItemPath.js +4 -2
- package/dist/util/cache/getJsonFromCachedFile.js +2 -2
- package/dist/util/getGitRepoNameFromUrl.js +1 -1
- package/dist/util/getRepositoryLatestTag.js +16 -0
- package/dist/util/platform/getInitSuccessMessageForPlatform.js +4 -3
- package/dist/util/project/buildComponentDependencyList.js +20 -0
- package/package.json +6 -7
- package/dist/node_modules/at-least-node/LICENSE +0 -6
- package/dist/node_modules/at-least-node/README.md +0 -25
- package/dist/node_modules/at-least-node/index.js +0 -5
- package/dist/node_modules/at-least-node/package.json +0 -32
- package/dist/node_modules/commander/CHANGELOG.md +0 -440
- package/dist/node_modules/fs-extra/CHANGELOG.md +0 -902
- package/dist/node_modules/fs-extra/lib/copy-sync/index.js +0 -5
- package/dist/node_modules/fs-extra/lib/move-sync/index.js +0 -5
- /package/dist/node_modules/fs-extra/lib/{output → output-file}/index.js +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare module
|
|
2
|
-
import * as stream from
|
|
1
|
+
declare module "crypto" {
|
|
2
|
+
import * as stream from "stream";
|
|
3
3
|
|
|
4
4
|
interface Certificate {
|
|
5
5
|
/**
|
|
@@ -24,7 +24,7 @@ declare module 'crypto' {
|
|
|
24
24
|
}
|
|
25
25
|
const Certificate: Certificate & {
|
|
26
26
|
/** @deprecated since v14.9.0 - Use static methods of `crypto.Certificate` instead. */
|
|
27
|
-
new
|
|
27
|
+
new(): Certificate;
|
|
28
28
|
/** @deprecated since v14.9.0 - Use static methods of `crypto.Certificate` instead. */
|
|
29
29
|
(): Certificate;
|
|
30
30
|
};
|
|
@@ -140,13 +140,13 @@ declare module 'crypto' {
|
|
|
140
140
|
function createHmac(algorithm: string, key: BinaryLike | KeyObject, options?: stream.TransformOptions): Hmac;
|
|
141
141
|
|
|
142
142
|
// https://nodejs.org/api/buffer.html#buffer_buffers_and_character_encodings
|
|
143
|
-
type BinaryToTextEncoding =
|
|
144
|
-
type CharacterEncoding =
|
|
145
|
-
type LegacyCharacterEncoding =
|
|
143
|
+
type BinaryToTextEncoding = "base64" | "base64url" | "hex";
|
|
144
|
+
type CharacterEncoding = "utf8" | "utf-8" | "utf16le" | "latin1";
|
|
145
|
+
type LegacyCharacterEncoding = "ascii" | "binary" | "ucs2" | "ucs-2";
|
|
146
146
|
|
|
147
147
|
type Encoding = BinaryToTextEncoding | CharacterEncoding | LegacyCharacterEncoding;
|
|
148
148
|
|
|
149
|
-
type ECDHKeyFormat =
|
|
149
|
+
type ECDHKeyFormat = "compressed" | "uncompressed" | "hybrid";
|
|
150
150
|
|
|
151
151
|
class Hash extends stream.Transform {
|
|
152
152
|
private constructor();
|
|
@@ -164,10 +164,10 @@ declare module 'crypto' {
|
|
|
164
164
|
digest(encoding: BinaryToTextEncoding): string;
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
-
type KeyObjectType =
|
|
167
|
+
type KeyObjectType = "secret" | "public" | "private";
|
|
168
168
|
|
|
169
169
|
interface KeyExportOptions<T extends KeyFormat> {
|
|
170
|
-
type:
|
|
170
|
+
type: "pkcs1" | "spki" | "pkcs8" | "sec1";
|
|
171
171
|
format: T;
|
|
172
172
|
cipher?: string | undefined;
|
|
173
173
|
passphrase?: string | Buffer | undefined;
|
|
@@ -181,14 +181,15 @@ declare module 'crypto' {
|
|
|
181
181
|
* bytes. This property is `undefined` for symmetric keys.
|
|
182
182
|
*/
|
|
183
183
|
asymmetricKeySize?: number | undefined;
|
|
184
|
-
export(options: KeyExportOptions<
|
|
185
|
-
export(options?: KeyExportOptions<
|
|
184
|
+
export(options: KeyExportOptions<"pem">): string | Buffer;
|
|
185
|
+
export(options?: KeyExportOptions<"der">): Buffer;
|
|
186
186
|
symmetricKeySize?: number | undefined;
|
|
187
187
|
type: KeyObjectType;
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
-
type CipherCCMTypes =
|
|
191
|
-
type CipherGCMTypes =
|
|
190
|
+
type CipherCCMTypes = "aes-128-ccm" | "aes-192-ccm" | "aes-256-ccm" | "chacha20-poly1305";
|
|
191
|
+
type CipherGCMTypes = "aes-128-gcm" | "aes-192-gcm" | "aes-256-gcm";
|
|
192
|
+
type CipherOCBTypes = "aes-128-ocb" | "aes-192-ocb" | "aes-256-ocb";
|
|
192
193
|
|
|
193
194
|
type BinaryLike = string | NodeJS.ArrayBufferView;
|
|
194
195
|
|
|
@@ -200,6 +201,9 @@ declare module 'crypto' {
|
|
|
200
201
|
interface CipherGCMOptions extends stream.TransformOptions {
|
|
201
202
|
authTagLength?: number | undefined;
|
|
202
203
|
}
|
|
204
|
+
interface CipherOCBOptions extends stream.TransformOptions {
|
|
205
|
+
authTagLength: number;
|
|
206
|
+
}
|
|
203
207
|
/** @deprecated since v10.0.0 use `createCipheriv()` */
|
|
204
208
|
function createCipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): CipherCCM;
|
|
205
209
|
/** @deprecated since v10.0.0 use `createCipheriv()` */
|
|
@@ -210,13 +214,19 @@ declare module 'crypto' {
|
|
|
210
214
|
function createCipheriv(
|
|
211
215
|
algorithm: CipherCCMTypes,
|
|
212
216
|
key: CipherKey,
|
|
213
|
-
iv: BinaryLike
|
|
217
|
+
iv: BinaryLike,
|
|
214
218
|
options: CipherCCMOptions,
|
|
215
219
|
): CipherCCM;
|
|
220
|
+
function createCipheriv(
|
|
221
|
+
algorithm: CipherOCBTypes,
|
|
222
|
+
key: CipherKey,
|
|
223
|
+
iv: BinaryLike,
|
|
224
|
+
options: CipherOCBOptions,
|
|
225
|
+
): CipherOCB;
|
|
216
226
|
function createCipheriv(
|
|
217
227
|
algorithm: CipherGCMTypes,
|
|
218
228
|
key: CipherKey,
|
|
219
|
-
iv: BinaryLike
|
|
229
|
+
iv: BinaryLike,
|
|
220
230
|
options?: CipherGCMOptions,
|
|
221
231
|
): CipherGCM;
|
|
222
232
|
function createCipheriv(
|
|
@@ -246,6 +256,10 @@ declare module 'crypto' {
|
|
|
246
256
|
setAAD(buffer: NodeJS.ArrayBufferView, options?: { plaintextLength: number }): this;
|
|
247
257
|
getAuthTag(): Buffer;
|
|
248
258
|
}
|
|
259
|
+
interface CipherOCB extends Cipher {
|
|
260
|
+
setAAD(buffer: NodeJS.ArrayBufferView, options?: { plaintextLength: number }): this;
|
|
261
|
+
getAuthTag(): Buffer;
|
|
262
|
+
}
|
|
249
263
|
/** @deprecated since v10.0.0 use `createDecipheriv()` */
|
|
250
264
|
function createDecipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): DecipherCCM;
|
|
251
265
|
/** @deprecated since v10.0.0 use `createDecipheriv()` */
|
|
@@ -256,13 +270,19 @@ declare module 'crypto' {
|
|
|
256
270
|
function createDecipheriv(
|
|
257
271
|
algorithm: CipherCCMTypes,
|
|
258
272
|
key: CipherKey,
|
|
259
|
-
iv: BinaryLike
|
|
273
|
+
iv: BinaryLike,
|
|
260
274
|
options: CipherCCMOptions,
|
|
261
275
|
): DecipherCCM;
|
|
276
|
+
function createDecipheriv(
|
|
277
|
+
algorithm: CipherOCBTypes,
|
|
278
|
+
key: CipherKey,
|
|
279
|
+
iv: BinaryLike,
|
|
280
|
+
options: CipherOCBOptions,
|
|
281
|
+
): DecipherOCB;
|
|
262
282
|
function createDecipheriv(
|
|
263
283
|
algorithm: CipherGCMTypes,
|
|
264
284
|
key: CipherKey,
|
|
265
|
-
iv: BinaryLike
|
|
285
|
+
iv: BinaryLike,
|
|
266
286
|
options?: CipherGCMOptions,
|
|
267
287
|
): DecipherGCM;
|
|
268
288
|
function createDecipheriv(
|
|
@@ -292,31 +312,35 @@ declare module 'crypto' {
|
|
|
292
312
|
setAuthTag(buffer: NodeJS.ArrayBufferView): this;
|
|
293
313
|
setAAD(buffer: NodeJS.ArrayBufferView, options?: { plaintextLength: number }): this;
|
|
294
314
|
}
|
|
315
|
+
interface DecipherOCB extends Decipher {
|
|
316
|
+
setAuthTag(buffer: NodeJS.ArrayBufferView): this;
|
|
317
|
+
setAAD(buffer: NodeJS.ArrayBufferView, options?: { plaintextLength: number }): this;
|
|
318
|
+
}
|
|
295
319
|
|
|
296
320
|
interface PrivateKeyInput {
|
|
297
321
|
key: string | Buffer;
|
|
298
322
|
format?: KeyFormat | undefined;
|
|
299
|
-
type?:
|
|
323
|
+
type?: "pkcs1" | "pkcs8" | "sec1" | undefined;
|
|
300
324
|
passphrase?: string | Buffer | undefined;
|
|
301
325
|
}
|
|
302
326
|
|
|
303
327
|
interface PublicKeyInput {
|
|
304
328
|
key: string | Buffer;
|
|
305
329
|
format?: KeyFormat | undefined;
|
|
306
|
-
type?:
|
|
330
|
+
type?: "pkcs1" | "spki" | undefined;
|
|
307
331
|
}
|
|
308
332
|
|
|
309
333
|
function createPrivateKey(key: PrivateKeyInput | string | Buffer): KeyObject;
|
|
310
334
|
function createPublicKey(key: PublicKeyInput | string | Buffer | KeyObject): KeyObject;
|
|
311
335
|
function createSecretKey(key: NodeJS.ArrayBufferView): KeyObject;
|
|
312
336
|
|
|
313
|
-
function createSign(algorithm: string, options?: stream.WritableOptions):
|
|
337
|
+
function createSign(algorithm: string, options?: stream.WritableOptions): Sign;
|
|
314
338
|
|
|
315
|
-
type DSAEncoding =
|
|
339
|
+
type DSAEncoding = "der" | "ieee-p1363";
|
|
316
340
|
|
|
317
341
|
interface SigningOptions {
|
|
318
342
|
/**
|
|
319
|
-
* @
|
|
343
|
+
* @see crypto.constants.RSA_PKCS1_PADDING
|
|
320
344
|
*/
|
|
321
345
|
padding?: number | undefined;
|
|
322
346
|
saltLength?: number | undefined;
|
|
@@ -334,11 +358,11 @@ declare module 'crypto' {
|
|
|
334
358
|
|
|
335
359
|
type KeyLike = string | Buffer | KeyObject;
|
|
336
360
|
|
|
337
|
-
class
|
|
361
|
+
class Sign extends stream.Writable {
|
|
338
362
|
private constructor();
|
|
339
363
|
|
|
340
|
-
update(data: BinaryLike):
|
|
341
|
-
update(data: string, input_encoding: Encoding):
|
|
364
|
+
update(data: BinaryLike): Sign;
|
|
365
|
+
update(data: string, input_encoding: Encoding): Sign;
|
|
342
366
|
sign(private_key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput): Buffer;
|
|
343
367
|
sign(
|
|
344
368
|
private_key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput,
|
|
@@ -382,9 +406,13 @@ declare module 'crypto' {
|
|
|
382
406
|
private constructor();
|
|
383
407
|
generateKeys(): Buffer;
|
|
384
408
|
generateKeys(encoding: BinaryToTextEncoding): string;
|
|
385
|
-
computeSecret(
|
|
386
|
-
computeSecret(
|
|
387
|
-
computeSecret(
|
|
409
|
+
computeSecret(otherPublicKey: NodeJS.ArrayBufferView, inputEncoding?: null, outputEncoding?: null): Buffer;
|
|
410
|
+
computeSecret(otherPublicKey: string, inputEncoding: BinaryToTextEncoding, outputEncoding?: null): Buffer;
|
|
411
|
+
computeSecret(
|
|
412
|
+
otherPublicKey: NodeJS.ArrayBufferView,
|
|
413
|
+
inputEncoding: null,
|
|
414
|
+
outputEncoding: BinaryToTextEncoding,
|
|
415
|
+
): string;
|
|
388
416
|
computeSecret(
|
|
389
417
|
other_public_key: string,
|
|
390
418
|
input_encoding: BinaryToTextEncoding,
|
|
@@ -404,7 +432,42 @@ declare module 'crypto' {
|
|
|
404
432
|
setPrivateKey(private_key: string, encoding: BufferEncoding): void;
|
|
405
433
|
verifyError: number;
|
|
406
434
|
}
|
|
407
|
-
|
|
435
|
+
/**
|
|
436
|
+
* The `DiffieHellmanGroup` class takes a well-known modp group as its argument.
|
|
437
|
+
* It works the same as `DiffieHellman`, except that it does not allow changing its keys after creation.
|
|
438
|
+
* In other words, it does not implement `setPublicKey()` or `setPrivateKey()` methods.
|
|
439
|
+
*
|
|
440
|
+
* ```js
|
|
441
|
+
* const { createDiffieHellmanGroup } = await import('node:crypto');
|
|
442
|
+
* const dh = createDiffieHellmanGroup('modp1');
|
|
443
|
+
* ```
|
|
444
|
+
* The name (e.g. `'modp1'`) is taken from [RFC 2412](https://www.rfc-editor.org/rfc/rfc2412.txt) (modp1 and 2) and [RFC 3526](https://www.rfc-editor.org/rfc/rfc3526.txt):
|
|
445
|
+
* ```bash
|
|
446
|
+
* $ perl -ne 'print "$1\n" if /"(modp\d+)"/' src/node_crypto_groups.h
|
|
447
|
+
* modp1 # 768 bits
|
|
448
|
+
* modp2 # 1024 bits
|
|
449
|
+
* modp5 # 1536 bits
|
|
450
|
+
* modp14 # 2048 bits
|
|
451
|
+
* modp15 # etc.
|
|
452
|
+
* modp16
|
|
453
|
+
* modp17
|
|
454
|
+
* modp18
|
|
455
|
+
* ```
|
|
456
|
+
* @since v0.7.5
|
|
457
|
+
*/
|
|
458
|
+
const DiffieHellmanGroup: DiffieHellmanGroupConstructor;
|
|
459
|
+
interface DiffieHellmanGroupConstructor {
|
|
460
|
+
new(name: string): DiffieHellmanGroup;
|
|
461
|
+
(name: string): DiffieHellmanGroup;
|
|
462
|
+
readonly prototype: DiffieHellmanGroup;
|
|
463
|
+
}
|
|
464
|
+
type DiffieHellmanGroup = Omit<DiffieHellman, "setPublicKey" | "setPrivateKey">;
|
|
465
|
+
function getDiffieHellman(groupName: string): DiffieHellmanGroup;
|
|
466
|
+
/**
|
|
467
|
+
* An alias for {@link getDiffieHellman}
|
|
468
|
+
* @since v0.9.3
|
|
469
|
+
*/
|
|
470
|
+
function createDiffieHellmanGroup(name: string): DiffieHellmanGroup;
|
|
408
471
|
function pbkdf2(
|
|
409
472
|
password: BinaryLike,
|
|
410
473
|
salt: BinaryLike,
|
|
@@ -459,8 +522,8 @@ declare module 'crypto' {
|
|
|
459
522
|
*/
|
|
460
523
|
disableEntropyCache?: boolean | undefined;
|
|
461
524
|
}
|
|
462
|
-
|
|
463
|
-
function randomUUID(options?: RandomUUIDOptions):
|
|
525
|
+
type UUID = `${string}-${string}-${string}-${string}-${string}`;
|
|
526
|
+
function randomUUID(options?: RandomUUIDOptions): UUID;
|
|
464
527
|
|
|
465
528
|
interface ScryptOptions {
|
|
466
529
|
cost?: number | undefined;
|
|
@@ -507,6 +570,12 @@ declare module 'crypto' {
|
|
|
507
570
|
function getCiphers(): string[];
|
|
508
571
|
function getCurves(): string[];
|
|
509
572
|
function getFips(): 1 | 0;
|
|
573
|
+
/**
|
|
574
|
+
* Enables the FIPS compliant crypto provider in a FIPS-enabled Node.js build. Throws an error if FIPS mode is not available.
|
|
575
|
+
* @since v10.0.0
|
|
576
|
+
* @param bool `true` to enable FIPS mode.
|
|
577
|
+
*/
|
|
578
|
+
function setFips(bool: boolean): void;
|
|
510
579
|
function getHashes(): string[];
|
|
511
580
|
class ECDH {
|
|
512
581
|
private constructor();
|
|
@@ -514,8 +583,8 @@ declare module 'crypto' {
|
|
|
514
583
|
key: BinaryLike,
|
|
515
584
|
curve: string,
|
|
516
585
|
inputEncoding?: BinaryToTextEncoding,
|
|
517
|
-
outputEncoding?:
|
|
518
|
-
format?:
|
|
586
|
+
outputEncoding?: "latin1" | "hex" | "base64" | "base64url",
|
|
587
|
+
format?: "uncompressed" | "compressed" | "hybrid",
|
|
519
588
|
): Buffer | string;
|
|
520
589
|
generateKeys(): Buffer;
|
|
521
590
|
generateKeys(encoding: BinaryToTextEncoding, format?: ECDHKeyFormat): string;
|
|
@@ -539,8 +608,8 @@ declare module 'crypto' {
|
|
|
539
608
|
/** @deprecated since v10.0.0 */
|
|
540
609
|
const DEFAULT_ENCODING: BufferEncoding;
|
|
541
610
|
|
|
542
|
-
type KeyType =
|
|
543
|
-
type KeyFormat =
|
|
611
|
+
type KeyType = "rsa" | "dsa" | "ec" | "ed25519" | "ed448" | "x25519" | "x448";
|
|
612
|
+
type KeyFormat = "pem" | "der";
|
|
544
613
|
|
|
545
614
|
interface BasePrivateKeyEncodingOptions<T extends KeyFormat> {
|
|
546
615
|
format: T;
|
|
@@ -619,11 +688,11 @@ declare module 'crypto' {
|
|
|
619
688
|
publicExponent?: number | undefined;
|
|
620
689
|
|
|
621
690
|
publicKeyEncoding: {
|
|
622
|
-
type:
|
|
691
|
+
type: "pkcs1" | "spki";
|
|
623
692
|
format: PubF;
|
|
624
693
|
};
|
|
625
694
|
privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
|
|
626
|
-
type:
|
|
695
|
+
type: "pkcs1" | "pkcs8";
|
|
627
696
|
};
|
|
628
697
|
}
|
|
629
698
|
|
|
@@ -638,11 +707,11 @@ declare module 'crypto' {
|
|
|
638
707
|
divisorLength: number;
|
|
639
708
|
|
|
640
709
|
publicKeyEncoding: {
|
|
641
|
-
type:
|
|
710
|
+
type: "spki";
|
|
642
711
|
format: PubF;
|
|
643
712
|
};
|
|
644
713
|
privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
|
|
645
|
-
type:
|
|
714
|
+
type: "pkcs8";
|
|
646
715
|
};
|
|
647
716
|
}
|
|
648
717
|
|
|
@@ -653,51 +722,51 @@ declare module 'crypto' {
|
|
|
653
722
|
namedCurve: string;
|
|
654
723
|
|
|
655
724
|
publicKeyEncoding: {
|
|
656
|
-
type:
|
|
725
|
+
type: "pkcs1" | "spki";
|
|
657
726
|
format: PubF;
|
|
658
727
|
};
|
|
659
728
|
privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
|
|
660
|
-
type:
|
|
729
|
+
type: "sec1" | "pkcs8";
|
|
661
730
|
};
|
|
662
731
|
}
|
|
663
732
|
|
|
664
733
|
interface ED25519KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
|
|
665
734
|
publicKeyEncoding: {
|
|
666
|
-
type:
|
|
735
|
+
type: "spki";
|
|
667
736
|
format: PubF;
|
|
668
737
|
};
|
|
669
738
|
privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
|
|
670
|
-
type:
|
|
739
|
+
type: "pkcs8";
|
|
671
740
|
};
|
|
672
741
|
}
|
|
673
742
|
|
|
674
743
|
interface ED448KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
|
|
675
744
|
publicKeyEncoding: {
|
|
676
|
-
type:
|
|
745
|
+
type: "spki";
|
|
677
746
|
format: PubF;
|
|
678
747
|
};
|
|
679
748
|
privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
|
|
680
|
-
type:
|
|
749
|
+
type: "pkcs8";
|
|
681
750
|
};
|
|
682
751
|
}
|
|
683
752
|
|
|
684
753
|
interface X25519KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
|
|
685
754
|
publicKeyEncoding: {
|
|
686
|
-
type:
|
|
755
|
+
type: "spki";
|
|
687
756
|
format: PubF;
|
|
688
757
|
};
|
|
689
758
|
privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
|
|
690
|
-
type:
|
|
759
|
+
type: "pkcs8";
|
|
691
760
|
};
|
|
692
761
|
}
|
|
693
762
|
|
|
694
763
|
interface X448KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
|
|
695
764
|
publicKeyEncoding: {
|
|
696
|
-
type:
|
|
765
|
+
type: "spki";
|
|
697
766
|
format: PubF;
|
|
698
767
|
};
|
|
699
768
|
privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
|
|
700
|
-
type:
|
|
769
|
+
type: "pkcs8";
|
|
701
770
|
};
|
|
702
771
|
}
|
|
703
772
|
|
|
@@ -707,445 +776,445 @@ declare module 'crypto' {
|
|
|
707
776
|
}
|
|
708
777
|
|
|
709
778
|
function generateKeyPairSync(
|
|
710
|
-
type:
|
|
711
|
-
options: RSAKeyPairOptions<
|
|
779
|
+
type: "rsa",
|
|
780
|
+
options: RSAKeyPairOptions<"pem", "pem">,
|
|
712
781
|
): KeyPairSyncResult<string, string>;
|
|
713
782
|
function generateKeyPairSync(
|
|
714
|
-
type:
|
|
715
|
-
options: RSAKeyPairOptions<
|
|
783
|
+
type: "rsa",
|
|
784
|
+
options: RSAKeyPairOptions<"pem", "der">,
|
|
716
785
|
): KeyPairSyncResult<string, Buffer>;
|
|
717
786
|
function generateKeyPairSync(
|
|
718
|
-
type:
|
|
719
|
-
options: RSAKeyPairOptions<
|
|
787
|
+
type: "rsa",
|
|
788
|
+
options: RSAKeyPairOptions<"der", "pem">,
|
|
720
789
|
): KeyPairSyncResult<Buffer, string>;
|
|
721
790
|
function generateKeyPairSync(
|
|
722
|
-
type:
|
|
723
|
-
options: RSAKeyPairOptions<
|
|
791
|
+
type: "rsa",
|
|
792
|
+
options: RSAKeyPairOptions<"der", "der">,
|
|
724
793
|
): KeyPairSyncResult<Buffer, Buffer>;
|
|
725
|
-
function generateKeyPairSync(type:
|
|
794
|
+
function generateKeyPairSync(type: "rsa", options: RSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
|
|
726
795
|
|
|
727
796
|
function generateKeyPairSync(
|
|
728
|
-
type:
|
|
729
|
-
options: DSAKeyPairOptions<
|
|
797
|
+
type: "dsa",
|
|
798
|
+
options: DSAKeyPairOptions<"pem", "pem">,
|
|
730
799
|
): KeyPairSyncResult<string, string>;
|
|
731
800
|
function generateKeyPairSync(
|
|
732
|
-
type:
|
|
733
|
-
options: DSAKeyPairOptions<
|
|
801
|
+
type: "dsa",
|
|
802
|
+
options: DSAKeyPairOptions<"pem", "der">,
|
|
734
803
|
): KeyPairSyncResult<string, Buffer>;
|
|
735
804
|
function generateKeyPairSync(
|
|
736
|
-
type:
|
|
737
|
-
options: DSAKeyPairOptions<
|
|
805
|
+
type: "dsa",
|
|
806
|
+
options: DSAKeyPairOptions<"der", "pem">,
|
|
738
807
|
): KeyPairSyncResult<Buffer, string>;
|
|
739
808
|
function generateKeyPairSync(
|
|
740
|
-
type:
|
|
741
|
-
options: DSAKeyPairOptions<
|
|
809
|
+
type: "dsa",
|
|
810
|
+
options: DSAKeyPairOptions<"der", "der">,
|
|
742
811
|
): KeyPairSyncResult<Buffer, Buffer>;
|
|
743
|
-
function generateKeyPairSync(type:
|
|
812
|
+
function generateKeyPairSync(type: "dsa", options: DSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
|
|
744
813
|
|
|
745
814
|
function generateKeyPairSync(
|
|
746
|
-
type:
|
|
747
|
-
options: ECKeyPairOptions<
|
|
815
|
+
type: "ec",
|
|
816
|
+
options: ECKeyPairOptions<"pem", "pem">,
|
|
748
817
|
): KeyPairSyncResult<string, string>;
|
|
749
818
|
function generateKeyPairSync(
|
|
750
|
-
type:
|
|
751
|
-
options: ECKeyPairOptions<
|
|
819
|
+
type: "ec",
|
|
820
|
+
options: ECKeyPairOptions<"pem", "der">,
|
|
752
821
|
): KeyPairSyncResult<string, Buffer>;
|
|
753
822
|
function generateKeyPairSync(
|
|
754
|
-
type:
|
|
755
|
-
options: ECKeyPairOptions<
|
|
823
|
+
type: "ec",
|
|
824
|
+
options: ECKeyPairOptions<"der", "pem">,
|
|
756
825
|
): KeyPairSyncResult<Buffer, string>;
|
|
757
826
|
function generateKeyPairSync(
|
|
758
|
-
type:
|
|
759
|
-
options: ECKeyPairOptions<
|
|
827
|
+
type: "ec",
|
|
828
|
+
options: ECKeyPairOptions<"der", "der">,
|
|
760
829
|
): KeyPairSyncResult<Buffer, Buffer>;
|
|
761
|
-
function generateKeyPairSync(type:
|
|
830
|
+
function generateKeyPairSync(type: "ec", options: ECKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
|
|
762
831
|
|
|
763
832
|
function generateKeyPairSync(
|
|
764
|
-
type:
|
|
765
|
-
options: ED25519KeyPairOptions<
|
|
833
|
+
type: "ed25519",
|
|
834
|
+
options: ED25519KeyPairOptions<"pem", "pem">,
|
|
766
835
|
): KeyPairSyncResult<string, string>;
|
|
767
836
|
function generateKeyPairSync(
|
|
768
|
-
type:
|
|
769
|
-
options: ED25519KeyPairOptions<
|
|
837
|
+
type: "ed25519",
|
|
838
|
+
options: ED25519KeyPairOptions<"pem", "der">,
|
|
770
839
|
): KeyPairSyncResult<string, Buffer>;
|
|
771
840
|
function generateKeyPairSync(
|
|
772
|
-
type:
|
|
773
|
-
options: ED25519KeyPairOptions<
|
|
841
|
+
type: "ed25519",
|
|
842
|
+
options: ED25519KeyPairOptions<"der", "pem">,
|
|
774
843
|
): KeyPairSyncResult<Buffer, string>;
|
|
775
844
|
function generateKeyPairSync(
|
|
776
|
-
type:
|
|
777
|
-
options: ED25519KeyPairOptions<
|
|
845
|
+
type: "ed25519",
|
|
846
|
+
options: ED25519KeyPairOptions<"der", "der">,
|
|
778
847
|
): KeyPairSyncResult<Buffer, Buffer>;
|
|
779
|
-
function generateKeyPairSync(type:
|
|
848
|
+
function generateKeyPairSync(type: "ed25519", options?: ED25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
|
|
780
849
|
|
|
781
850
|
function generateKeyPairSync(
|
|
782
|
-
type:
|
|
783
|
-
options: ED448KeyPairOptions<
|
|
851
|
+
type: "ed448",
|
|
852
|
+
options: ED448KeyPairOptions<"pem", "pem">,
|
|
784
853
|
): KeyPairSyncResult<string, string>;
|
|
785
854
|
function generateKeyPairSync(
|
|
786
|
-
type:
|
|
787
|
-
options: ED448KeyPairOptions<
|
|
855
|
+
type: "ed448",
|
|
856
|
+
options: ED448KeyPairOptions<"pem", "der">,
|
|
788
857
|
): KeyPairSyncResult<string, Buffer>;
|
|
789
858
|
function generateKeyPairSync(
|
|
790
|
-
type:
|
|
791
|
-
options: ED448KeyPairOptions<
|
|
859
|
+
type: "ed448",
|
|
860
|
+
options: ED448KeyPairOptions<"der", "pem">,
|
|
792
861
|
): KeyPairSyncResult<Buffer, string>;
|
|
793
862
|
function generateKeyPairSync(
|
|
794
|
-
type:
|
|
795
|
-
options: ED448KeyPairOptions<
|
|
863
|
+
type: "ed448",
|
|
864
|
+
options: ED448KeyPairOptions<"der", "der">,
|
|
796
865
|
): KeyPairSyncResult<Buffer, Buffer>;
|
|
797
|
-
function generateKeyPairSync(type:
|
|
866
|
+
function generateKeyPairSync(type: "ed448", options?: ED448KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
|
|
798
867
|
|
|
799
868
|
function generateKeyPairSync(
|
|
800
|
-
type:
|
|
801
|
-
options: X25519KeyPairOptions<
|
|
869
|
+
type: "x25519",
|
|
870
|
+
options: X25519KeyPairOptions<"pem", "pem">,
|
|
802
871
|
): KeyPairSyncResult<string, string>;
|
|
803
872
|
function generateKeyPairSync(
|
|
804
|
-
type:
|
|
805
|
-
options: X25519KeyPairOptions<
|
|
873
|
+
type: "x25519",
|
|
874
|
+
options: X25519KeyPairOptions<"pem", "der">,
|
|
806
875
|
): KeyPairSyncResult<string, Buffer>;
|
|
807
876
|
function generateKeyPairSync(
|
|
808
|
-
type:
|
|
809
|
-
options: X25519KeyPairOptions<
|
|
877
|
+
type: "x25519",
|
|
878
|
+
options: X25519KeyPairOptions<"der", "pem">,
|
|
810
879
|
): KeyPairSyncResult<Buffer, string>;
|
|
811
880
|
function generateKeyPairSync(
|
|
812
|
-
type:
|
|
813
|
-
options: X25519KeyPairOptions<
|
|
881
|
+
type: "x25519",
|
|
882
|
+
options: X25519KeyPairOptions<"der", "der">,
|
|
814
883
|
): KeyPairSyncResult<Buffer, Buffer>;
|
|
815
|
-
function generateKeyPairSync(type:
|
|
884
|
+
function generateKeyPairSync(type: "x25519", options?: X25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
|
|
816
885
|
|
|
817
886
|
function generateKeyPairSync(
|
|
818
|
-
type:
|
|
819
|
-
options: X448KeyPairOptions<
|
|
887
|
+
type: "x448",
|
|
888
|
+
options: X448KeyPairOptions<"pem", "pem">,
|
|
820
889
|
): KeyPairSyncResult<string, string>;
|
|
821
890
|
function generateKeyPairSync(
|
|
822
|
-
type:
|
|
823
|
-
options: X448KeyPairOptions<
|
|
891
|
+
type: "x448",
|
|
892
|
+
options: X448KeyPairOptions<"pem", "der">,
|
|
824
893
|
): KeyPairSyncResult<string, Buffer>;
|
|
825
894
|
function generateKeyPairSync(
|
|
826
|
-
type:
|
|
827
|
-
options: X448KeyPairOptions<
|
|
895
|
+
type: "x448",
|
|
896
|
+
options: X448KeyPairOptions<"der", "pem">,
|
|
828
897
|
): KeyPairSyncResult<Buffer, string>;
|
|
829
898
|
function generateKeyPairSync(
|
|
830
|
-
type:
|
|
831
|
-
options: X448KeyPairOptions<
|
|
899
|
+
type: "x448",
|
|
900
|
+
options: X448KeyPairOptions<"der", "der">,
|
|
832
901
|
): KeyPairSyncResult<Buffer, Buffer>;
|
|
833
|
-
function generateKeyPairSync(type:
|
|
902
|
+
function generateKeyPairSync(type: "x448", options?: X448KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
|
|
834
903
|
|
|
835
904
|
function generateKeyPair(
|
|
836
|
-
type:
|
|
837
|
-
options: RSAKeyPairOptions<
|
|
905
|
+
type: "rsa",
|
|
906
|
+
options: RSAKeyPairOptions<"pem", "pem">,
|
|
838
907
|
callback: (err: Error | null, publicKey: string, privateKey: string) => void,
|
|
839
908
|
): void;
|
|
840
909
|
function generateKeyPair(
|
|
841
|
-
type:
|
|
842
|
-
options: RSAKeyPairOptions<
|
|
910
|
+
type: "rsa",
|
|
911
|
+
options: RSAKeyPairOptions<"pem", "der">,
|
|
843
912
|
callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
|
|
844
913
|
): void;
|
|
845
914
|
function generateKeyPair(
|
|
846
|
-
type:
|
|
847
|
-
options: RSAKeyPairOptions<
|
|
915
|
+
type: "rsa",
|
|
916
|
+
options: RSAKeyPairOptions<"der", "pem">,
|
|
848
917
|
callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
|
|
849
918
|
): void;
|
|
850
919
|
function generateKeyPair(
|
|
851
|
-
type:
|
|
852
|
-
options: RSAKeyPairOptions<
|
|
920
|
+
type: "rsa",
|
|
921
|
+
options: RSAKeyPairOptions<"der", "der">,
|
|
853
922
|
callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
|
|
854
923
|
): void;
|
|
855
924
|
function generateKeyPair(
|
|
856
|
-
type:
|
|
925
|
+
type: "rsa",
|
|
857
926
|
options: RSAKeyPairKeyObjectOptions,
|
|
858
927
|
callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
|
|
859
928
|
): void;
|
|
860
929
|
|
|
861
930
|
function generateKeyPair(
|
|
862
|
-
type:
|
|
863
|
-
options: DSAKeyPairOptions<
|
|
931
|
+
type: "dsa",
|
|
932
|
+
options: DSAKeyPairOptions<"pem", "pem">,
|
|
864
933
|
callback: (err: Error | null, publicKey: string, privateKey: string) => void,
|
|
865
934
|
): void;
|
|
866
935
|
function generateKeyPair(
|
|
867
|
-
type:
|
|
868
|
-
options: DSAKeyPairOptions<
|
|
936
|
+
type: "dsa",
|
|
937
|
+
options: DSAKeyPairOptions<"pem", "der">,
|
|
869
938
|
callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
|
|
870
939
|
): void;
|
|
871
940
|
function generateKeyPair(
|
|
872
|
-
type:
|
|
873
|
-
options: DSAKeyPairOptions<
|
|
941
|
+
type: "dsa",
|
|
942
|
+
options: DSAKeyPairOptions<"der", "pem">,
|
|
874
943
|
callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
|
|
875
944
|
): void;
|
|
876
945
|
function generateKeyPair(
|
|
877
|
-
type:
|
|
878
|
-
options: DSAKeyPairOptions<
|
|
946
|
+
type: "dsa",
|
|
947
|
+
options: DSAKeyPairOptions<"der", "der">,
|
|
879
948
|
callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
|
|
880
949
|
): void;
|
|
881
950
|
function generateKeyPair(
|
|
882
|
-
type:
|
|
951
|
+
type: "dsa",
|
|
883
952
|
options: DSAKeyPairKeyObjectOptions,
|
|
884
953
|
callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
|
|
885
954
|
): void;
|
|
886
955
|
|
|
887
956
|
function generateKeyPair(
|
|
888
|
-
type:
|
|
889
|
-
options: ECKeyPairOptions<
|
|
957
|
+
type: "ec",
|
|
958
|
+
options: ECKeyPairOptions<"pem", "pem">,
|
|
890
959
|
callback: (err: Error | null, publicKey: string, privateKey: string) => void,
|
|
891
960
|
): void;
|
|
892
961
|
function generateKeyPair(
|
|
893
|
-
type:
|
|
894
|
-
options: ECKeyPairOptions<
|
|
962
|
+
type: "ec",
|
|
963
|
+
options: ECKeyPairOptions<"pem", "der">,
|
|
895
964
|
callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
|
|
896
965
|
): void;
|
|
897
966
|
function generateKeyPair(
|
|
898
|
-
type:
|
|
899
|
-
options: ECKeyPairOptions<
|
|
967
|
+
type: "ec",
|
|
968
|
+
options: ECKeyPairOptions<"der", "pem">,
|
|
900
969
|
callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
|
|
901
970
|
): void;
|
|
902
971
|
function generateKeyPair(
|
|
903
|
-
type:
|
|
904
|
-
options: ECKeyPairOptions<
|
|
972
|
+
type: "ec",
|
|
973
|
+
options: ECKeyPairOptions<"der", "der">,
|
|
905
974
|
callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
|
|
906
975
|
): void;
|
|
907
976
|
function generateKeyPair(
|
|
908
|
-
type:
|
|
977
|
+
type: "ec",
|
|
909
978
|
options: ECKeyPairKeyObjectOptions,
|
|
910
979
|
callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
|
|
911
980
|
): void;
|
|
912
981
|
|
|
913
982
|
function generateKeyPair(
|
|
914
|
-
type:
|
|
915
|
-
options: ED25519KeyPairOptions<
|
|
983
|
+
type: "ed25519",
|
|
984
|
+
options: ED25519KeyPairOptions<"pem", "pem">,
|
|
916
985
|
callback: (err: Error | null, publicKey: string, privateKey: string) => void,
|
|
917
986
|
): void;
|
|
918
987
|
function generateKeyPair(
|
|
919
|
-
type:
|
|
920
|
-
options: ED25519KeyPairOptions<
|
|
988
|
+
type: "ed25519",
|
|
989
|
+
options: ED25519KeyPairOptions<"pem", "der">,
|
|
921
990
|
callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
|
|
922
991
|
): void;
|
|
923
992
|
function generateKeyPair(
|
|
924
|
-
type:
|
|
925
|
-
options: ED25519KeyPairOptions<
|
|
993
|
+
type: "ed25519",
|
|
994
|
+
options: ED25519KeyPairOptions<"der", "pem">,
|
|
926
995
|
callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
|
|
927
996
|
): void;
|
|
928
997
|
function generateKeyPair(
|
|
929
|
-
type:
|
|
930
|
-
options: ED25519KeyPairOptions<
|
|
998
|
+
type: "ed25519",
|
|
999
|
+
options: ED25519KeyPairOptions<"der", "der">,
|
|
931
1000
|
callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
|
|
932
1001
|
): void;
|
|
933
1002
|
function generateKeyPair(
|
|
934
|
-
type:
|
|
1003
|
+
type: "ed25519",
|
|
935
1004
|
options: ED25519KeyPairKeyObjectOptions | undefined,
|
|
936
1005
|
callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
|
|
937
1006
|
): void;
|
|
938
1007
|
|
|
939
1008
|
function generateKeyPair(
|
|
940
|
-
type:
|
|
941
|
-
options: ED448KeyPairOptions<
|
|
1009
|
+
type: "ed448",
|
|
1010
|
+
options: ED448KeyPairOptions<"pem", "pem">,
|
|
942
1011
|
callback: (err: Error | null, publicKey: string, privateKey: string) => void,
|
|
943
1012
|
): void;
|
|
944
1013
|
function generateKeyPair(
|
|
945
|
-
type:
|
|
946
|
-
options: ED448KeyPairOptions<
|
|
1014
|
+
type: "ed448",
|
|
1015
|
+
options: ED448KeyPairOptions<"pem", "der">,
|
|
947
1016
|
callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
|
|
948
1017
|
): void;
|
|
949
1018
|
function generateKeyPair(
|
|
950
|
-
type:
|
|
951
|
-
options: ED448KeyPairOptions<
|
|
1019
|
+
type: "ed448",
|
|
1020
|
+
options: ED448KeyPairOptions<"der", "pem">,
|
|
952
1021
|
callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
|
|
953
1022
|
): void;
|
|
954
1023
|
function generateKeyPair(
|
|
955
|
-
type:
|
|
956
|
-
options: ED448KeyPairOptions<
|
|
1024
|
+
type: "ed448",
|
|
1025
|
+
options: ED448KeyPairOptions<"der", "der">,
|
|
957
1026
|
callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
|
|
958
1027
|
): void;
|
|
959
1028
|
function generateKeyPair(
|
|
960
|
-
type:
|
|
1029
|
+
type: "ed448",
|
|
961
1030
|
options: ED448KeyPairKeyObjectOptions | undefined,
|
|
962
1031
|
callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
|
|
963
1032
|
): void;
|
|
964
1033
|
|
|
965
1034
|
function generateKeyPair(
|
|
966
|
-
type:
|
|
967
|
-
options: X25519KeyPairOptions<
|
|
1035
|
+
type: "x25519",
|
|
1036
|
+
options: X25519KeyPairOptions<"pem", "pem">,
|
|
968
1037
|
callback: (err: Error | null, publicKey: string, privateKey: string) => void,
|
|
969
1038
|
): void;
|
|
970
1039
|
function generateKeyPair(
|
|
971
|
-
type:
|
|
972
|
-
options: X25519KeyPairOptions<
|
|
1040
|
+
type: "x25519",
|
|
1041
|
+
options: X25519KeyPairOptions<"pem", "der">,
|
|
973
1042
|
callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
|
|
974
1043
|
): void;
|
|
975
1044
|
function generateKeyPair(
|
|
976
|
-
type:
|
|
977
|
-
options: X25519KeyPairOptions<
|
|
1045
|
+
type: "x25519",
|
|
1046
|
+
options: X25519KeyPairOptions<"der", "pem">,
|
|
978
1047
|
callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
|
|
979
1048
|
): void;
|
|
980
1049
|
function generateKeyPair(
|
|
981
|
-
type:
|
|
982
|
-
options: X25519KeyPairOptions<
|
|
1050
|
+
type: "x25519",
|
|
1051
|
+
options: X25519KeyPairOptions<"der", "der">,
|
|
983
1052
|
callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
|
|
984
1053
|
): void;
|
|
985
1054
|
function generateKeyPair(
|
|
986
|
-
type:
|
|
1055
|
+
type: "x25519",
|
|
987
1056
|
options: X25519KeyPairKeyObjectOptions | undefined,
|
|
988
1057
|
callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
|
|
989
1058
|
): void;
|
|
990
1059
|
|
|
991
1060
|
function generateKeyPair(
|
|
992
|
-
type:
|
|
993
|
-
options: X448KeyPairOptions<
|
|
1061
|
+
type: "x448",
|
|
1062
|
+
options: X448KeyPairOptions<"pem", "pem">,
|
|
994
1063
|
callback: (err: Error | null, publicKey: string, privateKey: string) => void,
|
|
995
1064
|
): void;
|
|
996
1065
|
function generateKeyPair(
|
|
997
|
-
type:
|
|
998
|
-
options: X448KeyPairOptions<
|
|
1066
|
+
type: "x448",
|
|
1067
|
+
options: X448KeyPairOptions<"pem", "der">,
|
|
999
1068
|
callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
|
|
1000
1069
|
): void;
|
|
1001
1070
|
function generateKeyPair(
|
|
1002
|
-
type:
|
|
1003
|
-
options: X448KeyPairOptions<
|
|
1071
|
+
type: "x448",
|
|
1072
|
+
options: X448KeyPairOptions<"der", "pem">,
|
|
1004
1073
|
callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
|
|
1005
1074
|
): void;
|
|
1006
1075
|
function generateKeyPair(
|
|
1007
|
-
type:
|
|
1008
|
-
options: X448KeyPairOptions<
|
|
1076
|
+
type: "x448",
|
|
1077
|
+
options: X448KeyPairOptions<"der", "der">,
|
|
1009
1078
|
callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
|
|
1010
1079
|
): void;
|
|
1011
1080
|
function generateKeyPair(
|
|
1012
|
-
type:
|
|
1081
|
+
type: "x448",
|
|
1013
1082
|
options: X448KeyPairKeyObjectOptions | undefined,
|
|
1014
1083
|
callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
|
|
1015
1084
|
): void;
|
|
1016
1085
|
|
|
1017
1086
|
namespace generateKeyPair {
|
|
1018
1087
|
function __promisify__(
|
|
1019
|
-
type:
|
|
1020
|
-
options: RSAKeyPairOptions<
|
|
1088
|
+
type: "rsa",
|
|
1089
|
+
options: RSAKeyPairOptions<"pem", "pem">,
|
|
1021
1090
|
): Promise<{ publicKey: string; privateKey: string }>;
|
|
1022
1091
|
function __promisify__(
|
|
1023
|
-
type:
|
|
1024
|
-
options: RSAKeyPairOptions<
|
|
1092
|
+
type: "rsa",
|
|
1093
|
+
options: RSAKeyPairOptions<"pem", "der">,
|
|
1025
1094
|
): Promise<{ publicKey: string; privateKey: Buffer }>;
|
|
1026
1095
|
function __promisify__(
|
|
1027
|
-
type:
|
|
1028
|
-
options: RSAKeyPairOptions<
|
|
1096
|
+
type: "rsa",
|
|
1097
|
+
options: RSAKeyPairOptions<"der", "pem">,
|
|
1029
1098
|
): Promise<{ publicKey: Buffer; privateKey: string }>;
|
|
1030
1099
|
function __promisify__(
|
|
1031
|
-
type:
|
|
1032
|
-
options: RSAKeyPairOptions<
|
|
1100
|
+
type: "rsa",
|
|
1101
|
+
options: RSAKeyPairOptions<"der", "der">,
|
|
1033
1102
|
): Promise<{ publicKey: Buffer; privateKey: Buffer }>;
|
|
1034
|
-
function __promisify__(type:
|
|
1103
|
+
function __promisify__(type: "rsa", options: RSAKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
|
|
1035
1104
|
|
|
1036
1105
|
function __promisify__(
|
|
1037
|
-
type:
|
|
1038
|
-
options: DSAKeyPairOptions<
|
|
1106
|
+
type: "dsa",
|
|
1107
|
+
options: DSAKeyPairOptions<"pem", "pem">,
|
|
1039
1108
|
): Promise<{ publicKey: string; privateKey: string }>;
|
|
1040
1109
|
function __promisify__(
|
|
1041
|
-
type:
|
|
1042
|
-
options: DSAKeyPairOptions<
|
|
1110
|
+
type: "dsa",
|
|
1111
|
+
options: DSAKeyPairOptions<"pem", "der">,
|
|
1043
1112
|
): Promise<{ publicKey: string; privateKey: Buffer }>;
|
|
1044
1113
|
function __promisify__(
|
|
1045
|
-
type:
|
|
1046
|
-
options: DSAKeyPairOptions<
|
|
1114
|
+
type: "dsa",
|
|
1115
|
+
options: DSAKeyPairOptions<"der", "pem">,
|
|
1047
1116
|
): Promise<{ publicKey: Buffer; privateKey: string }>;
|
|
1048
1117
|
function __promisify__(
|
|
1049
|
-
type:
|
|
1050
|
-
options: DSAKeyPairOptions<
|
|
1118
|
+
type: "dsa",
|
|
1119
|
+
options: DSAKeyPairOptions<"der", "der">,
|
|
1051
1120
|
): Promise<{ publicKey: Buffer; privateKey: Buffer }>;
|
|
1052
|
-
function __promisify__(type:
|
|
1121
|
+
function __promisify__(type: "dsa", options: DSAKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
|
|
1053
1122
|
|
|
1054
1123
|
function __promisify__(
|
|
1055
|
-
type:
|
|
1056
|
-
options: ECKeyPairOptions<
|
|
1124
|
+
type: "ec",
|
|
1125
|
+
options: ECKeyPairOptions<"pem", "pem">,
|
|
1057
1126
|
): Promise<{ publicKey: string; privateKey: string }>;
|
|
1058
1127
|
function __promisify__(
|
|
1059
|
-
type:
|
|
1060
|
-
options: ECKeyPairOptions<
|
|
1128
|
+
type: "ec",
|
|
1129
|
+
options: ECKeyPairOptions<"pem", "der">,
|
|
1061
1130
|
): Promise<{ publicKey: string; privateKey: Buffer }>;
|
|
1062
1131
|
function __promisify__(
|
|
1063
|
-
type:
|
|
1064
|
-
options: ECKeyPairOptions<
|
|
1132
|
+
type: "ec",
|
|
1133
|
+
options: ECKeyPairOptions<"der", "pem">,
|
|
1065
1134
|
): Promise<{ publicKey: Buffer; privateKey: string }>;
|
|
1066
1135
|
function __promisify__(
|
|
1067
|
-
type:
|
|
1068
|
-
options: ECKeyPairOptions<
|
|
1136
|
+
type: "ec",
|
|
1137
|
+
options: ECKeyPairOptions<"der", "der">,
|
|
1069
1138
|
): Promise<{ publicKey: Buffer; privateKey: Buffer }>;
|
|
1070
|
-
function __promisify__(type:
|
|
1139
|
+
function __promisify__(type: "ec", options: ECKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
|
|
1071
1140
|
|
|
1072
1141
|
function __promisify__(
|
|
1073
|
-
type:
|
|
1074
|
-
options: ED25519KeyPairOptions<
|
|
1142
|
+
type: "ed25519",
|
|
1143
|
+
options: ED25519KeyPairOptions<"pem", "pem">,
|
|
1075
1144
|
): Promise<{ publicKey: string; privateKey: string }>;
|
|
1076
1145
|
function __promisify__(
|
|
1077
|
-
type:
|
|
1078
|
-
options: ED25519KeyPairOptions<
|
|
1146
|
+
type: "ed25519",
|
|
1147
|
+
options: ED25519KeyPairOptions<"pem", "der">,
|
|
1079
1148
|
): Promise<{ publicKey: string; privateKey: Buffer }>;
|
|
1080
1149
|
function __promisify__(
|
|
1081
|
-
type:
|
|
1082
|
-
options: ED25519KeyPairOptions<
|
|
1150
|
+
type: "ed25519",
|
|
1151
|
+
options: ED25519KeyPairOptions<"der", "pem">,
|
|
1083
1152
|
): Promise<{ publicKey: Buffer; privateKey: string }>;
|
|
1084
1153
|
function __promisify__(
|
|
1085
|
-
type:
|
|
1086
|
-
options: ED25519KeyPairOptions<
|
|
1154
|
+
type: "ed25519",
|
|
1155
|
+
options: ED25519KeyPairOptions<"der", "der">,
|
|
1087
1156
|
): Promise<{ publicKey: Buffer; privateKey: Buffer }>;
|
|
1088
1157
|
function __promisify__(
|
|
1089
|
-
type:
|
|
1158
|
+
type: "ed25519",
|
|
1090
1159
|
options?: ED25519KeyPairKeyObjectOptions,
|
|
1091
1160
|
): Promise<KeyPairKeyObjectResult>;
|
|
1092
1161
|
|
|
1093
1162
|
function __promisify__(
|
|
1094
|
-
type:
|
|
1095
|
-
options: ED448KeyPairOptions<
|
|
1163
|
+
type: "ed448",
|
|
1164
|
+
options: ED448KeyPairOptions<"pem", "pem">,
|
|
1096
1165
|
): Promise<{ publicKey: string; privateKey: string }>;
|
|
1097
1166
|
function __promisify__(
|
|
1098
|
-
type:
|
|
1099
|
-
options: ED448KeyPairOptions<
|
|
1167
|
+
type: "ed448",
|
|
1168
|
+
options: ED448KeyPairOptions<"pem", "der">,
|
|
1100
1169
|
): Promise<{ publicKey: string; privateKey: Buffer }>;
|
|
1101
1170
|
function __promisify__(
|
|
1102
|
-
type:
|
|
1103
|
-
options: ED448KeyPairOptions<
|
|
1171
|
+
type: "ed448",
|
|
1172
|
+
options: ED448KeyPairOptions<"der", "pem">,
|
|
1104
1173
|
): Promise<{ publicKey: Buffer; privateKey: string }>;
|
|
1105
1174
|
function __promisify__(
|
|
1106
|
-
type:
|
|
1107
|
-
options: ED448KeyPairOptions<
|
|
1175
|
+
type: "ed448",
|
|
1176
|
+
options: ED448KeyPairOptions<"der", "der">,
|
|
1108
1177
|
): Promise<{ publicKey: Buffer; privateKey: Buffer }>;
|
|
1109
|
-
function __promisify__(type:
|
|
1178
|
+
function __promisify__(type: "ed448", options?: ED448KeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
|
|
1110
1179
|
|
|
1111
1180
|
function __promisify__(
|
|
1112
|
-
type:
|
|
1113
|
-
options: X25519KeyPairOptions<
|
|
1181
|
+
type: "x25519",
|
|
1182
|
+
options: X25519KeyPairOptions<"pem", "pem">,
|
|
1114
1183
|
): Promise<{ publicKey: string; privateKey: string }>;
|
|
1115
1184
|
function __promisify__(
|
|
1116
|
-
type:
|
|
1117
|
-
options: X25519KeyPairOptions<
|
|
1185
|
+
type: "x25519",
|
|
1186
|
+
options: X25519KeyPairOptions<"pem", "der">,
|
|
1118
1187
|
): Promise<{ publicKey: string; privateKey: Buffer }>;
|
|
1119
1188
|
function __promisify__(
|
|
1120
|
-
type:
|
|
1121
|
-
options: X25519KeyPairOptions<
|
|
1189
|
+
type: "x25519",
|
|
1190
|
+
options: X25519KeyPairOptions<"der", "pem">,
|
|
1122
1191
|
): Promise<{ publicKey: Buffer; privateKey: string }>;
|
|
1123
1192
|
function __promisify__(
|
|
1124
|
-
type:
|
|
1125
|
-
options: X25519KeyPairOptions<
|
|
1193
|
+
type: "x25519",
|
|
1194
|
+
options: X25519KeyPairOptions<"der", "der">,
|
|
1126
1195
|
): Promise<{ publicKey: Buffer; privateKey: Buffer }>;
|
|
1127
1196
|
function __promisify__(
|
|
1128
|
-
type:
|
|
1197
|
+
type: "x25519",
|
|
1129
1198
|
options?: X25519KeyPairKeyObjectOptions,
|
|
1130
1199
|
): Promise<KeyPairKeyObjectResult>;
|
|
1131
1200
|
|
|
1132
1201
|
function __promisify__(
|
|
1133
|
-
type:
|
|
1134
|
-
options: X448KeyPairOptions<
|
|
1202
|
+
type: "x448",
|
|
1203
|
+
options: X448KeyPairOptions<"pem", "pem">,
|
|
1135
1204
|
): Promise<{ publicKey: string; privateKey: string }>;
|
|
1136
1205
|
function __promisify__(
|
|
1137
|
-
type:
|
|
1138
|
-
options: X448KeyPairOptions<
|
|
1206
|
+
type: "x448",
|
|
1207
|
+
options: X448KeyPairOptions<"pem", "der">,
|
|
1139
1208
|
): Promise<{ publicKey: string; privateKey: Buffer }>;
|
|
1140
1209
|
function __promisify__(
|
|
1141
|
-
type:
|
|
1142
|
-
options: X448KeyPairOptions<
|
|
1210
|
+
type: "x448",
|
|
1211
|
+
options: X448KeyPairOptions<"der", "pem">,
|
|
1143
1212
|
): Promise<{ publicKey: Buffer; privateKey: string }>;
|
|
1144
1213
|
function __promisify__(
|
|
1145
|
-
type:
|
|
1146
|
-
options: X448KeyPairOptions<
|
|
1214
|
+
type: "x448",
|
|
1215
|
+
options: X448KeyPairOptions<"der", "der">,
|
|
1147
1216
|
): Promise<{ publicKey: Buffer; privateKey: Buffer }>;
|
|
1148
|
-
function __promisify__(type:
|
|
1217
|
+
function __promisify__(type: "x448", options?: X448KeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
|
|
1149
1218
|
}
|
|
1150
1219
|
|
|
1151
1220
|
/**
|
|
@@ -1183,7 +1252,36 @@ declare module 'crypto' {
|
|
|
1183
1252
|
* 'dh' (for Diffie-Hellman), 'ec' (for ECDH), 'x448', or 'x25519' (for ECDH-ES).
|
|
1184
1253
|
*/
|
|
1185
1254
|
function diffieHellman(options: { privateKey: KeyObject; publicKey: KeyObject }): Buffer;
|
|
1255
|
+
/**
|
|
1256
|
+
* Load and set the `engine` for some or all OpenSSL functions (selected by flags).
|
|
1257
|
+
*
|
|
1258
|
+
* `engine` could be either an id or a path to the engine's shared library.
|
|
1259
|
+
*
|
|
1260
|
+
* The optional `flags` argument uses `ENGINE_METHOD_ALL` by default.
|
|
1261
|
+
* The `flags` is a bit field taking one of or a mix of the following flags (defined in `crypto.constants`):
|
|
1262
|
+
*
|
|
1263
|
+
* - `crypto.constants.ENGINE_METHOD_RSA`
|
|
1264
|
+
* - `crypto.constants.ENGINE_METHOD_DSA`
|
|
1265
|
+
* - `crypto.constants.ENGINE_METHOD_DH`
|
|
1266
|
+
* - `crypto.constants.ENGINE_METHOD_RAND`
|
|
1267
|
+
* - `crypto.constants.ENGINE_METHOD_EC`
|
|
1268
|
+
* - `crypto.constants.ENGINE_METHOD_CIPHERS`
|
|
1269
|
+
* - `crypto.constants.ENGINE_METHOD_DIGESTS`
|
|
1270
|
+
* - `crypto.constants.ENGINE_METHOD_PKEY_METHS`
|
|
1271
|
+
* - `crypto.constants.ENGINE_METHOD_PKEY_ASN1_METHS`
|
|
1272
|
+
* - `crypto.constants.ENGINE_METHOD_ALL`
|
|
1273
|
+
* - `crypto.constants.ENGINE_METHOD_NONE`
|
|
1274
|
+
*
|
|
1275
|
+
* The flags below are deprecated in OpenSSL-1.1.0.
|
|
1276
|
+
*
|
|
1277
|
+
* - `crypto.constants.ENGINE_METHOD_ECDH`
|
|
1278
|
+
* - `crypto.constants.ENGINE_METHOD_ECDSA`
|
|
1279
|
+
* - `crypto.constants.ENGINE_METHOD_STORE`
|
|
1280
|
+
* @since v0.11.11
|
|
1281
|
+
* @param [flags=crypto.constants.ENGINE_METHOD_ALL]
|
|
1282
|
+
*/
|
|
1283
|
+
function setEngine(engine: string, flags?: number): void;
|
|
1186
1284
|
}
|
|
1187
|
-
declare module
|
|
1188
|
-
export * from
|
|
1285
|
+
declare module "node:crypto" {
|
|
1286
|
+
export * from "crypto";
|
|
1189
1287
|
}
|