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
2323
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
25.5.1
to
25.5.2
+21
-2
node/net.d.ts

@@ -119,5 +119,10 @@ /**

* @since v0.1.90
*/
write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean;
/**
* Sends data on the socket, with an explicit encoding for string data.
* @see {@link Socket.write} for full details.
* @since v0.1.90
* @param [encoding='utf8'] Only used when data is `string`.
*/
write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean;
write(str: Uint8Array | string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean;

@@ -362,3 +367,2 @@ /**

* @since v0.1.90
* @param [encoding='utf8'] Only used when data is `string`.
* @param callback Optional callback for when the socket is finished.

@@ -368,3 +372,18 @@ * @return The socket itself.

end(callback?: () => void): this;
/**
* Half-closes the socket, with one final chunk of data.
* @see {@link Socket.end} for full details.
* @since v0.1.90
* @param callback Optional callback for when the socket is finished.
* @return The socket itself.
*/
end(buffer: Uint8Array | string, callback?: () => void): this;
/**
* Half-closes the socket, with one final chunk of data.
* @see {@link Socket.end} for full details.
* @since v0.1.90
* @param [encoding='utf8'] Only used when data is `string`.
* @param callback Optional callback for when the socket is finished.
* @return The socket itself.
*/
end(str: Uint8Array | string, encoding?: BufferEncoding, callback?: () => void): this;

@@ -371,0 +390,0 @@ // #region InternalEventEmitter

+2
-2
{
"name": "@types/node",
"version": "25.5.1",
"version": "25.5.2",
"description": "TypeScript definitions for node",

@@ -153,4 +153,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",

"peerDependencies": {},
"typesPublisherContentHash": "0e2c6ee9c4b332942d0d2455da03501d53f57d65650a444fa38b8bf0c173091a",
"typesPublisherContentHash": "ecfeeb69f68108817337300f59f20907babb8c0a870a588637f3d9c8b96e73f5",
"typeScriptVersion": "5.3"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Fri, 03 Apr 2026 09:18:15 GMT
* Last updated: Fri, 03 Apr 2026 11:14:41 GMT
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)

@@ -14,0 +14,0 @@

Sorry, the diff of this file is too big to display