@pnpm/hooks.pnpmfile 1100.0.26 → 1100.0.27
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/CHANGELOG.md +8 -0
- package/lib/requireHooks.d.ts +7 -0
- package/lib/requireHooks.js +1 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
package/lib/requireHooks.d.ts
CHANGED
|
@@ -16,6 +16,13 @@ export interface CookedHooks {
|
|
|
16
16
|
customResolvers?: CustomResolver[];
|
|
17
17
|
customFetchers?: CustomFetcher[];
|
|
18
18
|
calculatePnpmfileChecksum?: () => Promise<string>;
|
|
19
|
+
/**
|
|
20
|
+
* Whether a `readPackage` hook came from a pnpmfile the checksum does not
|
|
21
|
+
* cover (the global pnpmfile) — its drift is invisible to
|
|
22
|
+
* `pnpmfileChecksum` comparisons, so nothing downstream may treat the
|
|
23
|
+
* checksum as proof the hooks are unchanged.
|
|
24
|
+
*/
|
|
25
|
+
hasUntrackedReadPackageHook?: boolean;
|
|
19
26
|
}
|
|
20
27
|
export interface RequireHooksResult {
|
|
21
28
|
hooks: CookedHooks;
|
package/lib/requireHooks.js
CHANGED
|
@@ -73,6 +73,7 @@ export async function requireHooks(prefix, opts) {
|
|
|
73
73
|
filterLog: [],
|
|
74
74
|
updateConfig: [],
|
|
75
75
|
};
|
|
76
|
+
cookedHooks.hasUntrackedReadPackageHook = entries.some((entry) => entry.hooks?.readPackage != null && !entry.includeInChecksum);
|
|
76
77
|
// calculate combined checksum for all included files
|
|
77
78
|
if (entries.some((entry) => entry.hooks != null)) {
|
|
78
79
|
cookedHooks.calculatePnpmfileChecksum = async () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/hooks.pnpmfile",
|
|
3
|
-
"version": "1100.0.
|
|
3
|
+
"version": "1100.0.27",
|
|
4
4
|
"description": "Reading a .pnpmfile.cjs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@pnpm/core-loggers": "1100.3.2",
|
|
31
31
|
"@pnpm/crypto.hash": "1100.0.2",
|
|
32
|
-
"@pnpm/error": "1100.1.
|
|
32
|
+
"@pnpm/error": "1100.1.2",
|
|
33
33
|
"@pnpm/hooks.types": "1100.2.6",
|
|
34
34
|
"@pnpm/lockfile.types": "1100.0.19",
|
|
35
|
-
"@pnpm/store.controller-types": "1101.1.
|
|
35
|
+
"@pnpm/store.controller-types": "1101.1.1",
|
|
36
36
|
"@pnpm/types": "1101.9.0",
|
|
37
37
|
"chalk": "^6.0.0",
|
|
38
38
|
"path-absolute": "^2.0.0"
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@jest/globals": "30.4.1",
|
|
45
45
|
"@pnpm/fetching.fetcher-base": "1100.2.7",
|
|
46
|
-
"@pnpm/hooks.pnpmfile": "1100.0.
|
|
46
|
+
"@pnpm/hooks.pnpmfile": "1100.0.27",
|
|
47
47
|
"@pnpm/logger": "1100.0.0",
|
|
48
48
|
"@pnpm/test-fixtures": "1100.0.1"
|
|
49
49
|
},
|