@jridgewell/sourcemap-codec
Advanced tools
Comparing version 1.4.10 to 1.4.11
@@ -7,7 +7,7 @@ (function (global, factory) { | ||
const comma = 44; | ||
const semicolon = 59; | ||
const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='; | ||
const intToChar = new Uint8Array(65); // 65 possible chars. | ||
const charToInteger = new Uint8Array(123); // z is 122 in ASCII | ||
const comma = ','.charCodeAt(0); | ||
const semicolon = ';'.charCodeAt(0); | ||
const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; | ||
const intToChar = new Uint8Array(64); // 64 possible chars. | ||
const charToInteger = new Uint8Array(128); // z is 122 in ASCII | ||
for (let i = 0; i < chars.length; i++) { | ||
@@ -96,3 +96,3 @@ const c = chars.charCodeAt(i); | ||
if (shouldNegate) { | ||
value = value === 0 ? -0x80000000 : -value; | ||
value = -0x80000000 | -value; | ||
} | ||
@@ -118,3 +118,3 @@ state[j] += value; | ||
const state = new Int32Array(5); | ||
let buf = new Uint8Array(1000); | ||
let buf = new Uint8Array(1024); | ||
let pos = 0; | ||
@@ -163,6 +163,6 @@ for (let i = 0; i < decoded.length; i++) { | ||
do { | ||
let clamped = num & 31; | ||
let clamped = num & 0b011111; | ||
num >>>= 5; | ||
if (num > 0) | ||
clamped |= 32; | ||
clamped |= 0b100000; | ||
buf[pos++] = intToChar[clamped]; | ||
@@ -169,0 +169,0 @@ } while (num > 0); |
{ | ||
"name": "@jridgewell/sourcemap-codec", | ||
"version": "1.4.10", | ||
"version": "1.4.11", | ||
"description": "Encode/decode sourcemap mappings", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28905