node-version-use 1.0.4 → 1.1.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/dist/cjs/index.js +3 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/types/index.d.mts +1 -1
- package/package.json +9 -7
package/dist/cjs/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// biome-ignore lint/suspicious/noShadowRestrictedNames: <explanation>
|
|
1
2
|
"use strict";
|
|
2
3
|
Object.defineProperty(exports, "__esModule", {
|
|
3
4
|
value: true
|
|
@@ -19,6 +20,7 @@ _export(exports, {
|
|
|
19
20
|
return installDirectory;
|
|
20
21
|
}
|
|
21
22
|
});
|
|
23
|
+
var _pinkiepromise = /*#__PURE__*/ _interop_require_default(require("pinkie-promise"));
|
|
22
24
|
var _constants = /*#__PURE__*/ _interop_require_default(require("./constants"));
|
|
23
25
|
var _use = /*#__PURE__*/ _interop_require_default(require("./use"));
|
|
24
26
|
function _interop_require_default(obj) {
|
|
@@ -32,7 +34,7 @@ function nodeVersionUse(versionExpression, command, args, options, callback) {
|
|
|
32
34
|
options = {};
|
|
33
35
|
}
|
|
34
36
|
if (typeof callback === 'function') return (0, _use.default)(versionExpression, command, args, options || {}, callback);
|
|
35
|
-
return new
|
|
37
|
+
return new _pinkiepromise.default(function(resolve, reject) {
|
|
36
38
|
nodeVersionUse(versionExpression, command, args, options, function nodeVersionUseCallback(err, res) {
|
|
37
39
|
err ? reject(err) : resolve(res);
|
|
38
40
|
});
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["index.mjs"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["index.mjs"],"sourcesContent":["// biome-ignore lint/suspicious/noShadowRestrictedNames: <explanation>\nimport Promise from 'pinkie-promise';\nimport constants from './constants';\nimport use from './use';\n\nexport default function nodeVersionUse(versionExpression, command, args, options, callback) {\n if (typeof options === 'function') {\n callback = options;\n options = {};\n }\n if (typeof callback === 'function') return use(versionExpression, command, args, options || {}, callback);\n return new Promise((resolve, reject) => {\n nodeVersionUse(versionExpression, command, args, options, function nodeVersionUseCallback(err, res) {\n err ? reject(err) : resolve(res);\n });\n });\n}\n\nexport function installDirectory() {\n return constants.installDirectory;\n}\n\nexport function cacheDirectory(_options) {\n return constants.cacheDirectory;\n}\n"],"names":["cacheDirectory","nodeVersionUse","installDirectory","versionExpression","command","args","options","callback","use","Promise","resolve","reject","nodeVersionUseCallback","err","res","constants","_options"],"mappings":"AAAA,sEAAsE;;;;;;;;;;;;IAsBtDA,cAAc;eAAdA;;IAjBhB,OAWC;eAXuBC;;IAaRC,gBAAgB;eAAhBA;;;oEAjBI;gEACE;0DACN;;;;;;AAED,SAASD,eAAeE,iBAAiB,EAAEC,OAAO,EAAEC,IAAI,EAAEC,OAAO,EAAEC,QAAQ;IACxF,IAAI,OAAOD,YAAY,YAAY;QACjCC,WAAWD;QACXA,UAAU,CAAC;IACb;IACA,IAAI,OAAOC,aAAa,YAAY,OAAOC,IAAAA,YAAG,EAACL,mBAAmBC,SAASC,MAAMC,WAAW,CAAC,GAAGC;IAChG,OAAO,IAAIE,sBAAO,CAAC,SAACC,SAASC;QAC3BV,eAAeE,mBAAmBC,SAASC,MAAMC,SAAS,SAASM,uBAAuBC,GAAG,EAAEC,GAAG;YAChGD,MAAMF,OAAOE,OAAOH,QAAQI;QAC9B;IACF;AACF;AAEO,SAASZ;IACd,OAAOa,kBAAS,CAACb,gBAAgB;AACnC;AAEO,SAASF,eAAegB,QAAQ;IACrC,OAAOD,kBAAS,CAACf,cAAc;AACjC"}
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export default function nodeVersionUse(versionExpression: any, command: any, args: any, options: any, callback: any):
|
|
1
|
+
export default function nodeVersionUse(versionExpression: any, command: any, args: any, options: any, callback: any): any;
|
|
2
2
|
export function installDirectory(): string;
|
|
3
3
|
export function cacheDirectory(_options: any): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-version-use",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Cross-platform solution for using multiple versions of node. Useful for compatibility testing",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"node",
|
|
@@ -34,14 +34,15 @@
|
|
|
34
34
|
"version": "tsds version"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"cross-spawn-cb": "^1.
|
|
37
|
+
"cross-spawn-cb": "^1.4.0",
|
|
38
38
|
"exit": "^0.1.2",
|
|
39
39
|
"getopts-compat": "^2.2.5",
|
|
40
40
|
"homedir-polyfill": "^1.0.3",
|
|
41
|
-
"node-install-release": "^1.
|
|
42
|
-
"node-resolve-versions": "^1.0.
|
|
43
|
-
"node-version-utils": "^1.
|
|
44
|
-
"
|
|
41
|
+
"node-install-release": "^1.5.1",
|
|
42
|
+
"node-resolve-versions": "^1.0.1",
|
|
43
|
+
"node-version-utils": "^1.1.1",
|
|
44
|
+
"pinkie-promise": "^2.0.1",
|
|
45
|
+
"queue-cb": "^1.4.4"
|
|
45
46
|
},
|
|
46
47
|
"devDependencies": {
|
|
47
48
|
"@biomejs/biome": "^1.9.4",
|
|
@@ -51,8 +52,9 @@
|
|
|
51
52
|
"depcheck": "^1.4.7",
|
|
52
53
|
"is-version": "^0.2.1",
|
|
53
54
|
"rimraf2": "^2.8.2",
|
|
54
|
-
"ts-dev-stack": "^1.
|
|
55
|
+
"ts-dev-stack": "^1.5.4"
|
|
55
56
|
},
|
|
57
|
+
"packageManager": "npm@11.0.0+sha512.11dff29565d2297c74e7c594a9762581bde969f0aa5cbe6f5b3644bf008a16c065ece61094d9ffbb81125be38df8e1ba43eb8244b3d30c61eb797e9a2440e3ec",
|
|
56
58
|
"engines": {
|
|
57
59
|
"node": ">=0.8"
|
|
58
60
|
},
|