@types/node 16.10.1 → 16.10.5
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/README.md +1 -1
- node/buffer.d.ts +1 -1
- node/console.d.ts +5 -0
- node/crypto.d.ts +2 -2
- node/fs.d.ts +2 -0
- node/inspector.d.ts +7 -0
- node/package.json +2 -2
node/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (https://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Wed, 13 Oct 2021 06:31:21 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
|
|
14
14
|
|
node/buffer.d.ts
CHANGED
|
@@ -176,7 +176,7 @@ declare module 'buffer' {
|
|
|
176
176
|
/**
|
|
177
177
|
* Raw data is stored in instances of the Buffer class.
|
|
178
178
|
* A Buffer is similar to an array of integers but corresponds to a raw memory allocation outside the V8 heap. A Buffer cannot be resized.
|
|
179
|
-
* Valid string encodings: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'binary'(deprecated)|'hex'
|
|
179
|
+
* Valid string encodings: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'base64url'|'binary'(deprecated)|'hex'
|
|
180
180
|
*/
|
|
181
181
|
interface BufferConstructor {
|
|
182
182
|
/**
|
node/console.d.ts
CHANGED
|
@@ -394,6 +394,11 @@ declare module 'node:console' {
|
|
|
394
394
|
ignoreErrors?: boolean | undefined;
|
|
395
395
|
colorMode?: boolean | 'auto' | undefined;
|
|
396
396
|
inspectOptions?: InspectOptions | undefined;
|
|
397
|
+
/**
|
|
398
|
+
* Set group indentation
|
|
399
|
+
* @default 2
|
|
400
|
+
*/
|
|
401
|
+
groupIndentation?: number | undefined;
|
|
397
402
|
}
|
|
398
403
|
interface ConsoleConstructor {
|
|
399
404
|
prototype: Console;
|
node/crypto.d.ts
CHANGED
|
@@ -250,7 +250,7 @@ declare module 'crypto' {
|
|
|
250
250
|
*/
|
|
251
251
|
function createHmac(algorithm: string, key: BinaryLike | KeyObject, options?: stream.TransformOptions): Hmac;
|
|
252
252
|
// https://nodejs.org/api/buffer.html#buffer_buffers_and_character_encodings
|
|
253
|
-
type BinaryToTextEncoding = 'base64' | 'hex';
|
|
253
|
+
type BinaryToTextEncoding = 'base64' | 'base64url' | 'hex';
|
|
254
254
|
type CharacterEncoding = 'utf8' | 'utf-8' | 'utf16le' | 'latin1';
|
|
255
255
|
type LegacyCharacterEncoding = 'ascii' | 'binary' | 'ucs2' | 'ucs-2';
|
|
256
256
|
type Encoding = BinaryToTextEncoding | CharacterEncoding | LegacyCharacterEncoding;
|
|
@@ -2160,7 +2160,7 @@ declare module 'crypto' {
|
|
|
2160
2160
|
key: BinaryLike,
|
|
2161
2161
|
curve: string,
|
|
2162
2162
|
inputEncoding?: BinaryToTextEncoding,
|
|
2163
|
-
outputEncoding?: 'latin1' | 'hex' | 'base64',
|
|
2163
|
+
outputEncoding?: 'latin1' | 'hex' | 'base64' | 'base64url',
|
|
2164
2164
|
format?: 'uncompressed' | 'compressed' | 'hybrid'
|
|
2165
2165
|
): Buffer | string;
|
|
2166
2166
|
/**
|
node/fs.d.ts
CHANGED
|
@@ -768,6 +768,7 @@ declare module 'fs' {
|
|
|
768
768
|
* @deprecated Since v0.4.7
|
|
769
769
|
*/
|
|
770
770
|
export function lchmod(path: PathLike, mode: Mode, callback: NoParamCallback): void;
|
|
771
|
+
/** @deprecated */
|
|
771
772
|
export namespace lchmod {
|
|
772
773
|
/**
|
|
773
774
|
* Asynchronous lchmod(2) - Change permissions of a file. Does not dereference symbolic links.
|
|
@@ -3000,6 +3001,7 @@ declare module 'fs' {
|
|
|
3000
3001
|
* @deprecated Since v1.0.0 - Use {@link stat} or {@link access} instead.
|
|
3001
3002
|
*/
|
|
3002
3003
|
export function exists(path: PathLike, callback: (exists: boolean) => void): void;
|
|
3004
|
+
/** @deprecated */
|
|
3003
3005
|
export namespace exists {
|
|
3004
3006
|
/**
|
|
3005
3007
|
* @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
|
node/inspector.d.ts
CHANGED
|
@@ -1778,6 +1778,13 @@ declare module 'inspector' {
|
|
|
1778
1778
|
* @since v8.0.0
|
|
1779
1779
|
*/
|
|
1780
1780
|
connect(): void;
|
|
1781
|
+
/**
|
|
1782
|
+
* Connects a session to the main thread inspector back-end.
|
|
1783
|
+
* An exception will be thrown if this API was not called on a Worker
|
|
1784
|
+
* thread.
|
|
1785
|
+
* @since 12.11.0
|
|
1786
|
+
*/
|
|
1787
|
+
connectToMainThread(): void;
|
|
1781
1788
|
/**
|
|
1782
1789
|
* Immediately close the session. All pending message callbacks will be called
|
|
1783
1790
|
* with an error. `session.connect()` will need to be called to be able to send
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "16.10.
|
|
3
|
+
"version": "16.10.5",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -225,6 +225,6 @@
|
|
|
225
225
|
},
|
|
226
226
|
"scripts": {},
|
|
227
227
|
"dependencies": {},
|
|
228
|
-
"typesPublisherContentHash": "
|
|
228
|
+
"typesPublisherContentHash": "fe541b923b64afaeab70fd1064a03bac71f204c391000ff177bcf6af175d390a",
|
|
229
229
|
"typeScriptVersion": "3.7"
|
|
230
230
|
}
|