jscrambler-metro-plugin 8.4.3 → 8.4.5

Sign up to get free protection for your applications and to get access to all the features.
package/lib/sourceMaps.js CHANGED
@@ -105,7 +105,11 @@ module.exports = async function generateSourceMaps(payload) {
105
105
  const allGeneratedPositionsFor = ofuscatedSourceMapConsumers[fileNamesIndex].allGeneratedPositionsFor({
106
106
  source: normalizePath,
107
107
  line: mapping.generatedLine - lineStart + 1 /* avoid line=0 */,
108
- column: mapping.generatedColumn - columnStart
108
+ column:
109
+ mapping.generatedColumn -
110
+ (mapping.generatedLine === lineStart
111
+ ? columnStart /* column start should be applied only to the first line */
112
+ : 0),
109
113
  });
110
114
 
111
115
  if (allGeneratedPositionsFor.length === 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jscrambler-metro-plugin",
3
- "version": "8.4.3",
3
+ "version": "8.4.5",
4
4
  "description": "A plugin to use metro with Jscrambler",
5
5
  "exports": "./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": "8.4.2"
12
+ "jscrambler": "8.5.0"
13
13
  },
14
14
  "keywords": [
15
15
  "jscrambler",