metro-source-map
Advanced tools
Comparing version 0.75.0 to 0.75.1
{ | ||
"name": "metro-source-map", | ||
"version": "0.75.0", | ||
"version": "0.75.1", | ||
"description": "🚇 Source map generator for Metro.", | ||
@@ -18,5 +18,5 @@ "main": "src/source-map.js", | ||
"invariant": "^2.2.4", | ||
"metro-symbolicate": "0.75.0", | ||
"metro-symbolicate": "0.75.1", | ||
"nullthrows": "^1.1.1", | ||
"ob1": "0.75.0", | ||
"ob1": "0.75.1", | ||
"source-map": "^0.5.6", | ||
@@ -23,0 +23,0 @@ "vlq": "^1.0.0" |
@@ -21,2 +21,3 @@ /** | ||
const Generator = require("./Generator"); | ||
// $FlowFixMe[untyped-import] - source-map | ||
const SourceMap = require("source-map"); | ||
@@ -104,14 +105,25 @@ function fromRawMappingsImpl(isBlocking, onDone, modules, offsetLines) { | ||
new SourceMap.SourceMapConsumer(sourceMap).eachMapping((map) => { | ||
rawMappings.push({ | ||
generated: { | ||
line: map.generatedLine, | ||
column: map.generatedColumn, | ||
}, | ||
original: { | ||
line: map.originalLine, | ||
column: map.originalColumn, | ||
}, | ||
source: map.source, | ||
name: map.name, | ||
}); | ||
rawMappings.push( | ||
map.originalLine == null || map.originalColumn == null | ||
? { | ||
generated: { | ||
line: map.generatedLine, | ||
column: map.generatedColumn, | ||
}, | ||
source: map.source, | ||
name: map.name, | ||
} | ||
: { | ||
generated: { | ||
line: map.generatedLine, | ||
column: map.generatedColumn, | ||
}, | ||
original: { | ||
line: map.originalLine, | ||
column: map.originalColumn, | ||
}, | ||
source: map.source, | ||
name: map.name, | ||
} | ||
); | ||
}); | ||
@@ -146,5 +158,7 @@ return rawMappings; | ||
} else if (n === 4) { | ||
// $FlowIssue[invalid-tuple-arity] Arity is ensured by conidition on length | ||
const sourceMap = mapping; | ||
generator.addSourceMapping(line, column, sourceMap[2], sourceMap[3]); | ||
} else if (n === 5) { | ||
// $FlowIssue[invalid-tuple-arity] Arity is ensured by conidition on length | ||
const sourceMap = mapping; | ||
@@ -151,0 +165,0 @@ generator.addNamedSourceMapping( |
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
119916
1849
+ Addedmetro-symbolicate@0.75.1(transitive)
+ Addedob1@0.75.1(transitive)
- Removedmetro-symbolicate@0.75.0(transitive)
- Removedob1@0.75.0(transitive)
Updatedmetro-symbolicate@0.75.1
Updatedob1@0.75.1