@pnpm/resolving.npm-resolver 1101.1.1 → 1101.3.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/lib/createNpmResolutionVerifier.d.ts +74 -0
- package/lib/createNpmResolutionVerifier.js +473 -0
- package/lib/fetchAttestationPublishedAt.d.ts +31 -0
- package/lib/fetchAttestationPublishedAt.js +99 -0
- package/lib/fetchFullMetadataCached.d.ts +33 -0
- package/lib/fetchFullMetadataCached.js +63 -0
- package/lib/index.d.ts +7 -5
- package/lib/index.js +134 -39
- package/lib/pickPackage.d.ts +32 -1
- package/lib/pickPackage.js +37 -31
- package/lib/pickPackageFromMeta.js +6 -2
- package/lib/violationCodes.d.ts +12 -0
- package/lib/violationCodes.js +13 -0
- package/package.json +16 -16
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Violation codes the npm resolver attaches to
|
|
3
|
+
* `ResolutionPolicyViolation.code` when an inline policy check rejects
|
|
4
|
+
* a pick. Exported so downstream code (the install command, the strict
|
|
5
|
+
* resolver wrapper, tests) references one source of truth instead of
|
|
6
|
+
* re-typing the string.
|
|
7
|
+
*
|
|
8
|
+
* Lives in its own module — both `index.ts` and `createNpmResolutionVerifier.ts`
|
|
9
|
+
* import it, so keeping the constants here avoids a cycle.
|
|
10
|
+
*/
|
|
11
|
+
export const MINIMUM_RELEASE_AGE_VIOLATION_CODE = 'MINIMUM_RELEASE_AGE_VIOLATION';
|
|
12
|
+
export const TRUST_DOWNGRADE_VIOLATION_CODE = 'TRUST_DOWNGRADE';
|
|
13
|
+
//# sourceMappingURL=violationCodes.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/resolving.npm-resolver",
|
|
3
|
-
"version": "1101.
|
|
3
|
+
"version": "1101.3.0",
|
|
4
4
|
"description": "Resolver for npm-hosted packages",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -40,26 +40,27 @@
|
|
|
40
40
|
"semver-utils": "^1.1.4",
|
|
41
41
|
"ssri": "13.0.1",
|
|
42
42
|
"version-selector-type": "^3.0.0",
|
|
43
|
-
"@pnpm/
|
|
43
|
+
"@pnpm/config.pick-registry-for-package": "1100.0.4",
|
|
44
|
+
"@pnpm/core-loggers": "1100.1.1",
|
|
44
45
|
"@pnpm/constants": "1100.0.0",
|
|
46
|
+
"@pnpm/config.version-policy": "1100.1.1",
|
|
45
47
|
"@pnpm/crypto.hash": "1100.0.1",
|
|
46
|
-
"@pnpm/fs.graceful-fs": "1100.1.0",
|
|
47
48
|
"@pnpm/error": "1100.0.0",
|
|
48
49
|
"@pnpm/fetching.types": "1100.0.1",
|
|
49
|
-
"@pnpm/
|
|
50
|
-
"@pnpm/resolving.registry.pkg-metadata-filter": "1100.0.
|
|
51
|
-
"@pnpm/resolving.
|
|
52
|
-
"@pnpm/
|
|
50
|
+
"@pnpm/fs.graceful-fs": "1100.1.0",
|
|
51
|
+
"@pnpm/resolving.registry.pkg-metadata-filter": "1100.0.4",
|
|
52
|
+
"@pnpm/resolving.registry.types": "1100.0.4",
|
|
53
|
+
"@pnpm/resolving.resolver-base": "1100.3.0",
|
|
54
|
+
"@pnpm/resolving.jsr-specifier-parser": "1100.0.0",
|
|
55
|
+
"@pnpm/store.cafs": "1100.1.6",
|
|
53
56
|
"@pnpm/store.index": "1100.1.0",
|
|
54
|
-
"@pnpm/
|
|
55
|
-
"@pnpm/workspace.spec-parser": "1100.0.0",
|
|
57
|
+
"@pnpm/types": "1101.1.1",
|
|
56
58
|
"@pnpm/workspace.range-resolver": "1100.0.1",
|
|
57
|
-
"@pnpm/
|
|
58
|
-
"@pnpm/config.pick-registry-for-package": "1100.0.3"
|
|
59
|
+
"@pnpm/workspace.spec-parser": "1100.0.0"
|
|
59
60
|
},
|
|
60
61
|
"peerDependencies": {
|
|
61
62
|
"@pnpm/logger": ">=1001.0.0 <1002.0.0",
|
|
62
|
-
"@pnpm/worker": "^1100.1.
|
|
63
|
+
"@pnpm/worker": "^1100.1.7"
|
|
63
64
|
},
|
|
64
65
|
"devDependencies": {
|
|
65
66
|
"@jest/globals": "30.3.0",
|
|
@@ -69,12 +70,11 @@
|
|
|
69
70
|
"@types/ssri": "^7.1.5",
|
|
70
71
|
"load-json-file": "^7.0.1",
|
|
71
72
|
"tempy": "3.0.0",
|
|
72
|
-
"@pnpm/config.version-policy": "1100.0.3",
|
|
73
|
-
"@pnpm/network.fetch": "1100.0.4",
|
|
74
|
-
"@pnpm/resolving.npm-resolver": "1101.1.1",
|
|
75
73
|
"@pnpm/logger": "1100.0.0",
|
|
74
|
+
"@pnpm/network.fetch": "1100.0.6",
|
|
76
75
|
"@pnpm/test-fixtures": "1100.0.0",
|
|
77
|
-
"@pnpm/
|
|
76
|
+
"@pnpm/resolving.npm-resolver": "1101.3.0",
|
|
77
|
+
"@pnpm/testing.mock-agent": "1100.0.6"
|
|
78
78
|
},
|
|
79
79
|
"engines": {
|
|
80
80
|
"node": ">=22.13"
|