ibm-cloud-sdk-core 4.3.2 → 4.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/es/lib/sdk-test-helpers.js +1 -2
- package/iamtest.env +3 -0
- package/lib/sdk-test-helpers.js +11 -9
- package/package.json +3 -2
- package/sdk-test-utilities/node_modules/.package-lock.json +508 -0
- package/sdk-test-utilities/node_modules/@babel/code-frame/LICENSE +22 -0
- package/sdk-test-utilities/node_modules/@babel/code-frame/README.md +19 -0
- package/sdk-test-utilities/node_modules/@babel/code-frame/lib/index.js +156 -0
- package/sdk-test-utilities/node_modules/@babel/code-frame/lib/index.js.map +1 -0
- package/sdk-test-utilities/node_modules/@babel/code-frame/package.json +30 -0
- package/sdk-test-utilities/node_modules/@babel/helper-validator-identifier/LICENSE +22 -0
- package/sdk-test-utilities/node_modules/@babel/helper-validator-identifier/README.md +19 -0
- package/sdk-test-utilities/node_modules/@babel/helper-validator-identifier/lib/identifier.js +70 -0
- package/sdk-test-utilities/node_modules/@babel/helper-validator-identifier/lib/identifier.js.map +1 -0
- package/sdk-test-utilities/node_modules/@babel/helper-validator-identifier/lib/index.js +57 -0
- package/sdk-test-utilities/node_modules/@babel/helper-validator-identifier/lib/index.js.map +1 -0
- package/sdk-test-utilities/node_modules/@babel/helper-validator-identifier/lib/keyword.js +35 -0
- package/sdk-test-utilities/node_modules/@babel/helper-validator-identifier/lib/keyword.js.map +1 -0
- package/sdk-test-utilities/node_modules/@babel/helper-validator-identifier/package.json +31 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/LICENSE +22 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/README.md +19 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/lib/index.js +119 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/lib/index.js.map +1 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/ansi-styles/index.js +165 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/ansi-styles/license +9 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/ansi-styles/package.json +56 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/ansi-styles/readme.md +147 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/chalk/index.js +228 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/chalk/index.js.flow +93 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/chalk/license +9 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/chalk/package.json +71 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/chalk/readme.md +314 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/chalk/templates.js +128 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/chalk/types/index.d.ts +97 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/color-convert/CHANGELOG.md +54 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/color-convert/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/color-convert/README.md +68 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/color-convert/conversions.js +868 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/color-convert/index.js +78 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/color-convert/package.json +46 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/color-convert/route.js +97 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/color-name/.eslintrc.json +43 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/color-name/LICENSE +8 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/color-name/README.md +11 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/color-name/index.js +152 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/color-name/package.json +25 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/color-name/test.js +7 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/escape-string-regexp/index.js +11 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/escape-string-regexp/license +21 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/escape-string-regexp/package.json +41 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/escape-string-regexp/readme.md +27 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/has-flag/index.js +8 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/has-flag/license +9 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/has-flag/package.json +44 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/has-flag/readme.md +70 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/supports-color/browser.js +5 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/supports-color/index.js +131 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/supports-color/license +9 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/supports-color/package.json +53 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/node_modules/supports-color/readme.md +66 -0
- package/sdk-test-utilities/node_modules/@babel/highlight/package.json +30 -0
- package/sdk-test-utilities/node_modules/@jest/expect-utils/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/@jest/expect-utils/README.md +5 -0
- package/sdk-test-utilities/node_modules/@jest/expect-utils/build/immutableUtils.js +66 -0
- package/sdk-test-utilities/node_modules/@jest/expect-utils/build/index.d.ts +94 -0
- package/sdk-test-utilities/node_modules/@jest/expect-utils/build/index.js +34 -0
- package/sdk-test-utilities/node_modules/@jest/expect-utils/build/jasmineUtils.js +218 -0
- package/sdk-test-utilities/node_modules/@jest/expect-utils/build/types.js +1 -0
- package/sdk-test-utilities/node_modules/@jest/expect-utils/build/utils.js +462 -0
- package/sdk-test-utilities/node_modules/@jest/expect-utils/package.json +35 -0
- package/sdk-test-utilities/node_modules/@jest/schemas/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/@jest/schemas/README.md +3 -0
- package/sdk-test-utilities/node_modules/@jest/schemas/build/index.d.ts +63 -0
- package/sdk-test-utilities/node_modules/@jest/schemas/build/index.js +60 -0
- package/sdk-test-utilities/node_modules/@jest/schemas/package.json +29 -0
- package/sdk-test-utilities/node_modules/@jest/types/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/@jest/types/README.md +30 -0
- package/sdk-test-utilities/node_modules/@jest/types/build/Circus.js +1 -0
- package/sdk-test-utilities/node_modules/@jest/types/build/Config.js +1 -0
- package/sdk-test-utilities/node_modules/@jest/types/build/Global.js +1 -0
- package/sdk-test-utilities/node_modules/@jest/types/build/TestResult.js +1 -0
- package/sdk-test-utilities/node_modules/@jest/types/build/index.d.ts +1204 -0
- package/sdk-test-utilities/node_modules/@jest/types/build/index.js +1 -0
- package/sdk-test-utilities/node_modules/@jest/types/package.json +38 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/compiler/compiler.d.ts +35 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/compiler/compiler.js +577 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/compiler/index.d.ts +2 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/compiler/index.js +47 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/errors/errors.d.ts +88 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/errors/errors.js +609 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/errors/index.d.ts +1 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/errors/index.js +44 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/license +23 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/package.json +47 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/readme.md +1424 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/system/index.d.ts +1 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/system/index.js +44 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/system/system.d.ts +26 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/system/system.js +90 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/typebox.d.ts +723 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/typebox.js +2220 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/cast.d.ts +30 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/cast.js +372 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/check.d.ts +12 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/check.js +484 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/clone.d.ts +3 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/clone.js +71 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/convert.d.ts +13 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/convert.js +372 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/create.d.ts +26 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/create.js +480 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/delta.d.ts +43 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/delta.js +204 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/equal.d.ts +3 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/equal.js +80 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/hash.d.ts +8 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/hash.js +208 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/index.d.ts +6 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/index.js +56 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/is.d.ts +11 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/is.js +53 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/mutate.d.ts +13 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/mutate.js +121 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/pointer.d.ts +24 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/pointer.js +142 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/value.d.ts +39 -0
- package/sdk-test-utilities/node_modules/@sinclair/typebox/value/value.js +99 -0
- package/sdk-test-utilities/node_modules/@types/istanbul-lib-coverage/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/@types/istanbul-lib-coverage/README.md +15 -0
- package/sdk-test-utilities/node_modules/@types/istanbul-lib-coverage/index.d.ts +111 -0
- package/sdk-test-utilities/node_modules/@types/istanbul-lib-coverage/package.json +25 -0
- package/sdk-test-utilities/node_modules/@types/istanbul-lib-report/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/@types/istanbul-lib-report/README.md +15 -0
- package/sdk-test-utilities/node_modules/@types/istanbul-lib-report/index.d.ts +184 -0
- package/sdk-test-utilities/node_modules/@types/istanbul-lib-report/package.json +32 -0
- package/sdk-test-utilities/node_modules/@types/istanbul-reports/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/@types/istanbul-reports/README.md +86 -0
- package/sdk-test-utilities/node_modules/@types/istanbul-reports/index.d.ts +67 -0
- package/sdk-test-utilities/node_modules/@types/istanbul-reports/package.json +32 -0
- package/sdk-test-utilities/node_modules/@types/node/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/@types/node/README.md +15 -0
- package/sdk-test-utilities/node_modules/@types/node/assert/strict.d.ts +8 -0
- package/sdk-test-utilities/node_modules/@types/node/assert.d.ts +1040 -0
- package/sdk-test-utilities/node_modules/@types/node/async_hooks.d.ts +541 -0
- package/sdk-test-utilities/node_modules/@types/node/buffer.d.ts +2363 -0
- package/sdk-test-utilities/node_modules/@types/node/child_process.d.ts +1544 -0
- package/sdk-test-utilities/node_modules/@types/node/cluster.d.ts +578 -0
- package/sdk-test-utilities/node_modules/@types/node/console.d.ts +452 -0
- package/sdk-test-utilities/node_modules/@types/node/constants.d.ts +19 -0
- package/sdk-test-utilities/node_modules/@types/node/crypto.d.ts +4523 -0
- package/sdk-test-utilities/node_modules/@types/node/dgram.d.ts +596 -0
- package/sdk-test-utilities/node_modules/@types/node/diagnostics_channel.d.ts +554 -0
- package/sdk-test-utilities/node_modules/@types/node/dns/promises.d.ts +474 -0
- package/sdk-test-utilities/node_modules/@types/node/dns.d.ts +864 -0
- package/sdk-test-utilities/node_modules/@types/node/dom-events.d.ts +124 -0
- package/sdk-test-utilities/node_modules/@types/node/domain.d.ts +170 -0
- package/sdk-test-utilities/node_modules/@types/node/events.d.ts +909 -0
- package/sdk-test-utilities/node_modules/@types/node/fs/promises.d.ts +1245 -0
- package/sdk-test-utilities/node_modules/@types/node/fs.d.ts +4317 -0
- package/sdk-test-utilities/node_modules/@types/node/globals.d.ts +411 -0
- package/sdk-test-utilities/node_modules/@types/node/globals.global.d.ts +1 -0
- package/sdk-test-utilities/node_modules/@types/node/http.d.ts +1908 -0
- package/sdk-test-utilities/node_modules/@types/node/http2.d.ts +2418 -0
- package/sdk-test-utilities/node_modules/@types/node/https.d.ts +550 -0
- package/sdk-test-utilities/node_modules/@types/node/index.d.ts +89 -0
- package/sdk-test-utilities/node_modules/@types/node/inspector.d.ts +2746 -0
- package/sdk-test-utilities/node_modules/@types/node/module.d.ts +315 -0
- package/sdk-test-utilities/node_modules/@types/node/net.d.ts +999 -0
- package/sdk-test-utilities/node_modules/@types/node/os.d.ts +495 -0
- package/sdk-test-utilities/node_modules/@types/node/package.json +217 -0
- package/sdk-test-utilities/node_modules/@types/node/path.d.ts +191 -0
- package/sdk-test-utilities/node_modules/@types/node/perf_hooks.d.ts +905 -0
- package/sdk-test-utilities/node_modules/@types/node/process.d.ts +1754 -0
- package/sdk-test-utilities/node_modules/@types/node/punycode.d.ts +117 -0
- package/sdk-test-utilities/node_modules/@types/node/querystring.d.ts +153 -0
- package/sdk-test-utilities/node_modules/@types/node/readline/promises.d.ts +150 -0
- package/sdk-test-utilities/node_modules/@types/node/readline.d.ts +540 -0
- package/sdk-test-utilities/node_modules/@types/node/repl.d.ts +430 -0
- package/sdk-test-utilities/node_modules/@types/node/sea.d.ts +153 -0
- package/sdk-test-utilities/node_modules/@types/node/stream/consumers.d.ts +12 -0
- package/sdk-test-utilities/node_modules/@types/node/stream/promises.d.ts +83 -0
- package/sdk-test-utilities/node_modules/@types/node/stream/web.d.ts +367 -0
- package/sdk-test-utilities/node_modules/@types/node/stream.d.ts +1707 -0
- package/sdk-test-utilities/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/sdk-test-utilities/node_modules/@types/node/test.d.ts +1718 -0
- package/sdk-test-utilities/node_modules/@types/node/timers/promises.d.ts +97 -0
- package/sdk-test-utilities/node_modules/@types/node/timers.d.ts +240 -0
- package/sdk-test-utilities/node_modules/@types/node/tls.d.ts +1217 -0
- package/sdk-test-utilities/node_modules/@types/node/trace_events.d.ts +197 -0
- package/sdk-test-utilities/node_modules/@types/node/tty.d.ts +208 -0
- package/sdk-test-utilities/node_modules/@types/node/url.d.ts +952 -0
- package/sdk-test-utilities/node_modules/@types/node/util.d.ts +2292 -0
- package/sdk-test-utilities/node_modules/@types/node/v8.d.ts +808 -0
- package/sdk-test-utilities/node_modules/@types/node/vm.d.ts +924 -0
- package/sdk-test-utilities/node_modules/@types/node/wasi.d.ts +181 -0
- package/sdk-test-utilities/node_modules/@types/node/worker_threads.d.ts +691 -0
- package/sdk-test-utilities/node_modules/@types/node/zlib.d.ts +530 -0
- package/sdk-test-utilities/node_modules/@types/stack-utils/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/@types/stack-utils/README.md +78 -0
- package/sdk-test-utilities/node_modules/@types/stack-utils/index.d.ts +59 -0
- package/sdk-test-utilities/node_modules/@types/stack-utils/package.json +25 -0
- package/sdk-test-utilities/node_modules/@types/yargs/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/@types/yargs/README.md +15 -0
- package/sdk-test-utilities/node_modules/@types/yargs/helpers.d.mts +1 -0
- package/sdk-test-utilities/node_modules/@types/yargs/helpers.d.ts +5 -0
- package/sdk-test-utilities/node_modules/@types/yargs/index.d.mts +46 -0
- package/sdk-test-utilities/node_modules/@types/yargs/index.d.ts +1031 -0
- package/sdk-test-utilities/node_modules/@types/yargs/package.json +87 -0
- package/sdk-test-utilities/node_modules/@types/yargs/yargs.d.ts +9 -0
- package/sdk-test-utilities/node_modules/@types/yargs-parser/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/@types/yargs-parser/README.md +15 -0
- package/sdk-test-utilities/node_modules/@types/yargs-parser/index.d.ts +112 -0
- package/sdk-test-utilities/node_modules/@types/yargs-parser/package.json +25 -0
- package/sdk-test-utilities/node_modules/ansi-styles/index.d.ts +345 -0
- package/sdk-test-utilities/node_modules/ansi-styles/index.js +163 -0
- package/sdk-test-utilities/node_modules/ansi-styles/license +9 -0
- package/sdk-test-utilities/node_modules/ansi-styles/package.json +56 -0
- package/sdk-test-utilities/node_modules/ansi-styles/readme.md +152 -0
- package/sdk-test-utilities/node_modules/braces/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/braces/README.md +586 -0
- package/sdk-test-utilities/node_modules/braces/index.js +170 -0
- package/sdk-test-utilities/node_modules/braces/lib/compile.js +60 -0
- package/sdk-test-utilities/node_modules/braces/lib/constants.js +57 -0
- package/sdk-test-utilities/node_modules/braces/lib/expand.js +113 -0
- package/sdk-test-utilities/node_modules/braces/lib/parse.js +331 -0
- package/sdk-test-utilities/node_modules/braces/lib/stringify.js +32 -0
- package/sdk-test-utilities/node_modules/braces/lib/utils.js +122 -0
- package/sdk-test-utilities/node_modules/braces/package.json +77 -0
- package/sdk-test-utilities/node_modules/chalk/index.d.ts +415 -0
- package/sdk-test-utilities/node_modules/chalk/license +9 -0
- package/sdk-test-utilities/node_modules/chalk/package.json +68 -0
- package/sdk-test-utilities/node_modules/chalk/readme.md +341 -0
- package/sdk-test-utilities/node_modules/chalk/source/index.js +229 -0
- package/sdk-test-utilities/node_modules/chalk/source/templates.js +134 -0
- package/sdk-test-utilities/node_modules/chalk/source/util.js +39 -0
- package/sdk-test-utilities/node_modules/ci-info/CHANGELOG.md +178 -0
- package/sdk-test-utilities/node_modules/ci-info/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/ci-info/README.md +135 -0
- package/sdk-test-utilities/node_modules/ci-info/index.d.ts +75 -0
- package/sdk-test-utilities/node_modules/ci-info/index.js +90 -0
- package/sdk-test-utilities/node_modules/ci-info/package.json +45 -0
- package/sdk-test-utilities/node_modules/ci-info/vendors.json +321 -0
- package/sdk-test-utilities/node_modules/color-convert/CHANGELOG.md +54 -0
- package/sdk-test-utilities/node_modules/color-convert/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/color-convert/README.md +68 -0
- package/sdk-test-utilities/node_modules/color-convert/conversions.js +839 -0
- package/sdk-test-utilities/node_modules/color-convert/index.js +81 -0
- package/sdk-test-utilities/node_modules/color-convert/package.json +48 -0
- package/sdk-test-utilities/node_modules/color-convert/route.js +97 -0
- package/sdk-test-utilities/node_modules/color-name/LICENSE +8 -0
- package/sdk-test-utilities/node_modules/color-name/README.md +11 -0
- package/sdk-test-utilities/node_modules/color-name/index.js +152 -0
- package/sdk-test-utilities/node_modules/color-name/package.json +28 -0
- package/sdk-test-utilities/node_modules/diff-sequences/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/diff-sequences/README.md +404 -0
- package/sdk-test-utilities/node_modules/diff-sequences/build/index.d.ts +38 -0
- package/sdk-test-utilities/node_modules/diff-sequences/build/index.js +798 -0
- package/sdk-test-utilities/node_modules/diff-sequences/package.json +39 -0
- package/sdk-test-utilities/node_modules/escape-string-regexp/index.d.ts +18 -0
- package/sdk-test-utilities/node_modules/escape-string-regexp/index.js +11 -0
- package/sdk-test-utilities/node_modules/escape-string-regexp/license +9 -0
- package/sdk-test-utilities/node_modules/escape-string-regexp/package.json +43 -0
- package/sdk-test-utilities/node_modules/escape-string-regexp/readme.md +29 -0
- package/sdk-test-utilities/node_modules/expect/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/expect/README.md +3 -0
- package/sdk-test-utilities/node_modules/expect/build/asymmetricMatchers.js +375 -0
- package/sdk-test-utilities/node_modules/expect/build/extractExpectedAssertionsErrors.js +86 -0
- package/sdk-test-utilities/node_modules/expect/build/index.d.ts +370 -0
- package/sdk-test-utilities/node_modules/expect/build/index.js +410 -0
- package/sdk-test-utilities/node_modules/expect/build/jestMatchersObject.js +123 -0
- package/sdk-test-utilities/node_modules/expect/build/matchers.js +1292 -0
- package/sdk-test-utilities/node_modules/expect/build/print.js +122 -0
- package/sdk-test-utilities/node_modules/expect/build/spyMatchers.js +1254 -0
- package/sdk-test-utilities/node_modules/expect/build/toThrowMatchers.js +481 -0
- package/sdk-test-utilities/node_modules/expect/build/types.js +3 -0
- package/sdk-test-utilities/node_modules/expect/package.json +43 -0
- package/sdk-test-utilities/node_modules/fill-range/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/fill-range/README.md +237 -0
- package/sdk-test-utilities/node_modules/fill-range/index.js +248 -0
- package/sdk-test-utilities/node_modules/fill-range/package.json +74 -0
- package/sdk-test-utilities/node_modules/graceful-fs/LICENSE +15 -0
- package/sdk-test-utilities/node_modules/graceful-fs/README.md +143 -0
- package/sdk-test-utilities/node_modules/graceful-fs/clone.js +23 -0
- package/sdk-test-utilities/node_modules/graceful-fs/graceful-fs.js +448 -0
- package/sdk-test-utilities/node_modules/graceful-fs/legacy-streams.js +118 -0
- package/sdk-test-utilities/node_modules/graceful-fs/package.json +53 -0
- package/sdk-test-utilities/node_modules/graceful-fs/polyfills.js +355 -0
- package/sdk-test-utilities/node_modules/has-flag/index.d.ts +39 -0
- package/sdk-test-utilities/node_modules/has-flag/index.js +8 -0
- package/sdk-test-utilities/node_modules/has-flag/license +9 -0
- package/sdk-test-utilities/node_modules/has-flag/package.json +46 -0
- package/sdk-test-utilities/node_modules/has-flag/readme.md +89 -0
- package/sdk-test-utilities/node_modules/is-number/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/is-number/README.md +187 -0
- package/sdk-test-utilities/node_modules/is-number/index.js +18 -0
- package/sdk-test-utilities/node_modules/is-number/package.json +82 -0
- package/sdk-test-utilities/node_modules/jest-diff/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/jest-diff/README.md +671 -0
- package/sdk-test-utilities/node_modules/jest-diff/build/cleanupSemantic.js +599 -0
- package/sdk-test-utilities/node_modules/jest-diff/build/constants.js +19 -0
- package/sdk-test-utilities/node_modules/jest-diff/build/diffLines.js +193 -0
- package/sdk-test-utilities/node_modules/jest-diff/build/diffStrings.js +66 -0
- package/sdk-test-utilities/node_modules/jest-diff/build/getAlignedDiffs.js +223 -0
- package/sdk-test-utilities/node_modules/jest-diff/build/index.d.ts +93 -0
- package/sdk-test-utilities/node_modules/jest-diff/build/index.js +232 -0
- package/sdk-test-utilities/node_modules/jest-diff/build/joinAlignedDiffs.js +271 -0
- package/sdk-test-utilities/node_modules/jest-diff/build/normalizeDiffOptions.js +59 -0
- package/sdk-test-utilities/node_modules/jest-diff/build/printDiffs.js +79 -0
- package/sdk-test-utilities/node_modules/jest-diff/build/types.js +1 -0
- package/sdk-test-utilities/node_modules/jest-diff/package.json +36 -0
- package/sdk-test-utilities/node_modules/jest-get-type/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/jest-get-type/build/index.d.ts +27 -0
- package/sdk-test-utilities/node_modules/jest-get-type/build/index.js +53 -0
- package/sdk-test-utilities/node_modules/jest-get-type/package.json +27 -0
- package/sdk-test-utilities/node_modules/jest-matcher-utils/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/jest-matcher-utils/README.md +24 -0
- package/sdk-test-utilities/node_modules/jest-matcher-utils/build/Replaceable.js +64 -0
- package/sdk-test-utilities/node_modules/jest-matcher-utils/build/deepCyclicCopyReplaceable.js +111 -0
- package/sdk-test-utilities/node_modules/jest-matcher-utils/build/index.d.ts +138 -0
- package/sdk-test-utilities/node_modules/jest-matcher-utils/build/index.js +542 -0
- package/sdk-test-utilities/node_modules/jest-matcher-utils/package.json +37 -0
- package/sdk-test-utilities/node_modules/jest-message-util/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/jest-message-util/build/index.d.ts +68 -0
- package/sdk-test-utilities/node_modules/jest-message-util/build/index.js +518 -0
- package/sdk-test-utilities/node_modules/jest-message-util/build/types.js +1 -0
- package/sdk-test-utilities/node_modules/jest-message-util/package.json +43 -0
- package/sdk-test-utilities/node_modules/jest-util/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/jest-util/Readme.md +87 -0
- package/sdk-test-utilities/node_modules/jest-util/build/ErrorWithStack.js +28 -0
- package/sdk-test-utilities/node_modules/jest-util/build/clearLine.js +18 -0
- package/sdk-test-utilities/node_modules/jest-util/build/convertDescriptorToString.js +30 -0
- package/sdk-test-utilities/node_modules/jest-util/build/createDirectory.js +71 -0
- package/sdk-test-utilities/node_modules/jest-util/build/createProcessObject.js +109 -0
- package/sdk-test-utilities/node_modules/jest-util/build/deepCyclicCopy.js +76 -0
- package/sdk-test-utilities/node_modules/jest-util/build/formatTime.js +24 -0
- package/sdk-test-utilities/node_modules/jest-util/build/globsToMatcher.js +98 -0
- package/sdk-test-utilities/node_modules/jest-util/build/index.d.ts +136 -0
- package/sdk-test-utilities/node_modules/jest-util/build/index.js +199 -0
- package/sdk-test-utilities/node_modules/jest-util/build/installCommonGlobals.js +115 -0
- package/sdk-test-utilities/node_modules/jest-util/build/interopRequireDefault.js +22 -0
- package/sdk-test-utilities/node_modules/jest-util/build/invariant.js +18 -0
- package/sdk-test-utilities/node_modules/jest-util/build/isInteractive.js +22 -0
- package/sdk-test-utilities/node_modules/jest-util/build/isNonNullable.js +16 -0
- package/sdk-test-utilities/node_modules/jest-util/build/isPromise.js +20 -0
- package/sdk-test-utilities/node_modules/jest-util/build/pluralize.js +16 -0
- package/sdk-test-utilities/node_modules/jest-util/build/preRunMessage.js +38 -0
- package/sdk-test-utilities/node_modules/jest-util/build/replacePathSepForGlob.js +16 -0
- package/sdk-test-utilities/node_modules/jest-util/build/requireOrImportModule.js +77 -0
- package/sdk-test-utilities/node_modules/jest-util/build/setGlobal.js +17 -0
- package/sdk-test-utilities/node_modules/jest-util/build/specialChars.js +25 -0
- package/sdk-test-utilities/node_modules/jest-util/build/testPathPatternToRegExp.js +19 -0
- package/sdk-test-utilities/node_modules/jest-util/build/tryRealpath.js +30 -0
- package/sdk-test-utilities/node_modules/jest-util/package.json +38 -0
- package/sdk-test-utilities/node_modules/js-tokens/CHANGELOG.md +151 -0
- package/sdk-test-utilities/node_modules/js-tokens/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/js-tokens/README.md +240 -0
- package/sdk-test-utilities/node_modules/js-tokens/index.js +23 -0
- package/sdk-test-utilities/node_modules/js-tokens/package.json +30 -0
- package/sdk-test-utilities/node_modules/micromatch/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/micromatch/README.md +1017 -0
- package/sdk-test-utilities/node_modules/micromatch/index.js +467 -0
- package/sdk-test-utilities/node_modules/micromatch/package.json +101 -0
- package/sdk-test-utilities/node_modules/picocolors/LICENSE +15 -0
- package/sdk-test-utilities/node_modules/picocolors/README.md +21 -0
- package/sdk-test-utilities/node_modules/picocolors/package.json +25 -0
- package/sdk-test-utilities/node_modules/picocolors/picocolors.browser.js +4 -0
- package/sdk-test-utilities/node_modules/picocolors/picocolors.d.ts +5 -0
- package/sdk-test-utilities/node_modules/picocolors/picocolors.js +65 -0
- package/sdk-test-utilities/node_modules/picomatch/CHANGELOG.md +136 -0
- package/sdk-test-utilities/node_modules/picomatch/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/picomatch/README.md +708 -0
- package/sdk-test-utilities/node_modules/picomatch/index.js +3 -0
- package/sdk-test-utilities/node_modules/picomatch/lib/constants.js +179 -0
- package/sdk-test-utilities/node_modules/picomatch/lib/parse.js +1091 -0
- package/sdk-test-utilities/node_modules/picomatch/lib/picomatch.js +342 -0
- package/sdk-test-utilities/node_modules/picomatch/lib/scan.js +391 -0
- package/sdk-test-utilities/node_modules/picomatch/lib/utils.js +64 -0
- package/sdk-test-utilities/node_modules/picomatch/package.json +81 -0
- package/sdk-test-utilities/node_modules/pretty-format/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/pretty-format/README.md +463 -0
- package/sdk-test-utilities/node_modules/pretty-format/build/collections.js +180 -0
- package/sdk-test-utilities/node_modules/pretty-format/build/index.d.ts +163 -0
- package/sdk-test-utilities/node_modules/pretty-format/build/index.js +478 -0
- package/sdk-test-utilities/node_modules/pretty-format/build/plugins/AsymmetricMatcher.js +89 -0
- package/sdk-test-utilities/node_modules/pretty-format/build/plugins/DOMCollection.js +67 -0
- package/sdk-test-utilities/node_modules/pretty-format/build/plugins/DOMElement.js +101 -0
- package/sdk-test-utilities/node_modules/pretty-format/build/plugins/Immutable.js +217 -0
- package/sdk-test-utilities/node_modules/pretty-format/build/plugins/ReactElement.js +143 -0
- package/sdk-test-utilities/node_modules/pretty-format/build/plugins/ReactTestComponent.js +66 -0
- package/sdk-test-utilities/node_modules/pretty-format/build/plugins/lib/escapeHTML.js +16 -0
- package/sdk-test-utilities/node_modules/pretty-format/build/plugins/lib/markup.js +113 -0
- package/sdk-test-utilities/node_modules/pretty-format/build/types.js +1 -0
- package/sdk-test-utilities/node_modules/pretty-format/node_modules/ansi-styles/index.d.ts +167 -0
- package/sdk-test-utilities/node_modules/pretty-format/node_modules/ansi-styles/index.js +164 -0
- package/sdk-test-utilities/node_modules/pretty-format/node_modules/ansi-styles/license +9 -0
- package/sdk-test-utilities/node_modules/pretty-format/node_modules/ansi-styles/package.json +52 -0
- package/sdk-test-utilities/node_modules/pretty-format/node_modules/ansi-styles/readme.md +144 -0
- package/sdk-test-utilities/node_modules/pretty-format/package.json +43 -0
- package/sdk-test-utilities/node_modules/react-is/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/react-is/README.md +104 -0
- package/sdk-test-utilities/node_modules/react-is/cjs/react-is.development.js +221 -0
- package/sdk-test-utilities/node_modules/react-is/cjs/react-is.production.min.js +14 -0
- package/sdk-test-utilities/node_modules/react-is/index.js +7 -0
- package/sdk-test-utilities/node_modules/react-is/package.json +26 -0
- package/sdk-test-utilities/node_modules/react-is/umd/react-is.development.js +220 -0
- package/sdk-test-utilities/node_modules/react-is/umd/react-is.production.min.js +15 -0
- package/sdk-test-utilities/node_modules/slash/index.d.ts +25 -0
- package/sdk-test-utilities/node_modules/slash/index.js +11 -0
- package/sdk-test-utilities/node_modules/slash/license +9 -0
- package/sdk-test-utilities/node_modules/slash/package.json +35 -0
- package/sdk-test-utilities/node_modules/slash/readme.md +44 -0
- package/sdk-test-utilities/node_modules/stack-utils/LICENSE.md +21 -0
- package/sdk-test-utilities/node_modules/stack-utils/index.js +344 -0
- package/sdk-test-utilities/node_modules/stack-utils/package.json +39 -0
- package/sdk-test-utilities/node_modules/stack-utils/readme.md +143 -0
- package/sdk-test-utilities/node_modules/supports-color/browser.js +5 -0
- package/sdk-test-utilities/node_modules/supports-color/index.js +135 -0
- package/sdk-test-utilities/node_modules/supports-color/license +9 -0
- package/sdk-test-utilities/node_modules/supports-color/package.json +53 -0
- package/sdk-test-utilities/node_modules/supports-color/readme.md +76 -0
- package/sdk-test-utilities/node_modules/to-regex-range/LICENSE +21 -0
- package/sdk-test-utilities/node_modules/to-regex-range/README.md +305 -0
- package/sdk-test-utilities/node_modules/to-regex-range/index.js +288 -0
- package/sdk-test-utilities/node_modules/to-regex-range/package.json +88 -0
- package/sdk-test-utilities/node_modules/undici-types/README.md +6 -0
- package/sdk-test-utilities/node_modules/undici-types/agent.d.ts +31 -0
- package/sdk-test-utilities/node_modules/undici-types/api.d.ts +43 -0
- package/sdk-test-utilities/node_modules/undici-types/balanced-pool.d.ts +18 -0
- package/sdk-test-utilities/node_modules/undici-types/cache.d.ts +36 -0
- package/sdk-test-utilities/node_modules/undici-types/client.d.ts +97 -0
- package/sdk-test-utilities/node_modules/undici-types/connector.d.ts +34 -0
- package/sdk-test-utilities/node_modules/undici-types/content-type.d.ts +21 -0
- package/sdk-test-utilities/node_modules/undici-types/cookies.d.ts +28 -0
- package/sdk-test-utilities/node_modules/undici-types/diagnostics-channel.d.ts +67 -0
- package/sdk-test-utilities/node_modules/undici-types/dispatcher.d.ts +241 -0
- package/sdk-test-utilities/node_modules/undici-types/errors.d.ts +128 -0
- package/sdk-test-utilities/node_modules/undici-types/fetch.d.ts +209 -0
- package/sdk-test-utilities/node_modules/undici-types/file.d.ts +39 -0
- package/sdk-test-utilities/node_modules/undici-types/filereader.d.ts +54 -0
- package/sdk-test-utilities/node_modules/undici-types/formdata.d.ts +108 -0
- package/sdk-test-utilities/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/sdk-test-utilities/node_modules/undici-types/global-origin.d.ts +7 -0
- package/sdk-test-utilities/node_modules/undici-types/handlers.d.ts +9 -0
- package/sdk-test-utilities/node_modules/undici-types/header.d.ts +4 -0
- package/sdk-test-utilities/node_modules/undici-types/index.d.ts +63 -0
- package/sdk-test-utilities/node_modules/undici-types/interceptors.d.ts +5 -0
- package/sdk-test-utilities/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/sdk-test-utilities/node_modules/undici-types/mock-client.d.ts +25 -0
- package/sdk-test-utilities/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/sdk-test-utilities/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/sdk-test-utilities/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/sdk-test-utilities/node_modules/undici-types/package.json +55 -0
- package/sdk-test-utilities/node_modules/undici-types/patch.d.ts +71 -0
- package/sdk-test-utilities/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/sdk-test-utilities/node_modules/undici-types/pool.d.ts +28 -0
- package/sdk-test-utilities/node_modules/undici-types/proxy-agent.d.ts +30 -0
- package/sdk-test-utilities/node_modules/undici-types/readable.d.ts +61 -0
- package/sdk-test-utilities/node_modules/undici-types/webidl.d.ts +220 -0
- package/sdk-test-utilities/node_modules/undici-types/websocket.d.ts +131 -0
|
@@ -0,0 +1,550 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HTTPS is the HTTP protocol over TLS/SSL. In Node.js this is implemented as a
|
|
3
|
+
* separate module.
|
|
4
|
+
* @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/https.js)
|
|
5
|
+
*/
|
|
6
|
+
declare module "https" {
|
|
7
|
+
import { Duplex } from "node:stream";
|
|
8
|
+
import * as tls from "node:tls";
|
|
9
|
+
import * as http from "node:http";
|
|
10
|
+
import { URL } from "node:url";
|
|
11
|
+
type ServerOptions<
|
|
12
|
+
Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
|
|
13
|
+
Response extends typeof http.ServerResponse = typeof http.ServerResponse,
|
|
14
|
+
> = tls.SecureContextOptions & tls.TlsOptions & http.ServerOptions<Request, Response>;
|
|
15
|
+
type RequestOptions =
|
|
16
|
+
& http.RequestOptions
|
|
17
|
+
& tls.SecureContextOptions
|
|
18
|
+
& {
|
|
19
|
+
checkServerIdentity?: typeof tls.checkServerIdentity | undefined;
|
|
20
|
+
rejectUnauthorized?: boolean | undefined; // Defaults to true
|
|
21
|
+
servername?: string | undefined; // SNI TLS Extension
|
|
22
|
+
};
|
|
23
|
+
interface AgentOptions extends http.AgentOptions, tls.ConnectionOptions {
|
|
24
|
+
rejectUnauthorized?: boolean | undefined;
|
|
25
|
+
maxCachedSessions?: number | undefined;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* An `Agent` object for HTTPS similar to `http.Agent`. See {@link request} for more information.
|
|
29
|
+
* @since v0.4.5
|
|
30
|
+
*/
|
|
31
|
+
class Agent extends http.Agent {
|
|
32
|
+
constructor(options?: AgentOptions);
|
|
33
|
+
options: AgentOptions;
|
|
34
|
+
}
|
|
35
|
+
interface Server<
|
|
36
|
+
Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
|
|
37
|
+
Response extends typeof http.ServerResponse = typeof http.ServerResponse,
|
|
38
|
+
> extends http.Server<Request, Response> {}
|
|
39
|
+
/**
|
|
40
|
+
* See `http.Server` for more information.
|
|
41
|
+
* @since v0.3.4
|
|
42
|
+
*/
|
|
43
|
+
class Server<
|
|
44
|
+
Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
|
|
45
|
+
Response extends typeof http.ServerResponse = typeof http.ServerResponse,
|
|
46
|
+
> extends tls.Server {
|
|
47
|
+
constructor(requestListener?: http.RequestListener<Request, Response>);
|
|
48
|
+
constructor(
|
|
49
|
+
options: ServerOptions<Request, Response>,
|
|
50
|
+
requestListener?: http.RequestListener<Request, Response>,
|
|
51
|
+
);
|
|
52
|
+
/**
|
|
53
|
+
* Closes all connections connected to this server.
|
|
54
|
+
* @since v18.2.0
|
|
55
|
+
*/
|
|
56
|
+
closeAllConnections(): void;
|
|
57
|
+
/**
|
|
58
|
+
* Closes all connections connected to this server which are not sending a request or waiting for a response.
|
|
59
|
+
* @since v18.2.0
|
|
60
|
+
*/
|
|
61
|
+
closeIdleConnections(): void;
|
|
62
|
+
addListener(event: string, listener: (...args: any[]) => void): this;
|
|
63
|
+
addListener(event: "keylog", listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
|
|
64
|
+
addListener(
|
|
65
|
+
event: "newSession",
|
|
66
|
+
listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void,
|
|
67
|
+
): this;
|
|
68
|
+
addListener(
|
|
69
|
+
event: "OCSPRequest",
|
|
70
|
+
listener: (
|
|
71
|
+
certificate: Buffer,
|
|
72
|
+
issuer: Buffer,
|
|
73
|
+
callback: (err: Error | null, resp: Buffer) => void,
|
|
74
|
+
) => void,
|
|
75
|
+
): this;
|
|
76
|
+
addListener(
|
|
77
|
+
event: "resumeSession",
|
|
78
|
+
listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void,
|
|
79
|
+
): this;
|
|
80
|
+
addListener(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this;
|
|
81
|
+
addListener(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
|
|
82
|
+
addListener(event: "close", listener: () => void): this;
|
|
83
|
+
addListener(event: "connection", listener: (socket: Duplex) => void): this;
|
|
84
|
+
addListener(event: "error", listener: (err: Error) => void): this;
|
|
85
|
+
addListener(event: "listening", listener: () => void): this;
|
|
86
|
+
addListener(event: "checkContinue", listener: http.RequestListener<Request, Response>): this;
|
|
87
|
+
addListener(event: "checkExpectation", listener: http.RequestListener<Request, Response>): this;
|
|
88
|
+
addListener(event: "clientError", listener: (err: Error, socket: Duplex) => void): this;
|
|
89
|
+
addListener(
|
|
90
|
+
event: "connect",
|
|
91
|
+
listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void,
|
|
92
|
+
): this;
|
|
93
|
+
addListener(event: "request", listener: http.RequestListener<Request, Response>): this;
|
|
94
|
+
addListener(
|
|
95
|
+
event: "upgrade",
|
|
96
|
+
listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void,
|
|
97
|
+
): this;
|
|
98
|
+
emit(event: string, ...args: any[]): boolean;
|
|
99
|
+
emit(event: "keylog", line: Buffer, tlsSocket: tls.TLSSocket): boolean;
|
|
100
|
+
emit(
|
|
101
|
+
event: "newSession",
|
|
102
|
+
sessionId: Buffer,
|
|
103
|
+
sessionData: Buffer,
|
|
104
|
+
callback: (err: Error, resp: Buffer) => void,
|
|
105
|
+
): boolean;
|
|
106
|
+
emit(
|
|
107
|
+
event: "OCSPRequest",
|
|
108
|
+
certificate: Buffer,
|
|
109
|
+
issuer: Buffer,
|
|
110
|
+
callback: (err: Error | null, resp: Buffer) => void,
|
|
111
|
+
): boolean;
|
|
112
|
+
emit(event: "resumeSession", sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void): boolean;
|
|
113
|
+
emit(event: "secureConnection", tlsSocket: tls.TLSSocket): boolean;
|
|
114
|
+
emit(event: "tlsClientError", err: Error, tlsSocket: tls.TLSSocket): boolean;
|
|
115
|
+
emit(event: "close"): boolean;
|
|
116
|
+
emit(event: "connection", socket: Duplex): boolean;
|
|
117
|
+
emit(event: "error", err: Error): boolean;
|
|
118
|
+
emit(event: "listening"): boolean;
|
|
119
|
+
emit(
|
|
120
|
+
event: "checkContinue",
|
|
121
|
+
req: InstanceType<Request>,
|
|
122
|
+
res: InstanceType<Response> & {
|
|
123
|
+
req: InstanceType<Request>;
|
|
124
|
+
},
|
|
125
|
+
): boolean;
|
|
126
|
+
emit(
|
|
127
|
+
event: "checkExpectation",
|
|
128
|
+
req: InstanceType<Request>,
|
|
129
|
+
res: InstanceType<Response> & {
|
|
130
|
+
req: InstanceType<Request>;
|
|
131
|
+
},
|
|
132
|
+
): boolean;
|
|
133
|
+
emit(event: "clientError", err: Error, socket: Duplex): boolean;
|
|
134
|
+
emit(event: "connect", req: InstanceType<Request>, socket: Duplex, head: Buffer): boolean;
|
|
135
|
+
emit(
|
|
136
|
+
event: "request",
|
|
137
|
+
req: InstanceType<Request>,
|
|
138
|
+
res: InstanceType<Response> & {
|
|
139
|
+
req: InstanceType<Request>;
|
|
140
|
+
},
|
|
141
|
+
): boolean;
|
|
142
|
+
emit(event: "upgrade", req: InstanceType<Request>, socket: Duplex, head: Buffer): boolean;
|
|
143
|
+
on(event: string, listener: (...args: any[]) => void): this;
|
|
144
|
+
on(event: "keylog", listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
|
|
145
|
+
on(
|
|
146
|
+
event: "newSession",
|
|
147
|
+
listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void,
|
|
148
|
+
): this;
|
|
149
|
+
on(
|
|
150
|
+
event: "OCSPRequest",
|
|
151
|
+
listener: (
|
|
152
|
+
certificate: Buffer,
|
|
153
|
+
issuer: Buffer,
|
|
154
|
+
callback: (err: Error | null, resp: Buffer) => void,
|
|
155
|
+
) => void,
|
|
156
|
+
): this;
|
|
157
|
+
on(
|
|
158
|
+
event: "resumeSession",
|
|
159
|
+
listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void,
|
|
160
|
+
): this;
|
|
161
|
+
on(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this;
|
|
162
|
+
on(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
|
|
163
|
+
on(event: "close", listener: () => void): this;
|
|
164
|
+
on(event: "connection", listener: (socket: Duplex) => void): this;
|
|
165
|
+
on(event: "error", listener: (err: Error) => void): this;
|
|
166
|
+
on(event: "listening", listener: () => void): this;
|
|
167
|
+
on(event: "checkContinue", listener: http.RequestListener<Request, Response>): this;
|
|
168
|
+
on(event: "checkExpectation", listener: http.RequestListener<Request, Response>): this;
|
|
169
|
+
on(event: "clientError", listener: (err: Error, socket: Duplex) => void): this;
|
|
170
|
+
on(event: "connect", listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void): this;
|
|
171
|
+
on(event: "request", listener: http.RequestListener<Request, Response>): this;
|
|
172
|
+
on(event: "upgrade", listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void): this;
|
|
173
|
+
once(event: string, listener: (...args: any[]) => void): this;
|
|
174
|
+
once(event: "keylog", listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
|
|
175
|
+
once(
|
|
176
|
+
event: "newSession",
|
|
177
|
+
listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void,
|
|
178
|
+
): this;
|
|
179
|
+
once(
|
|
180
|
+
event: "OCSPRequest",
|
|
181
|
+
listener: (
|
|
182
|
+
certificate: Buffer,
|
|
183
|
+
issuer: Buffer,
|
|
184
|
+
callback: (err: Error | null, resp: Buffer) => void,
|
|
185
|
+
) => void,
|
|
186
|
+
): this;
|
|
187
|
+
once(
|
|
188
|
+
event: "resumeSession",
|
|
189
|
+
listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void,
|
|
190
|
+
): this;
|
|
191
|
+
once(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this;
|
|
192
|
+
once(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
|
|
193
|
+
once(event: "close", listener: () => void): this;
|
|
194
|
+
once(event: "connection", listener: (socket: Duplex) => void): this;
|
|
195
|
+
once(event: "error", listener: (err: Error) => void): this;
|
|
196
|
+
once(event: "listening", listener: () => void): this;
|
|
197
|
+
once(event: "checkContinue", listener: http.RequestListener<Request, Response>): this;
|
|
198
|
+
once(event: "checkExpectation", listener: http.RequestListener<Request, Response>): this;
|
|
199
|
+
once(event: "clientError", listener: (err: Error, socket: Duplex) => void): this;
|
|
200
|
+
once(event: "connect", listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void): this;
|
|
201
|
+
once(event: "request", listener: http.RequestListener<Request, Response>): this;
|
|
202
|
+
once(event: "upgrade", listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void): this;
|
|
203
|
+
prependListener(event: string, listener: (...args: any[]) => void): this;
|
|
204
|
+
prependListener(event: "keylog", listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
|
|
205
|
+
prependListener(
|
|
206
|
+
event: "newSession",
|
|
207
|
+
listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void,
|
|
208
|
+
): this;
|
|
209
|
+
prependListener(
|
|
210
|
+
event: "OCSPRequest",
|
|
211
|
+
listener: (
|
|
212
|
+
certificate: Buffer,
|
|
213
|
+
issuer: Buffer,
|
|
214
|
+
callback: (err: Error | null, resp: Buffer) => void,
|
|
215
|
+
) => void,
|
|
216
|
+
): this;
|
|
217
|
+
prependListener(
|
|
218
|
+
event: "resumeSession",
|
|
219
|
+
listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void,
|
|
220
|
+
): this;
|
|
221
|
+
prependListener(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this;
|
|
222
|
+
prependListener(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
|
|
223
|
+
prependListener(event: "close", listener: () => void): this;
|
|
224
|
+
prependListener(event: "connection", listener: (socket: Duplex) => void): this;
|
|
225
|
+
prependListener(event: "error", listener: (err: Error) => void): this;
|
|
226
|
+
prependListener(event: "listening", listener: () => void): this;
|
|
227
|
+
prependListener(event: "checkContinue", listener: http.RequestListener<Request, Response>): this;
|
|
228
|
+
prependListener(event: "checkExpectation", listener: http.RequestListener<Request, Response>): this;
|
|
229
|
+
prependListener(event: "clientError", listener: (err: Error, socket: Duplex) => void): this;
|
|
230
|
+
prependListener(
|
|
231
|
+
event: "connect",
|
|
232
|
+
listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void,
|
|
233
|
+
): this;
|
|
234
|
+
prependListener(event: "request", listener: http.RequestListener<Request, Response>): this;
|
|
235
|
+
prependListener(
|
|
236
|
+
event: "upgrade",
|
|
237
|
+
listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void,
|
|
238
|
+
): this;
|
|
239
|
+
prependOnceListener(event: string, listener: (...args: any[]) => void): this;
|
|
240
|
+
prependOnceListener(event: "keylog", listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
|
|
241
|
+
prependOnceListener(
|
|
242
|
+
event: "newSession",
|
|
243
|
+
listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void,
|
|
244
|
+
): this;
|
|
245
|
+
prependOnceListener(
|
|
246
|
+
event: "OCSPRequest",
|
|
247
|
+
listener: (
|
|
248
|
+
certificate: Buffer,
|
|
249
|
+
issuer: Buffer,
|
|
250
|
+
callback: (err: Error | null, resp: Buffer) => void,
|
|
251
|
+
) => void,
|
|
252
|
+
): this;
|
|
253
|
+
prependOnceListener(
|
|
254
|
+
event: "resumeSession",
|
|
255
|
+
listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void,
|
|
256
|
+
): this;
|
|
257
|
+
prependOnceListener(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this;
|
|
258
|
+
prependOnceListener(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
|
|
259
|
+
prependOnceListener(event: "close", listener: () => void): this;
|
|
260
|
+
prependOnceListener(event: "connection", listener: (socket: Duplex) => void): this;
|
|
261
|
+
prependOnceListener(event: "error", listener: (err: Error) => void): this;
|
|
262
|
+
prependOnceListener(event: "listening", listener: () => void): this;
|
|
263
|
+
prependOnceListener(event: "checkContinue", listener: http.RequestListener<Request, Response>): this;
|
|
264
|
+
prependOnceListener(event: "checkExpectation", listener: http.RequestListener<Request, Response>): this;
|
|
265
|
+
prependOnceListener(event: "clientError", listener: (err: Error, socket: Duplex) => void): this;
|
|
266
|
+
prependOnceListener(
|
|
267
|
+
event: "connect",
|
|
268
|
+
listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void,
|
|
269
|
+
): this;
|
|
270
|
+
prependOnceListener(event: "request", listener: http.RequestListener<Request, Response>): this;
|
|
271
|
+
prependOnceListener(
|
|
272
|
+
event: "upgrade",
|
|
273
|
+
listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void,
|
|
274
|
+
): this;
|
|
275
|
+
}
|
|
276
|
+
/**
|
|
277
|
+
* ```js
|
|
278
|
+
* // curl -k https://localhost:8000/
|
|
279
|
+
* const https = require('node:https');
|
|
280
|
+
* const fs = require('node:fs');
|
|
281
|
+
*
|
|
282
|
+
* const options = {
|
|
283
|
+
* key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'),
|
|
284
|
+
* cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem'),
|
|
285
|
+
* };
|
|
286
|
+
*
|
|
287
|
+
* https.createServer(options, (req, res) => {
|
|
288
|
+
* res.writeHead(200);
|
|
289
|
+
* res.end('hello world\n');
|
|
290
|
+
* }).listen(8000);
|
|
291
|
+
* ```
|
|
292
|
+
*
|
|
293
|
+
* Or
|
|
294
|
+
*
|
|
295
|
+
* ```js
|
|
296
|
+
* const https = require('node:https');
|
|
297
|
+
* const fs = require('node:fs');
|
|
298
|
+
*
|
|
299
|
+
* const options = {
|
|
300
|
+
* pfx: fs.readFileSync('test/fixtures/test_cert.pfx'),
|
|
301
|
+
* passphrase: 'sample',
|
|
302
|
+
* };
|
|
303
|
+
*
|
|
304
|
+
* https.createServer(options, (req, res) => {
|
|
305
|
+
* res.writeHead(200);
|
|
306
|
+
* res.end('hello world\n');
|
|
307
|
+
* }).listen(8000);
|
|
308
|
+
* ```
|
|
309
|
+
* @since v0.3.4
|
|
310
|
+
* @param options Accepts `options` from `createServer`, `createSecureContext` and `createServer`.
|
|
311
|
+
* @param requestListener A listener to be added to the `'request'` event.
|
|
312
|
+
*/
|
|
313
|
+
function createServer<
|
|
314
|
+
Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
|
|
315
|
+
Response extends typeof http.ServerResponse = typeof http.ServerResponse,
|
|
316
|
+
>(requestListener?: http.RequestListener<Request, Response>): Server<Request, Response>;
|
|
317
|
+
function createServer<
|
|
318
|
+
Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
|
|
319
|
+
Response extends typeof http.ServerResponse = typeof http.ServerResponse,
|
|
320
|
+
>(
|
|
321
|
+
options: ServerOptions<Request, Response>,
|
|
322
|
+
requestListener?: http.RequestListener<Request, Response>,
|
|
323
|
+
): Server<Request, Response>;
|
|
324
|
+
/**
|
|
325
|
+
* Makes a request to a secure web server.
|
|
326
|
+
*
|
|
327
|
+
* The following additional `options` from `tls.connect()` are also accepted: `ca`, `cert`, `ciphers`, `clientCertEngine`, `crl`, `dhparam`, `ecdhCurve`, `honorCipherOrder`, `key`, `passphrase`,
|
|
328
|
+
* `pfx`, `rejectUnauthorized`, `secureOptions`, `secureProtocol`, `servername`, `sessionIdContext`, `highWaterMark`.
|
|
329
|
+
*
|
|
330
|
+
* `options` can be an object, a string, or a `URL` object. If `options` is a
|
|
331
|
+
* string, it is automatically parsed with `new URL()`. If it is a `URL` object, it will be automatically converted to an ordinary `options` object.
|
|
332
|
+
*
|
|
333
|
+
* `https.request()` returns an instance of the `http.ClientRequest` class. The `ClientRequest` instance is a writable stream. If one needs to
|
|
334
|
+
* upload a file with a POST request, then write to the `ClientRequest` object.
|
|
335
|
+
*
|
|
336
|
+
* ```js
|
|
337
|
+
* const https = require('node:https');
|
|
338
|
+
*
|
|
339
|
+
* const options = {
|
|
340
|
+
* hostname: 'encrypted.google.com',
|
|
341
|
+
* port: 443,
|
|
342
|
+
* path: '/',
|
|
343
|
+
* method: 'GET',
|
|
344
|
+
* };
|
|
345
|
+
*
|
|
346
|
+
* const req = https.request(options, (res) => {
|
|
347
|
+
* console.log('statusCode:', res.statusCode);
|
|
348
|
+
* console.log('headers:', res.headers);
|
|
349
|
+
*
|
|
350
|
+
* res.on('data', (d) => {
|
|
351
|
+
* process.stdout.write(d);
|
|
352
|
+
* });
|
|
353
|
+
* });
|
|
354
|
+
*
|
|
355
|
+
* req.on('error', (e) => {
|
|
356
|
+
* console.error(e);
|
|
357
|
+
* });
|
|
358
|
+
* req.end();
|
|
359
|
+
* ```
|
|
360
|
+
*
|
|
361
|
+
* Example using options from `tls.connect()`:
|
|
362
|
+
*
|
|
363
|
+
* ```js
|
|
364
|
+
* const options = {
|
|
365
|
+
* hostname: 'encrypted.google.com',
|
|
366
|
+
* port: 443,
|
|
367
|
+
* path: '/',
|
|
368
|
+
* method: 'GET',
|
|
369
|
+
* key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'),
|
|
370
|
+
* cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem'),
|
|
371
|
+
* };
|
|
372
|
+
* options.agent = new https.Agent(options);
|
|
373
|
+
*
|
|
374
|
+
* const req = https.request(options, (res) => {
|
|
375
|
+
* // ...
|
|
376
|
+
* });
|
|
377
|
+
* ```
|
|
378
|
+
*
|
|
379
|
+
* Alternatively, opt out of connection pooling by not using an `Agent`.
|
|
380
|
+
*
|
|
381
|
+
* ```js
|
|
382
|
+
* const options = {
|
|
383
|
+
* hostname: 'encrypted.google.com',
|
|
384
|
+
* port: 443,
|
|
385
|
+
* path: '/',
|
|
386
|
+
* method: 'GET',
|
|
387
|
+
* key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'),
|
|
388
|
+
* cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem'),
|
|
389
|
+
* agent: false,
|
|
390
|
+
* };
|
|
391
|
+
*
|
|
392
|
+
* const req = https.request(options, (res) => {
|
|
393
|
+
* // ...
|
|
394
|
+
* });
|
|
395
|
+
* ```
|
|
396
|
+
*
|
|
397
|
+
* Example using a `URL` as `options`:
|
|
398
|
+
*
|
|
399
|
+
* ```js
|
|
400
|
+
* const options = new URL('https://abc:xyz@example.com');
|
|
401
|
+
*
|
|
402
|
+
* const req = https.request(options, (res) => {
|
|
403
|
+
* // ...
|
|
404
|
+
* });
|
|
405
|
+
* ```
|
|
406
|
+
*
|
|
407
|
+
* Example pinning on certificate fingerprint, or the public key (similar to`pin-sha256`):
|
|
408
|
+
*
|
|
409
|
+
* ```js
|
|
410
|
+
* const tls = require('node:tls');
|
|
411
|
+
* const https = require('node:https');
|
|
412
|
+
* const crypto = require('node:crypto');
|
|
413
|
+
*
|
|
414
|
+
* function sha256(s) {
|
|
415
|
+
* return crypto.createHash('sha256').update(s).digest('base64');
|
|
416
|
+
* }
|
|
417
|
+
* const options = {
|
|
418
|
+
* hostname: 'github.com',
|
|
419
|
+
* port: 443,
|
|
420
|
+
* path: '/',
|
|
421
|
+
* method: 'GET',
|
|
422
|
+
* checkServerIdentity: function(host, cert) {
|
|
423
|
+
* // Make sure the certificate is issued to the host we are connected to
|
|
424
|
+
* const err = tls.checkServerIdentity(host, cert);
|
|
425
|
+
* if (err) {
|
|
426
|
+
* return err;
|
|
427
|
+
* }
|
|
428
|
+
*
|
|
429
|
+
* // Pin the public key, similar to HPKP pin-sha256 pinning
|
|
430
|
+
* const pubkey256 = 'pL1+qb9HTMRZJmuC/bB/ZI9d302BYrrqiVuRyW+DGrU=';
|
|
431
|
+
* if (sha256(cert.pubkey) !== pubkey256) {
|
|
432
|
+
* const msg = 'Certificate verification error: ' +
|
|
433
|
+
* `The public key of '${cert.subject.CN}' ` +
|
|
434
|
+
* 'does not match our pinned fingerprint';
|
|
435
|
+
* return new Error(msg);
|
|
436
|
+
* }
|
|
437
|
+
*
|
|
438
|
+
* // Pin the exact certificate, rather than the pub key
|
|
439
|
+
* const cert256 = '25:FE:39:32:D9:63:8C:8A:FC:A1:9A:29:87:' +
|
|
440
|
+
* 'D8:3E:4C:1D:98:DB:71:E4:1A:48:03:98:EA:22:6A:BD:8B:93:16';
|
|
441
|
+
* if (cert.fingerprint256 !== cert256) {
|
|
442
|
+
* const msg = 'Certificate verification error: ' +
|
|
443
|
+
* `The certificate of '${cert.subject.CN}' ` +
|
|
444
|
+
* 'does not match our pinned fingerprint';
|
|
445
|
+
* return new Error(msg);
|
|
446
|
+
* }
|
|
447
|
+
*
|
|
448
|
+
* // This loop is informational only.
|
|
449
|
+
* // Print the certificate and public key fingerprints of all certs in the
|
|
450
|
+
* // chain. Its common to pin the public key of the issuer on the public
|
|
451
|
+
* // internet, while pinning the public key of the service in sensitive
|
|
452
|
+
* // environments.
|
|
453
|
+
* do {
|
|
454
|
+
* console.log('Subject Common Name:', cert.subject.CN);
|
|
455
|
+
* console.log(' Certificate SHA256 fingerprint:', cert.fingerprint256);
|
|
456
|
+
*
|
|
457
|
+
* hash = crypto.createHash('sha256');
|
|
458
|
+
* console.log(' Public key ping-sha256:', sha256(cert.pubkey));
|
|
459
|
+
*
|
|
460
|
+
* lastprint256 = cert.fingerprint256;
|
|
461
|
+
* cert = cert.issuerCertificate;
|
|
462
|
+
* } while (cert.fingerprint256 !== lastprint256);
|
|
463
|
+
*
|
|
464
|
+
* },
|
|
465
|
+
* };
|
|
466
|
+
*
|
|
467
|
+
* options.agent = new https.Agent(options);
|
|
468
|
+
* const req = https.request(options, (res) => {
|
|
469
|
+
* console.log('All OK. Server matched our pinned cert or public key');
|
|
470
|
+
* console.log('statusCode:', res.statusCode);
|
|
471
|
+
* // Print the HPKP values
|
|
472
|
+
* console.log('headers:', res.headers['public-key-pins']);
|
|
473
|
+
*
|
|
474
|
+
* res.on('data', (d) => {});
|
|
475
|
+
* });
|
|
476
|
+
*
|
|
477
|
+
* req.on('error', (e) => {
|
|
478
|
+
* console.error(e.message);
|
|
479
|
+
* });
|
|
480
|
+
* req.end();
|
|
481
|
+
* ```
|
|
482
|
+
*
|
|
483
|
+
* Outputs for example:
|
|
484
|
+
*
|
|
485
|
+
* ```text
|
|
486
|
+
* Subject Common Name: github.com
|
|
487
|
+
* Certificate SHA256 fingerprint: 25:FE:39:32:D9:63:8C:8A:FC:A1:9A:29:87:D8:3E:4C:1D:98:DB:71:E4:1A:48:03:98:EA:22:6A:BD:8B:93:16
|
|
488
|
+
* Public key ping-sha256: pL1+qb9HTMRZJmuC/bB/ZI9d302BYrrqiVuRyW+DGrU=
|
|
489
|
+
* Subject Common Name: DigiCert SHA2 Extended Validation Server CA
|
|
490
|
+
* Certificate SHA256 fingerprint: 40:3E:06:2A:26:53:05:91:13:28:5B:AF:80:A0:D4:AE:42:2C:84:8C:9F:78:FA:D0:1F:C9:4B:C5:B8:7F:EF:1A
|
|
491
|
+
* Public key ping-sha256: RRM1dGqnDFsCJXBTHky16vi1obOlCgFFn/yOhI/y+ho=
|
|
492
|
+
* Subject Common Name: DigiCert High Assurance EV Root CA
|
|
493
|
+
* Certificate SHA256 fingerprint: 74:31:E5:F4:C3:C1:CE:46:90:77:4F:0B:61:E0:54:40:88:3B:A9:A0:1E:D0:0B:A6:AB:D7:80:6E:D3:B1:18:CF
|
|
494
|
+
* Public key ping-sha256: WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18=
|
|
495
|
+
* All OK. Server matched our pinned cert or public key
|
|
496
|
+
* statusCode: 200
|
|
497
|
+
* headers: max-age=0; pin-sha256="WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18="; pin-sha256="RRM1dGqnDFsCJXBTHky16vi1obOlCgFFn/yOhI/y+ho=";
|
|
498
|
+
* pin-sha256="k2v657xBsOVe1PQRwOsHsw3bsGT2VzIqz5K+59sNQws="; pin-sha256="K87oWBWM9UZfyddvDfoxL+8lpNyoUB2ptGtn0fv6G2Q="; pin-sha256="IQBnNBEiFuhj+8x6X8XLgh01V9Ic5/V3IRQLNFFc7v4=";
|
|
499
|
+
* pin-sha256="iie1VXtL7HzAMF+/PVPR9xzT80kQxdZeJ+zduCB3uj0="; pin-sha256="LvRiGEjRqfzurezaWuj8Wie2gyHMrW5Q06LspMnox7A="; includeSubDomains
|
|
500
|
+
* ```
|
|
501
|
+
* @since v0.3.6
|
|
502
|
+
* @param options Accepts all `options` from `request`, with some differences in default values:
|
|
503
|
+
*/
|
|
504
|
+
function request(
|
|
505
|
+
options: RequestOptions | string | URL,
|
|
506
|
+
callback?: (res: http.IncomingMessage) => void,
|
|
507
|
+
): http.ClientRequest;
|
|
508
|
+
function request(
|
|
509
|
+
url: string | URL,
|
|
510
|
+
options: RequestOptions,
|
|
511
|
+
callback?: (res: http.IncomingMessage) => void,
|
|
512
|
+
): http.ClientRequest;
|
|
513
|
+
/**
|
|
514
|
+
* Like `http.get()` but for HTTPS.
|
|
515
|
+
*
|
|
516
|
+
* `options` can be an object, a string, or a `URL` object. If `options` is a
|
|
517
|
+
* string, it is automatically parsed with `new URL()`. If it is a `URL` object, it will be automatically converted to an ordinary `options` object.
|
|
518
|
+
*
|
|
519
|
+
* ```js
|
|
520
|
+
* const https = require('node:https');
|
|
521
|
+
*
|
|
522
|
+
* https.get('https://encrypted.google.com/', (res) => {
|
|
523
|
+
* console.log('statusCode:', res.statusCode);
|
|
524
|
+
* console.log('headers:', res.headers);
|
|
525
|
+
*
|
|
526
|
+
* res.on('data', (d) => {
|
|
527
|
+
* process.stdout.write(d);
|
|
528
|
+
* });
|
|
529
|
+
*
|
|
530
|
+
* }).on('error', (e) => {
|
|
531
|
+
* console.error(e);
|
|
532
|
+
* });
|
|
533
|
+
* ```
|
|
534
|
+
* @since v0.3.6
|
|
535
|
+
* @param options Accepts the same `options` as {@link request}, with the `method` always set to `GET`.
|
|
536
|
+
*/
|
|
537
|
+
function get(
|
|
538
|
+
options: RequestOptions | string | URL,
|
|
539
|
+
callback?: (res: http.IncomingMessage) => void,
|
|
540
|
+
): http.ClientRequest;
|
|
541
|
+
function get(
|
|
542
|
+
url: string | URL,
|
|
543
|
+
options: RequestOptions,
|
|
544
|
+
callback?: (res: http.IncomingMessage) => void,
|
|
545
|
+
): http.ClientRequest;
|
|
546
|
+
let globalAgent: Agent;
|
|
547
|
+
}
|
|
548
|
+
declare module "node:https" {
|
|
549
|
+
export * from "https";
|
|
550
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* License for programmatically and manually incorporated
|
|
3
|
+
* documentation aka. `JSDoc` from https://github.com/nodejs/node/tree/master/doc
|
|
4
|
+
*
|
|
5
|
+
* Copyright Node.js contributors. All rights reserved.
|
|
6
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
* of this software and associated documentation files (the "Software"), to
|
|
8
|
+
* deal in the Software without restriction, including without limitation the
|
|
9
|
+
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
10
|
+
* sell copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
* furnished to do so, subject to the following conditions:
|
|
12
|
+
*
|
|
13
|
+
* The above copyright notice and this permission notice shall be included in
|
|
14
|
+
* all copies or substantial portions of the Software.
|
|
15
|
+
*
|
|
16
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
21
|
+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
22
|
+
* IN THE SOFTWARE.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
// NOTE: These definitions support NodeJS and TypeScript 4.9+.
|
|
26
|
+
|
|
27
|
+
// Reference required types from the default lib:
|
|
28
|
+
/// <reference lib="es2020" />
|
|
29
|
+
/// <reference lib="esnext.asynciterable" />
|
|
30
|
+
/// <reference lib="esnext.intl" />
|
|
31
|
+
/// <reference lib="esnext.bigint" />
|
|
32
|
+
|
|
33
|
+
// Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
|
|
34
|
+
/// <reference path="assert.d.ts" />
|
|
35
|
+
/// <reference path="assert/strict.d.ts" />
|
|
36
|
+
/// <reference path="globals.d.ts" />
|
|
37
|
+
/// <reference path="async_hooks.d.ts" />
|
|
38
|
+
/// <reference path="buffer.d.ts" />
|
|
39
|
+
/// <reference path="child_process.d.ts" />
|
|
40
|
+
/// <reference path="cluster.d.ts" />
|
|
41
|
+
/// <reference path="console.d.ts" />
|
|
42
|
+
/// <reference path="constants.d.ts" />
|
|
43
|
+
/// <reference path="crypto.d.ts" />
|
|
44
|
+
/// <reference path="dgram.d.ts" />
|
|
45
|
+
/// <reference path="diagnostics_channel.d.ts" />
|
|
46
|
+
/// <reference path="dns.d.ts" />
|
|
47
|
+
/// <reference path="dns/promises.d.ts" />
|
|
48
|
+
/// <reference path="dns/promises.d.ts" />
|
|
49
|
+
/// <reference path="domain.d.ts" />
|
|
50
|
+
/// <reference path="dom-events.d.ts" />
|
|
51
|
+
/// <reference path="events.d.ts" />
|
|
52
|
+
/// <reference path="fs.d.ts" />
|
|
53
|
+
/// <reference path="fs/promises.d.ts" />
|
|
54
|
+
/// <reference path="http.d.ts" />
|
|
55
|
+
/// <reference path="http2.d.ts" />
|
|
56
|
+
/// <reference path="https.d.ts" />
|
|
57
|
+
/// <reference path="inspector.d.ts" />
|
|
58
|
+
/// <reference path="module.d.ts" />
|
|
59
|
+
/// <reference path="net.d.ts" />
|
|
60
|
+
/// <reference path="os.d.ts" />
|
|
61
|
+
/// <reference path="path.d.ts" />
|
|
62
|
+
/// <reference path="perf_hooks.d.ts" />
|
|
63
|
+
/// <reference path="process.d.ts" />
|
|
64
|
+
/// <reference path="punycode.d.ts" />
|
|
65
|
+
/// <reference path="querystring.d.ts" />
|
|
66
|
+
/// <reference path="readline.d.ts" />
|
|
67
|
+
/// <reference path="readline/promises.d.ts" />
|
|
68
|
+
/// <reference path="repl.d.ts" />
|
|
69
|
+
/// <reference path="sea.d.ts" />
|
|
70
|
+
/// <reference path="stream.d.ts" />
|
|
71
|
+
/// <reference path="stream/promises.d.ts" />
|
|
72
|
+
/// <reference path="stream/consumers.d.ts" />
|
|
73
|
+
/// <reference path="stream/web.d.ts" />
|
|
74
|
+
/// <reference path="string_decoder.d.ts" />
|
|
75
|
+
/// <reference path="test.d.ts" />
|
|
76
|
+
/// <reference path="timers.d.ts" />
|
|
77
|
+
/// <reference path="timers/promises.d.ts" />
|
|
78
|
+
/// <reference path="tls.d.ts" />
|
|
79
|
+
/// <reference path="trace_events.d.ts" />
|
|
80
|
+
/// <reference path="tty.d.ts" />
|
|
81
|
+
/// <reference path="url.d.ts" />
|
|
82
|
+
/// <reference path="util.d.ts" />
|
|
83
|
+
/// <reference path="v8.d.ts" />
|
|
84
|
+
/// <reference path="vm.d.ts" />
|
|
85
|
+
/// <reference path="wasi.d.ts" />
|
|
86
|
+
/// <reference path="worker_threads.d.ts" />
|
|
87
|
+
/// <reference path="zlib.d.ts" />
|
|
88
|
+
|
|
89
|
+
/// <reference path="globals.global.d.ts" />
|