@pnpm/pkg-manifest.utils 1100.2.4 → 1100.2.6
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.
|
@@ -11,10 +11,11 @@ export function convertEnginesRuntimeToDependencies(manifest, enginesFieldName,
|
|
|
11
11
|
if (runtime?.onFail !== 'download') {
|
|
12
12
|
continue;
|
|
13
13
|
}
|
|
14
|
-
if (
|
|
14
|
+
if (typeof runtime.version !== 'string') {
|
|
15
15
|
globalWarn(`Cannot download ${runtimeName} because no version is specified in ${enginesFieldName}.runtime`);
|
|
16
16
|
continue;
|
|
17
17
|
}
|
|
18
|
+
const version = runtime.version.trim();
|
|
18
19
|
if ('webcontainer' in process.versions) {
|
|
19
20
|
globalWarn(`Installation of ${runtimeName} versions is not supported in WebContainer`);
|
|
20
21
|
}
|
|
@@ -25,7 +26,7 @@ export function convertEnginesRuntimeToDependencies(manifest, enginesFieldName,
|
|
|
25
26
|
// `constructor`, `prototype`) becomes a regular own data property
|
|
26
27
|
// instead of altering Object.prototype.
|
|
27
28
|
Object.defineProperty(deps, runtimeName, {
|
|
28
|
-
value: `runtime:${
|
|
29
|
+
value: `runtime:${version}`,
|
|
29
30
|
enumerable: true,
|
|
30
31
|
writable: true,
|
|
31
32
|
configurable: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/pkg-manifest.utils",
|
|
3
|
-
"version": "1100.2.
|
|
3
|
+
"version": "1100.2.6",
|
|
4
4
|
"description": "Utils for dealing with package manifest",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
"funding": "https://opencollective.com/pnpm",
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|
|
13
|
-
"url": "https://github.com/pnpm/pnpm/tree/main/pkg-manifest/utils"
|
|
13
|
+
"url": "https://github.com/pnpm/pnpm/tree/main/pnpm11/pkg-manifest/utils"
|
|
14
14
|
},
|
|
15
|
-
"homepage": "https://github.com/pnpm/pnpm/tree/main/pkg-manifest/utils#readme",
|
|
15
|
+
"homepage": "https://github.com/pnpm/pnpm/tree/main/pnpm11/pkg-manifest/utils#readme",
|
|
16
16
|
"bugs": {
|
|
17
17
|
"url": "https://github.com/pnpm/pnpm/issues"
|
|
18
18
|
},
|
|
@@ -27,20 +27,20 @@
|
|
|
27
27
|
"!*.map"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"semver": "^7.8.
|
|
31
|
-
"@pnpm/core-loggers": "1100.2.
|
|
32
|
-
"@pnpm/
|
|
33
|
-
"@pnpm/
|
|
34
|
-
"@pnpm/types": "1101.3.
|
|
30
|
+
"semver": "^7.8.4",
|
|
31
|
+
"@pnpm/core-loggers": "1100.2.1",
|
|
32
|
+
"@pnpm/deps.peer-range": "1100.0.2",
|
|
33
|
+
"@pnpm/error": "1100.0.1",
|
|
34
|
+
"@pnpm/types": "1101.3.2"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@pnpm/logger": "^
|
|
37
|
+
"@pnpm/logger": "^1100.0.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@jest/globals": "30.
|
|
40
|
+
"@jest/globals": "30.4.1",
|
|
41
41
|
"@types/semver": "7.7.1",
|
|
42
42
|
"@pnpm/logger": "1100.0.0",
|
|
43
|
-
"@pnpm/pkg-manifest.utils": "1100.2.
|
|
43
|
+
"@pnpm/pkg-manifest.utils": "1100.2.6"
|
|
44
44
|
},
|
|
45
45
|
"engines": {
|
|
46
46
|
"node": ">=22.13"
|