Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@parcel/packager-js

Package Overview
Dependencies
Maintainers
1
Versions
896
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@parcel/packager-js - npm Package Compare versions

Comparing version 2.0.0-nightly.167 to 2.0.0-nightly.173

13

lib/JSPackager.js

@@ -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 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc