New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@types/node

Package Overview
Dependencies
Maintainers
1
Versions
2315
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/node - npm Package Compare versions

Comparing version
18.19.107
to
18.19.108
+0
-5
node v18.19/globals.d.ts

@@ -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

+2
-2
{
"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'`