@contrast/agent-bundle 5.45.1 → 5.47.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/README.md +1 -1
- package/node_modules/@contrast/agent/README.md +1 -1
- package/node_modules/@contrast/agent/package.json +12 -12
- package/node_modules/@contrast/agentify/package.json +15 -15
- package/node_modules/@contrast/architecture-components/package.json +5 -5
- package/node_modules/@contrast/assess/lib/{session-configuration → configuration-analysis}/common.js +1 -1
- package/node_modules/@contrast/assess/lib/{session-configuration → configuration-analysis}/handlers.js +24 -11
- package/node_modules/@contrast/assess/lib/{session-configuration → configuration-analysis}/index.js +6 -4
- package/node_modules/@contrast/assess/lib/configuration-analysis/install/apollo-server.js +92 -0
- package/node_modules/@contrast/assess/lib/{session-configuration → configuration-analysis}/install/express-session.js +2 -2
- package/node_modules/@contrast/assess/lib/{session-configuration → configuration-analysis}/install/fastify-cookie.js +2 -2
- package/node_modules/@contrast/assess/lib/configuration-analysis/install/graphql-yoga.js +90 -0
- package/node_modules/@contrast/assess/lib/{session-configuration → configuration-analysis}/install/hapi.js +2 -2
- package/node_modules/@contrast/assess/lib/{session-configuration → configuration-analysis}/install/koa.js +3 -3
- package/node_modules/@contrast/assess/lib/dataflow/propagation/install/string/substring.js +1 -1
- package/node_modules/@contrast/assess/lib/dataflow/sources/handler.js +30 -26
- package/node_modules/@contrast/assess/lib/dataflow/sources/index.js +2 -0
- package/node_modules/@contrast/assess/lib/dataflow/sources/install/fastify-websocket.js +63 -0
- package/node_modules/@contrast/assess/lib/dataflow/sources/install/http.js +42 -38
- package/node_modules/@contrast/assess/lib/dataflow/sources/install/koa/index.js +1 -1
- package/node_modules/@contrast/assess/lib/dataflow/sources/install/koa/koa-bodyparsers.js +76 -48
- package/node_modules/@contrast/assess/lib/dataflow/sources/install/koa/koa-multer.js +1 -1
- package/node_modules/@contrast/assess/lib/dataflow/sources/install/koa/koa-routers.js +2 -2
- package/node_modules/@contrast/assess/lib/dataflow/sources/install/koa/{koa2.js → koa.js} +3 -3
- package/node_modules/@contrast/assess/lib/dataflow/sources/install/socket.io.js +80 -0
- package/node_modules/@contrast/assess/lib/get-source-context.js +10 -21
- package/node_modules/@contrast/assess/lib/index.d.ts +4 -3
- package/node_modules/@contrast/assess/lib/index.js +2 -2
- package/node_modules/@contrast/assess/lib/make-source-context.js +5 -10
- package/node_modules/@contrast/assess/lib/policy.js +400 -0
- package/node_modules/@contrast/assess/lib/response-scanning/handlers/index.js +10 -14
- package/node_modules/@contrast/assess/package.json +12 -12
- package/node_modules/@contrast/common/lib/constants.d.ts +12 -4
- package/node_modules/@contrast/common/lib/constants.js +16 -7
- package/node_modules/@contrast/common/lib/types.d.ts +5 -1
- package/node_modules/@contrast/common/package.json +1 -1
- package/node_modules/@contrast/config/lib/common.js +1 -0
- package/node_modules/@contrast/config/lib/options.js +14 -0
- package/node_modules/@contrast/config/package.json +3 -3
- package/node_modules/@contrast/core/package.json +5 -5
- package/node_modules/@contrast/deadzones/package.json +5 -5
- package/node_modules/@contrast/dep-hooks/lib/package-finder.d.ts +2 -2
- package/node_modules/@contrast/dep-hooks/lib/package-finder.js +3 -2
- package/node_modules/@contrast/dep-hooks/package.json +4 -4
- package/node_modules/@contrast/esm-hooks/README.md +2 -2
- package/node_modules/@contrast/esm-hooks/package.json +6 -6
- package/node_modules/@contrast/instrumentation/package.json +5 -5
- package/node_modules/@contrast/library-analysis/lib/install/library-reporting/dep.json +149 -149
- package/node_modules/@contrast/library-analysis/lib/install/library-reporting/index.js +2 -11
- package/node_modules/@contrast/library-analysis/lib/install/library-reporting/utils.js +2 -0
- package/node_modules/@contrast/library-analysis/lib/install/library-usage/index.js +3 -1
- package/node_modules/@contrast/library-analysis/lib/util.js +0 -2
- package/node_modules/@contrast/library-analysis/package.json +4 -4
- package/node_modules/@contrast/logger/package.json +3 -3
- package/node_modules/@contrast/metrics/package.json +6 -6
- package/node_modules/@contrast/patcher/package.json +2 -2
- package/node_modules/@contrast/protect/lib/error-handlers/index.js +1 -1
- package/node_modules/@contrast/protect/lib/error-handlers/install/{koa2.js → koa.js} +4 -4
- package/node_modules/@contrast/protect/lib/index.d.ts +1 -1
- package/node_modules/@contrast/protect/lib/input-analysis/handlers.js +1 -12
- package/node_modules/@contrast/protect/lib/input-analysis/index.js +2 -3
- package/node_modules/@contrast/protect/lib/input-analysis/install/koa-bodyparsers.js +92 -0
- package/node_modules/@contrast/protect/lib/input-analysis/install/{koa2.js → koa.js} +5 -5
- package/node_modules/@contrast/protect/package.json +11 -11
- package/node_modules/@contrast/reporter/lib/reporters/contrast-ui/endpoints/application-activity/translations.js +6 -10
- package/node_modules/@contrast/reporter/lib/reporters/contrast-ui/endpoints/routes-observed.js +4 -0
- package/node_modules/@contrast/reporter/lib/reporters/contrast-ui/endpoints/traces/index.d.ts +1 -1
- package/node_modules/@contrast/reporter/lib/reporters/contrast-ui/endpoints/traces/index.js +1 -1
- package/node_modules/@contrast/reporter/lib/reporters/contrast-ui/endpoints/traces/translations.d.ts +1 -1
- package/node_modules/@contrast/reporter/lib/reporters/contrast-ui/endpoints/traces/translations.js +22 -9
- package/node_modules/@contrast/reporter/lib/reporters/file.js +1 -1
- package/node_modules/@contrast/reporter/package.json +6 -6
- package/node_modules/@contrast/rewriter/package.json +5 -5
- package/node_modules/@contrast/route-coverage/lib/index.d.ts +0 -2
- package/node_modules/@contrast/route-coverage/lib/index.js +10 -1
- package/node_modules/@contrast/route-coverage/lib/install/express/express5.js +16 -1
- package/node_modules/@contrast/route-coverage/lib/install/fastify.js +25 -15
- package/node_modules/@contrast/route-coverage/lib/install/graphql.js +6 -1
- package/node_modules/@contrast/route-coverage/lib/install/koa.js +1 -1
- package/node_modules/@contrast/route-coverage/lib/install/socket.io.js +127 -0
- package/node_modules/@contrast/route-coverage/package.json +8 -8
- package/node_modules/@contrast/scopes/package.json +5 -5
- package/node_modules/@contrast/sec-obs/package.json +9 -9
- package/node_modules/@contrast/sources/lib/index.js +65 -22
- package/node_modules/@contrast/sources/lib/index.test.js +78 -33
- package/node_modules/@contrast/sources/lib/source-info.js +1 -10
- package/node_modules/@contrast/sources/package.json +3 -3
- package/node_modules/@contrast/telemetry/package.json +5 -5
- package/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/node/assert/strict.d.ts +105 -2
- package/node_modules/@types/node/assert.d.ts +154 -95
- package/node_modules/@types/node/buffer.buffer.d.ts +9 -0
- package/node_modules/@types/node/buffer.d.ts +8 -4
- package/node_modules/@types/node/child_process.d.ts +65 -42
- package/node_modules/@types/node/cluster.d.ts +4 -5
- package/node_modules/@types/node/crypto.d.ts +1173 -322
- package/node_modules/@types/node/dgram.d.ts +9 -8
- package/node_modules/@types/node/diagnostics_channel.d.ts +0 -2
- package/node_modules/@types/node/dns.d.ts +1 -1
- package/node_modules/@types/node/events.d.ts +80 -34
- package/node_modules/@types/node/fs/promises.d.ts +39 -21
- package/node_modules/@types/node/fs.d.ts +328 -87
- package/node_modules/@types/node/globals.d.ts +2 -0
- package/node_modules/@types/node/globals.typedarray.d.ts +19 -0
- package/node_modules/@types/node/http.d.ts +94 -30
- package/node_modules/@types/node/http2.d.ts +178 -52
- package/node_modules/@types/node/https.d.ts +91 -62
- package/node_modules/@types/node/index.d.ts +2 -0
- package/node_modules/@types/node/inspector.d.ts +24 -0
- package/node_modules/@types/node/inspector.generated.d.ts +181 -0
- package/node_modules/@types/node/net.d.ts +12 -11
- package/node_modules/@types/node/os.d.ts +14 -3
- package/node_modules/@types/node/package.json +3 -3
- package/node_modules/@types/node/perf_hooks.d.ts +6 -8
- package/node_modules/@types/node/process.d.ts +12 -23
- package/node_modules/@types/node/readline/promises.d.ts +1 -1
- package/node_modules/@types/node/sea.d.ts +9 -0
- package/node_modules/@types/node/sqlite.d.ts +119 -10
- package/node_modules/@types/node/stream/consumers.d.ts +2 -2
- package/node_modules/@types/node/stream/web.d.ts +6 -55
- package/node_modules/@types/node/stream.d.ts +38 -23
- package/node_modules/@types/node/string_decoder.d.ts +2 -2
- package/node_modules/@types/node/test.d.ts +31 -26
- package/node_modules/@types/node/tls.d.ts +90 -66
- package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +10 -2
- package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +16 -0
- package/node_modules/@types/node/ts5.6/index.d.ts +2 -0
- package/node_modules/@types/node/ts5.7/index.d.ts +2 -0
- package/node_modules/@types/node/url.d.ts +8 -3
- package/node_modules/@types/node/util.d.ts +17 -3
- package/node_modules/@types/node/v8.d.ts +38 -5
- package/node_modules/@types/node/vm.d.ts +169 -88
- package/node_modules/@types/node/wasi.d.ts +1 -1
- package/node_modules/@types/node/web-globals/crypto.d.ts +32 -0
- package/node_modules/@types/node/web-globals/events.d.ts +3 -0
- package/node_modules/@types/node/web-globals/streams.d.ts +22 -0
- package/node_modules/@types/node/worker_threads.d.ts +109 -48
- package/node_modules/@types/node/zlib.d.ts +31 -24
- package/node_modules/axios/CHANGELOG.md +403 -357
- package/node_modules/axios/README.md +80 -49
- package/node_modules/axios/dist/axios.js +121 -46
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +2 -2
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +126 -57
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +126 -57
- package/node_modules/axios/dist/esm/axios.js.map +1 -1
- package/node_modules/axios/dist/esm/axios.min.js +2 -2
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +346 -97
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +4 -0
- package/node_modules/axios/index.d.ts +4 -0
- package/node_modules/axios/lib/adapters/adapters.js +85 -40
- package/node_modules/axios/lib/adapters/fetch.js +1 -1
- package/node_modules/axios/lib/adapters/http.js +220 -42
- package/node_modules/axios/lib/core/InterceptorManager.js +1 -1
- package/node_modules/axios/lib/core/mergeConfig.js +4 -4
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/HttpStatusCode.js +6 -0
- package/node_modules/axios/lib/helpers/bind.js +7 -0
- package/node_modules/axios/lib/helpers/cookies.js +24 -13
- package/node_modules/axios/package.json +9 -4
- package/node_modules/detect-libc/lib/filesystem.js +1 -1
- package/node_modules/detect-libc/package.json +3 -1
- package/node_modules/node-abi/abi_registry.json +12 -2
- package/node_modules/node-abi/package.json +3 -6
- package/node_modules/semver/classes/range.js +1 -0
- package/node_modules/semver/classes/semver.js +19 -5
- package/node_modules/semver/internal/identifiers.js +4 -0
- package/node_modules/semver/package.json +3 -3
- package/node_modules/undici-types/agent.d.ts +1 -4
- package/node_modules/undici-types/client.d.ts +0 -2
- package/node_modules/undici-types/diagnostics-channel.d.ts +0 -1
- package/node_modules/undici-types/dispatcher.d.ts +0 -6
- package/node_modules/undici-types/errors.d.ts +5 -15
- package/node_modules/undici-types/eventsource.d.ts +6 -1
- package/node_modules/undici-types/h2c-client.d.ts +0 -2
- package/node_modules/undici-types/index.d.ts +6 -1
- package/node_modules/undici-types/interceptors.d.ts +5 -0
- package/node_modules/undici-types/mock-interceptor.d.ts +0 -1
- package/node_modules/undici-types/package.json +1 -1
- package/node_modules/undici-types/snapshot-agent.d.ts +109 -0
- package/node_modules/undici-types/webidl.d.ts +82 -21
- package/package.json +3 -3
- package/node_modules/@contrast/assess/lib/get-policy.js +0 -336
- package/node_modules/@contrast/protect/lib/input-analysis/install/koa-body5.js +0 -63
- package/node_modules/@contrast/protect/lib/input-analysis/install/koa-bodyparser4.js +0 -64
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* @see [source](https://github.com/nodejs/node/blob/v24.x/lib/net.js)
|
|
14
14
|
*/
|
|
15
15
|
declare module "net" {
|
|
16
|
+
import { NonSharedBuffer } from "node:buffer";
|
|
16
17
|
import * as stream from "node:stream";
|
|
17
18
|
import { Abortable, EventEmitter } from "node:events";
|
|
18
19
|
import * as dns from "node:dns";
|
|
@@ -32,7 +33,7 @@ declare module "net" {
|
|
|
32
33
|
onread?: OnReadOpts | undefined;
|
|
33
34
|
readable?: boolean | undefined;
|
|
34
35
|
writable?: boolean | undefined;
|
|
35
|
-
signal?: AbortSignal;
|
|
36
|
+
signal?: AbortSignal | undefined;
|
|
36
37
|
}
|
|
37
38
|
interface OnReadOpts {
|
|
38
39
|
buffer: Uint8Array | (() => Uint8Array);
|
|
@@ -321,25 +322,25 @@ declare module "net" {
|
|
|
321
322
|
* the socket is destroyed (for example, if the client disconnected).
|
|
322
323
|
* @since v0.5.10
|
|
323
324
|
*/
|
|
324
|
-
readonly remoteAddress
|
|
325
|
+
readonly remoteAddress: string | undefined;
|
|
325
326
|
/**
|
|
326
327
|
* The string representation of the remote IP family. `'IPv4'` or `'IPv6'`. Value may be `undefined` if
|
|
327
328
|
* the socket is destroyed (for example, if the client disconnected).
|
|
328
329
|
* @since v0.11.14
|
|
329
330
|
*/
|
|
330
|
-
readonly remoteFamily
|
|
331
|
+
readonly remoteFamily: string | undefined;
|
|
331
332
|
/**
|
|
332
333
|
* The numeric representation of the remote port. For example, `80` or `21`. Value may be `undefined` if
|
|
333
334
|
* the socket is destroyed (for example, if the client disconnected).
|
|
334
335
|
* @since v0.5.10
|
|
335
336
|
*/
|
|
336
|
-
readonly remotePort
|
|
337
|
+
readonly remotePort: number | undefined;
|
|
337
338
|
/**
|
|
338
339
|
* The socket timeout in milliseconds as set by `socket.setTimeout()`.
|
|
339
340
|
* It is `undefined` if a timeout has not been set.
|
|
340
341
|
* @since v10.7.0
|
|
341
342
|
*/
|
|
342
|
-
readonly timeout?: number
|
|
343
|
+
readonly timeout?: number;
|
|
343
344
|
/**
|
|
344
345
|
* Half-closes the socket. i.e., it sends a FIN packet. It is possible the
|
|
345
346
|
* server will still send some data.
|
|
@@ -380,7 +381,7 @@ declare module "net" {
|
|
|
380
381
|
event: "connectionAttemptTimeout",
|
|
381
382
|
listener: (ip: string, port: number, family: number) => void,
|
|
382
383
|
): this;
|
|
383
|
-
addListener(event: "data", listener: (data:
|
|
384
|
+
addListener(event: "data", listener: (data: NonSharedBuffer) => void): this;
|
|
384
385
|
addListener(event: "drain", listener: () => void): this;
|
|
385
386
|
addListener(event: "end", listener: () => void): this;
|
|
386
387
|
addListener(event: "error", listener: (err: Error) => void): this;
|
|
@@ -396,7 +397,7 @@ declare module "net" {
|
|
|
396
397
|
emit(event: "connectionAttempt", ip: string, port: number, family: number): boolean;
|
|
397
398
|
emit(event: "connectionAttemptFailed", ip: string, port: number, family: number, error: Error): boolean;
|
|
398
399
|
emit(event: "connectionAttemptTimeout", ip: string, port: number, family: number): boolean;
|
|
399
|
-
emit(event: "data", data:
|
|
400
|
+
emit(event: "data", data: NonSharedBuffer): boolean;
|
|
400
401
|
emit(event: "drain"): boolean;
|
|
401
402
|
emit(event: "end"): boolean;
|
|
402
403
|
emit(event: "error", err: Error): boolean;
|
|
@@ -412,7 +413,7 @@ declare module "net" {
|
|
|
412
413
|
listener: (ip: string, port: number, family: number, error: Error) => void,
|
|
413
414
|
): this;
|
|
414
415
|
on(event: "connectionAttemptTimeout", listener: (ip: string, port: number, family: number) => void): this;
|
|
415
|
-
on(event: "data", listener: (data:
|
|
416
|
+
on(event: "data", listener: (data: NonSharedBuffer) => void): this;
|
|
416
417
|
on(event: "drain", listener: () => void): this;
|
|
417
418
|
on(event: "end", listener: () => void): this;
|
|
418
419
|
on(event: "error", listener: (err: Error) => void): this;
|
|
@@ -431,7 +432,7 @@ declare module "net" {
|
|
|
431
432
|
): this;
|
|
432
433
|
once(event: "connectionAttemptTimeout", listener: (ip: string, port: number, family: number) => void): this;
|
|
433
434
|
once(event: "connect", listener: () => void): this;
|
|
434
|
-
once(event: "data", listener: (data:
|
|
435
|
+
once(event: "data", listener: (data: NonSharedBuffer) => void): this;
|
|
435
436
|
once(event: "drain", listener: () => void): this;
|
|
436
437
|
once(event: "end", listener: () => void): this;
|
|
437
438
|
once(event: "error", listener: (err: Error) => void): this;
|
|
@@ -453,7 +454,7 @@ declare module "net" {
|
|
|
453
454
|
event: "connectionAttemptTimeout",
|
|
454
455
|
listener: (ip: string, port: number, family: number) => void,
|
|
455
456
|
): this;
|
|
456
|
-
prependListener(event: "data", listener: (data:
|
|
457
|
+
prependListener(event: "data", listener: (data: NonSharedBuffer) => void): this;
|
|
457
458
|
prependListener(event: "drain", listener: () => void): this;
|
|
458
459
|
prependListener(event: "end", listener: () => void): this;
|
|
459
460
|
prependListener(event: "error", listener: (err: Error) => void): this;
|
|
@@ -478,7 +479,7 @@ declare module "net" {
|
|
|
478
479
|
event: "connectionAttemptTimeout",
|
|
479
480
|
listener: (ip: string, port: number, family: number) => void,
|
|
480
481
|
): this;
|
|
481
|
-
prependOnceListener(event: "data", listener: (data:
|
|
482
|
+
prependOnceListener(event: "data", listener: (data: NonSharedBuffer) => void): this;
|
|
482
483
|
prependOnceListener(event: "drain", listener: () => void): this;
|
|
483
484
|
prependOnceListener(event: "end", listener: () => void): this;
|
|
484
485
|
prependOnceListener(event: "error", listener: (err: Error) => void): this;
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
* @see [source](https://github.com/nodejs/node/blob/v24.x/lib/os.js)
|
|
9
9
|
*/
|
|
10
10
|
declare module "os" {
|
|
11
|
+
import { NonSharedBuffer } from "buffer";
|
|
11
12
|
interface CpuInfo {
|
|
12
13
|
model: string;
|
|
13
14
|
speed: number;
|
|
@@ -30,10 +31,10 @@ declare module "os" {
|
|
|
30
31
|
mac: string;
|
|
31
32
|
internal: boolean;
|
|
32
33
|
cidr: string | null;
|
|
34
|
+
scopeid?: number;
|
|
33
35
|
}
|
|
34
36
|
interface NetworkInterfaceInfoIPv4 extends NetworkInterfaceBase {
|
|
35
37
|
family: "IPv4";
|
|
36
|
-
scopeid?: undefined;
|
|
37
38
|
}
|
|
38
39
|
interface NetworkInterfaceInfoIPv6 extends NetworkInterfaceBase {
|
|
39
40
|
family: "IPv6";
|
|
@@ -231,6 +232,15 @@ declare module "os" {
|
|
|
231
232
|
* @since v2.3.0
|
|
232
233
|
*/
|
|
233
234
|
function homedir(): string;
|
|
235
|
+
interface UserInfoOptions {
|
|
236
|
+
encoding?: BufferEncoding | "buffer" | undefined;
|
|
237
|
+
}
|
|
238
|
+
interface UserInfoOptionsWithBufferEncoding extends UserInfoOptions {
|
|
239
|
+
encoding: "buffer";
|
|
240
|
+
}
|
|
241
|
+
interface UserInfoOptionsWithStringEncoding extends UserInfoOptions {
|
|
242
|
+
encoding?: BufferEncoding | undefined;
|
|
243
|
+
}
|
|
234
244
|
/**
|
|
235
245
|
* Returns information about the currently effective user. On POSIX platforms,
|
|
236
246
|
* this is typically a subset of the password file. The returned object includes
|
|
@@ -244,8 +254,9 @@ declare module "os" {
|
|
|
244
254
|
* Throws a [`SystemError`](https://nodejs.org/docs/latest-v24.x/api/errors.html#class-systemerror) if a user has no `username` or `homedir`.
|
|
245
255
|
* @since v6.0.0
|
|
246
256
|
*/
|
|
247
|
-
function userInfo(options
|
|
248
|
-
function userInfo(options
|
|
257
|
+
function userInfo(options?: UserInfoOptionsWithStringEncoding): UserInfo<string>;
|
|
258
|
+
function userInfo(options: UserInfoOptionsWithBufferEncoding): UserInfo<NonSharedBuffer>;
|
|
259
|
+
function userInfo(options: UserInfoOptions): UserInfo<string | NonSharedBuffer>;
|
|
249
260
|
type SignalConstants = {
|
|
250
261
|
[key in NodeJS.Signals]: number;
|
|
251
262
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "24.
|
|
3
|
+
"version": "24.9.2",
|
|
4
4
|
"description": "TypeScript definitions for node",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -147,9 +147,9 @@
|
|
|
147
147
|
},
|
|
148
148
|
"scripts": {},
|
|
149
149
|
"dependencies": {
|
|
150
|
-
"undici-types": "~7.
|
|
150
|
+
"undici-types": "~7.16.0"
|
|
151
151
|
},
|
|
152
152
|
"peerDependencies": {},
|
|
153
|
-
"typesPublisherContentHash": "
|
|
153
|
+
"typesPublisherContentHash": "7485e2b36dbca4bd6584c40d09cac326c54ac8847561c62753f014789000ec21",
|
|
154
154
|
"typeScriptVersion": "5.2"
|
|
155
155
|
}
|
|
@@ -48,13 +48,13 @@ declare module "perf_hooks" {
|
|
|
48
48
|
* the type of garbage collection operation that occurred.
|
|
49
49
|
* See perf_hooks.constants for valid values.
|
|
50
50
|
*/
|
|
51
|
-
readonly kind
|
|
51
|
+
readonly kind: number;
|
|
52
52
|
/**
|
|
53
53
|
* When `performanceEntry.entryType` is equal to 'gc', the `performance.flags`
|
|
54
54
|
* property contains additional information about garbage collection operation.
|
|
55
55
|
* See perf_hooks.constants for valid values.
|
|
56
56
|
*/
|
|
57
|
-
readonly flags
|
|
57
|
+
readonly flags: number;
|
|
58
58
|
}
|
|
59
59
|
/**
|
|
60
60
|
* The constructor of this class is not exposed to users directly.
|
|
@@ -92,11 +92,6 @@ declare module "perf_hooks" {
|
|
|
92
92
|
* @since v8.5.0
|
|
93
93
|
*/
|
|
94
94
|
readonly entryType: EntryType;
|
|
95
|
-
/**
|
|
96
|
-
* Additional detail specific to the `entryType`.
|
|
97
|
-
* @since v16.0.0
|
|
98
|
-
*/
|
|
99
|
-
readonly detail?: NodeGCPerformanceDetail | unknown | undefined; // TODO: Narrow this based on entry type.
|
|
100
95
|
toJSON(): any;
|
|
101
96
|
}
|
|
102
97
|
/**
|
|
@@ -104,6 +99,7 @@ declare module "perf_hooks" {
|
|
|
104
99
|
* @since v18.2.0, v16.17.0
|
|
105
100
|
*/
|
|
106
101
|
class PerformanceMark extends PerformanceEntry {
|
|
102
|
+
readonly detail: any;
|
|
107
103
|
readonly duration: 0;
|
|
108
104
|
readonly entryType: "mark";
|
|
109
105
|
}
|
|
@@ -114,6 +110,7 @@ declare module "perf_hooks" {
|
|
|
114
110
|
* @since v18.2.0, v16.17.0
|
|
115
111
|
*/
|
|
116
112
|
class PerformanceMeasure extends PerformanceEntry {
|
|
113
|
+
readonly detail: any;
|
|
117
114
|
readonly entryType: "measure";
|
|
118
115
|
}
|
|
119
116
|
interface UVMetrics {
|
|
@@ -130,6 +127,7 @@ declare module "perf_hooks" {
|
|
|
130
127
|
*/
|
|
131
128
|
readonly eventsWaiting: number;
|
|
132
129
|
}
|
|
130
|
+
// TODO: PerformanceNodeEntry is missing
|
|
133
131
|
/**
|
|
134
132
|
* _This property is an extension by Node.js. It is not available in Web browsers._
|
|
135
133
|
*
|
|
@@ -225,7 +223,7 @@ declare module "perf_hooks" {
|
|
|
225
223
|
/**
|
|
226
224
|
* Additional optional detail to include with the mark.
|
|
227
225
|
*/
|
|
228
|
-
detail?: unknown
|
|
226
|
+
detail?: unknown;
|
|
229
227
|
/**
|
|
230
228
|
* Duration between start and end times.
|
|
231
229
|
*/
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
declare module "process" {
|
|
2
|
+
import { Control, MessageOptions, SendHandle } from "node:child_process";
|
|
3
|
+
import { PathLike } from "node:fs";
|
|
2
4
|
import * as tty from "node:tty";
|
|
3
5
|
import { Worker } from "node:worker_threads";
|
|
4
6
|
|
|
@@ -330,7 +332,7 @@ declare module "process" {
|
|
|
330
332
|
*/
|
|
331
333
|
type UnhandledRejectionListener = (reason: unknown, promise: Promise<unknown>) => void;
|
|
332
334
|
type WarningListener = (warning: Error) => void;
|
|
333
|
-
type MessageListener = (message: unknown, sendHandle:
|
|
335
|
+
type MessageListener = (message: unknown, sendHandle: SendHandle) => void;
|
|
334
336
|
type SignalsListener = (signal: Signals) => void;
|
|
335
337
|
type MultipleResolveListener = (
|
|
336
338
|
type: MultipleResolveType,
|
|
@@ -346,7 +348,7 @@ declare module "process" {
|
|
|
346
348
|
/**
|
|
347
349
|
* Can be used to change the default timezone at runtime
|
|
348
350
|
*/
|
|
349
|
-
TZ?: string;
|
|
351
|
+
TZ?: string | undefined;
|
|
350
352
|
}
|
|
351
353
|
interface HRTime {
|
|
352
354
|
/**
|
|
@@ -990,7 +992,7 @@ declare module "process" {
|
|
|
990
992
|
* @since v0.1.13
|
|
991
993
|
* @param [code=0] The exit code. For string type, only integer strings (e.g.,'1') are allowed.
|
|
992
994
|
*/
|
|
993
|
-
exit(code?: number | string | null
|
|
995
|
+
exit(code?: number | string | null): never;
|
|
994
996
|
/**
|
|
995
997
|
* A number which will be the process exit code, when the process either
|
|
996
998
|
* exits gracefully, or is exited via {@link exit} without specifying
|
|
@@ -1001,7 +1003,7 @@ declare module "process" {
|
|
|
1001
1003
|
* @default undefined
|
|
1002
1004
|
* @since v0.11.8
|
|
1003
1005
|
*/
|
|
1004
|
-
exitCode
|
|
1006
|
+
exitCode: number | string | null | undefined;
|
|
1005
1007
|
finalization: {
|
|
1006
1008
|
/**
|
|
1007
1009
|
* This function registers a callback to be called when the process emits the `exit` event if the `ref` object was not garbage collected.
|
|
@@ -1465,7 +1467,7 @@ declare module "process" {
|
|
|
1465
1467
|
* @since v20.12.0
|
|
1466
1468
|
* @param path The path to the .env file
|
|
1467
1469
|
*/
|
|
1468
|
-
loadEnvFile(path?:
|
|
1470
|
+
loadEnvFile(path?: PathLike): void;
|
|
1469
1471
|
/**
|
|
1470
1472
|
* The `process.pid` property returns the PID of the process.
|
|
1471
1473
|
*
|
|
@@ -1568,7 +1570,7 @@ declare module "process" {
|
|
|
1568
1570
|
* @since v0.1.17
|
|
1569
1571
|
* @deprecated Since v14.0.0 - Use `main` instead.
|
|
1570
1572
|
*/
|
|
1571
|
-
mainModule?: Module
|
|
1573
|
+
mainModule?: Module;
|
|
1572
1574
|
memoryUsage: MemoryUsageFn;
|
|
1573
1575
|
/**
|
|
1574
1576
|
* Gets the amount of memory available to the process (in bytes) based on
|
|
@@ -1760,18 +1762,7 @@ declare module "process" {
|
|
|
1760
1762
|
* If no IPC channel exists, this property is undefined.
|
|
1761
1763
|
* @since v7.1.0
|
|
1762
1764
|
*/
|
|
1763
|
-
channel?:
|
|
1764
|
-
/**
|
|
1765
|
-
* This method makes the IPC channel keep the event loop of the process running if .unref() has been called before.
|
|
1766
|
-
* @since v7.1.0
|
|
1767
|
-
*/
|
|
1768
|
-
ref(): void;
|
|
1769
|
-
/**
|
|
1770
|
-
* This method makes the IPC channel not keep the event loop of the process running, and lets it finish even while the channel is open.
|
|
1771
|
-
* @since v7.1.0
|
|
1772
|
-
*/
|
|
1773
|
-
unref(): void;
|
|
1774
|
-
};
|
|
1765
|
+
channel?: Control;
|
|
1775
1766
|
/**
|
|
1776
1767
|
* If Node.js is spawned with an IPC channel, the `process.send()` method can be
|
|
1777
1768
|
* used to send messages to the parent process. Messages will be received as a `'message'` event on the parent's `ChildProcess` object.
|
|
@@ -1785,10 +1776,8 @@ declare module "process" {
|
|
|
1785
1776
|
*/
|
|
1786
1777
|
send?(
|
|
1787
1778
|
message: any,
|
|
1788
|
-
sendHandle?:
|
|
1789
|
-
options?:
|
|
1790
|
-
keepOpen?: boolean | undefined;
|
|
1791
|
-
},
|
|
1779
|
+
sendHandle?: SendHandle,
|
|
1780
|
+
options?: MessageOptions,
|
|
1792
1781
|
callback?: (error: Error | null) => void,
|
|
1793
1782
|
): boolean;
|
|
1794
1783
|
/**
|
|
@@ -1991,7 +1980,7 @@ declare module "process" {
|
|
|
1991
1980
|
emit(event: "uncaughtExceptionMonitor", error: Error): boolean;
|
|
1992
1981
|
emit(event: "unhandledRejection", reason: unknown, promise: Promise<unknown>): boolean;
|
|
1993
1982
|
emit(event: "warning", warning: Error): boolean;
|
|
1994
|
-
emit(event: "message", message: unknown, sendHandle:
|
|
1983
|
+
emit(event: "message", message: unknown, sendHandle: SendHandle): this;
|
|
1995
1984
|
emit(event: Signals, signal?: Signals): boolean;
|
|
1996
1985
|
emit(
|
|
1997
1986
|
event: "multipleResolves",
|
|
@@ -150,4 +150,13 @@ declare module "node:sea" {
|
|
|
150
150
|
* @since v20.12.0
|
|
151
151
|
*/
|
|
152
152
|
function getRawAsset(key: AssetKey): ArrayBuffer;
|
|
153
|
+
/**
|
|
154
|
+
* This method can be used to retrieve an array of all the keys of assets
|
|
155
|
+
* embedded into the single-executable application.
|
|
156
|
+
* An error is thrown when not running inside a single-executable application.
|
|
157
|
+
* @since v24.8.0
|
|
158
|
+
* @returns An array containing all the keys of the assets
|
|
159
|
+
* embedded in the executable. If no assets are embedded, returns an empty array.
|
|
160
|
+
*/
|
|
161
|
+
function getAssetKeys(): string[];
|
|
153
162
|
}
|
|
@@ -43,10 +43,9 @@
|
|
|
43
43
|
* @see [source](https://github.com/nodejs/node/blob/v24.x/lib/sqlite.js)
|
|
44
44
|
*/
|
|
45
45
|
declare module "node:sqlite" {
|
|
46
|
+
import { PathLike } from "node:fs";
|
|
46
47
|
type SQLInputValue = null | number | bigint | string | NodeJS.ArrayBufferView;
|
|
47
|
-
type SQLOutputValue = null | number | bigint | string |
|
|
48
|
-
/** @deprecated Use `SQLInputValue` or `SQLOutputValue` instead. */
|
|
49
|
-
type SupportedValueType = SQLOutputValue;
|
|
48
|
+
type SQLOutputValue = null | number | bigint | string | NodeJS.NonSharedUint8Array;
|
|
50
49
|
interface DatabaseSyncOptions {
|
|
51
50
|
/**
|
|
52
51
|
* If `true`, the database is opened by the constructor. When
|
|
@@ -240,7 +239,7 @@ declare module "node:sqlite" {
|
|
|
240
239
|
* To use an in-memory database, the path should be the special name `':memory:'`.
|
|
241
240
|
* @param options Configuration options for the database connection.
|
|
242
241
|
*/
|
|
243
|
-
constructor(path:
|
|
242
|
+
constructor(path: PathLike, options?: DatabaseSyncOptions);
|
|
244
243
|
/**
|
|
245
244
|
* Registers a new aggregate function with the SQLite database. This method is a wrapper around
|
|
246
245
|
* [`sqlite3_create_window_function()`](https://www.sqlite.org/c3ref/create_function.html).
|
|
@@ -355,6 +354,47 @@ declare module "node:sqlite" {
|
|
|
355
354
|
* @return The prepared statement.
|
|
356
355
|
*/
|
|
357
356
|
prepare(sql: string): StatementSync;
|
|
357
|
+
/**
|
|
358
|
+
* Creates a new `SQLTagStore`, which is an LRU (Least Recently Used) cache for
|
|
359
|
+
* storing prepared statements. This allows for the efficient reuse of prepared
|
|
360
|
+
* statements by tagging them with a unique identifier.
|
|
361
|
+
*
|
|
362
|
+
* When a tagged SQL literal is executed, the `SQLTagStore` checks if a prepared
|
|
363
|
+
* statement for that specific SQL string already exists in the cache. If it does,
|
|
364
|
+
* the cached statement is used. If not, a new prepared statement is created,
|
|
365
|
+
* executed, and then stored in the cache for future use. This mechanism helps to
|
|
366
|
+
* avoid the overhead of repeatedly parsing and preparing the same SQL statements.
|
|
367
|
+
*
|
|
368
|
+
* ```js
|
|
369
|
+
* import { DatabaseSync } from 'node:sqlite';
|
|
370
|
+
*
|
|
371
|
+
* const db = new DatabaseSync(':memory:');
|
|
372
|
+
* const sql = db.createSQLTagStore();
|
|
373
|
+
*
|
|
374
|
+
* db.exec('CREATE TABLE users (id INT, name TEXT)');
|
|
375
|
+
*
|
|
376
|
+
* // Using the 'run' method to insert data.
|
|
377
|
+
* // The tagged literal is used to identify the prepared statement.
|
|
378
|
+
* sql.run`INSERT INTO users VALUES (1, 'Alice')`;
|
|
379
|
+
* sql.run`INSERT INTO users VALUES (2, 'Bob')`;
|
|
380
|
+
*
|
|
381
|
+
* // Using the 'get' method to retrieve a single row.
|
|
382
|
+
* const id = 1;
|
|
383
|
+
* const user = sql.get`SELECT * FROM users WHERE id = ${id}`;
|
|
384
|
+
* console.log(user); // { id: 1, name: 'Alice' }
|
|
385
|
+
*
|
|
386
|
+
* // Using the 'all' method to retrieve all rows.
|
|
387
|
+
* const allUsers = sql.all`SELECT * FROM users ORDER BY id`;
|
|
388
|
+
* console.log(allUsers);
|
|
389
|
+
* // [
|
|
390
|
+
* // { id: 1, name: 'Alice' },
|
|
391
|
+
* // { id: 2, name: 'Bob' }
|
|
392
|
+
* // ]
|
|
393
|
+
* ```
|
|
394
|
+
* @since v24.9.0
|
|
395
|
+
* @returns A new SQL tag store for caching prepared statements.
|
|
396
|
+
*/
|
|
397
|
+
createTagStore(maxSize?: number): SQLTagStore;
|
|
358
398
|
/**
|
|
359
399
|
* Creates and attaches a session to the database. This method is a wrapper around
|
|
360
400
|
* [`sqlite3session_create()`](https://www.sqlite.org/session/sqlite3session_create.html) and
|
|
@@ -410,7 +450,7 @@ declare module "node:sqlite" {
|
|
|
410
450
|
* @returns Binary changeset that can be applied to other databases.
|
|
411
451
|
* @since v22.12.0
|
|
412
452
|
*/
|
|
413
|
-
changeset():
|
|
453
|
+
changeset(): NodeJS.NonSharedUint8Array;
|
|
414
454
|
/**
|
|
415
455
|
* Similar to the method above, but generates a more compact patchset. See
|
|
416
456
|
* [Changesets and Patchsets](https://www.sqlite.org/sessionintro.html#changesets_and_patchsets)
|
|
@@ -420,7 +460,7 @@ declare module "node:sqlite" {
|
|
|
420
460
|
* @returns Binary patchset that can be applied to other databases.
|
|
421
461
|
* @since v22.12.0
|
|
422
462
|
*/
|
|
423
|
-
patchset():
|
|
463
|
+
patchset(): NodeJS.NonSharedUint8Array;
|
|
424
464
|
/**
|
|
425
465
|
* Closes the session. An exception is thrown if the database or the session is not open. This method is a
|
|
426
466
|
* wrapper around
|
|
@@ -428,6 +468,73 @@ declare module "node:sqlite" {
|
|
|
428
468
|
*/
|
|
429
469
|
close(): void;
|
|
430
470
|
}
|
|
471
|
+
/**
|
|
472
|
+
* This class represents a single LRU (Least Recently Used) cache for storing
|
|
473
|
+
* prepared statements.
|
|
474
|
+
*
|
|
475
|
+
* Instances of this class are created via the database.createSQLTagStore() method,
|
|
476
|
+
* not by using a constructor. The store caches prepared statements based on the
|
|
477
|
+
* provided SQL query string. When the same query is seen again, the store
|
|
478
|
+
* retrieves the cached statement and safely applies the new values through
|
|
479
|
+
* parameter binding, thereby preventing attacks like SQL injection.
|
|
480
|
+
*
|
|
481
|
+
* The cache has a maxSize that defaults to 1000 statements, but a custom size can
|
|
482
|
+
* be provided (e.g., database.createSQLTagStore(100)). All APIs exposed by this
|
|
483
|
+
* class execute synchronously.
|
|
484
|
+
* @since v24.9.0
|
|
485
|
+
*/
|
|
486
|
+
interface SQLTagStore {
|
|
487
|
+
/**
|
|
488
|
+
* Executes the given SQL query and returns all resulting rows as an array of objects.
|
|
489
|
+
* @since v24.9.0
|
|
490
|
+
*/
|
|
491
|
+
all(
|
|
492
|
+
stringElements: TemplateStringsArray,
|
|
493
|
+
...boundParameters: SQLInputValue[]
|
|
494
|
+
): Record<string, SQLOutputValue>[];
|
|
495
|
+
/**
|
|
496
|
+
* Executes the given SQL query and returns the first resulting row as an object.
|
|
497
|
+
* @since v24.9.0
|
|
498
|
+
*/
|
|
499
|
+
get(
|
|
500
|
+
stringElements: TemplateStringsArray,
|
|
501
|
+
...boundParameters: SQLInputValue[]
|
|
502
|
+
): Record<string, SQLOutputValue> | undefined;
|
|
503
|
+
/**
|
|
504
|
+
* Executes the given SQL query and returns an iterator over the resulting rows.
|
|
505
|
+
* @since v24.9.0
|
|
506
|
+
*/
|
|
507
|
+
iterate(
|
|
508
|
+
stringElements: TemplateStringsArray,
|
|
509
|
+
...boundParameters: SQLInputValue[]
|
|
510
|
+
): NodeJS.Iterator<Record<string, SQLOutputValue>>;
|
|
511
|
+
/**
|
|
512
|
+
* Executes the given SQL query, which is expected to not return any rows (e.g., INSERT, UPDATE, DELETE).
|
|
513
|
+
* @since v24.9.0
|
|
514
|
+
*/
|
|
515
|
+
run(stringElements: TemplateStringsArray, ...boundParameters: SQLInputValue[]): StatementResultingChanges;
|
|
516
|
+
/**
|
|
517
|
+
* A read-only property that returns the number of prepared statements currently in the cache.
|
|
518
|
+
* @since v24.9.0
|
|
519
|
+
* @returns The maximum number of prepared statements the cache can hold.
|
|
520
|
+
*/
|
|
521
|
+
size(): number;
|
|
522
|
+
/**
|
|
523
|
+
* A read-only property that returns the maximum number of prepared statements the cache can hold.
|
|
524
|
+
* @since v24.9.0
|
|
525
|
+
*/
|
|
526
|
+
readonly capacity: number;
|
|
527
|
+
/**
|
|
528
|
+
* A read-only property that returns the `DatabaseSync` object associated with this `SQLTagStore`.
|
|
529
|
+
* @since v24.9.0
|
|
530
|
+
*/
|
|
531
|
+
readonly db: DatabaseSync;
|
|
532
|
+
/**
|
|
533
|
+
* Resets the LRU cache, clearing all stored prepared statements.
|
|
534
|
+
* @since v24.9.0
|
|
535
|
+
*/
|
|
536
|
+
clear(): void;
|
|
537
|
+
}
|
|
431
538
|
interface StatementColumnMetadata {
|
|
432
539
|
/**
|
|
433
540
|
* The unaliased name of the column in the origin
|
|
@@ -637,8 +744,9 @@ declare module "node:sqlite" {
|
|
|
637
744
|
*/
|
|
638
745
|
rate?: number | undefined;
|
|
639
746
|
/**
|
|
640
|
-
*
|
|
641
|
-
*
|
|
747
|
+
* An optional callback function that will be called after each backup step. The argument passed
|
|
748
|
+
* to this callback is an `Object` with `remainingPages` and `totalPages` properties, describing the current progress
|
|
749
|
+
* of the backup operation.
|
|
642
750
|
*/
|
|
643
751
|
progress?: ((progressInfo: BackupProgressInfo) => void) | undefined;
|
|
644
752
|
}
|
|
@@ -675,9 +783,10 @@ declare module "node:sqlite" {
|
|
|
675
783
|
* the contents will be overwritten.
|
|
676
784
|
* @param options Optional configuration for the backup. The
|
|
677
785
|
* following properties are supported:
|
|
678
|
-
* @returns A promise that
|
|
786
|
+
* @returns A promise that fulfills with the total number of backed-up pages upon completion, or rejects if an
|
|
787
|
+
* error occurs.
|
|
679
788
|
*/
|
|
680
|
-
function backup(sourceDb: DatabaseSync, path:
|
|
789
|
+
function backup(sourceDb: DatabaseSync, path: PathLike, options?: BackupOptions): Promise<number>;
|
|
681
790
|
/**
|
|
682
791
|
* @since v22.13.0
|
|
683
792
|
*/
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @since v16.7.0
|
|
5
5
|
*/
|
|
6
6
|
declare module "stream/consumers" {
|
|
7
|
-
import { Blob as NodeBlob } from "node:buffer";
|
|
7
|
+
import { Blob as NodeBlob, NonSharedBuffer } from "node:buffer";
|
|
8
8
|
import { ReadableStream as WebReadableStream } from "node:stream/web";
|
|
9
9
|
/**
|
|
10
10
|
* @since v16.7.0
|
|
@@ -20,7 +20,7 @@ declare module "stream/consumers" {
|
|
|
20
20
|
* @since v16.7.0
|
|
21
21
|
* @returns Fulfills with a `Buffer` containing the full contents of the stream.
|
|
22
22
|
*/
|
|
23
|
-
function buffer(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable<any>): Promise<
|
|
23
|
+
function buffer(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable<any>): Promise<NonSharedBuffer>;
|
|
24
24
|
/**
|
|
25
25
|
* @since v16.7.0
|
|
26
26
|
* @returns Fulfills with the contents of the stream parsed as a
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
type _ByteLengthQueuingStrategy = typeof globalThis extends { onmessage: any } ? {}
|
|
2
2
|
: import("stream/web").ByteLengthQueuingStrategy;
|
|
3
|
-
type _CompressionStream = typeof globalThis extends { onmessage: any; ReportingObserver: any } ? {}
|
|
4
|
-
: import("stream/web").CompressionStream;
|
|
5
3
|
type _CountQueuingStrategy = typeof globalThis extends { onmessage: any } ? {}
|
|
6
4
|
: import("stream/web").CountQueuingStrategy;
|
|
7
|
-
type _DecompressionStream = typeof globalThis extends { onmessage: any; ReportingObserver: any } ? {}
|
|
8
|
-
: import("stream/web").DecompressionStream;
|
|
9
5
|
type _QueuingStrategy<T = any> = typeof globalThis extends { onmessage: any } ? {}
|
|
10
6
|
: import("stream/web").QueuingStrategy<T>;
|
|
11
7
|
type _ReadableByteStreamController = typeof globalThis extends { onmessage: any } ? {}
|
|
@@ -412,22 +408,17 @@ declare module "stream/web" {
|
|
|
412
408
|
prototype: TextDecoderStream;
|
|
413
409
|
new(encoding?: string, options?: TextDecoderOptions): TextDecoderStream;
|
|
414
410
|
};
|
|
415
|
-
|
|
411
|
+
type CompressionFormat = "brotli" | "deflate" | "deflate-raw" | "gzip";
|
|
412
|
+
class CompressionStream {
|
|
413
|
+
constructor(format: CompressionFormat);
|
|
416
414
|
readonly readable: ReadableStream;
|
|
417
415
|
readonly writable: WritableStream;
|
|
418
416
|
}
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
new(format: "deflate" | "deflate-raw" | "gzip"): CompressionStream;
|
|
422
|
-
};
|
|
423
|
-
interface DecompressionStream {
|
|
424
|
-
readonly writable: WritableStream;
|
|
417
|
+
class DecompressionStream {
|
|
418
|
+
constructor(format: CompressionFormat);
|
|
425
419
|
readonly readable: ReadableStream;
|
|
420
|
+
readonly writable: WritableStream;
|
|
426
421
|
}
|
|
427
|
-
const DecompressionStream: {
|
|
428
|
-
prototype: DecompressionStream;
|
|
429
|
-
new(format: "deflate" | "deflate-raw" | "gzip"): DecompressionStream;
|
|
430
|
-
};
|
|
431
422
|
|
|
432
423
|
global {
|
|
433
424
|
interface ByteLengthQueuingStrategy extends _ByteLengthQueuingStrategy {}
|
|
@@ -440,26 +431,6 @@ declare module "stream/web" {
|
|
|
440
431
|
? T
|
|
441
432
|
: typeof import("stream/web").ByteLengthQueuingStrategy;
|
|
442
433
|
|
|
443
|
-
interface CompressionStream extends _CompressionStream {}
|
|
444
|
-
/**
|
|
445
|
-
* `CompressionStream` class is a global reference for `import { CompressionStream } from 'node:stream/web'`.
|
|
446
|
-
* https://nodejs.org/api/globals.html#class-compressionstream
|
|
447
|
-
* @since v18.0.0
|
|
448
|
-
*/
|
|
449
|
-
var CompressionStream: typeof globalThis extends {
|
|
450
|
-
onmessage: any;
|
|
451
|
-
// CompressionStream, DecompressionStream and ReportingObserver was introduced in the same commit.
|
|
452
|
-
// If ReportingObserver check is removed, the type here will form a circular reference in TS5.0+lib.dom.d.ts
|
|
453
|
-
ReportingObserver: any;
|
|
454
|
-
CompressionStream: infer T;
|
|
455
|
-
} ? T
|
|
456
|
-
// TS 4.8, 4.9, 5.0
|
|
457
|
-
: typeof globalThis extends { onmessage: any; TransformStream: { prototype: infer T } } ? {
|
|
458
|
-
prototype: T;
|
|
459
|
-
new(format: "deflate" | "deflate-raw" | "gzip"): T;
|
|
460
|
-
}
|
|
461
|
-
: typeof import("stream/web").CompressionStream;
|
|
462
|
-
|
|
463
434
|
interface CountQueuingStrategy extends _CountQueuingStrategy {}
|
|
464
435
|
/**
|
|
465
436
|
* `CountQueuingStrategy` class is a global reference for `import { CountQueuingStrategy } from 'node:stream/web'`.
|
|
@@ -469,26 +440,6 @@ declare module "stream/web" {
|
|
|
469
440
|
var CountQueuingStrategy: typeof globalThis extends { onmessage: any; CountQueuingStrategy: infer T } ? T
|
|
470
441
|
: typeof import("stream/web").CountQueuingStrategy;
|
|
471
442
|
|
|
472
|
-
interface DecompressionStream extends _DecompressionStream {}
|
|
473
|
-
/**
|
|
474
|
-
* `DecompressionStream` class is a global reference for `import { DecompressionStream } from 'node:stream/web'`.
|
|
475
|
-
* https://nodejs.org/api/globals.html#class-decompressionstream
|
|
476
|
-
* @since v18.0.0
|
|
477
|
-
*/
|
|
478
|
-
var DecompressionStream: typeof globalThis extends {
|
|
479
|
-
onmessage: any;
|
|
480
|
-
// CompressionStream, DecompressionStream and ReportingObserver was introduced in the same commit.
|
|
481
|
-
// If ReportingObserver check is removed, the type here will form a circular reference in TS5.0+lib.dom.d.ts
|
|
482
|
-
ReportingObserver: any;
|
|
483
|
-
DecompressionStream: infer T extends object;
|
|
484
|
-
} ? T
|
|
485
|
-
// TS 4.8, 4.9, 5.0
|
|
486
|
-
: typeof globalThis extends { onmessage: any; TransformStream: { prototype: infer T } } ? {
|
|
487
|
-
prototype: T;
|
|
488
|
-
new(format: "deflate" | "deflate-raw" | "gzip"): T;
|
|
489
|
-
}
|
|
490
|
-
: typeof import("stream/web").DecompressionStream;
|
|
491
|
-
|
|
492
443
|
interface QueuingStrategy<T = any> extends _QueuingStrategy<T> {}
|
|
493
444
|
|
|
494
445
|
interface ReadableByteStreamController extends _ReadableByteStreamController {}
|