@types/node 14.17.19 → 14.17.20

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 v14.17/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/v14.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Sat, 25 Sep 2021 11:01:24 GMT
11
+ * Last updated: Wed, 29 Sep 2021 14:01:22 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `Buffer`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
14
14
 
node v14.17/crypto.d.ts CHANGED
@@ -140,7 +140,7 @@ declare module 'crypto' {
140
140
  function createHmac(algorithm: string, key: BinaryLike | KeyObject, options?: stream.TransformOptions): Hmac;
141
141
 
142
142
  // https://nodejs.org/api/buffer.html#buffer_buffers_and_character_encodings
143
- type BinaryToTextEncoding = 'base64' | 'hex';
143
+ type BinaryToTextEncoding = 'base64' | 'base64url' | 'hex';
144
144
  type CharacterEncoding = 'utf8' | 'utf-8' | 'utf16le' | 'latin1';
145
145
  type LegacyCharacterEncoding = 'ascii' | 'binary' | 'ucs2' | 'ucs-2';
146
146
 
@@ -514,7 +514,7 @@ declare module 'crypto' {
514
514
  key: BinaryLike,
515
515
  curve: string,
516
516
  inputEncoding?: BinaryToTextEncoding,
517
- outputEncoding?: 'latin1' | 'hex' | 'base64',
517
+ outputEncoding?: 'latin1' | 'hex' | 'base64' | 'base64url',
518
518
  format?: 'uncompressed' | 'compressed' | 'hybrid',
519
519
  ): Buffer | string;
520
520
  generateKeys(): Buffer;
@@ -71,14 +71,14 @@ declare var module: NodeModule;
71
71
  declare var exports: any;
72
72
 
73
73
  // Buffer class
74
- type BufferEncoding = "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex";
74
+ type BufferEncoding = "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex";
75
75
 
76
76
  type WithImplicitCoercion<T> = T | { valueOf(): T };
77
77
 
78
78
  /**
79
79
  * Raw data is stored in instances of the Buffer class.
80
80
  * 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.
81
- * Valid string encodings: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'binary'(deprecated)|'hex'
81
+ * Valid string encodings: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'base64url'|'binary'(deprecated)|'hex'
82
82
  */
83
83
  declare class Buffer extends Uint8Array {
84
84
  /**
@@ -160,7 +160,7 @@ declare class Buffer extends Uint8Array {
160
160
  static isBuffer(obj: any): obj is Buffer;
161
161
  /**
162
162
  * Returns true if {encoding} is a valid encoding argument.
163
- * Valid string encodings in Node 0.12: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'binary'(deprecated)|'hex'
163
+ * Valid string encodings in Node 0.12: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'base64url'|'binary'(deprecated)|'hex'
164
164
  *
165
165
  * @param encoding string to test.
166
166
  */
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "14.17.19",
3
+ "version": "14.17.20",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -220,6 +220,6 @@
220
220
  },
221
221
  "scripts": {},
222
222
  "dependencies": {},
223
- "typesPublisherContentHash": "8a3a81c8ee929dff59247980399dd3ba511f47cf9643417aabe87123c38a8bce",
223
+ "typesPublisherContentHash": "4a6ba8516ea62f5b4e074e70cdd1e0a6cb015a225b2ea8f3eea9232fc7a3ec7a",
224
224
  "typeScriptVersion": "3.7"
225
225
  }