metro-source-map
Advanced tools
Comparing version 0.75.1 to 0.76.0
{ | ||
"name": "metro-source-map", | ||
"version": "0.75.1", | ||
"version": "0.76.0", | ||
"description": "🚇 Source map generator for Metro.", | ||
@@ -18,5 +18,5 @@ "main": "src/source-map.js", | ||
"invariant": "^2.2.4", | ||
"metro-symbolicate": "0.75.1", | ||
"metro-symbolicate": "0.76.0", | ||
"nullthrows": "^1.1.1", | ||
"ob1": "0.75.1", | ||
"ob1": "0.76.0", | ||
"source-map": "^0.5.6", | ||
@@ -29,7 +29,7 @@ "vlq": "^1.0.0" | ||
"@babel/parser": "^7.20.0", | ||
"uglify-es": "^3.1.9" | ||
"terser": "^5.15.0" | ||
}, | ||
"engines": { | ||
"node": ">=14.17.0" | ||
"node": ">=16" | ||
} | ||
} |
@@ -185,3 +185,2 @@ /** | ||
sourceContentFor(source, nullOnMissing) { | ||
var _sourcesContent$get; | ||
const { sourcesContent } = this._sourceMap; | ||
@@ -195,8 +194,5 @@ if (!sourcesContent) { | ||
} | ||
return (_sourcesContent$get = sourcesContent[get0(idx)]) !== null && | ||
_sourcesContent$get !== void 0 | ||
? _sourcesContent$get | ||
: null; | ||
return sourcesContent[get0(idx)] ?? null; | ||
} | ||
} | ||
module.exports = MappingsConsumer; |
@@ -174,10 +174,3 @@ /** | ||
} else if ((0, _types.isJSXExpressionContainer)(parent)) { | ||
var _parentPath$parentPat; | ||
const grandParentNode = | ||
parentPath === null || parentPath === void 0 | ||
? void 0 | ||
: (_parentPath$parentPat = parentPath.parentPath) === null || | ||
_parentPath$parentPat === void 0 | ||
? void 0 | ||
: _parentPath$parentPat.node; | ||
const grandParentNode = parentPath?.parentPath?.node; | ||
if ((0, _types.isJSXElement)(grandParentNode)) { | ||
@@ -192,14 +185,4 @@ // <foo>{function () {}}</foo> | ||
} else if ((0, _types.isJSXAttribute)(grandParentNode)) { | ||
var _parentPath$parentPat2, _parentPath$parentPat3; | ||
// <foo bar={function () {}} /> | ||
const openingElement = | ||
parentPath === null || parentPath === void 0 | ||
? void 0 | ||
: (_parentPath$parentPat2 = parentPath.parentPath) === null || | ||
_parentPath$parentPat2 === void 0 | ||
? void 0 | ||
: (_parentPath$parentPat3 = _parentPath$parentPat2.parentPath) === | ||
null || _parentPath$parentPat3 === void 0 | ||
? void 0 | ||
: _parentPath$parentPat3.node; | ||
const openingElement = parentPath?.parentPath?.parentPath?.node; | ||
const prop = grandParentNode; | ||
@@ -327,6 +310,3 @@ id = t.jsxMemberExpression( | ||
} else if ((0, _types.isRegExpLiteral)(id)) { | ||
var _id$flags; | ||
name = `_${id.pattern}_${ | ||
(_id$flags = id.flags) !== null && _id$flags !== void 0 ? _id$flags : "" | ||
}`; | ||
name = `_${id.pattern}_${id.flags ?? ""}`; | ||
} else if ((0, _types.isTemplateLiteral)(id)) { | ||
@@ -333,0 +313,0 @@ name = id.quasis.map((quasi) => quasi.value.raw).join(""); |
@@ -150,5 +150,2 @@ /** | ||
...content, | ||
/* $FlowFixMe(>=0.111.0 site=react_native_fb) This comment suppresses an | ||
* error found when Flow v0.111 was deployed. To see the error, delete | ||
* this comment and run Flow. */ | ||
...sourcesMetadata, | ||
@@ -155,0 +152,0 @@ names: this.names.items(), |
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
118639
1822
+ Addedmetro-symbolicate@0.76.0(transitive)
+ Addedob1@0.76.0(transitive)
- Removedmetro-symbolicate@0.75.1(transitive)
- Removedob1@0.75.1(transitive)
Updatedmetro-symbolicate@0.76.0
Updatedob1@0.76.0