node-version-install 1.5.1 → 1.5.2
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/dist/cjs/compat.js.map +1 -1
- package/dist/esm/compat.js +2 -2
- package/dist/esm/compat.js.map +1 -1
- package/package.json +6 -6
package/dist/cjs/compat.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/node-version/node-version-install/src/compat.ts"],"sourcesContent":["/**\n * Compatibility Layer for Node.js 0.8+\n * Local to this package - contains only needed functions.\n */\nimport os from 'os';\n\
|
|
1
|
+
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/node-version/node-version-install/src/compat.ts"],"sourcesContent":["/**\n * Compatibility Layer for Node.js 0.8+\n * Local to this package - contains only needed functions.\n */\nimport os from 'os';\n\nconst hasHomedir = typeof os.homedir === 'function';\n\nexport function homedir(): string {\n if (hasHomedir) {\n return os.homedir();\n }\n const home = require('homedir-polyfill');\n return home();\n}\n"],"names":["homedir","hasHomedir","os","home","require"],"mappings":"AAAA;;;CAGC;;;;+BAKeA;;;eAAAA;;;yDAJD;;;;;;AAEf,IAAMC,aAAa,OAAOC,WAAE,CAACF,OAAO,KAAK;AAElC,SAASA;IACd,IAAIC,YAAY;QACd,OAAOC,WAAE,CAACF,OAAO;IACnB;IACA,IAAMG,OAAOC,QAAQ;IACrB,OAAOD;AACT"}
|
package/dist/esm/compat.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* Compatibility Layer for Node.js 0.8+
|
|
3
3
|
* Local to this package - contains only needed functions.
|
|
4
4
|
*/ import os from 'os';
|
|
5
|
-
|
|
5
|
+
const hasHomedir = typeof os.homedir === 'function';
|
|
6
6
|
export function homedir() {
|
|
7
7
|
if (hasHomedir) {
|
|
8
8
|
return os.homedir();
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
const home = require('homedir-polyfill');
|
|
11
11
|
return home();
|
|
12
12
|
}
|
package/dist/esm/compat.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/node-version/node-version-install/src/compat.ts"],"sourcesContent":["/**\n * Compatibility Layer for Node.js 0.8+\n * Local to this package - contains only needed functions.\n */\nimport os from 'os';\n\
|
|
1
|
+
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/node-version/node-version-install/src/compat.ts"],"sourcesContent":["/**\n * Compatibility Layer for Node.js 0.8+\n * Local to this package - contains only needed functions.\n */\nimport os from 'os';\n\nconst hasHomedir = typeof os.homedir === 'function';\n\nexport function homedir(): string {\n if (hasHomedir) {\n return os.homedir();\n }\n const home = require('homedir-polyfill');\n return home();\n}\n"],"names":["os","hasHomedir","homedir","home","require"],"mappings":"AAAA;;;CAGC,GACD,OAAOA,QAAQ,KAAK;AAEpB,MAAMC,aAAa,OAAOD,GAAGE,OAAO,KAAK;AAEzC,OAAO,SAASA;IACd,IAAID,YAAY;QACd,OAAOD,GAAGE,OAAO;IACnB;IACA,MAAMC,OAAOC,QAAQ;IACrB,OAAOD;AACT"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-version-install",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.2",
|
|
4
4
|
"description": "Install NodeJs by version string asynchronously or synchronously",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"node",
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"version": "tsds version"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"function-exec-sync": "^1.5.
|
|
49
|
+
"function-exec-sync": "^1.5.3",
|
|
50
50
|
"homedir-polyfill": "^1.0.3",
|
|
51
|
-
"node-install-release": "^1.16.
|
|
51
|
+
"node-install-release": "^1.16.2",
|
|
52
52
|
"node-resolve-versions": "^1.3.11",
|
|
53
53
|
"queue-cb": "^1.6.1"
|
|
54
54
|
},
|
|
@@ -56,14 +56,14 @@
|
|
|
56
56
|
"@types/mocha": "^10.0.10",
|
|
57
57
|
"@types/node": "^25.0.1",
|
|
58
58
|
"cr": "^0.1.0",
|
|
59
|
-
"cross-spawn-cb": "^2.4.
|
|
59
|
+
"cross-spawn-cb": "^2.4.12",
|
|
60
60
|
"fs-remove-compat": "^0.2.1",
|
|
61
61
|
"is-version": "^1.0.7",
|
|
62
|
-
"node-version-use": "^2.1.
|
|
62
|
+
"node-version-use": "^2.1.5",
|
|
63
63
|
"node-version-utils": "^1.3.15",
|
|
64
64
|
"pinkie-promise": "^2.0.1",
|
|
65
65
|
"ts-dev-stack": "^1.21.3",
|
|
66
|
-
"tsds-config": "^0.2.
|
|
66
|
+
"tsds-config": "^0.2.1"
|
|
67
67
|
},
|
|
68
68
|
"engines": {
|
|
69
69
|
"node": ">=0.8"
|