@types/node 18.19.41 → 18.19.42
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.
- node v18.19/README.md +1 -1
- node v18.19/buffer.d.ts +0 -81
- node v18.19/package.json +2 -2
node v18.19/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for node (https://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v18.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Tue, 23 Jul 2024 18:09:25 GMT
|
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
|
13
13
|
|
|
14
14
|
# Credits
|
node v18.19/buffer.d.ts
CHANGED
|
@@ -2190,31 +2190,6 @@ declare module "buffer" {
|
|
|
2190
2190
|
* @return The index of the last occurrence of `value` in `buf`, or `-1` if `buf` does not contain `value`.
|
|
2191
2191
|
*/
|
|
2192
2192
|
lastIndexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number;
|
|
2193
|
-
/**
|
|
2194
|
-
* Creates and returns an [iterator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) of `[index, byte]` pairs from the contents
|
|
2195
|
-
* of `buf`.
|
|
2196
|
-
*
|
|
2197
|
-
* ```js
|
|
2198
|
-
* import { Buffer } from 'node:buffer';
|
|
2199
|
-
*
|
|
2200
|
-
* // Log the entire contents of a `Buffer`.
|
|
2201
|
-
*
|
|
2202
|
-
* const buf = Buffer.from('buffer');
|
|
2203
|
-
*
|
|
2204
|
-
* for (const pair of buf.entries()) {
|
|
2205
|
-
* console.log(pair);
|
|
2206
|
-
* }
|
|
2207
|
-
* // Prints:
|
|
2208
|
-
* // [0, 98]
|
|
2209
|
-
* // [1, 117]
|
|
2210
|
-
* // [2, 102]
|
|
2211
|
-
* // [3, 102]
|
|
2212
|
-
* // [4, 101]
|
|
2213
|
-
* // [5, 114]
|
|
2214
|
-
* ```
|
|
2215
|
-
* @since v1.1.0
|
|
2216
|
-
*/
|
|
2217
|
-
entries(): IterableIterator<[number, number]>;
|
|
2218
2193
|
/**
|
|
2219
2194
|
* Equivalent to `buf.indexOf() !== -1`.
|
|
2220
2195
|
*
|
|
@@ -2245,62 +2220,6 @@ declare module "buffer" {
|
|
|
2245
2220
|
* @return `true` if `value` was found in `buf`, `false` otherwise.
|
|
2246
2221
|
*/
|
|
2247
2222
|
includes(value: string | number | Buffer, byteOffset?: number, encoding?: BufferEncoding): boolean;
|
|
2248
|
-
/**
|
|
2249
|
-
* Creates and returns an [iterator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) of `buf` keys (indices).
|
|
2250
|
-
*
|
|
2251
|
-
* ```js
|
|
2252
|
-
* import { Buffer } from 'node:buffer';
|
|
2253
|
-
*
|
|
2254
|
-
* const buf = Buffer.from('buffer');
|
|
2255
|
-
*
|
|
2256
|
-
* for (const key of buf.keys()) {
|
|
2257
|
-
* console.log(key);
|
|
2258
|
-
* }
|
|
2259
|
-
* // Prints:
|
|
2260
|
-
* // 0
|
|
2261
|
-
* // 1
|
|
2262
|
-
* // 2
|
|
2263
|
-
* // 3
|
|
2264
|
-
* // 4
|
|
2265
|
-
* // 5
|
|
2266
|
-
* ```
|
|
2267
|
-
* @since v1.1.0
|
|
2268
|
-
*/
|
|
2269
|
-
keys(): IterableIterator<number>;
|
|
2270
|
-
/**
|
|
2271
|
-
* Creates and returns an [iterator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) for `buf` values (bytes). This function is
|
|
2272
|
-
* called automatically when a `Buffer` is used in a `for..of` statement.
|
|
2273
|
-
*
|
|
2274
|
-
* ```js
|
|
2275
|
-
* import { Buffer } from 'node:buffer';
|
|
2276
|
-
*
|
|
2277
|
-
* const buf = Buffer.from('buffer');
|
|
2278
|
-
*
|
|
2279
|
-
* for (const value of buf.values()) {
|
|
2280
|
-
* console.log(value);
|
|
2281
|
-
* }
|
|
2282
|
-
* // Prints:
|
|
2283
|
-
* // 98
|
|
2284
|
-
* // 117
|
|
2285
|
-
* // 102
|
|
2286
|
-
* // 102
|
|
2287
|
-
* // 101
|
|
2288
|
-
* // 114
|
|
2289
|
-
*
|
|
2290
|
-
* for (const value of buf) {
|
|
2291
|
-
* console.log(value);
|
|
2292
|
-
* }
|
|
2293
|
-
* // Prints:
|
|
2294
|
-
* // 98
|
|
2295
|
-
* // 117
|
|
2296
|
-
* // 102
|
|
2297
|
-
* // 102
|
|
2298
|
-
* // 101
|
|
2299
|
-
* // 114
|
|
2300
|
-
* ```
|
|
2301
|
-
* @since v1.1.0
|
|
2302
|
-
*/
|
|
2303
|
-
values(): IterableIterator<number>;
|
|
2304
2223
|
}
|
|
2305
2224
|
var Buffer: BufferConstructor;
|
|
2306
2225
|
/**
|
node v18.19/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "18.19.
|
|
3
|
+
"version": "18.19.42",
|
|
4
4
|
"description": "TypeScript definitions for node",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -217,6 +217,6 @@
|
|
|
217
217
|
"dependencies": {
|
|
218
218
|
"undici-types": "~5.26.4"
|
|
219
219
|
},
|
|
220
|
-
"typesPublisherContentHash": "
|
|
220
|
+
"typesPublisherContentHash": "8dd150d0686e4e022db7d50eb68cff47831cd0928d268895f5ec68389bdf193e",
|
|
221
221
|
"typeScriptVersion": "4.8"
|
|
222
222
|
}
|