@samchon/ts-patch 3.2.2 → 3.4.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/.editorconfig +371 -0
- package/.gitattributes +2 -0
- package/.github/FUNDING.yml +1 -0
- package/.github/workflows/build.yml +49 -0
- package/.github/workflows/publish.yml +47 -0
- package/.idea/codeStyles/Project.xml +28 -0
- package/.idea/codeStyles/codeStyleConfig.xml +5 -0
- package/.idea/compiler.xml +6 -0
- package/.idea/inspectionProfiles/Project_Default.xml +98 -0
- package/.idea/jsonSchemas.xml +28 -0
- package/.idea/misc.xml +9 -0
- package/.idea/modules.xml +8 -0
- package/.idea/ts-patch.iml +22 -0
- package/.idea/vcs.xml +12 -0
- package/.idea/webResources.xml +15 -0
- package/CHANGELOG.md +7 -0
- package/dist/CHANGELOG.md +275 -0
- package/dist/LICENSE.md +13 -0
- package/dist/README.md +348 -0
- package/dist/actions/check.js +53 -0
- package/dist/actions/check.js.map +1 -0
- package/dist/actions/patch.js +88 -0
- package/dist/actions/patch.js.map +1 -0
- package/dist/actions/unpatch.js +87 -0
- package/dist/actions/unpatch.js.map +1 -0
- package/dist/bin/ts-patch.js +43 -0
- package/dist/bin/ts-patch.js.map +1 -0
- package/dist/cli/cli.js +106 -0
- package/dist/cli/cli.js.map +1 -0
- package/dist/cli/commands.js +49 -0
- package/dist/cli/commands.js.map +1 -0
- package/dist/config.js +50 -0
- package/dist/config.js.map +1 -0
- package/dist/module/module-file.d.ts +10 -0
- package/dist/module/module-file.js +102 -0
- package/dist/module/module-file.js.map +1 -0
- package/dist/module/ts-module.d.ts +40 -0
- package/dist/module/ts-module.js +131 -0
- package/dist/module/ts-module.js.map +1 -0
- package/dist/node_modules/.bin/resolve +15 -0
- package/dist/node_modules/.bin/resolve.cmd +7 -0
- package/dist/node_modules/.bin/semver +15 -0
- package/dist/node_modules/.bin/semver.cmd +7 -0
- package/dist/package.json +106 -0
- package/dist/patch/get-patched-source.js +69 -0
- package/dist/patch/get-patched-source.js.map +1 -0
- package/dist/patch/transformers/fix-ts-early-return.js +61 -0
- package/dist/patch/transformers/fix-ts-early-return.js.map +1 -0
- package/dist/resources/module-patch.js +623 -0
- package/dist/system/cache.js +79 -0
- package/dist/system/cache.js.map +1 -0
- package/dist/utils/file-utils.js +98 -0
- package/dist/utils/file-utils.js.map +1 -0
- package/jest.config.ts +26 -0
- package/package.json +60 -11
- package/projects/core/plugin.ts +42 -0
- package/projects/core/resolver-hook.js +55 -0
- package/projects/core/shared/plugin-types.ts +159 -0
- package/projects/core/src/actions/check.ts +79 -0
- package/projects/core/src/actions/index.ts +5 -0
- package/projects/core/src/actions/install.ts +23 -0
- package/projects/core/src/actions/patch.ts +110 -0
- package/projects/core/src/actions/uninstall.ts +24 -0
- package/projects/core/src/actions/unpatch.ts +109 -0
- package/projects/core/src/bin/ts-patch.ts +7 -0
- package/projects/core/src/bin/tspc.ts +12 -0
- package/projects/core/src/cli/cli.ts +94 -0
- package/projects/core/src/cli/commands.ts +55 -0
- package/projects/core/src/cli/help-menu.ts +48 -0
- package/projects/core/src/cli/options.ts +83 -0
- package/projects/core/src/compiler/package.json +4 -0
- package/projects/core/src/compiler/tsc.js +19 -0
- package/projects/core/src/compiler/tsserver.js +19 -0
- package/projects/core/src/compiler/tsserverlibrary.js +19 -0
- package/projects/core/src/compiler/typescript.js +19 -0
- package/projects/core/src/config.ts +65 -0
- package/projects/core/src/index.ts +4 -0
- package/projects/core/src/module/get-live-module.ts +25 -0
- package/projects/core/src/module/index.ts +4 -0
- package/projects/core/src/module/module-file.ts +127 -0
- package/projects/core/src/module/module-source.ts +59 -0
- package/projects/core/src/module/source-section.ts +110 -0
- package/projects/core/src/module/ts-module.ts +187 -0
- package/projects/core/src/options.ts +55 -0
- package/projects/core/src/patch/get-patched-source.ts +85 -0
- package/projects/core/src/patch/patch-detail.ts +106 -0
- package/projects/core/src/patch/patch-module.ts +213 -0
- package/projects/core/src/patch/transformers/add-original-create-program.ts +129 -0
- package/projects/core/src/patch/transformers/fix-ts-early-return.ts +46 -0
- package/projects/core/src/patch/transformers/hook-tsc-exec.ts +52 -0
- package/projects/core/src/patch/transformers/index.ts +6 -0
- package/projects/core/src/patch/transformers/merge-statements.ts +61 -0
- package/projects/core/src/patch/transformers/patch-create-program.ts +68 -0
- package/projects/core/src/patch/transformers/patch-emitter.ts +75 -0
- package/projects/core/src/slice/module-slice.ts +59 -0
- package/projects/core/src/slice/ts54.ts +79 -0
- package/projects/core/src/slice/ts55.ts +80 -0
- package/projects/core/src/slice/ts552.ts +80 -0
- package/projects/core/src/system/cache.ts +48 -0
- package/projects/core/src/system/errors.ts +39 -0
- package/projects/core/src/system/index.ts +4 -0
- package/projects/core/src/system/logger.ts +53 -0
- package/projects/core/src/system/types.ts +11 -0
- package/projects/core/src/ts-package.ts +99 -0
- package/projects/core/src/utils/file-utils.ts +104 -0
- package/projects/core/src/utils/find-cache-dir.ts +122 -0
- package/projects/core/src/utils/general.ts +24 -0
- package/projects/core/src/utils/index.ts +3 -0
- package/projects/core/tsconfig.json +20 -0
- package/projects/patch/package.json +8 -0
- package/projects/patch/plugin.ts +128 -0
- package/projects/patch/src/plugin/esm-intercept.ts +141 -0
- package/projects/patch/src/plugin/plugin-creator.ts +254 -0
- package/projects/patch/src/plugin/plugin.ts +193 -0
- package/projects/patch/src/plugin/register-plugin.ts +141 -0
- package/projects/patch/src/shared.ts +59 -0
- package/projects/patch/src/ts/create-program.ts +156 -0
- package/projects/patch/src/ts/shim.ts +43 -0
- package/projects/patch/src/types/plugin-types.ts +51 -0
- package/projects/patch/src/types/typescript.ts +11 -0
- package/projects/patch/tsconfig.json +34 -0
- package/scripts/postbuild.js +66 -0
- package/test/.yarnrc +1 -0
- package/test/assets/projects/main/package.json +5 -0
- package/test/assets/projects/main/src/index.ts +0 -0
- package/test/assets/projects/main/tsconfig.json +16 -0
- package/test/assets/projects/package-config/plugin/package.json +8 -0
- package/test/assets/projects/package-config/plugin/plugin.js +9 -0
- package/test/assets/projects/package-config/plugin/transformers/transformer1.js +28 -0
- package/test/assets/projects/package-config/plugin/transformers/transformer2.js +22 -0
- package/test/assets/projects/package-config/run-transform.js +72 -0
- package/test/assets/projects/package-config/src/index.ts +6 -0
- package/test/assets/projects/package-config/tsconfig.json +13 -0
- package/test/assets/projects/path-mapping/base.ts +1 -0
- package/test/assets/projects/path-mapping/package.json +8 -0
- package/test/assets/projects/path-mapping/src/a/a.ts +1 -0
- package/test/assets/projects/path-mapping/src/b.ts +1 -0
- package/test/assets/projects/path-mapping/src/index.ts +29 -0
- package/test/assets/projects/path-mapping/tsconfig.json +18 -0
- package/test/assets/projects/path-mapping/tsconfig.plugin.json +15 -0
- package/test/assets/projects/transform/package.json +9 -0
- package/test/assets/projects/transform/run-transform.js +56 -0
- package/test/assets/projects/transform/src/index.ts +4 -0
- package/test/assets/projects/transform/transformers/cjs/js-plugin.cjs +19 -0
- package/test/assets/projects/transform/transformers/cjs/package.json +3 -0
- package/test/assets/projects/transform/transformers/cjs/plugin.cts +17 -0
- package/test/assets/projects/transform/transformers/cjs/tsconfig.json +7 -0
- package/test/assets/projects/transform/transformers/esm/js-plugin.mjs +17 -0
- package/test/assets/projects/transform/transformers/esm/package.json +3 -0
- package/test/assets/projects/transform/transformers/esm/plugin.mts +19 -0
- package/test/assets/projects/transform/transformers/esm/plugin.ts +19 -0
- package/test/assets/projects/transform/transformers/esm/tsconfig.json +7 -0
- package/test/assets/projects/transform/tsconfig.cjs.json +12 -0
- package/test/assets/projects/transform/tsconfig.cts.json +12 -0
- package/test/assets/projects/transform/tsconfig.json +9 -0
- package/test/assets/projects/transform/tsconfig.mjs.json +12 -0
- package/test/assets/projects/transform/tsconfig.mts.json +11 -0
- package/test/assets/projects/transform/tsconfig.ts.json +11 -0
- package/test/assets/projects/webpack/esm-plugin.mjs +5 -0
- package/test/assets/projects/webpack/esm-plugin.mts +5 -0
- package/test/assets/projects/webpack/hide-module.js +24 -0
- package/test/assets/projects/webpack/package.json +14 -0
- package/test/assets/projects/webpack/plugin.ts +7 -0
- package/test/assets/projects/webpack/src/index.ts +0 -0
- package/test/assets/projects/webpack/tsconfig.esm.json +8 -0
- package/test/assets/projects/webpack/tsconfig.esmts.json +8 -0
- package/test/assets/projects/webpack/tsconfig.json +14 -0
- package/test/assets/projects/webpack/webpack.config.js +24 -0
- package/test/node_modules/.bin/acorn +15 -0
- package/test/node_modules/.bin/acorn.cmd +7 -0
- package/test/node_modules/.bin/json5 +15 -0
- package/test/node_modules/.bin/json5.cmd +7 -0
- package/test/node_modules/.bin/node-which +15 -0
- package/test/node_modules/.bin/node-which.cmd +7 -0
- package/test/node_modules/.bin/resolve +15 -0
- package/test/node_modules/.bin/resolve.cmd +7 -0
- package/test/node_modules/.bin/semver +15 -0
- package/test/node_modules/.bin/semver.cmd +7 -0
- package/test/node_modules/.bin/ts-node +15 -0
- package/test/node_modules/.bin/ts-node-cwd +15 -0
- package/test/node_modules/.bin/ts-node-cwd.cmd +7 -0
- package/test/node_modules/.bin/ts-node-esm +15 -0
- package/test/node_modules/.bin/ts-node-esm.cmd +7 -0
- package/test/node_modules/.bin/ts-node-script +15 -0
- package/test/node_modules/.bin/ts-node-script.cmd +7 -0
- package/test/node_modules/.bin/ts-node-transpile-only +15 -0
- package/test/node_modules/.bin/ts-node-transpile-only.cmd +7 -0
- package/test/node_modules/.bin/ts-node.cmd +7 -0
- package/test/node_modules/.bin/ts-script +15 -0
- package/test/node_modules/.bin/ts-script.cmd +7 -0
- package/test/node_modules/.bin/tsc +15 -0
- package/test/node_modules/.bin/tsc.cmd +7 -0
- package/test/node_modules/.bin/tsserver +15 -0
- package/test/node_modules/.bin/tsserver.cmd +7 -0
- package/test/node_modules/.yarn-integrity +73 -0
- package/test/node_modules/@cspotcode/source-map-support/LICENSE.md +21 -0
- package/test/node_modules/@cspotcode/source-map-support/README.md +289 -0
- package/test/node_modules/@cspotcode/source-map-support/browser-source-map-support.js +114 -0
- package/test/node_modules/@cspotcode/source-map-support/package.json +50 -0
- package/test/node_modules/@cspotcode/source-map-support/register-hook-require.d.ts +7 -0
- package/test/node_modules/@cspotcode/source-map-support/register-hook-require.js +3 -0
- package/test/node_modules/@cspotcode/source-map-support/register.d.ts +7 -0
- package/test/node_modules/@cspotcode/source-map-support/register.js +1 -0
- package/test/node_modules/@cspotcode/source-map-support/source-map-support.d.ts +76 -0
- package/test/node_modules/@cspotcode/source-map-support/source-map-support.js +938 -0
- package/test/node_modules/@jridgewell/resolve-uri/LICENSE +19 -0
- package/test/node_modules/@jridgewell/resolve-uri/README.md +40 -0
- package/test/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs +232 -0
- package/test/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs.map +1 -0
- package/test/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js +240 -0
- package/test/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js.map +1 -0
- package/test/node_modules/@jridgewell/resolve-uri/dist/types/resolve-uri.d.ts +4 -0
- package/test/node_modules/@jridgewell/resolve-uri/package.json +69 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/LICENSE +19 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/README.md +264 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +423 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +6 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js +464 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js.map +6 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/package.json +63 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/src/scopes.ts +345 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/src/sourcemap-codec.ts +111 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/src/strings.ts +65 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/src/vlq.ts +55 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.cts +50 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.cts.map +1 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts +50 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts.map +1 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.cts +9 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.cts.map +1 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts +9 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts.map +1 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/types/strings.d.cts +16 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/types/strings.d.cts.map +1 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts +16 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts.map +1 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.cts +7 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.cts.map +1 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts +7 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts.map +1 -0
- package/test/node_modules/@jridgewell/trace-mapping/LICENSE +19 -0
- package/test/node_modules/@jridgewell/trace-mapping/README.md +193 -0
- package/test/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs +514 -0
- package/test/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs.map +1 -0
- package/test/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js +528 -0
- package/test/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js.map +1 -0
- package/test/node_modules/@jridgewell/trace-mapping/dist/types/any-map.d.ts +8 -0
- package/test/node_modules/@jridgewell/trace-mapping/dist/types/binary-search.d.ts +32 -0
- package/test/node_modules/@jridgewell/trace-mapping/dist/types/by-source.d.ts +7 -0
- package/test/node_modules/@jridgewell/trace-mapping/dist/types/resolve.d.ts +1 -0
- package/test/node_modules/@jridgewell/trace-mapping/dist/types/sort.d.ts +2 -0
- package/test/node_modules/@jridgewell/trace-mapping/dist/types/sourcemap-segment.d.ts +16 -0
- package/test/node_modules/@jridgewell/trace-mapping/dist/types/strip-filename.d.ts +4 -0
- package/test/node_modules/@jridgewell/trace-mapping/dist/types/trace-mapping.d.ts +70 -0
- package/test/node_modules/@jridgewell/trace-mapping/dist/types/types.d.ts +85 -0
- package/test/node_modules/@jridgewell/trace-mapping/package.json +70 -0
- package/test/node_modules/@tsconfig/node10/LICENSE +21 -0
- package/test/node_modules/@tsconfig/node10/README.md +38 -0
- package/test/node_modules/@tsconfig/node10/package.json +15 -0
- package/test/node_modules/@tsconfig/node10/tsconfig.json +14 -0
- package/test/node_modules/@tsconfig/node12/LICENSE +21 -0
- package/test/node_modules/@tsconfig/node12/README.md +40 -0
- package/test/node_modules/@tsconfig/node12/package.json +1 -0
- package/test/node_modules/@tsconfig/node12/tsconfig.json +16 -0
- package/test/node_modules/@tsconfig/node14/LICENSE +21 -0
- package/test/node_modules/@tsconfig/node14/README.md +40 -0
- package/test/node_modules/@tsconfig/node14/package.json +1 -0
- package/test/node_modules/@tsconfig/node14/tsconfig.json +16 -0
- package/test/node_modules/@tsconfig/node16/LICENSE +21 -0
- package/test/node_modules/@tsconfig/node16/README.md +40 -0
- package/test/node_modules/@tsconfig/node16/package.json +15 -0
- package/test/node_modules/@tsconfig/node16/tsconfig.json +16 -0
- package/test/node_modules/@types/fs-extra/LICENSE +21 -0
- package/test/node_modules/@types/fs-extra/README.md +16 -0
- package/test/node_modules/@types/fs-extra/index.d.ts +563 -0
- package/test/node_modules/@types/fs-extra/package.json +67 -0
- package/test/node_modules/@types/node/LICENSE +21 -0
- package/test/node_modules/@types/node/README.md +15 -0
- package/test/node_modules/@types/node/assert/strict.d.ts +105 -0
- package/test/node_modules/@types/node/assert.d.ts +955 -0
- package/test/node_modules/@types/node/async_hooks.d.ts +623 -0
- package/test/node_modules/@types/node/buffer.buffer.d.ts +466 -0
- package/test/node_modules/@types/node/buffer.d.ts +1810 -0
- package/test/node_modules/@types/node/child_process.d.ts +1433 -0
- package/test/node_modules/@types/node/cluster.d.ts +486 -0
- package/test/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
- package/test/node_modules/@types/node/console.d.ts +151 -0
- package/test/node_modules/@types/node/constants.d.ts +20 -0
- package/test/node_modules/@types/node/crypto.d.ts +4065 -0
- package/test/node_modules/@types/node/dgram.d.ts +564 -0
- package/test/node_modules/@types/node/diagnostics_channel.d.ts +576 -0
- package/test/node_modules/@types/node/dns/promises.d.ts +503 -0
- package/test/node_modules/@types/node/dns.d.ts +922 -0
- package/test/node_modules/@types/node/domain.d.ts +166 -0
- package/test/node_modules/@types/node/events.d.ts +1047 -0
- package/test/node_modules/@types/node/fs/promises.d.ts +1329 -0
- package/test/node_modules/@types/node/fs.d.ts +4678 -0
- package/test/node_modules/@types/node/globals.d.ts +150 -0
- package/test/node_modules/@types/node/globals.typedarray.d.ts +101 -0
- package/test/node_modules/@types/node/http.d.ts +2188 -0
- package/test/node_modules/@types/node/http2.d.ts +2480 -0
- package/test/node_modules/@types/node/https.d.ts +405 -0
- package/test/node_modules/@types/node/index.d.ts +115 -0
- package/test/node_modules/@types/node/inspector/promises.d.ts +41 -0
- package/test/node_modules/@types/node/inspector.d.ts +269 -0
- package/test/node_modules/@types/node/inspector.generated.d.ts +4401 -0
- package/test/node_modules/@types/node/module.d.ts +757 -0
- package/test/node_modules/@types/node/net.d.ts +933 -0
- package/test/node_modules/@types/node/os.d.ts +507 -0
- package/test/node_modules/@types/node/package.json +155 -0
- package/test/node_modules/@types/node/path/posix.d.ts +8 -0
- package/test/node_modules/@types/node/path/win32.d.ts +8 -0
- package/test/node_modules/@types/node/path.d.ts +187 -0
- package/test/node_modules/@types/node/perf_hooks.d.ts +643 -0
- package/test/node_modules/@types/node/process.d.ts +2175 -0
- package/test/node_modules/@types/node/punycode.d.ts +117 -0
- package/test/node_modules/@types/node/querystring.d.ts +152 -0
- package/test/node_modules/@types/node/quic.d.ts +910 -0
- package/test/node_modules/@types/node/readline/promises.d.ts +161 -0
- package/test/node_modules/@types/node/readline.d.ts +542 -0
- package/test/node_modules/@types/node/repl.d.ts +415 -0
- package/test/node_modules/@types/node/sea.d.ts +162 -0
- package/test/node_modules/@types/node/sqlite.d.ts +1065 -0
- package/test/node_modules/@types/node/stream/consumers.d.ts +38 -0
- package/test/node_modules/@types/node/stream/promises.d.ts +211 -0
- package/test/node_modules/@types/node/stream/web.d.ts +296 -0
- package/test/node_modules/@types/node/stream.d.ts +1770 -0
- package/test/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/test/node_modules/@types/node/test/reporters.d.ts +96 -0
- package/test/node_modules/@types/node/test.d.ts +2275 -0
- package/test/node_modules/@types/node/timers/promises.d.ts +108 -0
- package/test/node_modules/@types/node/timers.d.ts +159 -0
- package/test/node_modules/@types/node/tls.d.ts +1203 -0
- package/test/node_modules/@types/node/trace_events.d.ts +197 -0
- package/test/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +462 -0
- package/test/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
- package/test/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +36 -0
- package/test/node_modules/@types/node/ts5.6/index.d.ts +117 -0
- package/test/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
- package/test/node_modules/@types/node/ts5.7/index.d.ts +117 -0
- package/test/node_modules/@types/node/tty.d.ts +250 -0
- package/test/node_modules/@types/node/url.d.ts +541 -0
- package/test/node_modules/@types/node/util/types.d.ts +558 -0
- package/test/node_modules/@types/node/util.d.ts +1687 -0
- package/test/node_modules/@types/node/v8.d.ts +988 -0
- package/test/node_modules/@types/node/vm.d.ts +1208 -0
- package/test/node_modules/@types/node/wasi.d.ts +202 -0
- package/test/node_modules/@types/node/web-globals/abortcontroller.d.ts +59 -0
- package/test/node_modules/@types/node/web-globals/blob.d.ts +23 -0
- package/test/node_modules/@types/node/web-globals/console.d.ts +9 -0
- package/test/node_modules/@types/node/web-globals/crypto.d.ts +39 -0
- package/test/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
- package/test/node_modules/@types/node/web-globals/encoding.d.ts +11 -0
- package/test/node_modules/@types/node/web-globals/events.d.ts +106 -0
- package/test/node_modules/@types/node/web-globals/fetch.d.ts +69 -0
- package/test/node_modules/@types/node/web-globals/importmeta.d.ts +13 -0
- package/test/node_modules/@types/node/web-globals/messaging.d.ts +23 -0
- package/test/node_modules/@types/node/web-globals/navigator.d.ts +25 -0
- package/test/node_modules/@types/node/web-globals/performance.d.ts +45 -0
- package/test/node_modules/@types/node/web-globals/storage.d.ts +24 -0
- package/test/node_modules/@types/node/web-globals/streams.d.ts +115 -0
- package/test/node_modules/@types/node/web-globals/timers.d.ts +44 -0
- package/test/node_modules/@types/node/web-globals/url.d.ts +24 -0
- package/test/node_modules/@types/node/worker_threads.d.ts +717 -0
- package/test/node_modules/@types/node/zlib.d.ts +682 -0
- package/test/node_modules/acorn/CHANGELOG.md +972 -0
- package/test/node_modules/acorn/LICENSE +21 -0
- package/test/node_modules/acorn/README.md +301 -0
- package/test/node_modules/acorn/bin/acorn +4 -0
- package/test/node_modules/acorn/dist/acorn.d.mts +883 -0
- package/test/node_modules/acorn/dist/acorn.d.ts +883 -0
- package/test/node_modules/acorn/dist/acorn.js +6295 -0
- package/test/node_modules/acorn/dist/acorn.mjs +6266 -0
- package/test/node_modules/acorn/dist/bin.js +90 -0
- package/test/node_modules/acorn/package.json +50 -0
- package/test/node_modules/acorn-walk/CHANGELOG.md +209 -0
- package/test/node_modules/acorn-walk/LICENSE +21 -0
- package/test/node_modules/acorn-walk/README.md +124 -0
- package/test/node_modules/acorn-walk/dist/walk.d.mts +152 -0
- package/test/node_modules/acorn-walk/dist/walk.d.ts +152 -0
- package/test/node_modules/acorn-walk/dist/walk.js +485 -0
- package/test/node_modules/acorn-walk/dist/walk.mjs +467 -0
- package/test/node_modules/acorn-walk/node_modules/.bin/acorn +15 -0
- package/test/node_modules/acorn-walk/node_modules/.bin/acorn.cmd +7 -0
- package/test/node_modules/acorn-walk/package.json +50 -0
- package/test/node_modules/ansi-regex/index.d.ts +37 -0
- package/test/node_modules/ansi-regex/index.js +10 -0
- package/test/node_modules/ansi-regex/license +9 -0
- package/test/node_modules/ansi-regex/package.json +55 -0
- package/test/node_modules/ansi-regex/readme.md +78 -0
- package/test/node_modules/ansi-styles/index.d.ts +345 -0
- package/test/node_modules/ansi-styles/index.js +163 -0
- package/test/node_modules/ansi-styles/license +9 -0
- package/test/node_modules/ansi-styles/package.json +56 -0
- package/test/node_modules/ansi-styles/readme.md +152 -0
- package/test/node_modules/arg/LICENSE.md +21 -0
- package/test/node_modules/arg/README.md +280 -0
- package/test/node_modules/arg/index.d.ts +31 -0
- package/test/node_modules/arg/index.js +144 -0
- package/test/node_modules/arg/package.json +30 -0
- package/test/node_modules/chalk/index.d.ts +415 -0
- package/test/node_modules/chalk/license +9 -0
- package/test/node_modules/chalk/package.json +68 -0
- package/test/node_modules/chalk/readme.md +341 -0
- package/test/node_modules/chalk/source/index.js +229 -0
- package/test/node_modules/chalk/source/templates.js +134 -0
- package/test/node_modules/chalk/source/util.js +39 -0
- package/test/node_modules/color-convert/CHANGELOG.md +54 -0
- package/test/node_modules/color-convert/LICENSE +21 -0
- package/test/node_modules/color-convert/README.md +68 -0
- package/test/node_modules/color-convert/conversions.js +839 -0
- package/test/node_modules/color-convert/index.js +81 -0
- package/test/node_modules/color-convert/package.json +48 -0
- package/test/node_modules/color-convert/route.js +97 -0
- package/test/node_modules/color-name/LICENSE +8 -0
- package/test/node_modules/color-name/README.md +11 -0
- package/test/node_modules/color-name/index.js +152 -0
- package/test/node_modules/color-name/package.json +28 -0
- package/test/node_modules/create-require/CHANGELOG.md +33 -0
- package/test/node_modules/create-require/LICENSE +25 -0
- package/test/node_modules/create-require/README.md +46 -0
- package/test/node_modules/create-require/create-require.d.ts +3 -0
- package/test/node_modules/create-require/create-require.js +49 -0
- package/test/node_modules/create-require/package.json +39 -0
- package/test/node_modules/diff/CONTRIBUTING.md +39 -0
- package/test/node_modules/diff/LICENSE +31 -0
- package/test/node_modules/diff/README.md +207 -0
- package/test/node_modules/diff/dist/diff.js +1548 -0
- package/test/node_modules/diff/dist/diff.min.js +1 -0
- package/test/node_modules/diff/lib/convert/dmp.js +32 -0
- package/test/node_modules/diff/lib/convert/xml.js +42 -0
- package/test/node_modules/diff/lib/diff/array.js +45 -0
- package/test/node_modules/diff/lib/diff/base.js +304 -0
- package/test/node_modules/diff/lib/diff/character.js +37 -0
- package/test/node_modules/diff/lib/diff/css.js +41 -0
- package/test/node_modules/diff/lib/diff/json.js +163 -0
- package/test/node_modules/diff/lib/diff/line.js +89 -0
- package/test/node_modules/diff/lib/diff/sentence.js +41 -0
- package/test/node_modules/diff/lib/diff/word.js +107 -0
- package/test/node_modules/diff/lib/index.es6.js +1519 -0
- package/test/node_modules/diff/lib/index.js +216 -0
- package/test/node_modules/diff/lib/patch/apply.js +243 -0
- package/test/node_modules/diff/lib/patch/create.js +247 -0
- package/test/node_modules/diff/lib/patch/merge.js +609 -0
- package/test/node_modules/diff/lib/patch/parse.js +156 -0
- package/test/node_modules/diff/lib/util/array.js +32 -0
- package/test/node_modules/diff/lib/util/distance-iterator.js +57 -0
- package/test/node_modules/diff/lib/util/params.js +24 -0
- package/test/node_modules/diff/package.json +74 -0
- package/test/node_modules/diff/release-notes.md +261 -0
- package/test/node_modules/diff/runtime.js +3 -0
- package/test/node_modules/fs-extra/LICENSE +15 -0
- package/test/node_modules/fs-extra/README.md +262 -0
- package/test/node_modules/fs-extra/lib/copy/copy-sync.js +169 -0
- package/test/node_modules/fs-extra/lib/copy/copy.js +235 -0
- package/test/node_modules/fs-extra/lib/copy/index.js +7 -0
- package/test/node_modules/fs-extra/lib/empty/index.js +39 -0
- package/test/node_modules/fs-extra/lib/ensure/file.js +69 -0
- package/test/node_modules/fs-extra/lib/ensure/index.js +23 -0
- package/test/node_modules/fs-extra/lib/ensure/link.js +64 -0
- package/test/node_modules/fs-extra/lib/ensure/symlink-paths.js +99 -0
- package/test/node_modules/fs-extra/lib/ensure/symlink-type.js +31 -0
- package/test/node_modules/fs-extra/lib/ensure/symlink.js +82 -0
- package/test/node_modules/fs-extra/lib/fs/index.js +128 -0
- package/test/node_modules/fs-extra/lib/index.js +16 -0
- package/test/node_modules/fs-extra/lib/json/index.js +16 -0
- package/test/node_modules/fs-extra/lib/json/jsonfile.js +11 -0
- package/test/node_modules/fs-extra/lib/json/output-json-sync.js +12 -0
- package/test/node_modules/fs-extra/lib/json/output-json.js +12 -0
- package/test/node_modules/fs-extra/lib/mkdirs/index.js +14 -0
- package/test/node_modules/fs-extra/lib/mkdirs/make-dir.js +27 -0
- package/test/node_modules/fs-extra/lib/mkdirs/utils.js +21 -0
- package/test/node_modules/fs-extra/lib/move/index.js +7 -0
- package/test/node_modules/fs-extra/lib/move/move-sync.js +54 -0
- package/test/node_modules/fs-extra/lib/move/move.js +75 -0
- package/test/node_modules/fs-extra/lib/output-file/index.js +40 -0
- package/test/node_modules/fs-extra/lib/path-exists/index.js +12 -0
- package/test/node_modules/fs-extra/lib/remove/index.js +22 -0
- package/test/node_modules/fs-extra/lib/remove/rimraf.js +302 -0
- package/test/node_modules/fs-extra/lib/util/stat.js +154 -0
- package/test/node_modules/fs-extra/lib/util/utimes.js +26 -0
- package/test/node_modules/fs-extra/package.json +67 -0
- package/test/node_modules/function-bind/.eslintrc +21 -0
- package/test/node_modules/function-bind/.github/FUNDING.yml +12 -0
- package/test/node_modules/function-bind/.github/SECURITY.md +3 -0
- package/test/node_modules/function-bind/.nycrc +13 -0
- package/test/node_modules/function-bind/CHANGELOG.md +136 -0
- package/test/node_modules/function-bind/LICENSE +20 -0
- package/test/node_modules/function-bind/README.md +46 -0
- package/test/node_modules/function-bind/implementation.js +84 -0
- package/test/node_modules/function-bind/index.js +5 -0
- package/test/node_modules/function-bind/package.json +87 -0
- package/test/node_modules/function-bind/test/.eslintrc +9 -0
- package/test/node_modules/function-bind/test/index.js +252 -0
- package/test/node_modules/global-prefix/LICENSE +21 -0
- package/test/node_modules/global-prefix/README.md +92 -0
- package/test/node_modules/global-prefix/index.js +85 -0
- package/test/node_modules/global-prefix/node_modules/.bin/node-which +15 -0
- package/test/node_modules/global-prefix/node_modules/.bin/node-which.cmd +7 -0
- package/test/node_modules/global-prefix/package.json +49 -0
- package/test/node_modules/graceful-fs/LICENSE +15 -0
- package/test/node_modules/graceful-fs/README.md +143 -0
- package/test/node_modules/graceful-fs/clone.js +23 -0
- package/test/node_modules/graceful-fs/graceful-fs.js +448 -0
- package/test/node_modules/graceful-fs/legacy-streams.js +118 -0
- package/test/node_modules/graceful-fs/package.json +53 -0
- package/test/node_modules/graceful-fs/polyfills.js +355 -0
- package/test/node_modules/has-flag/index.d.ts +39 -0
- package/test/node_modules/has-flag/index.js +8 -0
- package/test/node_modules/has-flag/license +9 -0
- package/test/node_modules/has-flag/package.json +46 -0
- package/test/node_modules/has-flag/readme.md +89 -0
- package/test/node_modules/hasown/.eslintrc +5 -0
- package/test/node_modules/hasown/.github/FUNDING.yml +12 -0
- package/test/node_modules/hasown/.nycrc +13 -0
- package/test/node_modules/hasown/CHANGELOG.md +40 -0
- package/test/node_modules/hasown/LICENSE +21 -0
- package/test/node_modules/hasown/README.md +40 -0
- package/test/node_modules/hasown/index.d.ts +3 -0
- package/test/node_modules/hasown/index.js +8 -0
- package/test/node_modules/hasown/package.json +92 -0
- package/test/node_modules/hasown/tsconfig.json +6 -0
- package/test/node_modules/ini/LICENSE +15 -0
- package/test/node_modules/ini/README.md +180 -0
- package/test/node_modules/ini/lib/ini.js +280 -0
- package/test/node_modules/ini/package.json +45 -0
- package/test/node_modules/is-core-module/.eslintrc +18 -0
- package/test/node_modules/is-core-module/.nycrc +9 -0
- package/test/node_modules/is-core-module/CHANGELOG.md +218 -0
- package/test/node_modules/is-core-module/LICENSE +20 -0
- package/test/node_modules/is-core-module/README.md +40 -0
- package/test/node_modules/is-core-module/core.json +162 -0
- package/test/node_modules/is-core-module/index.js +69 -0
- package/test/node_modules/is-core-module/package.json +76 -0
- package/test/node_modules/is-core-module/test/index.js +157 -0
- package/test/node_modules/isexe/LICENSE.md +55 -0
- package/test/node_modules/isexe/README.md +80 -0
- package/test/node_modules/isexe/dist/commonjs/index.d.ts +14 -0
- package/test/node_modules/isexe/dist/commonjs/index.d.ts.map +1 -0
- package/test/node_modules/isexe/dist/commonjs/index.js +56 -0
- package/test/node_modules/isexe/dist/commonjs/index.js.map +1 -0
- package/test/node_modules/isexe/dist/commonjs/index.min.js +2 -0
- package/test/node_modules/isexe/dist/commonjs/index.min.js.map +7 -0
- package/test/node_modules/isexe/dist/commonjs/options.d.ts +32 -0
- package/test/node_modules/isexe/dist/commonjs/options.d.ts.map +1 -0
- package/test/node_modules/isexe/dist/commonjs/options.js +3 -0
- package/test/node_modules/isexe/dist/commonjs/options.js.map +1 -0
- package/test/node_modules/isexe/dist/commonjs/package.json +3 -0
- package/test/node_modules/isexe/dist/commonjs/posix.d.ts +18 -0
- package/test/node_modules/isexe/dist/commonjs/posix.d.ts.map +1 -0
- package/test/node_modules/isexe/dist/commonjs/posix.js +67 -0
- package/test/node_modules/isexe/dist/commonjs/posix.js.map +1 -0
- package/test/node_modules/isexe/dist/commonjs/win32.d.ts +18 -0
- package/test/node_modules/isexe/dist/commonjs/win32.d.ts.map +1 -0
- package/test/node_modules/isexe/dist/commonjs/win32.js +63 -0
- package/test/node_modules/isexe/dist/commonjs/win32.js.map +1 -0
- package/test/node_modules/isexe/dist/esm/index.d.ts +14 -0
- package/test/node_modules/isexe/dist/esm/index.d.ts.map +1 -0
- package/test/node_modules/isexe/dist/esm/index.js +16 -0
- package/test/node_modules/isexe/dist/esm/index.js.map +1 -0
- package/test/node_modules/isexe/dist/esm/index.min.js +2 -0
- package/test/node_modules/isexe/dist/esm/index.min.js.map +7 -0
- package/test/node_modules/isexe/dist/esm/options.d.ts +32 -0
- package/test/node_modules/isexe/dist/esm/options.d.ts.map +1 -0
- package/test/node_modules/isexe/dist/esm/options.js +2 -0
- package/test/node_modules/isexe/dist/esm/options.js.map +1 -0
- package/test/node_modules/isexe/dist/esm/package.json +3 -0
- package/test/node_modules/isexe/dist/esm/posix.d.ts +18 -0
- package/test/node_modules/isexe/dist/esm/posix.d.ts.map +1 -0
- package/test/node_modules/isexe/dist/esm/posix.js +62 -0
- package/test/node_modules/isexe/dist/esm/posix.js.map +1 -0
- package/test/node_modules/isexe/dist/esm/win32.d.ts +18 -0
- package/test/node_modules/isexe/dist/esm/win32.d.ts.map +1 -0
- package/test/node_modules/isexe/dist/esm/win32.js +58 -0
- package/test/node_modules/isexe/dist/esm/win32.js.map +1 -0
- package/test/node_modules/isexe/package.json +78 -0
- package/test/node_modules/json5/LICENSE.md +23 -0
- package/test/node_modules/json5/README.md +282 -0
- package/test/node_modules/json5/dist/index.js +1737 -0
- package/test/node_modules/json5/dist/index.min.js +1 -0
- package/test/node_modules/json5/dist/index.min.mjs +1 -0
- package/test/node_modules/json5/dist/index.mjs +1426 -0
- package/test/node_modules/json5/lib/cli.js +152 -0
- package/test/node_modules/json5/lib/index.d.ts +4 -0
- package/test/node_modules/json5/lib/index.js +9 -0
- package/test/node_modules/json5/lib/parse.d.ts +15 -0
- package/test/node_modules/json5/lib/parse.js +1114 -0
- package/test/node_modules/json5/lib/register.js +13 -0
- package/test/node_modules/json5/lib/require.js +4 -0
- package/test/node_modules/json5/lib/stringify.d.ts +89 -0
- package/test/node_modules/json5/lib/stringify.js +261 -0
- package/test/node_modules/json5/lib/unicode.d.ts +3 -0
- package/test/node_modules/json5/lib/unicode.js +4 -0
- package/test/node_modules/json5/lib/util.d.ts +5 -0
- package/test/node_modules/json5/lib/util.js +35 -0
- package/test/node_modules/json5/package.json +72 -0
- package/test/node_modules/jsonfile/LICENSE +15 -0
- package/test/node_modules/jsonfile/README.md +230 -0
- package/test/node_modules/jsonfile/index.js +88 -0
- package/test/node_modules/jsonfile/package.json +40 -0
- package/test/node_modules/jsonfile/utils.js +14 -0
- package/test/node_modules/kind-of/CHANGELOG.md +160 -0
- package/test/node_modules/kind-of/LICENSE +21 -0
- package/test/node_modules/kind-of/README.md +367 -0
- package/test/node_modules/kind-of/index.js +129 -0
- package/test/node_modules/kind-of/package.json +88 -0
- package/test/node_modules/make-error/LICENSE +5 -0
- package/test/node_modules/make-error/README.md +112 -0
- package/test/node_modules/make-error/dist/make-error.js +1 -0
- package/test/node_modules/make-error/index.d.ts +47 -0
- package/test/node_modules/make-error/index.js +151 -0
- package/test/node_modules/make-error/package.json +62 -0
- package/test/node_modules/minimist/.eslintrc +29 -0
- package/test/node_modules/minimist/.github/FUNDING.yml +12 -0
- package/test/node_modules/minimist/.nycrc +14 -0
- package/test/node_modules/minimist/CHANGELOG.md +298 -0
- package/test/node_modules/minimist/LICENSE +18 -0
- package/test/node_modules/minimist/README.md +121 -0
- package/test/node_modules/minimist/example/parse.js +4 -0
- package/test/node_modules/minimist/index.js +263 -0
- package/test/node_modules/minimist/package.json +75 -0
- package/test/node_modules/minimist/test/all_bool.js +34 -0
- package/test/node_modules/minimist/test/bool.js +177 -0
- package/test/node_modules/minimist/test/dash.js +43 -0
- package/test/node_modules/minimist/test/default_bool.js +37 -0
- package/test/node_modules/minimist/test/dotted.js +24 -0
- package/test/node_modules/minimist/test/kv_short.js +32 -0
- package/test/node_modules/minimist/test/long.js +33 -0
- package/test/node_modules/minimist/test/num.js +38 -0
- package/test/node_modules/minimist/test/parse.js +209 -0
- package/test/node_modules/minimist/test/parse_modified.js +11 -0
- package/test/node_modules/minimist/test/proto.js +64 -0
- package/test/node_modules/minimist/test/short.js +69 -0
- package/test/node_modules/minimist/test/stop_early.js +17 -0
- package/test/node_modules/minimist/test/unknown.js +104 -0
- package/test/node_modules/minimist/test/whitespace.js +10 -0
- package/test/node_modules/path-parse/LICENSE +21 -0
- package/test/node_modules/path-parse/README.md +42 -0
- package/test/node_modules/path-parse/index.js +75 -0
- package/test/node_modules/path-parse/package.json +33 -0
- package/test/node_modules/resolve/.editorconfig +37 -0
- package/test/node_modules/resolve/.eslintrc +65 -0
- package/test/node_modules/resolve/.github/FUNDING.yml +12 -0
- package/test/node_modules/resolve/.github/INCIDENT_RESPONSE_PROCESS.md +119 -0
- package/test/node_modules/resolve/.github/THREAT_MODEL.md +74 -0
- package/test/node_modules/resolve/LICENSE +21 -0
- package/test/node_modules/resolve/SECURITY.md +11 -0
- package/test/node_modules/resolve/async.js +3 -0
- package/test/node_modules/resolve/bin/resolve +50 -0
- package/test/node_modules/resolve/example/async.js +5 -0
- package/test/node_modules/resolve/example/sync.js +3 -0
- package/test/node_modules/resolve/index.js +6 -0
- package/test/node_modules/resolve/lib/async.js +333 -0
- package/test/node_modules/resolve/lib/caller.js +8 -0
- package/test/node_modules/resolve/lib/core.js +12 -0
- package/test/node_modules/resolve/lib/core.json +162 -0
- package/test/node_modules/resolve/lib/homedir.js +24 -0
- package/test/node_modules/resolve/lib/is-core.js +5 -0
- package/test/node_modules/resolve/lib/node-modules-paths.js +45 -0
- package/test/node_modules/resolve/lib/normalize-options.js +10 -0
- package/test/node_modules/resolve/lib/sync.js +212 -0
- package/test/node_modules/resolve/package.json +75 -0
- package/test/node_modules/resolve/readme.markdown +301 -0
- package/test/node_modules/resolve/sync.js +3 -0
- package/test/node_modules/resolve/test/core.js +88 -0
- package/test/node_modules/resolve/test/dotdot/abc/index.js +2 -0
- package/test/node_modules/resolve/test/dotdot/index.js +1 -0
- package/test/node_modules/resolve/test/dotdot.js +29 -0
- package/test/node_modules/resolve/test/faulty_basedir.js +29 -0
- package/test/node_modules/resolve/test/filter.js +34 -0
- package/test/node_modules/resolve/test/filter_sync.js +33 -0
- package/test/node_modules/resolve/test/home_paths.js +127 -0
- package/test/node_modules/resolve/test/home_paths_sync.js +114 -0
- package/test/node_modules/resolve/test/mock.js +315 -0
- package/test/node_modules/resolve/test/mock_sync.js +214 -0
- package/test/node_modules/resolve/test/module_dir/xmodules/aaa/index.js +1 -0
- package/test/node_modules/resolve/test/module_dir/ymodules/aaa/index.js +1 -0
- package/test/node_modules/resolve/test/module_dir/zmodules/bbb/main.js +1 -0
- package/test/node_modules/resolve/test/module_dir/zmodules/bbb/package.json +3 -0
- package/test/node_modules/resolve/test/module_dir.js +56 -0
- package/test/node_modules/resolve/test/node-modules-paths.js +143 -0
- package/test/node_modules/resolve/test/node_path/x/aaa/index.js +1 -0
- package/test/node_modules/resolve/test/node_path/x/ccc/index.js +1 -0
- package/test/node_modules/resolve/test/node_path/y/bbb/index.js +1 -0
- package/test/node_modules/resolve/test/node_path/y/ccc/index.js +1 -0
- package/test/node_modules/resolve/test/node_path.js +70 -0
- package/test/node_modules/resolve/test/nonstring.js +9 -0
- package/test/node_modules/resolve/test/pathfilter/deep_ref/main.js +0 -0
- package/test/node_modules/resolve/test/pathfilter.js +75 -0
- package/test/node_modules/resolve/test/precedence/aaa/index.js +1 -0
- package/test/node_modules/resolve/test/precedence/aaa/main.js +1 -0
- package/test/node_modules/resolve/test/precedence/aaa.js +1 -0
- package/test/node_modules/resolve/test/precedence/bbb/main.js +1 -0
- package/test/node_modules/resolve/test/precedence/bbb.js +1 -0
- package/test/node_modules/resolve/test/precedence.js +23 -0
- package/test/node_modules/resolve/test/resolver/baz/doom.js +0 -0
- package/test/node_modules/resolve/test/resolver/baz/package.json +4 -0
- package/test/node_modules/resolve/test/resolver/baz/quux.js +1 -0
- package/test/node_modules/resolve/test/resolver/browser_field/a.js +0 -0
- package/test/node_modules/resolve/test/resolver/browser_field/b.js +0 -0
- package/test/node_modules/resolve/test/resolver/browser_field/package.json +5 -0
- package/test/node_modules/resolve/test/resolver/cup.coffee +1 -0
- package/test/node_modules/resolve/test/resolver/dot_main/index.js +1 -0
- package/test/node_modules/resolve/test/resolver/dot_main/package.json +3 -0
- package/test/node_modules/resolve/test/resolver/dot_slash_main/index.js +1 -0
- package/test/node_modules/resolve/test/resolver/dot_slash_main/package.json +3 -0
- package/test/node_modules/resolve/test/resolver/false_main/index.js +0 -0
- package/test/node_modules/resolve/test/resolver/false_main/package.json +4 -0
- package/test/node_modules/resolve/test/resolver/foo.js +1 -0
- package/test/node_modules/resolve/test/resolver/incorrect_main/index.js +2 -0
- package/test/node_modules/resolve/test/resolver/incorrect_main/package.json +3 -0
- package/test/node_modules/resolve/test/resolver/invalid_main/package.json +7 -0
- package/test/node_modules/resolve/test/resolver/mug.coffee +0 -0
- package/test/node_modules/resolve/test/resolver/mug.js +0 -0
- package/test/node_modules/resolve/test/resolver/multirepo/lerna.json +6 -0
- package/test/node_modules/resolve/test/resolver/multirepo/package.json +20 -0
- package/test/node_modules/resolve/test/resolver/multirepo/packages/package-a/index.js +35 -0
- package/test/node_modules/resolve/test/resolver/multirepo/packages/package-a/package.json +14 -0
- package/test/node_modules/resolve/test/resolver/multirepo/packages/package-b/index.js +0 -0
- package/test/node_modules/resolve/test/resolver/multirepo/packages/package-b/package.json +14 -0
- package/test/node_modules/resolve/test/resolver/nested_symlinks/mylib/async.js +26 -0
- package/test/node_modules/resolve/test/resolver/nested_symlinks/mylib/package.json +15 -0
- package/test/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js +12 -0
- package/test/node_modules/resolve/test/resolver/other_path/lib/other-lib.js +0 -0
- package/test/node_modules/resolve/test/resolver/other_path/root.js +0 -0
- package/test/node_modules/resolve/test/resolver/quux/foo/index.js +1 -0
- package/test/node_modules/resolve/test/resolver/same_names/foo/index.js +1 -0
- package/test/node_modules/resolve/test/resolver/same_names/foo.js +1 -0
- package/test/node_modules/resolve/test/resolver/symlinked/_/node_modules/foo.js +0 -0
- package/test/node_modules/resolve/test/resolver/symlinked/_/symlink_target/.gitkeep +0 -0
- package/test/node_modules/resolve/test/resolver/symlinked/package/bar.js +1 -0
- package/test/node_modules/resolve/test/resolver/symlinked/package/package.json +3 -0
- package/test/node_modules/resolve/test/resolver/without_basedir/main.js +5 -0
- package/test/node_modules/resolve/test/resolver.js +597 -0
- package/test/node_modules/resolve/test/resolver_sync.js +730 -0
- package/test/node_modules/resolve/test/shadowed_core/node_modules/util/index.js +0 -0
- package/test/node_modules/resolve/test/shadowed_core.js +54 -0
- package/test/node_modules/resolve/test/subdirs.js +13 -0
- package/test/node_modules/resolve/test/symlinks.js +176 -0
- package/test/node_modules/semver/LICENSE +15 -0
- package/test/node_modules/semver/README.md +665 -0
- package/test/node_modules/semver/bin/semver.js +191 -0
- package/test/node_modules/semver/classes/comparator.js +143 -0
- package/test/node_modules/semver/classes/index.js +7 -0
- package/test/node_modules/semver/classes/range.js +557 -0
- package/test/node_modules/semver/classes/semver.js +333 -0
- package/test/node_modules/semver/functions/clean.js +8 -0
- package/test/node_modules/semver/functions/cmp.js +54 -0
- package/test/node_modules/semver/functions/coerce.js +62 -0
- package/test/node_modules/semver/functions/compare-build.js +9 -0
- package/test/node_modules/semver/functions/compare-loose.js +5 -0
- package/test/node_modules/semver/functions/compare.js +7 -0
- package/test/node_modules/semver/functions/diff.js +60 -0
- package/test/node_modules/semver/functions/eq.js +5 -0
- package/test/node_modules/semver/functions/gt.js +5 -0
- package/test/node_modules/semver/functions/gte.js +5 -0
- package/test/node_modules/semver/functions/inc.js +21 -0
- package/test/node_modules/semver/functions/lt.js +5 -0
- package/test/node_modules/semver/functions/lte.js +5 -0
- package/test/node_modules/semver/functions/major.js +5 -0
- package/test/node_modules/semver/functions/minor.js +5 -0
- package/test/node_modules/semver/functions/neq.js +5 -0
- package/test/node_modules/semver/functions/parse.js +18 -0
- package/test/node_modules/semver/functions/patch.js +5 -0
- package/test/node_modules/semver/functions/prerelease.js +8 -0
- package/test/node_modules/semver/functions/rcompare.js +5 -0
- package/test/node_modules/semver/functions/rsort.js +5 -0
- package/test/node_modules/semver/functions/satisfies.js +12 -0
- package/test/node_modules/semver/functions/sort.js +5 -0
- package/test/node_modules/semver/functions/valid.js +8 -0
- package/test/node_modules/semver/index.js +91 -0
- package/test/node_modules/semver/internal/constants.js +37 -0
- package/test/node_modules/semver/internal/debug.js +11 -0
- package/test/node_modules/semver/internal/identifiers.js +29 -0
- package/test/node_modules/semver/internal/lrucache.js +42 -0
- package/test/node_modules/semver/internal/parse-options.js +17 -0
- package/test/node_modules/semver/internal/re.js +223 -0
- package/test/node_modules/semver/package.json +78 -0
- package/test/node_modules/semver/preload.js +4 -0
- package/test/node_modules/semver/range.bnf +16 -0
- package/test/node_modules/semver/ranges/gtr.js +6 -0
- package/test/node_modules/semver/ranges/intersects.js +9 -0
- package/test/node_modules/semver/ranges/ltr.js +6 -0
- package/test/node_modules/semver/ranges/max-satisfying.js +27 -0
- package/test/node_modules/semver/ranges/min-satisfying.js +26 -0
- package/test/node_modules/semver/ranges/min-version.js +63 -0
- package/test/node_modules/semver/ranges/outside.js +82 -0
- package/test/node_modules/semver/ranges/simplify.js +49 -0
- package/test/node_modules/semver/ranges/subset.js +249 -0
- package/test/node_modules/semver/ranges/to-comparators.js +10 -0
- package/test/node_modules/semver/ranges/valid.js +13 -0
- package/test/node_modules/strip-ansi/index.d.ts +17 -0
- package/test/node_modules/strip-ansi/index.js +4 -0
- package/test/node_modules/strip-ansi/license +9 -0
- package/test/node_modules/strip-ansi/package.json +54 -0
- package/test/node_modules/strip-ansi/readme.md +46 -0
- package/test/node_modules/strip-bom/index.js +14 -0
- package/test/node_modules/strip-bom/license +21 -0
- package/test/node_modules/strip-bom/package.json +40 -0
- package/test/node_modules/strip-bom/readme.md +36 -0
- package/test/node_modules/supports-color/browser.js +5 -0
- package/test/node_modules/supports-color/index.js +135 -0
- package/test/node_modules/supports-color/license +9 -0
- package/test/node_modules/supports-color/package.json +53 -0
- package/test/node_modules/supports-color/readme.md +76 -0
- package/test/node_modules/supports-preserve-symlinks-flag/.eslintrc +14 -0
- package/test/node_modules/supports-preserve-symlinks-flag/.github/FUNDING.yml +12 -0
- package/test/node_modules/supports-preserve-symlinks-flag/.nycrc +9 -0
- package/test/node_modules/supports-preserve-symlinks-flag/CHANGELOG.md +22 -0
- package/test/node_modules/supports-preserve-symlinks-flag/LICENSE +21 -0
- package/test/node_modules/supports-preserve-symlinks-flag/README.md +42 -0
- package/test/node_modules/supports-preserve-symlinks-flag/browser.js +3 -0
- package/test/node_modules/supports-preserve-symlinks-flag/index.js +9 -0
- package/test/node_modules/supports-preserve-symlinks-flag/package.json +70 -0
- package/test/node_modules/supports-preserve-symlinks-flag/test/index.js +29 -0
- package/test/node_modules/ts-latest/LICENSE.txt +55 -0
- package/test/node_modules/ts-latest/README.md +50 -0
- package/test/node_modules/ts-latest/SECURITY.md +39 -0
- package/test/node_modules/ts-latest/ThirdPartyNoticeText.txt +193 -0
- package/test/node_modules/ts-latest/bin/tsc +2 -0
- package/test/node_modules/ts-latest/bin/tsserver +2 -0
- package/test/node_modules/ts-latest/lib/_tsc.js +134440 -0
- package/test/node_modules/ts-latest/lib/_tsserver.js +659 -0
- package/test/node_modules/ts-latest/lib/_typingsInstaller.js +222 -0
- package/test/node_modules/ts-latest/lib/cs/diagnosticMessages.generated.json +2129 -0
- package/test/node_modules/ts-latest/lib/de/diagnosticMessages.generated.json +2125 -0
- package/test/node_modules/ts-latest/lib/es/diagnosticMessages.generated.json +2129 -0
- package/test/node_modules/ts-latest/lib/fr/diagnosticMessages.generated.json +2129 -0
- package/test/node_modules/ts-latest/lib/it/diagnosticMessages.generated.json +2125 -0
- package/test/node_modules/ts-latest/lib/ja/diagnosticMessages.generated.json +2129 -0
- package/test/node_modules/ts-latest/lib/ko/diagnosticMessages.generated.json +2129 -0
- package/test/node_modules/ts-latest/lib/lib.d.ts +20 -0
- package/test/node_modules/ts-latest/lib/lib.decorators.d.ts +382 -0
- package/test/node_modules/ts-latest/lib/lib.decorators.legacy.d.ts +20 -0
- package/test/node_modules/ts-latest/lib/lib.dom.asynciterable.d.ts +18 -0
- package/test/node_modules/ts-latest/lib/lib.dom.d.ts +44303 -0
- package/test/node_modules/ts-latest/lib/lib.dom.iterable.d.ts +18 -0
- package/test/node_modules/ts-latest/lib/lib.es2015.collection.d.ts +150 -0
- package/test/node_modules/ts-latest/lib/lib.es2015.core.d.ts +595 -0
- package/test/node_modules/ts-latest/lib/lib.es2015.d.ts +26 -0
- package/test/node_modules/ts-latest/lib/lib.es2015.generator.d.ts +75 -0
- package/test/node_modules/ts-latest/lib/lib.es2015.iterable.d.ts +603 -0
- package/test/node_modules/ts-latest/lib/lib.es2015.promise.d.ts +79 -0
- package/test/node_modules/ts-latest/lib/lib.es2015.proxy.d.ts +126 -0
- package/test/node_modules/ts-latest/lib/lib.es2015.reflect.d.ts +142 -0
- package/test/node_modules/ts-latest/lib/lib.es2015.symbol.d.ts +44 -0
- package/test/node_modules/ts-latest/lib/lib.es2015.symbol.wellknown.d.ts +324 -0
- package/test/node_modules/ts-latest/lib/lib.es2016.array.include.d.ts +114 -0
- package/test/node_modules/ts-latest/lib/lib.es2016.d.ts +19 -0
- package/test/node_modules/ts-latest/lib/lib.es2016.full.d.ts +21 -0
- package/test/node_modules/ts-latest/lib/lib.es2016.intl.d.ts +29 -0
- package/test/node_modules/ts-latest/lib/lib.es2017.arraybuffer.d.ts +19 -0
- package/test/node_modules/ts-latest/lib/lib.es2017.d.ts +24 -0
- package/test/node_modules/ts-latest/lib/lib.es2017.date.d.ts +29 -0
- package/test/node_modules/ts-latest/lib/lib.es2017.full.d.ts +21 -0
- package/test/node_modules/ts-latest/lib/lib.es2017.intl.d.ts +42 -0
- package/test/node_modules/ts-latest/lib/lib.es2017.object.d.ts +47 -0
- package/test/node_modules/ts-latest/lib/lib.es2017.sharedmemory.d.ts +133 -0
- package/test/node_modules/ts-latest/lib/lib.es2017.string.d.ts +43 -0
- package/test/node_modules/ts-latest/lib/lib.es2017.typedarrays.d.ts +51 -0
- package/test/node_modules/ts-latest/lib/lib.es2018.asyncgenerator.d.ts +75 -0
- package/test/node_modules/ts-latest/lib/lib.es2018.asynciterable.d.ts +51 -0
- package/test/node_modules/ts-latest/lib/lib.es2018.d.ts +22 -0
- package/test/node_modules/ts-latest/lib/lib.es2018.full.d.ts +22 -0
- package/test/node_modules/ts-latest/lib/lib.es2018.intl.d.ts +81 -0
- package/test/node_modules/ts-latest/lib/lib.es2018.promise.d.ts +28 -0
- package/test/node_modules/ts-latest/lib/lib.es2018.regexp.d.ts +35 -0
- package/test/node_modules/ts-latest/lib/lib.es2019.array.d.ts +77 -0
- package/test/node_modules/ts-latest/lib/lib.es2019.d.ts +22 -0
- package/test/node_modules/ts-latest/lib/lib.es2019.full.d.ts +22 -0
- package/test/node_modules/ts-latest/lib/lib.es2019.intl.d.ts +21 -0
- package/test/node_modules/ts-latest/lib/lib.es2019.object.d.ts +31 -0
- package/test/node_modules/ts-latest/lib/lib.es2019.string.d.ts +35 -0
- package/test/node_modules/ts-latest/lib/lib.es2019.symbol.d.ts +22 -0
- package/test/node_modules/ts-latest/lib/lib.es2020.bigint.d.ts +763 -0
- package/test/node_modules/ts-latest/lib/lib.es2020.d.ts +25 -0
- package/test/node_modules/ts-latest/lib/lib.es2020.date.d.ts +40 -0
- package/test/node_modules/ts-latest/lib/lib.es2020.full.d.ts +22 -0
- package/test/node_modules/ts-latest/lib/lib.es2020.intl.d.ts +472 -0
- package/test/node_modules/ts-latest/lib/lib.es2020.number.d.ts +26 -0
- package/test/node_modules/ts-latest/lib/lib.es2020.promise.d.ts +45 -0
- package/test/node_modules/ts-latest/lib/lib.es2020.sharedmemory.d.ts +97 -0
- package/test/node_modules/ts-latest/lib/lib.es2020.string.d.ts +42 -0
- package/test/node_modules/ts-latest/lib/lib.es2020.symbol.wellknown.d.ts +39 -0
- package/test/node_modules/ts-latest/lib/lib.es2021.d.ts +21 -0
- package/test/node_modules/ts-latest/lib/lib.es2021.full.d.ts +22 -0
- package/test/node_modules/ts-latest/lib/lib.es2021.intl.d.ts +164 -0
- package/test/node_modules/ts-latest/lib/lib.es2021.promise.d.ts +46 -0
- package/test/node_modules/ts-latest/lib/lib.es2021.string.d.ts +31 -0
- package/test/node_modules/ts-latest/lib/lib.es2021.weakref.d.ts +76 -0
- package/test/node_modules/ts-latest/lib/lib.es2022.array.d.ts +119 -0
- package/test/node_modules/ts-latest/lib/lib.es2022.d.ts +23 -0
- package/test/node_modules/ts-latest/lib/lib.es2022.error.d.ts +73 -0
- package/test/node_modules/ts-latest/lib/lib.es2022.full.d.ts +22 -0
- package/test/node_modules/ts-latest/lib/lib.es2022.intl.d.ts +143 -0
- package/test/node_modules/ts-latest/lib/lib.es2022.object.d.ts +24 -0
- package/test/node_modules/ts-latest/lib/lib.es2022.regexp.d.ts +37 -0
- package/test/node_modules/ts-latest/lib/lib.es2022.string.d.ts +23 -0
- package/test/node_modules/ts-latest/lib/lib.es2023.array.d.ts +922 -0
- package/test/node_modules/ts-latest/lib/lib.es2023.collection.d.ts +19 -0
- package/test/node_modules/ts-latest/lib/lib.es2023.d.ts +20 -0
- package/test/node_modules/ts-latest/lib/lib.es2023.full.d.ts +22 -0
- package/test/node_modules/ts-latest/lib/lib.es2023.intl.d.ts +62 -0
- package/test/node_modules/ts-latest/lib/lib.es2024.arraybuffer.d.ts +63 -0
- package/test/node_modules/ts-latest/lib/lib.es2024.collection.d.ts +27 -0
- package/test/node_modules/ts-latest/lib/lib.es2024.d.ts +24 -0
- package/test/node_modules/ts-latest/lib/lib.es2024.full.d.ts +22 -0
- package/test/node_modules/ts-latest/lib/lib.es2024.object.d.ts +27 -0
- package/test/node_modules/ts-latest/lib/lib.es2024.promise.d.ts +33 -0
- package/test/node_modules/ts-latest/lib/lib.es2024.regexp.d.ts +23 -0
- package/test/node_modules/ts-latest/lib/lib.es2024.sharedmemory.d.ts +66 -0
- package/test/node_modules/ts-latest/lib/lib.es2024.string.d.ts +27 -0
- package/test/node_modules/ts-latest/lib/lib.es2025.collection.d.ts +94 -0
- package/test/node_modules/ts-latest/lib/lib.es2025.d.ts +23 -0
- package/test/node_modules/ts-latest/lib/lib.es2025.float16.d.ts +443 -0
- package/test/node_modules/ts-latest/lib/lib.es2025.full.d.ts +22 -0
- package/test/node_modules/ts-latest/lib/lib.es2025.intl.d.ts +200 -0
- package/test/node_modules/ts-latest/lib/lib.es2025.iterator.d.ts +146 -0
- package/test/node_modules/ts-latest/lib/lib.es2025.promise.d.ts +32 -0
- package/test/node_modules/ts-latest/lib/lib.es2025.regexp.d.ts +30 -0
- package/test/node_modules/ts-latest/lib/lib.es5.d.ts +4599 -0
- package/test/node_modules/ts-latest/lib/lib.es6.d.ts +21 -0
- package/test/node_modules/ts-latest/lib/lib.esnext.array.d.ts +33 -0
- package/test/node_modules/ts-latest/lib/lib.esnext.collection.d.ts +47 -0
- package/test/node_modules/ts-latest/lib/lib.esnext.d.ts +27 -0
- package/test/node_modules/ts-latest/lib/lib.esnext.date.d.ts +21 -0
- package/test/node_modules/ts-latest/lib/lib.esnext.decorators.d.ts +26 -0
- package/test/node_modules/ts-latest/lib/lib.esnext.disposable.d.ts +191 -0
- package/test/node_modules/ts-latest/lib/lib.esnext.error.d.ts +22 -0
- package/test/node_modules/ts-latest/lib/lib.esnext.full.d.ts +22 -0
- package/test/node_modules/ts-latest/lib/lib.esnext.intl.d.ts +107 -0
- package/test/node_modules/ts-latest/lib/lib.esnext.sharedmemory.d.ts +23 -0
- package/test/node_modules/ts-latest/lib/lib.esnext.temporal.d.ts +473 -0
- package/test/node_modules/ts-latest/lib/lib.esnext.typedarrays.d.ts +90 -0
- package/test/node_modules/ts-latest/lib/lib.scripthost.d.ts +320 -0
- package/test/node_modules/ts-latest/lib/lib.webworker.asynciterable.d.ts +18 -0
- package/test/node_modules/ts-latest/lib/lib.webworker.d.ts +14814 -0
- package/test/node_modules/ts-latest/lib/lib.webworker.importscripts.d.ts +21 -0
- package/test/node_modules/ts-latest/lib/lib.webworker.iterable.d.ts +18 -0
- package/test/node_modules/ts-latest/lib/pl/diagnosticMessages.generated.json +2129 -0
- package/test/node_modules/ts-latest/lib/pt-br/diagnosticMessages.generated.json +2129 -0
- package/test/node_modules/ts-latest/lib/ru/diagnosticMessages.generated.json +2125 -0
- package/test/node_modules/ts-latest/lib/tr/diagnosticMessages.generated.json +2129 -0
- package/test/node_modules/ts-latest/lib/tsc.js +8 -0
- package/test/node_modules/ts-latest/lib/tsserver.js +8 -0
- package/test/node_modules/ts-latest/lib/tsserverlibrary.d.ts +17 -0
- package/test/node_modules/ts-latest/lib/tsserverlibrary.js +21 -0
- package/test/node_modules/ts-latest/lib/typesMap.json +497 -0
- package/test/node_modules/ts-latest/lib/typescript.d.ts +11448 -0
- package/test/node_modules/ts-latest/lib/typescript.js +200997 -0
- package/test/node_modules/ts-latest/lib/typingsInstaller.js +8 -0
- package/test/node_modules/ts-latest/lib/watchGuard.js +53 -0
- package/test/node_modules/ts-latest/lib/zh-cn/diagnosticMessages.generated.json +2129 -0
- package/test/node_modules/ts-latest/lib/zh-tw/diagnosticMessages.generated.json +2125 -0
- package/test/node_modules/ts-latest/package.json +119 -0
- package/test/node_modules/ts-node/LICENSE +21 -0
- package/test/node_modules/ts-node/README.md +1442 -0
- package/test/node_modules/ts-node/child-loader.mjs +8 -0
- package/test/node_modules/ts-node/dist/bin-cwd.d.ts +2 -0
- package/test/node_modules/ts-node/dist/bin-cwd.js +6 -0
- package/test/node_modules/ts-node/dist/bin-cwd.js.map +1 -0
- package/test/node_modules/ts-node/dist/bin-esm.d.ts +2 -0
- package/test/node_modules/ts-node/dist/bin-esm.js +6 -0
- package/test/node_modules/ts-node/dist/bin-esm.js.map +1 -0
- package/test/node_modules/ts-node/dist/bin-script-deprecated.d.ts +2 -0
- package/test/node_modules/ts-node/dist/bin-script-deprecated.js +7 -0
- package/test/node_modules/ts-node/dist/bin-script-deprecated.js.map +1 -0
- package/test/node_modules/ts-node/dist/bin-script.d.ts +2 -0
- package/test/node_modules/ts-node/dist/bin-script.js +6 -0
- package/test/node_modules/ts-node/dist/bin-script.js.map +1 -0
- package/test/node_modules/ts-node/dist/bin-transpile.d.ts +2 -0
- package/test/node_modules/ts-node/dist/bin-transpile.js +6 -0
- package/test/node_modules/ts-node/dist/bin-transpile.js.map +1 -0
- package/test/node_modules/ts-node/dist/bin.d.ts +11 -0
- package/test/node_modules/ts-node/dist/bin.js +581 -0
- package/test/node_modules/ts-node/dist/bin.js.map +1 -0
- package/test/node_modules/ts-node/dist/child/argv-payload.d.ts +1 -0
- package/test/node_modules/ts-node/dist/child/argv-payload.js +19 -0
- package/test/node_modules/ts-node/dist/child/argv-payload.js.map +1 -0
- package/test/node_modules/ts-node/dist/child/child-entrypoint.d.ts +1 -0
- package/test/node_modules/ts-node/dist/child/child-entrypoint.js +24 -0
- package/test/node_modules/ts-node/dist/child/child-entrypoint.js.map +1 -0
- package/test/node_modules/ts-node/dist/child/child-loader.d.ts +1 -0
- package/test/node_modules/ts-node/dist/child/child-loader.js +32 -0
- package/test/node_modules/ts-node/dist/child/child-loader.js.map +1 -0
- package/test/node_modules/ts-node/dist/child/child-require.d.ts +7 -0
- package/test/node_modules/ts-node/dist/child/child-require.js +22 -0
- package/test/node_modules/ts-node/dist/child/child-require.js.map +1 -0
- package/test/node_modules/ts-node/dist/child/spawn-child.d.ts +1 -0
- package/test/node_modules/ts-node/dist/child/spawn-child.js +49 -0
- package/test/node_modules/ts-node/dist/child/spawn-child.js.map +1 -0
- package/test/node_modules/ts-node/dist/cjs-resolve-hooks.d.ts +1 -0
- package/test/node_modules/ts-node/dist/cjs-resolve-hooks.js +29 -0
- package/test/node_modules/ts-node/dist/cjs-resolve-hooks.js.map +1 -0
- package/test/node_modules/ts-node/dist/configuration.d.ts +1 -0
- package/test/node_modules/ts-node/dist/configuration.js +308 -0
- package/test/node_modules/ts-node/dist/configuration.js.map +1 -0
- package/test/node_modules/ts-node/dist/esm.d.ts +53 -0
- package/test/node_modules/ts-node/dist/esm.js +228 -0
- package/test/node_modules/ts-node/dist/esm.js.map +1 -0
- package/test/node_modules/ts-node/dist/file-extensions.d.ts +1 -0
- package/test/node_modules/ts-node/dist/file-extensions.js +133 -0
- package/test/node_modules/ts-node/dist/file-extensions.js.map +1 -0
- package/test/node_modules/ts-node/dist/index.d.ts +332 -0
- package/test/node_modules/ts-node/dist/index.js +953 -0
- package/test/node_modules/ts-node/dist/index.js.map +1 -0
- package/test/node_modules/ts-node/dist/module-type-classifier.d.ts +1 -0
- package/test/node_modules/ts-node/dist/module-type-classifier.js +64 -0
- package/test/node_modules/ts-node/dist/module-type-classifier.js.map +1 -0
- package/test/node_modules/ts-node/dist/node-module-type-classifier.d.ts +1 -0
- package/test/node_modules/ts-node/dist/node-module-type-classifier.js +39 -0
- package/test/node_modules/ts-node/dist/node-module-type-classifier.js.map +1 -0
- package/test/node_modules/ts-node/dist/repl.d.ts +78 -0
- package/test/node_modules/ts-node/dist/repl.js +561 -0
- package/test/node_modules/ts-node/dist/repl.js.map +1 -0
- package/test/node_modules/ts-node/dist/resolver-functions.d.ts +1 -0
- package/test/node_modules/ts-node/dist/resolver-functions.js +143 -0
- package/test/node_modules/ts-node/dist/resolver-functions.js.map +1 -0
- package/test/node_modules/ts-node/dist/transpilers/swc.d.ts +11 -0
- package/test/node_modules/ts-node/dist/transpilers/swc.js +218 -0
- package/test/node_modules/ts-node/dist/transpilers/swc.js.map +1 -0
- package/test/node_modules/ts-node/dist/transpilers/types.d.ts +35 -0
- package/test/node_modules/ts-node/dist/transpilers/types.js +3 -0
- package/test/node_modules/ts-node/dist/transpilers/types.js.map +1 -0
- package/test/node_modules/ts-node/dist/ts-compiler-types.d.ts +63 -0
- package/test/node_modules/ts-node/dist/ts-compiler-types.js +3 -0
- package/test/node_modules/ts-node/dist/ts-compiler-types.js.map +1 -0
- package/test/node_modules/ts-node/dist/ts-internals.d.ts +6 -0
- package/test/node_modules/ts-node/dist/ts-internals.js +321 -0
- package/test/node_modules/ts-node/dist/ts-internals.js.map +1 -0
- package/test/node_modules/ts-node/dist/ts-transpile-module.d.ts +1 -0
- package/test/node_modules/ts-node/dist/ts-transpile-module.js +100 -0
- package/test/node_modules/ts-node/dist/ts-transpile-module.js.map +1 -0
- package/test/node_modules/ts-node/dist/tsconfig-schema.d.ts +13 -0
- package/test/node_modules/ts-node/dist/tsconfig-schema.js +3 -0
- package/test/node_modules/ts-node/dist/tsconfig-schema.js.map +1 -0
- package/test/node_modules/ts-node/dist/tsconfigs.d.ts +1 -0
- package/test/node_modules/ts-node/dist/tsconfigs.js +36 -0
- package/test/node_modules/ts-node/dist/tsconfigs.js.map +1 -0
- package/test/node_modules/ts-node/dist/util.d.ts +4 -0
- package/test/node_modules/ts-node/dist/util.js +175 -0
- package/test/node_modules/ts-node/dist/util.js.map +1 -0
- package/test/node_modules/ts-node/dist-raw/NODE-LICENSE.md +24 -0
- package/test/node_modules/ts-node/dist-raw/README.md +36 -0
- package/test/node_modules/ts-node/dist-raw/node-internal-constants.js +4 -0
- package/test/node_modules/ts-node/dist-raw/node-internal-errors.js +82 -0
- package/test/node_modules/ts-node/dist-raw/node-internal-modules-cjs-helpers.js +89 -0
- package/test/node_modules/ts-node/dist-raw/node-internal-modules-cjs-loader.js +593 -0
- package/test/node_modules/ts-node/dist-raw/node-internal-modules-esm-get_format.js +106 -0
- package/test/node_modules/ts-node/dist-raw/node-internal-modules-esm-resolve.js +962 -0
- package/test/node_modules/ts-node/dist-raw/node-internal-modules-package_json_reader.js +44 -0
- package/test/node_modules/ts-node/dist-raw/node-internal-repl-await.js +254 -0
- package/test/node_modules/ts-node/dist-raw/node-internalBinding-fs.js +58 -0
- package/test/node_modules/ts-node/dist-raw/node-nativemodule.js +9 -0
- package/test/node_modules/ts-node/dist-raw/node-options.js +103 -0
- package/test/node_modules/ts-node/dist-raw/node-primordials.js +37 -0
- package/test/node_modules/ts-node/dist-raw/runmain-hack.js +9 -0
- package/test/node_modules/ts-node/esm/transpile-only.mjs +8 -0
- package/test/node_modules/ts-node/esm.mjs +8 -0
- package/test/node_modules/ts-node/node10/tsconfig.json +3 -0
- package/test/node_modules/ts-node/node12/tsconfig.json +3 -0
- package/test/node_modules/ts-node/node14/tsconfig.json +3 -0
- package/test/node_modules/ts-node/node16/tsconfig.json +3 -0
- package/test/node_modules/ts-node/node_modules/.bin/acorn +15 -0
- package/test/node_modules/ts-node/node_modules/.bin/acorn.cmd +7 -0
- package/test/node_modules/ts-node/package.json +182 -0
- package/test/node_modules/ts-node/register/files.js +3 -0
- package/test/node_modules/ts-node/register/index.js +1 -0
- package/test/node_modules/ts-node/register/transpile-only.js +3 -0
- package/test/node_modules/ts-node/register/type-check.js +3 -0
- package/test/node_modules/ts-node/transpilers/swc-experimental.js +1 -0
- package/test/node_modules/ts-node/transpilers/swc.js +1 -0
- package/test/node_modules/ts-node/tsconfig.schema.json +183 -0
- package/test/node_modules/ts-node/tsconfig.schemastore-schema.json +1326 -0
- package/test/node_modules/tsconfig-paths/CHANGELOG.md +407 -0
- package/test/node_modules/tsconfig-paths/LICENSE +21 -0
- package/test/node_modules/tsconfig-paths/README.md +269 -0
- package/test/node_modules/tsconfig-paths/lib/__tests__/config-loader.test.d.ts +1 -0
- package/test/node_modules/tsconfig-paths/lib/__tests__/config-loader.test.js +87 -0
- package/test/node_modules/tsconfig-paths/lib/__tests__/config-loader.test.js.map +1 -0
- package/test/node_modules/tsconfig-paths/lib/__tests__/data/match-path-data.d.ts +17 -0
- package/test/node_modules/tsconfig-paths/lib/__tests__/data/match-path-data.js +216 -0
- package/test/node_modules/tsconfig-paths/lib/__tests__/data/match-path-data.js.map +1 -0
- package/test/node_modules/tsconfig-paths/lib/__tests__/filesystem.test.d.ts +1 -0
- package/test/node_modules/tsconfig-paths/lib/__tests__/filesystem.test.js +56 -0
- package/test/node_modules/tsconfig-paths/lib/__tests__/filesystem.test.js.map +1 -0
- package/test/node_modules/tsconfig-paths/lib/__tests__/mapping-entry.test.d.ts +1 -0
- package/test/node_modules/tsconfig-paths/lib/__tests__/mapping-entry.test.js +39 -0
- package/test/node_modules/tsconfig-paths/lib/__tests__/mapping-entry.test.js.map +1 -0
- package/test/node_modules/tsconfig-paths/lib/__tests__/match-path-async.test.d.ts +1 -0
- package/test/node_modules/tsconfig-paths/lib/__tests__/match-path-async.test.js +18 -0
- package/test/node_modules/tsconfig-paths/lib/__tests__/match-path-async.test.js.map +1 -0
- package/test/node_modules/tsconfig-paths/lib/__tests__/match-path-sync.test.d.ts +1 -0
- package/test/node_modules/tsconfig-paths/lib/__tests__/match-path-sync.test.js +14 -0
- package/test/node_modules/tsconfig-paths/lib/__tests__/match-path-sync.test.js.map +1 -0
- package/test/node_modules/tsconfig-paths/lib/__tests__/try-path.test.d.ts +1 -0
- package/test/node_modules/tsconfig-paths/lib/__tests__/try-path.test.js +124 -0
- package/test/node_modules/tsconfig-paths/lib/__tests__/try-path.test.js.map +1 -0
- package/test/node_modules/tsconfig-paths/lib/__tests__/tsconfig-loader.test.d.ts +1 -0
- package/test/node_modules/tsconfig-paths/lib/__tests__/tsconfig-loader.test.js +328 -0
- package/test/node_modules/tsconfig-paths/lib/__tests__/tsconfig-loader.test.js.map +1 -0
- package/test/node_modules/tsconfig-paths/lib/config-loader.d.ts +33 -0
- package/test/node_modules/tsconfig-paths/lib/config-loader.js +48 -0
- package/test/node_modules/tsconfig-paths/lib/config-loader.js.map +1 -0
- package/test/node_modules/tsconfig-paths/lib/filesystem.d.ts +34 -0
- package/test/node_modules/tsconfig-paths/lib/filesystem.js +61 -0
- package/test/node_modules/tsconfig-paths/lib/filesystem.js.map +1 -0
- package/test/node_modules/tsconfig-paths/lib/index.d.ts +5 -0
- package/test/node_modules/tsconfig-paths/lib/index.js +15 -0
- package/test/node_modules/tsconfig-paths/lib/index.js.map +1 -0
- package/test/node_modules/tsconfig-paths/lib/mapping-entry.d.ts +18 -0
- package/test/node_modules/tsconfig-paths/lib/mapping-entry.js +54 -0
- package/test/node_modules/tsconfig-paths/lib/mapping-entry.js.map +1 -0
- package/test/node_modules/tsconfig-paths/lib/match-path-async.d.ts +21 -0
- package/test/node_modules/tsconfig-paths/lib/match-path-async.js +116 -0
- package/test/node_modules/tsconfig-paths/lib/match-path-async.js.map +1 -0
- package/test/node_modules/tsconfig-paths/lib/match-path-sync.d.ts +32 -0
- package/test/node_modules/tsconfig-paths/lib/match-path-sync.js +91 -0
- package/test/node_modules/tsconfig-paths/lib/match-path-sync.js.map +1 -0
- package/test/node_modules/tsconfig-paths/lib/register.d.ts +12 -0
- package/test/node_modules/tsconfig-paths/lib/register.js +112 -0
- package/test/node_modules/tsconfig-paths/lib/register.js.map +1 -0
- package/test/node_modules/tsconfig-paths/lib/try-path.d.ts +15 -0
- package/test/node_modules/tsconfig-paths/lib/try-path.js +91 -0
- package/test/node_modules/tsconfig-paths/lib/try-path.js.map +1 -0
- package/test/node_modules/tsconfig-paths/lib/tsconfig-loader.d.ts +28 -0
- package/test/node_modules/tsconfig-paths/lib/tsconfig-loader.js +148 -0
- package/test/node_modules/tsconfig-paths/lib/tsconfig-loader.js.map +1 -0
- package/test/node_modules/tsconfig-paths/node_modules/.bin/json5 +15 -0
- package/test/node_modules/tsconfig-paths/node_modules/.bin/json5.cmd +7 -0
- package/test/node_modules/tsconfig-paths/package.json +74 -0
- package/test/node_modules/tsconfig-paths/register.js +1 -0
- package/test/node_modules/tsconfig-paths/src/__tests__/config-loader.test.ts +101 -0
- package/test/node_modules/tsconfig-paths/src/__tests__/data/match-path-data.ts +230 -0
- package/test/node_modules/tsconfig-paths/src/__tests__/filesystem.test.ts +57 -0
- package/test/node_modules/tsconfig-paths/src/__tests__/mapping-entry.test.ts +43 -0
- package/test/node_modules/tsconfig-paths/src/__tests__/match-path-async.test.ts +26 -0
- package/test/node_modules/tsconfig-paths/src/__tests__/match-path-sync.test.ts +22 -0
- package/test/node_modules/tsconfig-paths/src/__tests__/try-path.test.ts +141 -0
- package/test/node_modules/tsconfig-paths/src/__tests__/tsconfig-loader.test.ts +428 -0
- package/test/node_modules/tsconfig-paths/src/__tests__/tsconfig-named.json +10 -0
- package/test/node_modules/tsconfig-paths/src/config-loader.ts +89 -0
- package/test/node_modules/tsconfig-paths/src/filesystem.ts +93 -0
- package/test/node_modules/tsconfig-paths/src/index.ts +24 -0
- package/test/node_modules/tsconfig-paths/src/mapping-entry.ts +65 -0
- package/test/node_modules/tsconfig-paths/src/match-path-async.ts +223 -0
- package/test/node_modules/tsconfig-paths/src/match-path-sync.ts +146 -0
- package/test/node_modules/tsconfig-paths/src/register.ts +123 -0
- package/test/node_modules/tsconfig-paths/src/try-path.ts +103 -0
- package/test/node_modules/tsconfig-paths/src/tsconfig-loader.ts +229 -0
- package/test/node_modules/undici-types/LICENSE +21 -0
- package/test/node_modules/undici-types/README.md +6 -0
- package/test/node_modules/undici-types/agent.d.ts +32 -0
- package/test/node_modules/undici-types/api.d.ts +43 -0
- package/test/node_modules/undici-types/balanced-pool.d.ts +30 -0
- package/test/node_modules/undici-types/cache-interceptor.d.ts +173 -0
- package/test/node_modules/undici-types/cache.d.ts +36 -0
- package/test/node_modules/undici-types/client-stats.d.ts +15 -0
- package/test/node_modules/undici-types/client.d.ts +108 -0
- package/test/node_modules/undici-types/connector.d.ts +34 -0
- package/test/node_modules/undici-types/content-type.d.ts +21 -0
- package/test/node_modules/undici-types/cookies.d.ts +30 -0
- package/test/node_modules/undici-types/diagnostics-channel.d.ts +74 -0
- package/test/node_modules/undici-types/dispatcher.d.ts +276 -0
- package/test/node_modules/undici-types/env-http-proxy-agent.d.ts +22 -0
- package/test/node_modules/undici-types/errors.d.ts +161 -0
- package/test/node_modules/undici-types/eventsource.d.ts +66 -0
- package/test/node_modules/undici-types/fetch.d.ts +211 -0
- package/test/node_modules/undici-types/formdata.d.ts +108 -0
- package/test/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/test/node_modules/undici-types/global-origin.d.ts +7 -0
- package/test/node_modules/undici-types/h2c-client.d.ts +73 -0
- package/test/node_modules/undici-types/handlers.d.ts +15 -0
- package/test/node_modules/undici-types/header.d.ts +160 -0
- package/test/node_modules/undici-types/index.d.ts +88 -0
- package/test/node_modules/undici-types/interceptors.d.ts +73 -0
- package/test/node_modules/undici-types/mock-agent.d.ts +68 -0
- package/test/node_modules/undici-types/mock-call-history.d.ts +111 -0
- package/test/node_modules/undici-types/mock-client.d.ts +27 -0
- package/test/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/test/node_modules/undici-types/mock-interceptor.d.ts +94 -0
- package/test/node_modules/undici-types/mock-pool.d.ts +27 -0
- package/test/node_modules/undici-types/package.json +55 -0
- package/test/node_modules/undici-types/patch.d.ts +29 -0
- package/test/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/test/node_modules/undici-types/pool.d.ts +41 -0
- package/test/node_modules/undici-types/proxy-agent.d.ts +29 -0
- package/test/node_modules/undici-types/readable.d.ts +68 -0
- package/test/node_modules/undici-types/retry-agent.d.ts +8 -0
- package/test/node_modules/undici-types/retry-handler.d.ts +125 -0
- package/test/node_modules/undici-types/round-robin-pool.d.ts +41 -0
- package/test/node_modules/undici-types/snapshot-agent.d.ts +109 -0
- package/test/node_modules/undici-types/util.d.ts +18 -0
- package/test/node_modules/undici-types/utility.d.ts +7 -0
- package/test/node_modules/undici-types/webidl.d.ts +341 -0
- package/test/node_modules/undici-types/websocket.d.ts +186 -0
- package/test/node_modules/universalify/LICENSE +20 -0
- package/test/node_modules/universalify/README.md +76 -0
- package/test/node_modules/universalify/index.js +24 -0
- package/test/node_modules/universalify/package.json +34 -0
- package/test/node_modules/v8-compile-cache-lib/CHANGELOG.md +53 -0
- package/test/node_modules/v8-compile-cache-lib/LICENSE +21 -0
- package/test/node_modules/v8-compile-cache-lib/README.md +60 -0
- package/test/node_modules/v8-compile-cache-lib/package.json +35 -0
- package/test/node_modules/v8-compile-cache-lib/v8-compile-cache.d.ts +7 -0
- package/test/node_modules/v8-compile-cache-lib/v8-compile-cache.js +391 -0
- package/test/node_modules/which/LICENSE +15 -0
- package/test/node_modules/which/README.md +51 -0
- package/test/node_modules/which/bin/which.js +52 -0
- package/test/node_modules/which/lib/index.js +111 -0
- package/test/node_modules/which/package.json +57 -0
- package/test/node_modules/yn/index.d.ts +65 -0
- package/test/node_modules/yn/index.js +33 -0
- package/test/node_modules/yn/lenient.js +105 -0
- package/test/node_modules/yn/license +9 -0
- package/test/node_modules/yn/package.json +42 -0
- package/test/node_modules/yn/readme.md +83 -0
- package/test/package.json +14 -0
- package/test/src/cleanup.ts +10 -0
- package/test/src/config.ts +35 -0
- package/test/src/perf.ts +110 -0
- package/test/src/prepare.ts +10 -0
- package/test/src/project.ts +134 -0
- package/test/src/utils/general.ts +8 -0
- package/test/tests/actions.test.ts +274 -0
- package/test/tests/package-config.test.ts +40 -0
- package/test/tests/path-mapping.test.ts +47 -0
- package/test/tests/transformer.test.ts +44 -0
- package/test/tests/webpack.test.ts +71 -0
- package/test/tsconfig.json +12 -0
- package/tsconfig.base.json +21 -0
- package/actions/check.js +0 -45
- package/actions/check.js.map +0 -1
- package/actions/patch.js +0 -82
- package/actions/patch.js.map +0 -1
- package/actions/unpatch.js +0 -82
- package/actions/unpatch.js.map +0 -1
- package/bin/ts-patch.js +0 -33
- package/bin/ts-patch.js.map +0 -1
- package/cli/cli.js +0 -96
- package/cli/cli.js.map +0 -1
- package/cli/commands.js +0 -49
- package/cli/commands.js.map +0 -1
- package/config.js +0 -50
- package/config.js.map +0 -1
- package/module/module-file.d.ts +0 -9
- package/module/module-file.js +0 -97
- package/module/module-file.js.map +0 -1
- package/module/ts-module.d.ts +0 -35
- package/module/ts-module.js +0 -100
- package/module/ts-module.js.map +0 -1
- package/patch/get-patched-source.js +0 -69
- package/patch/get-patched-source.js.map +0 -1
- package/patch/transformers/fix-ts-early-return.js +0 -51
- package/patch/transformers/fix-ts-early-return.js.map +0 -1
- package/resources/module-patch.js +0 -609
- package/system/cache.js +0 -69
- package/system/cache.js.map +0 -1
- package/tsconfig.tsbuildinfo +0 -1
- package/utils/file-utils.js +0 -98
- package/utils/file-utils.js.map +0 -1
- /package/{actions → dist/actions}/check.d.ts +0 -0
- /package/{actions → dist/actions}/index.d.ts +0 -0
- /package/{actions → dist/actions}/index.js +0 -0
- /package/{actions → dist/actions}/index.js.map +0 -0
- /package/{actions → dist/actions}/install.d.ts +0 -0
- /package/{actions → dist/actions}/install.js +0 -0
- /package/{actions → dist/actions}/install.js.map +0 -0
- /package/{actions → dist/actions}/patch.d.ts +0 -0
- /package/{actions → dist/actions}/uninstall.d.ts +0 -0
- /package/{actions → dist/actions}/uninstall.js +0 -0
- /package/{actions → dist/actions}/uninstall.js.map +0 -0
- /package/{actions → dist/actions}/unpatch.d.ts +0 -0
- /package/{bin → dist/bin}/ts-patch.d.ts +0 -0
- /package/{bin → dist/bin}/tspc.d.ts +0 -0
- /package/{bin → dist/bin}/tspc.js +0 -0
- /package/{bin → dist/bin}/tspc.js.map +0 -0
- /package/{cli → dist/cli}/cli.d.ts +0 -0
- /package/{cli → dist/cli}/commands.d.ts +0 -0
- /package/{cli → dist/cli}/help-menu.d.ts +0 -0
- /package/{cli → dist/cli}/help-menu.js +0 -0
- /package/{cli → dist/cli}/help-menu.js.map +0 -0
- /package/{cli → dist/cli}/options.d.ts +0 -0
- /package/{cli → dist/cli}/options.js +0 -0
- /package/{cli → dist/cli}/options.js.map +0 -0
- /package/{compiler → dist/compiler}/package.json +0 -0
- /package/{compiler → dist/compiler}/tsc.js +0 -0
- /package/{compiler → dist/compiler}/tsserver.js +0 -0
- /package/{compiler → dist/compiler}/tsserverlibrary.js +0 -0
- /package/{compiler → dist/compiler}/typescript.js +0 -0
- /package/{config.d.ts → dist/config.d.ts} +0 -0
- /package/{index.d.ts → dist/index.d.ts} +0 -0
- /package/{index.js → dist/index.js} +0 -0
- /package/{index.js.map → dist/index.js.map} +0 -0
- /package/{module → dist/module}/get-live-module.d.ts +0 -0
- /package/{module → dist/module}/get-live-module.js +0 -0
- /package/{module → dist/module}/get-live-module.js.map +0 -0
- /package/{module → dist/module}/index.d.ts +0 -0
- /package/{module → dist/module}/index.js +0 -0
- /package/{module → dist/module}/index.js.map +0 -0
- /package/{module → dist/module}/module-source.d.ts +0 -0
- /package/{module → dist/module}/module-source.js +0 -0
- /package/{module → dist/module}/module-source.js.map +0 -0
- /package/{module → dist/module}/source-section.d.ts +0 -0
- /package/{module → dist/module}/source-section.js +0 -0
- /package/{module → dist/module}/source-section.js.map +0 -0
- /package/{options.d.ts → dist/options.d.ts} +0 -0
- /package/{options.js → dist/options.js} +0 -0
- /package/{options.js.map → dist/options.js.map} +0 -0
- /package/{patch → dist/patch}/get-patched-source.d.ts +0 -0
- /package/{patch → dist/patch}/patch-detail.d.ts +0 -0
- /package/{patch → dist/patch}/patch-detail.js +0 -0
- /package/{patch → dist/patch}/patch-detail.js.map +0 -0
- /package/{patch → dist/patch}/patch-module.d.ts +0 -0
- /package/{patch → dist/patch}/patch-module.js +0 -0
- /package/{patch → dist/patch}/patch-module.js.map +0 -0
- /package/{patch → dist/patch}/transformers/add-original-create-program.d.ts +0 -0
- /package/{patch → dist/patch}/transformers/add-original-create-program.js +0 -0
- /package/{patch → dist/patch}/transformers/add-original-create-program.js.map +0 -0
- /package/{patch → dist/patch}/transformers/fix-ts-early-return.d.ts +0 -0
- /package/{patch → dist/patch}/transformers/hook-tsc-exec.d.ts +0 -0
- /package/{patch → dist/patch}/transformers/hook-tsc-exec.js +0 -0
- /package/{patch → dist/patch}/transformers/hook-tsc-exec.js.map +0 -0
- /package/{patch → dist/patch}/transformers/index.d.ts +0 -0
- /package/{patch → dist/patch}/transformers/index.js +0 -0
- /package/{patch → dist/patch}/transformers/index.js.map +0 -0
- /package/{patch → dist/patch}/transformers/merge-statements.d.ts +0 -0
- /package/{patch → dist/patch}/transformers/merge-statements.js +0 -0
- /package/{patch → dist/patch}/transformers/merge-statements.js.map +0 -0
- /package/{patch → dist/patch}/transformers/patch-create-program.d.ts +0 -0
- /package/{patch → dist/patch}/transformers/patch-create-program.js +0 -0
- /package/{patch → dist/patch}/transformers/patch-create-program.js.map +0 -0
- /package/{patch → dist/patch}/transformers/patch-emitter.d.ts +0 -0
- /package/{patch → dist/patch}/transformers/patch-emitter.js +0 -0
- /package/{patch → dist/patch}/transformers/patch-emitter.js.map +0 -0
- /package/{plugin-types.d.ts → dist/plugin-types.d.ts} +0 -0
- /package/{plugin-types.js → dist/plugin-types.js} +0 -0
- /package/{plugin-types.js.map → dist/plugin-types.js.map} +0 -0
- /package/{resources → dist/resources}/module-patch.d.ts +0 -0
- /package/{slice → dist/slice}/module-slice.d.ts +0 -0
- /package/{slice → dist/slice}/module-slice.js +0 -0
- /package/{slice → dist/slice}/module-slice.js.map +0 -0
- /package/{slice → dist/slice}/ts54.d.ts +0 -0
- /package/{slice → dist/slice}/ts54.js +0 -0
- /package/{slice → dist/slice}/ts54.js.map +0 -0
- /package/{slice → dist/slice}/ts55.d.ts +0 -0
- /package/{slice → dist/slice}/ts55.js +0 -0
- /package/{slice → dist/slice}/ts55.js.map +0 -0
- /package/{slice → dist/slice}/ts552.d.ts +0 -0
- /package/{slice → dist/slice}/ts552.js +0 -0
- /package/{slice → dist/slice}/ts552.js.map +0 -0
- /package/{system → dist/system}/cache.d.ts +0 -0
- /package/{system → dist/system}/errors.d.ts +0 -0
- /package/{system → dist/system}/errors.js +0 -0
- /package/{system → dist/system}/errors.js.map +0 -0
- /package/{system → dist/system}/index.d.ts +0 -0
- /package/{system → dist/system}/index.js +0 -0
- /package/{system → dist/system}/index.js.map +0 -0
- /package/{system → dist/system}/logger.d.ts +0 -0
- /package/{system → dist/system}/logger.js +0 -0
- /package/{system → dist/system}/logger.js.map +0 -0
- /package/{system → dist/system}/types.d.ts +0 -0
- /package/{system → dist/system}/types.js +0 -0
- /package/{system → dist/system}/types.js.map +0 -0
- /package/{ts-package.d.ts → dist/ts-package.d.ts} +0 -0
- /package/{ts-package.js → dist/ts-package.js} +0 -0
- /package/{ts-package.js.map → dist/ts-package.js.map} +0 -0
- /package/{utils → dist/utils}/file-utils.d.ts +0 -0
- /package/{utils → dist/utils}/find-cache-dir.d.ts +0 -0
- /package/{utils → dist/utils}/find-cache-dir.js +0 -0
- /package/{utils → dist/utils}/find-cache-dir.js.map +0 -0
- /package/{utils → dist/utils}/general.d.ts +0 -0
- /package/{utils → dist/utils}/general.js +0 -0
- /package/{utils → dist/utils}/general.js.map +0 -0
- /package/{utils → dist/utils}/index.d.ts +0 -0
- /package/{utils → dist/utils}/index.js +0 -0
- /package/{utils → dist/utils}/index.js.map +0 -0
|
@@ -0,0 +1,922 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `node:dns` module enables name resolution. For example, use it to look up IP
|
|
3
|
+
* addresses of host names.
|
|
4
|
+
*
|
|
5
|
+
* Although named for the [Domain Name System (DNS)](https://en.wikipedia.org/wiki/Domain_Name_System), it does not always use the
|
|
6
|
+
* DNS protocol for lookups. {@link lookup} uses the operating system
|
|
7
|
+
* facilities to perform name resolution. It may not need to perform any network
|
|
8
|
+
* communication. To perform name resolution the way other applications on the same
|
|
9
|
+
* system do, use {@link lookup}.
|
|
10
|
+
*
|
|
11
|
+
* ```js
|
|
12
|
+
* import dns from 'node:dns';
|
|
13
|
+
*
|
|
14
|
+
* dns.lookup('example.org', (err, address, family) => {
|
|
15
|
+
* console.log('address: %j family: IPv%s', address, family);
|
|
16
|
+
* });
|
|
17
|
+
* // address: "93.184.216.34" family: IPv4
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* All other functions in the `node:dns` module connect to an actual DNS server to
|
|
21
|
+
* perform name resolution. They will always use the network to perform DNS
|
|
22
|
+
* queries. These functions do not use the same set of configuration files used by {@link lookup} (e.g. `/etc/hosts`). Use these functions to always perform
|
|
23
|
+
* DNS queries, bypassing other name-resolution facilities.
|
|
24
|
+
*
|
|
25
|
+
* ```js
|
|
26
|
+
* import dns from 'node:dns';
|
|
27
|
+
*
|
|
28
|
+
* dns.resolve4('archive.org', (err, addresses) => {
|
|
29
|
+
* if (err) throw err;
|
|
30
|
+
*
|
|
31
|
+
* console.log(`addresses: ${JSON.stringify(addresses)}`);
|
|
32
|
+
*
|
|
33
|
+
* addresses.forEach((a) => {
|
|
34
|
+
* dns.reverse(a, (err, hostnames) => {
|
|
35
|
+
* if (err) {
|
|
36
|
+
* throw err;
|
|
37
|
+
* }
|
|
38
|
+
* console.log(`reverse for ${a}: ${JSON.stringify(hostnames)}`);
|
|
39
|
+
* });
|
|
40
|
+
* });
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*
|
|
44
|
+
* See the [Implementation considerations section](https://nodejs.org/docs/latest-v25.x/api/dns.html#implementation-considerations) for more information.
|
|
45
|
+
* @see [source](https://github.com/nodejs/node/blob/v25.x/lib/dns.js)
|
|
46
|
+
*/
|
|
47
|
+
declare module "node:dns" {
|
|
48
|
+
// Supported getaddrinfo flags.
|
|
49
|
+
/**
|
|
50
|
+
* Limits returned address types to the types of non-loopback addresses configured on the system. For example, IPv4 addresses are
|
|
51
|
+
* only returned if the current system has at least one IPv4 address configured.
|
|
52
|
+
*/
|
|
53
|
+
const ADDRCONFIG: number;
|
|
54
|
+
/**
|
|
55
|
+
* If the IPv6 family was specified, but no IPv6 addresses were found, then return IPv4 mapped IPv6 addresses. It is not supported
|
|
56
|
+
* on some operating systems (e.g. FreeBSD 10.1).
|
|
57
|
+
*/
|
|
58
|
+
const V4MAPPED: number;
|
|
59
|
+
/**
|
|
60
|
+
* If `dns.V4MAPPED` is specified, return resolved IPv6 addresses as
|
|
61
|
+
* well as IPv4 mapped IPv6 addresses.
|
|
62
|
+
*/
|
|
63
|
+
const ALL: number;
|
|
64
|
+
interface LookupOptions {
|
|
65
|
+
/**
|
|
66
|
+
* The record family. Must be `4`, `6`, or `0`. For backward compatibility reasons, `'IPv4'` and `'IPv6'` are interpreted
|
|
67
|
+
* as `4` and `6` respectively. The value 0 indicates that either an IPv4 or IPv6 address is returned. If the value `0` is used
|
|
68
|
+
* with `{ all: true } (see below)`, both IPv4 and IPv6 addresses are returned.
|
|
69
|
+
* @default 0
|
|
70
|
+
*/
|
|
71
|
+
family?: number | "IPv4" | "IPv6" | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* One or more [supported `getaddrinfo`](https://nodejs.org/docs/latest-v25.x/api/dns.html#supported-getaddrinfo-flags) flags. Multiple flags may be
|
|
74
|
+
* passed by bitwise `OR`ing their values.
|
|
75
|
+
*/
|
|
76
|
+
hints?: number | undefined;
|
|
77
|
+
/**
|
|
78
|
+
* When `true`, the callback returns all resolved addresses in an array. Otherwise, returns a single address.
|
|
79
|
+
* @default false
|
|
80
|
+
*/
|
|
81
|
+
all?: boolean | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* When `verbatim`, the resolved addresses are return unsorted. When `ipv4first`, the resolved addresses are sorted
|
|
84
|
+
* by placing IPv4 addresses before IPv6 addresses. When `ipv6first`, the resolved addresses are sorted by placing IPv6
|
|
85
|
+
* addresses before IPv4 addresses. Default value is configurable using
|
|
86
|
+
* {@link setDefaultResultOrder} or [`--dns-result-order`](https://nodejs.org/docs/latest-v25.x/api/cli.html#--dns-result-orderorder).
|
|
87
|
+
* @default `verbatim` (addresses are not reordered)
|
|
88
|
+
* @since v22.1.0
|
|
89
|
+
*/
|
|
90
|
+
order?: "ipv4first" | "ipv6first" | "verbatim" | undefined;
|
|
91
|
+
/**
|
|
92
|
+
* When `true`, the callback receives IPv4 and IPv6 addresses in the order the DNS resolver returned them. When `false`, IPv4
|
|
93
|
+
* addresses are placed before IPv6 addresses. This option will be deprecated in favor of `order`. When both are specified,
|
|
94
|
+
* `order` has higher precedence. New code should only use `order`. Default value is configurable using {@link setDefaultResultOrder}
|
|
95
|
+
* @default true (addresses are not reordered)
|
|
96
|
+
* @deprecated Please use `order` option
|
|
97
|
+
*/
|
|
98
|
+
verbatim?: boolean | undefined;
|
|
99
|
+
}
|
|
100
|
+
interface LookupOneOptions extends LookupOptions {
|
|
101
|
+
all?: false | undefined;
|
|
102
|
+
}
|
|
103
|
+
interface LookupAllOptions extends LookupOptions {
|
|
104
|
+
all: true;
|
|
105
|
+
}
|
|
106
|
+
interface LookupAddress {
|
|
107
|
+
/**
|
|
108
|
+
* A string representation of an IPv4 or IPv6 address.
|
|
109
|
+
*/
|
|
110
|
+
address: string;
|
|
111
|
+
/**
|
|
112
|
+
* `4` or `6`, denoting the family of `address`, or `0` if the address is not an IPv4 or IPv6 address. `0` is a likely indicator of a
|
|
113
|
+
* bug in the name resolution service used by the operating system.
|
|
114
|
+
*/
|
|
115
|
+
family: number;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Resolves a host name (e.g. `'nodejs.org'`) into the first found A (IPv4) or
|
|
119
|
+
* AAAA (IPv6) record. All `option` properties are optional. If `options` is an
|
|
120
|
+
* integer, then it must be `4` or `6` – if `options` is `0` or not provided, then
|
|
121
|
+
* IPv4 and IPv6 addresses are both returned if found.
|
|
122
|
+
*
|
|
123
|
+
* With the `all` option set to `true`, the arguments for `callback` change to `(err, addresses)`, with `addresses` being an array of objects with the
|
|
124
|
+
* properties `address` and `family`.
|
|
125
|
+
*
|
|
126
|
+
* On error, `err` is an `Error` object, where `err.code` is the error code.
|
|
127
|
+
* Keep in mind that `err.code` will be set to `'ENOTFOUND'` not only when
|
|
128
|
+
* the host name does not exist but also when the lookup fails in other ways
|
|
129
|
+
* such as no available file descriptors.
|
|
130
|
+
*
|
|
131
|
+
* `dns.lookup()` does not necessarily have anything to do with the DNS protocol.
|
|
132
|
+
* The implementation uses an operating system facility that can associate names
|
|
133
|
+
* with addresses and vice versa. This implementation can have subtle but
|
|
134
|
+
* important consequences on the behavior of any Node.js program. Please take some
|
|
135
|
+
* time to consult the [Implementation considerations section](https://nodejs.org/docs/latest-v25.x/api/dns.html#implementation-considerations)
|
|
136
|
+
* before using `dns.lookup()`.
|
|
137
|
+
*
|
|
138
|
+
* Example usage:
|
|
139
|
+
*
|
|
140
|
+
* ```js
|
|
141
|
+
* import dns from 'node:dns';
|
|
142
|
+
* const options = {
|
|
143
|
+
* family: 6,
|
|
144
|
+
* hints: dns.ADDRCONFIG | dns.V4MAPPED,
|
|
145
|
+
* };
|
|
146
|
+
* dns.lookup('example.com', options, (err, address, family) =>
|
|
147
|
+
* console.log('address: %j family: IPv%s', address, family));
|
|
148
|
+
* // address: "2606:2800:220:1:248:1893:25c8:1946" family: IPv6
|
|
149
|
+
*
|
|
150
|
+
* // When options.all is true, the result will be an Array.
|
|
151
|
+
* options.all = true;
|
|
152
|
+
* dns.lookup('example.com', options, (err, addresses) =>
|
|
153
|
+
* console.log('addresses: %j', addresses));
|
|
154
|
+
* // addresses: [{"address":"2606:2800:220:1:248:1893:25c8:1946","family":6}]
|
|
155
|
+
* ```
|
|
156
|
+
*
|
|
157
|
+
* If this method is invoked as its [util.promisify()](https://nodejs.org/docs/latest-v25.x/api/util.html#utilpromisifyoriginal) ed
|
|
158
|
+
* version, and `all` is not set to `true`, it returns a `Promise` for an `Object` with `address` and `family` properties.
|
|
159
|
+
* @since v0.1.90
|
|
160
|
+
*/
|
|
161
|
+
function lookup(
|
|
162
|
+
hostname: string,
|
|
163
|
+
family: number,
|
|
164
|
+
callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void,
|
|
165
|
+
): void;
|
|
166
|
+
function lookup(
|
|
167
|
+
hostname: string,
|
|
168
|
+
options: LookupOneOptions,
|
|
169
|
+
callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void,
|
|
170
|
+
): void;
|
|
171
|
+
function lookup(
|
|
172
|
+
hostname: string,
|
|
173
|
+
options: LookupAllOptions,
|
|
174
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: LookupAddress[]) => void,
|
|
175
|
+
): void;
|
|
176
|
+
function lookup(
|
|
177
|
+
hostname: string,
|
|
178
|
+
options: LookupOptions,
|
|
179
|
+
callback: (err: NodeJS.ErrnoException | null, address: string | LookupAddress[], family: number) => void,
|
|
180
|
+
): void;
|
|
181
|
+
function lookup(
|
|
182
|
+
hostname: string,
|
|
183
|
+
callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void,
|
|
184
|
+
): void;
|
|
185
|
+
namespace lookup {
|
|
186
|
+
function __promisify__(hostname: string, options: LookupAllOptions): Promise<LookupAddress[]>;
|
|
187
|
+
function __promisify__(hostname: string, options?: LookupOneOptions | number): Promise<LookupAddress>;
|
|
188
|
+
function __promisify__(hostname: string, options: LookupOptions): Promise<LookupAddress | LookupAddress[]>;
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Resolves the given `address` and `port` into a host name and service using
|
|
192
|
+
* the operating system's underlying `getnameinfo` implementation.
|
|
193
|
+
*
|
|
194
|
+
* If `address` is not a valid IP address, a `TypeError` will be thrown.
|
|
195
|
+
* The `port` will be coerced to a number. If it is not a legal port, a `TypeError` will be thrown.
|
|
196
|
+
*
|
|
197
|
+
* On an error, `err` is an [`Error`](https://nodejs.org/docs/latest-v25.x/api/errors.html#class-error) object,
|
|
198
|
+
* where `err.code` is the error code.
|
|
199
|
+
*
|
|
200
|
+
* ```js
|
|
201
|
+
* import dns from 'node:dns';
|
|
202
|
+
* dns.lookupService('127.0.0.1', 22, (err, hostname, service) => {
|
|
203
|
+
* console.log(hostname, service);
|
|
204
|
+
* // Prints: localhost ssh
|
|
205
|
+
* });
|
|
206
|
+
* ```
|
|
207
|
+
*
|
|
208
|
+
* If this method is invoked as its [util.promisify()](https://nodejs.org/docs/latest-v25.x/api/util.html#utilpromisifyoriginal) ed
|
|
209
|
+
* version, it returns a `Promise` for an `Object` with `hostname` and `service` properties.
|
|
210
|
+
* @since v0.11.14
|
|
211
|
+
*/
|
|
212
|
+
function lookupService(
|
|
213
|
+
address: string,
|
|
214
|
+
port: number,
|
|
215
|
+
callback: (err: NodeJS.ErrnoException | null, hostname: string, service: string) => void,
|
|
216
|
+
): void;
|
|
217
|
+
namespace lookupService {
|
|
218
|
+
function __promisify__(
|
|
219
|
+
address: string,
|
|
220
|
+
port: number,
|
|
221
|
+
): Promise<{
|
|
222
|
+
hostname: string;
|
|
223
|
+
service: string;
|
|
224
|
+
}>;
|
|
225
|
+
}
|
|
226
|
+
interface ResolveOptions {
|
|
227
|
+
ttl: boolean;
|
|
228
|
+
}
|
|
229
|
+
interface ResolveWithTtlOptions extends ResolveOptions {
|
|
230
|
+
ttl: true;
|
|
231
|
+
}
|
|
232
|
+
interface RecordWithTtl {
|
|
233
|
+
address: string;
|
|
234
|
+
ttl: number;
|
|
235
|
+
}
|
|
236
|
+
interface AnyARecord extends RecordWithTtl {
|
|
237
|
+
type: "A";
|
|
238
|
+
}
|
|
239
|
+
interface AnyAaaaRecord extends RecordWithTtl {
|
|
240
|
+
type: "AAAA";
|
|
241
|
+
}
|
|
242
|
+
interface CaaRecord {
|
|
243
|
+
critical: number;
|
|
244
|
+
issue?: string | undefined;
|
|
245
|
+
issuewild?: string | undefined;
|
|
246
|
+
iodef?: string | undefined;
|
|
247
|
+
contactemail?: string | undefined;
|
|
248
|
+
contactphone?: string | undefined;
|
|
249
|
+
}
|
|
250
|
+
interface AnyCaaRecord extends CaaRecord {
|
|
251
|
+
type: "CAA";
|
|
252
|
+
}
|
|
253
|
+
interface MxRecord {
|
|
254
|
+
priority: number;
|
|
255
|
+
exchange: string;
|
|
256
|
+
}
|
|
257
|
+
interface AnyMxRecord extends MxRecord {
|
|
258
|
+
type: "MX";
|
|
259
|
+
}
|
|
260
|
+
interface NaptrRecord {
|
|
261
|
+
flags: string;
|
|
262
|
+
service: string;
|
|
263
|
+
regexp: string;
|
|
264
|
+
replacement: string;
|
|
265
|
+
order: number;
|
|
266
|
+
preference: number;
|
|
267
|
+
}
|
|
268
|
+
interface AnyNaptrRecord extends NaptrRecord {
|
|
269
|
+
type: "NAPTR";
|
|
270
|
+
}
|
|
271
|
+
interface SoaRecord {
|
|
272
|
+
nsname: string;
|
|
273
|
+
hostmaster: string;
|
|
274
|
+
serial: number;
|
|
275
|
+
refresh: number;
|
|
276
|
+
retry: number;
|
|
277
|
+
expire: number;
|
|
278
|
+
minttl: number;
|
|
279
|
+
}
|
|
280
|
+
interface AnySoaRecord extends SoaRecord {
|
|
281
|
+
type: "SOA";
|
|
282
|
+
}
|
|
283
|
+
interface SrvRecord {
|
|
284
|
+
priority: number;
|
|
285
|
+
weight: number;
|
|
286
|
+
port: number;
|
|
287
|
+
name: string;
|
|
288
|
+
}
|
|
289
|
+
interface AnySrvRecord extends SrvRecord {
|
|
290
|
+
type: "SRV";
|
|
291
|
+
}
|
|
292
|
+
interface TlsaRecord {
|
|
293
|
+
certUsage: number;
|
|
294
|
+
selector: number;
|
|
295
|
+
match: number;
|
|
296
|
+
data: ArrayBuffer;
|
|
297
|
+
}
|
|
298
|
+
interface AnyTlsaRecord extends TlsaRecord {
|
|
299
|
+
type: "TLSA";
|
|
300
|
+
}
|
|
301
|
+
interface AnyTxtRecord {
|
|
302
|
+
type: "TXT";
|
|
303
|
+
entries: string[];
|
|
304
|
+
}
|
|
305
|
+
interface AnyNsRecord {
|
|
306
|
+
type: "NS";
|
|
307
|
+
value: string;
|
|
308
|
+
}
|
|
309
|
+
interface AnyPtrRecord {
|
|
310
|
+
type: "PTR";
|
|
311
|
+
value: string;
|
|
312
|
+
}
|
|
313
|
+
interface AnyCnameRecord {
|
|
314
|
+
type: "CNAME";
|
|
315
|
+
value: string;
|
|
316
|
+
}
|
|
317
|
+
type AnyRecord =
|
|
318
|
+
| AnyARecord
|
|
319
|
+
| AnyAaaaRecord
|
|
320
|
+
| AnyCaaRecord
|
|
321
|
+
| AnyCnameRecord
|
|
322
|
+
| AnyMxRecord
|
|
323
|
+
| AnyNaptrRecord
|
|
324
|
+
| AnyNsRecord
|
|
325
|
+
| AnyPtrRecord
|
|
326
|
+
| AnySoaRecord
|
|
327
|
+
| AnySrvRecord
|
|
328
|
+
| AnyTlsaRecord
|
|
329
|
+
| AnyTxtRecord;
|
|
330
|
+
/**
|
|
331
|
+
* Uses the DNS protocol to resolve a host name (e.g. `'nodejs.org'`) into an array
|
|
332
|
+
* of the resource records. The `callback` function has arguments `(err, records)`. When successful, `records` will be an array of resource
|
|
333
|
+
* records. The type and structure of individual results varies based on `rrtype`:
|
|
334
|
+
*
|
|
335
|
+
* <omitted>
|
|
336
|
+
*
|
|
337
|
+
* On error, `err` is an [`Error`](https://nodejs.org/docs/latest-v25.x/api/errors.html#class-error) object,
|
|
338
|
+
* where `err.code` is one of the `DNS error codes`.
|
|
339
|
+
* @since v0.1.27
|
|
340
|
+
* @param hostname Host name to resolve.
|
|
341
|
+
* @param [rrtype='A'] Resource record type.
|
|
342
|
+
*/
|
|
343
|
+
function resolve(
|
|
344
|
+
hostname: string,
|
|
345
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
|
|
346
|
+
): void;
|
|
347
|
+
function resolve(
|
|
348
|
+
hostname: string,
|
|
349
|
+
rrtype: "A" | "AAAA" | "CNAME" | "NS" | "PTR",
|
|
350
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
|
|
351
|
+
): void;
|
|
352
|
+
function resolve(
|
|
353
|
+
hostname: string,
|
|
354
|
+
rrtype: "ANY",
|
|
355
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: AnyRecord[]) => void,
|
|
356
|
+
): void;
|
|
357
|
+
function resolve(
|
|
358
|
+
hostname: string,
|
|
359
|
+
rrtype: "CAA",
|
|
360
|
+
callback: (err: NodeJS.ErrnoException | null, address: CaaRecord[]) => void,
|
|
361
|
+
): void;
|
|
362
|
+
function resolve(
|
|
363
|
+
hostname: string,
|
|
364
|
+
rrtype: "MX",
|
|
365
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: MxRecord[]) => void,
|
|
366
|
+
): void;
|
|
367
|
+
function resolve(
|
|
368
|
+
hostname: string,
|
|
369
|
+
rrtype: "NAPTR",
|
|
370
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: NaptrRecord[]) => void,
|
|
371
|
+
): void;
|
|
372
|
+
function resolve(
|
|
373
|
+
hostname: string,
|
|
374
|
+
rrtype: "SOA",
|
|
375
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: SoaRecord) => void,
|
|
376
|
+
): void;
|
|
377
|
+
function resolve(
|
|
378
|
+
hostname: string,
|
|
379
|
+
rrtype: "SRV",
|
|
380
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: SrvRecord[]) => void,
|
|
381
|
+
): void;
|
|
382
|
+
function resolve(
|
|
383
|
+
hostname: string,
|
|
384
|
+
rrtype: "TLSA",
|
|
385
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: TlsaRecord[]) => void,
|
|
386
|
+
): void;
|
|
387
|
+
function resolve(
|
|
388
|
+
hostname: string,
|
|
389
|
+
rrtype: "TXT",
|
|
390
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: string[][]) => void,
|
|
391
|
+
): void;
|
|
392
|
+
function resolve(
|
|
393
|
+
hostname: string,
|
|
394
|
+
rrtype: string,
|
|
395
|
+
callback: (
|
|
396
|
+
err: NodeJS.ErrnoException | null,
|
|
397
|
+
addresses:
|
|
398
|
+
| string[]
|
|
399
|
+
| CaaRecord[]
|
|
400
|
+
| MxRecord[]
|
|
401
|
+
| NaptrRecord[]
|
|
402
|
+
| SoaRecord
|
|
403
|
+
| SrvRecord[]
|
|
404
|
+
| TlsaRecord[]
|
|
405
|
+
| string[][]
|
|
406
|
+
| AnyRecord[],
|
|
407
|
+
) => void,
|
|
408
|
+
): void;
|
|
409
|
+
namespace resolve {
|
|
410
|
+
function __promisify__(hostname: string, rrtype?: "A" | "AAAA" | "CNAME" | "NS" | "PTR"): Promise<string[]>;
|
|
411
|
+
function __promisify__(hostname: string, rrtype: "ANY"): Promise<AnyRecord[]>;
|
|
412
|
+
function __promisify__(hostname: string, rrtype: "CAA"): Promise<CaaRecord[]>;
|
|
413
|
+
function __promisify__(hostname: string, rrtype: "MX"): Promise<MxRecord[]>;
|
|
414
|
+
function __promisify__(hostname: string, rrtype: "NAPTR"): Promise<NaptrRecord[]>;
|
|
415
|
+
function __promisify__(hostname: string, rrtype: "SOA"): Promise<SoaRecord>;
|
|
416
|
+
function __promisify__(hostname: string, rrtype: "SRV"): Promise<SrvRecord[]>;
|
|
417
|
+
function __promisify__(hostname: string, rrtype: "TLSA"): Promise<TlsaRecord[]>;
|
|
418
|
+
function __promisify__(hostname: string, rrtype: "TXT"): Promise<string[][]>;
|
|
419
|
+
function __promisify__(
|
|
420
|
+
hostname: string,
|
|
421
|
+
rrtype: string,
|
|
422
|
+
): Promise<
|
|
423
|
+
| string[]
|
|
424
|
+
| CaaRecord[]
|
|
425
|
+
| MxRecord[]
|
|
426
|
+
| NaptrRecord[]
|
|
427
|
+
| SoaRecord
|
|
428
|
+
| SrvRecord[]
|
|
429
|
+
| TlsaRecord[]
|
|
430
|
+
| string[][]
|
|
431
|
+
| AnyRecord[]
|
|
432
|
+
>;
|
|
433
|
+
}
|
|
434
|
+
/**
|
|
435
|
+
* Uses the DNS protocol to resolve a IPv4 addresses (`A` records) for the `hostname`. The `addresses` argument passed to the `callback` function
|
|
436
|
+
* will contain an array of IPv4 addresses (e.g.`['74.125.79.104', '74.125.79.105', '74.125.79.106']`).
|
|
437
|
+
* @since v0.1.16
|
|
438
|
+
* @param hostname Host name to resolve.
|
|
439
|
+
*/
|
|
440
|
+
function resolve4(
|
|
441
|
+
hostname: string,
|
|
442
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
|
|
443
|
+
): void;
|
|
444
|
+
function resolve4(
|
|
445
|
+
hostname: string,
|
|
446
|
+
options: ResolveWithTtlOptions,
|
|
447
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: RecordWithTtl[]) => void,
|
|
448
|
+
): void;
|
|
449
|
+
function resolve4(
|
|
450
|
+
hostname: string,
|
|
451
|
+
options: ResolveOptions,
|
|
452
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: string[] | RecordWithTtl[]) => void,
|
|
453
|
+
): void;
|
|
454
|
+
namespace resolve4 {
|
|
455
|
+
function __promisify__(hostname: string): Promise<string[]>;
|
|
456
|
+
function __promisify__(hostname: string, options: ResolveWithTtlOptions): Promise<RecordWithTtl[]>;
|
|
457
|
+
function __promisify__(hostname: string, options?: ResolveOptions): Promise<string[] | RecordWithTtl[]>;
|
|
458
|
+
}
|
|
459
|
+
/**
|
|
460
|
+
* Uses the DNS protocol to resolve IPv6 addresses (`AAAA` records) for the `hostname`. The `addresses` argument passed to the `callback` function
|
|
461
|
+
* will contain an array of IPv6 addresses.
|
|
462
|
+
* @since v0.1.16
|
|
463
|
+
* @param hostname Host name to resolve.
|
|
464
|
+
*/
|
|
465
|
+
function resolve6(
|
|
466
|
+
hostname: string,
|
|
467
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
|
|
468
|
+
): void;
|
|
469
|
+
function resolve6(
|
|
470
|
+
hostname: string,
|
|
471
|
+
options: ResolveWithTtlOptions,
|
|
472
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: RecordWithTtl[]) => void,
|
|
473
|
+
): void;
|
|
474
|
+
function resolve6(
|
|
475
|
+
hostname: string,
|
|
476
|
+
options: ResolveOptions,
|
|
477
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: string[] | RecordWithTtl[]) => void,
|
|
478
|
+
): void;
|
|
479
|
+
namespace resolve6 {
|
|
480
|
+
function __promisify__(hostname: string): Promise<string[]>;
|
|
481
|
+
function __promisify__(hostname: string, options: ResolveWithTtlOptions): Promise<RecordWithTtl[]>;
|
|
482
|
+
function __promisify__(hostname: string, options?: ResolveOptions): Promise<string[] | RecordWithTtl[]>;
|
|
483
|
+
}
|
|
484
|
+
/**
|
|
485
|
+
* Uses the DNS protocol to resolve `CNAME` records for the `hostname`. The `addresses` argument passed to the `callback` function
|
|
486
|
+
* will contain an array of canonical name records available for the `hostname` (e.g. `['bar.example.com']`).
|
|
487
|
+
* @since v0.3.2
|
|
488
|
+
*/
|
|
489
|
+
function resolveCname(
|
|
490
|
+
hostname: string,
|
|
491
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
|
|
492
|
+
): void;
|
|
493
|
+
namespace resolveCname {
|
|
494
|
+
function __promisify__(hostname: string): Promise<string[]>;
|
|
495
|
+
}
|
|
496
|
+
/**
|
|
497
|
+
* Uses the DNS protocol to resolve `CAA` records for the `hostname`. The `addresses` argument passed to the `callback` function
|
|
498
|
+
* will contain an array of certification authority authorization records
|
|
499
|
+
* available for the `hostname` (e.g. `[{critical: 0, iodef: 'mailto:pki@example.com'}, {critical: 128, issue: 'pki.example.com'}]`).
|
|
500
|
+
* @since v15.0.0, v14.17.0
|
|
501
|
+
*/
|
|
502
|
+
function resolveCaa(
|
|
503
|
+
hostname: string,
|
|
504
|
+
callback: (err: NodeJS.ErrnoException | null, records: CaaRecord[]) => void,
|
|
505
|
+
): void;
|
|
506
|
+
namespace resolveCaa {
|
|
507
|
+
function __promisify__(hostname: string): Promise<CaaRecord[]>;
|
|
508
|
+
}
|
|
509
|
+
/**
|
|
510
|
+
* Uses the DNS protocol to resolve mail exchange records (`MX` records) for the `hostname`. The `addresses` argument passed to the `callback` function will
|
|
511
|
+
* contain an array of objects containing both a `priority` and `exchange` property (e.g. `[{priority: 10, exchange: 'mx.example.com'}, ...]`).
|
|
512
|
+
* @since v0.1.27
|
|
513
|
+
*/
|
|
514
|
+
function resolveMx(
|
|
515
|
+
hostname: string,
|
|
516
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: MxRecord[]) => void,
|
|
517
|
+
): void;
|
|
518
|
+
namespace resolveMx {
|
|
519
|
+
function __promisify__(hostname: string): Promise<MxRecord[]>;
|
|
520
|
+
}
|
|
521
|
+
/**
|
|
522
|
+
* Uses the DNS protocol to resolve regular expression-based records (`NAPTR` records) for the `hostname`. The `addresses` argument passed to the `callback` function will contain an array of
|
|
523
|
+
* objects with the following properties:
|
|
524
|
+
*
|
|
525
|
+
* * `flags`
|
|
526
|
+
* * `service`
|
|
527
|
+
* * `regexp`
|
|
528
|
+
* * `replacement`
|
|
529
|
+
* * `order`
|
|
530
|
+
* * `preference`
|
|
531
|
+
*
|
|
532
|
+
* ```js
|
|
533
|
+
* {
|
|
534
|
+
* flags: 's',
|
|
535
|
+
* service: 'SIP+D2U',
|
|
536
|
+
* regexp: '',
|
|
537
|
+
* replacement: '_sip._udp.example.com',
|
|
538
|
+
* order: 30,
|
|
539
|
+
* preference: 100
|
|
540
|
+
* }
|
|
541
|
+
* ```
|
|
542
|
+
* @since v0.9.12
|
|
543
|
+
*/
|
|
544
|
+
function resolveNaptr(
|
|
545
|
+
hostname: string,
|
|
546
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: NaptrRecord[]) => void,
|
|
547
|
+
): void;
|
|
548
|
+
namespace resolveNaptr {
|
|
549
|
+
function __promisify__(hostname: string): Promise<NaptrRecord[]>;
|
|
550
|
+
}
|
|
551
|
+
/**
|
|
552
|
+
* Uses the DNS protocol to resolve name server records (`NS` records) for the `hostname`. The `addresses` argument passed to the `callback` function will
|
|
553
|
+
* contain an array of name server records available for `hostname` (e.g. `['ns1.example.com', 'ns2.example.com']`).
|
|
554
|
+
* @since v0.1.90
|
|
555
|
+
*/
|
|
556
|
+
function resolveNs(
|
|
557
|
+
hostname: string,
|
|
558
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
|
|
559
|
+
): void;
|
|
560
|
+
namespace resolveNs {
|
|
561
|
+
function __promisify__(hostname: string): Promise<string[]>;
|
|
562
|
+
}
|
|
563
|
+
/**
|
|
564
|
+
* Uses the DNS protocol to resolve pointer records (`PTR` records) for the `hostname`. The `addresses` argument passed to the `callback` function will
|
|
565
|
+
* be an array of strings containing the reply records.
|
|
566
|
+
* @since v6.0.0
|
|
567
|
+
*/
|
|
568
|
+
function resolvePtr(
|
|
569
|
+
hostname: string,
|
|
570
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
|
|
571
|
+
): void;
|
|
572
|
+
namespace resolvePtr {
|
|
573
|
+
function __promisify__(hostname: string): Promise<string[]>;
|
|
574
|
+
}
|
|
575
|
+
/**
|
|
576
|
+
* Uses the DNS protocol to resolve a start of authority record (`SOA` record) for
|
|
577
|
+
* the `hostname`. The `address` argument passed to the `callback` function will
|
|
578
|
+
* be an object with the following properties:
|
|
579
|
+
*
|
|
580
|
+
* * `nsname`
|
|
581
|
+
* * `hostmaster`
|
|
582
|
+
* * `serial`
|
|
583
|
+
* * `refresh`
|
|
584
|
+
* * `retry`
|
|
585
|
+
* * `expire`
|
|
586
|
+
* * `minttl`
|
|
587
|
+
*
|
|
588
|
+
* ```js
|
|
589
|
+
* {
|
|
590
|
+
* nsname: 'ns.example.com',
|
|
591
|
+
* hostmaster: 'root.example.com',
|
|
592
|
+
* serial: 2013101809,
|
|
593
|
+
* refresh: 10000,
|
|
594
|
+
* retry: 2400,
|
|
595
|
+
* expire: 604800,
|
|
596
|
+
* minttl: 3600
|
|
597
|
+
* }
|
|
598
|
+
* ```
|
|
599
|
+
* @since v0.11.10
|
|
600
|
+
*/
|
|
601
|
+
function resolveSoa(
|
|
602
|
+
hostname: string,
|
|
603
|
+
callback: (err: NodeJS.ErrnoException | null, address: SoaRecord) => void,
|
|
604
|
+
): void;
|
|
605
|
+
namespace resolveSoa {
|
|
606
|
+
function __promisify__(hostname: string): Promise<SoaRecord>;
|
|
607
|
+
}
|
|
608
|
+
/**
|
|
609
|
+
* Uses the DNS protocol to resolve service records (`SRV` records) for the `hostname`. The `addresses` argument passed to the `callback` function will
|
|
610
|
+
* be an array of objects with the following properties:
|
|
611
|
+
*
|
|
612
|
+
* * `priority`
|
|
613
|
+
* * `weight`
|
|
614
|
+
* * `port`
|
|
615
|
+
* * `name`
|
|
616
|
+
*
|
|
617
|
+
* ```js
|
|
618
|
+
* {
|
|
619
|
+
* priority: 10,
|
|
620
|
+
* weight: 5,
|
|
621
|
+
* port: 21223,
|
|
622
|
+
* name: 'service.example.com'
|
|
623
|
+
* }
|
|
624
|
+
* ```
|
|
625
|
+
* @since v0.1.27
|
|
626
|
+
*/
|
|
627
|
+
function resolveSrv(
|
|
628
|
+
hostname: string,
|
|
629
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: SrvRecord[]) => void,
|
|
630
|
+
): void;
|
|
631
|
+
namespace resolveSrv {
|
|
632
|
+
function __promisify__(hostname: string): Promise<SrvRecord[]>;
|
|
633
|
+
}
|
|
634
|
+
/**
|
|
635
|
+
* Uses the DNS protocol to resolve certificate associations (`TLSA` records) for
|
|
636
|
+
* the `hostname`. The `records` argument passed to the `callback` function is an
|
|
637
|
+
* array of objects with these properties:
|
|
638
|
+
*
|
|
639
|
+
* * `certUsage`
|
|
640
|
+
* * `selector`
|
|
641
|
+
* * `match`
|
|
642
|
+
* * `data`
|
|
643
|
+
*
|
|
644
|
+
* ```js
|
|
645
|
+
* {
|
|
646
|
+
* certUsage: 3,
|
|
647
|
+
* selector: 1,
|
|
648
|
+
* match: 1,
|
|
649
|
+
* data: [ArrayBuffer]
|
|
650
|
+
* }
|
|
651
|
+
* ```
|
|
652
|
+
* @since v23.9.0, v22.15.0
|
|
653
|
+
*/
|
|
654
|
+
function resolveTlsa(
|
|
655
|
+
hostname: string,
|
|
656
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: TlsaRecord[]) => void,
|
|
657
|
+
): void;
|
|
658
|
+
namespace resolveTlsa {
|
|
659
|
+
function __promisify__(hostname: string): Promise<TlsaRecord[]>;
|
|
660
|
+
}
|
|
661
|
+
/**
|
|
662
|
+
* Uses the DNS protocol to resolve text queries (`TXT` records) for the `hostname`. The `records` argument passed to the `callback` function is a
|
|
663
|
+
* two-dimensional array of the text records available for `hostname` (e.g.`[ ['v=spf1 ip4:0.0.0.0 ', '~all' ] ]`). Each sub-array contains TXT chunks of
|
|
664
|
+
* one record. Depending on the use case, these could be either joined together or
|
|
665
|
+
* treated separately.
|
|
666
|
+
* @since v0.1.27
|
|
667
|
+
*/
|
|
668
|
+
function resolveTxt(
|
|
669
|
+
hostname: string,
|
|
670
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: string[][]) => void,
|
|
671
|
+
): void;
|
|
672
|
+
namespace resolveTxt {
|
|
673
|
+
function __promisify__(hostname: string): Promise<string[][]>;
|
|
674
|
+
}
|
|
675
|
+
/**
|
|
676
|
+
* Uses the DNS protocol to resolve all records (also known as `ANY` or `*` query).
|
|
677
|
+
* The `ret` argument passed to the `callback` function will be an array containing
|
|
678
|
+
* various types of records. Each object has a property `type` that indicates the
|
|
679
|
+
* type of the current record. And depending on the `type`, additional properties
|
|
680
|
+
* will be present on the object:
|
|
681
|
+
*
|
|
682
|
+
* <omitted>
|
|
683
|
+
*
|
|
684
|
+
* Here is an example of the `ret` object passed to the callback:
|
|
685
|
+
*
|
|
686
|
+
* ```js
|
|
687
|
+
* [ { type: 'A', address: '127.0.0.1', ttl: 299 },
|
|
688
|
+
* { type: 'CNAME', value: 'example.com' },
|
|
689
|
+
* { type: 'MX', exchange: 'alt4.aspmx.l.example.com', priority: 50 },
|
|
690
|
+
* { type: 'NS', value: 'ns1.example.com' },
|
|
691
|
+
* { type: 'TXT', entries: [ 'v=spf1 include:_spf.example.com ~all' ] },
|
|
692
|
+
* { type: 'SOA',
|
|
693
|
+
* nsname: 'ns1.example.com',
|
|
694
|
+
* hostmaster: 'admin.example.com',
|
|
695
|
+
* serial: 156696742,
|
|
696
|
+
* refresh: 900,
|
|
697
|
+
* retry: 900,
|
|
698
|
+
* expire: 1800,
|
|
699
|
+
* minttl: 60 } ]
|
|
700
|
+
* ```
|
|
701
|
+
*
|
|
702
|
+
* DNS server operators may choose not to respond to `ANY` queries. It may be better to call individual methods like {@link resolve4}, {@link resolveMx}, and so on. For more details, see
|
|
703
|
+
* [RFC 8482](https://tools.ietf.org/html/rfc8482).
|
|
704
|
+
*/
|
|
705
|
+
function resolveAny(
|
|
706
|
+
hostname: string,
|
|
707
|
+
callback: (err: NodeJS.ErrnoException | null, addresses: AnyRecord[]) => void,
|
|
708
|
+
): void;
|
|
709
|
+
namespace resolveAny {
|
|
710
|
+
function __promisify__(hostname: string): Promise<AnyRecord[]>;
|
|
711
|
+
}
|
|
712
|
+
/**
|
|
713
|
+
* Performs a reverse DNS query that resolves an IPv4 or IPv6 address to an
|
|
714
|
+
* array of host names.
|
|
715
|
+
*
|
|
716
|
+
* On error, `err` is an [`Error`](https://nodejs.org/docs/latest-v25.x/api/errors.html#class-error) object, where `err.code` is
|
|
717
|
+
* one of the [DNS error codes](https://nodejs.org/docs/latest-v25.x/api/dns.html#error-codes).
|
|
718
|
+
* @since v0.1.16
|
|
719
|
+
*/
|
|
720
|
+
function reverse(
|
|
721
|
+
ip: string,
|
|
722
|
+
callback: (err: NodeJS.ErrnoException | null, hostnames: string[]) => void,
|
|
723
|
+
): void;
|
|
724
|
+
/**
|
|
725
|
+
* Get the default value for `order` in {@link lookup} and [`dnsPromises.lookup()`](https://nodejs.org/docs/latest-v25.x/api/dns.html#dnspromiseslookuphostname-options).
|
|
726
|
+
* The value could be:
|
|
727
|
+
*
|
|
728
|
+
* * `ipv4first`: for `order` defaulting to `ipv4first`.
|
|
729
|
+
* * `ipv6first`: for `order` defaulting to `ipv6first`.
|
|
730
|
+
* * `verbatim`: for `order` defaulting to `verbatim`.
|
|
731
|
+
* @since v18.17.0
|
|
732
|
+
*/
|
|
733
|
+
function getDefaultResultOrder(): "ipv4first" | "ipv6first" | "verbatim";
|
|
734
|
+
/**
|
|
735
|
+
* Sets the IP address and port of servers to be used when performing DNS
|
|
736
|
+
* resolution. The `servers` argument is an array of [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6) formatted
|
|
737
|
+
* addresses. If the port is the IANA default DNS port (53) it can be omitted.
|
|
738
|
+
*
|
|
739
|
+
* ```js
|
|
740
|
+
* dns.setServers([
|
|
741
|
+
* '4.4.4.4',
|
|
742
|
+
* '[2001:4860:4860::8888]',
|
|
743
|
+
* '4.4.4.4:1053',
|
|
744
|
+
* '[2001:4860:4860::8888]:1053',
|
|
745
|
+
* ]);
|
|
746
|
+
* ```
|
|
747
|
+
*
|
|
748
|
+
* An error will be thrown if an invalid address is provided.
|
|
749
|
+
*
|
|
750
|
+
* The `dns.setServers()` method must not be called while a DNS query is in
|
|
751
|
+
* progress.
|
|
752
|
+
*
|
|
753
|
+
* The {@link setServers} method affects only {@link resolve}, `dns.resolve*()` and {@link reverse} (and specifically _not_ {@link lookup}).
|
|
754
|
+
*
|
|
755
|
+
* This method works much like [resolve.conf](https://man7.org/linux/man-pages/man5/resolv.conf.5.html).
|
|
756
|
+
* That is, if attempting to resolve with the first server provided results in a `NOTFOUND` error, the `resolve()` method will _not_ attempt to resolve with
|
|
757
|
+
* subsequent servers provided. Fallback DNS servers will only be used if the
|
|
758
|
+
* earlier ones time out or result in some other error.
|
|
759
|
+
* @since v0.11.3
|
|
760
|
+
* @param servers array of [RFC 5952](https://datatracker.ietf.org/doc/html/rfc5952#section-6) formatted addresses
|
|
761
|
+
*/
|
|
762
|
+
function setServers(servers: readonly string[]): void;
|
|
763
|
+
/**
|
|
764
|
+
* Returns an array of IP address strings, formatted according to [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6),
|
|
765
|
+
* that are currently configured for DNS resolution. A string will include a port
|
|
766
|
+
* section if a custom port is used.
|
|
767
|
+
*
|
|
768
|
+
* ```js
|
|
769
|
+
* [
|
|
770
|
+
* '4.4.4.4',
|
|
771
|
+
* '2001:4860:4860::8888',
|
|
772
|
+
* '4.4.4.4:1053',
|
|
773
|
+
* '[2001:4860:4860::8888]:1053',
|
|
774
|
+
* ]
|
|
775
|
+
* ```
|
|
776
|
+
* @since v0.11.3
|
|
777
|
+
*/
|
|
778
|
+
function getServers(): string[];
|
|
779
|
+
/**
|
|
780
|
+
* Set the default value of `order` in {@link lookup} and [`dnsPromises.lookup()`](https://nodejs.org/docs/latest-v25.x/api/dns.html#dnspromiseslookuphostname-options).
|
|
781
|
+
* The value could be:
|
|
782
|
+
*
|
|
783
|
+
* * `ipv4first`: sets default `order` to `ipv4first`.
|
|
784
|
+
* * `ipv6first`: sets default `order` to `ipv6first`.
|
|
785
|
+
* * `verbatim`: sets default `order` to `verbatim`.
|
|
786
|
+
*
|
|
787
|
+
* The default is `verbatim` and {@link setDefaultResultOrder} have higher
|
|
788
|
+
* priority than [`--dns-result-order`](https://nodejs.org/docs/latest-v25.x/api/cli.html#--dns-result-orderorder). When using
|
|
789
|
+
* [worker threads](https://nodejs.org/docs/latest-v25.x/api/worker_threads.html), {@link setDefaultResultOrder} from the main
|
|
790
|
+
* thread won't affect the default dns orders in workers.
|
|
791
|
+
* @since v16.4.0, v14.18.0
|
|
792
|
+
* @param order must be `'ipv4first'`, `'ipv6first'` or `'verbatim'`.
|
|
793
|
+
*/
|
|
794
|
+
function setDefaultResultOrder(order: "ipv4first" | "ipv6first" | "verbatim"): void;
|
|
795
|
+
// Error codes
|
|
796
|
+
const NODATA: "ENODATA";
|
|
797
|
+
const FORMERR: "EFORMERR";
|
|
798
|
+
const SERVFAIL: "ESERVFAIL";
|
|
799
|
+
const NOTFOUND: "ENOTFOUND";
|
|
800
|
+
const NOTIMP: "ENOTIMP";
|
|
801
|
+
const REFUSED: "EREFUSED";
|
|
802
|
+
const BADQUERY: "EBADQUERY";
|
|
803
|
+
const BADNAME: "EBADNAME";
|
|
804
|
+
const BADFAMILY: "EBADFAMILY";
|
|
805
|
+
const BADRESP: "EBADRESP";
|
|
806
|
+
const CONNREFUSED: "ECONNREFUSED";
|
|
807
|
+
const TIMEOUT: "ETIMEOUT";
|
|
808
|
+
const EOF: "EOF";
|
|
809
|
+
const FILE: "EFILE";
|
|
810
|
+
const NOMEM: "ENOMEM";
|
|
811
|
+
const DESTRUCTION: "EDESTRUCTION";
|
|
812
|
+
const BADSTR: "EBADSTR";
|
|
813
|
+
const BADFLAGS: "EBADFLAGS";
|
|
814
|
+
const NONAME: "ENONAME";
|
|
815
|
+
const BADHINTS: "EBADHINTS";
|
|
816
|
+
const NOTINITIALIZED: "ENOTINITIALIZED";
|
|
817
|
+
const LOADIPHLPAPI: "ELOADIPHLPAPI";
|
|
818
|
+
const ADDRGETNETWORKPARAMS: "EADDRGETNETWORKPARAMS";
|
|
819
|
+
const CANCELLED: "ECANCELLED";
|
|
820
|
+
interface ResolverOptions {
|
|
821
|
+
/**
|
|
822
|
+
* Query timeout in milliseconds, or `-1` to use the default timeout.
|
|
823
|
+
*/
|
|
824
|
+
timeout?: number | undefined;
|
|
825
|
+
/**
|
|
826
|
+
* The number of tries the resolver will try contacting each name server before giving up.
|
|
827
|
+
* @default 4
|
|
828
|
+
*/
|
|
829
|
+
tries?: number | undefined;
|
|
830
|
+
/**
|
|
831
|
+
* The max retry timeout, in milliseconds.
|
|
832
|
+
* @default 0
|
|
833
|
+
*/
|
|
834
|
+
maxTimeout?: number | undefined;
|
|
835
|
+
}
|
|
836
|
+
/**
|
|
837
|
+
* An independent resolver for DNS requests.
|
|
838
|
+
*
|
|
839
|
+
* Creating a new resolver uses the default server settings. Setting
|
|
840
|
+
* the servers used for a resolver using [`resolver.setServers()`](https://nodejs.org/docs/latest-v25.x/api/dns.html#dnssetserversservers) does not affect
|
|
841
|
+
* other resolvers:
|
|
842
|
+
*
|
|
843
|
+
* ```js
|
|
844
|
+
* import { Resolver } from 'node:dns';
|
|
845
|
+
* const resolver = new Resolver();
|
|
846
|
+
* resolver.setServers(['4.4.4.4']);
|
|
847
|
+
*
|
|
848
|
+
* // This request will use the server at 4.4.4.4, independent of global settings.
|
|
849
|
+
* resolver.resolve4('example.org', (err, addresses) => {
|
|
850
|
+
* // ...
|
|
851
|
+
* });
|
|
852
|
+
* ```
|
|
853
|
+
*
|
|
854
|
+
* The following methods from the `node:dns` module are available:
|
|
855
|
+
*
|
|
856
|
+
* * `resolver.getServers()`
|
|
857
|
+
* * `resolver.resolve()`
|
|
858
|
+
* * `resolver.resolve4()`
|
|
859
|
+
* * `resolver.resolve6()`
|
|
860
|
+
* * `resolver.resolveAny()`
|
|
861
|
+
* * `resolver.resolveCaa()`
|
|
862
|
+
* * `resolver.resolveCname()`
|
|
863
|
+
* * `resolver.resolveMx()`
|
|
864
|
+
* * `resolver.resolveNaptr()`
|
|
865
|
+
* * `resolver.resolveNs()`
|
|
866
|
+
* * `resolver.resolvePtr()`
|
|
867
|
+
* * `resolver.resolveSoa()`
|
|
868
|
+
* * `resolver.resolveSrv()`
|
|
869
|
+
* * `resolver.resolveTxt()`
|
|
870
|
+
* * `resolver.reverse()`
|
|
871
|
+
* * `resolver.setServers()`
|
|
872
|
+
* @since v8.3.0
|
|
873
|
+
*/
|
|
874
|
+
class Resolver {
|
|
875
|
+
constructor(options?: ResolverOptions);
|
|
876
|
+
/**
|
|
877
|
+
* Cancel all outstanding DNS queries made by this resolver. The corresponding
|
|
878
|
+
* callbacks will be called with an error with code `ECANCELLED`.
|
|
879
|
+
* @since v8.3.0
|
|
880
|
+
*/
|
|
881
|
+
cancel(): void;
|
|
882
|
+
getServers: typeof getServers;
|
|
883
|
+
resolve: typeof resolve;
|
|
884
|
+
resolve4: typeof resolve4;
|
|
885
|
+
resolve6: typeof resolve6;
|
|
886
|
+
resolveAny: typeof resolveAny;
|
|
887
|
+
resolveCaa: typeof resolveCaa;
|
|
888
|
+
resolveCname: typeof resolveCname;
|
|
889
|
+
resolveMx: typeof resolveMx;
|
|
890
|
+
resolveNaptr: typeof resolveNaptr;
|
|
891
|
+
resolveNs: typeof resolveNs;
|
|
892
|
+
resolvePtr: typeof resolvePtr;
|
|
893
|
+
resolveSoa: typeof resolveSoa;
|
|
894
|
+
resolveSrv: typeof resolveSrv;
|
|
895
|
+
resolveTlsa: typeof resolveTlsa;
|
|
896
|
+
resolveTxt: typeof resolveTxt;
|
|
897
|
+
reverse: typeof reverse;
|
|
898
|
+
/**
|
|
899
|
+
* The resolver instance will send its requests from the specified IP address.
|
|
900
|
+
* This allows programs to specify outbound interfaces when used on multi-homed
|
|
901
|
+
* systems.
|
|
902
|
+
*
|
|
903
|
+
* If a v4 or v6 address is not specified, it is set to the default and the
|
|
904
|
+
* operating system will choose a local address automatically.
|
|
905
|
+
*
|
|
906
|
+
* The resolver will use the v4 local address when making requests to IPv4 DNS
|
|
907
|
+
* servers, and the v6 local address when making requests to IPv6 DNS servers.
|
|
908
|
+
* The `rrtype` of resolution requests has no impact on the local address used.
|
|
909
|
+
* @since v15.1.0, v14.17.0
|
|
910
|
+
* @param [ipv4='0.0.0.0'] A string representation of an IPv4 address.
|
|
911
|
+
* @param [ipv6='::0'] A string representation of an IPv6 address.
|
|
912
|
+
*/
|
|
913
|
+
setLocalAddress(ipv4?: string, ipv6?: string): void;
|
|
914
|
+
setServers: typeof setServers;
|
|
915
|
+
}
|
|
916
|
+
}
|
|
917
|
+
declare module "node:dns" {
|
|
918
|
+
export * as promises from "node:dns/promises";
|
|
919
|
+
}
|
|
920
|
+
declare module "dns" {
|
|
921
|
+
export * from "node:dns";
|
|
922
|
+
}
|