@mawesome/npm-vm 0.0.0-alpha.0 → 0.1.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/LICENSE +21 -0
- package/README.md +50 -1
- package/dist/cli.js +4157 -0
- package/dist/cli.js.map +1 -0
- package/dist/index-B071ZJDk.d.cts +164 -0
- package/dist/index-B071ZJDk.d.ts +164 -0
- package/dist/index.cjs +7 -0
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/internal.cjs +2709 -0
- package/dist/internal.cjs.map +1 -0
- package/dist/internal.d.cts +139 -0
- package/dist/internal.d.ts +139 -0
- package/dist/internal.js +2706 -0
- package/dist/internal.js.map +1 -0
- package/dist/provenance--sOYCeF2.js +322 -0
- package/dist/provenance--sOYCeF2.js.map +1 -0
- package/dist/provenance-DDegWCyS.js +2 -0
- package/dist/runtime/atomic-C3shKdH9.cjs +88 -0
- package/dist/runtime/bootstrap.cjs +271 -0
- package/dist/runtime/commonjs-AANzyd21.cjs +7393 -0
- package/dist/runtime/dispatch-B9OSfqsn.cjs +25156 -0
- package/dist/runtime/dist-CXwBT6rE.cjs +30766 -0
- package/dist/runtime/home-BaoZZSBy.cjs +91 -0
- package/dist/runtime/install-C_M5WK98.cjs +13598 -0
- package/dist/runtime/journal-_bs-eJRJ.cjs +282 -0
- package/dist/runtime/launchers/cmd.tmpl +2 -0
- package/dist/runtime/launchers/ps1.tmpl +5 -0
- package/dist/runtime/launchers/sh.tmpl +3 -0
- package/dist/runtime/lease-HBD4CmBx.cjs +224 -0
- package/dist/runtime/lock-DBeYN-Zg.cjs +141 -0
- package/dist/runtime/messages-vUDkl1-0.cjs +174 -0
- package/dist/runtime/p-map-b8pXdaFZ.cjs +105 -0
- package/dist/runtime/proc-hB8N9WjN.cjs +127 -0
- package/dist/runtime/provenance-B4bajGXQ.cjs +2 -0
- package/dist/runtime/rolldown-runtime-BGT596CS.cjs +64 -0
- package/dist/runtime/runtime.cjs +143 -0
- package/dist/runtime/src-SpeGbMJx.cjs +314 -0
- package/dist/src-Bc9nN1Kl.cjs +2125 -0
- package/dist/src-Bc9nN1Kl.cjs.map +1 -0
- package/dist/src-NhNG2mnQ.js +1798 -0
- package/dist/src-NhNG2mnQ.js.map +1 -0
- package/package.json +87 -17
- package/index.js +0 -3
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
//#region src/own-npm.d.ts
|
|
2
|
+
/** The npm in the active Node's prefix: bundled, or whatever `npm i -g npm@x` put there. */
|
|
3
|
+
interface OwnNpm {
|
|
4
|
+
root: string;
|
|
5
|
+
version: string;
|
|
6
|
+
cliPath: string;
|
|
7
|
+
npxCliPath: string;
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/spec.d.ts
|
|
11
|
+
type HashAlgorithm = "sha512" | "sha256" | "sha224";
|
|
12
|
+
interface SpecHash {
|
|
13
|
+
algorithm: HashAlgorithm;
|
|
14
|
+
hex: string;
|
|
15
|
+
}
|
|
16
|
+
/** One npm version requirement: a range, or an exact version optionally pinned to a tarball hash. */
|
|
17
|
+
interface NpmSpec {
|
|
18
|
+
/** The range as written, without any hash suffix. */
|
|
19
|
+
range: string;
|
|
20
|
+
/** Set when the range is a single exact version. */
|
|
21
|
+
exact: string | null;
|
|
22
|
+
hash: SpecHash | null;
|
|
23
|
+
}
|
|
24
|
+
type OnFail = "ignore" | "warn" | "error" | "download";
|
|
25
|
+
type SpecField = "devEngines" | "packageManager";
|
|
26
|
+
interface ParsedSpecs {
|
|
27
|
+
/** Alternatives: Node's own npm or a candidate satisfies the project when it matches any of them. */
|
|
28
|
+
specs: NpmSpec[];
|
|
29
|
+
/** The policy of the last `devEngines.packageManager` entry (spec RES-7); `error` for `packageManager`. */
|
|
30
|
+
onFail: OnFail;
|
|
31
|
+
field: SpecField;
|
|
32
|
+
}
|
|
33
|
+
declare class SpecError extends Error {
|
|
34
|
+
override name: string;
|
|
35
|
+
readonly field: string;
|
|
36
|
+
/** The project's policy for this failure, when the entry declaring it could still be read. */
|
|
37
|
+
onFail: OnFail;
|
|
38
|
+
constructor(field: string, message: string);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Validates one version string before it reaches a transport argv or a message (spec RES-4).
|
|
42
|
+
* Build metadata other than a well-formed hash suffix is rejected: semver would silently drop it.
|
|
43
|
+
*/
|
|
44
|
+
declare function parseVersionSpec(raw: string, field: string): NpmSpec;
|
|
45
|
+
/**
|
|
46
|
+
* Reads the npm requirements of a parsed `package.json` (spec RES-4).
|
|
47
|
+
* Returns null when the project declares nothing for npm, including when it declares only pnpm or yarn.
|
|
48
|
+
*/
|
|
49
|
+
declare function parseSpecs(pkg: unknown): ParsedSpecs | null;
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region src/select.d.ts
|
|
52
|
+
interface RegistrySignature {
|
|
53
|
+
keyid: string;
|
|
54
|
+
sig: string;
|
|
55
|
+
}
|
|
56
|
+
/** A published npm version as the registry or the cache describes it. */
|
|
57
|
+
interface Candidate {
|
|
58
|
+
version: string;
|
|
59
|
+
/** `engines.node` of the package; missing means any Node. */
|
|
60
|
+
enginesNode: string | null;
|
|
61
|
+
/** `dist.integrity` (sha512 SRI). */
|
|
62
|
+
integrity: string;
|
|
63
|
+
/** Where the candidate lives when it is already cached. */
|
|
64
|
+
entryPath: string | null;
|
|
65
|
+
/** `dist.signatures` from the registry; null for a cached candidate. */
|
|
66
|
+
signatures: RegistrySignature[] | null;
|
|
67
|
+
/** For a cached entry: the key that verified it, or null when only a project's pin did. */
|
|
68
|
+
keyid?: string | null;
|
|
69
|
+
/** For a cached entry: the tarball digests recorded at verification, so a pin can be judged without the bytes. */
|
|
70
|
+
digests?: {
|
|
71
|
+
sha256: string;
|
|
72
|
+
sha224: string;
|
|
73
|
+
} | null;
|
|
74
|
+
}
|
|
75
|
+
interface Selection {
|
|
76
|
+
candidate: Candidate;
|
|
77
|
+
/** Pins from the specs that selected the candidate; the download must match one of them. Empty: unpinned. */
|
|
78
|
+
hashes: SpecHash[];
|
|
79
|
+
}
|
|
80
|
+
type SelectFailure = {
|
|
81
|
+
kind: "engine";
|
|
82
|
+
version: string;
|
|
83
|
+
enginesNode: string;
|
|
84
|
+
} | {
|
|
85
|
+
kind: "nomatch";
|
|
86
|
+
reason: string;
|
|
87
|
+
};
|
|
88
|
+
type SelectResult = {
|
|
89
|
+
kind: "selected";
|
|
90
|
+
selection: Selection;
|
|
91
|
+
} | {
|
|
92
|
+
kind: "failed";
|
|
93
|
+
failure: SelectFailure;
|
|
94
|
+
};
|
|
95
|
+
/** The hex digest of a `sha512-<base64>` SRI string, or null for any other form. */
|
|
96
|
+
declare function sriHex(integrity: string): string | null;
|
|
97
|
+
/**
|
|
98
|
+
* Picks the highest candidate matching any spec and the active Node (spec RES-6), cached first.
|
|
99
|
+
* Returns the reason when nothing fits, distinguishing an `engines.node` exclusion from no match at all.
|
|
100
|
+
*/
|
|
101
|
+
declare function selectCandidate(specs: readonly NpmSpec[], candidates: readonly Candidate[], nodeVersion: string): SelectResult;
|
|
102
|
+
//#endregion
|
|
103
|
+
//#region src/errors.d.ts
|
|
104
|
+
/** Exit codes of `npm-vm` itself and of the shim before npm starts (spec section 10). */
|
|
105
|
+
declare const EXIT: {
|
|
106
|
+
readonly ok: 0;
|
|
107
|
+
readonly problems: 1;
|
|
108
|
+
readonly partial: 2;
|
|
109
|
+
readonly resolution: 3;
|
|
110
|
+
readonly transport: 4;
|
|
111
|
+
readonly verification: 5;
|
|
112
|
+
readonly abi: 6;
|
|
113
|
+
readonly usage: 64;
|
|
114
|
+
};
|
|
115
|
+
type ExitCode = (typeof EXIT)[keyof typeof EXIT];
|
|
116
|
+
/** A failure with a message id from spec section 12 and the exit code it maps to. */
|
|
117
|
+
declare class NpmVmError extends Error {
|
|
118
|
+
override name: string;
|
|
119
|
+
readonly id: string;
|
|
120
|
+
readonly exitCode: ExitCode;
|
|
121
|
+
constructor(id: string, exitCode: ExitCode, message: string);
|
|
122
|
+
}
|
|
123
|
+
declare function isNpmVmError(error: unknown): error is NpmVmError;
|
|
124
|
+
//#endregion
|
|
125
|
+
//#region src/index.d.ts
|
|
126
|
+
interface ResolveSource {
|
|
127
|
+
file: string;
|
|
128
|
+
field: "devEngines" | "packageManager" | "env";
|
|
129
|
+
}
|
|
130
|
+
interface ResolveResult {
|
|
131
|
+
kind: "own" | "cached" | "download";
|
|
132
|
+
version: string;
|
|
133
|
+
/** Absolute path to `bin/npm-cli.js`; for a download, the path the entry will have once fetched. */
|
|
134
|
+
cliPath: string;
|
|
135
|
+
source: ResolveSource | null;
|
|
136
|
+
projectRoot: string | null;
|
|
137
|
+
/** Set for `cached` and `download`: what to fetch or verify. */
|
|
138
|
+
selection: Selection | null;
|
|
139
|
+
/** The project's npm requirements, when it declares any. */
|
|
140
|
+
specs: NpmSpec[] | null;
|
|
141
|
+
/** A warning to print on stderr before running Node's own npm (`onFail: warn`). */
|
|
142
|
+
warning: string | null;
|
|
143
|
+
}
|
|
144
|
+
interface ResolveOptions {
|
|
145
|
+
env?: NodeJS.ProcessEnv;
|
|
146
|
+
offline?: boolean;
|
|
147
|
+
/** The npm-vm home holding the cache namespace; defaults to `NPM_VM_HOME` or the platform location. */
|
|
148
|
+
home?: string;
|
|
149
|
+
}
|
|
150
|
+
/** The lookups resolution depends on; the install layer provides the real ones. */
|
|
151
|
+
interface ResolveProviders {
|
|
152
|
+
ownNpm(): OwnNpm | null;
|
|
153
|
+
cached(specs: readonly NpmSpec[]): Promise<Candidate[]>;
|
|
154
|
+
registry(specs: readonly NpmSpec[]): Promise<Candidate[]>;
|
|
155
|
+
nodeVersion: string;
|
|
156
|
+
/** Path a download will occupy, so callers can report it before fetching. */
|
|
157
|
+
entryPathFor(candidate: Candidate): string;
|
|
158
|
+
}
|
|
159
|
+
/** Resolves the npm to run for `argv` in `cwd` (spec section 5); writes only under the cache, spawns npm only as the transport. */
|
|
160
|
+
declare function resolveNpm(argv: readonly string[], cwd: string, options?: ResolveOptions): Promise<ResolveResult>;
|
|
161
|
+
declare function resolveNpmWith(argv: readonly string[], cwd: string, options: ResolveOptions, providers: ResolveProviders): Promise<ResolveResult>;
|
|
162
|
+
//#endregion
|
|
163
|
+
export { ParsedSpecs as _, resolveNpm as a, parseVersionSpec as b, NpmVmError as c, RegistrySignature as d, Selection as f, OnFail as g, NpmSpec as h, ResolveSource as i, isNpmVmError as l, sriHex as m, ResolveProviders as n, resolveNpmWith as o, selectCandidate as p, ResolveResult as r, EXIT as s, ResolveOptions as t, Candidate as u, SpecError as v, OwnNpm as x, parseSpecs as y };
|
|
164
|
+
//# sourceMappingURL=index-B071ZJDk.d.cts.map
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
//#region src/own-npm.d.ts
|
|
2
|
+
/** The npm in the active Node's prefix: bundled, or whatever `npm i -g npm@x` put there. */
|
|
3
|
+
interface OwnNpm {
|
|
4
|
+
root: string;
|
|
5
|
+
version: string;
|
|
6
|
+
cliPath: string;
|
|
7
|
+
npxCliPath: string;
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/spec.d.ts
|
|
11
|
+
type HashAlgorithm = "sha512" | "sha256" | "sha224";
|
|
12
|
+
interface SpecHash {
|
|
13
|
+
algorithm: HashAlgorithm;
|
|
14
|
+
hex: string;
|
|
15
|
+
}
|
|
16
|
+
/** One npm version requirement: a range, or an exact version optionally pinned to a tarball hash. */
|
|
17
|
+
interface NpmSpec {
|
|
18
|
+
/** The range as written, without any hash suffix. */
|
|
19
|
+
range: string;
|
|
20
|
+
/** Set when the range is a single exact version. */
|
|
21
|
+
exact: string | null;
|
|
22
|
+
hash: SpecHash | null;
|
|
23
|
+
}
|
|
24
|
+
type OnFail = "ignore" | "warn" | "error" | "download";
|
|
25
|
+
type SpecField = "devEngines" | "packageManager";
|
|
26
|
+
interface ParsedSpecs {
|
|
27
|
+
/** Alternatives: Node's own npm or a candidate satisfies the project when it matches any of them. */
|
|
28
|
+
specs: NpmSpec[];
|
|
29
|
+
/** The policy of the last `devEngines.packageManager` entry (spec RES-7); `error` for `packageManager`. */
|
|
30
|
+
onFail: OnFail;
|
|
31
|
+
field: SpecField;
|
|
32
|
+
}
|
|
33
|
+
declare class SpecError extends Error {
|
|
34
|
+
override name: string;
|
|
35
|
+
readonly field: string;
|
|
36
|
+
/** The project's policy for this failure, when the entry declaring it could still be read. */
|
|
37
|
+
onFail: OnFail;
|
|
38
|
+
constructor(field: string, message: string);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Validates one version string before it reaches a transport argv or a message (spec RES-4).
|
|
42
|
+
* Build metadata other than a well-formed hash suffix is rejected: semver would silently drop it.
|
|
43
|
+
*/
|
|
44
|
+
declare function parseVersionSpec(raw: string, field: string): NpmSpec;
|
|
45
|
+
/**
|
|
46
|
+
* Reads the npm requirements of a parsed `package.json` (spec RES-4).
|
|
47
|
+
* Returns null when the project declares nothing for npm, including when it declares only pnpm or yarn.
|
|
48
|
+
*/
|
|
49
|
+
declare function parseSpecs(pkg: unknown): ParsedSpecs | null;
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region src/select.d.ts
|
|
52
|
+
interface RegistrySignature {
|
|
53
|
+
keyid: string;
|
|
54
|
+
sig: string;
|
|
55
|
+
}
|
|
56
|
+
/** A published npm version as the registry or the cache describes it. */
|
|
57
|
+
interface Candidate {
|
|
58
|
+
version: string;
|
|
59
|
+
/** `engines.node` of the package; missing means any Node. */
|
|
60
|
+
enginesNode: string | null;
|
|
61
|
+
/** `dist.integrity` (sha512 SRI). */
|
|
62
|
+
integrity: string;
|
|
63
|
+
/** Where the candidate lives when it is already cached. */
|
|
64
|
+
entryPath: string | null;
|
|
65
|
+
/** `dist.signatures` from the registry; null for a cached candidate. */
|
|
66
|
+
signatures: RegistrySignature[] | null;
|
|
67
|
+
/** For a cached entry: the key that verified it, or null when only a project's pin did. */
|
|
68
|
+
keyid?: string | null;
|
|
69
|
+
/** For a cached entry: the tarball digests recorded at verification, so a pin can be judged without the bytes. */
|
|
70
|
+
digests?: {
|
|
71
|
+
sha256: string;
|
|
72
|
+
sha224: string;
|
|
73
|
+
} | null;
|
|
74
|
+
}
|
|
75
|
+
interface Selection {
|
|
76
|
+
candidate: Candidate;
|
|
77
|
+
/** Pins from the specs that selected the candidate; the download must match one of them. Empty: unpinned. */
|
|
78
|
+
hashes: SpecHash[];
|
|
79
|
+
}
|
|
80
|
+
type SelectFailure = {
|
|
81
|
+
kind: "engine";
|
|
82
|
+
version: string;
|
|
83
|
+
enginesNode: string;
|
|
84
|
+
} | {
|
|
85
|
+
kind: "nomatch";
|
|
86
|
+
reason: string;
|
|
87
|
+
};
|
|
88
|
+
type SelectResult = {
|
|
89
|
+
kind: "selected";
|
|
90
|
+
selection: Selection;
|
|
91
|
+
} | {
|
|
92
|
+
kind: "failed";
|
|
93
|
+
failure: SelectFailure;
|
|
94
|
+
};
|
|
95
|
+
/** The hex digest of a `sha512-<base64>` SRI string, or null for any other form. */
|
|
96
|
+
declare function sriHex(integrity: string): string | null;
|
|
97
|
+
/**
|
|
98
|
+
* Picks the highest candidate matching any spec and the active Node (spec RES-6), cached first.
|
|
99
|
+
* Returns the reason when nothing fits, distinguishing an `engines.node` exclusion from no match at all.
|
|
100
|
+
*/
|
|
101
|
+
declare function selectCandidate(specs: readonly NpmSpec[], candidates: readonly Candidate[], nodeVersion: string): SelectResult;
|
|
102
|
+
//#endregion
|
|
103
|
+
//#region src/errors.d.ts
|
|
104
|
+
/** Exit codes of `npm-vm` itself and of the shim before npm starts (spec section 10). */
|
|
105
|
+
declare const EXIT: {
|
|
106
|
+
readonly ok: 0;
|
|
107
|
+
readonly problems: 1;
|
|
108
|
+
readonly partial: 2;
|
|
109
|
+
readonly resolution: 3;
|
|
110
|
+
readonly transport: 4;
|
|
111
|
+
readonly verification: 5;
|
|
112
|
+
readonly abi: 6;
|
|
113
|
+
readonly usage: 64;
|
|
114
|
+
};
|
|
115
|
+
type ExitCode = (typeof EXIT)[keyof typeof EXIT];
|
|
116
|
+
/** A failure with a message id from spec section 12 and the exit code it maps to. */
|
|
117
|
+
declare class NpmVmError extends Error {
|
|
118
|
+
override name: string;
|
|
119
|
+
readonly id: string;
|
|
120
|
+
readonly exitCode: ExitCode;
|
|
121
|
+
constructor(id: string, exitCode: ExitCode, message: string);
|
|
122
|
+
}
|
|
123
|
+
declare function isNpmVmError(error: unknown): error is NpmVmError;
|
|
124
|
+
//#endregion
|
|
125
|
+
//#region src/index.d.ts
|
|
126
|
+
interface ResolveSource {
|
|
127
|
+
file: string;
|
|
128
|
+
field: "devEngines" | "packageManager" | "env";
|
|
129
|
+
}
|
|
130
|
+
interface ResolveResult {
|
|
131
|
+
kind: "own" | "cached" | "download";
|
|
132
|
+
version: string;
|
|
133
|
+
/** Absolute path to `bin/npm-cli.js`; for a download, the path the entry will have once fetched. */
|
|
134
|
+
cliPath: string;
|
|
135
|
+
source: ResolveSource | null;
|
|
136
|
+
projectRoot: string | null;
|
|
137
|
+
/** Set for `cached` and `download`: what to fetch or verify. */
|
|
138
|
+
selection: Selection | null;
|
|
139
|
+
/** The project's npm requirements, when it declares any. */
|
|
140
|
+
specs: NpmSpec[] | null;
|
|
141
|
+
/** A warning to print on stderr before running Node's own npm (`onFail: warn`). */
|
|
142
|
+
warning: string | null;
|
|
143
|
+
}
|
|
144
|
+
interface ResolveOptions {
|
|
145
|
+
env?: NodeJS.ProcessEnv;
|
|
146
|
+
offline?: boolean;
|
|
147
|
+
/** The npm-vm home holding the cache namespace; defaults to `NPM_VM_HOME` or the platform location. */
|
|
148
|
+
home?: string;
|
|
149
|
+
}
|
|
150
|
+
/** The lookups resolution depends on; the install layer provides the real ones. */
|
|
151
|
+
interface ResolveProviders {
|
|
152
|
+
ownNpm(): OwnNpm | null;
|
|
153
|
+
cached(specs: readonly NpmSpec[]): Promise<Candidate[]>;
|
|
154
|
+
registry(specs: readonly NpmSpec[]): Promise<Candidate[]>;
|
|
155
|
+
nodeVersion: string;
|
|
156
|
+
/** Path a download will occupy, so callers can report it before fetching. */
|
|
157
|
+
entryPathFor(candidate: Candidate): string;
|
|
158
|
+
}
|
|
159
|
+
/** Resolves the npm to run for `argv` in `cwd` (spec section 5); writes only under the cache, spawns npm only as the transport. */
|
|
160
|
+
declare function resolveNpm(argv: readonly string[], cwd: string, options?: ResolveOptions): Promise<ResolveResult>;
|
|
161
|
+
declare function resolveNpmWith(argv: readonly string[], cwd: string, options: ResolveOptions, providers: ResolveProviders): Promise<ResolveResult>;
|
|
162
|
+
//#endregion
|
|
163
|
+
export { ParsedSpecs as _, resolveNpm as a, parseVersionSpec as b, NpmVmError as c, RegistrySignature as d, Selection as f, OnFail as g, NpmSpec as h, ResolveSource as i, isNpmVmError as l, sriHex as m, ResolveProviders as n, resolveNpmWith as o, selectCandidate as p, ResolveResult as r, EXIT as s, ResolveOptions as t, Candidate as u, SpecError as v, OwnNpm as x, parseSpecs as y };
|
|
164
|
+
//# sourceMappingURL=index-B071ZJDk.d.ts.map
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_src = require("./src-Bc9nN1Kl.cjs");
|
|
3
|
+
exports.EXIT = require_src.EXIT;
|
|
4
|
+
exports.NpmVmError = require_src.NpmVmError;
|
|
5
|
+
exports.isNpmVmError = require_src.isNpmVmError;
|
|
6
|
+
exports.resolveNpm = require_src.resolveNpm;
|
|
7
|
+
exports.resolveNpmWith = require_src.resolveNpmWith;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { _ as ParsedSpecs, a as resolveNpm, c as NpmVmError, f as Selection, g as OnFail, h as NpmSpec, i as ResolveSource, l as isNpmVmError, n as ResolveProviders, o as resolveNpmWith, r as ResolveResult, s as EXIT, t as ResolveOptions, u as Candidate } from "./index-B071ZJDk.cjs";
|
|
2
|
+
export { type Candidate, EXIT, type NpmSpec, NpmVmError, type OnFail, type ParsedSpecs, ResolveOptions, ResolveProviders, ResolveResult, ResolveSource, type Selection, isNpmVmError, resolveNpm, resolveNpmWith };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { _ as ParsedSpecs, a as resolveNpm, c as NpmVmError, f as Selection, g as OnFail, h as NpmSpec, i as ResolveSource, l as isNpmVmError, n as ResolveProviders, o as resolveNpmWith, r as ResolveResult, s as EXIT, t as ResolveOptions, u as Candidate } from "./index-B071ZJDk.js";
|
|
2
|
+
export { type Candidate, EXIT, type NpmSpec, NpmVmError, type OnFail, type ParsedSpecs, ResolveOptions, ResolveProviders, ResolveResult, ResolveSource, type Selection, isNpmVmError, resolveNpm, resolveNpmWith };
|
package/dist/index.js
ADDED