node-version-install 1.4.12 → 1.4.14
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.
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { InstallCallback, InstallOptions, InstallResult } from './types.js';
|
|
2
|
+
export type * from './types.js';
|
|
3
|
+
export default function install(versionExpression: string, options?: InstallOptions, callback?: InstallCallback): undefined | Promise<InstallResult[]>;
|
|
4
|
+
export declare function sync(versionExpression: string, options?: InstallOptions): InstallResult[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { InstallOptions as InstallOptionsBase, InstallResult as InstallResultBase } from 'node-install-release';
|
|
2
|
+
export interface InstallResult extends InstallResultBase {
|
|
3
|
+
error?: Error;
|
|
4
|
+
}
|
|
5
|
+
export interface InstallOptions extends InstallOptionsBase {
|
|
6
|
+
concurrency?: number;
|
|
7
|
+
silent?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export type InstallCallback = (err?: Error, results?: InstallResult[]) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-version-install",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.14",
|
|
4
4
|
"description": "Install NodeJs by version string asynchronously or synchronously",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"node",
|
|
@@ -39,7 +39,8 @@
|
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "tsds build",
|
|
41
41
|
"format": "biome check --write --unsafe",
|
|
42
|
-
"
|
|
42
|
+
"prepublishOnly": "tsds validate",
|
|
43
|
+
"test": "tsds test:node --no-timeouts",
|
|
43
44
|
"test:engines": "nvu engines tsds test:node --no-timeouts",
|
|
44
45
|
"version": "tsds version"
|
|
45
46
|
},
|
|
@@ -51,14 +52,17 @@
|
|
|
51
52
|
"queue-cb": "*"
|
|
52
53
|
},
|
|
53
54
|
"devDependencies": {
|
|
55
|
+
"@biomejs/biome": "*",
|
|
54
56
|
"@types/mocha": "*",
|
|
55
57
|
"@types/node": "*",
|
|
56
58
|
"cr": "*",
|
|
57
59
|
"cross-spawn-cb": "*",
|
|
58
60
|
"is-version": "*",
|
|
61
|
+
"node-version-use": "*",
|
|
59
62
|
"node-version-utils": "*",
|
|
60
63
|
"pinkie-promise": "*",
|
|
61
|
-
"rimraf2": "*"
|
|
64
|
+
"rimraf2": "*",
|
|
65
|
+
"ts-dev-stack": "*"
|
|
62
66
|
},
|
|
63
67
|
"engines": {
|
|
64
68
|
"node": ">=0.8"
|