@emulsify/cli 1.6.0 → 1.8.0
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 +1 -1
- package/dist/handlers/componentList.js +1 -1
- package/dist/handlers/systemInstall.js +24 -9
- package/dist/index.js +12 -21
- package/dist/node_modules/.package-lock.json +24 -24
- package/dist/node_modules/@types/node/LICENSE +0 -0
- package/dist/node_modules/@types/node/README.md +1 -1
- package/dist/node_modules/@types/node/assert.d.ts +33 -31
- package/dist/node_modules/@types/node/async_hooks.d.ts +28 -20
- package/dist/node_modules/@types/node/buffer.d.ts +4 -4
- 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 +311 -237
- 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 +41 -22
- package/dist/node_modules/@types/node/globals.global.d.ts +0 -0
- package/dist/node_modules/@types/node/http.d.ts +306 -217
- package/dist/node_modules/@types/node/http2.d.ts +341 -95
- package/dist/node_modules/@types/node/https.d.ts +250 -118
- package/dist/node_modules/@types/node/index.d.ts +1 -1
- package/dist/node_modules/@types/node/inspector.d.ts +1 -2
- package/dist/node_modules/@types/node/module.d.ts +4 -4
- package/dist/node_modules/@types/node/net.d.ts +28 -12
- package/dist/node_modules/@types/node/os.d.ts +5 -4
- package/dist/node_modules/@types/node/package.json +10 -3
- 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 +61 -22
- 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 +182 -23
- package/dist/node_modules/@types/node/string_decoder.d.ts +3 -3
- package/dist/node_modules/@types/node/timers.d.ts +5 -5
- package/dist/node_modules/@types/node/tls.d.ts +112 -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 +49 -11
- 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 +19 -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 +5 -5
- 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 +1 -1
- 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.map +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/serialize.js +18 -7
- 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/resolve.d.ts +1 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.js +4 -4
- 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 +11 -1
- 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 +3 -3
- package/dist/node_modules/ajv-formats/node_modules/ajv/dist/core.js +2 -1
- 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 +1 -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 +19 -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 +30 -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.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.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.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.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/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/index.ts +25 -5
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/jtd/serialize.ts +20 -14
- 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/resolve.ts +4 -4
- 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 +10 -1
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/core.ts +4 -0
- 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/types/index.ts +7 -3
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/types/json-schema.ts +1 -0
- package/dist/node_modules/ajv-formats/node_modules/ajv/lib/types/jtd-schema.ts +21 -11
- 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/values.ts +10 -7
- package/dist/node_modules/ajv-formats/node_modules/ajv/package.json +40 -40
- 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/graceful-fs/package.json +6 -3
- package/dist/node_modules/graceful-fs/polyfills.js +1 -1
- 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/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 +1 -2
- 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/package.json +2 -3
- package/dist/node_modules/commander/CHANGELOG.md +0 -440
|
@@ -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,15 +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 =
|
|
192
|
-
type CipherOCBTypes =
|
|
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";
|
|
193
193
|
|
|
194
194
|
type BinaryLike = string | NodeJS.ArrayBufferView;
|
|
195
195
|
|
|
@@ -320,27 +320,27 @@ declare module 'crypto' {
|
|
|
320
320
|
interface PrivateKeyInput {
|
|
321
321
|
key: string | Buffer;
|
|
322
322
|
format?: KeyFormat | undefined;
|
|
323
|
-
type?:
|
|
323
|
+
type?: "pkcs1" | "pkcs8" | "sec1" | undefined;
|
|
324
324
|
passphrase?: string | Buffer | undefined;
|
|
325
325
|
}
|
|
326
326
|
|
|
327
327
|
interface PublicKeyInput {
|
|
328
328
|
key: string | Buffer;
|
|
329
329
|
format?: KeyFormat | undefined;
|
|
330
|
-
type?:
|
|
330
|
+
type?: "pkcs1" | "spki" | undefined;
|
|
331
331
|
}
|
|
332
332
|
|
|
333
333
|
function createPrivateKey(key: PrivateKeyInput | string | Buffer): KeyObject;
|
|
334
334
|
function createPublicKey(key: PublicKeyInput | string | Buffer | KeyObject): KeyObject;
|
|
335
335
|
function createSecretKey(key: NodeJS.ArrayBufferView): KeyObject;
|
|
336
336
|
|
|
337
|
-
function createSign(algorithm: string, options?: stream.WritableOptions):
|
|
337
|
+
function createSign(algorithm: string, options?: stream.WritableOptions): Sign;
|
|
338
338
|
|
|
339
|
-
type DSAEncoding =
|
|
339
|
+
type DSAEncoding = "der" | "ieee-p1363";
|
|
340
340
|
|
|
341
341
|
interface SigningOptions {
|
|
342
342
|
/**
|
|
343
|
-
* @
|
|
343
|
+
* @see crypto.constants.RSA_PKCS1_PADDING
|
|
344
344
|
*/
|
|
345
345
|
padding?: number | undefined;
|
|
346
346
|
saltLength?: number | undefined;
|
|
@@ -358,11 +358,11 @@ declare module 'crypto' {
|
|
|
358
358
|
|
|
359
359
|
type KeyLike = string | Buffer | KeyObject;
|
|
360
360
|
|
|
361
|
-
class
|
|
361
|
+
class Sign extends stream.Writable {
|
|
362
362
|
private constructor();
|
|
363
363
|
|
|
364
|
-
update(data: BinaryLike):
|
|
365
|
-
update(data: string, input_encoding: Encoding):
|
|
364
|
+
update(data: BinaryLike): Sign;
|
|
365
|
+
update(data: string, input_encoding: Encoding): Sign;
|
|
366
366
|
sign(private_key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput): Buffer;
|
|
367
367
|
sign(
|
|
368
368
|
private_key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput,
|
|
@@ -406,9 +406,13 @@ declare module 'crypto' {
|
|
|
406
406
|
private constructor();
|
|
407
407
|
generateKeys(): Buffer;
|
|
408
408
|
generateKeys(encoding: BinaryToTextEncoding): string;
|
|
409
|
-
computeSecret(
|
|
410
|
-
computeSecret(
|
|
411
|
-
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;
|
|
412
416
|
computeSecret(
|
|
413
417
|
other_public_key: string,
|
|
414
418
|
input_encoding: BinaryToTextEncoding,
|
|
@@ -428,7 +432,42 @@ declare module 'crypto' {
|
|
|
428
432
|
setPrivateKey(private_key: string, encoding: BufferEncoding): void;
|
|
429
433
|
verifyError: number;
|
|
430
434
|
}
|
|
431
|
-
|
|
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;
|
|
432
471
|
function pbkdf2(
|
|
433
472
|
password: BinaryLike,
|
|
434
473
|
salt: BinaryLike,
|
|
@@ -483,8 +522,8 @@ declare module 'crypto' {
|
|
|
483
522
|
*/
|
|
484
523
|
disableEntropyCache?: boolean | undefined;
|
|
485
524
|
}
|
|
486
|
-
|
|
487
|
-
function randomUUID(options?: RandomUUIDOptions):
|
|
525
|
+
type UUID = `${string}-${string}-${string}-${string}-${string}`;
|
|
526
|
+
function randomUUID(options?: RandomUUIDOptions): UUID;
|
|
488
527
|
|
|
489
528
|
interface ScryptOptions {
|
|
490
529
|
cost?: number | undefined;
|
|
@@ -531,6 +570,12 @@ declare module 'crypto' {
|
|
|
531
570
|
function getCiphers(): string[];
|
|
532
571
|
function getCurves(): string[];
|
|
533
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;
|
|
534
579
|
function getHashes(): string[];
|
|
535
580
|
class ECDH {
|
|
536
581
|
private constructor();
|
|
@@ -538,8 +583,8 @@ declare module 'crypto' {
|
|
|
538
583
|
key: BinaryLike,
|
|
539
584
|
curve: string,
|
|
540
585
|
inputEncoding?: BinaryToTextEncoding,
|
|
541
|
-
outputEncoding?:
|
|
542
|
-
format?:
|
|
586
|
+
outputEncoding?: "latin1" | "hex" | "base64" | "base64url",
|
|
587
|
+
format?: "uncompressed" | "compressed" | "hybrid",
|
|
543
588
|
): Buffer | string;
|
|
544
589
|
generateKeys(): Buffer;
|
|
545
590
|
generateKeys(encoding: BinaryToTextEncoding, format?: ECDHKeyFormat): string;
|
|
@@ -563,8 +608,8 @@ declare module 'crypto' {
|
|
|
563
608
|
/** @deprecated since v10.0.0 */
|
|
564
609
|
const DEFAULT_ENCODING: BufferEncoding;
|
|
565
610
|
|
|
566
|
-
type KeyType =
|
|
567
|
-
type KeyFormat =
|
|
611
|
+
type KeyType = "rsa" | "dsa" | "ec" | "ed25519" | "ed448" | "x25519" | "x448";
|
|
612
|
+
type KeyFormat = "pem" | "der";
|
|
568
613
|
|
|
569
614
|
interface BasePrivateKeyEncodingOptions<T extends KeyFormat> {
|
|
570
615
|
format: T;
|
|
@@ -643,11 +688,11 @@ declare module 'crypto' {
|
|
|
643
688
|
publicExponent?: number | undefined;
|
|
644
689
|
|
|
645
690
|
publicKeyEncoding: {
|
|
646
|
-
type:
|
|
691
|
+
type: "pkcs1" | "spki";
|
|
647
692
|
format: PubF;
|
|
648
693
|
};
|
|
649
694
|
privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
|
|
650
|
-
type:
|
|
695
|
+
type: "pkcs1" | "pkcs8";
|
|
651
696
|
};
|
|
652
697
|
}
|
|
653
698
|
|
|
@@ -662,11 +707,11 @@ declare module 'crypto' {
|
|
|
662
707
|
divisorLength: number;
|
|
663
708
|
|
|
664
709
|
publicKeyEncoding: {
|
|
665
|
-
type:
|
|
710
|
+
type: "spki";
|
|
666
711
|
format: PubF;
|
|
667
712
|
};
|
|
668
713
|
privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
|
|
669
|
-
type:
|
|
714
|
+
type: "pkcs8";
|
|
670
715
|
};
|
|
671
716
|
}
|
|
672
717
|
|
|
@@ -677,51 +722,51 @@ declare module 'crypto' {
|
|
|
677
722
|
namedCurve: string;
|
|
678
723
|
|
|
679
724
|
publicKeyEncoding: {
|
|
680
|
-
type:
|
|
725
|
+
type: "pkcs1" | "spki";
|
|
681
726
|
format: PubF;
|
|
682
727
|
};
|
|
683
728
|
privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
|
|
684
|
-
type:
|
|
729
|
+
type: "sec1" | "pkcs8";
|
|
685
730
|
};
|
|
686
731
|
}
|
|
687
732
|
|
|
688
733
|
interface ED25519KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
|
|
689
734
|
publicKeyEncoding: {
|
|
690
|
-
type:
|
|
735
|
+
type: "spki";
|
|
691
736
|
format: PubF;
|
|
692
737
|
};
|
|
693
738
|
privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
|
|
694
|
-
type:
|
|
739
|
+
type: "pkcs8";
|
|
695
740
|
};
|
|
696
741
|
}
|
|
697
742
|
|
|
698
743
|
interface ED448KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
|
|
699
744
|
publicKeyEncoding: {
|
|
700
|
-
type:
|
|
745
|
+
type: "spki";
|
|
701
746
|
format: PubF;
|
|
702
747
|
};
|
|
703
748
|
privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
|
|
704
|
-
type:
|
|
749
|
+
type: "pkcs8";
|
|
705
750
|
};
|
|
706
751
|
}
|
|
707
752
|
|
|
708
753
|
interface X25519KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
|
|
709
754
|
publicKeyEncoding: {
|
|
710
|
-
type:
|
|
755
|
+
type: "spki";
|
|
711
756
|
format: PubF;
|
|
712
757
|
};
|
|
713
758
|
privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
|
|
714
|
-
type:
|
|
759
|
+
type: "pkcs8";
|
|
715
760
|
};
|
|
716
761
|
}
|
|
717
762
|
|
|
718
763
|
interface X448KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
|
|
719
764
|
publicKeyEncoding: {
|
|
720
|
-
type:
|
|
765
|
+
type: "spki";
|
|
721
766
|
format: PubF;
|
|
722
767
|
};
|
|
723
768
|
privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
|
|
724
|
-
type:
|
|
769
|
+
type: "pkcs8";
|
|
725
770
|
};
|
|
726
771
|
}
|
|
727
772
|
|
|
@@ -731,445 +776,445 @@ declare module 'crypto' {
|
|
|
731
776
|
}
|
|
732
777
|
|
|
733
778
|
function generateKeyPairSync(
|
|
734
|
-
type:
|
|
735
|
-
options: RSAKeyPairOptions<
|
|
779
|
+
type: "rsa",
|
|
780
|
+
options: RSAKeyPairOptions<"pem", "pem">,
|
|
736
781
|
): KeyPairSyncResult<string, string>;
|
|
737
782
|
function generateKeyPairSync(
|
|
738
|
-
type:
|
|
739
|
-
options: RSAKeyPairOptions<
|
|
783
|
+
type: "rsa",
|
|
784
|
+
options: RSAKeyPairOptions<"pem", "der">,
|
|
740
785
|
): KeyPairSyncResult<string, Buffer>;
|
|
741
786
|
function generateKeyPairSync(
|
|
742
|
-
type:
|
|
743
|
-
options: RSAKeyPairOptions<
|
|
787
|
+
type: "rsa",
|
|
788
|
+
options: RSAKeyPairOptions<"der", "pem">,
|
|
744
789
|
): KeyPairSyncResult<Buffer, string>;
|
|
745
790
|
function generateKeyPairSync(
|
|
746
|
-
type:
|
|
747
|
-
options: RSAKeyPairOptions<
|
|
791
|
+
type: "rsa",
|
|
792
|
+
options: RSAKeyPairOptions<"der", "der">,
|
|
748
793
|
): KeyPairSyncResult<Buffer, Buffer>;
|
|
749
|
-
function generateKeyPairSync(type:
|
|
794
|
+
function generateKeyPairSync(type: "rsa", options: RSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
|
|
750
795
|
|
|
751
796
|
function generateKeyPairSync(
|
|
752
|
-
type:
|
|
753
|
-
options: DSAKeyPairOptions<
|
|
797
|
+
type: "dsa",
|
|
798
|
+
options: DSAKeyPairOptions<"pem", "pem">,
|
|
754
799
|
): KeyPairSyncResult<string, string>;
|
|
755
800
|
function generateKeyPairSync(
|
|
756
|
-
type:
|
|
757
|
-
options: DSAKeyPairOptions<
|
|
801
|
+
type: "dsa",
|
|
802
|
+
options: DSAKeyPairOptions<"pem", "der">,
|
|
758
803
|
): KeyPairSyncResult<string, Buffer>;
|
|
759
804
|
function generateKeyPairSync(
|
|
760
|
-
type:
|
|
761
|
-
options: DSAKeyPairOptions<
|
|
805
|
+
type: "dsa",
|
|
806
|
+
options: DSAKeyPairOptions<"der", "pem">,
|
|
762
807
|
): KeyPairSyncResult<Buffer, string>;
|
|
763
808
|
function generateKeyPairSync(
|
|
764
|
-
type:
|
|
765
|
-
options: DSAKeyPairOptions<
|
|
809
|
+
type: "dsa",
|
|
810
|
+
options: DSAKeyPairOptions<"der", "der">,
|
|
766
811
|
): KeyPairSyncResult<Buffer, Buffer>;
|
|
767
|
-
function generateKeyPairSync(type:
|
|
812
|
+
function generateKeyPairSync(type: "dsa", options: DSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
|
|
768
813
|
|
|
769
814
|
function generateKeyPairSync(
|
|
770
|
-
type:
|
|
771
|
-
options: ECKeyPairOptions<
|
|
815
|
+
type: "ec",
|
|
816
|
+
options: ECKeyPairOptions<"pem", "pem">,
|
|
772
817
|
): KeyPairSyncResult<string, string>;
|
|
773
818
|
function generateKeyPairSync(
|
|
774
|
-
type:
|
|
775
|
-
options: ECKeyPairOptions<
|
|
819
|
+
type: "ec",
|
|
820
|
+
options: ECKeyPairOptions<"pem", "der">,
|
|
776
821
|
): KeyPairSyncResult<string, Buffer>;
|
|
777
822
|
function generateKeyPairSync(
|
|
778
|
-
type:
|
|
779
|
-
options: ECKeyPairOptions<
|
|
823
|
+
type: "ec",
|
|
824
|
+
options: ECKeyPairOptions<"der", "pem">,
|
|
780
825
|
): KeyPairSyncResult<Buffer, string>;
|
|
781
826
|
function generateKeyPairSync(
|
|
782
|
-
type:
|
|
783
|
-
options: ECKeyPairOptions<
|
|
827
|
+
type: "ec",
|
|
828
|
+
options: ECKeyPairOptions<"der", "der">,
|
|
784
829
|
): KeyPairSyncResult<Buffer, Buffer>;
|
|
785
|
-
function generateKeyPairSync(type:
|
|
830
|
+
function generateKeyPairSync(type: "ec", options: ECKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
|
|
786
831
|
|
|
787
832
|
function generateKeyPairSync(
|
|
788
|
-
type:
|
|
789
|
-
options: ED25519KeyPairOptions<
|
|
833
|
+
type: "ed25519",
|
|
834
|
+
options: ED25519KeyPairOptions<"pem", "pem">,
|
|
790
835
|
): KeyPairSyncResult<string, string>;
|
|
791
836
|
function generateKeyPairSync(
|
|
792
|
-
type:
|
|
793
|
-
options: ED25519KeyPairOptions<
|
|
837
|
+
type: "ed25519",
|
|
838
|
+
options: ED25519KeyPairOptions<"pem", "der">,
|
|
794
839
|
): KeyPairSyncResult<string, Buffer>;
|
|
795
840
|
function generateKeyPairSync(
|
|
796
|
-
type:
|
|
797
|
-
options: ED25519KeyPairOptions<
|
|
841
|
+
type: "ed25519",
|
|
842
|
+
options: ED25519KeyPairOptions<"der", "pem">,
|
|
798
843
|
): KeyPairSyncResult<Buffer, string>;
|
|
799
844
|
function generateKeyPairSync(
|
|
800
|
-
type:
|
|
801
|
-
options: ED25519KeyPairOptions<
|
|
845
|
+
type: "ed25519",
|
|
846
|
+
options: ED25519KeyPairOptions<"der", "der">,
|
|
802
847
|
): KeyPairSyncResult<Buffer, Buffer>;
|
|
803
|
-
function generateKeyPairSync(type:
|
|
848
|
+
function generateKeyPairSync(type: "ed25519", options?: ED25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
|
|
804
849
|
|
|
805
850
|
function generateKeyPairSync(
|
|
806
|
-
type:
|
|
807
|
-
options: ED448KeyPairOptions<
|
|
851
|
+
type: "ed448",
|
|
852
|
+
options: ED448KeyPairOptions<"pem", "pem">,
|
|
808
853
|
): KeyPairSyncResult<string, string>;
|
|
809
854
|
function generateKeyPairSync(
|
|
810
|
-
type:
|
|
811
|
-
options: ED448KeyPairOptions<
|
|
855
|
+
type: "ed448",
|
|
856
|
+
options: ED448KeyPairOptions<"pem", "der">,
|
|
812
857
|
): KeyPairSyncResult<string, Buffer>;
|
|
813
858
|
function generateKeyPairSync(
|
|
814
|
-
type:
|
|
815
|
-
options: ED448KeyPairOptions<
|
|
859
|
+
type: "ed448",
|
|
860
|
+
options: ED448KeyPairOptions<"der", "pem">,
|
|
816
861
|
): KeyPairSyncResult<Buffer, string>;
|
|
817
862
|
function generateKeyPairSync(
|
|
818
|
-
type:
|
|
819
|
-
options: ED448KeyPairOptions<
|
|
863
|
+
type: "ed448",
|
|
864
|
+
options: ED448KeyPairOptions<"der", "der">,
|
|
820
865
|
): KeyPairSyncResult<Buffer, Buffer>;
|
|
821
|
-
function generateKeyPairSync(type:
|
|
866
|
+
function generateKeyPairSync(type: "ed448", options?: ED448KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
|
|
822
867
|
|
|
823
868
|
function generateKeyPairSync(
|
|
824
|
-
type:
|
|
825
|
-
options: X25519KeyPairOptions<
|
|
869
|
+
type: "x25519",
|
|
870
|
+
options: X25519KeyPairOptions<"pem", "pem">,
|
|
826
871
|
): KeyPairSyncResult<string, string>;
|
|
827
872
|
function generateKeyPairSync(
|
|
828
|
-
type:
|
|
829
|
-
options: X25519KeyPairOptions<
|
|
873
|
+
type: "x25519",
|
|
874
|
+
options: X25519KeyPairOptions<"pem", "der">,
|
|
830
875
|
): KeyPairSyncResult<string, Buffer>;
|
|
831
876
|
function generateKeyPairSync(
|
|
832
|
-
type:
|
|
833
|
-
options: X25519KeyPairOptions<
|
|
877
|
+
type: "x25519",
|
|
878
|
+
options: X25519KeyPairOptions<"der", "pem">,
|
|
834
879
|
): KeyPairSyncResult<Buffer, string>;
|
|
835
880
|
function generateKeyPairSync(
|
|
836
|
-
type:
|
|
837
|
-
options: X25519KeyPairOptions<
|
|
881
|
+
type: "x25519",
|
|
882
|
+
options: X25519KeyPairOptions<"der", "der">,
|
|
838
883
|
): KeyPairSyncResult<Buffer, Buffer>;
|
|
839
|
-
function generateKeyPairSync(type:
|
|
884
|
+
function generateKeyPairSync(type: "x25519", options?: X25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
|
|
840
885
|
|
|
841
886
|
function generateKeyPairSync(
|
|
842
|
-
type:
|
|
843
|
-
options: X448KeyPairOptions<
|
|
887
|
+
type: "x448",
|
|
888
|
+
options: X448KeyPairOptions<"pem", "pem">,
|
|
844
889
|
): KeyPairSyncResult<string, string>;
|
|
845
890
|
function generateKeyPairSync(
|
|
846
|
-
type:
|
|
847
|
-
options: X448KeyPairOptions<
|
|
891
|
+
type: "x448",
|
|
892
|
+
options: X448KeyPairOptions<"pem", "der">,
|
|
848
893
|
): KeyPairSyncResult<string, Buffer>;
|
|
849
894
|
function generateKeyPairSync(
|
|
850
|
-
type:
|
|
851
|
-
options: X448KeyPairOptions<
|
|
895
|
+
type: "x448",
|
|
896
|
+
options: X448KeyPairOptions<"der", "pem">,
|
|
852
897
|
): KeyPairSyncResult<Buffer, string>;
|
|
853
898
|
function generateKeyPairSync(
|
|
854
|
-
type:
|
|
855
|
-
options: X448KeyPairOptions<
|
|
899
|
+
type: "x448",
|
|
900
|
+
options: X448KeyPairOptions<"der", "der">,
|
|
856
901
|
): KeyPairSyncResult<Buffer, Buffer>;
|
|
857
|
-
function generateKeyPairSync(type:
|
|
902
|
+
function generateKeyPairSync(type: "x448", options?: X448KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
|
|
858
903
|
|
|
859
904
|
function generateKeyPair(
|
|
860
|
-
type:
|
|
861
|
-
options: RSAKeyPairOptions<
|
|
905
|
+
type: "rsa",
|
|
906
|
+
options: RSAKeyPairOptions<"pem", "pem">,
|
|
862
907
|
callback: (err: Error | null, publicKey: string, privateKey: string) => void,
|
|
863
908
|
): void;
|
|
864
909
|
function generateKeyPair(
|
|
865
|
-
type:
|
|
866
|
-
options: RSAKeyPairOptions<
|
|
910
|
+
type: "rsa",
|
|
911
|
+
options: RSAKeyPairOptions<"pem", "der">,
|
|
867
912
|
callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
|
|
868
913
|
): void;
|
|
869
914
|
function generateKeyPair(
|
|
870
|
-
type:
|
|
871
|
-
options: RSAKeyPairOptions<
|
|
915
|
+
type: "rsa",
|
|
916
|
+
options: RSAKeyPairOptions<"der", "pem">,
|
|
872
917
|
callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
|
|
873
918
|
): void;
|
|
874
919
|
function generateKeyPair(
|
|
875
|
-
type:
|
|
876
|
-
options: RSAKeyPairOptions<
|
|
920
|
+
type: "rsa",
|
|
921
|
+
options: RSAKeyPairOptions<"der", "der">,
|
|
877
922
|
callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
|
|
878
923
|
): void;
|
|
879
924
|
function generateKeyPair(
|
|
880
|
-
type:
|
|
925
|
+
type: "rsa",
|
|
881
926
|
options: RSAKeyPairKeyObjectOptions,
|
|
882
927
|
callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
|
|
883
928
|
): void;
|
|
884
929
|
|
|
885
930
|
function generateKeyPair(
|
|
886
|
-
type:
|
|
887
|
-
options: DSAKeyPairOptions<
|
|
931
|
+
type: "dsa",
|
|
932
|
+
options: DSAKeyPairOptions<"pem", "pem">,
|
|
888
933
|
callback: (err: Error | null, publicKey: string, privateKey: string) => void,
|
|
889
934
|
): void;
|
|
890
935
|
function generateKeyPair(
|
|
891
|
-
type:
|
|
892
|
-
options: DSAKeyPairOptions<
|
|
936
|
+
type: "dsa",
|
|
937
|
+
options: DSAKeyPairOptions<"pem", "der">,
|
|
893
938
|
callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
|
|
894
939
|
): void;
|
|
895
940
|
function generateKeyPair(
|
|
896
|
-
type:
|
|
897
|
-
options: DSAKeyPairOptions<
|
|
941
|
+
type: "dsa",
|
|
942
|
+
options: DSAKeyPairOptions<"der", "pem">,
|
|
898
943
|
callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
|
|
899
944
|
): void;
|
|
900
945
|
function generateKeyPair(
|
|
901
|
-
type:
|
|
902
|
-
options: DSAKeyPairOptions<
|
|
946
|
+
type: "dsa",
|
|
947
|
+
options: DSAKeyPairOptions<"der", "der">,
|
|
903
948
|
callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
|
|
904
949
|
): void;
|
|
905
950
|
function generateKeyPair(
|
|
906
|
-
type:
|
|
951
|
+
type: "dsa",
|
|
907
952
|
options: DSAKeyPairKeyObjectOptions,
|
|
908
953
|
callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
|
|
909
954
|
): void;
|
|
910
955
|
|
|
911
956
|
function generateKeyPair(
|
|
912
|
-
type:
|
|
913
|
-
options: ECKeyPairOptions<
|
|
957
|
+
type: "ec",
|
|
958
|
+
options: ECKeyPairOptions<"pem", "pem">,
|
|
914
959
|
callback: (err: Error | null, publicKey: string, privateKey: string) => void,
|
|
915
960
|
): void;
|
|
916
961
|
function generateKeyPair(
|
|
917
|
-
type:
|
|
918
|
-
options: ECKeyPairOptions<
|
|
962
|
+
type: "ec",
|
|
963
|
+
options: ECKeyPairOptions<"pem", "der">,
|
|
919
964
|
callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
|
|
920
965
|
): void;
|
|
921
966
|
function generateKeyPair(
|
|
922
|
-
type:
|
|
923
|
-
options: ECKeyPairOptions<
|
|
967
|
+
type: "ec",
|
|
968
|
+
options: ECKeyPairOptions<"der", "pem">,
|
|
924
969
|
callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
|
|
925
970
|
): void;
|
|
926
971
|
function generateKeyPair(
|
|
927
|
-
type:
|
|
928
|
-
options: ECKeyPairOptions<
|
|
972
|
+
type: "ec",
|
|
973
|
+
options: ECKeyPairOptions<"der", "der">,
|
|
929
974
|
callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
|
|
930
975
|
): void;
|
|
931
976
|
function generateKeyPair(
|
|
932
|
-
type:
|
|
977
|
+
type: "ec",
|
|
933
978
|
options: ECKeyPairKeyObjectOptions,
|
|
934
979
|
callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
|
|
935
980
|
): void;
|
|
936
981
|
|
|
937
982
|
function generateKeyPair(
|
|
938
|
-
type:
|
|
939
|
-
options: ED25519KeyPairOptions<
|
|
983
|
+
type: "ed25519",
|
|
984
|
+
options: ED25519KeyPairOptions<"pem", "pem">,
|
|
940
985
|
callback: (err: Error | null, publicKey: string, privateKey: string) => void,
|
|
941
986
|
): void;
|
|
942
987
|
function generateKeyPair(
|
|
943
|
-
type:
|
|
944
|
-
options: ED25519KeyPairOptions<
|
|
988
|
+
type: "ed25519",
|
|
989
|
+
options: ED25519KeyPairOptions<"pem", "der">,
|
|
945
990
|
callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
|
|
946
991
|
): void;
|
|
947
992
|
function generateKeyPair(
|
|
948
|
-
type:
|
|
949
|
-
options: ED25519KeyPairOptions<
|
|
993
|
+
type: "ed25519",
|
|
994
|
+
options: ED25519KeyPairOptions<"der", "pem">,
|
|
950
995
|
callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
|
|
951
996
|
): void;
|
|
952
997
|
function generateKeyPair(
|
|
953
|
-
type:
|
|
954
|
-
options: ED25519KeyPairOptions<
|
|
998
|
+
type: "ed25519",
|
|
999
|
+
options: ED25519KeyPairOptions<"der", "der">,
|
|
955
1000
|
callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
|
|
956
1001
|
): void;
|
|
957
1002
|
function generateKeyPair(
|
|
958
|
-
type:
|
|
1003
|
+
type: "ed25519",
|
|
959
1004
|
options: ED25519KeyPairKeyObjectOptions | undefined,
|
|
960
1005
|
callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
|
|
961
1006
|
): void;
|
|
962
1007
|
|
|
963
1008
|
function generateKeyPair(
|
|
964
|
-
type:
|
|
965
|
-
options: ED448KeyPairOptions<
|
|
1009
|
+
type: "ed448",
|
|
1010
|
+
options: ED448KeyPairOptions<"pem", "pem">,
|
|
966
1011
|
callback: (err: Error | null, publicKey: string, privateKey: string) => void,
|
|
967
1012
|
): void;
|
|
968
1013
|
function generateKeyPair(
|
|
969
|
-
type:
|
|
970
|
-
options: ED448KeyPairOptions<
|
|
1014
|
+
type: "ed448",
|
|
1015
|
+
options: ED448KeyPairOptions<"pem", "der">,
|
|
971
1016
|
callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
|
|
972
1017
|
): void;
|
|
973
1018
|
function generateKeyPair(
|
|
974
|
-
type:
|
|
975
|
-
options: ED448KeyPairOptions<
|
|
1019
|
+
type: "ed448",
|
|
1020
|
+
options: ED448KeyPairOptions<"der", "pem">,
|
|
976
1021
|
callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
|
|
977
1022
|
): void;
|
|
978
1023
|
function generateKeyPair(
|
|
979
|
-
type:
|
|
980
|
-
options: ED448KeyPairOptions<
|
|
1024
|
+
type: "ed448",
|
|
1025
|
+
options: ED448KeyPairOptions<"der", "der">,
|
|
981
1026
|
callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
|
|
982
1027
|
): void;
|
|
983
1028
|
function generateKeyPair(
|
|
984
|
-
type:
|
|
1029
|
+
type: "ed448",
|
|
985
1030
|
options: ED448KeyPairKeyObjectOptions | undefined,
|
|
986
1031
|
callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
|
|
987
1032
|
): void;
|
|
988
1033
|
|
|
989
1034
|
function generateKeyPair(
|
|
990
|
-
type:
|
|
991
|
-
options: X25519KeyPairOptions<
|
|
1035
|
+
type: "x25519",
|
|
1036
|
+
options: X25519KeyPairOptions<"pem", "pem">,
|
|
992
1037
|
callback: (err: Error | null, publicKey: string, privateKey: string) => void,
|
|
993
1038
|
): void;
|
|
994
1039
|
function generateKeyPair(
|
|
995
|
-
type:
|
|
996
|
-
options: X25519KeyPairOptions<
|
|
1040
|
+
type: "x25519",
|
|
1041
|
+
options: X25519KeyPairOptions<"pem", "der">,
|
|
997
1042
|
callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
|
|
998
1043
|
): void;
|
|
999
1044
|
function generateKeyPair(
|
|
1000
|
-
type:
|
|
1001
|
-
options: X25519KeyPairOptions<
|
|
1045
|
+
type: "x25519",
|
|
1046
|
+
options: X25519KeyPairOptions<"der", "pem">,
|
|
1002
1047
|
callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
|
|
1003
1048
|
): void;
|
|
1004
1049
|
function generateKeyPair(
|
|
1005
|
-
type:
|
|
1006
|
-
options: X25519KeyPairOptions<
|
|
1050
|
+
type: "x25519",
|
|
1051
|
+
options: X25519KeyPairOptions<"der", "der">,
|
|
1007
1052
|
callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
|
|
1008
1053
|
): void;
|
|
1009
1054
|
function generateKeyPair(
|
|
1010
|
-
type:
|
|
1055
|
+
type: "x25519",
|
|
1011
1056
|
options: X25519KeyPairKeyObjectOptions | undefined,
|
|
1012
1057
|
callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
|
|
1013
1058
|
): void;
|
|
1014
1059
|
|
|
1015
1060
|
function generateKeyPair(
|
|
1016
|
-
type:
|
|
1017
|
-
options: X448KeyPairOptions<
|
|
1061
|
+
type: "x448",
|
|
1062
|
+
options: X448KeyPairOptions<"pem", "pem">,
|
|
1018
1063
|
callback: (err: Error | null, publicKey: string, privateKey: string) => void,
|
|
1019
1064
|
): void;
|
|
1020
1065
|
function generateKeyPair(
|
|
1021
|
-
type:
|
|
1022
|
-
options: X448KeyPairOptions<
|
|
1066
|
+
type: "x448",
|
|
1067
|
+
options: X448KeyPairOptions<"pem", "der">,
|
|
1023
1068
|
callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
|
|
1024
1069
|
): void;
|
|
1025
1070
|
function generateKeyPair(
|
|
1026
|
-
type:
|
|
1027
|
-
options: X448KeyPairOptions<
|
|
1071
|
+
type: "x448",
|
|
1072
|
+
options: X448KeyPairOptions<"der", "pem">,
|
|
1028
1073
|
callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
|
|
1029
1074
|
): void;
|
|
1030
1075
|
function generateKeyPair(
|
|
1031
|
-
type:
|
|
1032
|
-
options: X448KeyPairOptions<
|
|
1076
|
+
type: "x448",
|
|
1077
|
+
options: X448KeyPairOptions<"der", "der">,
|
|
1033
1078
|
callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
|
|
1034
1079
|
): void;
|
|
1035
1080
|
function generateKeyPair(
|
|
1036
|
-
type:
|
|
1081
|
+
type: "x448",
|
|
1037
1082
|
options: X448KeyPairKeyObjectOptions | undefined,
|
|
1038
1083
|
callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
|
|
1039
1084
|
): void;
|
|
1040
1085
|
|
|
1041
1086
|
namespace generateKeyPair {
|
|
1042
1087
|
function __promisify__(
|
|
1043
|
-
type:
|
|
1044
|
-
options: RSAKeyPairOptions<
|
|
1088
|
+
type: "rsa",
|
|
1089
|
+
options: RSAKeyPairOptions<"pem", "pem">,
|
|
1045
1090
|
): Promise<{ publicKey: string; privateKey: string }>;
|
|
1046
1091
|
function __promisify__(
|
|
1047
|
-
type:
|
|
1048
|
-
options: RSAKeyPairOptions<
|
|
1092
|
+
type: "rsa",
|
|
1093
|
+
options: RSAKeyPairOptions<"pem", "der">,
|
|
1049
1094
|
): Promise<{ publicKey: string; privateKey: Buffer }>;
|
|
1050
1095
|
function __promisify__(
|
|
1051
|
-
type:
|
|
1052
|
-
options: RSAKeyPairOptions<
|
|
1096
|
+
type: "rsa",
|
|
1097
|
+
options: RSAKeyPairOptions<"der", "pem">,
|
|
1053
1098
|
): Promise<{ publicKey: Buffer; privateKey: string }>;
|
|
1054
1099
|
function __promisify__(
|
|
1055
|
-
type:
|
|
1056
|
-
options: RSAKeyPairOptions<
|
|
1100
|
+
type: "rsa",
|
|
1101
|
+
options: RSAKeyPairOptions<"der", "der">,
|
|
1057
1102
|
): Promise<{ publicKey: Buffer; privateKey: Buffer }>;
|
|
1058
|
-
function __promisify__(type:
|
|
1103
|
+
function __promisify__(type: "rsa", options: RSAKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
|
|
1059
1104
|
|
|
1060
1105
|
function __promisify__(
|
|
1061
|
-
type:
|
|
1062
|
-
options: DSAKeyPairOptions<
|
|
1106
|
+
type: "dsa",
|
|
1107
|
+
options: DSAKeyPairOptions<"pem", "pem">,
|
|
1063
1108
|
): Promise<{ publicKey: string; privateKey: string }>;
|
|
1064
1109
|
function __promisify__(
|
|
1065
|
-
type:
|
|
1066
|
-
options: DSAKeyPairOptions<
|
|
1110
|
+
type: "dsa",
|
|
1111
|
+
options: DSAKeyPairOptions<"pem", "der">,
|
|
1067
1112
|
): Promise<{ publicKey: string; privateKey: Buffer }>;
|
|
1068
1113
|
function __promisify__(
|
|
1069
|
-
type:
|
|
1070
|
-
options: DSAKeyPairOptions<
|
|
1114
|
+
type: "dsa",
|
|
1115
|
+
options: DSAKeyPairOptions<"der", "pem">,
|
|
1071
1116
|
): Promise<{ publicKey: Buffer; privateKey: string }>;
|
|
1072
1117
|
function __promisify__(
|
|
1073
|
-
type:
|
|
1074
|
-
options: DSAKeyPairOptions<
|
|
1118
|
+
type: "dsa",
|
|
1119
|
+
options: DSAKeyPairOptions<"der", "der">,
|
|
1075
1120
|
): Promise<{ publicKey: Buffer; privateKey: Buffer }>;
|
|
1076
|
-
function __promisify__(type:
|
|
1121
|
+
function __promisify__(type: "dsa", options: DSAKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
|
|
1077
1122
|
|
|
1078
1123
|
function __promisify__(
|
|
1079
|
-
type:
|
|
1080
|
-
options: ECKeyPairOptions<
|
|
1124
|
+
type: "ec",
|
|
1125
|
+
options: ECKeyPairOptions<"pem", "pem">,
|
|
1081
1126
|
): Promise<{ publicKey: string; privateKey: string }>;
|
|
1082
1127
|
function __promisify__(
|
|
1083
|
-
type:
|
|
1084
|
-
options: ECKeyPairOptions<
|
|
1128
|
+
type: "ec",
|
|
1129
|
+
options: ECKeyPairOptions<"pem", "der">,
|
|
1085
1130
|
): Promise<{ publicKey: string; privateKey: Buffer }>;
|
|
1086
1131
|
function __promisify__(
|
|
1087
|
-
type:
|
|
1088
|
-
options: ECKeyPairOptions<
|
|
1132
|
+
type: "ec",
|
|
1133
|
+
options: ECKeyPairOptions<"der", "pem">,
|
|
1089
1134
|
): Promise<{ publicKey: Buffer; privateKey: string }>;
|
|
1090
1135
|
function __promisify__(
|
|
1091
|
-
type:
|
|
1092
|
-
options: ECKeyPairOptions<
|
|
1136
|
+
type: "ec",
|
|
1137
|
+
options: ECKeyPairOptions<"der", "der">,
|
|
1093
1138
|
): Promise<{ publicKey: Buffer; privateKey: Buffer }>;
|
|
1094
|
-
function __promisify__(type:
|
|
1139
|
+
function __promisify__(type: "ec", options: ECKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
|
|
1095
1140
|
|
|
1096
1141
|
function __promisify__(
|
|
1097
|
-
type:
|
|
1098
|
-
options: ED25519KeyPairOptions<
|
|
1142
|
+
type: "ed25519",
|
|
1143
|
+
options: ED25519KeyPairOptions<"pem", "pem">,
|
|
1099
1144
|
): Promise<{ publicKey: string; privateKey: string }>;
|
|
1100
1145
|
function __promisify__(
|
|
1101
|
-
type:
|
|
1102
|
-
options: ED25519KeyPairOptions<
|
|
1146
|
+
type: "ed25519",
|
|
1147
|
+
options: ED25519KeyPairOptions<"pem", "der">,
|
|
1103
1148
|
): Promise<{ publicKey: string; privateKey: Buffer }>;
|
|
1104
1149
|
function __promisify__(
|
|
1105
|
-
type:
|
|
1106
|
-
options: ED25519KeyPairOptions<
|
|
1150
|
+
type: "ed25519",
|
|
1151
|
+
options: ED25519KeyPairOptions<"der", "pem">,
|
|
1107
1152
|
): Promise<{ publicKey: Buffer; privateKey: string }>;
|
|
1108
1153
|
function __promisify__(
|
|
1109
|
-
type:
|
|
1110
|
-
options: ED25519KeyPairOptions<
|
|
1154
|
+
type: "ed25519",
|
|
1155
|
+
options: ED25519KeyPairOptions<"der", "der">,
|
|
1111
1156
|
): Promise<{ publicKey: Buffer; privateKey: Buffer }>;
|
|
1112
1157
|
function __promisify__(
|
|
1113
|
-
type:
|
|
1158
|
+
type: "ed25519",
|
|
1114
1159
|
options?: ED25519KeyPairKeyObjectOptions,
|
|
1115
1160
|
): Promise<KeyPairKeyObjectResult>;
|
|
1116
1161
|
|
|
1117
1162
|
function __promisify__(
|
|
1118
|
-
type:
|
|
1119
|
-
options: ED448KeyPairOptions<
|
|
1163
|
+
type: "ed448",
|
|
1164
|
+
options: ED448KeyPairOptions<"pem", "pem">,
|
|
1120
1165
|
): Promise<{ publicKey: string; privateKey: string }>;
|
|
1121
1166
|
function __promisify__(
|
|
1122
|
-
type:
|
|
1123
|
-
options: ED448KeyPairOptions<
|
|
1167
|
+
type: "ed448",
|
|
1168
|
+
options: ED448KeyPairOptions<"pem", "der">,
|
|
1124
1169
|
): Promise<{ publicKey: string; privateKey: Buffer }>;
|
|
1125
1170
|
function __promisify__(
|
|
1126
|
-
type:
|
|
1127
|
-
options: ED448KeyPairOptions<
|
|
1171
|
+
type: "ed448",
|
|
1172
|
+
options: ED448KeyPairOptions<"der", "pem">,
|
|
1128
1173
|
): Promise<{ publicKey: Buffer; privateKey: string }>;
|
|
1129
1174
|
function __promisify__(
|
|
1130
|
-
type:
|
|
1131
|
-
options: ED448KeyPairOptions<
|
|
1175
|
+
type: "ed448",
|
|
1176
|
+
options: ED448KeyPairOptions<"der", "der">,
|
|
1132
1177
|
): Promise<{ publicKey: Buffer; privateKey: Buffer }>;
|
|
1133
|
-
function __promisify__(type:
|
|
1178
|
+
function __promisify__(type: "ed448", options?: ED448KeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
|
|
1134
1179
|
|
|
1135
1180
|
function __promisify__(
|
|
1136
|
-
type:
|
|
1137
|
-
options: X25519KeyPairOptions<
|
|
1181
|
+
type: "x25519",
|
|
1182
|
+
options: X25519KeyPairOptions<"pem", "pem">,
|
|
1138
1183
|
): Promise<{ publicKey: string; privateKey: string }>;
|
|
1139
1184
|
function __promisify__(
|
|
1140
|
-
type:
|
|
1141
|
-
options: X25519KeyPairOptions<
|
|
1185
|
+
type: "x25519",
|
|
1186
|
+
options: X25519KeyPairOptions<"pem", "der">,
|
|
1142
1187
|
): Promise<{ publicKey: string; privateKey: Buffer }>;
|
|
1143
1188
|
function __promisify__(
|
|
1144
|
-
type:
|
|
1145
|
-
options: X25519KeyPairOptions<
|
|
1189
|
+
type: "x25519",
|
|
1190
|
+
options: X25519KeyPairOptions<"der", "pem">,
|
|
1146
1191
|
): Promise<{ publicKey: Buffer; privateKey: string }>;
|
|
1147
1192
|
function __promisify__(
|
|
1148
|
-
type:
|
|
1149
|
-
options: X25519KeyPairOptions<
|
|
1193
|
+
type: "x25519",
|
|
1194
|
+
options: X25519KeyPairOptions<"der", "der">,
|
|
1150
1195
|
): Promise<{ publicKey: Buffer; privateKey: Buffer }>;
|
|
1151
1196
|
function __promisify__(
|
|
1152
|
-
type:
|
|
1197
|
+
type: "x25519",
|
|
1153
1198
|
options?: X25519KeyPairKeyObjectOptions,
|
|
1154
1199
|
): Promise<KeyPairKeyObjectResult>;
|
|
1155
1200
|
|
|
1156
1201
|
function __promisify__(
|
|
1157
|
-
type:
|
|
1158
|
-
options: X448KeyPairOptions<
|
|
1202
|
+
type: "x448",
|
|
1203
|
+
options: X448KeyPairOptions<"pem", "pem">,
|
|
1159
1204
|
): Promise<{ publicKey: string; privateKey: string }>;
|
|
1160
1205
|
function __promisify__(
|
|
1161
|
-
type:
|
|
1162
|
-
options: X448KeyPairOptions<
|
|
1206
|
+
type: "x448",
|
|
1207
|
+
options: X448KeyPairOptions<"pem", "der">,
|
|
1163
1208
|
): Promise<{ publicKey: string; privateKey: Buffer }>;
|
|
1164
1209
|
function __promisify__(
|
|
1165
|
-
type:
|
|
1166
|
-
options: X448KeyPairOptions<
|
|
1210
|
+
type: "x448",
|
|
1211
|
+
options: X448KeyPairOptions<"der", "pem">,
|
|
1167
1212
|
): Promise<{ publicKey: Buffer; privateKey: string }>;
|
|
1168
1213
|
function __promisify__(
|
|
1169
|
-
type:
|
|
1170
|
-
options: X448KeyPairOptions<
|
|
1214
|
+
type: "x448",
|
|
1215
|
+
options: X448KeyPairOptions<"der", "der">,
|
|
1171
1216
|
): Promise<{ publicKey: Buffer; privateKey: Buffer }>;
|
|
1172
|
-
function __promisify__(type:
|
|
1217
|
+
function __promisify__(type: "x448", options?: X448KeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
|
|
1173
1218
|
}
|
|
1174
1219
|
|
|
1175
1220
|
/**
|
|
@@ -1207,7 +1252,36 @@ declare module 'crypto' {
|
|
|
1207
1252
|
* 'dh' (for Diffie-Hellman), 'ec' (for ECDH), 'x448', or 'x25519' (for ECDH-ES).
|
|
1208
1253
|
*/
|
|
1209
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;
|
|
1210
1284
|
}
|
|
1211
|
-
declare module
|
|
1212
|
-
export * from
|
|
1285
|
+
declare module "node:crypto" {
|
|
1286
|
+
export * from "crypto";
|
|
1213
1287
|
}
|