Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

metro-source-map

Package Overview
Dependencies
Maintainers
2
Versions
158
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

metro-source-map - npm Package Compare versions

Comparing version 0.75.0 to 0.75.1

6

package.json
{
"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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc