metro-source-map
Advanced tools
Comparing version 0.65.0 to 0.65.1
{ | ||
"name": "metro-source-map", | ||
"version": "0.65.0", | ||
"version": "0.65.1", | ||
"description": "🚇 Source map generator for Metro.", | ||
@@ -18,5 +18,5 @@ "main": "src/source-map.js", | ||
"invariant": "^2.2.4", | ||
"metro-symbolicate": "0.65.0", | ||
"metro-symbolicate": "0.65.1", | ||
"nullthrows": "^1.1.1", | ||
"ob1": "0.65.0", | ||
"ob1": "0.65.1", | ||
"source-map": "^0.5.6", | ||
@@ -23,0 +23,0 @@ "vlq": "^1.0.0" |
@@ -12,3 +12,3 @@ /** | ||
const { add, neg } = require("ob1"); | ||
const { add, neg, add0, add1 } = require("ob1"); | ||
@@ -24,5 +24,12 @@ function shiftPositionByOffset(pos, offset) { | ||
function subtractOffsetFromPosition(pos, offset) { | ||
if (pos.line === add1(offset.lines)) { | ||
return shiftPositionByOffset(pos, { | ||
lines: neg(offset.lines), | ||
columns: neg(offset.columns) | ||
}); | ||
} | ||
return shiftPositionByOffset(pos, { | ||
lines: neg(offset.lines), | ||
columns: neg(offset.columns) | ||
columns: add0(0) | ||
}); | ||
@@ -29,0 +36,0 @@ } |
@@ -46,3 +46,3 @@ /** | ||
if (!consumer) { | ||
return EMPTY_POSITION; | ||
return { ...EMPTY_POSITION }; | ||
} | ||
@@ -49,0 +49,0 @@ |
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
113713
1814
+ Addedmetro-symbolicate@0.65.1(transitive)
+ Addedob1@0.65.1(transitive)
- Removedmetro-symbolicate@0.65.0(transitive)
- Removedob1@0.65.0(transitive)
Updatedmetro-symbolicate@0.65.1
Updatedob1@0.65.1