@pnpm/default-resolver 1002.2.23 → 1002.3.1
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/lib/index.js +7 -3
- package/lib/index.js.map +1 -1
- package/package.json +12 -12
package/lib/index.js
CHANGED
|
@@ -22,14 +22,18 @@ function createResolver(fetchFromRegistry, getAuthHeader, pnpmOpts) {
|
|
|
22
22
|
resolve: async (wantedDependency, opts) => {
|
|
23
23
|
const resolution = await resolveFromNpm(wantedDependency, opts) ??
|
|
24
24
|
await resolveFromJsr(wantedDependency, opts) ??
|
|
25
|
-
(wantedDependency.bareSpecifier && (await (
|
|
26
|
-
await
|
|
25
|
+
(wantedDependency.bareSpecifier && (await resolveFromGit(wantedDependency) ??
|
|
26
|
+
await (0, tarball_resolver_1.resolveFromTarball)(fetchFromRegistry, wantedDependency) ??
|
|
27
27
|
await _resolveFromLocal(wantedDependency, opts))) ??
|
|
28
28
|
await _resolveNodeRuntime(wantedDependency) ??
|
|
29
29
|
await _resolveDenoRuntime(wantedDependency) ??
|
|
30
30
|
await _resolveBunRuntime(wantedDependency);
|
|
31
31
|
if (!resolution) {
|
|
32
|
-
|
|
32
|
+
let specifier = `${wantedDependency.alias ? wantedDependency.alias + '@' : ''}${wantedDependency.bareSpecifier ?? ''}`;
|
|
33
|
+
if (specifier !== '') {
|
|
34
|
+
specifier = `"${specifier}"`;
|
|
35
|
+
}
|
|
36
|
+
throw new error_1.PnpmError('SPEC_NOT_SUPPORTED_BY_ANY_RESOLVER', `${specifier} isn't supported by any available resolver.`);
|
|
33
37
|
}
|
|
34
38
|
return resolution;
|
|
35
39
|
},
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AA4CA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AA4CA,wCAwCC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CAAC;gBACrE,CAAC,gBAAgB,CAAC,aAAa,IAAI,CACjC,MAAM,cAAc,CAAC,gBAA6C,CAAC;oBACnE,MAAM,IAAA,qCAAkB,EAAC,iBAAiB,EAAE,gBAA6C,CAAC;oBAC1F,MAAM,iBAAiB,CAAC,gBAA6C,EAAE,IAAI,CAAC,CAC7E,CAAC;gBACF,MAAM,mBAAmB,CAAC,gBAAgB,CAAC;gBAC3C,MAAM,mBAAmB,CAAC,gBAAgB,CAAC;gBAC3C,MAAM,kBAAkB,CAAC,gBAAgB,CAAC,CAAA;YAC5C,IAAI,CAAC,UAAU,EAAE,CAAC;gBAChB,IAAI,SAAS,GAAG,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAAK,GAAG,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,gBAAgB,CAAC,aAAa,IAAI,EAAE,EAAE,CAAA;gBACtH,IAAI,SAAS,KAAK,EAAE,EAAE,CAAC;oBACrB,SAAS,GAAG,IAAI,SAAS,GAAG,CAAA;gBAC9B,CAAC;gBACD,MAAM,IAAI,iBAAS,CACjB,oCAAoC,EACpC,GAAG,SAAS,6CAA6C,CAAC,CAAA;YAC9D,CAAC;YACD,OAAO,UAAU,CAAA;QACnB,CAAC;QACD,UAAU;KACX,CAAA;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/default-resolver",
|
|
3
|
-
"version": "1002.
|
|
3
|
+
"version": "1002.3.1",
|
|
4
4
|
"description": "pnpm's default package resolver",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -27,19 +27,19 @@
|
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@pnpm/error": "1000.0.5",
|
|
30
|
-
"@pnpm/git-resolver": "1001.1
|
|
31
|
-
"@pnpm/
|
|
32
|
-
"@pnpm/
|
|
33
|
-
"@pnpm/resolver
|
|
34
|
-
"@pnpm/
|
|
35
|
-
"@pnpm/
|
|
36
|
-
"@pnpm/resolving.
|
|
37
|
-
"@pnpm/
|
|
38
|
-
"@pnpm/
|
|
30
|
+
"@pnpm/git-resolver": "1001.2.1",
|
|
31
|
+
"@pnpm/fetching-types": "1000.2.1",
|
|
32
|
+
"@pnpm/local-resolver": "1002.1.11",
|
|
33
|
+
"@pnpm/node.resolver": "1001.0.17",
|
|
34
|
+
"@pnpm/npm-resolver": "1005.1.2",
|
|
35
|
+
"@pnpm/resolver-base": "1005.4.1",
|
|
36
|
+
"@pnpm/resolving.deno-resolver": "1005.0.4",
|
|
37
|
+
"@pnpm/tarball-resolver": "1002.2.1",
|
|
38
|
+
"@pnpm/resolving.bun-resolver": "1005.0.4"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@pnpm/
|
|
42
|
-
"@pnpm/
|
|
41
|
+
"@pnpm/default-resolver": "1002.3.1",
|
|
42
|
+
"@pnpm/fetch": "1001.0.0"
|
|
43
43
|
},
|
|
44
44
|
"engines": {
|
|
45
45
|
"node": ">=18.12"
|