From 61078633aee4fe016a0c1a277f882fc70e277ec1 Mon Sep 17 00:00:00 2001 From: Timson Date: Tue, 13 Apr 2021 17:02:12 +0300 Subject: [PATCH 1/2] [node] Fix BufferEncoding base64url --- types/node/v13/globals.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/node/v13/globals.d.ts b/types/node/v13/globals.d.ts index b45bbf35d340f8..dd0aae85550810 100644 --- a/types/node/v13/globals.d.ts +++ b/types/node/v13/globals.d.ts @@ -175,7 +175,7 @@ declare var module: NodeModule; declare var exports: any; // Buffer class -type BufferEncoding = "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex"; +type BufferEncoding = "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex"; /** * Raw data is stored in instances of the Buffer class. From 00494e8238a1dea6260b4f2b776b72ccd5663586 Mon Sep 17 00:00:00 2001 From: Timson Date: Tue, 13 Apr 2021 22:54:37 +0300 Subject: [PATCH 2/2] fix: node v15 definitions --- types/node/globals.d.ts | 2 +- types/node/v13/globals.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/types/node/globals.d.ts b/types/node/globals.d.ts index 0c9c27e364bf14..46081c8476ac45 100644 --- a/types/node/globals.d.ts +++ b/types/node/globals.d.ts @@ -71,7 +71,7 @@ declare var module: NodeModule; declare var exports: any; // Buffer class -type BufferEncoding = "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex"; +type BufferEncoding = "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex"; type WithImplicitCoercion = T | { valueOf(): T }; diff --git a/types/node/v13/globals.d.ts b/types/node/v13/globals.d.ts index dd0aae85550810..b45bbf35d340f8 100644 --- a/types/node/v13/globals.d.ts +++ b/types/node/v13/globals.d.ts @@ -175,7 +175,7 @@ declare var module: NodeModule; declare var exports: any; // Buffer class -type BufferEncoding = "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex"; +type BufferEncoding = "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex"; /** * Raw data is stored in instances of the Buffer class.