@idlebox/node 1.4.10 → 1.4.12
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/autoindex.d.ts +85 -76
- package/lib/autoindex.d.ts.map +1 -1
- package/lib/autoindex.js +76 -65
- package/lib/autoindex.js.map +1 -1
- package/lib/lifecycle/internal-errors.d.ts +23 -0
- package/lib/lifecycle/internal-errors.d.ts.map +1 -0
- package/lib/lifecycle/internal-errors.js +60 -0
- package/lib/lifecycle/internal-errors.js.map +1 -0
- package/lib/lifecycle/register.d.ts +7 -0
- package/lib/lifecycle/register.d.ts.map +1 -1
- package/lib/lifecycle/register.js +116 -38
- package/lib/lifecycle/register.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +9 -9
- package/src/autoindex.ts +124 -113
- package/src/lifecycle/internal-errors.ts +66 -0
- package/src/lifecycle/register.ts +122 -40
- package/lib/autoindex.generated.d.ts +0 -80
- package/lib/autoindex.generated.d.ts.map +0 -1
- package/lib/autoindex.generated.js +0 -132
- package/lib/autoindex.generated.js.map +0 -1
- package/src/autoindex.generated.ts +0 -159
package/lib/autoindex.d.ts
CHANGED
|
@@ -1,77 +1,86 @@
|
|
|
1
|
-
export type { AsyncMainFunction } from
|
|
2
|
-
export { executeMainFunction } from
|
|
3
|
-
export { checkChildProcessResult } from
|
|
4
|
-
export type { ICommand } from
|
|
5
|
-
export { spawnWithoutOutputSync } from
|
|
6
|
-
export { spawnWithoutOutput } from
|
|
7
|
-
export { spawnGetOutputSync } from
|
|
8
|
-
export { spawnGetOutput } from
|
|
9
|
-
export { spawnGetEverything } from
|
|
10
|
-
export { printLine } from
|
|
11
|
-
export type { ISpawnOptions } from
|
|
12
|
-
export type { ExecaReturnValue } from
|
|
13
|
-
export { execLazyError } from
|
|
14
|
-
export { LinuxError } from
|
|
15
|
-
export type { OpenSSLException } from
|
|
16
|
-
export { isModuleResolutionError } from
|
|
17
|
-
export { isNotExistsError } from
|
|
18
|
-
export { isExistsError } from
|
|
19
|
-
export { isTypeError } from
|
|
20
|
-
export { isFileTypeError } from
|
|
21
|
-
export { isNodeError } from
|
|
22
|
-
export * from
|
|
23
|
-
export { existsSync } from
|
|
24
|
-
export { exists } from
|
|
25
|
-
export { readFileIfExists } from
|
|
26
|
-
export type { IEnvironmentResult } from
|
|
27
|
-
export { getEnvironment } from
|
|
28
|
-
export { deleteEnvironment } from
|
|
29
|
-
export { cleanupEnvironment } from
|
|
30
|
-
export { PATH_SEPARATOR } from
|
|
31
|
-
export { PathEnvironment } from
|
|
32
|
-
export { findBinary } from
|
|
33
|
-
export { spawnRecreateEventHandlers } from
|
|
34
|
-
export { trySpawnInScope } from
|
|
35
|
-
export { respawnInScope } from
|
|
36
|
-
export { md5 } from
|
|
37
|
-
export { sha256 } from
|
|
38
|
-
export { getNpmConfigValue } from
|
|
39
|
-
export { dumpEventEmitterEmit } from
|
|
40
|
-
export { commandInPath } from
|
|
41
|
-
export { commandInPathSync } from
|
|
42
|
-
export { emptyDir } from
|
|
43
|
-
export { ensureDirExists } from
|
|
44
|
-
export { ensureParentExists } from
|
|
45
|
-
export { createTempFolder } from
|
|
46
|
-
export { writeFileIfChangeSync } from
|
|
47
|
-
export { writeFileIfChange } from
|
|
48
|
-
export {
|
|
49
|
-
export {
|
|
50
|
-
export {
|
|
51
|
-
export {
|
|
52
|
-
export
|
|
53
|
-
export {
|
|
54
|
-
export {
|
|
55
|
-
export {
|
|
56
|
-
export {
|
|
57
|
-
export {
|
|
58
|
-
export {
|
|
59
|
-
export type {
|
|
60
|
-
export
|
|
61
|
-
export {
|
|
62
|
-
export
|
|
63
|
-
export {
|
|
64
|
-
export {
|
|
65
|
-
export {
|
|
66
|
-
export {
|
|
67
|
-
export {
|
|
68
|
-
export {
|
|
69
|
-
export {
|
|
70
|
-
export {
|
|
71
|
-
export {
|
|
72
|
-
export {
|
|
73
|
-
export {
|
|
74
|
-
export
|
|
75
|
-
export {
|
|
76
|
-
export {
|
|
1
|
+
export type { AsyncMainFunction } from "./asyncLoad.js";
|
|
2
|
+
export { executeMainFunction } from "./asyncLoad.js";
|
|
3
|
+
export { checkChildProcessResult } from "./child_process/error.js";
|
|
4
|
+
export type { ICommand } from "./child_process/execa.js";
|
|
5
|
+
export { spawnWithoutOutputSync } from "./child_process/execa.js";
|
|
6
|
+
export { spawnWithoutOutput } from "./child_process/execa.js";
|
|
7
|
+
export { spawnGetOutputSync } from "./child_process/execa.js";
|
|
8
|
+
export { spawnGetOutput } from "./child_process/execa.js";
|
|
9
|
+
export { spawnGetEverything } from "./child_process/execa.js";
|
|
10
|
+
export { printLine } from "./cli-io/output.js";
|
|
11
|
+
export type { ISpawnOptions } from "./child_process/lateError.js";
|
|
12
|
+
export type { ExecaReturnValue } from "./child_process/lateError.js";
|
|
13
|
+
export { execLazyError } from "./child_process/lateError.js";
|
|
14
|
+
export { LinuxError } from "./error/linux.js";
|
|
15
|
+
export type { OpenSSLException } from "./error/types.js";
|
|
16
|
+
export { isModuleResolutionError } from "./error/types.js";
|
|
17
|
+
export { isNotExistsError } from "./error/types.js";
|
|
18
|
+
export { isExistsError } from "./error/types.js";
|
|
19
|
+
export { isTypeError } from "./error/types.js";
|
|
20
|
+
export { isFileTypeError } from "./error/types.js";
|
|
21
|
+
export { isNodeError } from "./error/types.js";
|
|
22
|
+
export * from "@idlebox/node-error-codes";
|
|
23
|
+
export { existsSync } from "./fs/exists.js";
|
|
24
|
+
export { exists } from "./fs/exists.js";
|
|
25
|
+
export { readFileIfExists } from "./fs/exists.js";
|
|
26
|
+
export type { IEnvironmentResult } from "./environment/getEnvironment.js";
|
|
27
|
+
export { getEnvironment } from "./environment/getEnvironment.js";
|
|
28
|
+
export { deleteEnvironment } from "./environment/getEnvironment.js";
|
|
29
|
+
export { cleanupEnvironment } from "./environment/getEnvironment.js";
|
|
30
|
+
export { PATH_SEPARATOR } from "./environment/pathEnvironment.js";
|
|
31
|
+
export { PathEnvironment } from "./environment/pathEnvironment.js";
|
|
32
|
+
export { findBinary } from "./environment/findBinary.js";
|
|
33
|
+
export { spawnRecreateEventHandlers } from "./child_process/respawn.js";
|
|
34
|
+
export { trySpawnInScope } from "./child_process/respawn.js";
|
|
35
|
+
export { respawnInScope } from "./child_process/respawn.js";
|
|
36
|
+
export { md5 } from "./crypto/md5.js";
|
|
37
|
+
export { sha256 } from "./crypto/sha256.js";
|
|
38
|
+
export { getNpmConfigValue } from "./environment/npmConfig.js";
|
|
39
|
+
export { dumpEventEmitterEmit } from "./events/dumpEventEmitter.js";
|
|
40
|
+
export { commandInPath } from "./fs/commandExists.js";
|
|
41
|
+
export { commandInPathSync } from "./fs/commandExists.js";
|
|
42
|
+
export { emptyDir } from "./fs/emptyDir.js";
|
|
43
|
+
export { ensureDirExists } from "./fs/ensureDir.js";
|
|
44
|
+
export { ensureParentExists } from "./fs/ensureDir.js";
|
|
45
|
+
export { createTempFolder } from "./fs/tempFolder.js";
|
|
46
|
+
export { writeFileIfChangeSync } from "./fs/weiteChanged.js";
|
|
47
|
+
export { writeFileIfChange } from "./fs/weiteChanged.js";
|
|
48
|
+
export { Exit } from "./lifecycle/internal-errors.js";
|
|
49
|
+
export { InterruptError } from "./lifecycle/internal-errors.js";
|
|
50
|
+
export { UnhandledRejection } from "./lifecycle/internal-errors.js";
|
|
51
|
+
export { UncaughtException } from "./lifecycle/internal-errors.js";
|
|
52
|
+
export { setAbnormalExitCode } from "./lifecycle/register.js";
|
|
53
|
+
export { shutdown } from "./lifecycle/register.js";
|
|
54
|
+
export { registerNodejsGlobalTypedErrorHandlerWithInheritance } from "./lifecycle/register.js";
|
|
55
|
+
export { registerNodejsGlobalTypedErrorHandler } from "./lifecycle/register.js";
|
|
56
|
+
export { registerNodejsExitHandler } from "./lifecycle/register.js";
|
|
57
|
+
export { die } from "./lifecycle/register.js";
|
|
58
|
+
export { WrappedTerminalConsole } from "./log/terminal.js";
|
|
59
|
+
export type { IFindOptions } from "./path-resolve/findUp.js";
|
|
60
|
+
export { findUpUntil } from "./path-resolve/findUp.js";
|
|
61
|
+
export { findUp } from "./path-resolve/findUp.js";
|
|
62
|
+
export { findUpUntilSync } from "./path-resolve/findUp.js";
|
|
63
|
+
export { findUpSync } from "./path-resolve/findUp.js";
|
|
64
|
+
export { findPackageRoot } from "./path-resolve/findPackageRoot.js";
|
|
65
|
+
export { getAllPathUpToRoot } from "./path-resolve/getAllUp.js";
|
|
66
|
+
export { lrelative } from "./path-resolve/lrelative.js";
|
|
67
|
+
export { nodeResolvePathArray } from "./path-resolve/nodeResolvePathArray.js";
|
|
68
|
+
export type { ResolvePathFunction } from "./path-resolve/resolvePath.js";
|
|
69
|
+
export type { JoinPathFunction } from "./path-resolve/resolvePath.js";
|
|
70
|
+
export { resolvePath } from "./path-resolve/resolvePath.js";
|
|
71
|
+
export type { NormalizePathFunction } from "./path-resolve/resolvePath.js";
|
|
72
|
+
export { normalizePath } from "./path-resolve/resolvePath.js";
|
|
73
|
+
export { osTempDir } from "./path-resolve/resolvePath.js";
|
|
74
|
+
export { relativePath } from "./path-resolve/resolvePath.js";
|
|
75
|
+
export { BlackHoleStream } from "./stream/blackHoleStream.js";
|
|
76
|
+
export { streamPromise } from "./stream/streamPromise.js";
|
|
77
|
+
export { streamHasEnd } from "./stream/streamPromise.js";
|
|
78
|
+
export { streamToBuffer } from "./stream/collectingStream.js";
|
|
79
|
+
export { RawCollectingStream } from "./stream/collectingStream.js";
|
|
80
|
+
export { CollectingStream } from "./stream/collectingStream.js";
|
|
81
|
+
export { disposableStream } from "./stream/disposableStream.js";
|
|
82
|
+
export { drainStream } from "./stream/drainStream.js";
|
|
83
|
+
export type { LogFunction } from "./stream/loggerStream.js";
|
|
84
|
+
export { LoggerStream } from "./stream/loggerStream.js";
|
|
85
|
+
export { HexDumpLoggerStream } from "./stream/loggerStream.js";
|
|
77
86
|
//# sourceMappingURL=autoindex.d.ts.map
|
package/lib/autoindex.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autoindex.d.ts","sourceRoot":"","sources":["../src/autoindex.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"autoindex.d.ts","sourceRoot":"","sources":["../src/autoindex.ts"],"names":[],"mappings":"AAMC,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAKrD,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAGnE,YAAY,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAG9D,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAG/C,YAAY,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAClE,YAAY,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAG7D,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAG9C,YAAY,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,kB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AAY,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,YAAY,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAG7D,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAG9D,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAGzD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAGhE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAGhE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAGtD,YAAY,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC"}
|
package/lib/autoindex.js
CHANGED
|
@@ -1,126 +1,137 @@
|
|
|
1
1
|
// DO NOT EDIT THIS FILE
|
|
2
2
|
// @ts-ignore
|
|
3
3
|
/* eslint-disable */
|
|
4
|
-
export { executeMainFunction } from
|
|
4
|
+
export { executeMainFunction } from "./asyncLoad.js";
|
|
5
5
|
/* preload.ts */
|
|
6
6
|
// Identifiers
|
|
7
7
|
/* child_process/error.ts */
|
|
8
8
|
// Identifiers
|
|
9
|
-
export { checkChildProcessResult } from
|
|
10
|
-
export { spawnWithoutOutputSync } from
|
|
11
|
-
export { spawnWithoutOutput } from
|
|
12
|
-
export { spawnGetOutputSync } from
|
|
13
|
-
export { spawnGetOutput } from
|
|
14
|
-
export { spawnGetEverything } from
|
|
9
|
+
export { checkChildProcessResult } from "./child_process/error.js";
|
|
10
|
+
export { spawnWithoutOutputSync } from "./child_process/execa.js";
|
|
11
|
+
export { spawnWithoutOutput } from "./child_process/execa.js";
|
|
12
|
+
export { spawnGetOutputSync } from "./child_process/execa.js";
|
|
13
|
+
export { spawnGetOutput } from "./child_process/execa.js";
|
|
14
|
+
export { spawnGetEverything } from "./child_process/execa.js";
|
|
15
15
|
/* cli-io/output.ts */
|
|
16
16
|
// Identifiers
|
|
17
|
-
export { printLine } from
|
|
18
|
-
export { execLazyError } from
|
|
17
|
+
export { printLine } from "./cli-io/output.js";
|
|
18
|
+
export { execLazyError } from "./child_process/lateError.js";
|
|
19
19
|
/* error/linux.ts */
|
|
20
20
|
// Identifiers
|
|
21
|
-
export { LinuxError } from
|
|
22
|
-
export { isModuleResolutionError } from
|
|
23
|
-
export { isNotExistsError } from
|
|
24
|
-
export { isExistsError } from
|
|
25
|
-
export { isTypeError } from
|
|
26
|
-
export { isFileTypeError } from
|
|
27
|
-
export { isNodeError } from
|
|
21
|
+
export { LinuxError } from "./error/linux.js";
|
|
22
|
+
export { isModuleResolutionError } from "./error/types.js";
|
|
23
|
+
export { isNotExistsError } from "./error/types.js";
|
|
24
|
+
export { isExistsError } from "./error/types.js";
|
|
25
|
+
export { isTypeError } from "./error/types.js";
|
|
26
|
+
export { isFileTypeError } from "./error/types.js";
|
|
27
|
+
export { isNodeError } from "./error/types.js";
|
|
28
28
|
// References
|
|
29
|
-
export * from
|
|
29
|
+
export * from "@idlebox/node-error-codes";
|
|
30
30
|
/* fs/exists.ts */
|
|
31
31
|
// Identifiers
|
|
32
|
-
export { existsSync } from
|
|
33
|
-
export { exists } from
|
|
34
|
-
export { readFileIfExists } from
|
|
35
|
-
export { getEnvironment } from
|
|
36
|
-
export { deleteEnvironment } from
|
|
37
|
-
export { cleanupEnvironment } from
|
|
32
|
+
export { existsSync } from "./fs/exists.js";
|
|
33
|
+
export { exists } from "./fs/exists.js";
|
|
34
|
+
export { readFileIfExists } from "./fs/exists.js";
|
|
35
|
+
export { getEnvironment } from "./environment/getEnvironment.js";
|
|
36
|
+
export { deleteEnvironment } from "./environment/getEnvironment.js";
|
|
37
|
+
export { cleanupEnvironment } from "./environment/getEnvironment.js";
|
|
38
38
|
/* environment/pathEnvironment.ts */
|
|
39
39
|
// Identifiers
|
|
40
|
-
export { PATH_SEPARATOR } from
|
|
41
|
-
export { PathEnvironment } from
|
|
40
|
+
export { PATH_SEPARATOR } from "./environment/pathEnvironment.js";
|
|
41
|
+
export { PathEnvironment } from "./environment/pathEnvironment.js";
|
|
42
42
|
/* environment/findBinary.ts */
|
|
43
43
|
// Identifiers
|
|
44
|
-
export { findBinary } from
|
|
44
|
+
export { findBinary } from "./environment/findBinary.js";
|
|
45
45
|
/* child_process/respawn.ts */
|
|
46
46
|
// Identifiers
|
|
47
|
-
export { spawnRecreateEventHandlers } from
|
|
48
|
-
export { trySpawnInScope } from
|
|
49
|
-
export { respawnInScope } from
|
|
47
|
+
export { spawnRecreateEventHandlers } from "./child_process/respawn.js";
|
|
48
|
+
export { trySpawnInScope } from "./child_process/respawn.js";
|
|
49
|
+
export { respawnInScope } from "./child_process/respawn.js";
|
|
50
50
|
/* crypto/md5.ts */
|
|
51
51
|
// Identifiers
|
|
52
|
-
export { md5 } from
|
|
52
|
+
export { md5 } from "./crypto/md5.js";
|
|
53
53
|
/* crypto/sha256.ts */
|
|
54
54
|
// Identifiers
|
|
55
|
-
export { sha256 } from
|
|
55
|
+
export { sha256 } from "./crypto/sha256.js";
|
|
56
56
|
/* environment/npmConfig.ts */
|
|
57
57
|
// Identifiers
|
|
58
|
-
export { getNpmConfigValue } from
|
|
58
|
+
export { getNpmConfigValue } from "./environment/npmConfig.js";
|
|
59
59
|
/* events/dumpEventEmitter.ts */
|
|
60
60
|
// Identifiers
|
|
61
|
-
export { dumpEventEmitterEmit } from
|
|
61
|
+
export { dumpEventEmitterEmit } from "./events/dumpEventEmitter.js";
|
|
62
62
|
/* fs/commandExists.ts */
|
|
63
63
|
// Identifiers
|
|
64
|
-
export { commandInPath } from
|
|
65
|
-
export { commandInPathSync } from
|
|
64
|
+
export { commandInPath } from "./fs/commandExists.js";
|
|
65
|
+
export { commandInPathSync } from "./fs/commandExists.js";
|
|
66
66
|
/* fs/emptyDir.ts */
|
|
67
67
|
// Identifiers
|
|
68
|
-
export { emptyDir } from
|
|
68
|
+
export { emptyDir } from "./fs/emptyDir.js";
|
|
69
69
|
/* fs/ensureDir.ts */
|
|
70
70
|
// Identifiers
|
|
71
|
-
export { ensureDirExists } from
|
|
72
|
-
export { ensureParentExists } from
|
|
71
|
+
export { ensureDirExists } from "./fs/ensureDir.js";
|
|
72
|
+
export { ensureParentExists } from "./fs/ensureDir.js";
|
|
73
73
|
/* fs/tempFolder.ts */
|
|
74
74
|
// Identifiers
|
|
75
|
-
export { createTempFolder } from
|
|
75
|
+
export { createTempFolder } from "./fs/tempFolder.js";
|
|
76
76
|
/* fs/weiteChanged.ts */
|
|
77
77
|
// Identifiers
|
|
78
|
-
export { writeFileIfChangeSync } from
|
|
79
|
-
export { writeFileIfChange } from
|
|
78
|
+
export { writeFileIfChangeSync } from "./fs/weiteChanged.js";
|
|
79
|
+
export { writeFileIfChange } from "./fs/weiteChanged.js";
|
|
80
|
+
/* lifecycle/internal-errors.ts */
|
|
81
|
+
// Identifiers
|
|
82
|
+
export { Exit } from "./lifecycle/internal-errors.js";
|
|
83
|
+
export { InterruptError } from "./lifecycle/internal-errors.js";
|
|
84
|
+
export { UnhandledRejection } from "./lifecycle/internal-errors.js";
|
|
85
|
+
export { UncaughtException } from "./lifecycle/internal-errors.js";
|
|
80
86
|
/* lifecycle/register.ts */
|
|
81
87
|
// Identifiers
|
|
82
|
-
export {
|
|
83
|
-
export {
|
|
84
|
-
export {
|
|
88
|
+
export { setAbnormalExitCode } from "./lifecycle/register.js";
|
|
89
|
+
export { shutdown } from "./lifecycle/register.js";
|
|
90
|
+
export { registerNodejsGlobalTypedErrorHandlerWithInheritance } from "./lifecycle/register.js";
|
|
91
|
+
export { registerNodejsGlobalTypedErrorHandler } from "./lifecycle/register.js";
|
|
92
|
+
export { registerNodejsExitHandler } from "./lifecycle/register.js";
|
|
93
|
+
export { die } from "./lifecycle/register.js";
|
|
85
94
|
/* log/terminal.ts */
|
|
86
95
|
// Identifiers
|
|
87
|
-
export { WrappedTerminalConsole } from
|
|
88
|
-
export { findUpUntil } from
|
|
89
|
-
export {
|
|
96
|
+
export { WrappedTerminalConsole } from "./log/terminal.js";
|
|
97
|
+
export { findUpUntil } from "./path-resolve/findUp.js";
|
|
98
|
+
export { findUp } from "./path-resolve/findUp.js";
|
|
99
|
+
export { findUpUntilSync } from "./path-resolve/findUp.js";
|
|
100
|
+
export { findUpSync } from "./path-resolve/findUp.js";
|
|
90
101
|
/* path-resolve/findPackageRoot.ts */
|
|
91
102
|
// Identifiers
|
|
92
|
-
export { findPackageRoot } from
|
|
103
|
+
export { findPackageRoot } from "./path-resolve/findPackageRoot.js";
|
|
93
104
|
/* path-resolve/getAllUp.ts */
|
|
94
105
|
// Identifiers
|
|
95
|
-
export { getAllPathUpToRoot } from
|
|
106
|
+
export { getAllPathUpToRoot } from "./path-resolve/getAllUp.js";
|
|
96
107
|
/* path-resolve/lrelative.ts */
|
|
97
108
|
// Identifiers
|
|
98
|
-
export { lrelative } from
|
|
109
|
+
export { lrelative } from "./path-resolve/lrelative.js";
|
|
99
110
|
/* path-resolve/nodeResolvePathArray.ts */
|
|
100
111
|
// Identifiers
|
|
101
|
-
export { nodeResolvePathArray } from
|
|
102
|
-
export { resolvePath } from
|
|
103
|
-
export { normalizePath } from
|
|
104
|
-
export { osTempDir } from
|
|
105
|
-
export { relativePath } from
|
|
112
|
+
export { nodeResolvePathArray } from "./path-resolve/nodeResolvePathArray.js";
|
|
113
|
+
export { resolvePath } from "./path-resolve/resolvePath.js";
|
|
114
|
+
export { normalizePath } from "./path-resolve/resolvePath.js";
|
|
115
|
+
export { osTempDir } from "./path-resolve/resolvePath.js";
|
|
116
|
+
export { relativePath } from "./path-resolve/resolvePath.js";
|
|
106
117
|
/* stream/blackHoleStream.ts */
|
|
107
118
|
// Identifiers
|
|
108
|
-
export { BlackHoleStream } from
|
|
119
|
+
export { BlackHoleStream } from "./stream/blackHoleStream.js";
|
|
109
120
|
/* stream/streamPromise.ts */
|
|
110
121
|
// Identifiers
|
|
111
|
-
export { streamPromise } from
|
|
112
|
-
export { streamHasEnd } from
|
|
122
|
+
export { streamPromise } from "./stream/streamPromise.js";
|
|
123
|
+
export { streamHasEnd } from "./stream/streamPromise.js";
|
|
113
124
|
/* stream/collectingStream.ts */
|
|
114
125
|
// Identifiers
|
|
115
|
-
export { streamToBuffer } from
|
|
116
|
-
export { RawCollectingStream } from
|
|
117
|
-
export { CollectingStream } from
|
|
126
|
+
export { streamToBuffer } from "./stream/collectingStream.js";
|
|
127
|
+
export { RawCollectingStream } from "./stream/collectingStream.js";
|
|
128
|
+
export { CollectingStream } from "./stream/collectingStream.js";
|
|
118
129
|
/* stream/disposableStream.ts */
|
|
119
130
|
// Identifiers
|
|
120
|
-
export { disposableStream } from
|
|
131
|
+
export { disposableStream } from "./stream/disposableStream.js";
|
|
121
132
|
/* stream/drainStream.ts */
|
|
122
133
|
// Identifiers
|
|
123
|
-
export { drainStream } from
|
|
124
|
-
export { LoggerStream } from
|
|
125
|
-
export { HexDumpLoggerStream } from
|
|
134
|
+
export { drainStream } from "./stream/drainStream.js";
|
|
135
|
+
export { LoggerStream } from "./stream/loggerStream.js";
|
|
136
|
+
export { HexDumpLoggerStream } from "./stream/loggerStream.js";
|
|
126
137
|
//# sourceMappingURL=autoindex.js.map
|
package/lib/autoindex.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autoindex.js","sourceRoot":"","sources":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A8B;AAC7B,cAAc;AACd,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACjE,+BAA+B;AAC9B,cAAc;AACd,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACzD,0CAA0C;AACzC,cAAc;AACd,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAK9E,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC9D,+BAA+B;AAC9B,cAAc;AACd,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC/D,6BAA6B;AAC5B,cAAc;AACd,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC1D,gCAAgC;AAC/B,cAAc;AACd,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACjE,gCAAgC;AAC/B,cAAc;AACd,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACjE,2BAA2B;AAC1B,cAAc;AACd,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAItD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { AppExit } from '@idlebox/common';
|
|
2
|
+
export declare class Exit extends AppExit {
|
|
3
|
+
constructor(code: number);
|
|
4
|
+
}
|
|
5
|
+
export declare class InterruptError extends Error {
|
|
6
|
+
readonly signal: NodeJS.Signals;
|
|
7
|
+
constructor(signal: NodeJS.Signals);
|
|
8
|
+
}
|
|
9
|
+
declare class ProxiedError extends Error {
|
|
10
|
+
cause: any;
|
|
11
|
+
constructor(prefix: string, original: unknown);
|
|
12
|
+
get stack(): string;
|
|
13
|
+
}
|
|
14
|
+
export declare class UnhandledRejection extends ProxiedError {
|
|
15
|
+
readonly promise: Promise<unknown>;
|
|
16
|
+
constructor(reason: any, promise: Promise<unknown>);
|
|
17
|
+
}
|
|
18
|
+
export declare class UncaughtException extends ProxiedError {
|
|
19
|
+
readonly error: unknown;
|
|
20
|
+
constructor(error: unknown);
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=internal-errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal-errors.d.ts","sourceRoot":"","sources":["../../src/lifecycle/internal-errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE1C,qBAAa,IAAK,SAAQ,OAAO;gBACpB,IAAI,EAAE,MAAM;CAGxB;AAED,qBAAa,cAAe,SAAQ,KAAK;aACZ,MAAM,EAAE,MAAM,CAAC,OAAO;gBAAtB,MAAM,EAAE,MAAM,CAAC,OAAO;CAGlD;AAED,cAAM,YAAa,SAAQ,KAAK;IACvB,KAAK,EAAE,GAAG,CAAC;gBAEP,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO;IAK7C,IAAa,KAAK,IAAI,MAAM,CAS3B;CACD;AAED,qBAAa,kBAAmB,SAAQ,YAAY;aAGlC,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC;gBADzC,MAAM,EAAE,GAAG,EACK,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC;CAI1C;AAED,qBAAa,iBAAkB,SAAQ,YAAY;aACtB,KAAK,EAAE,OAAO;gBAAd,KAAK,EAAE,OAAO;CAG1C"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { AppExit } from '@idlebox/common';
|
|
2
|
+
export class Exit extends AppExit {
|
|
3
|
+
constructor(code) {
|
|
4
|
+
super(`process exit with code ${code}`, code);
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
export class InterruptError extends Error {
|
|
8
|
+
signal;
|
|
9
|
+
constructor(signal) {
|
|
10
|
+
super(`interrupt by signal ${signal}`);
|
|
11
|
+
this.signal = signal;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
class ProxiedError extends Error {
|
|
15
|
+
constructor(prefix, original) {
|
|
16
|
+
super(`${prefix}: ${get_message(original)}`, { cause: original });
|
|
17
|
+
delete this.stack;
|
|
18
|
+
}
|
|
19
|
+
get stack() {
|
|
20
|
+
const cause = this.cause;
|
|
21
|
+
if (cause && 'stack' in cause) {
|
|
22
|
+
const stack = cause.stack;
|
|
23
|
+
if (typeof stack === 'string') {
|
|
24
|
+
return this.message + '\n' + removeFirstLine(cause.stack);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return `${this.message}\n no stack available`;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export class UnhandledRejection extends ProxiedError {
|
|
31
|
+
promise;
|
|
32
|
+
constructor(reason, promise) {
|
|
33
|
+
super('unhandled promise rejection', reason);
|
|
34
|
+
this.promise = promise;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
export class UncaughtException extends ProxiedError {
|
|
38
|
+
error;
|
|
39
|
+
constructor(error) {
|
|
40
|
+
super('uncaught exception', error);
|
|
41
|
+
this.error = error;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
function get_message(reason) {
|
|
45
|
+
if (reason instanceof Error) {
|
|
46
|
+
return reason.message;
|
|
47
|
+
}
|
|
48
|
+
if (reason && typeof reason === 'object' && 'message' in reason) {
|
|
49
|
+
return reason.message;
|
|
50
|
+
}
|
|
51
|
+
return String(reason);
|
|
52
|
+
}
|
|
53
|
+
function removeFirstLine(text) {
|
|
54
|
+
const index = text.indexOf('\n');
|
|
55
|
+
if (index !== -1) {
|
|
56
|
+
return text.slice(index + 1);
|
|
57
|
+
}
|
|
58
|
+
return text;
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=internal-errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal-errors.js","sourceRoot":"","sources":["../../src/lifecycle/internal-errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE1C,MAAM,OAAO,IAAK,SAAQ,OAAO;IAChC,YAAY,IAAY;QACvB,KAAK,CAAC,0BAA0B,IAAI,EAAE,EAAE,IAAI,CAAC,CAAC;IAC/C,CAAC;CACD;AAED,MAAM,OAAO,cAAe,SAAQ,KAAK;IACZ;IAA5B,YAA4B,MAAsB;QACjD,KAAK,CAAC,uBAAuB,MAAM,EAAE,CAAC,CAAC;QADZ,WAAM,GAAN,MAAM,CAAgB;IAElD,CAAC;CACD;AAED,MAAM,YAAa,SAAQ,KAAK;IAG/B,YAAY,MAAc,EAAE,QAAiB;QAC5C,KAAK,CAAC,GAAG,MAAM,KAAK,WAAW,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC;QAClE,OAAQ,IAAY,CAAC,KAAK,CAAC;IAC5B,CAAC;IAED,IAAa,KAAK;QACjB,MAAM,KAAK,GAAQ,IAAI,CAAC,KAAK,CAAC;QAC9B,IAAI,KAAK,IAAI,OAAO,IAAI,KAAK,EAAE,CAAC;YAC/B,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;YAC1B,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;gBAC/B,OAAO,IAAI,CAAC,OAAO,GAAG,IAAI,GAAG,eAAe,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YAC3D,CAAC;QACF,CAAC;QACD,OAAO,GAAG,IAAI,CAAC,OAAO,wBAAwB,CAAC;IAChD,CAAC;CACD;AAED,MAAM,OAAO,kBAAmB,SAAQ,YAAY;IAGlC;IAFjB,YACC,MAAW,EACK,OAAyB;QAEzC,KAAK,CAAC,6BAA6B,EAAE,MAAM,CAAC,CAAC;QAF7B,YAAO,GAAP,OAAO,CAAkB;IAG1C,CAAC;CACD;AAED,MAAM,OAAO,iBAAkB,SAAQ,YAAY;IACtB;IAA5B,YAA4B,KAAc;QACzC,KAAK,CAAC,oBAAoB,EAAE,KAAK,CAAC,CAAC;QADR,UAAK,GAAL,KAAK,CAAS;IAE1C,CAAC;CACD;AAED,SAAS,WAAW,CAAC,MAAW;IAC/B,IAAI,MAAM,YAAY,KAAK,EAAE,CAAC;QAC7B,OAAO,MAAM,CAAC,OAAO,CAAC;IACvB,CAAC;IACD,IAAI,MAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,SAAS,IAAI,MAAM,EAAE,CAAC;QACjE,OAAO,MAAM,CAAC,OAAO,CAAC;IACvB,CAAC;IACD,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;AACvB,CAAC;AAED,SAAS,eAAe,CAAC,IAAY;IACpC,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACjC,IAAI,KAAK,KAAK,CAAC,CAAC,EAAE,CAAC;QAClB,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;IAC9B,CAAC;IACD,OAAO,IAAI,CAAC;AACb,CAAC"}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
+
/** biome-ignore-all lint/suspicious/noDebugger: debug file */
|
|
2
|
+
import { type MyCallback } from '@idlebox/common';
|
|
3
|
+
export declare function setAbnormalExitCode(code: number): void;
|
|
1
4
|
export declare function shutdown(exitCode: number): never;
|
|
5
|
+
type ErrorConstructor = new (...args: any[]) => Error;
|
|
6
|
+
export declare function registerNodejsGlobalTypedErrorHandlerWithInheritance(ErrorCls: ErrorConstructor, fn: MyCallback<[Error]>): void;
|
|
7
|
+
export declare function registerNodejsGlobalTypedErrorHandler(ErrorCls: ErrorConstructor, fn: MyCallback<[Error]>): void;
|
|
2
8
|
/**
|
|
3
9
|
* 注册nodejs退出处理器
|
|
4
10
|
*/
|
|
@@ -7,4 +13,5 @@ export declare function registerNodejsExitHandler(): void;
|
|
|
7
13
|
* @deprecated 仅用于测试
|
|
8
14
|
*/
|
|
9
15
|
export declare function die(message: string): never;
|
|
16
|
+
export {};
|
|
10
17
|
//# sourceMappingURL=register.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../src/lifecycle/register.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../src/lifecycle/register.ts"],"names":[],"mappings":"AAAA,8DAA8D;AAE9D,OAAO,EAAsE,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAYtH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,QAK/C;AAcD,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,KAAK,CAehD;AAKD,KAAK,gBAAgB,GAAG,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,KAAK,CAAC;AAEtD,wBAAgB,oDAAoD,CAAC,QAAQ,EAAE,gBAAgB,EAAE,EAAE,EAAE,UAAU,CAAC,CAAC,KAAK,CAAC,CAAC,QAMvH;AACD,wBAAgB,qCAAqC,CAAC,QAAQ,EAAE,gBAAgB,EAAE,EAAE,EAAE,UAAU,CAAC,CAAC,KAAK,CAAC,CAAC,QAMxG;AAwDD;;GAEG;AACH,wBAAgB,yBAAyB,SAExC;AA+CD;;GAEG;AACH,wBAAgB,GAAG,CAAC,OAAO,EAAE,MAAM,GAAG,KAAK,CAI1C"}
|