Socket
Socket
Sign inDemoInstall

sourcemap-codec

Package Overview
Dependencies
0
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.4.4 to 1.4.5

4

CHANGELOG.md
# sourcemap-codec changelog
## 1.4.5
* Handle overflow cases ([#78](https://github.com/Rich-Harris/sourcemap-codec/pull/78))
## 1.4.4

@@ -4,0 +8,0 @@

20

dist/sourcemap-codec.es.js

@@ -45,22 +45,26 @@ var charToInteger = {};

var shouldNegate = value & 1;
value >>= 1;
var num = shouldNegate ? -value : value;
value >>>= 1;
if (shouldNegate) {
value = -value;
if (value === 0)
value = -0x80000000;
}
if (j == 0) {
generatedCodeColumn += num;
generatedCodeColumn += value;
segment.push(generatedCodeColumn);
}
else if (j === 1) {
sourceFileIndex += num;
sourceFileIndex += value;
segment.push(sourceFileIndex);
}
else if (j === 2) {
sourceCodeLine += num;
sourceCodeLine += value;
segment.push(sourceCodeLine);
}
else if (j === 3) {
sourceCodeColumn += num;
sourceCodeColumn += value;
segment.push(sourceCodeColumn);
}
else if (j === 4) {
nameIndex += num;
nameIndex += value;
segment.push(nameIndex);

@@ -120,3 +124,3 @@ }

var clamped = num & 31;
num >>= 5;
num >>>= 5;
if (num > 0) {

@@ -123,0 +127,0 @@ clamped |= 32;

(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(factory((global.sourcemapCodec = {})));
}(this, (function (exports) { 'use strict';
(global = global || self, factory(global.sourcemapCodec = {}));
}(this, function (exports) { 'use strict';

@@ -51,22 +51,26 @@ var charToInteger = {};

var shouldNegate = value & 1;
value >>= 1;
var num = shouldNegate ? -value : value;
value >>>= 1;
if (shouldNegate) {
value = -value;
if (value === 0)
value = -0x80000000;
}
if (j == 0) {
generatedCodeColumn += num;
generatedCodeColumn += value;
segment.push(generatedCodeColumn);
}
else if (j === 1) {
sourceFileIndex += num;
sourceFileIndex += value;
segment.push(sourceFileIndex);
}
else if (j === 2) {
sourceCodeLine += num;
sourceCodeLine += value;
segment.push(sourceCodeLine);
}
else if (j === 3) {
sourceCodeColumn += num;
sourceCodeColumn += value;
segment.push(sourceCodeColumn);
}
else if (j === 4) {
nameIndex += num;
nameIndex += value;
segment.push(nameIndex);

@@ -126,3 +130,3 @@ }

var clamped = num & 31;
num >>= 5;
num >>>= 5;
if (num > 0) {

@@ -141,3 +145,3 @@ clamped |= 32;

})));
}));
//# sourceMappingURL=sourcemap-codec.umd.js.map
{
"name": "sourcemap-codec",
"version": "1.4.4",
"version": "1.4.5",
"description": "Encode/decode sourcemap mappings",

@@ -37,11 +37,11 @@ "main": "dist/sourcemap-codec.umd.js",

"console-group": "^0.3.3",
"eslint": "^5.6.0",
"eslint-plugin-import": "^2.14.0",
"eslint": "^6.0.1",
"eslint-plugin-import": "^2.18.0",
"istanbul": "^0.4.5",
"mocha": "^5.2.0",
"remap-istanbul": "^0.12.0",
"rollup": "^0.66.0",
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-typescript": "^1.0.0",
"typescript": "^3.0.3"
"mocha": "^6.1.4",
"remap-istanbul": "^0.13.0",
"rollup": "^1.16.4",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-typescript": "^1.0.1",
"typescript": "^3.5.2"
},

@@ -48,0 +48,0 @@ "files": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc