@parcel/packager-js
Advanced tools
Comparing version 2.0.0-nightly.167 to 2.0.0-nightly.173
@@ -81,3 +81,3 @@ "use strict"; | ||
codeQueue.add(() => node.value.getCode()); | ||
mapQueue.add(() => node.value.getMap()); | ||
mapQueue.add(() => node.value.getMapBuffer()); | ||
} | ||
@@ -129,7 +129,10 @@ }); | ||
if (options.sourceMaps) { | ||
var _maps$i; | ||
let lineCount = (0, _utils.countLines)(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); | ||
if (maps[i]) { | ||
map.addBufferMappings(maps[i], lineOffset); | ||
} else { | ||
map.addEmptyMap(_path.default.relative(options.projectRoot, asset.filePath).replace(/\\+/g, '/'), output, lineOffset); | ||
} | ||
lineOffset += lineCount + 1; | ||
@@ -136,0 +139,0 @@ } |
{ | ||
"name": "@parcel/packager-js", | ||
"version": "2.0.0-nightly.167+b9e4105c", | ||
"version": "2.0.0-nightly.173+bac3f05f", | ||
"license": "MIT", | ||
@@ -19,8 +19,8 @@ "publishConfig": { | ||
"dependencies": { | ||
"@parcel/plugin": "2.0.0-nightly.167+b9e4105c", | ||
"@parcel/scope-hoisting": "2.0.0-nightly.167+b9e4105c", | ||
"@parcel/source-map": "2.0.0-nightly.167+b9e4105c", | ||
"@parcel/utils": "2.0.0-nightly.167+b9e4105c" | ||
"@parcel/plugin": "2.0.0-nightly.173+bac3f05f", | ||
"@parcel/scope-hoisting": "2.0.0-nightly.173+bac3f05f", | ||
"@parcel/source-map": "^2.0.0-alpha.4.3", | ||
"@parcel/utils": "2.0.0-nightly.173+bac3f05f" | ||
}, | ||
"gitHead": "b9e4105c50576ed22a99860e08e65491d4659a43" | ||
"gitHead": "bac3f05fa31574338f14ab9cd2c9bd78fb1c22ee" | ||
} |
@@ -68,3 +68,3 @@ // @flow strict-local | ||
codeQueue.add(() => node.value.getCode()); | ||
mapQueue.add(() => node.value.getMap()); | ||
mapQueue.add(() => node.value.getMapBuffer()); | ||
} | ||
@@ -130,12 +130,14 @@ }); | ||
let lineCount = countLines(output); | ||
let assetMap = | ||
maps[i] ?? | ||
SourceMap.generateEmptyMap( | ||
if (maps[i]) { | ||
map.addBufferMappings(maps[i], lineOffset); | ||
} else { | ||
map.addEmptyMap( | ||
path | ||
.relative(options.projectRoot, asset.filePath) | ||
.replace(/\\+/g, '/'), | ||
lineCount, | ||
output, | ||
lineOffset, | ||
); | ||
} | ||
map.addMap(assetMap, lineOffset); | ||
lineOffset += lineCount + 1; | ||
@@ -142,0 +144,0 @@ } |
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
559
20988
+ Added@parcel/source-map@2.1.1(transitive)
+ Addeddetect-libc@1.0.3(transitive)