node-install-release 1.10.45 → 1.10.46
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/esm/cli.d.mts +2 -0
- package/dist/esm/constants.d.mts +40 -0
- package/dist/esm/createResult.d.mts +2 -0
- package/dist/esm/createStoragePaths.d.mts +2 -0
- package/dist/esm/index.d.mts +5 -0
- package/dist/esm/installNPM/index.d.mts +1 -0
- package/dist/esm/installNPM/installBin.d.mts +1 -0
- package/dist/esm/installNPM/installLib.d.mts +1 -0
- package/dist/esm/installNode/index.d.mts +1 -0
- package/dist/esm/installNode/installCompressed.d.mts +1 -0
- package/dist/esm/installNode/installExe.d.mts +1 -0
- package/dist/esm/installNode/installFilename.d.mts +1 -0
- package/dist/esm/installNode/installSource/buildPosix.d.mts +1 -0
- package/dist/esm/installNode/installSource/buildWin32.d.mts +1 -0
- package/dist/esm/installNode/installSource/index.d.mts +1 -0
- package/dist/esm/installNode/validateDownload.d.mts +1 -0
- package/dist/esm/lib/checkMissing.d.mts +1 -0
- package/dist/esm/lib/conditionalCache.d.mts +1 -0
- package/dist/esm/lib/conditionalCopy.d.mts +1 -0
- package/dist/esm/lib/conditionalExtract.d.mts +1 -0
- package/dist/esm/lib/copyFile.d.mts +1 -0
- package/dist/esm/lib/ensureDestinationParent.d.mts +1 -0
- package/dist/esm/lib/getTarget.d.mts +4 -0
- package/dist/esm/types.d.mts +20 -0
- package/dist/esm/workers/install.d.mts +1 -0
- package/package.json +15 -14
- package/dist/types/machine/arch.d.cts +0 -2
- package/dist/types/machine/execSync/polyfill.d.cts +0 -1
- package/dist/types/machine/execSync/worker.d.cts +0 -3
- /package/dist/{types/cli.d.ts → cjs/cli.d.cts} +0 -0
- /package/dist/{types/constants.d.ts → cjs/constants.d.cts} +0 -0
- /package/dist/{types/createResult.d.ts → cjs/createResult.d.cts} +0 -0
- /package/dist/{types/createStoragePaths.d.ts → cjs/createStoragePaths.d.cts} +0 -0
- /package/dist/{types/index.d.ts → cjs/index.d.cts} +0 -0
- /package/dist/{types/installNPM/index.d.ts → cjs/installNPM/index.d.cts} +0 -0
- /package/dist/{types/installNPM/installBin.d.ts → cjs/installNPM/installBin.d.cts} +0 -0
- /package/dist/{types/installNPM/installLib.d.ts → cjs/installNPM/installLib.d.cts} +0 -0
- /package/dist/{types/installNode/index.d.ts → cjs/installNode/index.d.cts} +0 -0
- /package/dist/{types/installNode/installCompressed.d.ts → cjs/installNode/installCompressed.d.cts} +0 -0
- /package/dist/{types/installNode/installExe.d.ts → cjs/installNode/installExe.d.cts} +0 -0
- /package/dist/{types/installNode/installFilename.d.ts → cjs/installNode/installFilename.d.cts} +0 -0
- /package/dist/{types/installNode/installSource/buildPosix.d.ts → cjs/installNode/installSource/buildPosix.d.cts} +0 -0
- /package/dist/{types/installNode/installSource/buildWin32.d.ts → cjs/installNode/installSource/buildWin32.d.cts} +0 -0
- /package/dist/{types/installNode/installSource/index.d.ts → cjs/installNode/installSource/index.d.cts} +0 -0
- /package/dist/{types/installNode/validateDownload.d.ts → cjs/installNode/validateDownload.d.cts} +0 -0
- /package/dist/{types/lib/checkMissing.d.ts → cjs/lib/checkMissing.d.cts} +0 -0
- /package/dist/{types/lib/conditionalCache.d.ts → cjs/lib/conditionalCache.d.cts} +0 -0
- /package/dist/{types/lib/conditionalCopy.d.ts → cjs/lib/conditionalCopy.d.cts} +0 -0
- /package/dist/{types/lib/conditionalExtract.d.ts → cjs/lib/conditionalExtract.d.cts} +0 -0
- /package/dist/{types/lib/copyFile.d.ts → cjs/lib/copyFile.d.cts} +0 -0
- /package/dist/{types/lib/ensureDestinationParent.d.ts → cjs/lib/ensureDestinationParent.d.cts} +0 -0
- /package/dist/{types/lib/getTarget.d.ts → cjs/lib/getTarget.d.cts} +0 -0
- /package/dist/{types/types.d.ts → cjs/types.d.cts} +0 -0
- /package/dist/{types/workers/install.d.ts → cjs/workers/install.d.cts} +0 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export declare const FILES: any;
|
|
2
|
+
export declare const DEFAULT_STORAGE_PATH: any;
|
|
3
|
+
export declare const DEFAULT_STORAGE_PATHS: import("./types").StorageLocations;
|
|
4
|
+
export declare const FILE_PLATFORMS: any;
|
|
5
|
+
export declare const FILE_PLATFORM_MAP: {
|
|
6
|
+
win: string;
|
|
7
|
+
win32: string;
|
|
8
|
+
osx: string;
|
|
9
|
+
darwin: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const EXTENSIONS_COMPRESSED: string[];
|
|
12
|
+
export declare const NODE_FILE_PATHS: {
|
|
13
|
+
win32: string;
|
|
14
|
+
posix: any;
|
|
15
|
+
};
|
|
16
|
+
export declare const NODE_DIST_BASE_URL = "https://nodejs.org/dist";
|
|
17
|
+
export declare const NODE_SCHEDULES_URL = "https://raw.githubusercontent.com/nodejs/Release/master/schedule.json";
|
|
18
|
+
export declare const NPM_DIST_URL = "https://registry.npmjs.org/npm";
|
|
19
|
+
export declare const NPM_DIST_TAGS_URL = "https://registry.npmjs.org/-/package/npm/dist-tags";
|
|
20
|
+
export declare const NPM_MIN_VERSION = 3;
|
|
21
|
+
export declare const NPM_FILE_PATHS: {
|
|
22
|
+
win32: ({
|
|
23
|
+
src: any;
|
|
24
|
+
dest: string;
|
|
25
|
+
optional?: undefined;
|
|
26
|
+
} | {
|
|
27
|
+
src: any;
|
|
28
|
+
dest: string;
|
|
29
|
+
optional: boolean;
|
|
30
|
+
})[];
|
|
31
|
+
posix: ({
|
|
32
|
+
src: any;
|
|
33
|
+
dest: any;
|
|
34
|
+
optional?: undefined;
|
|
35
|
+
} | {
|
|
36
|
+
src: any;
|
|
37
|
+
dest: any;
|
|
38
|
+
optional: boolean;
|
|
39
|
+
})[];
|
|
40
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { InstallCallback, InstallOptions, InstallResult } from './types';
|
|
2
|
+
export type * from './types';
|
|
3
|
+
export default function install(versionExpression: string, options?: InstallOptions | InstallCallback, callback?: InstallCallback): undefined | Promise<InstallResult>;
|
|
4
|
+
export { default as createResult } from './createResult';
|
|
5
|
+
export { default as createStoragePaths } from './createStoragePaths';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function install(version: any, dest: any, options: any, callback: any): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function installBin(_version: any, dest: any, options: any, callback: any): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function installLib(version: any, dest: any, options: any, callback: any): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function install(version: any, dest: any, options: any, callback: any): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function installCompressed(distPath: any, dest: any, options: any, callback: any): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function installExe(distPath: any, dest: any, options: any, callback: any): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function installFilename(filename: any, version: any, dest: any, options: any, callback: any): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function installPosix(buildPath: any, dest: any, _options: any, callback: any): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function installWin32(buildPath: any, dest: any, _options: any, callback: any): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function InstallSource(distPath: any, dest: any, options: any, callback: any): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function validateDownload(distPath: any, installPath: any, callback: any): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function checkMissing(dest: any, options: any, callback: any): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function conditionalCache(endpoint: any, dest: any, options: any, callback?: any): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function conditionalCopy(src: any, dest: any, optional: any, callback: any): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function conditionalExtract(src: any, dest: any, options: any, callback?: any): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function safeCopyFile(src: any, dest: any, callback: any): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function ensureDestinationParent(dest: any, callback: any): any;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type StorageLocations = {
|
|
2
|
+
cachePath: string;
|
|
3
|
+
buildPath: string;
|
|
4
|
+
installPath: string;
|
|
5
|
+
};
|
|
6
|
+
export type InstallResult = {
|
|
7
|
+
version: string;
|
|
8
|
+
installPath: string;
|
|
9
|
+
execPath: string;
|
|
10
|
+
platform: NodeJS.Platform;
|
|
11
|
+
};
|
|
12
|
+
export interface InstallOptions {
|
|
13
|
+
installPath?: string;
|
|
14
|
+
name?: string;
|
|
15
|
+
storagePath?: string;
|
|
16
|
+
filename?: string;
|
|
17
|
+
platform?: NodeJS.Platform;
|
|
18
|
+
arch?: NodeJS.Architecture;
|
|
19
|
+
}
|
|
20
|
+
export type InstallCallback = (err?: Error, result?: InstallResult) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function install(versionExpression: any, options: any, callback: any): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-install-release",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.46",
|
|
4
4
|
"description": "Cross-platform solution for installing releases of Node.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"node",
|
|
@@ -18,13 +18,14 @@
|
|
|
18
18
|
"license": "MIT",
|
|
19
19
|
"type": "module",
|
|
20
20
|
"exports": {
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
".": {
|
|
22
|
+
"import": "./dist/esm/index.mjs",
|
|
23
|
+
"require": "./dist/cjs/index.cjs"
|
|
24
|
+
},
|
|
25
|
+
"./package.json": "./package.json"
|
|
24
26
|
},
|
|
25
27
|
"main": "dist/cjs/index.cjs",
|
|
26
|
-
"
|
|
27
|
-
"types": "dist/types/index.d.ts",
|
|
28
|
+
"types": "dist/cjs/index.d.cts",
|
|
28
29
|
"bin": {
|
|
29
30
|
"nir": "./bin/cli.cjs"
|
|
30
31
|
},
|
|
@@ -40,21 +41,21 @@
|
|
|
40
41
|
"version": "tsds version"
|
|
41
42
|
},
|
|
42
43
|
"dependencies": {
|
|
43
|
-
"cross-spawn-cb": "^2.1.
|
|
44
|
+
"cross-spawn-cb": "^2.1.24",
|
|
44
45
|
"exit": "^0.1.2",
|
|
45
|
-
"fast-extract": "^1.3.
|
|
46
|
-
"function-exec-sync": "^1.2.
|
|
47
|
-
"get-remote": "^1.3.
|
|
46
|
+
"fast-extract": "^1.3.32",
|
|
47
|
+
"function-exec-sync": "^1.2.22",
|
|
48
|
+
"get-remote": "^1.3.35",
|
|
48
49
|
"getopts-compat": "^2.2.6",
|
|
49
50
|
"homedir-polyfill": "^1.0.3",
|
|
50
|
-
"is-version": "^0.2.
|
|
51
|
+
"is-version": "^0.2.13",
|
|
51
52
|
"lodash.keys": "^4.2.0",
|
|
52
53
|
"mkdirp-classic": "^0.5.3",
|
|
53
|
-
"node-filename-to-dist-paths": "^1.1.
|
|
54
|
+
"node-filename-to-dist-paths": "^1.1.36",
|
|
54
55
|
"node-resolve-versions": "^1.0.35",
|
|
55
|
-
"on-one": "^0.1.
|
|
56
|
+
"on-one": "^0.1.5",
|
|
56
57
|
"pump": "^3.0.2",
|
|
57
|
-
"queue-cb": "^1.4.
|
|
58
|
+
"queue-cb": "^1.4.17",
|
|
58
59
|
"rimraf2": "^2.8.2"
|
|
59
60
|
},
|
|
60
61
|
"devDependencies": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{types/installNode/installCompressed.d.ts → cjs/installNode/installCompressed.d.cts}
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/{types/installNode/installFilename.d.ts → cjs/installNode/installFilename.d.cts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{types/installNode/validateDownload.d.ts → cjs/installNode/validateDownload.d.cts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{types/lib/ensureDestinationParent.d.ts → cjs/lib/ensureDestinationParent.d.cts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|