From c6b30dcdcbde747ea33d0522d6a96289d4402758 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 28 Jul 2021 08:05:52 +0000 Subject: [PATCH 1/2] Bump @types/node from 16.4.3 to 16.4.5 Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.4.3 to 16.4.5. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 14 +++++++------- package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index b303a04aac..5b72ff4253 100644 --- a/package-lock.json +++ b/package-lock.json @@ -41,7 +41,7 @@ "@types/jszip": "^3.1.6", "@types/long": "4.0.1", "@types/nock": "^11.1.0", - "@types/node": "^16.4.3", + "@types/node": "^16.4.5", "@types/semver": "^7.2.0", "@types/sinon": "^10.0.2", "@typescript-eslint/parser": "^4.1.0", @@ -619,9 +619,9 @@ } }, "node_modules/@types/node": { - "version": "16.4.3", - "resolved": "https://registry.npmjs.org/@types/node/-/node-16.4.3.tgz", - "integrity": "sha512-GKM4FLMkWDc0sfx7tXqPWkM6NBow1kge0fgQh0bOnlqo4iT1kvTvMEKE0c1RtUGnbLlGRXiAA8SumE//90uKAg==" + "version": "16.4.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-16.4.5.tgz", + "integrity": "sha512-+0GPv/hIFNoy8r5MFf7vRpBjnqNYNrlHdetoy23E7TYc7JB2ctwyi3GMKpviozaHQ/Sy2kBNUTvG9ywN66zV1g==" }, "node_modules/@types/normalize-package-data": { "version": "2.4.0", @@ -6404,9 +6404,9 @@ } }, "@types/node": { - "version": "16.4.3", - "resolved": "https://registry.npmjs.org/@types/node/-/node-16.4.3.tgz", - "integrity": "sha512-GKM4FLMkWDc0sfx7tXqPWkM6NBow1kge0fgQh0bOnlqo4iT1kvTvMEKE0c1RtUGnbLlGRXiAA8SumE//90uKAg==" + "version": "16.4.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-16.4.5.tgz", + "integrity": "sha512-+0GPv/hIFNoy8r5MFf7vRpBjnqNYNrlHdetoy23E7TYc7JB2ctwyi3GMKpviozaHQ/Sy2kBNUTvG9ywN66zV1g==" }, "@types/normalize-package-data": { "version": "2.4.0", diff --git a/package.json b/package.json index 1a4cb6a932..f4c734957d 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,7 @@ "@types/jszip": "^3.1.6", "@types/long": "4.0.1", "@types/nock": "^11.1.0", - "@types/node": "^16.4.3", + "@types/node": "^16.4.5", "@types/semver": "^7.2.0", "@types/sinon": "^10.0.2", "@typescript-eslint/parser": "^4.1.0", From 351d080ced837d54f654e4981596f1b228fbd81b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 28 Jul 2021 08:08:26 +0000 Subject: [PATCH 2/2] Update checked-in dependencies --- node_modules/.package-lock.json | 6 +- node_modules/@types/node/README.md | 2 +- node_modules/@types/node/async_hooks.d.ts | 4 +- node_modules/@types/node/buffer.d.ts | 12 +-- node_modules/@types/node/child_process.d.ts | 14 ++-- node_modules/@types/node/cluster.d.ts | 4 +- node_modules/@types/node/console.d.ts | 2 +- node_modules/@types/node/crypto.d.ts | 79 ++++++++++--------- .../@types/node/diagnostics_channel.d.ts | 4 +- node_modules/@types/node/domain.d.ts | 4 +- node_modules/@types/node/events.d.ts | 34 ++++---- node_modules/@types/node/fs.d.ts | 36 ++------- node_modules/@types/node/fs/promises.d.ts | 39 ++++++++- node_modules/@types/node/http2.d.ts | 2 +- node_modules/@types/node/net.d.ts | 18 ++--- node_modules/@types/node/os.d.ts | 4 - node_modules/@types/node/package.json | 4 +- node_modules/@types/node/process.d.ts | 2 +- node_modules/@types/node/repl.d.ts | 2 +- node_modules/@types/node/stream.d.ts | 6 +- node_modules/@types/node/tls.d.ts | 8 +- node_modules/@types/node/tty.d.ts | 8 +- node_modules/@types/node/url.d.ts | 18 ++--- node_modules/@types/node/util.d.ts | 10 ++- node_modules/@types/node/v8.d.ts | 4 +- node_modules/@types/node/vm.d.ts | 8 +- node_modules/@types/node/worker_threads.d.ts | 2 +- 27 files changed, 174 insertions(+), 162 deletions(-) diff --git a/node_modules/.package-lock.json b/node_modules/.package-lock.json index d8b2f05077..a10ac52d32 100644 --- a/node_modules/.package-lock.json +++ b/node_modules/.package-lock.json @@ -565,9 +565,9 @@ } }, "node_modules/@types/node": { - "version": "16.4.3", - "resolved": "https://registry.npmjs.org/@types/node/-/node-16.4.3.tgz", - "integrity": "sha512-GKM4FLMkWDc0sfx7tXqPWkM6NBow1kge0fgQh0bOnlqo4iT1kvTvMEKE0c1RtUGnbLlGRXiAA8SumE//90uKAg==" + "version": "16.4.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-16.4.5.tgz", + "integrity": "sha512-+0GPv/hIFNoy8r5MFf7vRpBjnqNYNrlHdetoy23E7TYc7JB2ctwyi3GMKpviozaHQ/Sy2kBNUTvG9ywN66zV1g==" }, "node_modules/@types/normalize-package-data": { "version": "2.4.0", diff --git a/node_modules/@types/node/README.md b/node_modules/@types/node/README.md index 08883fd871..a04feedfa3 100755 --- a/node_modules/@types/node/README.md +++ b/node_modules/@types/node/README.md @@ -8,7 +8,7 @@ This package contains type definitions for Node.js (http://nodejs.org/). Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node. ### Additional Details - * Last updated: Mon, 26 Jul 2021 00:01:15 GMT + * Last updated: Wed, 28 Jul 2021 07:31:16 GMT * Dependencies: none * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require` diff --git a/node_modules/@types/node/async_hooks.d.ts b/node_modules/@types/node/async_hooks.d.ts index ba9f6197c4..e3c4141ead 100755 --- a/node_modules/@types/node/async_hooks.d.ts +++ b/node_modules/@types/node/async_hooks.d.ts @@ -197,7 +197,7 @@ declare module 'async_hooks' { * @param callbacks The `Hook Callbacks` to register * @return Instance used for disabling and enabling hooks */ - function createHook(options: HookCallbacks): AsyncHook; + function createHook(callbacks: HookCallbacks): AsyncHook; interface AsyncResourceOptions { /** * The ID of the execution context that created this async event. @@ -298,7 +298,7 @@ declare module 'async_hooks' { * @since v9.6.0 * @param fn The function to call in the execution context of this async resource. * @param thisArg The receiver to be used for the function call. - * @param ...args Optional arguments to pass to the function. + * @param args Optional arguments to pass to the function. */ runInAsyncScope(fn: (this: This, ...args: any[]) => Result, thisArg?: This, ...args: any[]): Result; /** diff --git a/node_modules/@types/node/buffer.d.ts b/node_modules/@types/node/buffer.d.ts index d077e46d04..318b39fd32 100755 --- a/node_modules/@types/node/buffer.d.ts +++ b/node_modules/@types/node/buffer.d.ts @@ -471,7 +471,7 @@ declare module 'buffer' { * @param sourceStart The offset within `buf` at which to begin comparison. * @param sourceEnd The offset within `buf` at which to end comparison (not inclusive). */ - compare(otherBuffer: Uint8Array, targetStart?: number, targetEnd?: number, sourceStart?: number, sourceEnd?: number): number; + compare(target: Uint8Array, targetStart?: number, targetEnd?: number, sourceStart?: number, sourceEnd?: number): number; /** * Copies data from a region of `buf` to a region in `target`, even if the `target`memory region overlaps with `buf`. * @@ -521,7 +521,7 @@ declare module 'buffer' { * @param sourceEnd The offset within `buf` at which to stop copying (not inclusive). * @return The number of bytes copied. */ - copy(targetBuffer: Uint8Array, targetStart?: number, sourceStart?: number, sourceEnd?: number): number; + copy(target: Uint8Array, targetStart?: number, sourceStart?: number, sourceEnd?: number): number; /** * Returns a new `Buffer` that references the same memory as the original, but * offset and cropped by the `start` and `end` indices. @@ -546,7 +546,7 @@ declare module 'buffer' { * @param start Where the new `Buffer` will start. * @param end Where the new `Buffer` will end (not inclusive). */ - slice(begin?: number, end?: number): Buffer; + slice(start?: number, end?: number): Buffer; /** * Returns a new `Buffer` that references the same memory as the original, but * offset and cropped by the `start` and `end` indices. @@ -602,7 +602,7 @@ declare module 'buffer' { * @param start Where the new `Buffer` will start. * @param end Where the new `Buffer` will end (not inclusive). */ - subarray(begin?: number, end?: number): Buffer; + subarray(start?: number, end?: number): Buffer; /** * Writes `value` to `buf` at the specified `offset` as big-endian. * @@ -1761,7 +1761,7 @@ declare module 'buffer' { * @deprecated Use `Buffer.from(data, 'base64')` instead. * @param data The Base64-encoded input string. */ - function atob(input: string): string; + function atob(data: string): string; /** * Decodes a string into bytes using Latin-1 (ISO-8859), and encodes those bytes * into a string using Base64. @@ -1777,7 +1777,7 @@ declare module 'buffer' { * @deprecated Use `buf.toString('base64')` instead. * @param data An ASCII (Latin1) string. */ - function btoa(input: string): string; + function btoa(data: string): string; } } declare module 'node:buffer' { diff --git a/node_modules/@types/node/child_process.d.ts b/node_modules/@types/node/child_process.d.ts index fa1f5c52c9..03ce5bb130 100755 --- a/node_modules/@types/node/child_process.d.ts +++ b/node_modules/@types/node/child_process.d.ts @@ -1342,13 +1342,13 @@ declare module 'child_process' { * @param args List of string arguments. * @return The stdout from the command. */ - function execFileSync(command: string): Buffer; - function execFileSync(command: string, options?: ExecFileSyncOptionsWithStringEncoding): string; - function execFileSync(command: string, options?: ExecFileSyncOptionsWithBufferEncoding): Buffer; - function execFileSync(command: string, options?: ExecFileSyncOptions): Buffer; - function execFileSync(command: string, args?: ReadonlyArray, options?: ExecFileSyncOptionsWithStringEncoding): string; - function execFileSync(command: string, args?: ReadonlyArray, options?: ExecFileSyncOptionsWithBufferEncoding): Buffer; - function execFileSync(command: string, args?: ReadonlyArray, options?: ExecFileSyncOptions): Buffer; + function execFileSync(file: string): Buffer; + function execFileSync(file: string, options?: ExecFileSyncOptionsWithStringEncoding): string; + function execFileSync(file: string, options?: ExecFileSyncOptionsWithBufferEncoding): Buffer; + function execFileSync(file: string, options?: ExecFileSyncOptions): Buffer; + function execFileSync(file: string, args?: ReadonlyArray, options?: ExecFileSyncOptionsWithStringEncoding): string; + function execFileSync(file: string, args?: ReadonlyArray, options?: ExecFileSyncOptionsWithBufferEncoding): Buffer; + function execFileSync(file: string, args?: ReadonlyArray, options?: ExecFileSyncOptions): Buffer; } declare module 'node:child_process' { export * from 'child_process'; diff --git a/node_modules/@types/node/cluster.d.ts b/node_modules/@types/node/cluster.d.ts index 144c1c8398..666fa5b564 100755 --- a/node_modules/@types/node/cluster.d.ts +++ b/node_modules/@types/node/cluster.d.ts @@ -116,7 +116,9 @@ declare module 'cluster' { * @since v0.7.0 * @param options The `options` argument, if present, is an object used to parameterize the sending of certain types of handles. `options` supports the following properties: */ - send(message: child.Serializable, sendHandle?: child.SendHandle, callback?: (error: Error | null) => void): boolean; + send(message: child.Serializable, callback?: (error: Error | null) => void): boolean; + send(message: child.Serializable, sendHandle: child.SendHandle, callback?: (error: Error | null) => void): boolean; + send(message: child.Serializable, sendHandle: child.SendHandle, options?: child.MessageOptions, callback?: (error: Error | null) => void): boolean; /** * This function will kill the worker. In the primary, it does this * by disconnecting the `worker.process`, and once disconnected, killing diff --git a/node_modules/@types/node/console.d.ts b/node_modules/@types/node/console.d.ts index e004ca9799..7f3bbc2fee 100755 --- a/node_modules/@types/node/console.d.ts +++ b/node_modules/@types/node/console.d.ts @@ -83,7 +83,7 @@ declare module 'node:console' { * ``` * @since v0.1.101 * @param value The value tested for being truthy. - * @param ...message All arguments besides `value` are used as error message. + * @param message All arguments besides `value` are used as error message. */ assert(value: any, message?: string, ...optionalParams: any[]): void; /** diff --git a/node_modules/@types/node/crypto.d.ts b/node_modules/@types/node/crypto.d.ts index 5cafb8d996..6b2edeabd3 100755 --- a/node_modules/@types/node/crypto.d.ts +++ b/node_modules/@types/node/crypto.d.ts @@ -491,7 +491,7 @@ declare module 'crypto' { * @since v13.1.0 * @param options `stream.transform` options */ - copy(): Hash; + copy(options?: stream.TransformOptions): Hash; /** * Updates the hash content with the given `data`, the encoding of which * is given in `inputEncoding`. @@ -503,7 +503,7 @@ declare module 'crypto' { * @param inputEncoding The `encoding` of the `data` string. */ update(data: BinaryLike): Hash; - update(data: string, input_encoding: Encoding): Hash; + update(data: string, inputEncoding: Encoding): Hash; /** * Calculates the digest of all of the data passed to be hashed (using the `hash.update()` method). * If `encoding` is provided a string will be returned; otherwise @@ -648,7 +648,7 @@ declare module 'crypto' { * @param inputEncoding The `encoding` of the `data` string. */ update(data: BinaryLike): Hmac; - update(data: string, input_encoding: Encoding): Hmac; + update(data: string, inputEncoding: Encoding): Hmac; /** * Calculates the HMAC digest of all of the data passed using `hmac.update()`. * If `encoding` is @@ -1114,9 +1114,9 @@ declare module 'crypto' { * @param outputEncoding The `encoding` of the return value. */ update(data: BinaryLike): Buffer; - update(data: string, input_encoding: Encoding): Buffer; - update(data: NodeJS.ArrayBufferView, input_encoding: undefined, output_encoding: Encoding): string; - update(data: string, input_encoding: Encoding | undefined, output_encoding: Encoding): string; + update(data: string, inputEncoding: Encoding): Buffer; + update(data: NodeJS.ArrayBufferView, inputEncoding: undefined, outputEncoding: Encoding): string; + update(data: string, inputEncoding: Encoding | undefined, outputEncoding: Encoding): string; /** * Once the `cipher.final()` method has been called, the `Cipher` object can no * longer be used to encrypt data. Attempts to call `cipher.final()` more than @@ -1126,7 +1126,7 @@ declare module 'crypto' { * @return Any remaining enciphered contents. If `outputEncoding` is specified, a string is returned. If an `outputEncoding` is not provided, a {@link Buffer} is returned. */ final(): Buffer; - final(output_encoding: BufferEncoding): string; + final(outputEncoding: BufferEncoding): string; /** * When using block encryption algorithms, the `Cipher` class will automatically * add padding to the input data to the appropriate block size. To disable the @@ -1141,7 +1141,7 @@ declare module 'crypto' { * @since v0.7.1 * @return for method chaining. */ - setAutoPadding(auto_padding?: boolean): this; + setAutoPadding(autoPadding?: boolean): this; } interface CipherCCM extends Cipher { setAAD( @@ -1427,9 +1427,9 @@ declare module 'crypto' { * @param outputEncoding The `encoding` of the return value. */ update(data: NodeJS.ArrayBufferView): Buffer; - update(data: string, input_encoding: Encoding): Buffer; - update(data: NodeJS.ArrayBufferView, input_encoding: undefined, output_encoding: Encoding): string; - update(data: string, input_encoding: Encoding | undefined, output_encoding: Encoding): string; + update(data: string, inputEncoding: Encoding): Buffer; + update(data: NodeJS.ArrayBufferView, inputEncoding: undefined, outputEncoding: Encoding): string; + update(data: string, inputEncoding: Encoding | undefined, outputEncoding: Encoding): string; /** * Once the `decipher.final()` method has been called, the `Decipher` object can * no longer be used to decrypt data. Attempts to call `decipher.final()` more @@ -1439,7 +1439,7 @@ declare module 'crypto' { * @return Any remaining deciphered contents. If `outputEncoding` is specified, a string is returned. If an `outputEncoding` is not provided, a {@link Buffer} is returned. */ final(): Buffer; - final(output_encoding: BufferEncoding): string; + final(outputEncoding: BufferEncoding): string; /** * When data has been encrypted without standard block padding, calling`decipher.setAutoPadding(false)` will disable automatic padding to prevent `decipher.final()` from checking for and * removing padding. @@ -1551,6 +1551,7 @@ declare module 'crypto' { * @param encoding The string encoding when `key` is a string. */ function createSecretKey(key: NodeJS.ArrayBufferView): KeyObject; + function createSecretKey(key: string, encoding: BufferEncoding): KeyObject; /** * Creates and returns a `Sign` object that uses the given `algorithm`. Use {@link getHashes} to obtain the names of the available digest algorithms. * Optional `options` argument controls the `stream.Writable` behavior. @@ -1706,7 +1707,7 @@ declare module 'crypto' { * @param inputEncoding The `encoding` of the `data` string. */ update(data: BinaryLike): this; - update(data: string, input_encoding: Encoding): this; + update(data: string, inputEncoding: Encoding): this; /** * Calculates the signature on all the data passed through using either `sign.update()` or `sign.write()`. * @@ -1719,8 +1720,8 @@ declare module 'crypto' { * called. Multiple calls to `sign.sign()` will result in an error being thrown. * @since v0.1.92 */ - sign(private_key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput): Buffer; - sign(private_key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput, output_format: BinaryToTextEncoding): string; + sign(privateKey: KeyLike | SignKeyObjectInput | SignPrivateKeyInput): Buffer; + sign(privateKey: KeyLike | SignKeyObjectInput | SignPrivateKeyInput, outputFormat: BinaryToTextEncoding): string; } /** * Creates and returns a `Verify` object that uses the given algorithm. @@ -1765,7 +1766,7 @@ declare module 'crypto' { * @param inputEncoding The `encoding` of the `data` string. */ update(data: BinaryLike): Verify; - update(data: string, input_encoding: Encoding): Verify; + update(data: string, inputEncoding: Encoding): Verify; /** * Verifies the provided data using the given `object` and `signature`. * @@ -1803,11 +1804,11 @@ declare module 'crypto' { * @param primeEncoding The `encoding` of the `prime` string. * @param generatorEncoding The `encoding` of the `generator` string. */ - function createDiffieHellman(prime_length: number, generator?: number | NodeJS.ArrayBufferView): DiffieHellman; + function createDiffieHellman(primeLength: number, generator?: number | NodeJS.ArrayBufferView): DiffieHellman; function createDiffieHellman(prime: NodeJS.ArrayBufferView): DiffieHellman; - function createDiffieHellman(prime: string, prime_encoding: BinaryToTextEncoding): DiffieHellman; - function createDiffieHellman(prime: string, prime_encoding: BinaryToTextEncoding, generator: number | NodeJS.ArrayBufferView): DiffieHellman; - function createDiffieHellman(prime: string, prime_encoding: BinaryToTextEncoding, generator: string, generator_encoding: BinaryToTextEncoding): DiffieHellman; + function createDiffieHellman(prime: string, primeEncoding: BinaryToTextEncoding): DiffieHellman; + function createDiffieHellman(prime: string, primeEncoding: BinaryToTextEncoding, generator: number | NodeJS.ArrayBufferView): DiffieHellman; + function createDiffieHellman(prime: string, primeEncoding: BinaryToTextEncoding, generator: string, generatorEncoding: BinaryToTextEncoding): DiffieHellman; /** * The `DiffieHellman` class is a utility for creating Diffie-Hellman key * exchanges. @@ -1886,10 +1887,10 @@ declare module 'crypto' { * @param inputEncoding The `encoding` of an `otherPublicKey` string. * @param outputEncoding The `encoding` of the return value. */ - computeSecret(other_public_key: NodeJS.ArrayBufferView): Buffer; - computeSecret(other_public_key: string, input_encoding: BinaryToTextEncoding): Buffer; - computeSecret(other_public_key: NodeJS.ArrayBufferView, output_encoding: BinaryToTextEncoding): string; - computeSecret(other_public_key: string, input_encoding: BinaryToTextEncoding, output_encoding: BinaryToTextEncoding): string; + computeSecret(otherPublicKey: NodeJS.ArrayBufferView): Buffer; + computeSecret(otherPublicKey: string, inputEncoding: BinaryToTextEncoding): Buffer; + computeSecret(otherPublicKey: NodeJS.ArrayBufferView, outputEncoding: BinaryToTextEncoding): string; + computeSecret(otherPublicKey: string, inputEncoding: BinaryToTextEncoding, outputEncoding: BinaryToTextEncoding): string; /** * Returns the Diffie-Hellman prime in the specified `encoding`. * If `encoding` is provided a string is @@ -1933,8 +1934,8 @@ declare module 'crypto' { * @since v0.5.0 * @param encoding The `encoding` of the `publicKey` string. */ - setPublicKey(public_key: NodeJS.ArrayBufferView): void; - setPublicKey(public_key: string, encoding: BufferEncoding): void; + setPublicKey(publicKey: NodeJS.ArrayBufferView): void; + setPublicKey(publicKey: string, encoding: BufferEncoding): void; /** * Sets the Diffie-Hellman private key. If the `encoding` argument is provided,`privateKey` is expected * to be a string. If no `encoding` is provided, `privateKey` is expected @@ -1942,8 +1943,8 @@ declare module 'crypto' { * @since v0.5.0 * @param encoding The `encoding` of the `privateKey` string. */ - setPrivateKey(private_key: NodeJS.ArrayBufferView): void; - setPrivateKey(private_key: string, encoding: BufferEncoding): void; + setPrivateKey(privateKey: NodeJS.ArrayBufferView): void; + setPrivateKey(privateKey: string, encoding: BufferEncoding): void; /** * A bit field containing any warnings and/or errors resulting from a check * performed during initialization of the `DiffieHellman` object. @@ -2006,7 +2007,7 @@ declare module 'crypto' { * ``` * @since v0.7.5 */ - function getDiffieHellman(group_name: string): DiffieHellman; + function getDiffieHellman(groupName: string): DiffieHellman; /** * Provides an asynchronous Password-Based Key Derivation Function 2 (PBKDF2) * implementation. A selected HMAC digest algorithm specified by `digest` is @@ -2652,7 +2653,7 @@ declare module 'crypto' { * object, the `padding` property can be passed. Otherwise, this function uses`RSA_PKCS1_OAEP_PADDING`. * @since v0.11.14 */ - function privateDecrypt(private_key: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer; + function privateDecrypt(privateKey: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer; /** * Encrypts `buffer` with `privateKey`. The returned data can be decrypted using * the corresponding public key, for example using {@link publicDecrypt}. @@ -2661,7 +2662,7 @@ declare module 'crypto' { * object, the `padding` property can be passed. Otherwise, this function uses`RSA_PKCS1_PADDING`. * @since v1.1.0 */ - function privateEncrypt(private_key: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer; + function privateEncrypt(privateKey: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer; /** * ```js * const { @@ -2881,10 +2882,10 @@ declare module 'crypto' { * @param inputEncoding The `encoding` of the `otherPublicKey` string. * @param outputEncoding The `encoding` of the return value. */ - computeSecret(other_public_key: NodeJS.ArrayBufferView): Buffer; - computeSecret(other_public_key: string, input_encoding: BinaryToTextEncoding): Buffer; - computeSecret(other_public_key: NodeJS.ArrayBufferView, output_encoding: BinaryToTextEncoding): string; - computeSecret(other_public_key: string, input_encoding: BinaryToTextEncoding, output_encoding: BinaryToTextEncoding): string; + computeSecret(otherPublicKey: NodeJS.ArrayBufferView): Buffer; + computeSecret(otherPublicKey: string, inputEncoding: BinaryToTextEncoding): Buffer; + computeSecret(otherPublicKey: NodeJS.ArrayBufferView, outputEncoding: BinaryToTextEncoding): string; + computeSecret(otherPublicKey: string, inputEncoding: BinaryToTextEncoding, outputEncoding: BinaryToTextEncoding): string; /** * If `encoding` is specified, a string is returned; otherwise a `Buffer` is * returned. @@ -2916,8 +2917,8 @@ declare module 'crypto' { * @since v0.11.14 * @param encoding The `encoding` of the `privateKey` string. */ - setPrivateKey(private_key: NodeJS.ArrayBufferView): void; - setPrivateKey(private_key: string, encoding: BinaryToTextEncoding): void; + setPrivateKey(privateKey: NodeJS.ArrayBufferView): void; + setPrivateKey(privateKey: string, encoding: BinaryToTextEncoding): void; } /** * Creates an Elliptic Curve Diffie-Hellman (`ECDH`) key exchange object using a @@ -2926,7 +2927,7 @@ declare module 'crypto' { * and description of each available elliptic curve. * @since v0.11.14 */ - function createECDH(curve_name: string): ECDH; + function createECDH(curveName: string): ECDH; /** * This function is based on a constant-time algorithm. * Returns true if `a` is equal to `b`, without leaking timing information that @@ -3960,7 +3961,7 @@ declare module 'crypto' { * @param candidate A possible prime encoded as a sequence of big endian octets of arbitrary length. * @return `true` if the candidate is a prime with an error probability less than `0.25 ** options.checks`. */ - function checkPrimeSync(value: LargeNumberLike, options?: CheckPrimeOptions): boolean; + function checkPrimeSync(candidate: LargeNumberLike, options?: CheckPrimeOptions): boolean; namespace webcrypto { class CryptoKey {} // placeholder } diff --git a/node_modules/@types/node/diagnostics_channel.d.ts b/node_modules/@types/node/diagnostics_channel.d.ts index 68d07282a4..79bc9caec8 100755 --- a/node_modules/@types/node/diagnostics_channel.d.ts +++ b/node_modules/@types/node/diagnostics_channel.d.ts @@ -84,7 +84,7 @@ declare module 'diagnostics_channel' { * ``` * @param onMessage The handler to receive channel messages */ - subscribe(listener: ChannelListener): void; + subscribe(onMessage: ChannelListener): void; /** * Remove a message handler previously registered to this channel with `channel.subscribe(onMessage)`. * @@ -103,7 +103,7 @@ declare module 'diagnostics_channel' { * ``` * @param onMessage The previous subscribed handler to remove */ - unsubscribe(listener: ChannelListener): void; + unsubscribe(onMessage: ChannelListener): void; } } declare module 'node:diagnostics_channel' { diff --git a/node_modules/@types/node/domain.d.ts b/node_modules/@types/node/domain.d.ts index 70d7fce39b..ae8d0db8be 100755 --- a/node_modules/@types/node/domain.d.ts +++ b/node_modules/@types/node/domain.d.ts @@ -127,7 +127,7 @@ declare module 'domain' { * @param callback The callback function * @return The bound function */ - bind(cb: T): T; + bind(callback: T): T; /** * This method is almost identical to {@link bind}. However, in * addition to catching thrown errors, it will also intercept `Error` objects sent as the first argument to the function. @@ -160,7 +160,7 @@ declare module 'domain' { * @param callback The callback function * @return The intercepted function */ - intercept(cb: T): T; + intercept(callback: T): T; } function create(): Domain; } diff --git a/node_modules/@types/node/events.d.ts b/node_modules/@types/node/events.d.ts index f33a264778..e29429b04d 100755 --- a/node_modules/@types/node/events.d.ts +++ b/node_modules/@types/node/events.d.ts @@ -42,11 +42,11 @@ declare module 'events' { captureRejections?: boolean | undefined; } interface NodeEventTarget { - once(event: string | symbol, listener: (...args: any[]) => void): this; + once(eventName: string | symbol, listener: (...args: any[]) => void): this; } interface DOMEventTarget { addEventListener( - event: string, + eventName: string, listener: (...args: any[]) => void, opts?: { once: boolean; @@ -72,11 +72,11 @@ declare module 'events' { */ class EventEmitter { constructor(options?: EventEmitterOptions); - static once(emitter: NodeEventTarget, event: string | symbol, options?: StaticEventEmitterOptions): Promise; - static once(emitter: DOMEventTarget, event: string, options?: StaticEventEmitterOptions): Promise; - static on(emitter: NodeJS.EventEmitter, event: string, options?: StaticEventEmitterOptions): AsyncIterableIterator; + static once(emitter: NodeEventTarget, eventName: string | symbol, options?: StaticEventEmitterOptions): Promise; + static once(emitter: DOMEventTarget, eventName: string, options?: StaticEventEmitterOptions): Promise; + static on(emitter: NodeJS.EventEmitter, eventName: string, options?: StaticEventEmitterOptions): AsyncIterableIterator; /** @deprecated since v4.0.0 */ - static listenerCount(emitter: NodeJS.EventEmitter, event: string | symbol): number; + static listenerCount(emitter: NodeJS.EventEmitter, eventName: string | symbol): number; /** * Returns a list listener for a specific emitter event name. */ @@ -117,7 +117,7 @@ declare module 'events' { * Alias for `emitter.on(eventName, listener)`. * @since v0.1.26 */ - addListener(event: string | symbol, listener: (...args: any[]) => void): this; + addListener(eventName: string | symbol, listener: (...args: any[]) => void): this; /** * Adds the `listener` function to the end of the listeners array for the * event named `eventName`. No checks are made to see if the `listener` has @@ -148,7 +148,7 @@ declare module 'events' { * @param eventName The name of the event. * @param listener The callback function */ - on(event: string | symbol, listener: (...args: any[]) => void): this; + on(eventName: string | symbol, listener: (...args: any[]) => void): this; /** * Adds a **one-time**`listener` function for the event named `eventName`. The * next time `eventName` is triggered, this listener is removed and then invoked. @@ -177,7 +177,7 @@ declare module 'events' { * @param eventName The name of the event. * @param listener The callback function */ - once(event: string | symbol, listener: (...args: any[]) => void): this; + once(eventName: string | symbol, listener: (...args: any[]) => void): this; /** * Removes the specified `listener` from the listener array for the event named`eventName`. * @@ -257,12 +257,12 @@ declare module 'events' { * Returns a reference to the `EventEmitter`, so that calls can be chained. * @since v0.1.26 */ - removeListener(event: string | symbol, listener: (...args: any[]) => void): this; + removeListener(eventName: string | symbol, listener: (...args: any[]) => void): this; /** * Alias for `emitter.removeListener()`. * @since v10.0.0 */ - off(event: string | symbol, listener: (...args: any[]) => void): this; + off(eventName: string | symbol, listener: (...args: any[]) => void): this; /** * Removes all listeners, or those of the specified `eventName`. * @@ -302,7 +302,7 @@ declare module 'events' { * ``` * @since v0.1.26 */ - listeners(event: string | symbol): Function[]; + listeners(eventName: string | symbol): Function[]; /** * Returns a copy of the array of listeners for the event named `eventName`, * including any wrappers (such as those created by `.once()`). @@ -332,7 +332,7 @@ declare module 'events' { * ``` * @since v9.4.0 */ - rawListeners(event: string | symbol): Function[]; + rawListeners(eventName: string | symbol): Function[]; /** * Synchronously calls each of the listeners registered for the event named`eventName`, in the order they were registered, passing the supplied arguments * to each. @@ -373,13 +373,13 @@ declare module 'events' { * ``` * @since v0.1.26 */ - emit(event: string | symbol, ...args: any[]): boolean; + emit(eventName: string | symbol, ...args: any[]): boolean; /** * Returns the number of listeners listening to the event named `eventName`. * @since v3.2.0 * @param eventName The name of the event being listened for */ - listenerCount(event: string | symbol): number; + listenerCount(eventName: string | symbol): number; /** * Adds the `listener` function to the _beginning_ of the listeners array for the * event named `eventName`. No checks are made to see if the `listener` has @@ -397,7 +397,7 @@ declare module 'events' { * @param eventName The name of the event. * @param listener The callback function */ - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; + prependListener(eventName: string | symbol, listener: (...args: any[]) => void): this; /** * Adds a **one-time**`listener` function for the event named `eventName` to the_beginning_ of the listeners array. The next time `eventName` is triggered, this * listener is removed, and then invoked. @@ -413,7 +413,7 @@ declare module 'events' { * @param eventName The name of the event. * @param listener The callback function */ - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; + prependOnceListener(eventName: string | symbol, listener: (...args: any[]) => void): this; /** * Returns an array listing the events for which the emitter has registered * listeners. The values in the array are strings or `Symbol`s. diff --git a/node_modules/@types/node/fs.d.ts b/node_modules/@types/node/fs.d.ts index 32f2bda166..9be747779e 100755 --- a/node_modules/@types/node/fs.d.ts +++ b/node_modules/@types/node/fs.d.ts @@ -2555,7 +2555,7 @@ declare module 'fs' { * @since v0.1.29 * @param file filename or file descriptor */ - export function writeFile(path: PathOrFileDescriptor, data: string | NodeJS.ArrayBufferView, options: WriteFileOptions, callback: NoParamCallback): void; + export function writeFile(file: PathOrFileDescriptor, data: string | NodeJS.ArrayBufferView, options: WriteFileOptions, callback: NoParamCallback): void; /** * Asynchronously writes data to a file, replacing the file if it already exists. * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. @@ -2586,7 +2586,7 @@ declare module 'fs' { * @since v0.1.29 * @param file filename or file descriptor */ - export function writeFileSync(path: PathOrFileDescriptor, data: string | NodeJS.ArrayBufferView, options?: WriteFileOptions): void; + export function writeFileSync(file: PathOrFileDescriptor, data: string | NodeJS.ArrayBufferView, options?: WriteFileOptions): void; /** * Asynchronously append data to a file, creating the file if it does not yet * exist. `data` can be a string or a ``. @@ -2638,7 +2638,7 @@ declare module 'fs' { * @since v0.6.7 * @param path filename or file descriptor */ - export function appendFile(file: PathOrFileDescriptor, data: string | Uint8Array, options: WriteFileOptions, callback: NoParamCallback): void; + export function appendFile(path: PathOrFileDescriptor, data: string | Uint8Array, options: WriteFileOptions, callback: NoParamCallback): void; /** * Asynchronously append data to a file, creating the file if it does not exist. * @param file A path to a file. If a URL is provided, it must use the `file:` protocol. @@ -2706,7 +2706,7 @@ declare module 'fs' { * @since v0.6.7 * @param path filename or file descriptor */ - export function appendFileSync(file: PathOrFileDescriptor, data: string | Uint8Array, options?: WriteFileOptions): void; + export function appendFileSync(path: PathOrFileDescriptor, data: string | Uint8Array, options?: WriteFileOptions): void; /** * Watch for changes on `filename`. The callback `listener` will be called each * time the file is accessed. @@ -3479,31 +3479,9 @@ declare module 'fs' { * @param mode modifiers for copy operation. */ export function copyFile(src: PathLike, dest: PathLike, callback: NoParamCallback): void; - /** - * Asynchronously copies src to dest. By default, dest is overwritten if it already exists. - * No arguments other than a possible exception are given to the callback function. - * Node.js makes no guarantees about the atomicity of the copy operation. - * If an error occurs after the destination file has been opened for writing, Node.js will attempt - * to remove the destination. - * @param src A path to the source file. - * @param dest A path to the destination file. - * @param flags An integer that specifies the behavior of the copy operation. The only supported flag is fs.constants.COPYFILE_EXCL, which causes the copy operation to fail if dest already exists. - */ - export function copyFile(src: PathLike, dest: PathLike, flags: number, callback: NoParamCallback): void; + export function copyFile(src: PathLike, dest: PathLike, mode: number, callback: NoParamCallback): void; export namespace copyFile { - /** - * Asynchronously copies src to dest. By default, dest is overwritten if it already exists. - * No arguments other than a possible exception are given to the callback function. - * Node.js makes no guarantees about the atomicity of the copy operation. - * If an error occurs after the destination file has been opened for writing, Node.js will attempt - * to remove the destination. - * @param src A path to the source file. - * @param dest A path to the destination file. - * @param flags An optional integer that specifies the behavior of the copy operation. - * The only supported flag is fs.constants.COPYFILE_EXCL, - * which causes the copy operation to fail if dest already exists. - */ - function __promisify__(src: PathLike, dst: PathLike, flags?: number): Promise; + function __promisify__(src: PathLike, dst: PathLike, mode?: number): Promise; } /** * Synchronously copies `src` to `dest`. By default, `dest` is overwritten if it @@ -3539,7 +3517,7 @@ declare module 'fs' { * @param dest destination filename of the copy operation * @param mode modifiers for copy operation. */ - export function copyFileSync(src: PathLike, dest: PathLike, flags?: number): void; + export function copyFileSync(src: PathLike, dest: PathLike, mode?: number): void; /** * Write an array of `ArrayBufferView`s to the file specified by `fd` using`writev()`. * diff --git a/node_modules/@types/node/fs/promises.d.ts b/node_modules/@types/node/fs/promises.d.ts index ff55e7d42d..b272d8d80c 100755 --- a/node_modules/@types/node/fs/promises.d.ts +++ b/node_modules/@types/node/fs/promises.d.ts @@ -229,6 +229,41 @@ declare module 'fs/promises' { * @since v10.0.0 */ writeFile(data: string | Uint8Array, options?: (ObjectEncodingOptions & FlagAndOpenMode & Abortable) | BufferEncoding | null): Promise; + /** + * Write `buffer` to the file. + * + * The promise is resolved with an object containing two properties: + * + * It is unsafe to use `filehandle.write()` multiple times on the same file + * without waiting for the promise to be resolved (or rejected). For this + * scenario, use `fs.createWriteStream()`. + * + * On Linux, positional writes do not work when the file is opened in append mode. + * The kernel ignores the position argument and always appends the data to + * the end of the file. + * @since v10.0.0 + * @param offset The start position from within `buffer` where the data to write begins. + * @param length The number of bytes from `buffer` to write. + * @param position The offset from the beginning of the file where the data from `buffer` should be written. If `position` is not a `number`, the data will be written at the current position. + * See the POSIX pwrite(2) documentation for more detail. + */ + write( + buffer: TBuffer, + offset?: number | null, + length?: number | null, + position?: number | null + ): Promise<{ + bytesWritten: number; + buffer: TBuffer; + }>; + write( + data: string, + position?: number | null, + encoding?: BufferEncoding | null + ): Promise<{ + bytesWritten: number; + buffer: string; + }>; /** * Write an array of [<ArrayBufferView>](https://developer.mozilla.org/en-US/docs/Web/API/ArrayBufferView)s to the file. * @@ -338,7 +373,7 @@ declare module 'fs/promises' { * `fs.constants.COPYFILE_EXCL | fs.constants.COPYFILE_FICLONE`) * @return Fulfills with `undefined` upon success. */ - function copyFile(src: PathLike, dest: PathLike, flags?: number): Promise; + function copyFile(src: PathLike, dest: PathLike, mode?: number): Promise; /** * Opens a ``. * @@ -739,7 +774,7 @@ declare module 'fs/promises' { * @return Fulfills with `undefined` upon success. */ function writeFile( - path: PathLike | FileHandle, + file: PathLike | FileHandle, data: string | NodeJS.ArrayBufferView | Iterable | AsyncIterable | Stream, options?: | (ObjectEncodingOptions & { diff --git a/node_modules/@types/node/http2.d.ts b/node_modules/@types/node/http2.d.ts index 3af675ff4b..9b5fe3f89f 100755 --- a/node_modules/@types/node/http2.d.ts +++ b/node_modules/@types/node/http2.d.ts @@ -1002,7 +1002,7 @@ declare module 'http2' { * @param origins One or more URL Strings passed as separate arguments. */ origin( - ...args: Array< + ...origins: Array< | string | url.URL | { diff --git a/node_modules/@types/node/net.d.ts b/node_modules/@types/node/net.d.ts index 44f03c4f0e..b9c8d5d3d4 100755 --- a/node_modules/@types/node/net.d.ts +++ b/node_modules/@types/node/net.d.ts @@ -286,9 +286,9 @@ declare module 'net' { * @param callback Optional callback for when the socket is finished. * @return The socket itself. */ - end(cb?: () => void): void; - end(buffer: Uint8Array | string, cb?: () => void): void; - end(str: Uint8Array | string, encoding?: BufferEncoding, cb?: () => void): void; + end(callback?: () => void): void; + end(buffer: Uint8Array | string, callback?: () => void): void; + end(str: Uint8Array | string, encoding?: BufferEncoding, callback?: () => void): void; /** * events.EventEmitter * 1. close @@ -301,7 +301,7 @@ declare module 'net' { * 8. timeout */ addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: 'close', listener: (had_error: boolean) => void): this; + addListener(event: 'close', listener: (hadError: boolean) => void): this; addListener(event: 'connect', listener: () => void): this; addListener(event: 'data', listener: (data: Buffer) => void): this; addListener(event: 'drain', listener: () => void): this; @@ -310,7 +310,7 @@ declare module 'net' { addListener(event: 'lookup', listener: (err: Error, address: string, family: string | number, host: string) => void): this; addListener(event: 'timeout', listener: () => void): this; emit(event: string | symbol, ...args: any[]): boolean; - emit(event: 'close', had_error: boolean): boolean; + emit(event: 'close', hadError: boolean): boolean; emit(event: 'connect'): boolean; emit(event: 'data', data: Buffer): boolean; emit(event: 'drain'): boolean; @@ -319,7 +319,7 @@ declare module 'net' { emit(event: 'lookup', err: Error, address: string, family: string | number, host: string): boolean; emit(event: 'timeout'): boolean; on(event: string, listener: (...args: any[]) => void): this; - on(event: 'close', listener: (had_error: boolean) => void): this; + on(event: 'close', listener: (hadError: boolean) => void): this; on(event: 'connect', listener: () => void): this; on(event: 'data', listener: (data: Buffer) => void): this; on(event: 'drain', listener: () => void): this; @@ -328,7 +328,7 @@ declare module 'net' { on(event: 'lookup', listener: (err: Error, address: string, family: string | number, host: string) => void): this; on(event: 'timeout', listener: () => void): this; once(event: string, listener: (...args: any[]) => void): this; - once(event: 'close', listener: (had_error: boolean) => void): this; + once(event: 'close', listener: (hadError: boolean) => void): this; once(event: 'connect', listener: () => void): this; once(event: 'data', listener: (data: Buffer) => void): this; once(event: 'drain', listener: () => void): this; @@ -337,7 +337,7 @@ declare module 'net' { once(event: 'lookup', listener: (err: Error, address: string, family: string | number, host: string) => void): this; once(event: 'timeout', listener: () => void): this; prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: 'close', listener: (had_error: boolean) => void): this; + prependListener(event: 'close', listener: (hadError: boolean) => void): this; prependListener(event: 'connect', listener: () => void): this; prependListener(event: 'data', listener: (data: Buffer) => void): this; prependListener(event: 'drain', listener: () => void): this; @@ -346,7 +346,7 @@ declare module 'net' { prependListener(event: 'lookup', listener: (err: Error, address: string, family: string | number, host: string) => void): this; prependListener(event: 'timeout', listener: () => void): this; prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: 'close', listener: (had_error: boolean) => void): this; + prependOnceListener(event: 'close', listener: (hadError: boolean) => void): this; prependOnceListener(event: 'connect', listener: () => void): this; prependOnceListener(event: 'data', listener: (data: Buffer) => void): this; prependOnceListener(event: 'drain', listener: () => void): this; diff --git a/node_modules/@types/node/os.d.ts b/node_modules/@types/node/os.d.ts index 42054e550f..8796274fcc 100755 --- a/node_modules/@types/node/os.d.ts +++ b/node_modules/@types/node/os.d.ts @@ -448,10 +448,6 @@ declare module 'os' { * @param priority The scheduling priority to assign to the process. */ function setPriority(priority: number): void; - /** - * Sets the priority of the process specified process. - * @param priority Must be in range of -20 to 19 - */ function setPriority(pid: number, priority: number): void; } declare module 'node:os' { diff --git a/node_modules/@types/node/package.json b/node_modules/@types/node/package.json index c81966ed9d..5862ce8e51 100755 --- a/node_modules/@types/node/package.json +++ b/node_modules/@types/node/package.json @@ -1,6 +1,6 @@ { "name": "@types/node", - "version": "16.4.3", + "version": "16.4.5", "description": "TypeScript definitions for Node.js", "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node", "license": "MIT", @@ -232,6 +232,6 @@ }, "scripts": {}, "dependencies": {}, - "typesPublisherContentHash": "7773c70431ea6e9c0933bf765366c8cdb469355d431747d11fab3a760e130912", + "typesPublisherContentHash": "98c66e97322cf8ea4701d26cb699718e44f01a3ac25a1096136e1f082c6c125a", "typeScriptVersion": "3.6" } \ No newline at end of file diff --git a/node_modules/@types/node/process.d.ts b/node_modules/@types/node/process.d.ts index 5aab98b1ed..6983e15857 100755 --- a/node_modules/@types/node/process.d.ts +++ b/node_modules/@types/node/process.d.ts @@ -1126,7 +1126,7 @@ declare module 'process' { * } * ``` * @since v0.1.26 - * @param ...args Additional arguments to pass when invoking the `callback` + * @param args Additional arguments to pass when invoking the `callback` */ nextTick(callback: Function, ...args: any[]): void; /** diff --git a/node_modules/@types/node/repl.d.ts b/node_modules/@types/node/repl.d.ts index dbf7b6a47a..3178197bb6 100755 --- a/node_modules/@types/node/repl.d.ts +++ b/node_modules/@types/node/repl.d.ts @@ -312,7 +312,7 @@ declare module 'repl' { * @param historyPath the path to the history file * @param callback called when history writes are ready or upon error */ - setupHistory(path: string, cb: (err: Error | null, repl: this) => void): void; + setupHistory(path: string, callback: (err: Error | null, repl: this) => void): void; /** * events.EventEmitter * 1. close - inherited from `readline.Interface` diff --git a/node_modules/@types/node/stream.d.ts b/node_modules/@types/node/stream.d.ts index 85e0428ff8..64913af305 100755 --- a/node_modules/@types/node/stream.d.ts +++ b/node_modules/@types/node/stream.d.ts @@ -376,7 +376,7 @@ declare module 'stream' { * @since v0.9.4 * @param stream An "old style" readable stream */ - wrap(oldStream: NodeJS.ReadableStream): this; + wrap(stream: NodeJS.ReadableStream): this; push(chunk: any, encoding?: BufferEncoding): boolean; _destroy(error: Error | null, callback: (error?: Error | null) => void): void; /** @@ -591,8 +591,8 @@ declare module 'stream' { * @param callback Callback for when this chunk of data is flushed. * @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. */ - write(chunk: any, cb?: (error: Error | null | undefined) => void): boolean; - write(chunk: any, encoding: BufferEncoding, cb?: (error: Error | null | undefined) => void): boolean; + write(chunk: any, callback?: (error: Error | null | undefined) => void): boolean; + write(chunk: any, encoding: BufferEncoding, callback?: (error: Error | null | undefined) => void): boolean; /** * The `writable.setDefaultEncoding()` method sets the default `encoding` for a `Writable` stream. * @since v0.11.15 diff --git a/node_modules/@types/node/tls.d.ts b/node_modules/@types/node/tls.d.ts index 3e3e6c68a5..f551b38035 100755 --- a/node_modules/@types/node/tls.d.ts +++ b/node_modules/@types/node/tls.d.ts @@ -560,7 +560,7 @@ declare module 'tls' { * @param hostname A SNI host name or wildcard (e.g. `'*'`) * @param context An object containing any of the possible properties from the {@link createSecureContext} `options` arguments (e.g. `key`, `cert`, `ca`, etc). */ - addContext(hostName: string, credentials: SecureContextOptions): void; + addContext(hostname: string, context: SecureContextOptions): void; /** * Returns the session ticket keys. * @@ -575,7 +575,7 @@ declare module 'tls' { * @since v11.0.0 * @param options An object containing any of the possible properties from the {@link createSecureContext} `options` arguments (e.g. `key`, `cert`, `ca`, etc). */ - setSecureContext(details: SecureContextOptions): void; + setSecureContext(options: SecureContextOptions): void; /** * Sets the session ticket keys. * @@ -825,7 +825,7 @@ declare module 'tls' { * @param hostname The host name or IP address to verify the certificate against. * @param cert A `certificate object` representing the peer's certificate. */ - function checkServerIdentity(host: string, cert: PeerCertificate): Error | undefined; + function checkServerIdentity(hostname: string, cert: PeerCertificate): Error | undefined; /** * Creates a new {@link Server}. The `secureConnectionListener`, if provided, is * automatically set as a listener for the `'secureConnection'` event. @@ -949,7 +949,7 @@ declare module 'tls' { * @param requestCert `true` to specify whether a server should request a certificate from a connecting client. Only applies when `isServer` is `true`. * @param rejectUnauthorized If not `false` a server automatically reject clients with invalid certificates. Only applies when `isServer` is `true`. */ - function createSecurePair(credentials?: SecureContext, isServer?: boolean, requestCert?: boolean, rejectUnauthorized?: boolean): SecurePair; + function createSecurePair(context?: SecureContext, isServer?: boolean, requestCert?: boolean, rejectUnauthorized?: boolean): SecurePair; /** * {@link createServer} sets the default value of the `honorCipherOrder` option * to `true`, other APIs that create secure contexts leave it unset. diff --git a/node_modules/@types/node/tty.d.ts b/node_modules/@types/node/tty.d.ts index 0682e37829..f8a47c4230 100755 --- a/node_modules/@types/node/tty.d.ts +++ b/node_modules/@types/node/tty.d.ts @@ -155,7 +155,7 @@ declare module 'tty' { * @since v9.9.0 * @param env An object containing the environment variables to check. This enables simulating the usage of a specific terminal. */ - getColorDepth(env?: {}): number; + getColorDepth(env?: object): number; /** * Returns `true` if the `writeStream` supports at least as many colors as provided * in `count`. Minimum support is 2 (black and white). @@ -176,9 +176,9 @@ declare module 'tty' { * @param count The number of colors that are requested (minimum 2). * @param env An object containing the environment variables to check. This enables simulating the usage of a specific terminal. */ - hasColors(depth?: number): boolean; - hasColors(env?: {}): boolean; - hasColors(depth: number, env?: {}): boolean; + hasColors(count?: number): boolean; + hasColors(env?: object): boolean; + hasColors(count: number, env?: object): boolean; /** * `writeStream.getWindowSize()` returns the size of the `TTY` corresponding to this `WriteStream`. The array is of the type`[numColumns, numRows]` where `numColumns` and `numRows` represent * the number diff --git a/node_modules/@types/node/url.d.ts b/node_modules/@types/node/url.d.ts index 7a0b11ecc3..a134079964 100755 --- a/node_modules/@types/node/url.d.ts +++ b/node_modules/@types/node/url.d.ts @@ -70,13 +70,10 @@ declare module 'url' { * @param slashesDenoteHost If `true`, the first token after the literal string `//` and preceding the next `/` will be interpreted as the `host`. For instance, given `//foo/bar`, the result * would be `{host: 'foo', pathname: '/bar'}` rather than `{pathname: '//foo/bar'}`. */ - function parse(urlStr: string): UrlWithStringQuery; - /** @deprecated since v11.0.0 - Use the WHATWG URL API. */ - function parse(urlStr: string, parseQueryString: false | undefined, slashesDenoteHost?: boolean): UrlWithStringQuery; - /** @deprecated since v11.0.0 - Use the WHATWG URL API. */ - function parse(urlStr: string, parseQueryString: true, slashesDenoteHost?: boolean): UrlWithParsedQuery; - /** @deprecated since v11.0.0 - Use the WHATWG URL API. */ - function parse(urlStr: string, parseQueryString: boolean, slashesDenoteHost?: boolean): Url; + function parse(urlString: string): UrlWithStringQuery; + function parse(urlString: string, parseQueryString: false | undefined, slashesDenoteHost?: boolean): UrlWithStringQuery; + function parse(urlString: string, parseQueryString: true, slashesDenoteHost?: boolean): UrlWithParsedQuery; + function parse(urlString: string, parseQueryString: boolean, slashesDenoteHost?: boolean): Url; /** * The `url.format()` method returns a formatted URL string derived from`urlObject`. * @@ -140,8 +137,7 @@ declare module 'url' { * @deprecated Legacy: Use the WHATWG URL API instead. * @param urlObject A URL object (as returned by `url.parse()` or constructed otherwise). If a string, it is converted to an object by passing it to `url.parse()`. */ - function format(URL: URL, options?: URLFormatOptions): string; - /** @deprecated since v11.0.0 - Use the WHATWG URL API. */ + function format(urlObject: URL, options?: URLFormatOptions): string; function format(urlObject: UrlObject | string): string; /** * The `url.resolve()` method resolves a target URL relative to a base URL in a @@ -313,7 +309,7 @@ declare module 'url' { * @param path The path to convert to a File URL. * @return The file URL object. */ - function pathToFileURL(url: string): URL; + function pathToFileURL(path: string): URL; /** * This utility function converts a URL object into an ordinary options object as * expected by the `http.request()` and `https.request()` APIs. @@ -758,7 +754,7 @@ declare module 'url' { * @param fn Invoked for each name-value pair in the query * @param thisArg To be used as `this` value for when `fn` is called */ - forEach(callback: (value: string, name: string, searchParams: this) => void): void; + forEach(callback: (this: TThis, value: string, name: string, searchParams: this) => void, thisArg?: TThis): void; /** * Returns the value of the first name-value pair whose name is `name`. If there * are no such pairs, `null` is returned. diff --git a/node_modules/@types/node/util.d.ts b/node_modules/@types/node/util.d.ts index 8785d1909f..99509bd7a3 100755 --- a/node_modules/@types/node/util.d.ts +++ b/node_modules/@types/node/util.d.ts @@ -451,6 +451,10 @@ declare module 'util' { * @deprecated Legacy: Use ES2015 class syntax and `extends` keyword instead. */ export function inherits(constructor: unknown, superConstructor: unknown): void; + export type DebugLoggerFunction = (msg: string, ...param: unknown[]) => void; + export interface DebugLogger extends DebugLoggerFunction { + enabled: boolean; + } /** * The `util.debuglog()` method is used to create a function that conditionally * writes debug messages to `stderr` based on the existence of the `NODE_DEBUG`environment variable. If the `section` name appears within the value of that @@ -508,7 +512,7 @@ declare module 'util' { * @param callback A callback invoked the first time the logging function is called with a function argument that is a more optimized logging function. * @return The logging function */ - export function debuglog(key: string): (msg: string, ...param: unknown[]) => void; + export function debuglog(section: string, callback?: (fn: DebugLoggerFunction) => void): DebugLogger; /** * Returns `true` if the given `object` is a `Boolean`. Otherwise, returns `false`. * @@ -768,7 +772,7 @@ declare module 'util' { * @param code A deprecation code. See the `list of deprecated APIs` for a list of codes. * @return The deprecated function wrapped to emit a warning. */ - export function deprecate(fn: T, message: string, code?: string): T; + export function deprecate(fn: T, msg: string, code?: string): T; /** * Returns `true` if there is deep strict equality between `val1` and `val2`. * Otherwise, returns `false`. @@ -1050,7 +1054,7 @@ declare module 'util' { * @param src The text to encode. * @param dest The array to hold the encode result. */ - encodeInto(input: string, output: Uint8Array): EncodeIntoResult; + encodeInto(src: string, dest: Uint8Array): EncodeIntoResult; } } declare module 'util/types' { diff --git a/node_modules/@types/node/v8.d.ts b/node_modules/@types/node/v8.d.ts index 6be4de3578..ace8b781d4 100755 --- a/node_modules/@types/node/v8.d.ts +++ b/node_modules/@types/node/v8.d.ts @@ -217,7 +217,7 @@ declare module 'v8' { * worker thread. * @return The filename where the snapshot was saved. */ - function writeHeapSnapshot(fileName?: string): string; + function writeHeapSnapshot(filename?: string): string; /** * Returns an object with the following properties: * @@ -353,7 +353,7 @@ declare module 'v8' { * @since v8.0.0 * @param buffer A buffer returned by {@link serialize}. */ - function deserialize(data: NodeJS.TypedArray): any; + function deserialize(buffer: NodeJS.TypedArray): any; /** * The `v8.takeCoverage()` method allows the user to write the coverage started by `NODE_V8_COVERAGE` to disk on demand. This method can be invoked multiple * times during the lifetime of the process. Each time the execution counter will diff --git a/node_modules/@types/node/vm.d.ts b/node_modules/@types/node/vm.d.ts index e273750256..d83f02622b 100755 --- a/node_modules/@types/node/vm.d.ts +++ b/node_modules/@types/node/vm.d.ts @@ -191,7 +191,7 @@ declare module 'vm' { * @param contextifiedObject A `contextified` object as returned by the `vm.createContext()` method. * @return the result of the very last statement executed in the script. */ - runInContext(contextifiedSandbox: Context, options?: RunningScriptOptions): any; + runInContext(contextifiedObject: Context, options?: RunningScriptOptions): any; /** * First contextifies the given `contextObject`, runs the compiled code contained * by the `vm.Script` object within the created context, and returns the result. @@ -218,7 +218,7 @@ declare module 'vm' { * @param contextObject An object that will be `contextified`. If `undefined`, a new object will be created. * @return the result of the very last statement executed in the script. */ - runInNewContext(sandbox?: Context, options?: RunningScriptOptions): any; + runInNewContext(contextObject?: Context, options?: RunningScriptOptions): any; /** * Runs the compiled code contained by the `vm.Script` within the context of the * current `global` object. Running code does not have access to local scope, but_does_ have access to the current `global` object. @@ -340,7 +340,7 @@ declare module 'vm' { * @param contextifiedObject The `contextified` object that will be used as the `global` when the `code` is compiled and run. * @return the result of the very last statement executed in the script. */ - function runInContext(code: string, contextifiedSandbox: Context, options?: RunningScriptOptions | string): any; + function runInContext(code: string, contextifiedObject: Context, options?: RunningScriptOptions | string): any; /** * The `vm.runInNewContext()` first contextifies the given `contextObject` (or * creates a new `contextObject` if passed as `undefined`), compiles the `code`, @@ -369,7 +369,7 @@ declare module 'vm' { * @param contextObject An object that will be `contextified`. If `undefined`, a new object will be created. * @return the result of the very last statement executed in the script. */ - function runInNewContext(code: string, sandbox?: Context, options?: RunningScriptOptions | string): any; + function runInNewContext(code: string, contextObject?: Context, options?: RunningScriptOptions | string): any; /** * `vm.runInThisContext()` compiles `code`, runs it within the context of the * current `global` and returns the result. Running code does not have access to diff --git a/node_modules/@types/node/worker_threads.d.ts b/node_modules/@types/node/worker_threads.d.ts index 0f40bb0783..0d77c5ebc2 100755 --- a/node_modules/@types/node/worker_threads.d.ts +++ b/node_modules/@types/node/worker_threads.d.ts @@ -583,7 +583,7 @@ declare module 'worker_threads' { * @param port The message port to transfer. * @param contextifiedSandbox A `contextified` object as returned by the `vm.createContext()` method. */ - function moveMessagePortToContext(port: MessagePort, context: Context): MessagePort; + function moveMessagePortToContext(port: MessagePort, contextifiedSandbox: Context): MessagePort; /** * Receive a single message from a given `MessagePort`. If no message is available,`undefined` is returned, otherwise an object with a single `message` property * that contains the message payload, corresponding to the oldest message in the`MessagePort`’s queue. pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy