Socket
Socket
Sign inDemoInstall

metro-symbolicate

Package Overview
Dependencies
Maintainers
2
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

metro-symbolicate - npm Package Compare versions

Comparing version 0.70.3 to 0.71.0

4

package.json
{
"name": "metro-symbolicate",
"version": "0.70.3",
"version": "0.71.0",
"description": "🚇 A tool to find the source location from JS bundles and stack traces.",

@@ -24,3 +24,3 @@ "license": "MIT",

"invariant": "^2.2.4",
"metro-source-map": "0.70.3",
"metro-source-map": "0.71.0",
"nullthrows": "^1.1.1",

@@ -27,0 +27,0 @@ "source-map": "^0.5.6",

@@ -166,13 +166,12 @@ /**

const basicMap: BasicSourceMap = map;
return (basicMap.x_facebook_sources || []).reduce(
(acc, metadata, index) => {
let source = basicMap.sources[index];
if (source != null) {
source = this._normalizeSource(source, basicMap);
acc[source] = metadata;
}
return acc;
},
{},
);
return (basicMap.x_facebook_sources || []).reduce<{
[string]: ?FBSourceMetadata,
}>((acc, metadata, index) => {
let source = basicMap.sources[index];
if (source != null) {
source = this._normalizeSource(source, basicMap);
acc[source] = metadata;
}
return acc;
}, {});
}

@@ -179,0 +178,0 @@ return {};

@@ -70,3 +70,3 @@ /**

type HermesMinidumpStackFrame = $ReadOnly<{|
type HermesMinidumpStackFrame = $ReadOnly<{
ByteCodeOffset: number,

@@ -80,3 +80,3 @@ FunctionID: number,

SourceLocation?: string,
|}>;
}>;

@@ -93,6 +93,6 @@ type HermesCoverageInfo = {

type NativeCodeStackFrame = $ReadOnly<{|
type NativeCodeStackFrame = $ReadOnly<{
NativeCode: true,
StackFrameRegOffs: string,
|}>;
}>;

@@ -103,3 +103,3 @@ type SymbolicatedStackTrace = $ReadOnlyArray<

type SymbolicatedStackFrame = $ReadOnly<{|
type SymbolicatedStackFrame = $ReadOnly<{
line: ?number,

@@ -110,3 +110,3 @@ column: ?number,

name: ?string,
|}>;
}>;

@@ -369,3 +369,3 @@ const UNKNOWN_MODULE_IDS: SingleMapModuleIds = {

moduleIds: ?ModuleIdsT,
): {|
): {
line: ?number,

@@ -375,3 +375,3 @@ column: ?number,

name: ?string,
|} {
} {
const position = this.getOriginalPositionDetailsFor(

@@ -501,3 +501,3 @@ lineNumber,

+_segments: {
+[id: string]: {|
+[id: string]: {
// $FlowFixMe[value-as-type]

@@ -508,3 +508,3 @@ +consumer: SourceMapConsumer,

+hermesOffsets: ?HermesFunctionOffsets,
|},
},
...

@@ -857,3 +857,3 @@ };

context: SymbolicationContext<ModuleIdsT>,
): {|
): {
line: ?number,

@@ -863,3 +863,3 @@ column: ?number,

name: ?string,
|} {
} {
return context.getOriginalPositionFor(lineNumber, columnNumber, moduleIds);

@@ -866,0 +866,0 @@ }

Sorry, the diff of this file is not supported yet

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