@types/node
Advanced tools
@@ -252,7 +252,2 @@ export {}; // Make this a module | ||
| function structuredClone<T>( | ||
| value: T, | ||
| transfer?: { transfer: ReadonlyArray<import("worker_threads").TransferListItem> }, | ||
| ): T; | ||
| interface DOMException extends _DOMException {} | ||
@@ -259,0 +254,0 @@ var DOMException: typeof globalThis extends { onmessage: any; DOMException: infer T } ? T |
| { | ||
| "name": "@types/node", | ||
| "version": "18.19.107", | ||
| "version": "18.19.108", | ||
| "description": "TypeScript definitions for node", | ||
@@ -223,4 +223,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node", | ||
| "peerDependencies": {}, | ||
| "typesPublisherContentHash": "1105e3a5e5563aa665dd52809aea169bf92db33987d9b16a4bc5507ea674d0d5", | ||
| "typesPublisherContentHash": "38902cf96691334d7ddf431a1a049f05b9b41d13c51a126984832c09825d45f5", | ||
| "typeScriptVersion": "5.1" | ||
| } |
@@ -11,3 +11,3 @@ # Installation | ||
| ### Additional Details | ||
| * Last updated: Thu, 29 May 2025 23:02:21 GMT | ||
| * Last updated: Fri, 30 May 2025 05:02:50 GMT | ||
| * Dependencies: [undici-types](https://npmjs.com/package/undici-types) | ||
@@ -14,0 +14,0 @@ |
@@ -55,3 +55,2 @@ /** | ||
| declare module "worker_threads" { | ||
| import { Blob } from "node:buffer"; | ||
| import { Context } from "node:vm"; | ||
@@ -62,4 +61,4 @@ import { EventEmitter } from "node:events"; | ||
| import { Readable, Writable } from "node:stream"; | ||
| import { ReadableStream, TransformStream, WritableStream } from "node:stream/web"; | ||
| import { URL } from "node:url"; | ||
| import { X509Certificate } from "node:crypto"; | ||
| const isMainThread: boolean; | ||
@@ -93,3 +92,12 @@ const parentPort: null | MessagePort; | ||
| } | ||
| type TransferListItem = ArrayBuffer | MessagePort | FileHandle | X509Certificate | Blob; | ||
| type Transferable = | ||
| | ArrayBuffer | ||
| | MessagePort | ||
| | AbortSignal | ||
| | FileHandle | ||
| | ReadableStream | ||
| | WritableStream | ||
| | TransformStream; | ||
| /** @deprecated Use `import { Transferable } from "node:worker_threads"` instead. */ | ||
| type TransferListItem = Transferable; | ||
| /** | ||
@@ -179,3 +187,3 @@ * Instances of the `worker.MessagePort` class represent one end of an | ||
| */ | ||
| postMessage(value: any, transferList?: readonly TransferListItem[]): void; | ||
| postMessage(value: any, transferList?: readonly Transferable[]): void; | ||
| /** | ||
@@ -267,3 +275,3 @@ * 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 | ||
| */ | ||
| transferList?: TransferListItem[] | undefined; | ||
| transferList?: Transferable[] | undefined; | ||
| /** | ||
@@ -415,3 +423,3 @@ * @default true | ||
| */ | ||
| postMessage(value: any, transferList?: readonly TransferListItem[]): void; | ||
| postMessage(value: any, transferList?: readonly Transferable[]): void; | ||
| /** | ||
@@ -665,2 +673,6 @@ * 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 | ||
| global { | ||
| function structuredClone<T>( | ||
| value: T, | ||
| options?: { transfer?: Transferable[] }, | ||
| ): T; | ||
| /** | ||
@@ -667,0 +679,0 @@ * `BroadcastChannel` class is a global reference for `import { BroadcastChannel } from 'node:worker_threads'` |
Network access
Supply chain riskThis module accesses the network.
Found 9 instances in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 10 instances in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 5 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 9 instances in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 10 instances in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 5 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
2068072
0.01%46303
0.02%