@parcel/packager-js
Advanced tools
Comparing version 2.0.0-nightly.156 to 2.0.0-nightly.159
@@ -130,5 +130,6 @@ "use strict"; | ||
let assetMap = (_maps$i = maps[i]) !== null && _maps$i !== void 0 ? _maps$i : _sourceMap.default.generateEmptyMap(_path.default.relative(options.projectRoot, asset.filePath).replace(/\\+/g, '/'), output); | ||
let lineCount = (0, _utils.countLines)(output); | ||
let assetMap = (_maps$i = maps[i]) !== null && _maps$i !== void 0 ? _maps$i : _sourceMap.default.generateEmptyMap(_path.default.relative(options.projectRoot, asset.filePath).replace(/\\+/g, '/'), lineCount); | ||
map.addMap(assetMap, lineOffset); | ||
lineOffset += (0, _utils.countLines)(output) + 1; | ||
lineOffset += lineCount + 1; | ||
} | ||
@@ -135,0 +136,0 @@ |
{ | ||
"name": "@parcel/packager-js", | ||
"version": "2.0.0-nightly.156+14eaa0f4", | ||
"version": "2.0.0-nightly.159+59d4d6eb", | ||
"license": "MIT", | ||
@@ -19,8 +19,8 @@ "publishConfig": { | ||
"dependencies": { | ||
"@parcel/plugin": "2.0.0-nightly.156+14eaa0f4", | ||
"@parcel/scope-hoisting": "2.0.0-nightly.156+14eaa0f4", | ||
"@parcel/source-map": "2.0.0-nightly.156+14eaa0f4", | ||
"@parcel/utils": "2.0.0-nightly.156+14eaa0f4" | ||
"@parcel/plugin": "2.0.0-nightly.159+59d4d6eb", | ||
"@parcel/scope-hoisting": "2.0.0-nightly.159+59d4d6eb", | ||
"@parcel/source-map": "2.0.0-nightly.159+59d4d6eb", | ||
"@parcel/utils": "2.0.0-nightly.159+59d4d6eb" | ||
}, | ||
"gitHead": "14eaa0f4bcddc79efa3ba383dbd0726f16ca0276" | ||
"gitHead": "59d4d6ebb6765c5833c31391b6cca4015c88319d" | ||
} |
@@ -128,2 +128,3 @@ // @flow strict-local | ||
if (options.sourceMaps) { | ||
let lineCount = countLines(output); | ||
let assetMap = | ||
@@ -135,7 +136,7 @@ maps[i] ?? | ||
.replace(/\\+/g, '/'), | ||
output, | ||
lineCount, | ||
); | ||
map.addMap(assetMap, lineOffset); | ||
lineOffset += countLines(output) + 1; | ||
lineOffset += lineCount + 1; | ||
} | ||
@@ -142,0 +143,0 @@ i++; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
20995
555