jscrambler-metro-plugin 6.2.8 → 6.2.9

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
@@ -115,6 +115,12 @@ module.exports = async function generateSourceMaps(payload) {
115
115
  } else {
116
116
  /* vendor code */
117
117
  newMappings[0].generated.line += shiftLines;
118
+
119
+ // code inserted with no real source file associated,
120
+ // so we need to clean the invalid source value (f.e. ".")
121
+ if (normalizePath.length === 0) {
122
+ newMappings[0].source = null;
123
+ }
118
124
  }
119
125
 
120
126
  newMappings.forEach((newMapping) => finalSourceMapGenerator.addMapping(newMapping));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jscrambler-metro-plugin",
3
- "version": "6.2.8",
3
+ "version": "6.2.9",
4
4
  "description": "A plugin to use metro with Jscrambler",
5
5
  "main": "lib/index.js",
6
6
  "peerDependencies": {