token-types
Advanced tools
+1
-1
@@ -130,3 +130,3 @@ import type { IToken, IGetToken } from '@tokenizer/token'; | ||
| private static readonly win1252Map; | ||
| constructor(len: number, encoding: string); | ||
| constructor(len: number, encoding?: string); | ||
| get(data: Uint8Array, offset?: number): string; | ||
@@ -133,0 +133,0 @@ private static decodeWindows1252; |
+1
-1
@@ -385,3 +385,3 @@ import * as ieee754 from 'ieee754'; | ||
| this.len = len; | ||
| if (encoding.toLowerCase() === 'windows-1252') { | ||
| if (encoding && encoding.toLowerCase() === 'windows-1252') { | ||
| this.decoder = StringType.decodeWindows1252; | ||
@@ -388,0 +388,0 @@ } |
+1
-1
| { | ||
| "name": "token-types", | ||
| "version": "6.0.2", | ||
| "version": "6.0.3", | ||
| "description": "Common token types for decoding and encoding numeric and string values", | ||
@@ -5,0 +5,0 @@ "author": { |
23184
0.06%