node-version-install 1.1.52 → 1.1.54

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';
2
+ export type * from './types';
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,8 @@
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
+ }
8
+ export type InstallCallback = (err?: Error, results?: InstallResult[]) => void;
@@ -0,0 +1,2 @@
1
+ import type { InstallOptions } from '../types';
2
+ export default function installWorker(versionExpression: string, options: InstallOptions, callback: any): void;
@@ -0,0 +1 @@
1
+ export default function installSyncWorker(versionExpression: string, options: any): any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-version-install",
3
- "version": "1.1.52",
3
+ "version": "1.1.54",
4
4
  "description": "Install NodeJs by version string asynchronously or synchronously",
5
5
  "keywords": [
6
6
  "node",
@@ -25,13 +25,14 @@
25
25
  },
26
26
  "type": "module",
27
27
  "exports": {
28
- "import": "./dist/esm/index.mjs",
29
- "require": "./dist/cjs/index.cjs",
30
- "types": "./dist/types/index.d.ts"
28
+ ".": {
29
+ "import": "./dist/esm/index.mjs",
30
+ "require": "./dist/cjs/index.cjs"
31
+ },
32
+ "./package.json": "./package.json"
31
33
  },
32
34
  "main": "dist/cjs/index.cjs",
33
- "module": "dist/dist/esm/index.mjs",
34
- "types": "dist/types/index.d.ts",
35
+ "types": "dist/cjs/index.d.cts",
35
36
  "files": [
36
37
  "dist"
37
38
  ],
@@ -43,11 +44,11 @@
43
44
  "version": "tsds version"
44
45
  },
45
46
  "dependencies": {
46
- "function-exec-sync": "^1.2.21",
47
+ "function-exec-sync": "^1.2.22",
47
48
  "homedir-polyfill": "^1.0.3",
48
- "node-install-release": "^1.10.44",
49
- "node-resolve-versions": "^1.0.33",
50
- "queue-cb": "^1.4.16"
49
+ "node-install-release": "^1.10.45",
50
+ "node-resolve-versions": "^1.0.36",
51
+ "queue-cb": "^1.4.17"
51
52
  },
52
53
  "devDependencies": {
53
54
  "@types/mocha": "*",
File without changes
File without changes