jscrambler-metro-plugin 8.4.16 → 8.4.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/sourceMaps.js CHANGED
@@ -138,9 +138,9 @@ module.exports = async function generateSourceMaps(payload) {
138
138
  /* vendor code */
139
139
  newMappings[0].generated.line += shiftLines;
140
140
 
141
- // code inserted with no real source file associated,
142
- // so we need to clean the invalid source value (f.e. ".")
143
- if (normalizePath.length === 0) {
141
+ // when the original line/column can't be found, it means that there isn't a real source file associated.
142
+ // Thus, if source file name exists it must be cleaned (f.e ".") to avoid an invalid mapping error
143
+ if (newMappings[0].original === null && newMappings[0].source) {
144
144
  newMappings[0].source = null;
145
145
  }
146
146
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jscrambler-metro-plugin",
3
- "version": "8.4.16",
3
+ "version": "8.4.17",
4
4
  "description": "A plugin to use metro with Jscrambler Code Integrity",
5
5
  "exports": "./lib/index.js",
6
6
  "peerDependencies": {