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.156 to 2.0.0-nightly.159

5

lib/JSPackager.js

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

12

package.json
{
"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++;

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