node-version-install 1.5.2 → 1.5.3

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.
@@ -19,9 +19,7 @@ function _interop_require_default(obj) {
19
19
  }
20
20
  var hasHomedir = typeof _os.default.homedir === 'function';
21
21
  function homedir() {
22
- if (hasHomedir) {
23
- return _os.default.homedir();
24
- }
22
+ if (hasHomedir) return _os.default.homedir();
25
23
  var home = require('homedir-polyfill');
26
24
  return home();
27
25
  }
@@ -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\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"}
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';\nexport function homedir(): string {\n if (hasHomedir) return os.homedir();\n const home = require('homedir-polyfill');\n return home();\n}\n"],"names":["homedir","hasHomedir","os","home","require"],"mappings":"AAAA;;;CAGC;;;;+BAIeA;;;eAAAA;;;yDAHD;;;;;;AAEf,IAAMC,aAAa,OAAOC,WAAE,CAACF,OAAO,KAAK;AAClC,SAASA;IACd,IAAIC,YAAY,OAAOC,WAAE,CAACF,OAAO;IACjC,IAAMG,OAAOC,QAAQ;IACrB,OAAOD;AACT"}
@@ -4,9 +4,7 @@
4
4
  */ import os from 'os';
5
5
  const hasHomedir = typeof os.homedir === 'function';
6
6
  export function homedir() {
7
- if (hasHomedir) {
8
- return os.homedir();
9
- }
7
+ if (hasHomedir) return os.homedir();
10
8
  const home = require('homedir-polyfill');
11
9
  return home();
12
10
  }
@@ -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\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"}
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';\nexport function homedir(): string {\n if (hasHomedir) return os.homedir();\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;AACzC,OAAO,SAASA;IACd,IAAID,YAAY,OAAOD,GAAGE,OAAO;IACjC,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.2",
3
+ "version": "1.5.3",
4
4
  "description": "Install NodeJs by version string asynchronously or synchronously",
5
5
  "keywords": [
6
6
  "node",
@@ -46,24 +46,24 @@
46
46
  "version": "tsds version"
47
47
  },
48
48
  "dependencies": {
49
- "function-exec-sync": "^1.5.3",
49
+ "function-exec-sync": "^1.5.6",
50
50
  "homedir-polyfill": "^1.0.3",
51
- "node-install-release": "^1.16.2",
52
- "node-resolve-versions": "^1.3.11",
53
- "queue-cb": "^1.6.1"
51
+ "node-install-release": "^1.16.4",
52
+ "node-resolve-versions": "^1.3.13",
53
+ "queue-cb": "^1.6.3"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@types/mocha": "^10.0.10",
57
- "@types/node": "^25.0.1",
57
+ "@types/node": "^25.0.2",
58
58
  "cr": "^0.1.0",
59
- "cross-spawn-cb": "^2.4.12",
60
- "fs-remove-compat": "^0.2.1",
61
- "is-version": "^1.0.7",
62
- "node-version-use": "^2.1.5",
63
- "node-version-utils": "^1.3.15",
59
+ "cross-spawn-cb": "^2.4.14",
60
+ "fs-remove-compat": "^0.2.4",
61
+ "is-version": "^1.0.9",
62
+ "node-version-use": "^2.1.7",
63
+ "node-version-utils": "^1.3.17",
64
64
  "pinkie-promise": "^2.0.1",
65
65
  "ts-dev-stack": "^1.21.3",
66
- "tsds-config": "^0.2.1"
66
+ "tsds-config": "^0.2.2"
67
67
  },
68
68
  "engines": {
69
69
  "node": ">=0.8"