@emulsify/cli 1.11.4 → 1.12.0
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/dist/node_modules/.package-lock.json +34 -24
- package/dist/node_modules/@types/node/README.md +2 -2
- package/dist/node_modules/@types/node/assert.d.ts +23 -1
- package/dist/node_modules/@types/node/async_hooks.d.ts +64 -0
- package/dist/node_modules/@types/node/buffer.buffer.d.ts +124 -38
- package/dist/node_modules/@types/node/buffer.d.ts +19 -17
- package/dist/node_modules/@types/node/child_process.d.ts +88 -161
- package/dist/node_modules/@types/node/cluster.d.ts +5 -6
- package/dist/node_modules/@types/node/constants.d.ts +14 -12
- package/dist/node_modules/@types/node/crypto.d.ts +237 -166
- package/dist/node_modules/@types/node/dgram.d.ts +15 -14
- package/dist/node_modules/@types/node/diagnostics_channel.d.ts +39 -15
- package/dist/node_modules/@types/node/dns/promises.d.ts +11 -9
- package/dist/node_modules/@types/node/dns.d.ts +28 -21
- package/dist/node_modules/@types/node/events.d.ts +81 -35
- package/dist/node_modules/@types/node/fs/promises.d.ts +61 -36
- package/dist/node_modules/@types/node/fs.d.ts +251 -193
- package/dist/node_modules/@types/node/globals.d.ts +146 -442
- package/dist/node_modules/@types/node/globals.typedarray.d.ts +17 -0
- package/dist/node_modules/@types/node/http.d.ts +136 -31
- package/dist/node_modules/@types/node/http2.d.ts +102 -26
- package/dist/node_modules/@types/node/https.d.ts +94 -60
- package/dist/node_modules/@types/node/index.d.ts +5 -3
- package/dist/node_modules/@types/node/{inspector.d.ts → inspector.generated.d.ts} +272 -2
- package/dist/node_modules/@types/node/module.d.ts +362 -138
- package/dist/node_modules/@types/node/net.d.ts +27 -20
- package/dist/node_modules/@types/node/os.d.ts +14 -3
- package/dist/node_modules/@types/node/package.json +4 -89
- package/dist/node_modules/@types/node/perf_hooks.d.ts +37 -10
- package/dist/node_modules/@types/node/process.d.ts +108 -35
- package/dist/node_modules/@types/node/querystring.d.ts +2 -3
- package/dist/node_modules/@types/node/readline/promises.d.ts +1 -1
- package/dist/node_modules/@types/node/stream/consumers.d.ts +33 -7
- package/dist/node_modules/@types/node/stream/web.d.ts +13 -4
- package/dist/node_modules/@types/node/stream.d.ts +963 -1014
- package/dist/node_modules/@types/node/string_decoder.d.ts +2 -2
- package/dist/node_modules/@types/node/test.d.ts +1504 -1655
- package/dist/node_modules/@types/node/timers/promises.d.ts +28 -17
- package/dist/node_modules/@types/node/timers.d.ts +157 -111
- package/dist/node_modules/@types/node/tls.d.ts +105 -67
- package/dist/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +120 -37
- package/dist/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +15 -0
- package/dist/node_modules/@types/node/ts5.6/index.d.ts +5 -3
- package/dist/node_modules/@types/node/url.d.ts +10 -1
- package/dist/node_modules/@types/node/util.d.ts +28 -3
- package/dist/node_modules/@types/node/v8.d.ts +6 -5
- package/dist/node_modules/@types/node/vm.d.ts +147 -68
- package/dist/node_modules/@types/node/wasi.d.ts +1 -1
- package/dist/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
- package/dist/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
- package/dist/node_modules/@types/node/web-globals/events.d.ts +97 -0
- package/dist/node_modules/@types/node/web-globals/fetch.d.ts +46 -0
- package/dist/node_modules/@types/node/worker_threads.d.ts +60 -39
- package/dist/node_modules/@types/node/zlib.d.ts +21 -20
- package/dist/node_modules/debug/package.json +7 -3
- package/dist/node_modules/debug/src/browser.js +2 -1
- package/dist/node_modules/debug/src/common.js +57 -39
- package/dist/node_modules/fast-uri/.github/dependabot.yml +1 -1
- package/dist/node_modules/fast-uri/.github/workflows/ci.yml +81 -3
- package/dist/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +6 -2
- package/dist/node_modules/fast-uri/LICENSE +3 -1
- package/dist/node_modules/fast-uri/README.md +55 -37
- package/dist/node_modules/fast-uri/benchmark/benchmark.mjs +159 -0
- package/dist/node_modules/fast-uri/benchmark/equal.mjs +51 -0
- package/dist/node_modules/fast-uri/benchmark/non-simple-domain.mjs +22 -0
- package/dist/node_modules/fast-uri/benchmark/package.json +17 -0
- package/dist/node_modules/fast-uri/benchmark/string-array-to-hex-stripped.mjs +24 -0
- package/dist/node_modules/fast-uri/benchmark/ws-is-secure.mjs +65 -0
- package/dist/node_modules/fast-uri/eslint.config.js +6 -0
- package/dist/node_modules/fast-uri/index.js +98 -61
- package/dist/node_modules/fast-uri/lib/schemes.js +160 -81
- package/dist/node_modules/fast-uri/lib/utils.js +217 -123
- package/dist/node_modules/fast-uri/package.json +44 -14
- package/dist/node_modules/fast-uri/test/ajv.test.js +7 -3
- package/dist/node_modules/fast-uri/test/equal.test.js +7 -2
- package/dist/node_modules/fast-uri/test/fixtures/uri-js-parse.json +501 -0
- package/dist/node_modules/fast-uri/test/fixtures/uri-js-serialize.json +120 -0
- package/dist/node_modules/fast-uri/test/parse.test.js +31 -31
- package/dist/node_modules/fast-uri/test/resolve.test.js +52 -49
- package/dist/node_modules/fast-uri/test/rfc-3986.test.js +90 -0
- package/dist/node_modules/fast-uri/test/serialize.test.js +55 -47
- package/dist/node_modules/fast-uri/test/uri-js-compatibility.test.js +33 -0
- package/dist/node_modules/fast-uri/test/uri-js.test.js +230 -230
- package/dist/node_modules/fast-uri/test/util.test.js +23 -8
- package/dist/node_modules/fast-uri/tsconfig.json +9 -0
- package/dist/node_modules/fast-uri/types/index.d.ts +16 -9
- package/dist/node_modules/fast-uri/types/index.test-d.ts +9 -9
- package/dist/node_modules/fs-extra/LICENSE +1 -1
- package/dist/node_modules/fs-extra/README.md +3 -1
- package/dist/node_modules/fs-extra/lib/copy/copy-sync.js +11 -1
- package/dist/node_modules/fs-extra/lib/copy/copy.js +13 -15
- package/dist/node_modules/fs-extra/lib/fs/index.js +6 -0
- package/dist/node_modules/fs-extra/lib/util/async.js +29 -0
- package/dist/node_modules/fs-extra/lib/util/stat.js +2 -1
- package/dist/node_modules/fs-extra/package.json +1 -1
- package/dist/node_modules/jsonfile/README.md +1 -1
- package/dist/node_modules/jsonfile/index.js +3 -3
- package/dist/node_modules/jsonfile/package.json +1 -1
- package/dist/node_modules/simple-git/dist/cjs/index.js +235 -235
- package/dist/node_modules/simple-git/dist/cjs/index.js.map +3 -3
- package/dist/node_modules/simple-git/dist/esm/index.js +229 -233
- package/dist/node_modules/simple-git/dist/esm/index.js.map +3 -3
- package/dist/node_modules/simple-git/dist/src/lib/git-logger.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-branch.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/plugins/error-detection.plugin.d.ts +2 -3
- package/dist/node_modules/simple-git/dist/src/lib/plugins/simple-git-plugin.d.ts +2 -3
- package/dist/node_modules/simple-git/dist/src/lib/plugins/spawn-options-plugin.d.ts +0 -1
- package/dist/node_modules/simple-git/dist/src/lib/runners/scheduler.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/runners/tasks-pending-queue.d.ts +2 -2
- package/dist/node_modules/simple-git/dist/src/lib/tasks/apply-patch.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/tasks/clean.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/tasks/clone.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/tasks/log.d.ts +3 -3
- package/dist/node_modules/simple-git/dist/src/lib/tasks/push.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/tasks/remote.d.ts +4 -2
- package/dist/node_modules/simple-git/dist/src/lib/tasks/reset.d.ts +3 -3
- package/dist/node_modules/simple-git/dist/src/lib/tasks/stash-list.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/tasks/task.d.ts +2 -2
- package/dist/node_modules/simple-git/dist/src/lib/types/handlers.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/types/index.d.ts +9 -13
- package/dist/node_modules/simple-git/dist/src/lib/types/tasks.d.ts +5 -6
- package/dist/node_modules/simple-git/dist/src/lib/utils/argument-filters.d.ts +5 -7
- package/dist/node_modules/simple-git/dist/src/lib/utils/git-output-streams.d.ts +0 -1
- package/dist/node_modules/simple-git/dist/src/lib/utils/line-parser.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/utils/task-options.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/utils/util.d.ts +11 -10
- package/dist/node_modules/simple-git/package.json +6 -6
- package/dist/node_modules/simple-git/readme.md +8 -0
- package/dist/node_modules/undici-types/dispatcher.d.ts +1 -0
- package/dist/node_modules/undici-types/eventsource.d.ts +0 -2
- package/dist/node_modules/undici-types/filereader.d.ts +1 -1
- package/dist/node_modules/undici-types/interceptors.d.ts +3 -1
- package/dist/node_modules/undici-types/package.json +1 -1
- package/dist/node_modules/undici-types/patch.d.ts +0 -38
- package/dist/node_modules/undici-types/readable.d.ts +5 -0
- package/dist/node_modules/undici-types/webidl.d.ts +6 -0
- package/dist/node_modules/undici-types/websocket.d.ts +0 -2
- package/dist/package-lock.json +911 -812
- package/dist/package.json +1 -1
- package/dist/util/getAvailableStarters.js +2 -2
- package/package.json +1 -1
- package/dist/node_modules/@types/node/dom-events.d.ts +0 -124
- package/dist/node_modules/fast-uri/benchmark.js +0 -105
- package/dist/node_modules/fast-uri/lib/scopedChars.js +0 -30
- package/dist/node_modules/fast-uri/test/.gitkeep +0 -0
- package/dist/node_modules/fast-uri/test/compatibility.test.js +0 -131
- package/dist/node_modules/jsonfile/CHANGELOG.md +0 -171
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
|
|
3
|
+
interface AddEventListenerOptions extends EventListenerOptions {
|
|
4
|
+
once?: boolean;
|
|
5
|
+
passive?: boolean;
|
|
6
|
+
signal?: AbortSignal;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type _CustomEvent<T = any> = typeof globalThis extends { onmessage: any } ? {} : CustomEvent<T>;
|
|
10
|
+
interface CustomEvent<T = any> extends Event {
|
|
11
|
+
readonly detail: T;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
interface CustomEventInit<T = any> extends EventInit {
|
|
15
|
+
detail?: T;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
type _Event = typeof globalThis extends { onmessage: any } ? {} : Event;
|
|
19
|
+
interface Event {
|
|
20
|
+
readonly bubbles: boolean;
|
|
21
|
+
cancelBubble: boolean;
|
|
22
|
+
readonly cancelable: boolean;
|
|
23
|
+
readonly composed: boolean;
|
|
24
|
+
readonly currentTarget: EventTarget | null;
|
|
25
|
+
readonly defaultPrevented: boolean;
|
|
26
|
+
readonly eventPhase: 0 | 2;
|
|
27
|
+
readonly isTrusted: boolean;
|
|
28
|
+
returnValue: boolean;
|
|
29
|
+
readonly srcElement: EventTarget | null;
|
|
30
|
+
readonly target: EventTarget | null;
|
|
31
|
+
readonly timeStamp: number;
|
|
32
|
+
readonly type: string;
|
|
33
|
+
composedPath(): [EventTarget?];
|
|
34
|
+
initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;
|
|
35
|
+
preventDefault(): void;
|
|
36
|
+
stopImmediatePropagation(): void;
|
|
37
|
+
stopPropagation(): void;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
interface EventInit {
|
|
41
|
+
bubbles?: boolean;
|
|
42
|
+
cancelable?: boolean;
|
|
43
|
+
composed?: boolean;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
interface EventListener {
|
|
47
|
+
(evt: Event): void;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
interface EventListenerObject {
|
|
51
|
+
handleEvent(object: Event): void;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
type _EventListenerOptions = typeof globalThis extends { onmessage: any } ? {} : EventListenerOptions;
|
|
55
|
+
interface EventListenerOptions {
|
|
56
|
+
capture?: boolean;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
type _EventTarget = typeof globalThis extends { onmessage: any } ? {} : EventTarget;
|
|
60
|
+
interface EventTarget {
|
|
61
|
+
addEventListener(
|
|
62
|
+
type: string,
|
|
63
|
+
listener: EventListener | EventListenerObject,
|
|
64
|
+
options?: AddEventListenerOptions | boolean,
|
|
65
|
+
): void;
|
|
66
|
+
dispatchEvent(event: Event): boolean;
|
|
67
|
+
removeEventListener(
|
|
68
|
+
type: string,
|
|
69
|
+
listener: EventListener | EventListenerObject,
|
|
70
|
+
options?: EventListenerOptions | boolean,
|
|
71
|
+
): void;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
declare global {
|
|
75
|
+
interface CustomEvent<T = any> extends _CustomEvent<T> {}
|
|
76
|
+
var CustomEvent: typeof globalThis extends { onmessage: any; CustomEvent: infer T } ? T
|
|
77
|
+
: {
|
|
78
|
+
prototype: CustomEvent;
|
|
79
|
+
new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
interface Event extends _Event {}
|
|
83
|
+
var Event: typeof globalThis extends { onmessage: any; Event: infer T } ? T
|
|
84
|
+
: {
|
|
85
|
+
prototype: Event;
|
|
86
|
+
new(type: string, eventInitDict?: EventInit): Event;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
interface EventListenerOptions extends _EventListenerOptions {}
|
|
90
|
+
|
|
91
|
+
interface EventTarget extends _EventTarget {}
|
|
92
|
+
var EventTarget: typeof globalThis extends { onmessage: any; EventTarget: infer T } ? T
|
|
93
|
+
: {
|
|
94
|
+
prototype: EventTarget;
|
|
95
|
+
new(): EventTarget;
|
|
96
|
+
};
|
|
97
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
|
|
3
|
+
import * as undici from "undici-types";
|
|
4
|
+
|
|
5
|
+
type _EventSource = typeof globalThis extends { onmessage: any } ? {} : undici.EventSource;
|
|
6
|
+
type _FormData = typeof globalThis extends { onmessage: any } ? {} : undici.FormData;
|
|
7
|
+
type _Headers = typeof globalThis extends { onmessage: any } ? {} : undici.Headers;
|
|
8
|
+
type _MessageEvent = typeof globalThis extends { onmessage: any } ? {} : undici.MessageEvent;
|
|
9
|
+
type _Request = typeof globalThis extends { onmessage: any } ? {} : undici.Request;
|
|
10
|
+
type _RequestInit = typeof globalThis extends { onmessage: any } ? {} : undici.RequestInit;
|
|
11
|
+
type _Response = typeof globalThis extends { onmessage: any } ? {} : undici.Response;
|
|
12
|
+
type _ResponseInit = typeof globalThis extends { onmessage: any } ? {} : undici.ResponseInit;
|
|
13
|
+
type _WebSocket = typeof globalThis extends { onmessage: any } ? {} : undici.WebSocket;
|
|
14
|
+
|
|
15
|
+
declare global {
|
|
16
|
+
function fetch(
|
|
17
|
+
input: string | URL | Request,
|
|
18
|
+
init?: RequestInit,
|
|
19
|
+
): Promise<Response>;
|
|
20
|
+
|
|
21
|
+
interface EventSource extends _EventSource {}
|
|
22
|
+
var EventSource: typeof globalThis extends { onmessage: any; EventSource: infer T } ? T : typeof undici.EventSource;
|
|
23
|
+
|
|
24
|
+
interface FormData extends _FormData {}
|
|
25
|
+
var FormData: typeof globalThis extends { onmessage: any; FormData: infer T } ? T : typeof undici.FormData;
|
|
26
|
+
|
|
27
|
+
interface Headers extends _Headers {}
|
|
28
|
+
var Headers: typeof globalThis extends { onmessage: any; Headers: infer T } ? T : typeof undici.Headers;
|
|
29
|
+
|
|
30
|
+
interface MessageEvent extends _MessageEvent {}
|
|
31
|
+
var MessageEvent: typeof globalThis extends { onmessage: any; MessageEvent: infer T } ? T
|
|
32
|
+
: typeof undici.MessageEvent;
|
|
33
|
+
|
|
34
|
+
interface Request extends _Request {}
|
|
35
|
+
var Request: typeof globalThis extends { onmessage: any; Request: infer T } ? T : typeof undici.Request;
|
|
36
|
+
|
|
37
|
+
interface RequestInit extends _RequestInit {}
|
|
38
|
+
|
|
39
|
+
interface Response extends _Response {}
|
|
40
|
+
var Response: typeof globalThis extends { onmessage: any; Response: infer T } ? T : typeof undici.Response;
|
|
41
|
+
|
|
42
|
+
interface ResponseInit extends _ResponseInit {}
|
|
43
|
+
|
|
44
|
+
interface WebSocket extends _WebSocket {}
|
|
45
|
+
var WebSocket: typeof globalThis extends { onmessage: any; WebSocket: infer T } ? T : typeof undici.WebSocket;
|
|
46
|
+
}
|
|
@@ -52,14 +52,14 @@
|
|
|
52
52
|
* @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/worker_threads.js)
|
|
53
53
|
*/
|
|
54
54
|
declare module "worker_threads" {
|
|
55
|
-
import { Blob } from "node:buffer";
|
|
56
55
|
import { Context } from "node:vm";
|
|
57
|
-
import { EventEmitter } from "node:events";
|
|
56
|
+
import { EventEmitter, NodeEventTarget } from "node:events";
|
|
58
57
|
import { EventLoopUtilityFunction } from "node:perf_hooks";
|
|
59
58
|
import { FileHandle } from "node:fs/promises";
|
|
60
59
|
import { Readable, Writable } from "node:stream";
|
|
60
|
+
import { ReadableStream, TransformStream, WritableStream } from "node:stream/web";
|
|
61
61
|
import { URL } from "node:url";
|
|
62
|
-
import {
|
|
62
|
+
import { MessageEvent } from "undici-types";
|
|
63
63
|
const isMainThread: boolean;
|
|
64
64
|
const parentPort: null | MessagePort;
|
|
65
65
|
const resourceLimits: ResourceLimits;
|
|
@@ -88,7 +88,16 @@ declare module "worker_threads" {
|
|
|
88
88
|
interface WorkerPerformance {
|
|
89
89
|
eventLoopUtilization: EventLoopUtilityFunction;
|
|
90
90
|
}
|
|
91
|
-
type
|
|
91
|
+
type Transferable =
|
|
92
|
+
| ArrayBuffer
|
|
93
|
+
| MessagePort
|
|
94
|
+
| AbortSignal
|
|
95
|
+
| FileHandle
|
|
96
|
+
| ReadableStream
|
|
97
|
+
| WritableStream
|
|
98
|
+
| TransformStream;
|
|
99
|
+
/** @deprecated Use `import { Transferable } from "node:worker_threads"` instead. */
|
|
100
|
+
type TransferListItem = Transferable;
|
|
92
101
|
/**
|
|
93
102
|
* Instances of the `worker.MessagePort` class represent one end of an
|
|
94
103
|
* asynchronous, two-way communications channel. It can be used to transfer
|
|
@@ -97,7 +106,7 @@ declare module "worker_threads" {
|
|
|
97
106
|
* This implementation matches [browser `MessagePort`](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort) s.
|
|
98
107
|
* @since v10.5.0
|
|
99
108
|
*/
|
|
100
|
-
class MessagePort
|
|
109
|
+
class MessagePort implements EventTarget {
|
|
101
110
|
/**
|
|
102
111
|
* Disables further sending of messages on either side of the connection.
|
|
103
112
|
* This method can be called when no further communication will happen over this `MessagePort`.
|
|
@@ -173,7 +182,7 @@ declare module "worker_threads" {
|
|
|
173
182
|
* behind this API, see the `serialization API of the node:v8 module`.
|
|
174
183
|
* @since v10.5.0
|
|
175
184
|
*/
|
|
176
|
-
postMessage(value: any, transferList?: readonly
|
|
185
|
+
postMessage(value: any, transferList?: readonly Transferable[]): void;
|
|
177
186
|
/**
|
|
178
187
|
* Opposite of `unref()`. Calling `ref()` on a previously `unref()`ed port does _not_ let the program exit if it's the only active handle left (the default
|
|
179
188
|
* behavior). If the port is `ref()`ed, calling `ref()` again has no effect.
|
|
@@ -205,42 +214,32 @@ declare module "worker_threads" {
|
|
|
205
214
|
* @since v10.5.0
|
|
206
215
|
*/
|
|
207
216
|
start(): void;
|
|
208
|
-
addListener(event: "close", listener: () => void): this;
|
|
217
|
+
addListener(event: "close", listener: (ev: Event) => void): this;
|
|
209
218
|
addListener(event: "message", listener: (value: any) => void): this;
|
|
210
219
|
addListener(event: "messageerror", listener: (error: Error) => void): this;
|
|
211
|
-
addListener(event: string
|
|
212
|
-
emit(event: "close"): boolean;
|
|
220
|
+
addListener(event: string, listener: (arg: any) => void): this;
|
|
221
|
+
emit(event: "close", ev: Event): boolean;
|
|
213
222
|
emit(event: "message", value: any): boolean;
|
|
214
223
|
emit(event: "messageerror", error: Error): boolean;
|
|
215
|
-
emit(event: string
|
|
216
|
-
|
|
224
|
+
emit(event: string, arg: any): boolean;
|
|
225
|
+
off(event: "close", listener: (ev: Event) => void, options?: EventListenerOptions): this;
|
|
226
|
+
off(event: "message", listener: (value: any) => void, options?: EventListenerOptions): this;
|
|
227
|
+
off(event: "messageerror", listener: (error: Error) => void, options?: EventListenerOptions): this;
|
|
228
|
+
off(event: string, listener: (arg: any) => void, options?: EventListenerOptions): this;
|
|
229
|
+
on(event: "close", listener: (ev: Event) => void): this;
|
|
217
230
|
on(event: "message", listener: (value: any) => void): this;
|
|
218
231
|
on(event: "messageerror", listener: (error: Error) => void): this;
|
|
219
|
-
on(event: string
|
|
220
|
-
once(event: "close", listener: () => void): this;
|
|
232
|
+
on(event: string, listener: (arg: any) => void): this;
|
|
233
|
+
once(event: "close", listener: (ev: Event) => void): this;
|
|
221
234
|
once(event: "message", listener: (value: any) => void): this;
|
|
222
235
|
once(event: "messageerror", listener: (error: Error) => void): this;
|
|
223
|
-
once(event: string
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
prependOnceListener(event: "close", listener: () => void): this;
|
|
229
|
-
prependOnceListener(event: "message", listener: (value: any) => void): this;
|
|
230
|
-
prependOnceListener(event: "messageerror", listener: (error: Error) => void): this;
|
|
231
|
-
prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
232
|
-
removeListener(event: "close", listener: () => void): this;
|
|
233
|
-
removeListener(event: "message", listener: (value: any) => void): this;
|
|
234
|
-
removeListener(event: "messageerror", listener: (error: Error) => void): this;
|
|
235
|
-
removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
236
|
-
off(event: "close", listener: () => void): this;
|
|
237
|
-
off(event: "message", listener: (value: any) => void): this;
|
|
238
|
-
off(event: "messageerror", listener: (error: Error) => void): this;
|
|
239
|
-
off(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
240
|
-
addEventListener: EventTarget["addEventListener"];
|
|
241
|
-
dispatchEvent: EventTarget["dispatchEvent"];
|
|
242
|
-
removeEventListener: EventTarget["removeEventListener"];
|
|
236
|
+
once(event: string, listener: (arg: any) => void): this;
|
|
237
|
+
removeListener(event: "close", listener: (ev: Event) => void, options?: EventListenerOptions): this;
|
|
238
|
+
removeListener(event: "message", listener: (value: any) => void, options?: EventListenerOptions): this;
|
|
239
|
+
removeListener(event: "messageerror", listener: (error: Error) => void, options?: EventListenerOptions): this;
|
|
240
|
+
removeListener(event: string, listener: (arg: any) => void, options?: EventListenerOptions): this;
|
|
243
241
|
}
|
|
242
|
+
interface MessagePort extends NodeEventTarget {}
|
|
244
243
|
interface WorkerOptions {
|
|
245
244
|
/**
|
|
246
245
|
* List of arguments which would be stringified and appended to
|
|
@@ -260,7 +259,7 @@ declare module "worker_threads" {
|
|
|
260
259
|
/**
|
|
261
260
|
* Additional data to send in the first worker message.
|
|
262
261
|
*/
|
|
263
|
-
transferList?:
|
|
262
|
+
transferList?: Transferable[] | undefined;
|
|
264
263
|
/**
|
|
265
264
|
* @default true
|
|
266
265
|
*/
|
|
@@ -408,7 +407,7 @@ declare module "worker_threads" {
|
|
|
408
407
|
* See `port.postMessage()` for more details.
|
|
409
408
|
* @since v10.5.0
|
|
410
409
|
*/
|
|
411
|
-
postMessage(value: any, transferList?: readonly
|
|
410
|
+
postMessage(value: any, transferList?: readonly Transferable[]): void;
|
|
412
411
|
/**
|
|
413
412
|
* Opposite of `unref()`, calling `ref()` on a previously `unref()`ed worker does _not_ let the program exit if it's the only active handle left (the default
|
|
414
413
|
* behavior). If the worker is `ref()`ed, calling `ref()` again has
|
|
@@ -518,18 +517,18 @@ declare module "worker_threads" {
|
|
|
518
517
|
* ```
|
|
519
518
|
* @since v15.4.0
|
|
520
519
|
*/
|
|
521
|
-
class BroadcastChannel {
|
|
520
|
+
class BroadcastChannel extends EventTarget {
|
|
522
521
|
readonly name: string;
|
|
523
522
|
/**
|
|
524
523
|
* Invoked with a single \`MessageEvent\` argument when a message is received.
|
|
525
524
|
* @since v15.4.0
|
|
526
525
|
*/
|
|
527
|
-
onmessage: (message:
|
|
526
|
+
onmessage: (message: MessageEvent) => void;
|
|
528
527
|
/**
|
|
529
528
|
* Invoked with a received message cannot be deserialized.
|
|
530
529
|
* @since v15.4.0
|
|
531
530
|
*/
|
|
532
|
-
onmessageerror: (message:
|
|
531
|
+
onmessageerror: (message: MessageEvent) => void;
|
|
533
532
|
constructor(name: string);
|
|
534
533
|
/**
|
|
535
534
|
* Closes the `BroadcastChannel` connection.
|
|
@@ -649,7 +648,25 @@ declare module "worker_threads" {
|
|
|
649
648
|
* @param value Any arbitrary, cloneable JavaScript value that will be cloned and passed automatically to all new `Worker` instances. If `value` is passed as `undefined`, any previously set value
|
|
650
649
|
* for the `key` will be deleted.
|
|
651
650
|
*/
|
|
652
|
-
function setEnvironmentData(key: Serializable, value
|
|
651
|
+
function setEnvironmentData(key: Serializable, value?: Serializable): void;
|
|
652
|
+
/**
|
|
653
|
+
* Sends a value to another worker, identified by its thread ID.
|
|
654
|
+
* @param threadId The target thread ID. If the thread ID is invalid, a `ERR_WORKER_MESSAGING_FAILED` error will be thrown.
|
|
655
|
+
* If the target thread ID is the current thread ID, a `ERR_WORKER_MESSAGING_SAME_THREAD` error will be thrown.
|
|
656
|
+
* @param value The value to send.
|
|
657
|
+
* @param transferList If one or more `MessagePort`-like objects are passed in value, a `transferList` is required for those items
|
|
658
|
+
* or `ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST` is thrown. See `port.postMessage()` for more information.
|
|
659
|
+
* @param timeout Time to wait for the message to be delivered in milliseconds. By default it's `undefined`, which means wait forever.
|
|
660
|
+
* If the operation times out, a `ERR_WORKER_MESSAGING_TIMEOUT` error is thrown.
|
|
661
|
+
* @since v22.5.0
|
|
662
|
+
*/
|
|
663
|
+
function postMessageToThread(threadId: number, value: any, timeout?: number): Promise<void>;
|
|
664
|
+
function postMessageToThread(
|
|
665
|
+
threadId: number,
|
|
666
|
+
value: any,
|
|
667
|
+
transferList: readonly Transferable[],
|
|
668
|
+
timeout?: number,
|
|
669
|
+
): Promise<void>;
|
|
653
670
|
|
|
654
671
|
import {
|
|
655
672
|
BroadcastChannel as _BroadcastChannel,
|
|
@@ -657,6 +674,10 @@ declare module "worker_threads" {
|
|
|
657
674
|
MessagePort as _MessagePort,
|
|
658
675
|
} from "worker_threads";
|
|
659
676
|
global {
|
|
677
|
+
function structuredClone<T>(
|
|
678
|
+
value: T,
|
|
679
|
+
options?: { transfer?: Transferable[] },
|
|
680
|
+
): T;
|
|
660
681
|
/**
|
|
661
682
|
* `BroadcastChannel` class is a global reference for `import { BroadcastChannel } from 'node:worker_threads'`
|
|
662
683
|
* https://nodejs.org/api/globals.html#broadcastchannel
|
|
@@ -92,6 +92,7 @@
|
|
|
92
92
|
* @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/zlib.js)
|
|
93
93
|
*/
|
|
94
94
|
declare module "zlib" {
|
|
95
|
+
import { NonSharedBuffer } from "node:buffer";
|
|
95
96
|
import * as stream from "node:stream";
|
|
96
97
|
interface ZlibOptions {
|
|
97
98
|
/**
|
|
@@ -180,7 +181,7 @@ declare module "zlib" {
|
|
|
180
181
|
* @returns A 32-bit unsigned integer containing the checksum.
|
|
181
182
|
* @since v20.15.0
|
|
182
183
|
*/
|
|
183
|
-
function crc32(data: string |
|
|
184
|
+
function crc32(data: string | NodeJS.ArrayBufferView, value?: number): number;
|
|
184
185
|
/**
|
|
185
186
|
* Creates and returns a new `BrotliCompress` object.
|
|
186
187
|
* @since v11.7.0, v10.16.0
|
|
@@ -234,124 +235,124 @@ declare module "zlib" {
|
|
|
234
235
|
*/
|
|
235
236
|
function createUnzip(options?: ZlibOptions): Unzip;
|
|
236
237
|
type InputType = string | ArrayBuffer | NodeJS.ArrayBufferView;
|
|
237
|
-
type CompressCallback = (error: Error | null, result:
|
|
238
|
+
type CompressCallback = (error: Error | null, result: NonSharedBuffer) => void;
|
|
238
239
|
/**
|
|
239
240
|
* @since v11.7.0, v10.16.0
|
|
240
241
|
*/
|
|
241
242
|
function brotliCompress(buf: InputType, options: BrotliOptions, callback: CompressCallback): void;
|
|
242
243
|
function brotliCompress(buf: InputType, callback: CompressCallback): void;
|
|
243
244
|
namespace brotliCompress {
|
|
244
|
-
function __promisify__(buffer: InputType, options?: BrotliOptions): Promise<
|
|
245
|
+
function __promisify__(buffer: InputType, options?: BrotliOptions): Promise<NonSharedBuffer>;
|
|
245
246
|
}
|
|
246
247
|
/**
|
|
247
248
|
* Compress a chunk of data with `BrotliCompress`.
|
|
248
249
|
* @since v11.7.0, v10.16.0
|
|
249
250
|
*/
|
|
250
|
-
function brotliCompressSync(buf: InputType, options?: BrotliOptions):
|
|
251
|
+
function brotliCompressSync(buf: InputType, options?: BrotliOptions): NonSharedBuffer;
|
|
251
252
|
/**
|
|
252
253
|
* @since v11.7.0, v10.16.0
|
|
253
254
|
*/
|
|
254
255
|
function brotliDecompress(buf: InputType, options: BrotliOptions, callback: CompressCallback): void;
|
|
255
256
|
function brotliDecompress(buf: InputType, callback: CompressCallback): void;
|
|
256
257
|
namespace brotliDecompress {
|
|
257
|
-
function __promisify__(buffer: InputType, options?: BrotliOptions): Promise<
|
|
258
|
+
function __promisify__(buffer: InputType, options?: BrotliOptions): Promise<NonSharedBuffer>;
|
|
258
259
|
}
|
|
259
260
|
/**
|
|
260
261
|
* Decompress a chunk of data with `BrotliDecompress`.
|
|
261
262
|
* @since v11.7.0, v10.16.0
|
|
262
263
|
*/
|
|
263
|
-
function brotliDecompressSync(buf: InputType, options?: BrotliOptions):
|
|
264
|
+
function brotliDecompressSync(buf: InputType, options?: BrotliOptions): NonSharedBuffer;
|
|
264
265
|
/**
|
|
265
266
|
* @since v0.6.0
|
|
266
267
|
*/
|
|
267
268
|
function deflate(buf: InputType, callback: CompressCallback): void;
|
|
268
269
|
function deflate(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
|
269
270
|
namespace deflate {
|
|
270
|
-
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<
|
|
271
|
+
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<NonSharedBuffer>;
|
|
271
272
|
}
|
|
272
273
|
/**
|
|
273
274
|
* Compress a chunk of data with `Deflate`.
|
|
274
275
|
* @since v0.11.12
|
|
275
276
|
*/
|
|
276
|
-
function deflateSync(buf: InputType, options?: ZlibOptions):
|
|
277
|
+
function deflateSync(buf: InputType, options?: ZlibOptions): NonSharedBuffer;
|
|
277
278
|
/**
|
|
278
279
|
* @since v0.6.0
|
|
279
280
|
*/
|
|
280
281
|
function deflateRaw(buf: InputType, callback: CompressCallback): void;
|
|
281
282
|
function deflateRaw(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
|
282
283
|
namespace deflateRaw {
|
|
283
|
-
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<
|
|
284
|
+
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<NonSharedBuffer>;
|
|
284
285
|
}
|
|
285
286
|
/**
|
|
286
287
|
* Compress a chunk of data with `DeflateRaw`.
|
|
287
288
|
* @since v0.11.12
|
|
288
289
|
*/
|
|
289
|
-
function deflateRawSync(buf: InputType, options?: ZlibOptions):
|
|
290
|
+
function deflateRawSync(buf: InputType, options?: ZlibOptions): NonSharedBuffer;
|
|
290
291
|
/**
|
|
291
292
|
* @since v0.6.0
|
|
292
293
|
*/
|
|
293
294
|
function gzip(buf: InputType, callback: CompressCallback): void;
|
|
294
295
|
function gzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
|
295
296
|
namespace gzip {
|
|
296
|
-
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<
|
|
297
|
+
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<NonSharedBuffer>;
|
|
297
298
|
}
|
|
298
299
|
/**
|
|
299
300
|
* Compress a chunk of data with `Gzip`.
|
|
300
301
|
* @since v0.11.12
|
|
301
302
|
*/
|
|
302
|
-
function gzipSync(buf: InputType, options?: ZlibOptions):
|
|
303
|
+
function gzipSync(buf: InputType, options?: ZlibOptions): NonSharedBuffer;
|
|
303
304
|
/**
|
|
304
305
|
* @since v0.6.0
|
|
305
306
|
*/
|
|
306
307
|
function gunzip(buf: InputType, callback: CompressCallback): void;
|
|
307
308
|
function gunzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
|
308
309
|
namespace gunzip {
|
|
309
|
-
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<
|
|
310
|
+
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<NonSharedBuffer>;
|
|
310
311
|
}
|
|
311
312
|
/**
|
|
312
313
|
* Decompress a chunk of data with `Gunzip`.
|
|
313
314
|
* @since v0.11.12
|
|
314
315
|
*/
|
|
315
|
-
function gunzipSync(buf: InputType, options?: ZlibOptions):
|
|
316
|
+
function gunzipSync(buf: InputType, options?: ZlibOptions): NonSharedBuffer;
|
|
316
317
|
/**
|
|
317
318
|
* @since v0.6.0
|
|
318
319
|
*/
|
|
319
320
|
function inflate(buf: InputType, callback: CompressCallback): void;
|
|
320
321
|
function inflate(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
|
321
322
|
namespace inflate {
|
|
322
|
-
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<
|
|
323
|
+
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<NonSharedBuffer>;
|
|
323
324
|
}
|
|
324
325
|
/**
|
|
325
326
|
* Decompress a chunk of data with `Inflate`.
|
|
326
327
|
* @since v0.11.12
|
|
327
328
|
*/
|
|
328
|
-
function inflateSync(buf: InputType, options?: ZlibOptions):
|
|
329
|
+
function inflateSync(buf: InputType, options?: ZlibOptions): NonSharedBuffer;
|
|
329
330
|
/**
|
|
330
331
|
* @since v0.6.0
|
|
331
332
|
*/
|
|
332
333
|
function inflateRaw(buf: InputType, callback: CompressCallback): void;
|
|
333
334
|
function inflateRaw(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
|
334
335
|
namespace inflateRaw {
|
|
335
|
-
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<
|
|
336
|
+
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<NonSharedBuffer>;
|
|
336
337
|
}
|
|
337
338
|
/**
|
|
338
339
|
* Decompress a chunk of data with `InflateRaw`.
|
|
339
340
|
* @since v0.11.12
|
|
340
341
|
*/
|
|
341
|
-
function inflateRawSync(buf: InputType, options?: ZlibOptions):
|
|
342
|
+
function inflateRawSync(buf: InputType, options?: ZlibOptions): NonSharedBuffer;
|
|
342
343
|
/**
|
|
343
344
|
* @since v0.6.0
|
|
344
345
|
*/
|
|
345
346
|
function unzip(buf: InputType, callback: CompressCallback): void;
|
|
346
347
|
function unzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
|
347
348
|
namespace unzip {
|
|
348
|
-
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<
|
|
349
|
+
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<NonSharedBuffer>;
|
|
349
350
|
}
|
|
350
351
|
/**
|
|
351
352
|
* Decompress a chunk of data with `Unzip`.
|
|
352
353
|
* @since v0.11.12
|
|
353
354
|
*/
|
|
354
|
-
function unzipSync(buf: InputType, options?: ZlibOptions):
|
|
355
|
+
function unzipSync(buf: InputType, options?: ZlibOptions): NonSharedBuffer;
|
|
355
356
|
namespace constants {
|
|
356
357
|
const BROTLI_DECODE: number;
|
|
357
358
|
const BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "debug",
|
|
3
|
-
"version": "4.3
|
|
3
|
+
"version": "4.4.3",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git://github.com/debug-js/debug.git"
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"scripts": {
|
|
27
27
|
"lint": "xo",
|
|
28
28
|
"test": "npm run test:node && npm run test:browser && npm run lint",
|
|
29
|
-
"test:node": "
|
|
29
|
+
"test:node": "mocha test.js test.node.js",
|
|
30
30
|
"test:browser": "karma start --single-run",
|
|
31
31
|
"test:coverage": "cat ./coverage/lcov.info | coveralls"
|
|
32
32
|
},
|
|
@@ -37,7 +37,6 @@
|
|
|
37
37
|
"brfs": "^2.0.1",
|
|
38
38
|
"browserify": "^16.2.3",
|
|
39
39
|
"coveralls": "^3.0.2",
|
|
40
|
-
"istanbul": "^0.4.5",
|
|
41
40
|
"karma": "^3.1.4",
|
|
42
41
|
"karma-browserify": "^6.0.0",
|
|
43
42
|
"karma-chrome-launcher": "^2.2.0",
|
|
@@ -56,5 +55,10 @@
|
|
|
56
55
|
"browser": "./src/browser.js",
|
|
57
56
|
"engines": {
|
|
58
57
|
"node": ">=6.0"
|
|
58
|
+
},
|
|
59
|
+
"xo": {
|
|
60
|
+
"rules": {
|
|
61
|
+
"import/extensions": "off"
|
|
62
|
+
}
|
|
59
63
|
}
|
|
60
64
|
}
|
|
@@ -129,6 +129,7 @@ function useColors() {
|
|
|
129
129
|
|
|
130
130
|
// Is webkit? http://stackoverflow.com/a/16459606/376773
|
|
131
131
|
// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
|
|
132
|
+
// eslint-disable-next-line no-return-assign
|
|
132
133
|
return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||
|
|
133
134
|
// Is firebug? http://stackoverflow.com/a/398120/376773
|
|
134
135
|
(typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||
|
|
@@ -218,7 +219,7 @@ function save(namespaces) {
|
|
|
218
219
|
function load() {
|
|
219
220
|
let r;
|
|
220
221
|
try {
|
|
221
|
-
r = exports.storage.getItem('debug');
|
|
222
|
+
r = exports.storage.getItem('debug') || exports.storage.getItem('DEBUG') ;
|
|
222
223
|
} catch (error) {
|
|
223
224
|
// Swallow
|
|
224
225
|
// XXX (@Qix-) should we be logging these?
|