zedbee 0.1.0-beta.16 → 0.1.0-beta.17
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/THIRD_PARTY_NOTICES.md +68 -74
- package/dist/attribution/metrics.d.ts.map +1 -1
- package/dist/attribution/metrics.js +8 -5
- package/dist/attribution/metrics.js.map +1 -1
- package/dist/attribution/pair-source-moves.d.ts +12 -0
- package/dist/attribution/pair-source-moves.d.ts.map +1 -0
- package/dist/attribution/pair-source-moves.js +108 -0
- package/dist/attribution/pair-source-moves.js.map +1 -0
- package/dist/attribution/source-moves.d.ts +47 -0
- package/dist/attribution/source-moves.d.ts.map +1 -0
- package/dist/attribution/source-moves.js +199 -0
- package/dist/attribution/source-moves.js.map +1 -0
- package/dist/checks/applicability.d.ts.map +1 -1
- package/dist/checks/applicability.js +1 -1
- package/dist/checks/applicability.js.map +1 -1
- package/dist/checks/changed-file-paths.d.ts.map +1 -1
- package/dist/checks/changed-file-paths.js +7 -1
- package/dist/checks/changed-file-paths.js.map +1 -1
- package/dist/checks/closed-compiler-project.d.ts +5 -0
- package/dist/checks/closed-compiler-project.d.ts.map +1 -0
- package/dist/checks/closed-compiler-project.js +106 -0
- package/dist/checks/closed-compiler-project.js.map +1 -0
- package/dist/checks/compiler-inputs.d.ts +1 -1
- package/dist/checks/compiler-inputs.d.ts.map +1 -1
- package/dist/checks/compiler-inputs.js +33 -2
- package/dist/checks/compiler-inputs.js.map +1 -1
- package/dist/checks/complexity/adapter.d.ts.map +1 -1
- package/dist/checks/complexity/adapter.js +21 -2
- package/dist/checks/complexity/adapter.js.map +1 -1
- package/dist/checks/dead-code/adapter.d.ts.map +1 -1
- package/dist/checks/dead-code/adapter.js +16 -5
- package/dist/checks/dead-code/adapter.js.map +1 -1
- package/dist/checks/dead-code/entry-configuration.d.ts +6 -0
- package/dist/checks/dead-code/entry-configuration.d.ts.map +1 -0
- package/dist/checks/dead-code/entry-configuration.js +48 -0
- package/dist/checks/dead-code/entry-configuration.js.map +1 -0
- package/dist/checks/dead-code/managed-config.d.ts +1 -1
- package/dist/checks/dead-code/managed-config.d.ts.map +1 -1
- package/dist/checks/dead-code/managed-config.js +24 -3
- package/dist/checks/dead-code/managed-config.js.map +1 -1
- package/dist/checks/dead-code/vite-entrypoints.d.ts +13 -0
- package/dist/checks/dead-code/vite-entrypoints.d.ts.map +1 -0
- package/dist/checks/dead-code/vite-entrypoints.js +314 -0
- package/dist/checks/dead-code/vite-entrypoints.js.map +1 -0
- package/dist/checks/diagnostic-details.d.ts.map +1 -1
- package/dist/checks/diagnostic-details.js +32 -0
- package/dist/checks/diagnostic-details.js.map +1 -1
- package/dist/checks/engine-identity.d.ts.map +1 -1
- package/dist/checks/engine-identity.js +5 -4
- package/dist/checks/engine-identity.js.map +1 -1
- package/dist/checks/eslint/convert-message.d.ts.map +1 -1
- package/dist/checks/eslint/convert-message.js +5 -2
- package/dist/checks/eslint/convert-message.js.map +1 -1
- package/dist/checks/observation-result.d.ts.map +1 -1
- package/dist/checks/observation-result.js +69 -7
- package/dist/checks/observation-result.js.map +1 -1
- package/dist/checks/project-inputs.d.ts +1 -1
- package/dist/checks/project-inputs.d.ts.map +1 -1
- package/dist/checks/project-inputs.js +10 -1
- package/dist/checks/project-inputs.js.map +1 -1
- package/dist/checks/react/adapter.d.ts.map +1 -1
- package/dist/checks/react/adapter.js +25 -3
- package/dist/checks/react/adapter.js.map +1 -1
- package/dist/checks/source-moves.d.ts +9 -0
- package/dist/checks/source-moves.d.ts.map +1 -0
- package/dist/checks/source-moves.js +184 -0
- package/dist/checks/source-moves.js.map +1 -0
- package/dist/commands/checks.js +3 -3
- package/dist/commands/checks.js.map +1 -1
- package/dist/commands/diagnostics.d.ts +1 -0
- package/dist/commands/diagnostics.d.ts.map +1 -1
- package/dist/commands/diagnostics.js +28 -0
- package/dist/commands/diagnostics.js.map +1 -1
- package/dist/commands/fix.d.ts.map +1 -1
- package/dist/commands/fix.js +4 -1
- package/dist/commands/fix.js.map +1 -1
- package/dist/commands/scan.d.ts.map +1 -1
- package/dist/commands/scan.js +4 -0
- package/dist/commands/scan.js.map +1 -1
- package/dist/config/profiles.d.ts.map +1 -1
- package/dist/config/profiles.js +6 -0
- package/dist/config/profiles.js.map +1 -1
- package/dist/config/schema.d.ts +37 -17
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/schema.js +16 -1
- package/dist/config/schema.js.map +1 -1
- package/dist/config/settings-registry.js +2 -2
- package/dist/config/settings-registry.js.map +1 -1
- package/dist/renderers/text.d.ts.map +1 -1
- package/dist/renderers/text.js +4 -0
- package/dist/renderers/text.js.map +1 -1
- package/dist/reporting/finding-priority.d.ts +6 -0
- package/dist/reporting/finding-priority.d.ts.map +1 -0
- package/dist/reporting/finding-priority.js +69 -0
- package/dist/reporting/finding-priority.js.map +1 -0
- package/dist/reporting/fix-plan-store.d.ts +2 -5
- package/dist/reporting/fix-plan-store.d.ts.map +1 -1
- package/dist/reporting/fix-plan-store.js +2 -1
- package/dist/reporting/fix-plan-store.js.map +1 -1
- package/dist/reporting/presentation.d.ts +3 -1
- package/dist/reporting/presentation.d.ts.map +1 -1
- package/dist/reporting/presentation.js +19 -7
- package/dist/reporting/presentation.js.map +1 -1
- package/dist/reporting/result-sections.d.ts +1 -0
- package/dist/reporting/result-sections.d.ts.map +1 -1
- package/dist/reporting/result-sections.js +12 -0
- package/dist/reporting/result-sections.js.map +1 -1
- package/dist/reporting/temporary-report-common.d.ts +13 -1
- package/dist/reporting/temporary-report-common.d.ts.map +1 -1
- package/dist/reporting/temporary-report-common.js +4 -1
- package/dist/reporting/temporary-report-common.js.map +1 -1
- package/dist/reporting/temporary-report-lifecycle.d.ts +3 -3
- package/dist/reporting/temporary-report-lifecycle.d.ts.map +1 -1
- package/dist/reporting/temporary-report-lifecycle.js +18 -4
- package/dist/reporting/temporary-report-lifecycle.js.map +1 -1
- package/dist/reporting/temporary-reports.d.ts +1 -1
- package/dist/reporting/temporary-reports.d.ts.map +1 -1
- package/dist/reporting/temporary-reports.js +22 -3
- package/dist/reporting/temporary-reports.js.map +1 -1
- package/dist/scan/analysis-session.d.ts.map +1 -1
- package/dist/scan/analysis-session.js +15 -1
- package/dist/scan/analysis-session.js.map +1 -1
- package/dist/ui/scan-result-dashboard.d.ts.map +1 -1
- package/dist/ui/scan-result-dashboard.js +1 -1
- package/dist/ui/scan-result-dashboard.js.map +1 -1
- package/docs/checks.md +96 -2
- package/docs/privacy.md +13 -0
- package/docs/reporting.md +35 -1
- package/{node_modules/dependency-cruiser/node_modules/picomatch/LICENSE → licenses/overrides/jscpd-5.4.2-LICENSE} +5 -5
- package/licenses/overrides/napi-rs-wasm-runtime-1.2.5-LICENSE +43 -0
- package/licenses/reviewed-overrides.json +70 -0
- package/node_modules/acorn/CHANGELOG.md +14 -0
- package/node_modules/acorn/dist/acorn.js +42 -14
- package/node_modules/acorn/dist/acorn.mjs +42 -14
- package/node_modules/acorn/package.json +1 -1
- package/node_modules/dependency-cruiser/README.md +7 -8
- package/node_modules/dependency-cruiser/bin/depcruise-baseline.mjs +12 -5
- package/node_modules/dependency-cruiser/bin/{dependency-cruise.mjs → dependency-cruiser.mjs} +24 -14
- package/node_modules/dependency-cruiser/configs/rules/no-duplicate-dependency-types.cjs +1 -1
- package/node_modules/dependency-cruiser/node_modules/ignore/README.md +138 -8
- package/node_modules/dependency-cruiser/node_modules/ignore/index.d.ts +56 -20
- package/node_modules/dependency-cruiser/node_modules/ignore/index.js +1032 -229
- package/node_modules/dependency-cruiser/node_modules/ignore/legacy.js +868 -184
- package/node_modules/dependency-cruiser/node_modules/ignore/package.json +10 -4
- package/node_modules/dependency-cruiser/node_modules/semver/LICENSE +15 -0
- package/node_modules/dependency-cruiser/node_modules/semver/README.md +680 -0
- package/node_modules/dependency-cruiser/node_modules/semver/bin/semver.js +195 -0
- package/node_modules/dependency-cruiser/node_modules/semver/classes/comparator.js +143 -0
- package/node_modules/dependency-cruiser/node_modules/semver/classes/index.js +7 -0
- package/node_modules/dependency-cruiser/node_modules/semver/classes/range.js +577 -0
- package/node_modules/dependency-cruiser/node_modules/semver/classes/semver.js +350 -0
- package/node_modules/dependency-cruiser/node_modules/semver/functions/clean.js +8 -0
- package/node_modules/dependency-cruiser/node_modules/semver/functions/cmp.js +54 -0
- package/node_modules/dependency-cruiser/node_modules/semver/functions/coerce.js +62 -0
- package/node_modules/dependency-cruiser/node_modules/semver/functions/compare-build.js +9 -0
- package/node_modules/dependency-cruiser/node_modules/semver/functions/compare-loose.js +5 -0
- package/node_modules/dependency-cruiser/node_modules/semver/functions/compare.js +7 -0
- package/node_modules/dependency-cruiser/node_modules/semver/functions/diff.js +60 -0
- package/node_modules/dependency-cruiser/node_modules/semver/functions/eq.js +5 -0
- package/node_modules/dependency-cruiser/node_modules/semver/functions/gt.js +5 -0
- package/node_modules/dependency-cruiser/node_modules/semver/functions/gte.js +5 -0
- package/node_modules/dependency-cruiser/node_modules/semver/functions/inc.js +21 -0
- package/node_modules/dependency-cruiser/node_modules/semver/functions/lt.js +5 -0
- package/node_modules/dependency-cruiser/node_modules/semver/functions/lte.js +5 -0
- package/node_modules/dependency-cruiser/node_modules/semver/functions/major.js +5 -0
- package/node_modules/dependency-cruiser/node_modules/semver/functions/minor.js +5 -0
- package/node_modules/dependency-cruiser/node_modules/semver/functions/neq.js +5 -0
- package/node_modules/dependency-cruiser/node_modules/semver/functions/parse.js +18 -0
- package/node_modules/dependency-cruiser/node_modules/semver/functions/patch.js +5 -0
- package/node_modules/dependency-cruiser/node_modules/semver/functions/prerelease.js +8 -0
- package/node_modules/dependency-cruiser/node_modules/semver/functions/rcompare.js +5 -0
- package/node_modules/dependency-cruiser/node_modules/semver/functions/rsort.js +5 -0
- package/node_modules/dependency-cruiser/node_modules/semver/functions/satisfies.js +12 -0
- package/node_modules/dependency-cruiser/node_modules/semver/functions/sort.js +5 -0
- package/node_modules/dependency-cruiser/node_modules/semver/functions/truncate.js +48 -0
- package/node_modules/dependency-cruiser/node_modules/semver/functions/valid.js +8 -0
- package/node_modules/dependency-cruiser/node_modules/semver/index.js +93 -0
- package/node_modules/dependency-cruiser/node_modules/semver/internal/constants.js +67 -0
- package/node_modules/dependency-cruiser/node_modules/semver/internal/debug.js +11 -0
- package/node_modules/dependency-cruiser/node_modules/semver/internal/identifiers.js +29 -0
- package/node_modules/dependency-cruiser/node_modules/semver/internal/lrucache.js +42 -0
- package/node_modules/dependency-cruiser/node_modules/semver/internal/parse-options.js +17 -0
- package/node_modules/dependency-cruiser/node_modules/semver/internal/re.js +223 -0
- package/node_modules/dependency-cruiser/node_modules/semver/internal/trim-comparator-whitespace.js +438 -0
- package/node_modules/dependency-cruiser/node_modules/semver/package.json +78 -0
- package/node_modules/dependency-cruiser/node_modules/semver/preload.js +4 -0
- package/node_modules/dependency-cruiser/node_modules/semver/range.bnf +17 -0
- package/node_modules/dependency-cruiser/node_modules/semver/ranges/gtr.js +6 -0
- package/node_modules/dependency-cruiser/node_modules/semver/ranges/intersects.js +9 -0
- package/node_modules/dependency-cruiser/node_modules/semver/ranges/ltr.js +6 -0
- package/node_modules/dependency-cruiser/node_modules/semver/ranges/max-satisfying.js +27 -0
- package/node_modules/dependency-cruiser/node_modules/semver/ranges/min-satisfying.js +26 -0
- package/node_modules/dependency-cruiser/node_modules/semver/ranges/min-version.js +63 -0
- package/node_modules/dependency-cruiser/node_modules/semver/ranges/outside.js +82 -0
- package/node_modules/dependency-cruiser/node_modules/semver/ranges/simplify.js +49 -0
- package/node_modules/dependency-cruiser/node_modules/semver/ranges/subset.js +249 -0
- package/node_modules/dependency-cruiser/node_modules/semver/ranges/to-comparators.js +10 -0
- package/node_modules/dependency-cruiser/node_modules/semver/ranges/valid.js +13 -0
- package/node_modules/dependency-cruiser/package.json +16 -10
- package/node_modules/dependency-cruiser/src/analyze/analyze-modules.mjs +5 -1
- package/node_modules/dependency-cruiser/src/analyze/index.mjs +3 -3
- package/node_modules/dependency-cruiser/src/analyze/soften-known-violations.mjs +4 -2
- package/node_modules/dependency-cruiser/src/analyze/summarize/get-stats.mjs +38 -3
- package/node_modules/dependency-cruiser/src/analyze/summarize/index.mjs +28 -105
- package/node_modules/dependency-cruiser/src/analyze/summarize/summarize-options.mjs +3 -0
- package/node_modules/dependency-cruiser/src/analyze/summarize/verify-environment.mjs +146 -0
- package/node_modules/dependency-cruiser/src/cache/cache.mjs +1 -1
- package/node_modules/dependency-cruiser/src/cache/options-compatible.mjs +3 -0
- package/node_modules/dependency-cruiser/src/cli/defaults.mjs +0 -1
- package/node_modules/dependency-cruiser/src/cli/index.mjs +11 -3
- package/node_modules/dependency-cruiser/src/cli/init-config/build-config.mjs +14 -0
- package/node_modules/dependency-cruiser/src/cli/init-config/config-template.mjs +7 -2
- package/node_modules/dependency-cruiser/src/cli/init-config/environment-helpers.mjs +5 -1
- package/node_modules/dependency-cruiser/src/cli/init-config/get-user-input.mjs +11 -0
- package/node_modules/dependency-cruiser/src/cli/init-config/index.mjs +1 -0
- package/node_modules/dependency-cruiser/src/cli/init-config/normalize-init-options.mjs +1 -1
- package/node_modules/dependency-cruiser/src/cli/init-config/types.d.mts +4 -0
- package/node_modules/dependency-cruiser/src/cli/init-config/write-run-scripts-to-manifest.mjs +7 -7
- package/node_modules/dependency-cruiser/src/cli/normalize-cli-options.mjs +63 -2
- package/node_modules/dependency-cruiser/src/config-utl/extract-ts-config.mjs +1 -1
- package/node_modules/dependency-cruiser/src/extract/helpers.mjs +1 -0
- package/node_modules/dependency-cruiser/src/extract/resolve/determine-dependency-types.mjs +15 -7
- package/node_modules/dependency-cruiser/src/extract/resolve/merge-manifests.mjs +6 -3
- package/node_modules/dependency-cruiser/src/extract/swc/dependency-visitor.mjs +21 -4
- package/node_modules/dependency-cruiser/src/extract/swc/parse.mjs +14 -4
- package/node_modules/dependency-cruiser/src/extract/transpile/index.mjs +1 -1
- package/node_modules/dependency-cruiser/src/extract/transpile/meta.mjs +15 -3
- package/node_modules/dependency-cruiser/src/extract/transpile/svelte-wrap.mjs +23 -2
- package/node_modules/dependency-cruiser/src/extract/transpile/try-import-available.mjs +2 -2
- package/node_modules/dependency-cruiser/src/extract/transpile/typescript-wrap.mjs +23 -1
- package/node_modules/dependency-cruiser/src/extract/tsc/extract-typescript-deps.mjs +57 -12
- package/node_modules/dependency-cruiser/src/extract/tsc/extract.mjs +2 -0
- package/node_modules/dependency-cruiser/src/graph-utl/add-focus.mjs +2 -2
- package/node_modules/dependency-cruiser/src/graph-utl/compare.mjs +113 -14
- package/node_modules/dependency-cruiser/src/main/cruise.mjs +1 -2
- package/node_modules/dependency-cruiser/src/main/format.mjs +1 -1
- package/node_modules/dependency-cruiser/src/main/options/defaults.mjs +1 -0
- package/node_modules/dependency-cruiser/src/main/options/normalize.mjs +13 -4
- package/node_modules/dependency-cruiser/src/main/report-wrap.mjs +4 -2
- package/node_modules/dependency-cruiser/src/main/resolve-options/normalize.mjs +0 -27
- package/node_modules/dependency-cruiser/src/meta.cjs +1 -1
- package/node_modules/dependency-cruiser/src/report/anon/index.mjs +1 -1
- package/node_modules/dependency-cruiser/src/report/azure-devops.mjs +15 -11
- package/node_modules/dependency-cruiser/src/report/baseline.mjs +67 -10
- package/node_modules/dependency-cruiser/src/report/csv.mjs +1 -1
- package/node_modules/dependency-cruiser/src/report/dot/index.mjs +1 -1
- package/node_modules/dependency-cruiser/src/report/dot-webpage/dot-module.mjs +1 -1
- package/node_modules/dependency-cruiser/src/report/error-html/error-html-template.mjs +2 -0
- package/node_modules/dependency-cruiser/src/report/error-html/index.mjs +84 -8
- package/node_modules/dependency-cruiser/src/report/error.mjs +62 -13
- package/node_modules/dependency-cruiser/src/report/html/index.mjs +1 -1
- package/node_modules/dependency-cruiser/src/report/index.mjs +3 -2
- package/node_modules/dependency-cruiser/src/report/markdown.mjs +89 -19
- package/node_modules/dependency-cruiser/src/report/metrics.mjs +3 -3
- package/node_modules/dependency-cruiser/src/report/null.mjs +6 -3
- package/node_modules/dependency-cruiser/src/report/teamcity.mjs +4 -1
- package/node_modules/dependency-cruiser/src/schema/configuration.validate.mjs +1 -1
- package/node_modules/dependency-cruiser/src/schema/cruise-result.validate.mjs +1 -1
- package/node_modules/dependency-cruiser/src/utl/try-import.mjs +1 -1
- package/node_modules/dependency-cruiser/types/cruise-result.d.mts +14 -0
- package/node_modules/dependency-cruiser/types/dependency-cruiser.d.mts +6 -0
- package/node_modules/dependency-cruiser/types/options.d.mts +37 -2
- package/node_modules/dependency-cruiser/types/reporter-options.d.mts +30 -5
- package/node_modules/dependency-cruiser/types/restrictions.d.mts +2 -2
- package/node_modules/dependency-cruiser/types/shared-types.d.mts +16 -13
- package/node_modules/enhanced-resolve/README.md +46 -1
- package/node_modules/enhanced-resolve/lib/ExportsFieldPlugin.js +31 -6
- package/node_modules/enhanced-resolve/lib/ImportsFieldPlugin.js +27 -6
- package/node_modules/enhanced-resolve/lib/PackageMapPlugin.js +297 -0
- package/node_modules/enhanced-resolve/lib/Resolver.js +37 -30
- package/node_modules/enhanced-resolve/lib/ResolverFactory.js +104 -11
- package/node_modules/enhanced-resolve/lib/getPaths.js +6 -1
- package/node_modules/enhanced-resolve/lib/index.js +4 -0
- package/node_modules/enhanced-resolve/lib/util/entrypoints.js +104 -0
- package/node_modules/enhanced-resolve/lib/util/graceful-fs-browser.js +5 -1
- package/node_modules/enhanced-resolve/lib/util/identifier.js +4 -2
- package/node_modules/enhanced-resolve/lib/util/packageMap.js +224 -0
- package/node_modules/enhanced-resolve/lib/util/path.js +29 -8
- package/node_modules/enhanced-resolve/lib/util/pathToFileURL.js +87 -0
- package/node_modules/enhanced-resolve/package.json +8 -9
- package/node_modules/enhanced-resolve/types/AliasFieldPlugin.d.ts +41 -0
- package/node_modules/enhanced-resolve/types/AliasPlugin.d.ts +32 -0
- package/node_modules/enhanced-resolve/types/AliasUtils.d.ts +128 -0
- package/node_modules/enhanced-resolve/types/AppendPlugin.d.ts +27 -0
- package/node_modules/enhanced-resolve/types/CachedInputFileSystem.d.ts +224 -0
- package/node_modules/enhanced-resolve/types/CloneBasenamePlugin.d.ts +24 -0
- package/node_modules/enhanced-resolve/types/ConditionalPlugin.d.ts +33 -0
- package/node_modules/enhanced-resolve/types/DescriptionFilePlugin.d.ts +30 -0
- package/node_modules/enhanced-resolve/types/DescriptionFileUtils.d.ts +83 -0
- package/node_modules/enhanced-resolve/types/DirectoryExistsPlugin.d.ts +23 -0
- package/node_modules/enhanced-resolve/types/ExportsFieldPlugin.d.ts +45 -0
- package/node_modules/enhanced-resolve/types/ExtensionAliasPlugin.d.ts +31 -0
- package/node_modules/enhanced-resolve/types/FileExistsPlugin.d.ts +23 -0
- package/node_modules/enhanced-resolve/types/ImportsFieldPlugin.d.ts +45 -0
- package/node_modules/enhanced-resolve/types/JoinRequestPartPlugin.d.ts +24 -0
- package/node_modules/enhanced-resolve/types/JoinRequestPlugin.d.ts +24 -0
- package/node_modules/enhanced-resolve/types/LogInfoPlugin.d.ts +18 -0
- package/node_modules/enhanced-resolve/types/MainFieldPlugin.d.ts +41 -0
- package/node_modules/enhanced-resolve/types/ModulesInHierachicDirectoriesPlugin.d.ts +2 -0
- package/node_modules/enhanced-resolve/types/ModulesInHierarchicalDirectoriesPlugin.d.ts +26 -0
- package/node_modules/enhanced-resolve/types/ModulesInRootPlugin.d.ts +27 -0
- package/node_modules/enhanced-resolve/types/ModulesUtils.d.ts +25 -0
- package/node_modules/enhanced-resolve/types/NextPlugin.d.ts +23 -0
- package/node_modules/enhanced-resolve/types/PackageMapPlugin.d.ts +85 -0
- package/node_modules/enhanced-resolve/types/ParsePlugin.d.ts +27 -0
- package/node_modules/enhanced-resolve/types/PnpPlugin.d.ts +42 -0
- package/node_modules/enhanced-resolve/types/Resolver.d.ts +1545 -0
- package/node_modules/enhanced-resolve/types/ResolverFactory.d.ts +340 -0
- package/node_modules/enhanced-resolve/types/RestrictionsPlugin.d.ts +52 -0
- package/node_modules/enhanced-resolve/types/ResultPlugin.d.ts +18 -0
- package/node_modules/enhanced-resolve/types/RootsPlugin.d.ts +30 -0
- package/node_modules/enhanced-resolve/types/SelfReferencePlugin.d.ts +31 -0
- package/node_modules/enhanced-resolve/types/SymlinkPlugin.d.ts +24 -0
- package/node_modules/enhanced-resolve/types/SyncAsyncFileSystemDecorator.d.ts +52 -0
- package/node_modules/enhanced-resolve/types/TryNextPlugin.d.ts +26 -0
- package/node_modules/enhanced-resolve/types/TsconfigPathsPlugin.d.ts +204 -0
- package/node_modules/enhanced-resolve/types/UnsafeCachePlugin.d.ts +43 -0
- package/node_modules/enhanced-resolve/types/UseFilePlugin.d.ts +27 -0
- package/node_modules/enhanced-resolve/types/createInnerContext.d.ts +10 -0
- package/node_modules/enhanced-resolve/types/forEachBail.d.ts +15 -0
- package/node_modules/enhanced-resolve/types/getInnerRequest.d.ts +7 -0
- package/node_modules/enhanced-resolve/types/getPaths.d.ts +34 -0
- package/node_modules/enhanced-resolve/types/index.d.ts +131 -0
- package/node_modules/enhanced-resolve/types/util/entrypoints.d.ts +62 -0
- package/node_modules/enhanced-resolve/types/util/fileURLToPath.d.ts +14 -0
- package/node_modules/enhanced-resolve/types/util/fs.d.ts +38 -0
- package/node_modules/enhanced-resolve/types/util/graceful-fs-browser.d.ts +22 -0
- package/node_modules/enhanced-resolve/types/util/identifier.d.ts +7 -0
- package/node_modules/enhanced-resolve/types/util/memoize.d.ts +15 -0
- package/node_modules/enhanced-resolve/types/util/module-browser.d.ts +1 -0
- package/node_modules/enhanced-resolve/types/util/packageMap.d.ts +118 -0
- package/node_modules/enhanced-resolve/types/util/path-browser.d.ts +45 -0
- package/node_modules/enhanced-resolve/types/util/path.d.ts +125 -0
- package/node_modules/enhanced-resolve/types/util/pathToFileURL.d.ts +14 -0
- package/node_modules/enhanced-resolve/types/util/process-browser.d.ts +3 -0
- package/node_modules/enhanced-resolve/types/util/strip-json-comments.d.ts +24 -0
- package/node_modules/enhanced-resolve/types/util/url-browser.d.ts +1 -0
- package/node_modules/enhanced-resolve/types.d.ts +5 -2057
- package/node_modules/is-installed-globally/index.js +26 -4
- package/node_modules/is-installed-globally/package.json +1 -1
- package/package.json +5 -5
- package/schema/zedbee.schema.json +12 -1
- package/node_modules/dependency-cruiser/node_modules/picomatch/README.md +0 -743
- package/node_modules/dependency-cruiser/node_modules/picomatch/index.js +0 -17
- package/node_modules/dependency-cruiser/node_modules/picomatch/lib/constants.js +0 -184
- package/node_modules/dependency-cruiser/node_modules/picomatch/lib/parse.js +0 -1416
- package/node_modules/dependency-cruiser/node_modules/picomatch/lib/picomatch.js +0 -361
- package/node_modules/dependency-cruiser/node_modules/picomatch/lib/scan.js +0 -391
- package/node_modules/dependency-cruiser/node_modules/picomatch/lib/utils.js +0 -72
- package/node_modules/dependency-cruiser/node_modules/picomatch/package.json +0 -83
- package/node_modules/dependency-cruiser/node_modules/picomatch/posix.js +0 -3
|
@@ -1,2061 +1,9 @@
|
|
|
1
1
|
/*
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
2
|
+
* The type declarations are generated from the JSDoc in `lib/` and live in
|
|
3
|
+
* `types/`. This file re-exports the entry point so that the `types` field and
|
|
4
|
+
* any direct reference to `enhanced-resolve/types.d.ts` keep resolving.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import
|
|
8
|
-
import { AsyncSeriesBailHook, AsyncSeriesHook, SyncHook } from "tapable";
|
|
9
|
-
import { URL as URL_Import } from "url";
|
|
7
|
+
import resolve = require("./types/index");
|
|
10
8
|
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* When provided the corresponding `AbortController` can be used to cancel an asynchronous action.
|
|
14
|
-
*/
|
|
15
|
-
signal?: AbortSignal;
|
|
16
|
-
}
|
|
17
|
-
type Alias = string | false | string[];
|
|
18
|
-
declare interface AliasOption {
|
|
19
|
-
alias: Alias;
|
|
20
|
-
name: string;
|
|
21
|
-
onlyModule?: boolean;
|
|
22
|
-
}
|
|
23
|
-
type BaseFileSystem = FileSystem & SyncFileSystem;
|
|
24
|
-
declare interface BaseResolveRequest {
|
|
25
|
-
/**
|
|
26
|
-
* path
|
|
27
|
-
*/
|
|
28
|
-
path: string | false;
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* content
|
|
32
|
-
*/
|
|
33
|
-
context?: Context;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* description file path
|
|
37
|
-
*/
|
|
38
|
-
descriptionFilePath?: string;
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* description file root
|
|
42
|
-
*/
|
|
43
|
-
descriptionFileRoot?: string;
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* description file data
|
|
47
|
-
*/
|
|
48
|
-
descriptionFileData?: JsonObject;
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* tsconfig paths map
|
|
52
|
-
*/
|
|
53
|
-
tsconfigPathsMap?: null | TsconfigPathsMap;
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* relative path
|
|
57
|
-
*/
|
|
58
|
-
relativePath?: string;
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* true when need to ignore symlinks, otherwise false
|
|
62
|
-
*/
|
|
63
|
-
ignoreSymlinks?: boolean;
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* true when full specified, otherwise false
|
|
67
|
-
*/
|
|
68
|
-
fullySpecified?: boolean;
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* inner request for internal usage
|
|
72
|
-
*/
|
|
73
|
-
__innerRequest?: string;
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* inner request for internal usage
|
|
77
|
-
*/
|
|
78
|
-
__innerRequest_request?: string;
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* inner relative path for internal usage
|
|
82
|
-
*/
|
|
83
|
-
__innerRequest_relativePath?: string;
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* internal: shared marker `RestrictionsPlugin` flips when it filters out an existing target, letting `ExportsFieldPlugin` fall back instead of erroring
|
|
87
|
-
*/
|
|
88
|
-
__restrictionsMarker?: { blocked: boolean };
|
|
89
|
-
}
|
|
90
|
-
declare interface BasenameCacheEntry {
|
|
91
|
-
/**
|
|
92
|
-
* cached dirname function
|
|
93
|
-
*/
|
|
94
|
-
fn: (maybePath: string, suffix?: string) => string;
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* the underlying cache map
|
|
98
|
-
*/
|
|
99
|
-
cache: Map<string, Map<undefined | string, undefined | string>>;
|
|
100
|
-
}
|
|
101
|
-
type BufferEncoding =
|
|
102
|
-
| "ascii"
|
|
103
|
-
| "utf8"
|
|
104
|
-
| "utf-8"
|
|
105
|
-
| "utf16le"
|
|
106
|
-
| "utf-16le"
|
|
107
|
-
| "ucs2"
|
|
108
|
-
| "ucs-2"
|
|
109
|
-
| "base64"
|
|
110
|
-
| "base64url"
|
|
111
|
-
| "latin1"
|
|
112
|
-
| "binary"
|
|
113
|
-
| "hex";
|
|
114
|
-
type BufferEncodingOption = "buffer" | { encoding: "buffer" };
|
|
115
|
-
declare interface Cache {
|
|
116
|
-
[index: string]: undefined | ResolveRequest | ResolveRequest[];
|
|
117
|
-
}
|
|
118
|
-
declare class CachedInputFileSystem {
|
|
119
|
-
constructor(fileSystem: BaseFileSystem, duration: number);
|
|
120
|
-
fileSystem: BaseFileSystem;
|
|
121
|
-
lstat?: LStat;
|
|
122
|
-
lstatSync?: LStatSync;
|
|
123
|
-
stat: Stat;
|
|
124
|
-
statSync: StatSync;
|
|
125
|
-
readdir: Readdir;
|
|
126
|
-
readdirSync: ReaddirSync;
|
|
127
|
-
readFile: ReadFile;
|
|
128
|
-
readFileSync: ReadFileSync;
|
|
129
|
-
readJson?: (
|
|
130
|
-
pathOrFileDescription: PathOrFileDescriptor,
|
|
131
|
-
callback: (
|
|
132
|
-
err: null | Error | NodeJS.ErrnoException,
|
|
133
|
-
result?: JsonObject,
|
|
134
|
-
) => void,
|
|
135
|
-
) => void;
|
|
136
|
-
readJsonSync?: (pathOrFileDescription: PathOrFileDescriptor) => JsonObject;
|
|
137
|
-
readlink: Readlink;
|
|
138
|
-
readlinkSync: ReadlinkSync;
|
|
139
|
-
realpath?: RealPath;
|
|
140
|
-
realpathSync?: RealPathSync;
|
|
141
|
-
purge(
|
|
142
|
-
what?:
|
|
143
|
-
| string
|
|
144
|
-
| number
|
|
145
|
-
| URL_url
|
|
146
|
-
| Buffer
|
|
147
|
-
| (string | number | URL_url | Buffer)[]
|
|
148
|
-
| Set<string | number | URL_url | Buffer>,
|
|
149
|
-
options?: { exact?: boolean },
|
|
150
|
-
): void;
|
|
151
|
-
}
|
|
152
|
-
declare class CloneBasenamePlugin {
|
|
153
|
-
constructor(
|
|
154
|
-
source:
|
|
155
|
-
| string
|
|
156
|
-
| AsyncSeriesBailHook<
|
|
157
|
-
[ResolveRequest, ResolveContext],
|
|
158
|
-
null | ResolveRequest
|
|
159
|
-
>,
|
|
160
|
-
target:
|
|
161
|
-
| string
|
|
162
|
-
| AsyncSeriesBailHook<
|
|
163
|
-
[ResolveRequest, ResolveContext],
|
|
164
|
-
null | ResolveRequest
|
|
165
|
-
>,
|
|
166
|
-
);
|
|
167
|
-
source:
|
|
168
|
-
| string
|
|
169
|
-
| AsyncSeriesBailHook<
|
|
170
|
-
[ResolveRequest, ResolveContext],
|
|
171
|
-
null | ResolveRequest
|
|
172
|
-
>;
|
|
173
|
-
target:
|
|
174
|
-
| string
|
|
175
|
-
| AsyncSeriesBailHook<
|
|
176
|
-
[ResolveRequest, ResolveContext],
|
|
177
|
-
null | ResolveRequest
|
|
178
|
-
>;
|
|
179
|
-
apply(resolver: Resolver): void;
|
|
180
|
-
}
|
|
181
|
-
declare interface CompiledAliasOption {
|
|
182
|
-
/**
|
|
183
|
-
* original alias name
|
|
184
|
-
*/
|
|
185
|
-
name: string;
|
|
186
|
-
|
|
187
|
-
/**
|
|
188
|
-
* name + "/" — precomputed to avoid per-resolve concat
|
|
189
|
-
*/
|
|
190
|
-
nameWithSlash: string;
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* alias target(s)
|
|
194
|
-
*/
|
|
195
|
-
alias: Alias;
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
* normalized onlyModule flag
|
|
199
|
-
*/
|
|
200
|
-
onlyModule: boolean;
|
|
201
|
-
|
|
202
|
-
/**
|
|
203
|
-
* absolute form of `name` (with slash ending), null when not absolute
|
|
204
|
-
*/
|
|
205
|
-
absolutePath: null | string;
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* substring before the single "*" in `name`, null when no wildcard
|
|
209
|
-
*/
|
|
210
|
-
wildcardPrefix: null | string;
|
|
211
|
-
|
|
212
|
-
/**
|
|
213
|
-
* substring after the single "*" in `name`, null when no wildcard
|
|
214
|
-
*/
|
|
215
|
-
wildcardSuffix: null | string;
|
|
216
|
-
|
|
217
|
-
/**
|
|
218
|
-
* first character code of `name` — used as a cheap screen on the hot path. `-1` indicates "matches any first char" (empty wildcard prefix).
|
|
219
|
-
*/
|
|
220
|
-
firstCharCode: number;
|
|
221
|
-
|
|
222
|
-
/**
|
|
223
|
-
* true when `alias` is an array — precomputed so the hot path skips `Array.isArray`
|
|
224
|
-
*/
|
|
225
|
-
arrayAlias: boolean;
|
|
226
|
-
}
|
|
227
|
-
declare interface CompiledAliasOptions {
|
|
228
|
-
/**
|
|
229
|
-
* declaration-ordered list
|
|
230
|
-
*/
|
|
231
|
-
all: CompiledAliasOption[];
|
|
232
|
-
|
|
233
|
-
/**
|
|
234
|
-
* bucketed by first char code
|
|
235
|
-
*/
|
|
236
|
-
byFirstChar: Map<number, CompiledAliasOption[]>;
|
|
237
|
-
|
|
238
|
-
/**
|
|
239
|
-
* true when an empty-prefix wildcard is present
|
|
240
|
-
*/
|
|
241
|
-
hasAnyFirstChar: boolean;
|
|
242
|
-
|
|
243
|
-
/**
|
|
244
|
-
* true when the bucket fast-path should be used at resolve time
|
|
245
|
-
*/
|
|
246
|
-
useBuckets: boolean;
|
|
247
|
-
}
|
|
248
|
-
type Context = KnownContext & Record<any, any>;
|
|
249
|
-
declare interface Dirent<T extends string | Buffer = string> {
|
|
250
|
-
/**
|
|
251
|
-
* true when is file, otherwise false
|
|
252
|
-
*/
|
|
253
|
-
isFile: () => boolean;
|
|
254
|
-
|
|
255
|
-
/**
|
|
256
|
-
* true when is directory, otherwise false
|
|
257
|
-
*/
|
|
258
|
-
isDirectory: () => boolean;
|
|
259
|
-
|
|
260
|
-
/**
|
|
261
|
-
* true when is block device, otherwise false
|
|
262
|
-
*/
|
|
263
|
-
isBlockDevice: () => boolean;
|
|
264
|
-
|
|
265
|
-
/**
|
|
266
|
-
* true when is character device, otherwise false
|
|
267
|
-
*/
|
|
268
|
-
isCharacterDevice: () => boolean;
|
|
269
|
-
|
|
270
|
-
/**
|
|
271
|
-
* true when is symbolic link, otherwise false
|
|
272
|
-
*/
|
|
273
|
-
isSymbolicLink: () => boolean;
|
|
274
|
-
|
|
275
|
-
/**
|
|
276
|
-
* true when is FIFO, otherwise false
|
|
277
|
-
*/
|
|
278
|
-
isFIFO: () => boolean;
|
|
279
|
-
|
|
280
|
-
/**
|
|
281
|
-
* true when is socket, otherwise false
|
|
282
|
-
*/
|
|
283
|
-
isSocket: () => boolean;
|
|
284
|
-
|
|
285
|
-
/**
|
|
286
|
-
* name
|
|
287
|
-
*/
|
|
288
|
-
name: T;
|
|
289
|
-
|
|
290
|
-
/**
|
|
291
|
-
* path
|
|
292
|
-
*/
|
|
293
|
-
parentPath: string;
|
|
294
|
-
|
|
295
|
-
/**
|
|
296
|
-
* path
|
|
297
|
-
*/
|
|
298
|
-
path?: string;
|
|
299
|
-
}
|
|
300
|
-
declare interface DirnameCacheEntry {
|
|
301
|
-
/**
|
|
302
|
-
* cached dirname function
|
|
303
|
-
*/
|
|
304
|
-
fn: (maybePath: string) => string;
|
|
305
|
-
|
|
306
|
-
/**
|
|
307
|
-
* the underlying cache map
|
|
308
|
-
*/
|
|
309
|
-
cache: Map<string, string>;
|
|
310
|
-
}
|
|
311
|
-
type EncodingOption =
|
|
312
|
-
| undefined
|
|
313
|
-
| null
|
|
314
|
-
| "ascii"
|
|
315
|
-
| "utf8"
|
|
316
|
-
| "utf-8"
|
|
317
|
-
| "utf16le"
|
|
318
|
-
| "utf-16le"
|
|
319
|
-
| "ucs2"
|
|
320
|
-
| "ucs-2"
|
|
321
|
-
| "base64"
|
|
322
|
-
| "base64url"
|
|
323
|
-
| "latin1"
|
|
324
|
-
| "binary"
|
|
325
|
-
| "hex"
|
|
326
|
-
| ObjectEncodingOptions;
|
|
327
|
-
type ErrorWithDetail = Error & { details?: string };
|
|
328
|
-
declare interface ExtensionAliasOption {
|
|
329
|
-
alias: string | string[];
|
|
330
|
-
extension: string;
|
|
331
|
-
}
|
|
332
|
-
declare interface ExtensionAliasOptions {
|
|
333
|
-
[index: string]: string | string[];
|
|
334
|
-
}
|
|
335
|
-
declare interface FileSystem {
|
|
336
|
-
/**
|
|
337
|
-
* read file method
|
|
338
|
-
*/
|
|
339
|
-
readFile: ReadFile;
|
|
340
|
-
|
|
341
|
-
/**
|
|
342
|
-
* readdir method
|
|
343
|
-
*/
|
|
344
|
-
readdir: Readdir;
|
|
345
|
-
|
|
346
|
-
/**
|
|
347
|
-
* read json method
|
|
348
|
-
*/
|
|
349
|
-
readJson?: (
|
|
350
|
-
pathOrFileDescription: PathOrFileDescriptor,
|
|
351
|
-
callback: (
|
|
352
|
-
err: null | Error | NodeJS.ErrnoException,
|
|
353
|
-
result?: JsonObject,
|
|
354
|
-
) => void,
|
|
355
|
-
) => void;
|
|
356
|
-
|
|
357
|
-
/**
|
|
358
|
-
* read link method
|
|
359
|
-
*/
|
|
360
|
-
readlink: Readlink;
|
|
361
|
-
|
|
362
|
-
/**
|
|
363
|
-
* lstat method
|
|
364
|
-
*/
|
|
365
|
-
lstat?: LStat;
|
|
366
|
-
|
|
367
|
-
/**
|
|
368
|
-
* stat method
|
|
369
|
-
*/
|
|
370
|
-
stat: Stat;
|
|
371
|
-
|
|
372
|
-
/**
|
|
373
|
-
* realpath method
|
|
374
|
-
*/
|
|
375
|
-
realpath?: RealPath;
|
|
376
|
-
}
|
|
377
|
-
type IBigIntStats = IStatsBase<bigint> & {
|
|
378
|
-
atimeNs: bigint;
|
|
379
|
-
mtimeNs: bigint;
|
|
380
|
-
ctimeNs: bigint;
|
|
381
|
-
birthtimeNs: bigint;
|
|
382
|
-
};
|
|
383
|
-
declare interface IStats {
|
|
384
|
-
/**
|
|
385
|
-
* is file
|
|
386
|
-
*/
|
|
387
|
-
isFile: () => boolean;
|
|
388
|
-
|
|
389
|
-
/**
|
|
390
|
-
* is directory
|
|
391
|
-
*/
|
|
392
|
-
isDirectory: () => boolean;
|
|
393
|
-
|
|
394
|
-
/**
|
|
395
|
-
* is block device
|
|
396
|
-
*/
|
|
397
|
-
isBlockDevice: () => boolean;
|
|
398
|
-
|
|
399
|
-
/**
|
|
400
|
-
* is character device
|
|
401
|
-
*/
|
|
402
|
-
isCharacterDevice: () => boolean;
|
|
403
|
-
|
|
404
|
-
/**
|
|
405
|
-
* is symbolic link
|
|
406
|
-
*/
|
|
407
|
-
isSymbolicLink: () => boolean;
|
|
408
|
-
|
|
409
|
-
/**
|
|
410
|
-
* is FIFO
|
|
411
|
-
*/
|
|
412
|
-
isFIFO: () => boolean;
|
|
413
|
-
|
|
414
|
-
/**
|
|
415
|
-
* is socket
|
|
416
|
-
*/
|
|
417
|
-
isSocket: () => boolean;
|
|
418
|
-
|
|
419
|
-
/**
|
|
420
|
-
* dev
|
|
421
|
-
*/
|
|
422
|
-
dev: number;
|
|
423
|
-
|
|
424
|
-
/**
|
|
425
|
-
* ino
|
|
426
|
-
*/
|
|
427
|
-
ino: number;
|
|
428
|
-
|
|
429
|
-
/**
|
|
430
|
-
* mode
|
|
431
|
-
*/
|
|
432
|
-
mode: number;
|
|
433
|
-
|
|
434
|
-
/**
|
|
435
|
-
* nlink
|
|
436
|
-
*/
|
|
437
|
-
nlink: number;
|
|
438
|
-
|
|
439
|
-
/**
|
|
440
|
-
* uid
|
|
441
|
-
*/
|
|
442
|
-
uid: number;
|
|
443
|
-
|
|
444
|
-
/**
|
|
445
|
-
* gid
|
|
446
|
-
*/
|
|
447
|
-
gid: number;
|
|
448
|
-
|
|
449
|
-
/**
|
|
450
|
-
* rdev
|
|
451
|
-
*/
|
|
452
|
-
rdev: number;
|
|
453
|
-
|
|
454
|
-
/**
|
|
455
|
-
* size
|
|
456
|
-
*/
|
|
457
|
-
size: number;
|
|
458
|
-
|
|
459
|
-
/**
|
|
460
|
-
* blksize
|
|
461
|
-
*/
|
|
462
|
-
blksize: number;
|
|
463
|
-
|
|
464
|
-
/**
|
|
465
|
-
* blocks
|
|
466
|
-
*/
|
|
467
|
-
blocks: number;
|
|
468
|
-
|
|
469
|
-
/**
|
|
470
|
-
* atime ms
|
|
471
|
-
*/
|
|
472
|
-
atimeMs: number;
|
|
473
|
-
|
|
474
|
-
/**
|
|
475
|
-
* mtime ms
|
|
476
|
-
*/
|
|
477
|
-
mtimeMs: number;
|
|
478
|
-
|
|
479
|
-
/**
|
|
480
|
-
* ctime ms
|
|
481
|
-
*/
|
|
482
|
-
ctimeMs: number;
|
|
483
|
-
|
|
484
|
-
/**
|
|
485
|
-
* birthtime ms
|
|
486
|
-
*/
|
|
487
|
-
birthtimeMs: number;
|
|
488
|
-
|
|
489
|
-
/**
|
|
490
|
-
* atime
|
|
491
|
-
*/
|
|
492
|
-
atime: Date;
|
|
493
|
-
|
|
494
|
-
/**
|
|
495
|
-
* mtime
|
|
496
|
-
*/
|
|
497
|
-
mtime: Date;
|
|
498
|
-
|
|
499
|
-
/**
|
|
500
|
-
* ctime
|
|
501
|
-
*/
|
|
502
|
-
ctime: Date;
|
|
503
|
-
|
|
504
|
-
/**
|
|
505
|
-
* birthtime
|
|
506
|
-
*/
|
|
507
|
-
birthtime: Date;
|
|
508
|
-
}
|
|
509
|
-
declare interface IStatsBase<T> {
|
|
510
|
-
/**
|
|
511
|
-
* is file
|
|
512
|
-
*/
|
|
513
|
-
isFile: () => boolean;
|
|
514
|
-
|
|
515
|
-
/**
|
|
516
|
-
* is directory
|
|
517
|
-
*/
|
|
518
|
-
isDirectory: () => boolean;
|
|
519
|
-
|
|
520
|
-
/**
|
|
521
|
-
* is block device
|
|
522
|
-
*/
|
|
523
|
-
isBlockDevice: () => boolean;
|
|
524
|
-
|
|
525
|
-
/**
|
|
526
|
-
* is character device
|
|
527
|
-
*/
|
|
528
|
-
isCharacterDevice: () => boolean;
|
|
529
|
-
|
|
530
|
-
/**
|
|
531
|
-
* is symbolic link
|
|
532
|
-
*/
|
|
533
|
-
isSymbolicLink: () => boolean;
|
|
534
|
-
|
|
535
|
-
/**
|
|
536
|
-
* is FIFO
|
|
537
|
-
*/
|
|
538
|
-
isFIFO: () => boolean;
|
|
539
|
-
|
|
540
|
-
/**
|
|
541
|
-
* is socket
|
|
542
|
-
*/
|
|
543
|
-
isSocket: () => boolean;
|
|
544
|
-
|
|
545
|
-
/**
|
|
546
|
-
* dev
|
|
547
|
-
*/
|
|
548
|
-
dev: T;
|
|
549
|
-
|
|
550
|
-
/**
|
|
551
|
-
* ino
|
|
552
|
-
*/
|
|
553
|
-
ino: T;
|
|
554
|
-
|
|
555
|
-
/**
|
|
556
|
-
* mode
|
|
557
|
-
*/
|
|
558
|
-
mode: T;
|
|
559
|
-
|
|
560
|
-
/**
|
|
561
|
-
* nlink
|
|
562
|
-
*/
|
|
563
|
-
nlink: T;
|
|
564
|
-
|
|
565
|
-
/**
|
|
566
|
-
* uid
|
|
567
|
-
*/
|
|
568
|
-
uid: T;
|
|
569
|
-
|
|
570
|
-
/**
|
|
571
|
-
* gid
|
|
572
|
-
*/
|
|
573
|
-
gid: T;
|
|
574
|
-
|
|
575
|
-
/**
|
|
576
|
-
* rdev
|
|
577
|
-
*/
|
|
578
|
-
rdev: T;
|
|
579
|
-
|
|
580
|
-
/**
|
|
581
|
-
* size
|
|
582
|
-
*/
|
|
583
|
-
size: T;
|
|
584
|
-
|
|
585
|
-
/**
|
|
586
|
-
* blksize
|
|
587
|
-
*/
|
|
588
|
-
blksize: T;
|
|
589
|
-
|
|
590
|
-
/**
|
|
591
|
-
* blocks
|
|
592
|
-
*/
|
|
593
|
-
blocks: T;
|
|
594
|
-
|
|
595
|
-
/**
|
|
596
|
-
* atime ms
|
|
597
|
-
*/
|
|
598
|
-
atimeMs: T;
|
|
599
|
-
|
|
600
|
-
/**
|
|
601
|
-
* mtime ms
|
|
602
|
-
*/
|
|
603
|
-
mtimeMs: T;
|
|
604
|
-
|
|
605
|
-
/**
|
|
606
|
-
* ctime ms
|
|
607
|
-
*/
|
|
608
|
-
ctimeMs: T;
|
|
609
|
-
|
|
610
|
-
/**
|
|
611
|
-
* birthtime ms
|
|
612
|
-
*/
|
|
613
|
-
birthtimeMs: T;
|
|
614
|
-
|
|
615
|
-
/**
|
|
616
|
-
* atime
|
|
617
|
-
*/
|
|
618
|
-
atime: Date;
|
|
619
|
-
|
|
620
|
-
/**
|
|
621
|
-
* mtime
|
|
622
|
-
*/
|
|
623
|
-
mtime: Date;
|
|
624
|
-
|
|
625
|
-
/**
|
|
626
|
-
* ctime
|
|
627
|
-
*/
|
|
628
|
-
ctime: Date;
|
|
629
|
-
|
|
630
|
-
/**
|
|
631
|
-
* birthtime
|
|
632
|
-
*/
|
|
633
|
-
birthtime: Date;
|
|
634
|
-
}
|
|
635
|
-
declare interface Iterator<T, Z> {
|
|
636
|
-
(
|
|
637
|
-
item: T,
|
|
638
|
-
callback: (err?: null | Error, result?: null | Z) => void,
|
|
639
|
-
i: number,
|
|
640
|
-
): void;
|
|
641
|
-
}
|
|
642
|
-
declare interface JoinCacheEntry {
|
|
643
|
-
/**
|
|
644
|
-
* cached join function
|
|
645
|
-
*/
|
|
646
|
-
fn: (rootPath: string, request: string) => string;
|
|
647
|
-
|
|
648
|
-
/**
|
|
649
|
-
* the underlying cache map
|
|
650
|
-
*/
|
|
651
|
-
cache: Map<string, Map<string, undefined | string>>;
|
|
652
|
-
}
|
|
653
|
-
declare interface JsonObject {
|
|
654
|
-
[index: string]:
|
|
655
|
-
| undefined
|
|
656
|
-
| null
|
|
657
|
-
| string
|
|
658
|
-
| number
|
|
659
|
-
| boolean
|
|
660
|
-
| JsonObject
|
|
661
|
-
| JsonValue[];
|
|
662
|
-
}
|
|
663
|
-
type JsonValue = null | string | number | boolean | JsonObject | JsonValue[];
|
|
664
|
-
declare interface KnownContext {
|
|
665
|
-
/**
|
|
666
|
-
* environments
|
|
667
|
-
*/
|
|
668
|
-
environments?: string[];
|
|
669
|
-
}
|
|
670
|
-
declare interface KnownHooks {
|
|
671
|
-
/**
|
|
672
|
-
* resolve step hook
|
|
673
|
-
*/
|
|
674
|
-
resolveStep: SyncHook<
|
|
675
|
-
[
|
|
676
|
-
AsyncSeriesBailHook<
|
|
677
|
-
[ResolveRequest, ResolveContext],
|
|
678
|
-
null | ResolveRequest
|
|
679
|
-
>,
|
|
680
|
-
ResolveRequest,
|
|
681
|
-
]
|
|
682
|
-
>;
|
|
683
|
-
|
|
684
|
-
/**
|
|
685
|
-
* no resolve hook
|
|
686
|
-
*/
|
|
687
|
-
noResolve: SyncHook<[ResolveRequest, Error]>;
|
|
688
|
-
|
|
689
|
-
/**
|
|
690
|
-
* resolve hook
|
|
691
|
-
*/
|
|
692
|
-
resolve: AsyncSeriesBailHook<
|
|
693
|
-
[ResolveRequest, ResolveContext],
|
|
694
|
-
null | ResolveRequest
|
|
695
|
-
>;
|
|
696
|
-
|
|
697
|
-
/**
|
|
698
|
-
* result hook
|
|
699
|
-
*/
|
|
700
|
-
result: AsyncSeriesHook<[ResolveRequest, ResolveContext]>;
|
|
701
|
-
}
|
|
702
|
-
declare interface LStat {
|
|
703
|
-
(
|
|
704
|
-
path: PathLike,
|
|
705
|
-
callback: (err: null | NodeJS.ErrnoException, result?: IStats) => void,
|
|
706
|
-
): void;
|
|
707
|
-
(
|
|
708
|
-
path: PathLike,
|
|
709
|
-
options: undefined | (StatOptions & { bigint?: false }),
|
|
710
|
-
callback: (err: null | NodeJS.ErrnoException, result?: IStats) => void,
|
|
711
|
-
): void;
|
|
712
|
-
(
|
|
713
|
-
path: PathLike,
|
|
714
|
-
options: StatOptions & { bigint: true },
|
|
715
|
-
callback: (
|
|
716
|
-
err: null | NodeJS.ErrnoException,
|
|
717
|
-
result?: IBigIntStats,
|
|
718
|
-
) => void,
|
|
719
|
-
): void;
|
|
720
|
-
(
|
|
721
|
-
path: PathLike,
|
|
722
|
-
options: undefined | StatOptions,
|
|
723
|
-
callback: (
|
|
724
|
-
err: null | NodeJS.ErrnoException,
|
|
725
|
-
result?: IStats | IBigIntStats,
|
|
726
|
-
) => void,
|
|
727
|
-
): void;
|
|
728
|
-
}
|
|
729
|
-
declare interface LStatSync {
|
|
730
|
-
(path: PathLike, options?: undefined): IStats;
|
|
731
|
-
(
|
|
732
|
-
path: PathLike,
|
|
733
|
-
options?: StatSyncOptions & { bigint?: false; throwIfNoEntry: false },
|
|
734
|
-
): undefined | IStats;
|
|
735
|
-
(
|
|
736
|
-
path: PathLike,
|
|
737
|
-
options: StatSyncOptions & { bigint: true; throwIfNoEntry: false },
|
|
738
|
-
): undefined | IBigIntStats;
|
|
739
|
-
(path: PathLike, options?: StatSyncOptions & { bigint?: false }): IStats;
|
|
740
|
-
(path: PathLike, options: StatSyncOptions & { bigint: true }): IBigIntStats;
|
|
741
|
-
(
|
|
742
|
-
path: PathLike,
|
|
743
|
-
options: StatSyncOptions & { bigint: boolean; throwIfNoEntry?: false },
|
|
744
|
-
): IStats | IBigIntStats;
|
|
745
|
-
(
|
|
746
|
-
path: PathLike,
|
|
747
|
-
options?: StatSyncOptions,
|
|
748
|
-
): undefined | IStats | IBigIntStats;
|
|
749
|
-
}
|
|
750
|
-
declare class LogInfoPlugin {
|
|
751
|
-
constructor(
|
|
752
|
-
source:
|
|
753
|
-
| string
|
|
754
|
-
| AsyncSeriesBailHook<
|
|
755
|
-
[ResolveRequest, ResolveContext],
|
|
756
|
-
null | ResolveRequest
|
|
757
|
-
>,
|
|
758
|
-
);
|
|
759
|
-
source:
|
|
760
|
-
| string
|
|
761
|
-
| AsyncSeriesBailHook<
|
|
762
|
-
[ResolveRequest, ResolveContext],
|
|
763
|
-
null | ResolveRequest
|
|
764
|
-
>;
|
|
765
|
-
apply(resolver: Resolver): void;
|
|
766
|
-
}
|
|
767
|
-
declare interface ObjectEncodingOptions {
|
|
768
|
-
/**
|
|
769
|
-
* encoding
|
|
770
|
-
*/
|
|
771
|
-
encoding?:
|
|
772
|
-
| null
|
|
773
|
-
| "ascii"
|
|
774
|
-
| "utf8"
|
|
775
|
-
| "utf-8"
|
|
776
|
-
| "utf16le"
|
|
777
|
-
| "utf-16le"
|
|
778
|
-
| "ucs2"
|
|
779
|
-
| "ucs-2"
|
|
780
|
-
| "base64"
|
|
781
|
-
| "base64url"
|
|
782
|
-
| "latin1"
|
|
783
|
-
| "binary"
|
|
784
|
-
| "hex";
|
|
785
|
-
}
|
|
786
|
-
declare interface ParsedIdentifier {
|
|
787
|
-
/**
|
|
788
|
-
* request
|
|
789
|
-
*/
|
|
790
|
-
request: string;
|
|
791
|
-
|
|
792
|
-
/**
|
|
793
|
-
* query
|
|
794
|
-
*/
|
|
795
|
-
query: string;
|
|
796
|
-
|
|
797
|
-
/**
|
|
798
|
-
* fragment
|
|
799
|
-
*/
|
|
800
|
-
fragment: string;
|
|
801
|
-
|
|
802
|
-
/**
|
|
803
|
-
* is directory
|
|
804
|
-
*/
|
|
805
|
-
directory: boolean;
|
|
806
|
-
|
|
807
|
-
/**
|
|
808
|
-
* is module
|
|
809
|
-
*/
|
|
810
|
-
module: boolean;
|
|
811
|
-
|
|
812
|
-
/**
|
|
813
|
-
* is file
|
|
814
|
-
*/
|
|
815
|
-
file: boolean;
|
|
816
|
-
|
|
817
|
-
/**
|
|
818
|
-
* is internal
|
|
819
|
-
*/
|
|
820
|
-
internal: boolean;
|
|
821
|
-
}
|
|
822
|
-
declare interface PathCacheFunctions {
|
|
823
|
-
/**
|
|
824
|
-
* cached join
|
|
825
|
-
*/
|
|
826
|
-
join: JoinCacheEntry;
|
|
827
|
-
|
|
828
|
-
/**
|
|
829
|
-
* cached dirname
|
|
830
|
-
*/
|
|
831
|
-
dirname: DirnameCacheEntry;
|
|
832
|
-
|
|
833
|
-
/**
|
|
834
|
-
* cached basename
|
|
835
|
-
*/
|
|
836
|
-
basename: BasenameCacheEntry;
|
|
837
|
-
}
|
|
838
|
-
type PathLike = string | URL_url | Buffer;
|
|
839
|
-
type PathOrFileDescriptor = string | number | URL_url | Buffer;
|
|
840
|
-
type Plugin =
|
|
841
|
-
| undefined
|
|
842
|
-
| null
|
|
843
|
-
| false
|
|
844
|
-
| ""
|
|
845
|
-
| 0
|
|
846
|
-
| { apply: (this: Resolver, resolver: Resolver) => void }
|
|
847
|
-
| ((this: Resolver, resolver: Resolver) => void);
|
|
848
|
-
declare interface PnpApi {
|
|
849
|
-
/**
|
|
850
|
-
* resolve to unqualified
|
|
851
|
-
*/
|
|
852
|
-
resolveToUnqualified: (
|
|
853
|
-
packageName: string,
|
|
854
|
-
issuer: string,
|
|
855
|
-
options: { considerBuiltins: boolean },
|
|
856
|
-
) => null | string;
|
|
857
|
-
}
|
|
858
|
-
declare interface ReadFile {
|
|
859
|
-
(
|
|
860
|
-
path: PathOrFileDescriptor,
|
|
861
|
-
options:
|
|
862
|
-
| undefined
|
|
863
|
-
| null
|
|
864
|
-
| ({ encoding?: null; flag?: string } & Abortable),
|
|
865
|
-
callback: (err: null | NodeJS.ErrnoException, result?: Buffer) => void,
|
|
866
|
-
): void;
|
|
867
|
-
(
|
|
868
|
-
path: PathOrFileDescriptor,
|
|
869
|
-
options:
|
|
870
|
-
| ({ encoding: BufferEncoding; flag?: string } & Abortable)
|
|
871
|
-
| "ascii"
|
|
872
|
-
| "utf8"
|
|
873
|
-
| "utf-8"
|
|
874
|
-
| "utf16le"
|
|
875
|
-
| "utf-16le"
|
|
876
|
-
| "ucs2"
|
|
877
|
-
| "ucs-2"
|
|
878
|
-
| "base64"
|
|
879
|
-
| "base64url"
|
|
880
|
-
| "latin1"
|
|
881
|
-
| "binary"
|
|
882
|
-
| "hex",
|
|
883
|
-
callback: (err: null | NodeJS.ErrnoException, result?: string) => void,
|
|
884
|
-
): void;
|
|
885
|
-
(
|
|
886
|
-
path: PathOrFileDescriptor,
|
|
887
|
-
options:
|
|
888
|
-
| undefined
|
|
889
|
-
| null
|
|
890
|
-
| "ascii"
|
|
891
|
-
| "utf8"
|
|
892
|
-
| "utf-8"
|
|
893
|
-
| "utf16le"
|
|
894
|
-
| "utf-16le"
|
|
895
|
-
| "ucs2"
|
|
896
|
-
| "ucs-2"
|
|
897
|
-
| "base64"
|
|
898
|
-
| "base64url"
|
|
899
|
-
| "latin1"
|
|
900
|
-
| "binary"
|
|
901
|
-
| "hex"
|
|
902
|
-
| (ObjectEncodingOptions & { flag?: string } & Abortable),
|
|
903
|
-
callback: (
|
|
904
|
-
err: null | NodeJS.ErrnoException,
|
|
905
|
-
result?: string | Buffer,
|
|
906
|
-
) => void,
|
|
907
|
-
): void;
|
|
908
|
-
(
|
|
909
|
-
path: PathOrFileDescriptor,
|
|
910
|
-
callback: (err: null | NodeJS.ErrnoException, result?: Buffer) => void,
|
|
911
|
-
): void;
|
|
912
|
-
}
|
|
913
|
-
declare interface ReadFileSync {
|
|
914
|
-
(
|
|
915
|
-
path: PathOrFileDescriptor,
|
|
916
|
-
options?: null | { encoding?: null; flag?: string },
|
|
917
|
-
): Buffer;
|
|
918
|
-
(
|
|
919
|
-
path: PathOrFileDescriptor,
|
|
920
|
-
options:
|
|
921
|
-
| "ascii"
|
|
922
|
-
| "utf8"
|
|
923
|
-
| "utf-8"
|
|
924
|
-
| "utf16le"
|
|
925
|
-
| "utf-16le"
|
|
926
|
-
| "ucs2"
|
|
927
|
-
| "ucs-2"
|
|
928
|
-
| "base64"
|
|
929
|
-
| "base64url"
|
|
930
|
-
| "latin1"
|
|
931
|
-
| "binary"
|
|
932
|
-
| "hex"
|
|
933
|
-
| { encoding: BufferEncoding; flag?: string },
|
|
934
|
-
): string;
|
|
935
|
-
(
|
|
936
|
-
path: PathOrFileDescriptor,
|
|
937
|
-
options?:
|
|
938
|
-
| null
|
|
939
|
-
| "ascii"
|
|
940
|
-
| "utf8"
|
|
941
|
-
| "utf-8"
|
|
942
|
-
| "utf16le"
|
|
943
|
-
| "utf-16le"
|
|
944
|
-
| "ucs2"
|
|
945
|
-
| "ucs-2"
|
|
946
|
-
| "base64"
|
|
947
|
-
| "base64url"
|
|
948
|
-
| "latin1"
|
|
949
|
-
| "binary"
|
|
950
|
-
| "hex"
|
|
951
|
-
| (ObjectEncodingOptions & { flag?: string }),
|
|
952
|
-
): string | Buffer;
|
|
953
|
-
}
|
|
954
|
-
declare interface Readdir {
|
|
955
|
-
(
|
|
956
|
-
path: PathLike,
|
|
957
|
-
options:
|
|
958
|
-
| undefined
|
|
959
|
-
| null
|
|
960
|
-
| "ascii"
|
|
961
|
-
| "utf8"
|
|
962
|
-
| "utf-8"
|
|
963
|
-
| "utf16le"
|
|
964
|
-
| "utf-16le"
|
|
965
|
-
| "ucs2"
|
|
966
|
-
| "ucs-2"
|
|
967
|
-
| "base64"
|
|
968
|
-
| "base64url"
|
|
969
|
-
| "latin1"
|
|
970
|
-
| "binary"
|
|
971
|
-
| "hex"
|
|
972
|
-
| {
|
|
973
|
-
encoding:
|
|
974
|
-
| null
|
|
975
|
-
| "ascii"
|
|
976
|
-
| "utf8"
|
|
977
|
-
| "utf-8"
|
|
978
|
-
| "utf16le"
|
|
979
|
-
| "utf-16le"
|
|
980
|
-
| "ucs2"
|
|
981
|
-
| "ucs-2"
|
|
982
|
-
| "base64"
|
|
983
|
-
| "base64url"
|
|
984
|
-
| "latin1"
|
|
985
|
-
| "binary"
|
|
986
|
-
| "hex";
|
|
987
|
-
withFileTypes?: false;
|
|
988
|
-
recursive?: boolean;
|
|
989
|
-
},
|
|
990
|
-
callback: (err: null | NodeJS.ErrnoException, files?: string[]) => void,
|
|
991
|
-
): void;
|
|
992
|
-
(
|
|
993
|
-
path: PathLike,
|
|
994
|
-
options:
|
|
995
|
-
| { encoding: "buffer"; withFileTypes?: false; recursive?: boolean }
|
|
996
|
-
| "buffer",
|
|
997
|
-
callback: (err: null | NodeJS.ErrnoException, files?: Buffer[]) => void,
|
|
998
|
-
): void;
|
|
999
|
-
(
|
|
1000
|
-
path: PathLike,
|
|
1001
|
-
options:
|
|
1002
|
-
| undefined
|
|
1003
|
-
| null
|
|
1004
|
-
| "ascii"
|
|
1005
|
-
| "utf8"
|
|
1006
|
-
| "utf-8"
|
|
1007
|
-
| "utf16le"
|
|
1008
|
-
| "utf-16le"
|
|
1009
|
-
| "ucs2"
|
|
1010
|
-
| "ucs-2"
|
|
1011
|
-
| "base64"
|
|
1012
|
-
| "base64url"
|
|
1013
|
-
| "latin1"
|
|
1014
|
-
| "binary"
|
|
1015
|
-
| "hex"
|
|
1016
|
-
| (ObjectEncodingOptions & {
|
|
1017
|
-
withFileTypes?: false;
|
|
1018
|
-
recursive?: boolean;
|
|
1019
|
-
}),
|
|
1020
|
-
callback: (
|
|
1021
|
-
err: null | NodeJS.ErrnoException,
|
|
1022
|
-
files?: string[] | Buffer[],
|
|
1023
|
-
) => void,
|
|
1024
|
-
): void;
|
|
1025
|
-
(
|
|
1026
|
-
path: PathLike,
|
|
1027
|
-
callback: (err: null | NodeJS.ErrnoException, files?: string[]) => void,
|
|
1028
|
-
): void;
|
|
1029
|
-
(
|
|
1030
|
-
path: PathLike,
|
|
1031
|
-
options: ObjectEncodingOptions & {
|
|
1032
|
-
withFileTypes: true;
|
|
1033
|
-
recursive?: boolean;
|
|
1034
|
-
},
|
|
1035
|
-
callback: (
|
|
1036
|
-
err: null | NodeJS.ErrnoException,
|
|
1037
|
-
files?: Dirent<string>[],
|
|
1038
|
-
) => void,
|
|
1039
|
-
): void;
|
|
1040
|
-
(
|
|
1041
|
-
path: PathLike,
|
|
1042
|
-
options: { encoding: "buffer"; withFileTypes: true; recursive?: boolean },
|
|
1043
|
-
callback: (
|
|
1044
|
-
err: null | NodeJS.ErrnoException,
|
|
1045
|
-
files: Dirent<Buffer>[],
|
|
1046
|
-
) => void,
|
|
1047
|
-
): void;
|
|
1048
|
-
}
|
|
1049
|
-
declare interface ReaddirSync {
|
|
1050
|
-
(
|
|
1051
|
-
path: PathLike,
|
|
1052
|
-
options?:
|
|
1053
|
-
| null
|
|
1054
|
-
| "ascii"
|
|
1055
|
-
| "utf8"
|
|
1056
|
-
| "utf-8"
|
|
1057
|
-
| "utf16le"
|
|
1058
|
-
| "utf-16le"
|
|
1059
|
-
| "ucs2"
|
|
1060
|
-
| "ucs-2"
|
|
1061
|
-
| "base64"
|
|
1062
|
-
| "base64url"
|
|
1063
|
-
| "latin1"
|
|
1064
|
-
| "binary"
|
|
1065
|
-
| "hex"
|
|
1066
|
-
| {
|
|
1067
|
-
encoding:
|
|
1068
|
-
| null
|
|
1069
|
-
| "ascii"
|
|
1070
|
-
| "utf8"
|
|
1071
|
-
| "utf-8"
|
|
1072
|
-
| "utf16le"
|
|
1073
|
-
| "utf-16le"
|
|
1074
|
-
| "ucs2"
|
|
1075
|
-
| "ucs-2"
|
|
1076
|
-
| "base64"
|
|
1077
|
-
| "base64url"
|
|
1078
|
-
| "latin1"
|
|
1079
|
-
| "binary"
|
|
1080
|
-
| "hex";
|
|
1081
|
-
withFileTypes?: false;
|
|
1082
|
-
recursive?: boolean;
|
|
1083
|
-
},
|
|
1084
|
-
): string[];
|
|
1085
|
-
(
|
|
1086
|
-
path: PathLike,
|
|
1087
|
-
options:
|
|
1088
|
-
| "buffer"
|
|
1089
|
-
| { encoding: "buffer"; withFileTypes?: false; recursive?: boolean },
|
|
1090
|
-
): Buffer[];
|
|
1091
|
-
(
|
|
1092
|
-
path: PathLike,
|
|
1093
|
-
options?:
|
|
1094
|
-
| null
|
|
1095
|
-
| "ascii"
|
|
1096
|
-
| "utf8"
|
|
1097
|
-
| "utf-8"
|
|
1098
|
-
| "utf16le"
|
|
1099
|
-
| "utf-16le"
|
|
1100
|
-
| "ucs2"
|
|
1101
|
-
| "ucs-2"
|
|
1102
|
-
| "base64"
|
|
1103
|
-
| "base64url"
|
|
1104
|
-
| "latin1"
|
|
1105
|
-
| "binary"
|
|
1106
|
-
| "hex"
|
|
1107
|
-
| (ObjectEncodingOptions & {
|
|
1108
|
-
withFileTypes?: false;
|
|
1109
|
-
recursive?: boolean;
|
|
1110
|
-
}),
|
|
1111
|
-
): string[] | Buffer[];
|
|
1112
|
-
(
|
|
1113
|
-
path: PathLike,
|
|
1114
|
-
options: ObjectEncodingOptions & {
|
|
1115
|
-
withFileTypes: true;
|
|
1116
|
-
recursive?: boolean;
|
|
1117
|
-
},
|
|
1118
|
-
): Dirent<string>[];
|
|
1119
|
-
(
|
|
1120
|
-
path: PathLike,
|
|
1121
|
-
options: { encoding: "buffer"; withFileTypes: true; recursive?: boolean },
|
|
1122
|
-
): Dirent<Buffer>[];
|
|
1123
|
-
}
|
|
1124
|
-
declare interface Readlink {
|
|
1125
|
-
(
|
|
1126
|
-
path: PathLike,
|
|
1127
|
-
options: EncodingOption,
|
|
1128
|
-
callback: (err: null | NodeJS.ErrnoException, result?: string) => void,
|
|
1129
|
-
): void;
|
|
1130
|
-
(
|
|
1131
|
-
path: PathLike,
|
|
1132
|
-
options: BufferEncodingOption,
|
|
1133
|
-
callback: (err: null | NodeJS.ErrnoException, result?: Buffer) => void,
|
|
1134
|
-
): void;
|
|
1135
|
-
(
|
|
1136
|
-
path: PathLike,
|
|
1137
|
-
options: EncodingOption,
|
|
1138
|
-
callback: (
|
|
1139
|
-
err: null | NodeJS.ErrnoException,
|
|
1140
|
-
result?: string | Buffer,
|
|
1141
|
-
) => void,
|
|
1142
|
-
): void;
|
|
1143
|
-
(
|
|
1144
|
-
path: PathLike,
|
|
1145
|
-
callback: (err: null | NodeJS.ErrnoException, result?: string) => void,
|
|
1146
|
-
): void;
|
|
1147
|
-
}
|
|
1148
|
-
declare interface ReadlinkSync {
|
|
1149
|
-
(path: PathLike, options?: EncodingOption): string;
|
|
1150
|
-
(path: PathLike, options: BufferEncodingOption): Buffer;
|
|
1151
|
-
(path: PathLike, options?: EncodingOption): string | Buffer;
|
|
1152
|
-
}
|
|
1153
|
-
declare interface RealPath {
|
|
1154
|
-
(
|
|
1155
|
-
path: PathLike,
|
|
1156
|
-
options: EncodingOption,
|
|
1157
|
-
callback: (err: null | NodeJS.ErrnoException, result?: string) => void,
|
|
1158
|
-
): void;
|
|
1159
|
-
(
|
|
1160
|
-
path: PathLike,
|
|
1161
|
-
options: BufferEncodingOption,
|
|
1162
|
-
callback: (err: null | NodeJS.ErrnoException, result?: Buffer) => void,
|
|
1163
|
-
): void;
|
|
1164
|
-
(
|
|
1165
|
-
path: PathLike,
|
|
1166
|
-
options: EncodingOption,
|
|
1167
|
-
callback: (
|
|
1168
|
-
err: null | NodeJS.ErrnoException,
|
|
1169
|
-
result?: string | Buffer,
|
|
1170
|
-
) => void,
|
|
1171
|
-
): void;
|
|
1172
|
-
(
|
|
1173
|
-
path: PathLike,
|
|
1174
|
-
callback: (err: null | NodeJS.ErrnoException, result?: string) => void,
|
|
1175
|
-
): void;
|
|
1176
|
-
}
|
|
1177
|
-
declare interface RealPathSync {
|
|
1178
|
-
(path: PathLike, options?: EncodingOption): string;
|
|
1179
|
-
(path: PathLike, options: BufferEncodingOption): Buffer;
|
|
1180
|
-
(path: PathLike, options?: EncodingOption): string | Buffer;
|
|
1181
|
-
}
|
|
1182
|
-
declare interface ResolveContext {
|
|
1183
|
-
/**
|
|
1184
|
-
* directories that was found on file system
|
|
1185
|
-
*/
|
|
1186
|
-
contextDependencies?: WriteOnlySet<string>;
|
|
1187
|
-
|
|
1188
|
-
/**
|
|
1189
|
-
* files that was found on file system
|
|
1190
|
-
*/
|
|
1191
|
-
fileDependencies?: WriteOnlySet<string>;
|
|
1192
|
-
|
|
1193
|
-
/**
|
|
1194
|
-
* dependencies that was not found on file system
|
|
1195
|
-
*/
|
|
1196
|
-
missingDependencies?: WriteOnlySet<string>;
|
|
1197
|
-
|
|
1198
|
-
/**
|
|
1199
|
-
* tip of the resolver call stack (a singly-linked list with Set-like API). For instance, `resolve → parsedResolve → describedResolve`. Accepts a legacy `Set<string>` for back-compat with older callers; it is normalized internally without a hot-path branch.
|
|
1200
|
-
*/
|
|
1201
|
-
stack?: StackEntry | Set<string>;
|
|
1202
|
-
|
|
1203
|
-
/**
|
|
1204
|
-
* log function
|
|
1205
|
-
*/
|
|
1206
|
-
log?: (str: string) => void;
|
|
1207
|
-
|
|
1208
|
-
/**
|
|
1209
|
-
* yield result, if provided plugins can return several results
|
|
1210
|
-
*/
|
|
1211
|
-
yield?: (request: ResolveRequest) => void;
|
|
1212
|
-
}
|
|
1213
|
-
declare interface ResolveFunction {
|
|
1214
|
-
(
|
|
1215
|
-
context: Context,
|
|
1216
|
-
parent: string | URL_url,
|
|
1217
|
-
specifier: string | URL_url,
|
|
1218
|
-
resolveContext?: ResolveContext,
|
|
1219
|
-
): string | false;
|
|
1220
|
-
(
|
|
1221
|
-
parent: string | URL_url,
|
|
1222
|
-
specifier: string | URL_url,
|
|
1223
|
-
resolveContext?: ResolveContext,
|
|
1224
|
-
): string | false;
|
|
1225
|
-
}
|
|
1226
|
-
declare interface ResolveFunctionAsync {
|
|
1227
|
-
(
|
|
1228
|
-
context: Context,
|
|
1229
|
-
parent: string | URL_url,
|
|
1230
|
-
specifier: string | URL_url,
|
|
1231
|
-
resolveContext: ResolveContext,
|
|
1232
|
-
callback: (
|
|
1233
|
-
err: null | ErrorWithDetail,
|
|
1234
|
-
res?: string | false,
|
|
1235
|
-
req?: ResolveRequest,
|
|
1236
|
-
) => void,
|
|
1237
|
-
): void;
|
|
1238
|
-
(
|
|
1239
|
-
context: Context,
|
|
1240
|
-
parent: string | URL_url,
|
|
1241
|
-
specifier: string | URL_url,
|
|
1242
|
-
callback: (
|
|
1243
|
-
err: null | ErrorWithDetail,
|
|
1244
|
-
res?: string | false,
|
|
1245
|
-
req?: ResolveRequest,
|
|
1246
|
-
) => void,
|
|
1247
|
-
): void;
|
|
1248
|
-
(
|
|
1249
|
-
parent: string | URL_url,
|
|
1250
|
-
specifier: string | URL_url,
|
|
1251
|
-
resolveContext: ResolveContext,
|
|
1252
|
-
callback: (
|
|
1253
|
-
err: null | ErrorWithDetail,
|
|
1254
|
-
res?: string | false,
|
|
1255
|
-
req?: ResolveRequest,
|
|
1256
|
-
) => void,
|
|
1257
|
-
): void;
|
|
1258
|
-
(
|
|
1259
|
-
parent: string | URL_url,
|
|
1260
|
-
specifier: string | URL_url,
|
|
1261
|
-
callback: (
|
|
1262
|
-
err: null | ErrorWithDetail,
|
|
1263
|
-
res?: string | false,
|
|
1264
|
-
req?: ResolveRequest,
|
|
1265
|
-
) => void,
|
|
1266
|
-
): void;
|
|
1267
|
-
}
|
|
1268
|
-
declare interface ResolveFunctionPromise {
|
|
1269
|
-
(
|
|
1270
|
-
context: Context,
|
|
1271
|
-
parent: string | URL_url,
|
|
1272
|
-
specifier: string | URL_url,
|
|
1273
|
-
resolveContext?: ResolveContext,
|
|
1274
|
-
): Promise<string | false>;
|
|
1275
|
-
(
|
|
1276
|
-
parent: string | URL_url,
|
|
1277
|
-
specifier: string | URL_url,
|
|
1278
|
-
resolveContext?: ResolveContext,
|
|
1279
|
-
): Promise<string | false>;
|
|
1280
|
-
}
|
|
1281
|
-
type ResolveOptionsOptionalFS = Omit<
|
|
1282
|
-
ResolveOptionsResolverFactoryObject_2,
|
|
1283
|
-
"fileSystem"
|
|
1284
|
-
> &
|
|
1285
|
-
Partial<Pick<ResolveOptionsResolverFactoryObject_2, "fileSystem">>;
|
|
1286
|
-
declare interface ResolveOptionsResolverFactoryObject_1 {
|
|
1287
|
-
/**
|
|
1288
|
-
* alias
|
|
1289
|
-
*/
|
|
1290
|
-
alias: AliasOption[];
|
|
1291
|
-
|
|
1292
|
-
/**
|
|
1293
|
-
* fallback
|
|
1294
|
-
*/
|
|
1295
|
-
fallback: AliasOption[];
|
|
1296
|
-
|
|
1297
|
-
/**
|
|
1298
|
-
* alias fields
|
|
1299
|
-
*/
|
|
1300
|
-
aliasFields: Set<string | string[]>;
|
|
1301
|
-
|
|
1302
|
-
/**
|
|
1303
|
-
* extension alias
|
|
1304
|
-
*/
|
|
1305
|
-
extensionAlias: ExtensionAliasOption[];
|
|
1306
|
-
|
|
1307
|
-
/**
|
|
1308
|
-
* apply extension alias to exports field targets
|
|
1309
|
-
*/
|
|
1310
|
-
extensionAliasForExports: boolean;
|
|
1311
|
-
|
|
1312
|
-
/**
|
|
1313
|
-
* cache predicate
|
|
1314
|
-
*/
|
|
1315
|
-
cachePredicate: (predicate: ResolveRequest) => boolean;
|
|
1316
|
-
|
|
1317
|
-
/**
|
|
1318
|
-
* cache with context
|
|
1319
|
-
*/
|
|
1320
|
-
cacheWithContext: boolean;
|
|
1321
|
-
|
|
1322
|
-
/**
|
|
1323
|
-
* A list of exports field condition names.
|
|
1324
|
-
*/
|
|
1325
|
-
conditionNames: Set<string>;
|
|
1326
|
-
|
|
1327
|
-
/**
|
|
1328
|
-
* description files
|
|
1329
|
-
*/
|
|
1330
|
-
descriptionFiles: string[];
|
|
1331
|
-
|
|
1332
|
-
/**
|
|
1333
|
-
* enforce extension
|
|
1334
|
-
*/
|
|
1335
|
-
enforceExtension: boolean;
|
|
1336
|
-
|
|
1337
|
-
/**
|
|
1338
|
-
* exports fields
|
|
1339
|
-
*/
|
|
1340
|
-
exportsFields: Set<string | string[]>;
|
|
1341
|
-
|
|
1342
|
-
/**
|
|
1343
|
-
* imports fields
|
|
1344
|
-
*/
|
|
1345
|
-
importsFields: Set<string | string[]>;
|
|
1346
|
-
|
|
1347
|
-
/**
|
|
1348
|
-
* extensions
|
|
1349
|
-
*/
|
|
1350
|
-
extensions: Set<string>;
|
|
1351
|
-
|
|
1352
|
-
/**
|
|
1353
|
-
* fileSystem
|
|
1354
|
-
*/
|
|
1355
|
-
fileSystem: FileSystem;
|
|
1356
|
-
|
|
1357
|
-
/**
|
|
1358
|
-
* unsafe cache
|
|
1359
|
-
*/
|
|
1360
|
-
unsafeCache: false | Cache;
|
|
1361
|
-
|
|
1362
|
-
/**
|
|
1363
|
-
* symlinks
|
|
1364
|
-
*/
|
|
1365
|
-
symlinks: boolean;
|
|
1366
|
-
|
|
1367
|
-
/**
|
|
1368
|
-
* resolver
|
|
1369
|
-
*/
|
|
1370
|
-
resolver?: Resolver;
|
|
1371
|
-
|
|
1372
|
-
/**
|
|
1373
|
-
* modules
|
|
1374
|
-
*/
|
|
1375
|
-
modules: (string | string[])[];
|
|
1376
|
-
|
|
1377
|
-
/**
|
|
1378
|
-
* main fields
|
|
1379
|
-
*/
|
|
1380
|
-
mainFields: { name: string[]; forceRelative: boolean }[];
|
|
1381
|
-
|
|
1382
|
-
/**
|
|
1383
|
-
* main files
|
|
1384
|
-
*/
|
|
1385
|
-
mainFiles: Set<string>;
|
|
1386
|
-
|
|
1387
|
-
/**
|
|
1388
|
-
* plugins
|
|
1389
|
-
*/
|
|
1390
|
-
plugins: Plugin[];
|
|
1391
|
-
|
|
1392
|
-
/**
|
|
1393
|
-
* pnp API
|
|
1394
|
-
*/
|
|
1395
|
-
pnpApi: null | PnpApi;
|
|
1396
|
-
|
|
1397
|
-
/**
|
|
1398
|
-
* roots
|
|
1399
|
-
*/
|
|
1400
|
-
roots: Set<string>;
|
|
1401
|
-
|
|
1402
|
-
/**
|
|
1403
|
-
* fully specified
|
|
1404
|
-
*/
|
|
1405
|
-
fullySpecified: boolean;
|
|
1406
|
-
|
|
1407
|
-
/**
|
|
1408
|
-
* resolve to context
|
|
1409
|
-
*/
|
|
1410
|
-
resolveToContext: boolean;
|
|
1411
|
-
|
|
1412
|
-
/**
|
|
1413
|
-
* restrictions
|
|
1414
|
-
*/
|
|
1415
|
-
restrictions: Set<string | RegExp>;
|
|
1416
|
-
|
|
1417
|
-
/**
|
|
1418
|
-
* prefer relative
|
|
1419
|
-
*/
|
|
1420
|
-
preferRelative: boolean;
|
|
1421
|
-
|
|
1422
|
-
/**
|
|
1423
|
-
* prefer absolute
|
|
1424
|
-
*/
|
|
1425
|
-
preferAbsolute: boolean;
|
|
1426
|
-
|
|
1427
|
-
/**
|
|
1428
|
-
* tsconfig file path or config object
|
|
1429
|
-
*/
|
|
1430
|
-
tsconfig: string | boolean | TsconfigOptions;
|
|
1431
|
-
}
|
|
1432
|
-
declare interface ResolveOptionsResolverFactoryObject_2 {
|
|
1433
|
-
/**
|
|
1434
|
-
* A list of module alias configurations or an object which maps key to value
|
|
1435
|
-
*/
|
|
1436
|
-
alias?: UserAliasOptions | UserAliasOptionEntry[];
|
|
1437
|
-
|
|
1438
|
-
/**
|
|
1439
|
-
* A list of module alias configurations or an object which maps key to value, applied only after modules option
|
|
1440
|
-
*/
|
|
1441
|
-
fallback?: UserAliasOptions | UserAliasOptionEntry[];
|
|
1442
|
-
|
|
1443
|
-
/**
|
|
1444
|
-
* An object which maps extension to extension aliases
|
|
1445
|
-
*/
|
|
1446
|
-
extensionAlias?: ExtensionAliasOptions;
|
|
1447
|
-
|
|
1448
|
-
/**
|
|
1449
|
-
* Also apply `extensionAlias` to paths resolved through the package.json `exports` field. Off by default (Node.js-aligned); when enabled, matches TypeScript's behavior for packages that ship TS sources alongside compiled JS.
|
|
1450
|
-
*/
|
|
1451
|
-
extensionAliasForExports?: boolean;
|
|
1452
|
-
|
|
1453
|
-
/**
|
|
1454
|
-
* A list of alias fields in description files
|
|
1455
|
-
*/
|
|
1456
|
-
aliasFields?: (string | string[])[];
|
|
1457
|
-
|
|
1458
|
-
/**
|
|
1459
|
-
* A function which decides whether a request should be cached or not. An object is passed with at least `path` and `request` properties.
|
|
1460
|
-
*/
|
|
1461
|
-
cachePredicate?: (predicate: ResolveRequest) => boolean;
|
|
1462
|
-
|
|
1463
|
-
/**
|
|
1464
|
-
* Whether or not the unsafeCache should include request context as part of the cache key.
|
|
1465
|
-
*/
|
|
1466
|
-
cacheWithContext?: boolean;
|
|
1467
|
-
|
|
1468
|
-
/**
|
|
1469
|
-
* A list of description files to read from
|
|
1470
|
-
*/
|
|
1471
|
-
descriptionFiles?: string[];
|
|
1472
|
-
|
|
1473
|
-
/**
|
|
1474
|
-
* A list of exports field condition names.
|
|
1475
|
-
*/
|
|
1476
|
-
conditionNames?: string[];
|
|
1477
|
-
|
|
1478
|
-
/**
|
|
1479
|
-
* Enforce that a extension from extensions must be used
|
|
1480
|
-
*/
|
|
1481
|
-
enforceExtension?: boolean;
|
|
1482
|
-
|
|
1483
|
-
/**
|
|
1484
|
-
* A list of exports fields in description files
|
|
1485
|
-
*/
|
|
1486
|
-
exportsFields?: (string | string[])[];
|
|
1487
|
-
|
|
1488
|
-
/**
|
|
1489
|
-
* A list of imports fields in description files
|
|
1490
|
-
*/
|
|
1491
|
-
importsFields?: (string | string[])[];
|
|
1492
|
-
|
|
1493
|
-
/**
|
|
1494
|
-
* A list of extensions which should be tried for files
|
|
1495
|
-
*/
|
|
1496
|
-
extensions?: string[];
|
|
1497
|
-
|
|
1498
|
-
/**
|
|
1499
|
-
* The file system which should be used
|
|
1500
|
-
*/
|
|
1501
|
-
fileSystem: FileSystem;
|
|
1502
|
-
|
|
1503
|
-
/**
|
|
1504
|
-
* Use this cache object to unsafely cache the successful requests
|
|
1505
|
-
*/
|
|
1506
|
-
unsafeCache?: boolean | Cache;
|
|
1507
|
-
|
|
1508
|
-
/**
|
|
1509
|
-
* Resolve symlinks to their symlinked location
|
|
1510
|
-
*/
|
|
1511
|
-
symlinks?: boolean;
|
|
1512
|
-
|
|
1513
|
-
/**
|
|
1514
|
-
* A prepared Resolver to which the plugins are attached
|
|
1515
|
-
*/
|
|
1516
|
-
resolver?: Resolver;
|
|
1517
|
-
|
|
1518
|
-
/**
|
|
1519
|
-
* A list of directories to resolve modules from, can be absolute path, folder name, or a `file:` `URL` instance
|
|
1520
|
-
*/
|
|
1521
|
-
modules?: string | URL_url | (string | URL_url)[];
|
|
1522
|
-
|
|
1523
|
-
/**
|
|
1524
|
-
* A list of main fields in description files
|
|
1525
|
-
*/
|
|
1526
|
-
mainFields?: (
|
|
1527
|
-
| string
|
|
1528
|
-
| string[]
|
|
1529
|
-
| { name: string | string[]; forceRelative: boolean }
|
|
1530
|
-
)[];
|
|
1531
|
-
|
|
1532
|
-
/**
|
|
1533
|
-
* A list of main files in directories
|
|
1534
|
-
*/
|
|
1535
|
-
mainFiles?: string[];
|
|
1536
|
-
|
|
1537
|
-
/**
|
|
1538
|
-
* A list of additional resolve plugins which should be applied
|
|
1539
|
-
*/
|
|
1540
|
-
plugins?: Plugin[];
|
|
1541
|
-
|
|
1542
|
-
/**
|
|
1543
|
-
* A PnP API that should be used - null is "never", undefined is "auto"
|
|
1544
|
-
*/
|
|
1545
|
-
pnpApi?: null | PnpApi;
|
|
1546
|
-
|
|
1547
|
-
/**
|
|
1548
|
-
* A list of root paths, each an absolute path or a `file:` `URL` instance
|
|
1549
|
-
*/
|
|
1550
|
-
roots?: (string | URL_url)[];
|
|
1551
|
-
|
|
1552
|
-
/**
|
|
1553
|
-
* The request is already fully specified and no extensions or directories are resolved for it
|
|
1554
|
-
*/
|
|
1555
|
-
fullySpecified?: boolean;
|
|
1556
|
-
|
|
1557
|
-
/**
|
|
1558
|
-
* Resolve to a context instead of a file
|
|
1559
|
-
*/
|
|
1560
|
-
resolveToContext?: boolean;
|
|
1561
|
-
|
|
1562
|
-
/**
|
|
1563
|
-
* A list of resolve restrictions, each an absolute path, a `file:` `URL` instance, or a RegExp
|
|
1564
|
-
*/
|
|
1565
|
-
restrictions?: (string | RegExp | URL_url)[];
|
|
1566
|
-
|
|
1567
|
-
/**
|
|
1568
|
-
* Use only the sync constraints of the file system calls
|
|
1569
|
-
*/
|
|
1570
|
-
useSyncFileSystemCalls?: boolean;
|
|
1571
|
-
|
|
1572
|
-
/**
|
|
1573
|
-
* Prefer to resolve module requests as relative requests before falling back to modules
|
|
1574
|
-
*/
|
|
1575
|
-
preferRelative?: boolean;
|
|
1576
|
-
|
|
1577
|
-
/**
|
|
1578
|
-
* Prefer to resolve server-relative urls as absolute paths before falling back to resolve in roots
|
|
1579
|
-
*/
|
|
1580
|
-
preferAbsolute?: boolean;
|
|
1581
|
-
|
|
1582
|
-
/**
|
|
1583
|
-
* TypeScript config file path (or `file:` `URL` instance) or config object with configFile and references
|
|
1584
|
-
*/
|
|
1585
|
-
tsconfig?: string | boolean | URL_url | UserTsconfigOptions;
|
|
1586
|
-
}
|
|
1587
|
-
type ResolveRequest = BaseResolveRequest & Partial<ParsedIdentifier>;
|
|
1588
|
-
declare abstract class Resolver {
|
|
1589
|
-
fileSystem: FileSystem;
|
|
1590
|
-
options: ResolveOptionsResolverFactoryObject_1;
|
|
1591
|
-
pathCache: PathCacheFunctions;
|
|
1592
|
-
hooks: KnownHooks;
|
|
1593
|
-
ensureHook(
|
|
1594
|
-
name:
|
|
1595
|
-
| string
|
|
1596
|
-
| AsyncSeriesBailHook<
|
|
1597
|
-
[ResolveRequest, ResolveContext],
|
|
1598
|
-
null | ResolveRequest
|
|
1599
|
-
>,
|
|
1600
|
-
): AsyncSeriesBailHook<
|
|
1601
|
-
[ResolveRequest, ResolveContext],
|
|
1602
|
-
null | ResolveRequest
|
|
1603
|
-
>;
|
|
1604
|
-
getHook(
|
|
1605
|
-
name:
|
|
1606
|
-
| string
|
|
1607
|
-
| AsyncSeriesBailHook<
|
|
1608
|
-
[ResolveRequest, ResolveContext],
|
|
1609
|
-
null | ResolveRequest
|
|
1610
|
-
>,
|
|
1611
|
-
): AsyncSeriesBailHook<
|
|
1612
|
-
[ResolveRequest, ResolveContext],
|
|
1613
|
-
null | ResolveRequest
|
|
1614
|
-
>;
|
|
1615
|
-
resolveSync(
|
|
1616
|
-
parent: string | URL_url,
|
|
1617
|
-
specifier: string | URL_url,
|
|
1618
|
-
resolveContext?: ResolveContext,
|
|
1619
|
-
): string | false;
|
|
1620
|
-
resolveSync(
|
|
1621
|
-
context: Context,
|
|
1622
|
-
parent: string | URL_url,
|
|
1623
|
-
specifier: string | URL_url,
|
|
1624
|
-
resolveContext?: ResolveContext,
|
|
1625
|
-
): string | false;
|
|
1626
|
-
resolvePromise(
|
|
1627
|
-
parent: string | URL_url,
|
|
1628
|
-
specifier: string | URL_url,
|
|
1629
|
-
resolveContext?: ResolveContext,
|
|
1630
|
-
): Promise<string | false>;
|
|
1631
|
-
resolvePromise(
|
|
1632
|
-
context: Context,
|
|
1633
|
-
parent: string | URL_url,
|
|
1634
|
-
specifier: string | URL_url,
|
|
1635
|
-
resolveContext?: ResolveContext,
|
|
1636
|
-
): Promise<string | false>;
|
|
1637
|
-
resolve(
|
|
1638
|
-
parent: string | URL_url,
|
|
1639
|
-
specifier: string | URL_url,
|
|
1640
|
-
callback: (
|
|
1641
|
-
err: null | ErrorWithDetail,
|
|
1642
|
-
res?: string | false,
|
|
1643
|
-
req?: ResolveRequest,
|
|
1644
|
-
) => void,
|
|
1645
|
-
): void;
|
|
1646
|
-
resolve(
|
|
1647
|
-
parent: string | URL_url,
|
|
1648
|
-
specifier: string | URL_url,
|
|
1649
|
-
resolveContext: ResolveContext,
|
|
1650
|
-
callback: (
|
|
1651
|
-
err: null | ErrorWithDetail,
|
|
1652
|
-
res?: string | false,
|
|
1653
|
-
req?: ResolveRequest,
|
|
1654
|
-
) => void,
|
|
1655
|
-
): void;
|
|
1656
|
-
resolve(
|
|
1657
|
-
context: Context,
|
|
1658
|
-
parent: string | URL_url,
|
|
1659
|
-
specifier: string | URL_url,
|
|
1660
|
-
callback: (
|
|
1661
|
-
err: null | ErrorWithDetail,
|
|
1662
|
-
res?: string | false,
|
|
1663
|
-
req?: ResolveRequest,
|
|
1664
|
-
) => void,
|
|
1665
|
-
): void;
|
|
1666
|
-
resolve(
|
|
1667
|
-
context: Context,
|
|
1668
|
-
parent: string | URL_url,
|
|
1669
|
-
specifier: string | URL_url,
|
|
1670
|
-
resolveContext: ResolveContext,
|
|
1671
|
-
callback: (
|
|
1672
|
-
err: null | ErrorWithDetail,
|
|
1673
|
-
res?: string | false,
|
|
1674
|
-
req?: ResolveRequest,
|
|
1675
|
-
) => void,
|
|
1676
|
-
): void;
|
|
1677
|
-
doResolve(
|
|
1678
|
-
hook: AsyncSeriesBailHook<
|
|
1679
|
-
[ResolveRequest, ResolveContext],
|
|
1680
|
-
null | ResolveRequest
|
|
1681
|
-
>,
|
|
1682
|
-
request: ResolveRequest,
|
|
1683
|
-
message: null | string,
|
|
1684
|
-
resolveContext: ResolveContext,
|
|
1685
|
-
callback: (err?: null | Error, result?: ResolveRequest) => void,
|
|
1686
|
-
): void;
|
|
1687
|
-
parse(identifier: string): ParsedIdentifier;
|
|
1688
|
-
isModule(path: string): boolean;
|
|
1689
|
-
isPrivate(path: string): boolean;
|
|
1690
|
-
isDirectory(path: string): boolean;
|
|
1691
|
-
normalize(path: string): string;
|
|
1692
|
-
join(path: string, request: string): string;
|
|
1693
|
-
dirname(path: string): string;
|
|
1694
|
-
basename(path: string, suffix?: string): string;
|
|
1695
|
-
}
|
|
1696
|
-
|
|
1697
|
-
/**
|
|
1698
|
-
* Singly-linked stack entry that also exposes a Set-like API
|
|
1699
|
-
* (`has`, `size`, iteration). Each `doResolve` call prepends a new
|
|
1700
|
-
* `StackEntry` that points at the previous tip via `.parent`, so pushing
|
|
1701
|
-
* is O(1) in time and memory. Recursion detection walks the linked list
|
|
1702
|
-
* (O(n)) but the stack is typically shallow, so this is cheaper overall
|
|
1703
|
-
* than cloning a `Set` per call.
|
|
1704
|
-
*/
|
|
1705
|
-
declare abstract class StackEntry {
|
|
1706
|
-
name?: string;
|
|
1707
|
-
path: string | false;
|
|
1708
|
-
request: string;
|
|
1709
|
-
query: string;
|
|
1710
|
-
fragment: string;
|
|
1711
|
-
directory: boolean;
|
|
1712
|
-
module: boolean;
|
|
1713
|
-
parent?: StackEntry;
|
|
1714
|
-
|
|
1715
|
-
/**
|
|
1716
|
-
* Strings seeded by callers that still pass `stack: new Set([...])`.
|
|
1717
|
-
* Propagated through the chain so deeper `doResolve` calls still see
|
|
1718
|
-
* them during recursion checks. `undefined` in the common case so
|
|
1719
|
-
* there is no extra work on the hot path.
|
|
1720
|
-
*/
|
|
1721
|
-
preSeeded?: Set<string>;
|
|
1722
|
-
|
|
1723
|
-
/**
|
|
1724
|
-
* Walk the linked list looking for an entry with the same request shape.
|
|
1725
|
-
* Set-compatible: callers that used `stack.has(entry)` keep working.
|
|
1726
|
-
* NOTE: kept monomorphic on purpose. An earlier draft accepted a string
|
|
1727
|
-
* query too (so pre-5.21 plugins keeping their own `Set<string>` of
|
|
1728
|
-
* seen entries could probe the live stack with the formatted form),
|
|
1729
|
-
* but adding the second shape regressed `doResolve`'s heap profile by
|
|
1730
|
-
* ~1 MiB / 200 resolves on stack-churn — V8 keeps a polymorphic
|
|
1731
|
-
* call-site state for `parent.has(stackEntry)` once `has` has two
|
|
1732
|
-
* argument shapes. Plugins that need string membership can reach for
|
|
1733
|
-
* `[...stack].find(e => e.includes(formattedString))` via the
|
|
1734
|
-
* `String`-method proxies on `StackEntry` instead.
|
|
1735
|
-
*/
|
|
1736
|
-
has(query: StackEntry): boolean;
|
|
1737
|
-
|
|
1738
|
-
/**
|
|
1739
|
-
* Number of entries on the stack (oldest-to-newest length).
|
|
1740
|
-
*/
|
|
1741
|
-
get size(): number;
|
|
1742
|
-
|
|
1743
|
-
/**
|
|
1744
|
-
* Human-readable form used in recursion error messages, logs, and the
|
|
1745
|
-
* iterator above. Not memoized: caching would require an extra slot on
|
|
1746
|
-
* every `StackEntry`, which costs heap even on resolves that never look
|
|
1747
|
-
* at the formatted form.
|
|
1748
|
-
*/
|
|
1749
|
-
toString(): string;
|
|
1750
|
-
|
|
1751
|
-
/**
|
|
1752
|
-
* Iterate entries from oldest (root) to newest (tip), matching how a
|
|
1753
|
-
* `Set` that was populated in insertion order would iterate. Pre-seeded
|
|
1754
|
-
* legacy `Set<string>` entries come first so error-message output stays
|
|
1755
|
-
* ordered oldest-to-newest.
|
|
1756
|
-
* Yields each entry as its formatted `toString()` form. Plugins written
|
|
1757
|
-
* against the pre-5.21 `Set<string>` shape — e.g.
|
|
1758
|
-
* `[...resolveContext.stack].find(a => a.includes("module:"))` — keep
|
|
1759
|
-
* working unchanged because each yielded value is a plain string with
|
|
1760
|
-
* all of `String.prototype` available natively. Resolves that never
|
|
1761
|
-
* iterate the stack pay nothing; iteration costs one `toString()`
|
|
1762
|
-
* allocation per stack frame.
|
|
1763
|
-
*/
|
|
1764
|
-
[Symbol.iterator](): IterableIterator<string>;
|
|
1765
|
-
}
|
|
1766
|
-
declare interface Stat {
|
|
1767
|
-
(
|
|
1768
|
-
path: PathLike,
|
|
1769
|
-
callback: (err: null | NodeJS.ErrnoException, result?: IStats) => void,
|
|
1770
|
-
): void;
|
|
1771
|
-
(
|
|
1772
|
-
path: PathLike,
|
|
1773
|
-
options: undefined | (StatOptions & { bigint?: false }),
|
|
1774
|
-
callback: (err: null | NodeJS.ErrnoException, result?: IStats) => void,
|
|
1775
|
-
): void;
|
|
1776
|
-
(
|
|
1777
|
-
path: PathLike,
|
|
1778
|
-
options: StatOptions & { bigint: true },
|
|
1779
|
-
callback: (
|
|
1780
|
-
err: null | NodeJS.ErrnoException,
|
|
1781
|
-
result?: IBigIntStats,
|
|
1782
|
-
) => void,
|
|
1783
|
-
): void;
|
|
1784
|
-
(
|
|
1785
|
-
path: PathLike,
|
|
1786
|
-
options: undefined | StatOptions,
|
|
1787
|
-
callback: (
|
|
1788
|
-
err: null | NodeJS.ErrnoException,
|
|
1789
|
-
result?: IStats | IBigIntStats,
|
|
1790
|
-
) => void,
|
|
1791
|
-
): void;
|
|
1792
|
-
}
|
|
1793
|
-
declare interface StatOptions {
|
|
1794
|
-
/**
|
|
1795
|
-
* need bigint values
|
|
1796
|
-
*/
|
|
1797
|
-
bigint?: boolean;
|
|
1798
|
-
}
|
|
1799
|
-
declare interface StatSync {
|
|
1800
|
-
(path: PathLike, options?: undefined): IStats;
|
|
1801
|
-
(
|
|
1802
|
-
path: PathLike,
|
|
1803
|
-
options?: StatSyncOptions & { bigint?: false; throwIfNoEntry: false },
|
|
1804
|
-
): undefined | IStats;
|
|
1805
|
-
(
|
|
1806
|
-
path: PathLike,
|
|
1807
|
-
options: StatSyncOptions & { bigint: true; throwIfNoEntry: false },
|
|
1808
|
-
): undefined | IBigIntStats;
|
|
1809
|
-
(path: PathLike, options?: StatSyncOptions & { bigint?: false }): IStats;
|
|
1810
|
-
(path: PathLike, options: StatSyncOptions & { bigint: true }): IBigIntStats;
|
|
1811
|
-
(
|
|
1812
|
-
path: PathLike,
|
|
1813
|
-
options: StatSyncOptions & { bigint: boolean; throwIfNoEntry?: false },
|
|
1814
|
-
): IStats | IBigIntStats;
|
|
1815
|
-
(
|
|
1816
|
-
path: PathLike,
|
|
1817
|
-
options?: StatSyncOptions,
|
|
1818
|
-
): undefined | IStats | IBigIntStats;
|
|
1819
|
-
}
|
|
1820
|
-
declare interface StatSyncOptions {
|
|
1821
|
-
/**
|
|
1822
|
-
* need bigint values
|
|
1823
|
-
*/
|
|
1824
|
-
bigint?: boolean;
|
|
1825
|
-
|
|
1826
|
-
/**
|
|
1827
|
-
* throw if no entry
|
|
1828
|
-
*/
|
|
1829
|
-
throwIfNoEntry?: boolean;
|
|
1830
|
-
}
|
|
1831
|
-
declare interface SyncFileSystem {
|
|
1832
|
-
/**
|
|
1833
|
-
* read file sync method
|
|
1834
|
-
*/
|
|
1835
|
-
readFileSync: ReadFileSync;
|
|
1836
|
-
|
|
1837
|
-
/**
|
|
1838
|
-
* read dir sync method
|
|
1839
|
-
*/
|
|
1840
|
-
readdirSync: ReaddirSync;
|
|
1841
|
-
|
|
1842
|
-
/**
|
|
1843
|
-
* read json sync method
|
|
1844
|
-
*/
|
|
1845
|
-
readJsonSync?: (pathOrFileDescription: PathOrFileDescriptor) => JsonObject;
|
|
1846
|
-
|
|
1847
|
-
/**
|
|
1848
|
-
* read link sync method
|
|
1849
|
-
*/
|
|
1850
|
-
readlinkSync: ReadlinkSync;
|
|
1851
|
-
|
|
1852
|
-
/**
|
|
1853
|
-
* lstat sync method
|
|
1854
|
-
*/
|
|
1855
|
-
lstatSync?: LStatSync;
|
|
1856
|
-
|
|
1857
|
-
/**
|
|
1858
|
-
* stat sync method
|
|
1859
|
-
*/
|
|
1860
|
-
statSync: StatSync;
|
|
1861
|
-
|
|
1862
|
-
/**
|
|
1863
|
-
* real path sync method
|
|
1864
|
-
*/
|
|
1865
|
-
realpathSync?: RealPathSync;
|
|
1866
|
-
}
|
|
1867
|
-
declare interface TsconfigOptions {
|
|
1868
|
-
/**
|
|
1869
|
-
* A relative path to the tsconfig file based on cwd, or an absolute path of tsconfig file
|
|
1870
|
-
*/
|
|
1871
|
-
configFile?: string;
|
|
1872
|
-
|
|
1873
|
-
/**
|
|
1874
|
-
* References to other tsconfig files. 'auto' inherits from TypeScript config, or an array of relative/absolute paths
|
|
1875
|
-
*/
|
|
1876
|
-
references?: string[] | "auto";
|
|
1877
|
-
|
|
1878
|
-
/**
|
|
1879
|
-
* Override baseUrl from tsconfig.json. If provided, this value will be used instead of the baseUrl in the tsconfig file
|
|
1880
|
-
*/
|
|
1881
|
-
baseUrl?: string;
|
|
1882
|
-
}
|
|
1883
|
-
declare interface TsconfigPathsData {
|
|
1884
|
-
/**
|
|
1885
|
-
* tsconfig file data
|
|
1886
|
-
*/
|
|
1887
|
-
alias: CompiledAliasOptions;
|
|
1888
|
-
|
|
1889
|
-
/**
|
|
1890
|
-
* tsconfig file data
|
|
1891
|
-
*/
|
|
1892
|
-
modules: string[];
|
|
1893
|
-
}
|
|
1894
|
-
declare interface TsconfigPathsMap {
|
|
1895
|
-
/**
|
|
1896
|
-
* main tsconfig paths data
|
|
1897
|
-
*/
|
|
1898
|
-
main: TsconfigPathsData;
|
|
1899
|
-
|
|
1900
|
-
/**
|
|
1901
|
-
* main tsconfig base URL (absolute path)
|
|
1902
|
-
*/
|
|
1903
|
-
mainContext: string;
|
|
1904
|
-
|
|
1905
|
-
/**
|
|
1906
|
-
* referenced tsconfig paths data mapped by baseUrl
|
|
1907
|
-
*/
|
|
1908
|
-
refs: { [index: string]: TsconfigPathsData };
|
|
1909
|
-
|
|
1910
|
-
/**
|
|
1911
|
-
* all contexts (main + refs) for quick lookup
|
|
1912
|
-
*/
|
|
1913
|
-
allContexts: { [index: string]: TsconfigPathsData };
|
|
1914
|
-
|
|
1915
|
-
/**
|
|
1916
|
-
* precomputed `Object.keys(allContexts)` — read-only; used on the `_selectPathsDataForContext` hot path
|
|
1917
|
-
*/
|
|
1918
|
-
contextList: string[];
|
|
1919
|
-
|
|
1920
|
-
/**
|
|
1921
|
-
* file dependencies
|
|
1922
|
-
*/
|
|
1923
|
-
fileDependencies: Set<string>;
|
|
1924
|
-
}
|
|
1925
|
-
declare class TsconfigPathsPlugin {
|
|
1926
|
-
constructor(configFileOrOptions: string | true | TsconfigOptions);
|
|
1927
|
-
isAutoConfigFile: boolean;
|
|
1928
|
-
configFile: string;
|
|
1929
|
-
references: "auto" | TsconfigReference[];
|
|
1930
|
-
baseUrl?: string;
|
|
1931
|
-
apply(resolver: Resolver): void;
|
|
1932
|
-
}
|
|
1933
|
-
declare interface TsconfigReference {
|
|
1934
|
-
/**
|
|
1935
|
-
* Path to the referenced project
|
|
1936
|
-
*/
|
|
1937
|
-
path: string;
|
|
1938
|
-
}
|
|
1939
|
-
declare interface URL_url extends URL_Import {}
|
|
1940
|
-
declare interface UserAliasOptionEntry {
|
|
1941
|
-
alias: UserAliasOptionNewRequest;
|
|
1942
|
-
name: string;
|
|
1943
|
-
onlyModule?: boolean;
|
|
1944
|
-
}
|
|
1945
|
-
type UserAliasOptionNewRequest =
|
|
1946
|
-
| string
|
|
1947
|
-
| false
|
|
1948
|
-
| URL_url
|
|
1949
|
-
| (string | URL_url)[];
|
|
1950
|
-
declare interface UserAliasOptions {
|
|
1951
|
-
[index: string]: UserAliasOptionNewRequest;
|
|
1952
|
-
}
|
|
1953
|
-
declare interface UserTsconfigOptions {
|
|
1954
|
-
/**
|
|
1955
|
-
* A path, or `file:` `URL` instance, pointing at the tsconfig file
|
|
1956
|
-
*/
|
|
1957
|
-
configFile?: string | URL_url;
|
|
1958
|
-
|
|
1959
|
-
/**
|
|
1960
|
-
* References to other tsconfig files. 'auto' inherits from TypeScript config, or an array of relative/absolute paths or `file:` `URL` instances
|
|
1961
|
-
*/
|
|
1962
|
-
references?: (string | URL_url)[] | "auto";
|
|
1963
|
-
|
|
1964
|
-
/**
|
|
1965
|
-
* Override baseUrl from tsconfig.json with a path or `file:` `URL` instance
|
|
1966
|
-
*/
|
|
1967
|
-
baseUrl?: string | URL_url;
|
|
1968
|
-
}
|
|
1969
|
-
declare interface WriteOnlySet<T> {
|
|
1970
|
-
add: (item: T) => void;
|
|
1971
|
-
}
|
|
1972
|
-
declare function exports(
|
|
1973
|
-
context: Context,
|
|
1974
|
-
parent: string | URL_url,
|
|
1975
|
-
specifier: string | URL_url,
|
|
1976
|
-
resolveContext: ResolveContext,
|
|
1977
|
-
callback: (
|
|
1978
|
-
err: null | ErrorWithDetail,
|
|
1979
|
-
res?: string | false,
|
|
1980
|
-
req?: ResolveRequest,
|
|
1981
|
-
) => void,
|
|
1982
|
-
): void;
|
|
1983
|
-
declare function exports(
|
|
1984
|
-
context: Context,
|
|
1985
|
-
parent: string | URL_url,
|
|
1986
|
-
specifier: string | URL_url,
|
|
1987
|
-
callback: (
|
|
1988
|
-
err: null | ErrorWithDetail,
|
|
1989
|
-
res?: string | false,
|
|
1990
|
-
req?: ResolveRequest,
|
|
1991
|
-
) => void,
|
|
1992
|
-
): void;
|
|
1993
|
-
declare function exports(
|
|
1994
|
-
parent: string | URL_url,
|
|
1995
|
-
specifier: string | URL_url,
|
|
1996
|
-
resolveContext: ResolveContext,
|
|
1997
|
-
callback: (
|
|
1998
|
-
err: null | ErrorWithDetail,
|
|
1999
|
-
res?: string | false,
|
|
2000
|
-
req?: ResolveRequest,
|
|
2001
|
-
) => void,
|
|
2002
|
-
): void;
|
|
2003
|
-
declare function exports(
|
|
2004
|
-
parent: string | URL_url,
|
|
2005
|
-
specifier: string | URL_url,
|
|
2006
|
-
callback: (
|
|
2007
|
-
err: null | ErrorWithDetail,
|
|
2008
|
-
res?: string | false,
|
|
2009
|
-
req?: ResolveRequest,
|
|
2010
|
-
) => void,
|
|
2011
|
-
): void;
|
|
2012
|
-
declare namespace exports {
|
|
2013
|
-
export const sync: ResolveFunction;
|
|
2014
|
-
export const promise: ResolveFunctionPromise;
|
|
2015
|
-
export function create(
|
|
2016
|
-
options: ResolveOptionsOptionalFS,
|
|
2017
|
-
): ResolveFunctionAsync;
|
|
2018
|
-
export namespace create {
|
|
2019
|
-
export const sync: (options: ResolveOptionsOptionalFS) => ResolveFunction;
|
|
2020
|
-
export const promise: (
|
|
2021
|
-
options: ResolveOptionsOptionalFS,
|
|
2022
|
-
) => ResolveFunctionPromise;
|
|
2023
|
-
}
|
|
2024
|
-
export namespace ResolverFactory {
|
|
2025
|
-
export let createResolver: (
|
|
2026
|
-
options: ResolveOptionsResolverFactoryObject_2,
|
|
2027
|
-
) => Resolver;
|
|
2028
|
-
}
|
|
2029
|
-
export const forEachBail: <T, Z>(
|
|
2030
|
-
array: T[],
|
|
2031
|
-
iterator: Iterator<T, Z>,
|
|
2032
|
-
callback: (err?: null | Error, result?: null | Z, i?: number) => void,
|
|
2033
|
-
) => void;
|
|
2034
|
-
export type ResolveCallback = (
|
|
2035
|
-
err: null | ErrorWithDetail,
|
|
2036
|
-
res?: string | false,
|
|
2037
|
-
req?: ResolveRequest,
|
|
2038
|
-
) => void;
|
|
2039
|
-
export {
|
|
2040
|
-
CachedInputFileSystem,
|
|
2041
|
-
CloneBasenamePlugin,
|
|
2042
|
-
LogInfoPlugin,
|
|
2043
|
-
TsconfigPathsPlugin,
|
|
2044
|
-
ResolveOptionsOptionalFS,
|
|
2045
|
-
BaseFileSystem,
|
|
2046
|
-
PnpApi,
|
|
2047
|
-
Resolver,
|
|
2048
|
-
Context,
|
|
2049
|
-
FileSystem,
|
|
2050
|
-
ResolveContext,
|
|
2051
|
-
ResolveRequest,
|
|
2052
|
-
SyncFileSystem,
|
|
2053
|
-
Plugin,
|
|
2054
|
-
ResolveOptionsResolverFactoryObject_2 as ResolveOptions,
|
|
2055
|
-
ResolveFunctionAsync,
|
|
2056
|
-
ResolveFunction,
|
|
2057
|
-
ResolveFunctionPromise,
|
|
2058
|
-
};
|
|
2059
|
-
}
|
|
2060
|
-
|
|
2061
|
-
export = exports;
|
|
9
|
+
export = resolve;
|