@idlebox/node 1.2.14 → 1.2.16
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/lib/cjs/__create_index.generated.cjs +169 -0
- package/lib/cjs/__create_index.generated.cjs.map +10 -0
- package/lib/{asyncLoad.cjs → cjs/asyncLoad.cjs} +1 -1
- package/lib/cjs/asyncLoad.cjs.map +10 -0
- package/lib/{child_process → cjs/child_process}/error.cjs +1 -1
- package/lib/cjs/child_process/error.cjs.map +10 -0
- package/lib/{child_process → cjs/child_process}/execa.cjs +1 -1
- package/lib/cjs/child_process/execa.cjs.map +10 -0
- package/lib/{child_process → cjs/child_process}/lateError.cjs +1 -1
- package/lib/cjs/child_process/lateError.cjs.map +10 -0
- package/lib/{child_process → cjs/child_process}/respawn.cjs +1 -1
- package/lib/cjs/child_process/respawn.cjs.map +10 -0
- package/lib/{cli-io → cjs/cli-io}/output.cjs +1 -1
- package/lib/cjs/cli-io/output.cjs.map +10 -0
- package/lib/{crypto → cjs/crypto}/md5.cjs +1 -1
- package/lib/cjs/crypto/md5.cjs.map +10 -0
- package/lib/{crypto → cjs/crypto}/sha256.cjs +1 -1
- package/lib/cjs/crypto/sha256.cjs.map +10 -0
- package/lib/{environment → cjs/environment}/findBinary.cjs +1 -1
- package/lib/cjs/environment/findBinary.cjs.map +10 -0
- package/lib/{environment → cjs/environment}/getEnvironment.cjs +1 -1
- package/lib/cjs/environment/getEnvironment.cjs.map +10 -0
- package/lib/{environment → cjs/environment}/npmConfig.cjs +1 -1
- package/lib/cjs/environment/npmConfig.cjs.map +10 -0
- package/lib/{environment → cjs/environment}/pathEnvironment.cjs +2 -2
- package/lib/cjs/environment/pathEnvironment.cjs.map +10 -0
- package/lib/{error → cjs/error}/code.cjs +2 -2
- package/lib/cjs/error/code.cjs.map +10 -0
- package/lib/{error → cjs/error}/pretty.cjs +15 -15
- package/lib/cjs/error/pretty.cjs.map +10 -0
- package/lib/{events → cjs/events}/dumpEventEmitter.cjs +1 -1
- package/lib/cjs/events/dumpEventEmitter.cjs.map +10 -0
- package/lib/{fs → cjs/fs}/commandExists.cjs +1 -1
- package/lib/cjs/fs/commandExists.cjs.map +10 -0
- package/lib/{fs → cjs/fs}/exists.cjs +1 -1
- package/lib/cjs/fs/exists.cjs.map +10 -0
- package/lib/{fs → cjs/fs}/tempFolder.cjs +1 -1
- package/lib/cjs/fs/tempFolder.cjs.map +10 -0
- package/lib/{fs → cjs/fs}/weiteChanged.cjs +1 -1
- package/lib/cjs/fs/weiteChanged.cjs.map +10 -0
- package/lib/{log → cjs/log}/terminal.cjs +1 -1
- package/lib/{log/terminal.js.map → cjs/log/terminal.cjs.map} +10 -1
- package/lib/{path-resolve → cjs/path-resolve}/findPackageRoot.cjs +1 -1
- package/lib/cjs/path-resolve/findPackageRoot.cjs.map +10 -0
- package/lib/{path-resolve → cjs/path-resolve}/findUp.cjs +1 -1
- package/lib/cjs/path-resolve/findUp.cjs.map +10 -0
- package/lib/{path-resolve → cjs/path-resolve}/getAllUp.cjs +1 -1
- package/lib/cjs/path-resolve/getAllUp.cjs.map +10 -0
- package/lib/{path-resolve → cjs/path-resolve}/lrelative.cjs +1 -1
- package/lib/cjs/path-resolve/lrelative.cjs.map +10 -0
- package/lib/{path-resolve → cjs/path-resolve}/nodeResolvePathArray.cjs +1 -1
- package/lib/cjs/path-resolve/nodeResolvePathArray.cjs.map +10 -0
- package/lib/{path-resolve → cjs/path-resolve}/resolvePath.cjs +1 -1
- package/lib/cjs/path-resolve/resolvePath.cjs.map +10 -0
- package/lib/{preload.cjs → cjs/preload.cjs} +1 -1
- package/lib/cjs/preload.cjs.map +10 -0
- package/lib/{stream → cjs/stream}/blackHoleStream.cjs +1 -1
- package/lib/cjs/stream/blackHoleStream.cjs.map +10 -0
- package/lib/{stream → cjs/stream}/collectingStream.cjs +1 -1
- package/lib/cjs/stream/collectingStream.cjs.map +10 -0
- package/lib/{stream → cjs/stream}/disposableStream.cjs +1 -1
- package/lib/cjs/stream/disposableStream.cjs.map +10 -0
- package/lib/{stream → cjs/stream}/drainStream.cjs +1 -1
- package/lib/cjs/stream/drainStream.cjs.map +10 -0
- package/lib/{stream → cjs/stream}/loggerStream.cjs +1 -1
- package/lib/cjs/stream/loggerStream.cjs.map +10 -0
- package/lib/{stream → cjs/stream}/streamPromise.cjs +1 -1
- package/lib/cjs/stream/streamPromise.cjs.map +10 -0
- package/lib/esm/__create_index.generated.mjs +109 -0
- package/lib/esm/__create_index.generated.mjs.map +10 -0
- package/lib/{asyncLoad.js → esm/asyncLoad.mjs} +2 -2
- package/lib/esm/asyncLoad.mjs.map +10 -0
- package/lib/{child_process/error.js → esm/child_process/error.mjs} +1 -1
- package/lib/esm/child_process/error.mjs.map +10 -0
- package/lib/{child_process/execa.js → esm/child_process/execa.mjs} +2 -2
- package/lib/esm/child_process/execa.mjs.map +10 -0
- package/lib/{child_process/lateError.js → esm/child_process/lateError.mjs} +3 -3
- package/lib/esm/child_process/lateError.mjs.map +10 -0
- package/lib/{child_process/respawn.js → esm/child_process/respawn.mjs} +3 -3
- package/lib/esm/child_process/respawn.mjs.map +10 -0
- package/lib/{cli-io/output.js → esm/cli-io/output.mjs} +1 -1
- package/lib/esm/cli-io/output.mjs.map +10 -0
- package/lib/{crypto/md5.js → esm/crypto/md5.mjs} +1 -1
- package/lib/esm/crypto/md5.mjs.map +10 -0
- package/lib/{crypto/sha256.js → esm/crypto/sha256.mjs} +1 -1
- package/lib/esm/crypto/sha256.mjs.map +10 -0
- package/lib/{environment/findBinary.js → esm/environment/findBinary.mjs} +3 -3
- package/lib/esm/environment/findBinary.mjs.map +10 -0
- package/lib/{environment/getEnvironment.js → esm/environment/getEnvironment.mjs} +1 -1
- package/lib/esm/environment/getEnvironment.mjs.map +10 -0
- package/lib/{environment/npmConfig.js → esm/environment/npmConfig.mjs} +2 -2
- package/lib/esm/environment/npmConfig.mjs.map +10 -0
- package/lib/{environment/pathEnvironment.js → esm/environment/pathEnvironment.mjs} +3 -3
- package/lib/esm/environment/pathEnvironment.mjs.map +10 -0
- package/lib/{error/code.js → esm/error/code.mjs} +1 -1
- package/lib/esm/error/code.mjs.map +10 -0
- package/lib/{error/pretty.js → esm/error/pretty.mjs} +2 -2
- package/lib/esm/error/pretty.mjs.map +10 -0
- package/lib/{events/dumpEventEmitter.js → esm/events/dumpEventEmitter.mjs} +1 -1
- package/lib/esm/events/dumpEventEmitter.mjs.map +10 -0
- package/lib/{fs/commandExists.js → esm/fs/commandExists.mjs} +2 -2
- package/lib/esm/fs/commandExists.mjs.map +10 -0
- package/lib/{fs/exists.js → esm/fs/exists.mjs} +1 -1
- package/lib/esm/fs/exists.mjs.map +10 -0
- package/lib/{fs/tempFolder.js → esm/fs/tempFolder.mjs} +2 -2
- package/lib/esm/fs/tempFolder.mjs.map +10 -0
- package/lib/{fs/weiteChanged.js → esm/fs/weiteChanged.mjs} +2 -2
- package/lib/esm/fs/weiteChanged.mjs.map +10 -0
- package/lib/{log/terminal.js → esm/log/terminal.mjs} +1 -1
- package/lib/{log/terminal.cjs.map → esm/log/terminal.mjs.map} +10 -1
- package/lib/{path-resolve/findPackageRoot.js → esm/path-resolve/findPackageRoot.mjs} +2 -2
- package/lib/esm/path-resolve/findPackageRoot.mjs.map +10 -0
- package/lib/{path-resolve/findUp.js → esm/path-resolve/findUp.mjs} +2 -2
- package/lib/esm/path-resolve/findUp.mjs.map +10 -0
- package/lib/{path-resolve/getAllUp.js → esm/path-resolve/getAllUp.mjs} +1 -1
- package/lib/esm/path-resolve/getAllUp.mjs.map +10 -0
- package/lib/{path-resolve/lrelative.js → esm/path-resolve/lrelative.mjs} +1 -1
- package/lib/esm/path-resolve/lrelative.mjs.map +10 -0
- package/lib/{path-resolve/nodeResolvePathArray.js → esm/path-resolve/nodeResolvePathArray.mjs} +1 -1
- package/lib/esm/path-resolve/nodeResolvePathArray.mjs.map +10 -0
- package/lib/{path-resolve/resolvePath.js → esm/path-resolve/resolvePath.mjs} +1 -1
- package/lib/esm/path-resolve/resolvePath.mjs.map +10 -0
- package/lib/esm/preload.mjs +2 -0
- package/lib/esm/preload.mjs.map +10 -0
- package/lib/{stream/blackHoleStream.js → esm/stream/blackHoleStream.mjs} +1 -1
- package/lib/esm/stream/blackHoleStream.mjs.map +10 -0
- package/lib/{stream/collectingStream.js → esm/stream/collectingStream.mjs} +2 -2
- package/lib/esm/stream/collectingStream.mjs.map +10 -0
- package/lib/{stream/disposableStream.js → esm/stream/disposableStream.mjs} +1 -1
- package/lib/esm/stream/disposableStream.mjs.map +10 -0
- package/lib/{stream/drainStream.js → esm/stream/drainStream.mjs} +1 -1
- package/lib/esm/stream/drainStream.mjs.map +10 -0
- package/lib/{stream/loggerStream.js → esm/stream/loggerStream.mjs} +1 -1
- package/lib/esm/stream/loggerStream.mjs.map +10 -0
- package/lib/{stream/streamPromise.js → esm/stream/streamPromise.mjs} +1 -1
- package/lib/esm/stream/streamPromise.mjs.map +10 -0
- package/package.json +14 -19
- package/scripts/prefix.js +2 -0
- package/src/environment/pathEnvironment.ts +4 -4
- package/src/stream/blackHoleStream.ts +1 -1
- package/src/stream/collectingStream.ts +2 -2
- package/src/stream/loggerStream.ts +2 -2
- package/fix_esm_loader.cjs +0 -1
- package/lib/asyncLoad.cjs.map +0 -1
- package/lib/asyncLoad.js.map +0 -1
- package/lib/child_process/error.cjs.map +0 -1
- package/lib/child_process/error.js.map +0 -1
- package/lib/child_process/execa.cjs.map +0 -1
- package/lib/child_process/execa.js.map +0 -1
- package/lib/child_process/lateError.cjs.map +0 -1
- package/lib/child_process/lateError.js.map +0 -1
- package/lib/child_process/respawn.cjs.map +0 -1
- package/lib/child_process/respawn.js.map +0 -1
- package/lib/cli-io/output.cjs.map +0 -1
- package/lib/cli-io/output.js.map +0 -1
- package/lib/crypto/md5.cjs.map +0 -1
- package/lib/crypto/md5.js.map +0 -1
- package/lib/crypto/sha256.cjs.map +0 -1
- package/lib/crypto/sha256.js.map +0 -1
- package/lib/environment/findBinary.cjs.map +0 -1
- package/lib/environment/findBinary.js.map +0 -1
- package/lib/environment/getEnvironment.cjs.map +0 -1
- package/lib/environment/getEnvironment.js.map +0 -1
- package/lib/environment/npmConfig.cjs.map +0 -1
- package/lib/environment/npmConfig.js.map +0 -1
- package/lib/environment/pathEnvironment.cjs.map +0 -1
- package/lib/environment/pathEnvironment.js.map +0 -1
- package/lib/error/code.cjs.map +0 -1
- package/lib/error/code.js.map +0 -1
- package/lib/error/pretty.cjs.map +0 -1
- package/lib/error/pretty.js.map +0 -1
- package/lib/events/dumpEventEmitter.cjs.map +0 -1
- package/lib/events/dumpEventEmitter.js.map +0 -1
- package/lib/fs/commandExists.cjs.map +0 -1
- package/lib/fs/commandExists.js.map +0 -1
- package/lib/fs/exists.cjs.map +0 -1
- package/lib/fs/exists.js.map +0 -1
- package/lib/fs/tempFolder.cjs.map +0 -1
- package/lib/fs/tempFolder.js.map +0 -1
- package/lib/fs/weiteChanged.cjs.map +0 -1
- package/lib/fs/weiteChanged.js.map +0 -1
- package/lib/index.generated.cjs +0 -166
- package/lib/index.generated.cjs.map +0 -1
- package/lib/index.generated.js +0 -109
- package/lib/index.generated.js.map +0 -1
- package/lib/node-public.d.ts +0 -388
- package/lib/node.d.ts +0 -388
- package/lib/path-resolve/findPackageRoot.cjs.map +0 -1
- package/lib/path-resolve/findPackageRoot.js.map +0 -1
- package/lib/path-resolve/findUp.cjs.map +0 -1
- package/lib/path-resolve/findUp.js.map +0 -1
- package/lib/path-resolve/getAllUp.cjs.map +0 -1
- package/lib/path-resolve/getAllUp.js.map +0 -1
- package/lib/path-resolve/lrelative.cjs.map +0 -1
- package/lib/path-resolve/lrelative.js.map +0 -1
- package/lib/path-resolve/nodeResolvePathArray.cjs.map +0 -1
- package/lib/path-resolve/nodeResolvePathArray.js.map +0 -1
- package/lib/path-resolve/resolvePath.cjs.map +0 -1
- package/lib/path-resolve/resolvePath.js.map +0 -1
- package/lib/preload.cjs.map +0 -1
- package/lib/preload.js +0 -2
- package/lib/preload.js.map +0 -1
- package/lib/stream/blackHoleStream.cjs.map +0 -1
- package/lib/stream/blackHoleStream.js.map +0 -1
- package/lib/stream/collectingStream.cjs.map +0 -1
- package/lib/stream/collectingStream.js.map +0 -1
- package/lib/stream/disposableStream.cjs.map +0 -1
- package/lib/stream/disposableStream.js.map +0 -1
- package/lib/stream/drainStream.cjs.map +0 -1
- package/lib/stream/drainStream.js.map +0 -1
- package/lib/stream/loggerStream.cjs.map +0 -1
- package/lib/stream/loggerStream.js.map +0 -1
- package/lib/stream/streamPromise.cjs.map +0 -1
- package/lib/stream/streamPromise.js.map +0 -1
- package/lib/tsdoc-metadata.json +0 -11
- package/src/index.generated.ts +0 -133
- package/src/tsconfig.json +0 -14
- /package/lib/{node-alpha.d.ts → cjs/__create_index.generated.d.cts} +0 -0
- /package/lib/{node-beta.d.ts → esm/__create_index.generated.d.mts} +0 -0
package/lib/index.generated.cjs
DELETED
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// DO NOT EDIT THIS FILE
|
|
3
|
-
// @ts-ignore
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.disposableStream = exports.CollectingStream = exports.RawCollectingStream = exports.streamToBuffer = exports.streamHasEnd = exports.streamPromise = exports.BlackHoleStream = exports.nodeResolvePathArray = exports.lrelative = exports.getAllPathUpToRoot = exports.findPackageRoot = exports.findUpUntilSync = exports.findUpUntil = exports.WrappedTerminalConsole = exports.writeFileIfChange = exports.writeFileIfChangeSync = exports.createTempFolder = exports.commmandInPathSync = exports.commandInPath = exports.dumpEventEmitterEmit = exports.ERRNO_LINUX = exports.getNpmConfigValue = exports.sha256 = exports.md5 = exports.respawnInScope = exports.trySpawnInScope = exports.spawnRecreateEventHandlers = exports.findBinary = exports.PathEnvironment = exports.PATH_SEPARATOR = exports.cleanupEnvironment = exports.deleteEnvironment = exports.getEnvironment = exports.exists = exports.existsSync = exports.execLazyError = exports.printLine = exports.spawnGetEverything = exports.spawnGetOutput = exports.spawnWithoutOutput = exports.checkChildProcessResult = exports.runMain = exports.ExitError = exports.prettyFormatError = exports.prettyPrintError = exports.setErrorLogRoot = exports.relativePath = exports.osTempDir = exports.normalizePath = exports.resolvePath = void 0;
|
|
7
|
-
exports.HexDumpLoggerStream = exports.LoggerStream = exports.drainStream = void 0;
|
|
8
|
-
var resolvePath_1 = require("./path-resolve/resolvePath.cjs");
|
|
9
|
-
Object.defineProperty(exports, "resolvePath", { enumerable: true, get: function () { return resolvePath_1.resolvePath; } });
|
|
10
|
-
var resolvePath_2 = require("./path-resolve/resolvePath.cjs");
|
|
11
|
-
Object.defineProperty(exports, "normalizePath", { enumerable: true, get: function () { return resolvePath_2.normalizePath; } });
|
|
12
|
-
var resolvePath_3 = require("./path-resolve/resolvePath.cjs");
|
|
13
|
-
Object.defineProperty(exports, "osTempDir", { enumerable: true, get: function () { return resolvePath_3.osTempDir; } });
|
|
14
|
-
var resolvePath_4 = require("./path-resolve/resolvePath.cjs");
|
|
15
|
-
Object.defineProperty(exports, "relativePath", { enumerable: true, get: function () { return resolvePath_4.relativePath; } });
|
|
16
|
-
/* error/pretty.ts */
|
|
17
|
-
// Identifiers
|
|
18
|
-
var pretty_1 = require("./error/pretty.cjs");
|
|
19
|
-
Object.defineProperty(exports, "setErrorLogRoot", { enumerable: true, get: function () { return pretty_1.setErrorLogRoot; } });
|
|
20
|
-
var pretty_2 = require("./error/pretty.cjs");
|
|
21
|
-
Object.defineProperty(exports, "prettyPrintError", { enumerable: true, get: function () { return pretty_2.prettyPrintError; } });
|
|
22
|
-
var pretty_3 = require("./error/pretty.cjs");
|
|
23
|
-
Object.defineProperty(exports, "prettyFormatError", { enumerable: true, get: function () { return pretty_3.prettyFormatError; } });
|
|
24
|
-
var asyncLoad_1 = require("./asyncLoad.cjs");
|
|
25
|
-
Object.defineProperty(exports, "ExitError", { enumerable: true, get: function () { return asyncLoad_1.ExitError; } });
|
|
26
|
-
var asyncLoad_2 = require("./asyncLoad.cjs");
|
|
27
|
-
Object.defineProperty(exports, "runMain", { enumerable: true, get: function () { return asyncLoad_2.runMain; } });
|
|
28
|
-
/* child_process/error.ts */
|
|
29
|
-
// Identifiers
|
|
30
|
-
var error_1 = require("./child_process/error.cjs");
|
|
31
|
-
Object.defineProperty(exports, "checkChildProcessResult", { enumerable: true, get: function () { return error_1.checkChildProcessResult; } });
|
|
32
|
-
var execa_1 = require("./child_process/execa.cjs");
|
|
33
|
-
Object.defineProperty(exports, "spawnWithoutOutput", { enumerable: true, get: function () { return execa_1.spawnWithoutOutput; } });
|
|
34
|
-
var execa_2 = require("./child_process/execa.cjs");
|
|
35
|
-
Object.defineProperty(exports, "spawnGetOutput", { enumerable: true, get: function () { return execa_2.spawnGetOutput; } });
|
|
36
|
-
var execa_3 = require("./child_process/execa.cjs");
|
|
37
|
-
Object.defineProperty(exports, "spawnGetEverything", { enumerable: true, get: function () { return execa_3.spawnGetEverything; } });
|
|
38
|
-
/* cli-io/output.ts */
|
|
39
|
-
// Identifiers
|
|
40
|
-
var output_1 = require("./cli-io/output.cjs");
|
|
41
|
-
Object.defineProperty(exports, "printLine", { enumerable: true, get: function () { return output_1.printLine; } });
|
|
42
|
-
var lateError_1 = require("./child_process/lateError.cjs");
|
|
43
|
-
Object.defineProperty(exports, "execLazyError", { enumerable: true, get: function () { return lateError_1.execLazyError; } });
|
|
44
|
-
/* fs/exists.ts */
|
|
45
|
-
// Identifiers
|
|
46
|
-
var exists_1 = require("./fs/exists.cjs");
|
|
47
|
-
Object.defineProperty(exports, "existsSync", { enumerable: true, get: function () { return exists_1.existsSync; } });
|
|
48
|
-
var exists_2 = require("./fs/exists.cjs");
|
|
49
|
-
Object.defineProperty(exports, "exists", { enumerable: true, get: function () { return exists_2.exists; } });
|
|
50
|
-
var getEnvironment_1 = require("./environment/getEnvironment.cjs");
|
|
51
|
-
Object.defineProperty(exports, "getEnvironment", { enumerable: true, get: function () { return getEnvironment_1.getEnvironment; } });
|
|
52
|
-
var getEnvironment_2 = require("./environment/getEnvironment.cjs");
|
|
53
|
-
Object.defineProperty(exports, "deleteEnvironment", { enumerable: true, get: function () { return getEnvironment_2.deleteEnvironment; } });
|
|
54
|
-
var getEnvironment_3 = require("./environment/getEnvironment.cjs");
|
|
55
|
-
Object.defineProperty(exports, "cleanupEnvironment", { enumerable: true, get: function () { return getEnvironment_3.cleanupEnvironment; } });
|
|
56
|
-
/* environment/pathEnvironment.ts */
|
|
57
|
-
// Identifiers
|
|
58
|
-
var pathEnvironment_1 = require("./environment/pathEnvironment.cjs");
|
|
59
|
-
Object.defineProperty(exports, "PATH_SEPARATOR", { enumerable: true, get: function () { return pathEnvironment_1.PATH_SEPARATOR; } });
|
|
60
|
-
var pathEnvironment_2 = require("./environment/pathEnvironment.cjs");
|
|
61
|
-
Object.defineProperty(exports, "PathEnvironment", { enumerable: true, get: function () { return pathEnvironment_2.PathEnvironment; } });
|
|
62
|
-
/* environment/findBinary.ts */
|
|
63
|
-
// Identifiers
|
|
64
|
-
var findBinary_1 = require("./environment/findBinary.cjs");
|
|
65
|
-
Object.defineProperty(exports, "findBinary", { enumerable: true, get: function () { return findBinary_1.findBinary; } });
|
|
66
|
-
/* child_process/respawn.ts */
|
|
67
|
-
// Identifiers
|
|
68
|
-
var respawn_1 = require("./child_process/respawn.cjs");
|
|
69
|
-
Object.defineProperty(exports, "spawnRecreateEventHandlers", { enumerable: true, get: function () { return respawn_1.spawnRecreateEventHandlers; } });
|
|
70
|
-
var respawn_2 = require("./child_process/respawn.cjs");
|
|
71
|
-
Object.defineProperty(exports, "trySpawnInScope", { enumerable: true, get: function () { return respawn_2.trySpawnInScope; } });
|
|
72
|
-
var respawn_3 = require("./child_process/respawn.cjs");
|
|
73
|
-
Object.defineProperty(exports, "respawnInScope", { enumerable: true, get: function () { return respawn_3.respawnInScope; } });
|
|
74
|
-
/* crypto/md5.ts */
|
|
75
|
-
// Identifiers
|
|
76
|
-
var md5_1 = require("./crypto/md5.cjs");
|
|
77
|
-
Object.defineProperty(exports, "md5", { enumerable: true, get: function () { return md5_1.md5; } });
|
|
78
|
-
/* crypto/sha256.ts */
|
|
79
|
-
// Identifiers
|
|
80
|
-
var sha256_1 = require("./crypto/sha256.cjs");
|
|
81
|
-
Object.defineProperty(exports, "sha256", { enumerable: true, get: function () { return sha256_1.sha256; } });
|
|
82
|
-
/* environment/npmConfig.ts */
|
|
83
|
-
// Identifiers
|
|
84
|
-
var npmConfig_1 = require("./environment/npmConfig.cjs");
|
|
85
|
-
Object.defineProperty(exports, "getNpmConfigValue", { enumerable: true, get: function () { return npmConfig_1.getNpmConfigValue; } });
|
|
86
|
-
/* error/code.ts */
|
|
87
|
-
// Identifiers
|
|
88
|
-
var code_1 = require("./error/code.cjs");
|
|
89
|
-
Object.defineProperty(exports, "ERRNO_LINUX", { enumerable: true, get: function () { return code_1.ERRNO_LINUX; } });
|
|
90
|
-
/* events/dumpEventEmitter.ts */
|
|
91
|
-
// Identifiers
|
|
92
|
-
var dumpEventEmitter_1 = require("./events/dumpEventEmitter.cjs");
|
|
93
|
-
Object.defineProperty(exports, "dumpEventEmitterEmit", { enumerable: true, get: function () { return dumpEventEmitter_1.dumpEventEmitterEmit; } });
|
|
94
|
-
/* fs/commandExists.ts */
|
|
95
|
-
// Identifiers
|
|
96
|
-
var commandExists_1 = require("./fs/commandExists.cjs");
|
|
97
|
-
Object.defineProperty(exports, "commandInPath", { enumerable: true, get: function () { return commandExists_1.commandInPath; } });
|
|
98
|
-
var commandExists_2 = require("./fs/commandExists.cjs");
|
|
99
|
-
Object.defineProperty(exports, "commmandInPathSync", { enumerable: true, get: function () { return commandExists_2.commmandInPathSync; } });
|
|
100
|
-
/* fs/tempFolder.ts */
|
|
101
|
-
// Identifiers
|
|
102
|
-
var tempFolder_1 = require("./fs/tempFolder.cjs");
|
|
103
|
-
Object.defineProperty(exports, "createTempFolder", { enumerable: true, get: function () { return tempFolder_1.createTempFolder; } });
|
|
104
|
-
/* fs/weiteChanged.ts */
|
|
105
|
-
// Identifiers
|
|
106
|
-
var weiteChanged_1 = require("./fs/weiteChanged.cjs");
|
|
107
|
-
Object.defineProperty(exports, "writeFileIfChangeSync", { enumerable: true, get: function () { return weiteChanged_1.writeFileIfChangeSync; } });
|
|
108
|
-
var weiteChanged_2 = require("./fs/weiteChanged.cjs");
|
|
109
|
-
Object.defineProperty(exports, "writeFileIfChange", { enumerable: true, get: function () { return weiteChanged_2.writeFileIfChange; } });
|
|
110
|
-
/* log/terminal.ts */
|
|
111
|
-
// Identifiers
|
|
112
|
-
var terminal_1 = require("./log/terminal.cjs");
|
|
113
|
-
Object.defineProperty(exports, "WrappedTerminalConsole", { enumerable: true, get: function () { return terminal_1.WrappedTerminalConsole; } });
|
|
114
|
-
/* path-resolve/findUp.ts */
|
|
115
|
-
// Identifiers
|
|
116
|
-
var findUp_1 = require("./path-resolve/findUp.cjs");
|
|
117
|
-
Object.defineProperty(exports, "findUpUntil", { enumerable: true, get: function () { return findUp_1.findUpUntil; } });
|
|
118
|
-
var findUp_2 = require("./path-resolve/findUp.cjs");
|
|
119
|
-
Object.defineProperty(exports, "findUpUntilSync", { enumerable: true, get: function () { return findUp_2.findUpUntilSync; } });
|
|
120
|
-
/* path-resolve/findPackageRoot.ts */
|
|
121
|
-
// Identifiers
|
|
122
|
-
var findPackageRoot_1 = require("./path-resolve/findPackageRoot.cjs");
|
|
123
|
-
Object.defineProperty(exports, "findPackageRoot", { enumerable: true, get: function () { return findPackageRoot_1.findPackageRoot; } });
|
|
124
|
-
/* path-resolve/getAllUp.ts */
|
|
125
|
-
// Identifiers
|
|
126
|
-
var getAllUp_1 = require("./path-resolve/getAllUp.cjs");
|
|
127
|
-
Object.defineProperty(exports, "getAllPathUpToRoot", { enumerable: true, get: function () { return getAllUp_1.getAllPathUpToRoot; } });
|
|
128
|
-
/* path-resolve/lrelative.ts */
|
|
129
|
-
// Identifiers
|
|
130
|
-
var lrelative_1 = require("./path-resolve/lrelative.cjs");
|
|
131
|
-
Object.defineProperty(exports, "lrelative", { enumerable: true, get: function () { return lrelative_1.lrelative; } });
|
|
132
|
-
/* path-resolve/nodeResolvePathArray.ts */
|
|
133
|
-
// Identifiers
|
|
134
|
-
var nodeResolvePathArray_1 = require("./path-resolve/nodeResolvePathArray.cjs");
|
|
135
|
-
Object.defineProperty(exports, "nodeResolvePathArray", { enumerable: true, get: function () { return nodeResolvePathArray_1.nodeResolvePathArray; } });
|
|
136
|
-
/* stream/blackHoleStream.ts */
|
|
137
|
-
// Identifiers
|
|
138
|
-
var blackHoleStream_1 = require("./stream/blackHoleStream.cjs");
|
|
139
|
-
Object.defineProperty(exports, "BlackHoleStream", { enumerable: true, get: function () { return blackHoleStream_1.BlackHoleStream; } });
|
|
140
|
-
/* stream/streamPromise.ts */
|
|
141
|
-
// Identifiers
|
|
142
|
-
var streamPromise_1 = require("./stream/streamPromise.cjs");
|
|
143
|
-
Object.defineProperty(exports, "streamPromise", { enumerable: true, get: function () { return streamPromise_1.streamPromise; } });
|
|
144
|
-
var streamPromise_2 = require("./stream/streamPromise.cjs");
|
|
145
|
-
Object.defineProperty(exports, "streamHasEnd", { enumerable: true, get: function () { return streamPromise_2.streamHasEnd; } });
|
|
146
|
-
/* stream/collectingStream.ts */
|
|
147
|
-
// Identifiers
|
|
148
|
-
var collectingStream_1 = require("./stream/collectingStream.cjs");
|
|
149
|
-
Object.defineProperty(exports, "streamToBuffer", { enumerable: true, get: function () { return collectingStream_1.streamToBuffer; } });
|
|
150
|
-
var collectingStream_2 = require("./stream/collectingStream.cjs");
|
|
151
|
-
Object.defineProperty(exports, "RawCollectingStream", { enumerable: true, get: function () { return collectingStream_2.RawCollectingStream; } });
|
|
152
|
-
var collectingStream_3 = require("./stream/collectingStream.cjs");
|
|
153
|
-
Object.defineProperty(exports, "CollectingStream", { enumerable: true, get: function () { return collectingStream_3.CollectingStream; } });
|
|
154
|
-
/* stream/disposableStream.ts */
|
|
155
|
-
// Identifiers
|
|
156
|
-
var disposableStream_1 = require("./stream/disposableStream.cjs");
|
|
157
|
-
Object.defineProperty(exports, "disposableStream", { enumerable: true, get: function () { return disposableStream_1.disposableStream; } });
|
|
158
|
-
/* stream/drainStream.ts */
|
|
159
|
-
// Identifiers
|
|
160
|
-
var drainStream_1 = require("./stream/drainStream.cjs");
|
|
161
|
-
Object.defineProperty(exports, "drainStream", { enumerable: true, get: function () { return drainStream_1.drainStream; } });
|
|
162
|
-
var loggerStream_1 = require("./stream/loggerStream.cjs");
|
|
163
|
-
Object.defineProperty(exports, "LoggerStream", { enumerable: true, get: function () { return loggerStream_1.LoggerStream; } });
|
|
164
|
-
var loggerStream_2 = require("./stream/loggerStream.cjs");
|
|
165
|
-
Object.defineProperty(exports, "HexDumpLoggerStream", { enumerable: true, get: function () { return loggerStream_2.HexDumpLoggerStream; } });
|
|
166
|
-
//# sourceMappingURL=index.generated.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.generated.js","sourceRoot":"","sources":["../src/index.generated.ts"],"names":[],"mappings":";AAAA,wBAAwB;AACxB,aAAa;AACb,oBAAoB;;;;AAQlB,8DAAuD;AAA/C,0GAAA,WAAW,OAAA;AAEnB,8DAAyD;AAAjD,4GAAA,aAAa,OAAA;AACrB,8DAAqD;AAA7C,wGAAA,SAAS,OAAA;AACjB,8DAAwD;AAAhD,2GAAA,YAAY,OAAA;AACtB,qBAAqB;AACpB,cAAc;AACb,6CAA+C;AAAvC,yGAAA,eAAe,OAAA;AACvB,6CAAgD;AAAxC,0GAAA,gBAAgB,OAAA;AACxB,6CAAiD;AAAzC,2GAAA,iBAAiB,OAAA;AAIzB,6CAAsC;AAA9B,sGAAA,SAAS,OAAA;AACjB,6CAAoC;AAA5B,oGAAA,OAAO,OAAA;AACjB,4BAA4B;AAC3B,cAAc;AACb,mDAA8D;AAAtD,gHAAA,uBAAuB,OAAA;AAM/B,mDAAyD;AAAjD,2GAAA,kBAAkB,OAAA;AAC1B,mDAAqD;AAA7C,uGAAA,cAA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|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
export { resolvePath } from "./path-resolve/resolvePath.js";
|
|
5
|
-
export { normalizePath } from "./path-resolve/resolvePath.js";
|
|
6
|
-
export { osTempDir } from "./path-resolve/resolvePath.js";
|
|
7
|
-
export { relativePath } from "./path-resolve/resolvePath.js";
|
|
8
|
-
/* error/pretty.ts */
|
|
9
|
-
// Identifiers
|
|
10
|
-
export { setErrorLogRoot } from "./error/pretty.js";
|
|
11
|
-
export { prettyPrintError } from "./error/pretty.js";
|
|
12
|
-
export { prettyFormatError } from "./error/pretty.js";
|
|
13
|
-
export { ExitError } from "./asyncLoad.js";
|
|
14
|
-
export { runMain } from "./asyncLoad.js";
|
|
15
|
-
/* child_process/error.ts */
|
|
16
|
-
// Identifiers
|
|
17
|
-
export { checkChildProcessResult } from "./child_process/error.js";
|
|
18
|
-
export { spawnWithoutOutput } from "./child_process/execa.js";
|
|
19
|
-
export { spawnGetOutput } from "./child_process/execa.js";
|
|
20
|
-
export { spawnGetEverything } from "./child_process/execa.js";
|
|
21
|
-
/* cli-io/output.ts */
|
|
22
|
-
// Identifiers
|
|
23
|
-
export { printLine } from "./cli-io/output.js";
|
|
24
|
-
export { execLazyError } from "./child_process/lateError.js";
|
|
25
|
-
/* fs/exists.ts */
|
|
26
|
-
// Identifiers
|
|
27
|
-
export { existsSync } from "./fs/exists.js";
|
|
28
|
-
export { exists } from "./fs/exists.js";
|
|
29
|
-
export { getEnvironment } from "./environment/getEnvironment.js";
|
|
30
|
-
export { deleteEnvironment } from "./environment/getEnvironment.js";
|
|
31
|
-
export { cleanupEnvironment } from "./environment/getEnvironment.js";
|
|
32
|
-
/* environment/pathEnvironment.ts */
|
|
33
|
-
// Identifiers
|
|
34
|
-
export { PATH_SEPARATOR } from "./environment/pathEnvironment.js";
|
|
35
|
-
export { PathEnvironment } from "./environment/pathEnvironment.js";
|
|
36
|
-
/* environment/findBinary.ts */
|
|
37
|
-
// Identifiers
|
|
38
|
-
export { findBinary } from "./environment/findBinary.js";
|
|
39
|
-
/* child_process/respawn.ts */
|
|
40
|
-
// Identifiers
|
|
41
|
-
export { spawnRecreateEventHandlers } from "./child_process/respawn.js";
|
|
42
|
-
export { trySpawnInScope } from "./child_process/respawn.js";
|
|
43
|
-
export { respawnInScope } from "./child_process/respawn.js";
|
|
44
|
-
/* crypto/md5.ts */
|
|
45
|
-
// Identifiers
|
|
46
|
-
export { md5 } from "./crypto/md5.js";
|
|
47
|
-
/* crypto/sha256.ts */
|
|
48
|
-
// Identifiers
|
|
49
|
-
export { sha256 } from "./crypto/sha256.js";
|
|
50
|
-
/* environment/npmConfig.ts */
|
|
51
|
-
// Identifiers
|
|
52
|
-
export { getNpmConfigValue } from "./environment/npmConfig.js";
|
|
53
|
-
/* error/code.ts */
|
|
54
|
-
// Identifiers
|
|
55
|
-
export { ERRNO_LINUX } from "./error/code.js";
|
|
56
|
-
/* events/dumpEventEmitter.ts */
|
|
57
|
-
// Identifiers
|
|
58
|
-
export { dumpEventEmitterEmit } from "./events/dumpEventEmitter.js";
|
|
59
|
-
/* fs/commandExists.ts */
|
|
60
|
-
// Identifiers
|
|
61
|
-
export { commandInPath } from "./fs/commandExists.js";
|
|
62
|
-
export { commmandInPathSync } from "./fs/commandExists.js";
|
|
63
|
-
/* fs/tempFolder.ts */
|
|
64
|
-
// Identifiers
|
|
65
|
-
export { createTempFolder } from "./fs/tempFolder.js";
|
|
66
|
-
/* fs/weiteChanged.ts */
|
|
67
|
-
// Identifiers
|
|
68
|
-
export { writeFileIfChangeSync } from "./fs/weiteChanged.js";
|
|
69
|
-
export { writeFileIfChange } from "./fs/weiteChanged.js";
|
|
70
|
-
/* log/terminal.ts */
|
|
71
|
-
// Identifiers
|
|
72
|
-
export { WrappedTerminalConsole } from "./log/terminal.js";
|
|
73
|
-
/* path-resolve/findUp.ts */
|
|
74
|
-
// Identifiers
|
|
75
|
-
export { findUpUntil } from "./path-resolve/findUp.js";
|
|
76
|
-
export { findUpUntilSync } from "./path-resolve/findUp.js";
|
|
77
|
-
/* path-resolve/findPackageRoot.ts */
|
|
78
|
-
// Identifiers
|
|
79
|
-
export { findPackageRoot } from "./path-resolve/findPackageRoot.js";
|
|
80
|
-
/* path-resolve/getAllUp.ts */
|
|
81
|
-
// Identifiers
|
|
82
|
-
export { getAllPathUpToRoot } from "./path-resolve/getAllUp.js";
|
|
83
|
-
/* path-resolve/lrelative.ts */
|
|
84
|
-
// Identifiers
|
|
85
|
-
export { lrelative } from "./path-resolve/lrelative.js";
|
|
86
|
-
/* path-resolve/nodeResolvePathArray.ts */
|
|
87
|
-
// Identifiers
|
|
88
|
-
export { nodeResolvePathArray } from "./path-resolve/nodeResolvePathArray.js";
|
|
89
|
-
/* stream/blackHoleStream.ts */
|
|
90
|
-
// Identifiers
|
|
91
|
-
export { BlackHoleStream } from "./stream/blackHoleStream.js";
|
|
92
|
-
/* stream/streamPromise.ts */
|
|
93
|
-
// Identifiers
|
|
94
|
-
export { streamPromise } from "./stream/streamPromise.js";
|
|
95
|
-
export { streamHasEnd } from "./stream/streamPromise.js";
|
|
96
|
-
/* stream/collectingStream.ts */
|
|
97
|
-
// Identifiers
|
|
98
|
-
export { streamToBuffer } from "./stream/collectingStream.js";
|
|
99
|
-
export { RawCollectingStream } from "./stream/collectingStream.js";
|
|
100
|
-
export { CollectingStream } from "./stream/collectingStream.js";
|
|
101
|
-
/* stream/disposableStream.ts */
|
|
102
|
-
// Identifiers
|
|
103
|
-
export { disposableStream } from "./stream/disposableStream.js";
|
|
104
|
-
/* stream/drainStream.ts */
|
|
105
|
-
// Identifiers
|
|
106
|
-
export { drainStream } from "./stream/drainStream.js";
|
|
107
|
-
export { LoggerStream } from "./stream/loggerStream.js";
|
|
108
|
-
export { HexDumpLoggerStream } from "./stream/loggerStream.js";
|
|
109
|
-
//# sourceMappingURL=index.generated.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.generated.js","sourceRoot":"","sources":["../src/index.generated.ts"],"names":[],"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CAA+B;AACtD,gCAAgC;AAC/B,cAAc;AACb,OAAO,EAAC,cAAc,EAAC,qCAAkC;AACzD,OAAO,EAAC,mBAAmB,EAAC,qCAAkC;AAC9D,OAAO,EAAC,gBAAgB,EAAC,qCAAkC;AAC7D,gCAAgC;AAC/B,cAAc;AACb,OAAO,EAAC,gBAAgB,EAAC,qCAAkC;AAC7D,2BAA2B;AAC1B,cAAc;AACb,OAAO,EAAC,WAAW,EAAC,gCAA6B;AAIjD,OAAO,EAAC,YAAY,EAAC,iCAA8B;AACnD,OAAO,EAAC,mBAAmB,EAAC,iCAA8B"}
|
package/lib/node-public.d.ts
DELETED
|
@@ -1,388 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
|
|
3
|
-
import { EventEmitter } from 'events';
|
|
4
|
-
import { ExecaReturnValue } from 'execa';
|
|
5
|
-
import { IDisposable } from '@idlebox/common';
|
|
6
|
-
import { Options } from 'execa';
|
|
7
|
-
import { PathArray } from '@idlebox/common';
|
|
8
|
-
import { Readable } from 'stream';
|
|
9
|
-
import { Transform } from 'stream';
|
|
10
|
-
import { WrappedConsole } from '@idlebox/common';
|
|
11
|
-
import { WrappedConsoleOptions } from '@idlebox/common';
|
|
12
|
-
import { Writable } from 'stream';
|
|
13
|
-
|
|
14
|
-
export declare interface Async {
|
|
15
|
-
sync?: boolean;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export declare type AsyncMainFunction = () => Promise<void | number>;
|
|
19
|
-
|
|
20
|
-
export declare class BlackHoleStream extends Writable {
|
|
21
|
-
_write(_chunk: Buffer, _encoding: string, callback: (error?: Error | null) => void): void;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/** @throws */
|
|
25
|
-
export declare function checkChildProcessResult(result: IChildProcessStatus): void;
|
|
26
|
-
|
|
27
|
-
export declare function cleanupEnvironment(name: string, env?: NodeJS.ProcessEnv): void;
|
|
28
|
-
|
|
29
|
-
export declare class CollectingStream extends Writable {
|
|
30
|
-
private buffer?;
|
|
31
|
-
private _promise?;
|
|
32
|
-
constructor(sourceStream?: NodeJS.ReadableStream);
|
|
33
|
-
_write(chunk: Buffer, encoding: BufferEncoding, callback: (error?: Error | null) => void): void;
|
|
34
|
-
getOutput(): string;
|
|
35
|
-
promise(): Promise<string>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
declare const colorMap: {
|
|
39
|
-
info: string;
|
|
40
|
-
success: string;
|
|
41
|
-
debug: string;
|
|
42
|
-
error: string;
|
|
43
|
-
trace: string;
|
|
44
|
-
warn: string;
|
|
45
|
-
assert: string;
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
export declare function commandInPath(cmd: string, alterExt?: string[]): Promise<string | undefined>;
|
|
49
|
-
|
|
50
|
-
export declare function commmandInPathSync(cmd: string, alterExt?: string[]): string | undefined;
|
|
51
|
-
|
|
52
|
-
export declare function createTempFolder(fullPath: string): IDisposable;
|
|
53
|
-
|
|
54
|
-
export declare function deleteEnvironment(name: string, env?: NodeJS.ProcessEnv): void;
|
|
55
|
-
|
|
56
|
-
export declare function disposableStream<T extends Writable | Readable>(stream: T): T & IDisposable;
|
|
57
|
-
|
|
58
|
-
export declare function drainStream(stream: NodeJS.ReadableStream, size: number, start?: number, extra?: number): Promise<Buffer>;
|
|
59
|
-
|
|
60
|
-
export declare function dumpEventEmitterEmit(ev: EventEmitter): void;
|
|
61
|
-
|
|
62
|
-
export declare enum ERRNO_LINUX {
|
|
63
|
-
EPERM = 1,
|
|
64
|
-
ENOENT = 2,
|
|
65
|
-
ESRCH = 3,
|
|
66
|
-
EINTR = 4,
|
|
67
|
-
EIO = 5,
|
|
68
|
-
ENXIO = 6,
|
|
69
|
-
E2BIG = 7,
|
|
70
|
-
ENOEXEC = 8,
|
|
71
|
-
EBADF = 9,
|
|
72
|
-
ECHILD = 10,
|
|
73
|
-
EAGAIN = 11,
|
|
74
|
-
ENOMEM = 12,
|
|
75
|
-
EACCES = 13,
|
|
76
|
-
EFAULT = 14,
|
|
77
|
-
ENOTBLK = 15,
|
|
78
|
-
EBUSY = 16,
|
|
79
|
-
EEXIST = 17,
|
|
80
|
-
EXDEV = 18,
|
|
81
|
-
ENODEV = 19,
|
|
82
|
-
ENOTDIR = 20,
|
|
83
|
-
EISDIR = 21,
|
|
84
|
-
EINVAL = 22,
|
|
85
|
-
ENFILE = 23,
|
|
86
|
-
EMFILE = 24,
|
|
87
|
-
ENOTTY = 25,
|
|
88
|
-
ETXTBSY = 26,
|
|
89
|
-
EFBIG = 27,
|
|
90
|
-
ENOSPC = 28,
|
|
91
|
-
ESPIPE = 29,
|
|
92
|
-
EROFS = 30,
|
|
93
|
-
EMLINK = 31,
|
|
94
|
-
EPIPE = 32,
|
|
95
|
-
EDOM = 33,
|
|
96
|
-
ERANGE = 34,
|
|
97
|
-
ENOMSG = 35,
|
|
98
|
-
EIDRM = 36,
|
|
99
|
-
ECHRNG = 37,
|
|
100
|
-
EL2NSYNC = 38,
|
|
101
|
-
EL3HLT = 39,
|
|
102
|
-
EL3RST = 40,
|
|
103
|
-
ELNRNG = 41,
|
|
104
|
-
EUNATCH = 42,
|
|
105
|
-
ENOCSI = 43,
|
|
106
|
-
EL2HLT = 44,
|
|
107
|
-
EDEADLK = 45,
|
|
108
|
-
ENOLCK = 46,
|
|
109
|
-
EBADE = 50,
|
|
110
|
-
EBADR = 51,
|
|
111
|
-
EXFULL = 52,
|
|
112
|
-
ENOANO = 53,
|
|
113
|
-
EBADRQC = 54,
|
|
114
|
-
EBADSLT = 55,
|
|
115
|
-
EDEADLOCK = 56,
|
|
116
|
-
EBFONT = 57,
|
|
117
|
-
ENOSTR = 60,
|
|
118
|
-
ENODATA = 61,
|
|
119
|
-
ETIME = 62,
|
|
120
|
-
ENOSR = 63,
|
|
121
|
-
ENONET = 64,
|
|
122
|
-
ENOPKG = 65,
|
|
123
|
-
EREMOTE = 66,
|
|
124
|
-
ENOLINK = 67,
|
|
125
|
-
EADV = 68,
|
|
126
|
-
ESRMNT = 69,
|
|
127
|
-
ECOMM = 70,
|
|
128
|
-
EPROTO = 71,
|
|
129
|
-
EMULTIHOP = 74,
|
|
130
|
-
ELBIN = 75,
|
|
131
|
-
EDOTDOT = 76,
|
|
132
|
-
EBADMSG = 77,
|
|
133
|
-
EFTYPE = 79,
|
|
134
|
-
ENOTUNIQ = 80,
|
|
135
|
-
EBADFD = 81,
|
|
136
|
-
EREMCHG = 82,
|
|
137
|
-
ELIBACC = 83,
|
|
138
|
-
ELIBBAD = 84,
|
|
139
|
-
ELIBSCN = 85,
|
|
140
|
-
ELIBMAX = 86,
|
|
141
|
-
ELIBEXEC = 87,
|
|
142
|
-
ENOSYS = 88,
|
|
143
|
-
ENMFILE = 89,
|
|
144
|
-
ENOTEMPTY = 90,
|
|
145
|
-
ENAMETOOLONG = 91,
|
|
146
|
-
ELOOP = 92,
|
|
147
|
-
EOPNOTSUPP = 95,
|
|
148
|
-
EPFNOSUPPORT = 96,
|
|
149
|
-
ECONNRESET = 104,
|
|
150
|
-
ENOBUFS = 105,
|
|
151
|
-
EAFNOSUPPORT = 106,
|
|
152
|
-
EPROTOTYPE = 107,
|
|
153
|
-
ENOTSOCK = 108,
|
|
154
|
-
ENOPROTOOPT = 109,
|
|
155
|
-
ESHUTDOWN = 110,
|
|
156
|
-
ECONNREFUSED = 111,
|
|
157
|
-
EADDRINUSE = 112,
|
|
158
|
-
ECONNABORTED = 113,
|
|
159
|
-
ENETUNREACH = 114,
|
|
160
|
-
ENETDOWN = 115,
|
|
161
|
-
ETIMEDOUT = 116,
|
|
162
|
-
EHOSTDOWN = 117,
|
|
163
|
-
EHOSTUNREACH = 118,
|
|
164
|
-
EINPROGRESS = 119,
|
|
165
|
-
EALREADY = 120,
|
|
166
|
-
EDESTADDRREQ = 121,
|
|
167
|
-
EMSGSIZE = 122,
|
|
168
|
-
EPROTONOSUPPORT = 123,
|
|
169
|
-
ESOCKTNOSUPPORT = 124,
|
|
170
|
-
EADDRNOTAVAIL = 125,
|
|
171
|
-
ENETRESET = 126,
|
|
172
|
-
EISCONN = 127,
|
|
173
|
-
ENOTCONN = 128,
|
|
174
|
-
ETOOMANYREFS = 129,
|
|
175
|
-
EPROCLIM = 130,
|
|
176
|
-
EUSERS = 131,
|
|
177
|
-
EDQUOT = 132,
|
|
178
|
-
ESTALE = 133,
|
|
179
|
-
ENOTSUP = 134,
|
|
180
|
-
ENOMEDIUM = 135,
|
|
181
|
-
ENOSHARE = 136,
|
|
182
|
-
ECASECLASH = 137,
|
|
183
|
-
EILSEQ = 138,
|
|
184
|
-
EOVERFLOW = 139
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
export declare function execLazyError(cmd: string, args: string[], spawnOptions?: Omit<Options, 'reject' | 'stdio' | 'encoding' | 'all' | 'stderr'> & ISpawnAdditionOptions): Promise<ExecaReturnValue<string>>;
|
|
188
|
-
|
|
189
|
-
export declare function exists(path: string): Promise<boolean>;
|
|
190
|
-
|
|
191
|
-
export declare function existsSync(path: string): boolean;
|
|
192
|
-
|
|
193
|
-
export declare class ExitError extends Error {
|
|
194
|
-
readonly code: number;
|
|
195
|
-
constructor(message: string, code?: number);
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
export declare function findBinary(what: string, pathvar?: PathArray, cwd?: string): string;
|
|
199
|
-
|
|
200
|
-
export declare function findPackageRoot(packageName: string, require?: NodeRequire): string;
|
|
201
|
-
|
|
202
|
-
export declare function findUpUntil(from: string, file: string): Promise<string | null>;
|
|
203
|
-
|
|
204
|
-
export declare function findUpUntilSync(from: string, file: string): string | null;
|
|
205
|
-
|
|
206
|
-
export declare function getAllPathUpToRoot(from: string, append?: string): string[];
|
|
207
|
-
|
|
208
|
-
export declare function getEnvironment(name: string, env?: NodeJS.ProcessEnv): IEnvironmentResult;
|
|
209
|
-
|
|
210
|
-
export declare function getNpmConfigValue(field: string): Promise<string>;
|
|
211
|
-
|
|
212
|
-
export declare class HexDumpLoggerStream extends Transform {
|
|
213
|
-
private readonly logFn;
|
|
214
|
-
private readonly prefix;
|
|
215
|
-
constructor(logFn: LogFunction, prefix?: string);
|
|
216
|
-
_transform(chunk: Buffer, encoding: BufferEncoding, callback: Function): void;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
declare interface IChildProcessStatus {
|
|
220
|
-
signal?: NodeJS.Signals | string | null;
|
|
221
|
-
status?: number | null;
|
|
222
|
-
error?: Error;
|
|
223
|
-
signalCode?: NodeJS.Signals | string | null;
|
|
224
|
-
exitCode?: number | null;
|
|
225
|
-
signalDescription?: string;
|
|
226
|
-
command?: string;
|
|
227
|
-
killed?: boolean;
|
|
228
|
-
failed?: boolean;
|
|
229
|
-
timedOut?: boolean;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
export declare interface ICommand {
|
|
233
|
-
exec: string[];
|
|
234
|
-
addonPath?: string[];
|
|
235
|
-
cwd?: string;
|
|
236
|
-
sync?: boolean;
|
|
237
|
-
env?: ProcessEnv;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
export declare interface IEnvironmentResult {
|
|
241
|
-
value: string | undefined;
|
|
242
|
-
name: string;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
export declare interface ISpawnAdditionOptions {
|
|
246
|
-
verbose?: boolean;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
export declare interface JoinPathFunction {
|
|
250
|
-
(from: string, to: string): string;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
export declare type LogFunction = (message: string, ...args: any[]) => void;
|
|
254
|
-
|
|
255
|
-
export declare class LoggerStream extends Transform {
|
|
256
|
-
private readonly logFn;
|
|
257
|
-
private readonly prefix;
|
|
258
|
-
constructor(logFn: LogFunction, prefix?: string);
|
|
259
|
-
_transform(chunk: Buffer, encoding: BufferEncoding, callback: Function): void;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
export declare function lrelative(from: string, to: string): string;
|
|
263
|
-
|
|
264
|
-
export declare function md5(data: Buffer): string;
|
|
265
|
-
|
|
266
|
-
export declare function nodeResolvePathArray(from: string, file?: string): string[];
|
|
267
|
-
|
|
268
|
-
export declare const normalizePath: NormalizePathFunction;
|
|
269
|
-
|
|
270
|
-
export declare interface NormalizePathFunction {
|
|
271
|
-
(path: string): string;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
export declare function osTempDir(name?: string): string;
|
|
275
|
-
|
|
276
|
-
export declare const PATH_SEPARATOR: string;
|
|
277
|
-
|
|
278
|
-
export declare class PathEnvironment extends PathArray {
|
|
279
|
-
private readonly name;
|
|
280
|
-
private readonly env;
|
|
281
|
-
constructor(varName?: string, env?: NodeJS.ProcessEnv);
|
|
282
|
-
add(p: string): this;
|
|
283
|
-
clear(): void;
|
|
284
|
-
delete(p: string): boolean;
|
|
285
|
-
save(): void;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
export declare function prettyFormatError(e: Error): string;
|
|
289
|
-
|
|
290
|
-
export declare function prettyPrintError(type: string, e: Error): void;
|
|
291
|
-
|
|
292
|
-
export declare function printLine(char?: string): void;
|
|
293
|
-
|
|
294
|
-
declare type ProcessEnv = Record<string, string> & {
|
|
295
|
-
Path?: never;
|
|
296
|
-
};
|
|
297
|
-
|
|
298
|
-
export declare class RawCollectingStream extends Writable {
|
|
299
|
-
private buffer?;
|
|
300
|
-
private _promise?;
|
|
301
|
-
constructor(sourceStream?: NodeJS.ReadableStream);
|
|
302
|
-
_write(chunk: Buffer, _encoding: string, callback: (error?: Error | null) => void): void;
|
|
303
|
-
getOutput(): Buffer;
|
|
304
|
-
promise(): Promise<Buffer>;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
export declare const relativePath: JoinPathFunction;
|
|
308
|
-
|
|
309
|
-
export declare const resolvePath: ResolvePathFunction;
|
|
310
|
-
|
|
311
|
-
export declare interface ResolvePathFunction {
|
|
312
|
-
(...pathSegments: string[]): string;
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
/**
|
|
316
|
-
* Self restart in a pid/cgroup namespace on linux.
|
|
317
|
-
* Your application must inside mainFunc, not before or after it.
|
|
318
|
-
*
|
|
319
|
-
* ```typescript
|
|
320
|
-
* import {respawnInScope} from '@idlebox/node'
|
|
321
|
-
* respawnInScope(() => {
|
|
322
|
-
* import('./real-application');
|
|
323
|
-
* });
|
|
324
|
-
* ```
|
|
325
|
-
*/
|
|
326
|
-
export declare function respawnInScope(mainFunc: Function): unknown | never;
|
|
327
|
-
|
|
328
|
-
/**
|
|
329
|
-
* should do this before:
|
|
330
|
-
* ```
|
|
331
|
-
* setErrorLogRoot(require('path').dirname(__dirname));
|
|
332
|
-
* ```
|
|
333
|
-
**/
|
|
334
|
-
export declare function runMain(main: AsyncMainFunction): void;
|
|
335
|
-
|
|
336
|
-
export declare function setErrorLogRoot(_root: string): void;
|
|
337
|
-
|
|
338
|
-
export declare function sha256(data: Buffer): string;
|
|
339
|
-
|
|
340
|
-
export declare function spawnGetEverything({ exec, cwd, env, addonPath }: ICommand): Promise<string | undefined>;
|
|
341
|
-
|
|
342
|
-
export declare function spawnGetOutput(opt: ICommand & Sync): string;
|
|
343
|
-
|
|
344
|
-
export declare function spawnGetOutput(opt: ICommand & Async): Promise<string>;
|
|
345
|
-
|
|
346
|
-
export declare function spawnRecreateEventHandlers(): void;
|
|
347
|
-
|
|
348
|
-
export declare function spawnWithoutOutput(opt: ICommand & Sync): void;
|
|
349
|
-
|
|
350
|
-
export declare function spawnWithoutOutput(opt: ICommand & Async): Promise<void>;
|
|
351
|
-
|
|
352
|
-
export declare function streamHasEnd(S: NodeJS.ReadableStream | NodeJS.WritableStream): any;
|
|
353
|
-
|
|
354
|
-
/**
|
|
355
|
-
* wait read/write stream end/close, as promise
|
|
356
|
-
* reject when stream emit error
|
|
357
|
-
*/
|
|
358
|
-
export declare function streamPromise(stream: NodeJS.ReadableStream | NodeJS.WritableStream): Promise<void>;
|
|
359
|
-
|
|
360
|
-
export declare function streamToBuffer(stream: NodeJS.ReadableStream, raw: false): Promise<string>;
|
|
361
|
-
|
|
362
|
-
export declare function streamToBuffer(stream: NodeJS.ReadableStream, raw: true): Promise<Buffer>;
|
|
363
|
-
|
|
364
|
-
export declare interface Sync {
|
|
365
|
-
sync: true;
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
declare interface TerminalConsoleOptions {
|
|
369
|
-
color?: boolean | Partial<typeof colorMap>;
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
/**
|
|
373
|
-
* Spawn a command, replace current node process
|
|
374
|
-
* If can't do that (eg. on Windows), spawn as normal, but quit self after it quit.
|
|
375
|
-
*/
|
|
376
|
-
export declare function trySpawnInScope(cmds: string[]): never;
|
|
377
|
-
|
|
378
|
-
export declare class WrappedTerminalConsole extends WrappedConsole {
|
|
379
|
-
private readonly colors;
|
|
380
|
-
constructor(title: string, { color, ...opt }?: WrappedConsoleOptions & TerminalConsoleOptions);
|
|
381
|
-
protected processColorLabel(msg: any[], pos: number, level: string, prefix: string): void;
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
export declare function writeFileIfChange(file: string, data: string | Buffer): Promise<boolean>;
|
|
385
|
-
|
|
386
|
-
export declare function writeFileIfChangeSync(file: string, data: string | Buffer): boolean;
|
|
387
|
-
|
|
388
|
-
export { }
|