@scelar/nodepod 1.0.0 → 1.0.2

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.
Files changed (132) hide show
  1. package/dist/__sw__.js +642 -0
  2. package/dist/__tests__/smoke.test.d.ts +1 -0
  3. package/dist/{child_process-Cj8vOcuc.cjs → child_process-B38qoN6R.cjs} +5 -5
  4. package/dist/{child_process-Cj8vOcuc.cjs.map → child_process-B38qoN6R.cjs.map} +1 -1
  5. package/dist/{child_process-BJOMsZje.js → child_process-Dopvyd-E.js} +4 -4
  6. package/dist/{child_process-BJOMsZje.js.map → child_process-Dopvyd-E.js.map} +1 -1
  7. package/dist/constants/cdn-urls.d.ts +12 -0
  8. package/dist/constants/config.d.ts +121 -0
  9. package/dist/cross-origin.d.ts +5 -0
  10. package/dist/engine-factory.d.ts +24 -0
  11. package/dist/engine-types.d.ts +40 -0
  12. package/dist/helpers/byte-encoding.d.ts +4 -0
  13. package/dist/helpers/digest.d.ts +1 -0
  14. package/dist/helpers/event-loop.d.ts +12 -0
  15. package/dist/helpers/wasm-cache.d.ts +6 -0
  16. package/dist/iframe-sandbox.d.ts +25 -0
  17. package/dist/{index-Cb1Cgdnd.js → index--Qr8LVpQ.js} +4 -4
  18. package/dist/index--Qr8LVpQ.js.map +1 -0
  19. package/dist/{index-DsMGS-xc.cjs → index-cnitc68U.cjs} +7 -7
  20. package/dist/index-cnitc68U.cjs.map +1 -0
  21. package/dist/index.cjs +1 -1
  22. package/dist/index.d.ts +86 -0
  23. package/dist/index.mjs +1 -1
  24. package/dist/isolation-helpers.d.ts +13 -0
  25. package/dist/memory-volume.d.ts +147 -0
  26. package/dist/module-transformer.d.ts +6 -0
  27. package/dist/packages/archive-extractor.d.ts +28 -0
  28. package/dist/packages/browser-bundler.d.ts +14 -0
  29. package/dist/packages/installer.d.ts +41 -0
  30. package/dist/packages/registry-client.d.ts +46 -0
  31. package/dist/packages/version-resolver.d.ts +37 -0
  32. package/dist/polyfills/assert.d.ts +54 -0
  33. package/dist/polyfills/async_hooks.d.ts +46 -0
  34. package/dist/polyfills/buffer.d.ts +111 -0
  35. package/dist/polyfills/child_process.d.ts +141 -0
  36. package/dist/polyfills/chokidar.d.ts +63 -0
  37. package/dist/polyfills/cluster.d.ts +55 -0
  38. package/dist/polyfills/console.d.ts +72 -0
  39. package/dist/polyfills/constants.d.ts +207 -0
  40. package/dist/polyfills/crypto.d.ts +189 -0
  41. package/dist/polyfills/dgram.d.ts +37 -0
  42. package/dist/polyfills/diagnostics_channel.d.ts +27 -0
  43. package/dist/polyfills/dns.d.ts +76 -0
  44. package/dist/polyfills/domain.d.ts +27 -0
  45. package/dist/polyfills/esbuild.d.ts +106 -0
  46. package/dist/polyfills/events.d.ts +39 -0
  47. package/dist/polyfills/fs.d.ts +274 -0
  48. package/dist/polyfills/fsevents.d.ts +62 -0
  49. package/dist/polyfills/http.d.ts +215 -0
  50. package/dist/polyfills/http2.d.ts +119 -0
  51. package/dist/polyfills/https.d.ts +24 -0
  52. package/dist/polyfills/inspector.d.ts +29 -0
  53. package/dist/polyfills/lightningcss.d.ts +70 -0
  54. package/dist/polyfills/module.d.ts +35 -0
  55. package/dist/polyfills/net.d.ts +91 -0
  56. package/dist/polyfills/os.d.ts +240 -0
  57. package/dist/polyfills/path.d.ts +95 -0
  58. package/dist/polyfills/perf_hooks.d.ts +48 -0
  59. package/dist/polyfills/process.d.ts +190 -0
  60. package/dist/polyfills/punycode.d.ts +21 -0
  61. package/dist/polyfills/querystring.d.ts +18 -0
  62. package/dist/polyfills/quic.d.ts +42 -0
  63. package/dist/polyfills/readdirp.d.ts +48 -0
  64. package/dist/polyfills/readline.d.ts +87 -0
  65. package/dist/polyfills/repl.d.ts +45 -0
  66. package/dist/polyfills/rollup.d.ts +37 -0
  67. package/dist/polyfills/sea.d.ts +11 -0
  68. package/dist/polyfills/sqlite.d.ts +30 -0
  69. package/dist/polyfills/stream.d.ts +160 -0
  70. package/dist/polyfills/string_decoder.d.ts +16 -0
  71. package/dist/polyfills/tailwindcss-oxide.d.ts +42 -0
  72. package/dist/polyfills/test.d.ts +60 -0
  73. package/dist/polyfills/timers.d.ts +23 -0
  74. package/dist/polyfills/tls.d.ts +61 -0
  75. package/dist/polyfills/trace_events.d.ts +22 -0
  76. package/dist/polyfills/tty.d.ts +38 -0
  77. package/dist/polyfills/url.d.ts +55 -0
  78. package/dist/polyfills/util.d.ts +135 -0
  79. package/dist/polyfills/v8.d.ts +97 -0
  80. package/dist/polyfills/vm.d.ts +66 -0
  81. package/dist/polyfills/volume-registry.d.ts +3 -0
  82. package/dist/polyfills/wasi.d.ts +16 -0
  83. package/dist/polyfills/worker_threads.d.ts +111 -0
  84. package/dist/polyfills/ws.d.ts +92 -0
  85. package/dist/polyfills/zlib.d.ts +278 -0
  86. package/dist/request-proxy.d.ts +63 -0
  87. package/dist/script-engine.d.ts +79 -0
  88. package/dist/sdk/nodepod-fs.d.ts +27 -0
  89. package/dist/sdk/nodepod-process.d.ts +28 -0
  90. package/dist/sdk/nodepod-terminal.d.ts +48 -0
  91. package/dist/sdk/nodepod.d.ts +39 -0
  92. package/dist/sdk/types.d.ts +53 -0
  93. package/dist/shell/commands/bun.d.ts +4 -0
  94. package/dist/shell/commands/directory.d.ts +2 -0
  95. package/dist/shell/commands/file-ops.d.ts +2 -0
  96. package/dist/shell/commands/git.d.ts +2 -0
  97. package/dist/shell/commands/node.d.ts +4 -0
  98. package/dist/shell/commands/npm.d.ts +3 -0
  99. package/dist/shell/commands/pm-types.d.ts +25 -0
  100. package/dist/shell/commands/pnpm.d.ts +3 -0
  101. package/dist/shell/commands/search.d.ts +2 -0
  102. package/dist/shell/commands/shell-env.d.ts +3 -0
  103. package/dist/shell/commands/text-processing.d.ts +2 -0
  104. package/dist/shell/commands/yarn.d.ts +3 -0
  105. package/dist/shell/shell-builtins.d.ts +2 -0
  106. package/dist/shell/shell-helpers.d.ts +28 -0
  107. package/dist/shell/shell-interpreter.d.ts +48 -0
  108. package/dist/shell/shell-parser.d.ts +6 -0
  109. package/dist/shell/shell-types.d.ts +48 -0
  110. package/dist/syntax-transforms.d.ts +3 -0
  111. package/dist/threading/engine-worker.d.ts +1 -0
  112. package/dist/threading/inline-worker.d.ts +2 -0
  113. package/dist/threading/offload-types.d.ts +87 -0
  114. package/dist/threading/offload-worker.d.ts +1 -0
  115. package/dist/threading/offload.d.ts +16 -0
  116. package/dist/threading/process-context.d.ts +40 -0
  117. package/dist/threading/process-handle.d.ts +42 -0
  118. package/dist/threading/process-manager.d.ts +52 -0
  119. package/dist/threading/process-worker-entry.d.ts +24 -0
  120. package/dist/threading/shared-vfs.d.ts +36 -0
  121. package/dist/threading/sync-channel.d.ts +21 -0
  122. package/dist/threading/task-queue.d.ts +15 -0
  123. package/dist/threading/vfs-bridge.d.ts +25 -0
  124. package/dist/threading/worker-pool.d.ts +38 -0
  125. package/dist/threading/worker-protocol.d.ts +264 -0
  126. package/dist/threading/worker-vfs.d.ts +34 -0
  127. package/dist/types/fs-streams.d.ts +122 -0
  128. package/dist/types/manifest.d.ts +17 -0
  129. package/dist/worker-sandbox.d.ts +19 -0
  130. package/package.json +1 -1
  131. package/dist/index-Cb1Cgdnd.js.map +0 -1
  132. package/dist/index-DsMGS-xc.cjs.map +0 -1
@@ -0,0 +1,29 @@
1
+ import { EventEmitter } from "./events";
2
+ export interface Session extends EventEmitter {
3
+ connect(): void;
4
+ connectToMainThread(): void;
5
+ disconnect(): void;
6
+ post(_method: string, _params?: object, _cb?: (err: Error | null, result?: object) => void): void;
7
+ }
8
+ export declare const Session: {
9
+ new (): Session;
10
+ prototype: any;
11
+ };
12
+ export declare function open(_port?: number, _host?: string, _wait?: boolean): void;
13
+ export declare function close(): void;
14
+ export declare function url(): string | undefined;
15
+ export declare function waitForDebugger(): void;
16
+ declare const nativeConsole: Console;
17
+ export { nativeConsole as console };
18
+ declare const _default: {
19
+ Session: {
20
+ new (): Session;
21
+ prototype: any;
22
+ };
23
+ open: typeof open;
24
+ close: typeof close;
25
+ url: typeof url;
26
+ waitForDebugger: typeof waitForDebugger;
27
+ console: Console;
28
+ };
29
+ export default _default;
@@ -0,0 +1,70 @@
1
+ export declare const Features: {
2
+ readonly Nesting: 1;
3
+ readonly NotSelectorList: 2;
4
+ readonly DirSelector: 4;
5
+ readonly LangSelectorList: 8;
6
+ readonly IsSelector: 16;
7
+ readonly TextDecorationThicknessPercent: 32;
8
+ readonly MediaIntervalSyntax: 64;
9
+ readonly MediaRangeSyntax: 128;
10
+ readonly CustomMediaQueries: 256;
11
+ readonly ClampFunction: 512;
12
+ readonly ColorFunction: 1024;
13
+ readonly OklabColors: 2048;
14
+ readonly LabColors: 4096;
15
+ readonly P3Colors: 8192;
16
+ readonly HexAlphaColors: 16384;
17
+ readonly SpaceSeparatedColorNotation: 32768;
18
+ readonly FontFamilySystemUi: 65536;
19
+ readonly DoublePositionGradients: 131072;
20
+ readonly VendorPrefixes: 262144;
21
+ readonly LogicalProperties: 524288;
22
+ readonly LightDark: 1048576;
23
+ readonly Selectors: 31;
24
+ readonly MediaQueries: 448;
25
+ readonly Colors: 1113088;
26
+ };
27
+ declare function ensureInit(): Promise<void>;
28
+ export declare function transform(opts: any): any;
29
+ export declare function transformStyleAttribute(opts: any): any;
30
+ export declare function bundle(opts: any): any;
31
+ export declare function bundleAsync(opts: any): Promise<any>;
32
+ export declare function composeVisitors(visitors: any[]): any;
33
+ export declare function browserslistToTargets(browserslist: any): any;
34
+ export { ensureInit as init };
35
+ declare const _default: {
36
+ transform: typeof transform;
37
+ transformStyleAttribute: typeof transformStyleAttribute;
38
+ bundle: typeof bundle;
39
+ bundleAsync: typeof bundleAsync;
40
+ composeVisitors: typeof composeVisitors;
41
+ Features: {
42
+ readonly Nesting: 1;
43
+ readonly NotSelectorList: 2;
44
+ readonly DirSelector: 4;
45
+ readonly LangSelectorList: 8;
46
+ readonly IsSelector: 16;
47
+ readonly TextDecorationThicknessPercent: 32;
48
+ readonly MediaIntervalSyntax: 64;
49
+ readonly MediaRangeSyntax: 128;
50
+ readonly CustomMediaQueries: 256;
51
+ readonly ClampFunction: 512;
52
+ readonly ColorFunction: 1024;
53
+ readonly OklabColors: 2048;
54
+ readonly LabColors: 4096;
55
+ readonly P3Colors: 8192;
56
+ readonly HexAlphaColors: 16384;
57
+ readonly SpaceSeparatedColorNotation: 32768;
58
+ readonly FontFamilySystemUi: 65536;
59
+ readonly DoublePositionGradients: 131072;
60
+ readonly VendorPrefixes: 262144;
61
+ readonly LogicalProperties: 524288;
62
+ readonly LightDark: 1048576;
63
+ readonly Selectors: 31;
64
+ readonly MediaQueries: 448;
65
+ readonly Colors: 1113088;
66
+ };
67
+ browserslistToTargets: typeof browserslistToTargets;
68
+ init: typeof ensureInit;
69
+ };
70
+ export default _default;
@@ -0,0 +1,35 @@
1
+ export declare const builtinModules: string[];
2
+ export declare function isBuiltin(id: string): boolean;
3
+ export declare function createRequire(origin: string): (specifier: string) => unknown;
4
+ export declare const _cache: Record<string, unknown>;
5
+ export declare const _extensions: Record<string, unknown>;
6
+ export declare const _pathCache: Record<string, string>;
7
+ export declare function _resolveFilename(request: string, _parent?: unknown, _isMain?: boolean, _options?: unknown): string;
8
+ export declare function _nodeModulePaths(from: string): string[];
9
+ export declare function _load(request: string, _parent?: unknown, _isMain?: boolean): unknown;
10
+ export declare function _findPath(request: string, _paths?: string[], _isMain?: boolean): string | false;
11
+ export declare function wrap(script: string): string;
12
+ export declare const wrapper: string[];
13
+ export declare function syncBuiltinESMExports(): void;
14
+ export declare function Module(this: any, id?: string, parent?: any): void;
15
+ export declare namespace Module {
16
+ var createRequire: typeof import("./module").createRequire;
17
+ var builtinModules: string[];
18
+ var isBuiltin: typeof import("./module").isBuiltin;
19
+ var _cache: Record<string, unknown>;
20
+ var _extensions: Record<string, unknown>;
21
+ var _pathCache: Record<string, string>;
22
+ var _resolveFilename: typeof import("./module")._resolveFilename;
23
+ var _nodeModulePaths: typeof import("./module")._nodeModulePaths;
24
+ var _load: typeof import("./module")._load;
25
+ var _findPath: typeof import("./module")._findPath;
26
+ var syncBuiltinESMExports: typeof import("./module").syncBuiltinESMExports;
27
+ var wrap: typeof import("./module").wrap;
28
+ var wrapper: string[];
29
+ var Module: typeof import("./module").Module;
30
+ var runMain: () => void;
31
+ var _preloadModules: (_requests?: string[]) => void;
32
+ var _initPaths: () => void;
33
+ var globalPaths: string[];
34
+ }
35
+ export default Module;
@@ -0,0 +1,91 @@
1
+ import { EventEmitter } from "./events";
2
+ import { Duplex } from "./stream";
3
+ export interface NetAddress {
4
+ address: string;
5
+ family: string;
6
+ port: number;
7
+ }
8
+ export interface SocketConfig {
9
+ allowHalfOpen?: boolean;
10
+ readable?: boolean;
11
+ writable?: boolean;
12
+ }
13
+ export interface ServerConfig {
14
+ allowHalfOpen?: boolean;
15
+ pauseOnConnect?: boolean;
16
+ }
17
+ export interface BindOptions {
18
+ port?: number;
19
+ host?: string;
20
+ backlog?: number;
21
+ }
22
+ export interface TcpSocket extends Duplex {
23
+ localAddress: string;
24
+ localPort: number;
25
+ remoteAddress?: string;
26
+ remotePort?: number;
27
+ remoteFamily?: string;
28
+ connecting: boolean;
29
+ pending: boolean;
30
+ destroyed: boolean;
31
+ encrypted: boolean;
32
+ readyState: string;
33
+ bytesRead: number;
34
+ bytesWritten: number;
35
+ connect(portOrOpts: any, hostOrCb?: any, cb?: any): this;
36
+ address(): NetAddress | null;
37
+ setEncoding(enc: BufferEncoding): this;
38
+ setTimeout(ms: number, handler?: () => void): this;
39
+ setNoDelay(v?: boolean): this;
40
+ setKeepAlive(on?: boolean, delay?: number): this;
41
+ ref(): this;
42
+ unref(): this;
43
+ destroy(err?: Error): this;
44
+ _feedData(chunk: Buffer | string): void;
45
+ _feedEnd(): void;
46
+ }
47
+ export interface TcpSocketConstructor {
48
+ new (cfg?: SocketConfig): TcpSocket;
49
+ (this: any, cfg?: SocketConfig): void;
50
+ prototype: any;
51
+ }
52
+ export declare const TcpSocket: TcpSocketConstructor;
53
+ export interface TcpServer extends EventEmitter {
54
+ listening: boolean;
55
+ maxConnections?: number;
56
+ listen(portOrOpts?: any, hostOrCb?: any, backlogOrCb?: any, cb?: any): this;
57
+ address(): (NetAddress & {
58
+ host?: string;
59
+ }) | null;
60
+ close(cb?: (err?: Error) => void): this;
61
+ getConnections(cb?: (err: Error | null, n: number) => void): void;
62
+ ref(): this;
63
+ unref(): this;
64
+ _acceptConnection(sock: TcpSocket): void;
65
+ }
66
+ export interface TcpServerConstructor {
67
+ new (cfgOrHandler?: ServerConfig | ((sock: TcpSocket) => void), handler?: (sock: TcpSocket) => void): TcpServer;
68
+ (this: any, cfgOrHandler?: ServerConfig | ((sock: TcpSocket) => void), handler?: (sock: TcpSocket) => void): void;
69
+ prototype: any;
70
+ }
71
+ export declare const TcpServer: TcpServerConstructor;
72
+ export declare function createServer(cfgOrHandler?: ServerConfig | ((sock: TcpSocket) => void), handler?: (sock: TcpSocket) => void): TcpServer;
73
+ export declare function createConnection(portOrOpts: number | {
74
+ port: number;
75
+ host?: string;
76
+ }, hostOrCb?: string | (() => void), cb?: () => void): TcpSocket;
77
+ export declare const connect: typeof createConnection;
78
+ export declare function isIP(addr: string): number;
79
+ export declare function isIPv4(addr: string): boolean;
80
+ export declare function isIPv6(addr: string): boolean;
81
+ declare const _default: {
82
+ Socket: TcpSocketConstructor;
83
+ Server: TcpServerConstructor;
84
+ createServer: typeof createServer;
85
+ createConnection: typeof createConnection;
86
+ connect: typeof createConnection;
87
+ isIP: typeof isIP;
88
+ isIPv4: typeof isIPv4;
89
+ isIPv6: typeof isIPv6;
90
+ };
91
+ export default _default;
@@ -0,0 +1,240 @@
1
+ export declare function hostname(): string;
2
+ export declare function platform(): string;
3
+ export declare function arch(): string;
4
+ export declare function type(): string;
5
+ export declare function release(): string;
6
+ export declare function version(): string;
7
+ export declare function machine(): string;
8
+ export declare function tmpdir(): string;
9
+ export declare function homedir(): string;
10
+ interface CpuEntry {
11
+ model: string;
12
+ speed: number;
13
+ times: {
14
+ user: number;
15
+ nice: number;
16
+ sys: number;
17
+ idle: number;
18
+ irq: number;
19
+ };
20
+ }
21
+ export declare function cpus(): CpuEntry[];
22
+ export declare function totalmem(): number;
23
+ export declare function freemem(): number;
24
+ export declare function uptime(): number;
25
+ export declare function loadavg(): [number, number, number];
26
+ interface NetIface {
27
+ address: string;
28
+ netmask: string;
29
+ family: string;
30
+ mac: string;
31
+ internal: boolean;
32
+ cidr: string;
33
+ }
34
+ export declare function networkInterfaces(): Record<string, NetIface[]>;
35
+ export declare function userInfo(): {
36
+ username: string;
37
+ uid: number;
38
+ gid: number;
39
+ shell: string;
40
+ homedir: string;
41
+ };
42
+ export declare function endianness(): 'BE' | 'LE';
43
+ export declare function getPriority(_pid?: number): number;
44
+ export declare function setPriority(_pidOrPriority: number, _priority?: number): void;
45
+ export declare const EOL = "\n";
46
+ export declare const devNull = "/dev/null";
47
+ export declare const constants: {
48
+ signals: {
49
+ SIGHUP: number;
50
+ SIGINT: number;
51
+ SIGQUIT: number;
52
+ SIGILL: number;
53
+ SIGTRAP: number;
54
+ SIGABRT: number;
55
+ SIGBUS: number;
56
+ SIGFPE: number;
57
+ SIGKILL: number;
58
+ SIGUSR1: number;
59
+ SIGSEGV: number;
60
+ SIGUSR2: number;
61
+ SIGPIPE: number;
62
+ SIGALRM: number;
63
+ SIGTERM: number;
64
+ SIGCHLD: number;
65
+ SIGCONT: number;
66
+ SIGSTOP: number;
67
+ SIGTSTP: number;
68
+ SIGTTIN: number;
69
+ SIGTTOU: number;
70
+ SIGURG: number;
71
+ SIGXCPU: number;
72
+ SIGXFSZ: number;
73
+ SIGVTALRM: number;
74
+ SIGPROF: number;
75
+ SIGWINCH: number;
76
+ SIGIO: number;
77
+ SIGPWR: number;
78
+ SIGSYS: number;
79
+ };
80
+ errno: {
81
+ EPERM: number;
82
+ ENOENT: number;
83
+ ESRCH: number;
84
+ EINTR: number;
85
+ EIO: number;
86
+ ENXIO: number;
87
+ E2BIG: number;
88
+ ENOEXEC: number;
89
+ EBADF: number;
90
+ ECHILD: number;
91
+ EAGAIN: number;
92
+ ENOMEM: number;
93
+ EACCES: number;
94
+ EFAULT: number;
95
+ EBUSY: number;
96
+ EEXIST: number;
97
+ EXDEV: number;
98
+ ENODEV: number;
99
+ ENOTDIR: number;
100
+ EISDIR: number;
101
+ EINVAL: number;
102
+ ENFILE: number;
103
+ EMFILE: number;
104
+ ENOTTY: number;
105
+ EFBIG: number;
106
+ ENOSPC: number;
107
+ ESPIPE: number;
108
+ EROFS: number;
109
+ EMLINK: number;
110
+ EPIPE: number;
111
+ EDOM: number;
112
+ ERANGE: number;
113
+ ENOTEMPTY: number;
114
+ ENOSYS: number;
115
+ ELOOP: number;
116
+ ENAMETOOLONG: number;
117
+ ECONNRESET: number;
118
+ ECONNREFUSED: number;
119
+ EADDRINUSE: number;
120
+ EADDRNOTAVAIL: number;
121
+ ETIMEDOUT: number;
122
+ };
123
+ priority: {
124
+ PRIORITY_LOW: number;
125
+ PRIORITY_BELOW_NORMAL: number;
126
+ PRIORITY_NORMAL: number;
127
+ PRIORITY_ABOVE_NORMAL: number;
128
+ PRIORITY_HIGH: number;
129
+ PRIORITY_HIGHEST: number;
130
+ };
131
+ };
132
+ declare const _default: {
133
+ hostname: typeof hostname;
134
+ platform: typeof platform;
135
+ arch: typeof arch;
136
+ type: typeof type;
137
+ release: typeof release;
138
+ version: typeof version;
139
+ machine: typeof machine;
140
+ tmpdir: typeof tmpdir;
141
+ homedir: typeof homedir;
142
+ cpus: typeof cpus;
143
+ totalmem: typeof totalmem;
144
+ freemem: typeof freemem;
145
+ uptime: typeof uptime;
146
+ loadavg: typeof loadavg;
147
+ networkInterfaces: typeof networkInterfaces;
148
+ userInfo: typeof userInfo;
149
+ endianness: typeof endianness;
150
+ getPriority: typeof getPriority;
151
+ setPriority: typeof setPriority;
152
+ EOL: string;
153
+ devNull: string;
154
+ constants: {
155
+ signals: {
156
+ SIGHUP: number;
157
+ SIGINT: number;
158
+ SIGQUIT: number;
159
+ SIGILL: number;
160
+ SIGTRAP: number;
161
+ SIGABRT: number;
162
+ SIGBUS: number;
163
+ SIGFPE: number;
164
+ SIGKILL: number;
165
+ SIGUSR1: number;
166
+ SIGSEGV: number;
167
+ SIGUSR2: number;
168
+ SIGPIPE: number;
169
+ SIGALRM: number;
170
+ SIGTERM: number;
171
+ SIGCHLD: number;
172
+ SIGCONT: number;
173
+ SIGSTOP: number;
174
+ SIGTSTP: number;
175
+ SIGTTIN: number;
176
+ SIGTTOU: number;
177
+ SIGURG: number;
178
+ SIGXCPU: number;
179
+ SIGXFSZ: number;
180
+ SIGVTALRM: number;
181
+ SIGPROF: number;
182
+ SIGWINCH: number;
183
+ SIGIO: number;
184
+ SIGPWR: number;
185
+ SIGSYS: number;
186
+ };
187
+ errno: {
188
+ EPERM: number;
189
+ ENOENT: number;
190
+ ESRCH: number;
191
+ EINTR: number;
192
+ EIO: number;
193
+ ENXIO: number;
194
+ E2BIG: number;
195
+ ENOEXEC: number;
196
+ EBADF: number;
197
+ ECHILD: number;
198
+ EAGAIN: number;
199
+ ENOMEM: number;
200
+ EACCES: number;
201
+ EFAULT: number;
202
+ EBUSY: number;
203
+ EEXIST: number;
204
+ EXDEV: number;
205
+ ENODEV: number;
206
+ ENOTDIR: number;
207
+ EISDIR: number;
208
+ EINVAL: number;
209
+ ENFILE: number;
210
+ EMFILE: number;
211
+ ENOTTY: number;
212
+ EFBIG: number;
213
+ ENOSPC: number;
214
+ ESPIPE: number;
215
+ EROFS: number;
216
+ EMLINK: number;
217
+ EPIPE: number;
218
+ EDOM: number;
219
+ ERANGE: number;
220
+ ENOTEMPTY: number;
221
+ ENOSYS: number;
222
+ ELOOP: number;
223
+ ENAMETOOLONG: number;
224
+ ECONNRESET: number;
225
+ ECONNREFUSED: number;
226
+ EADDRINUSE: number;
227
+ EADDRNOTAVAIL: number;
228
+ ETIMEDOUT: number;
229
+ };
230
+ priority: {
231
+ PRIORITY_LOW: number;
232
+ PRIORITY_BELOW_NORMAL: number;
233
+ PRIORITY_NORMAL: number;
234
+ PRIORITY_ABOVE_NORMAL: number;
235
+ PRIORITY_HIGH: number;
236
+ PRIORITY_HIGHEST: number;
237
+ };
238
+ };
239
+ };
240
+ export default _default;
@@ -0,0 +1,95 @@
1
+ export declare const sep = "/";
2
+ export declare const delimiter = ":";
3
+ export declare function normalize(inputPath: string): string;
4
+ export declare function join(...fragments: string[]): string;
5
+ export declare function resolve(...segments: string[]): string;
6
+ export declare function isAbsolute(targetPath: string): boolean;
7
+ export declare function dirname(targetPath: string): string;
8
+ export declare function basename(targetPath: string, suffix?: string): string;
9
+ export declare function extname(targetPath: string): string;
10
+ export declare function relative(fromPath: string, toPath: string): string;
11
+ export declare function parse(targetPath: string): {
12
+ root: string;
13
+ dir: string;
14
+ base: string;
15
+ ext: string;
16
+ name: string;
17
+ };
18
+ export declare function format(components: {
19
+ root?: string;
20
+ dir?: string;
21
+ base?: string;
22
+ ext?: string;
23
+ name?: string;
24
+ }): string;
25
+ export declare const posix: {
26
+ sep: string;
27
+ delimiter: string;
28
+ normalize: typeof normalize;
29
+ join: typeof join;
30
+ resolve: typeof resolve;
31
+ isAbsolute: typeof isAbsolute;
32
+ dirname: typeof dirname;
33
+ basename: typeof basename;
34
+ extname: typeof extname;
35
+ relative: typeof relative;
36
+ parse: typeof parse;
37
+ format: typeof format;
38
+ };
39
+ export declare const win32: {
40
+ sep: string;
41
+ delimiter: string;
42
+ normalize: typeof normalize;
43
+ join: typeof join;
44
+ resolve: typeof resolve;
45
+ isAbsolute: typeof isAbsolute;
46
+ dirname: typeof dirname;
47
+ basename: typeof basename;
48
+ extname: typeof extname;
49
+ relative: typeof relative;
50
+ parse: typeof parse;
51
+ format: typeof format;
52
+ };
53
+ declare const _default: {
54
+ sep: string;
55
+ delimiter: string;
56
+ normalize: typeof normalize;
57
+ join: typeof join;
58
+ resolve: typeof resolve;
59
+ isAbsolute: typeof isAbsolute;
60
+ dirname: typeof dirname;
61
+ basename: typeof basename;
62
+ extname: typeof extname;
63
+ relative: typeof relative;
64
+ parse: typeof parse;
65
+ format: typeof format;
66
+ posix: {
67
+ sep: string;
68
+ delimiter: string;
69
+ normalize: typeof normalize;
70
+ join: typeof join;
71
+ resolve: typeof resolve;
72
+ isAbsolute: typeof isAbsolute;
73
+ dirname: typeof dirname;
74
+ basename: typeof basename;
75
+ extname: typeof extname;
76
+ relative: typeof relative;
77
+ parse: typeof parse;
78
+ format: typeof format;
79
+ };
80
+ win32: {
81
+ sep: string;
82
+ delimiter: string;
83
+ normalize: typeof normalize;
84
+ join: typeof join;
85
+ resolve: typeof resolve;
86
+ isAbsolute: typeof isAbsolute;
87
+ dirname: typeof dirname;
88
+ basename: typeof basename;
89
+ extname: typeof extname;
90
+ relative: typeof relative;
91
+ parse: typeof parse;
92
+ format: typeof format;
93
+ };
94
+ };
95
+ export default _default;
@@ -0,0 +1,48 @@
1
+ export declare const performance: Performance;
2
+ export interface TimingEntryList {
3
+ getEntries(): PerformanceEntry[];
4
+ getEntriesByName(name: string, kind?: string): PerformanceEntry[];
5
+ getEntriesByType(kind: string): PerformanceEntry[];
6
+ }
7
+ export interface PerformanceObserver {
8
+ observe(cfg: {
9
+ entryTypes?: string[];
10
+ type?: string;
11
+ }): void;
12
+ disconnect(): void;
13
+ takeRecords(): PerformanceEntry[];
14
+ }
15
+ export declare const PerformanceObserver: {
16
+ new (fn: (list: TimingEntryList) => void): PerformanceObserver;
17
+ prototype: any;
18
+ supportedEntryTypes: string[];
19
+ };
20
+ export interface TimingHistogram {
21
+ min: number;
22
+ max: number;
23
+ mean: number;
24
+ stddev: number;
25
+ percentiles: Map<number, number>;
26
+ exceeds: number;
27
+ reset(): void;
28
+ percentile(p: number): number;
29
+ }
30
+ export declare const TimingHistogram: {
31
+ new (): TimingHistogram;
32
+ prototype: any;
33
+ };
34
+ export declare function createHistogram(): TimingHistogram;
35
+ export declare function monitorEventLoopDelay(_opts?: {
36
+ resolution?: number;
37
+ }): TimingHistogram;
38
+ declare const _default: {
39
+ performance: Performance;
40
+ PerformanceObserver: {
41
+ new (fn: (list: TimingEntryList) => void): PerformanceObserver;
42
+ prototype: any;
43
+ supportedEntryTypes: string[];
44
+ };
45
+ createHistogram: typeof createHistogram;
46
+ monitorEventLoopDelay: typeof monitorEventLoopDelay;
47
+ };
48
+ export default _default;