jscrambler-metro-plugin 8.4.3 → 8.4.4

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.4",
4
4
  "description": "A plugin to use metro with Jscrambler",
5
5
  "exports": "./lib/index.js",
6
6
  "peerDependencies": {