jscrambler-metro-plugin 6.2.8 → 6.3.0

Sign up to get free protection for your applications and to get access to all the features.
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.3.0",
4
4
  "description": "A plugin to use metro with Jscrambler",
5
5
  "main": "lib/index.js",
6
6
  "peerDependencies": {
@@ -9,7 +9,7 @@
9
9
  "dependencies": {
10
10
  "commander": "^2.20.0",
11
11
  "fs-extra": "^8.0.1",
12
- "jscrambler": "^6.2.8"
12
+ "jscrambler": "^6.3.0"
13
13
  },
14
14
  "keywords": [
15
15
  "jscrambler",