You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

token-types

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

token-types - npm Package Compare versions

Comparing version
6.0.2
to
6.0.3
+1
-1
lib/index.d.ts

@@ -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;

@@ -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 @@ }

{
"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": {