node-install-release 1.14.10 → 1.14.11

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,2 @@
1
+ declare const _default: (argv: string[]) => undefined;
2
+ export default _default;
@@ -0,0 +1,25 @@
1
+ import type { FilePath } from './types.js';
2
+ export declare const FILES: Record<string, import("./types.js").File[]>;
3
+ export declare const DEFAULT_STORAGE_PATH: string;
4
+ export declare const DEFAULT_STORAGE_PATHS: import("./types.js").StorageLocations;
5
+ export declare const FILE_PLATFORMS: string[];
6
+ export declare const FILE_PLATFORM_MAP: {
7
+ win: string;
8
+ win32: string;
9
+ osx: string;
10
+ darwin: string;
11
+ };
12
+ export declare const EXTENSIONS_COMPRESSED: string[];
13
+ export declare const NODE_FILE_PATHS: {
14
+ win32: string;
15
+ posix: string;
16
+ };
17
+ export declare const NODE_DIST_BASE_URL = "https://nodejs.org/dist";
18
+ export declare const NODE_SCHEDULES_URL = "https://raw.githubusercontent.com/nodejs/Release/master/schedule.json";
19
+ export declare const NPM_DIST_URL = "https://registry.npmjs.org/npm";
20
+ export declare const NPM_DIST_TAGS_URL = "https://registry.npmjs.org/-/package/npm/dist-tags";
21
+ export declare const NPM_MIN_VERSION = 3;
22
+ export declare const NPM_FILE_PATHS: {
23
+ win32: FilePath[];
24
+ posix: FilePath[];
25
+ };
@@ -0,0 +1,2 @@
1
+ import type { InstallOptions, InstallResult } from './types.js';
2
+ export default function createResult(options: InstallOptions, version: string): InstallResult;
@@ -0,0 +1,2 @@
1
+ import type { StorageLocations } from './types.js';
2
+ export default function createStoragePaths(storagePath: string): StorageLocations;
@@ -0,0 +1,3 @@
1
+ import type { File } from './types.js';
2
+ declare const _default: Record<string, File[]>;
3
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import type { InstallCallback, InstallOptions, InstallResult } from './types.js';
2
+ export type * from './types.js';
3
+ export default function install(versionExpression: string): Promise<InstallResult>;
4
+ export default function install(versionExpression: string, options: InstallOptions): Promise<InstallResult>;
5
+ export default function install(versionExpression: string, callback: InstallCallback): undefined;
6
+ export default function install(versionExpression: string, options: InstallOptions, callback: InstallCallback): undefined;
7
+ export { default as createResult } from './createResult.js';
8
+ export { default as createStoragePaths } from './createStoragePaths.js';
@@ -0,0 +1,2 @@
1
+ import type { InstallOptions, NoParamCallback } from '../types.js';
2
+ export default function install(version: string, dest: string, options: InstallOptions, callback: NoParamCallback): undefined;
@@ -0,0 +1,2 @@
1
+ import type { InstallOptions, NoParamCallback } from '../types.js';
2
+ export default function installBin(_version: string, dest: string, options: InstallOptions, callback: NoParamCallback): void;
@@ -0,0 +1,3 @@
1
+ import type { InstallOptions } from '../types.js';
2
+ export type Callback = (error?: Error, npmVersion?: string) => undefined;
3
+ export default function installLib(version: string, dest: string, options: InstallOptions, callback: Callback): undefined;
@@ -0,0 +1,2 @@
1
+ import type { InstallOptions, NoParamCallback } from '../types.js';
2
+ export default function install(version: string, dest: string, options: InstallOptions, callback: NoParamCallback): undefined;
@@ -0,0 +1,2 @@
1
+ import type { InstallOptions, NoParamCallback } from '../types.js';
2
+ export default function installCompressed(distPath: string, dest: string, options: InstallOptions, callback: NoParamCallback): undefined;
@@ -0,0 +1,2 @@
1
+ import type { InstallOptions, NoParamCallback } from '../types.js';
2
+ export default function installExe(distPath: string, dest: string, options: InstallOptions, callback: NoParamCallback): undefined;
@@ -0,0 +1,2 @@
1
+ import type { InstallOptions, NoParamCallback } from '../types.js';
2
+ export default function installFilename(filename: string, version: string, dest: string, options: InstallOptions, callback: NoParamCallback): undefined;
@@ -0,0 +1,2 @@
1
+ import type { InstallOptions, NoParamCallback } from '../../types.js';
2
+ export default function installPosix(buildPath: string, dest: string, _options: InstallOptions, callback: NoParamCallback): undefined;
@@ -0,0 +1,2 @@
1
+ import type { InstallOptions, NoParamCallback } from '../../types.js';
2
+ export default function installWin32(buildPath: string, dest: string, _options: InstallOptions, callback: NoParamCallback): undefined;
@@ -0,0 +1,2 @@
1
+ import type { InstallOptions, NoParamCallback } from '../../types.js';
2
+ export default function InstallSource(distPath: string, dest: string, options: InstallOptions, callback: NoParamCallback): undefined;
@@ -0,0 +1,2 @@
1
+ import type { NoParamCallback } from '../types.js';
2
+ export default function validateDownload(distPath: string, installPath: string, callback: NoParamCallback): undefined;
@@ -0,0 +1,3 @@
1
+ import type { InstallOptions } from '../types.js';
2
+ export type Callback = (error?: Error, missing?: string[]) => undefined;
3
+ export default function checkMissing(dest: string, options: InstallOptions, callback: Callback): undefined;
@@ -0,0 +1,2 @@
1
+ import type { InstallOptions, NoParamCallback } from '../types.js';
2
+ export default function conditionalCache(endpoint: string, dest: string, options: InstallOptions, callback?: NoParamCallback): undefined;
@@ -0,0 +1,2 @@
1
+ import type { NoParamCallback } from '../types.js';
2
+ export default function conditionalCopy(src: string, dest: string, optional: boolean, callback: NoParamCallback): undefined;
@@ -0,0 +1,2 @@
1
+ import type { InstallOptions, NoParamCallback } from '../types.js';
2
+ export default function conditionalExtract(src: string, dest: string, options: InstallOptions | NoParamCallback, callback?: NoParamCallback): undefined;
@@ -0,0 +1,2 @@
1
+ import { type NoParamCallback } from 'fs';
2
+ export default function safeCopyFile(src: string, dest: string, callback: NoParamCallback): void;
@@ -0,0 +1,2 @@
1
+ import type { NoParamCallback } from '../types.js';
2
+ export default function ensureDestinationParent(dest: string, callback: NoParamCallback): undefined;
@@ -0,0 +1,2 @@
1
+ import type { InstallOptions, Target } from '../types.js';
2
+ export default function getTarget(options: InstallOptions): Target;
@@ -0,0 +1,39 @@
1
+ import type { VersionOptions } from 'node-resolve-versions';
2
+ export interface File {
3
+ filename: string;
4
+ starting: string;
5
+ }
6
+ export interface FilePath {
7
+ src: string;
8
+ dest: string;
9
+ optional?: boolean;
10
+ }
11
+ export type StorageLocations = {
12
+ cachePath: string;
13
+ buildPath: string;
14
+ installPath: string;
15
+ };
16
+ export type InstallResult = {
17
+ version: string;
18
+ installPath: string;
19
+ execPath: string;
20
+ platform: NodeJS.Platform;
21
+ };
22
+ export interface InstallOptions extends VersionOptions {
23
+ type?: string;
24
+ compression?: boolean;
25
+ installPath?: string;
26
+ buildPath?: string;
27
+ name?: string;
28
+ storagePath?: string;
29
+ filename?: string;
30
+ platform?: NodeJS.Platform;
31
+ arch?: NodeJS.Architecture;
32
+ cachePath?: string;
33
+ }
34
+ export interface Target {
35
+ platform: NodeJS.Platform;
36
+ arch: NodeJS.Architecture;
37
+ }
38
+ export type InstallCallback = (err?: Error, result?: InstallResult) => void;
39
+ export type NoParamCallback = (err?: Error) => void;
@@ -0,0 +1,2 @@
1
+ import type { InstallCallback, InstallOptions } from '../types.js';
2
+ export default function install(versionExpression: string, options: InstallOptions, callback: InstallCallback): undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-install-release",
3
- "version": "1.14.10",
3
+ "version": "1.14.11",
4
4
  "description": "Cross-platform solution for installing releases of Node.js",
5
5
  "keywords": [
6
6
  "node",