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

@parcel/packager-webextension

Package Overview
Dependencies
Maintainers
1
Versions
431
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@parcel/packager-webextension - npm Package Compare versions

Comparing version 2.7.1-nightly.2802 to 2.7.1-nightly.2806

9

lib/WebExtensionPackager.js

@@ -56,2 +56,4 @@ "use strict";

}) {
var _manifest$background;
let assets = [];

@@ -70,2 +72,9 @@ bundle.traverseAssets(asset => {

const manifest = JSON.parse(await asset.getCode());
if (((_manifest$background = manifest.background) === null || _manifest$background === void 0 ? void 0 : _manifest$background.type) === 'module') {
// service workers are built with output format 'global'
// see: https://github.com/parcel-bundler/parcel/blob/3329469f50de9326c5b02ef0ab1c0ce41393279c/packages/transformers/js/src/JSTransformer.js#L577
delete manifest.background.type;
}
const deps = asset.getDependencies();

@@ -72,0 +81,0 @@ const war = [];

10

package.json
{
"name": "@parcel/packager-webextension",
"version": "2.7.1-nightly.2802+4ba031aa4",
"version": "2.7.1-nightly.2806+8b8e650a9",
"license": "MIT",

@@ -20,10 +20,10 @@ "publishConfig": {

"node": ">=12.0.0",
"parcel": "2.0.0-nightly.1177+4ba031aa4"
"parcel": "2.0.0-nightly.1181+8b8e650a9"
},
"dependencies": {
"@parcel/plugin": "2.0.0-nightly.1179+4ba031aa4",
"@parcel/utils": "2.0.0-nightly.1179+4ba031aa4",
"@parcel/plugin": "2.0.0-nightly.1183+8b8e650a9",
"@parcel/utils": "2.0.0-nightly.1183+8b8e650a9",
"nullthrows": "^1.1.1"
},
"gitHead": "4ba031aa44d14b48e97d8172daeae8c24a423294"
"gitHead": "8b8e650a9c1e12e530bbfdcf05f8f552bb19ac88"
}

@@ -26,2 +26,9 @@ // @flow strict-local

const manifest = JSON.parse(await asset.getCode());
if (manifest.background?.type === 'module') {
// service workers are built with output format 'global'
// see: https://github.com/parcel-bundler/parcel/blob/3329469f50de9326c5b02ef0ab1c0ce41393279c/packages/transformers/js/src/JSTransformer.js#L577
delete manifest.background.type;
}
const deps = asset.getDependencies();

@@ -28,0 +35,0 @@ const war = [];

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