metro-symbolicate
Advanced tools
Comparing version 0.70.3 to 0.71.0
{ | ||
"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
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
734186
5178
+ Addedmetro-source-map@0.71.0(transitive)
+ Addedob1@0.71.0(transitive)
- Removedmetro-source-map@0.70.3(transitive)
- Removedob1@0.70.3(transitive)
Updatedmetro-source-map@0.71.0