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
428
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.6.1-nightly.2740 to 2.6.1-nightly.2747

14

lib/WebExtensionPackager.js

@@ -53,3 +53,4 @@ "use strict";

bundle,
bundleGraph
bundleGraph,
options
}) {

@@ -107,8 +108,11 @@ let assets = [];

const warResult = (manifest.web_accessible_resources || []).concat(manifest.manifest_version == 2 ? [...new Set(war.flatMap(entry => entry.resources))] : war);
if (warResult.length > 0) {
manifest.web_accessible_resources = warResult;
if (manifest.manifest_version == 3 && options.hmrOptions) {
war.push({
matches: ['<all_urls>'],
resources: ['__parcel_hmr_proxy__']
});
}
const warResult = (manifest.web_accessible_resources || []).concat(manifest.manifest_version == 2 ? [...new Set(war.flatMap(entry => entry.resources))] : war);
if (warResult.length > 0) manifest.web_accessible_resources = warResult;
let {

@@ -115,0 +119,0 @@ contents

{
"name": "@parcel/packager-webextension",
"version": "2.6.1-nightly.2740+bc0d66756",
"version": "2.6.1-nightly.2747+597716ae7",
"license": "MIT",

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

"node": ">=12.0.0",
"parcel": "2.0.0-nightly.1115+bc0d66756"
"parcel": "2.0.0-nightly.1122+597716ae7"
},
"dependencies": {
"@parcel/plugin": "2.0.0-nightly.1117+bc0d66756",
"@parcel/utils": "2.0.0-nightly.1117+bc0d66756",
"@parcel/plugin": "2.0.0-nightly.1124+597716ae7",
"@parcel/utils": "2.0.0-nightly.1124+597716ae7",
"nullthrows": "^1.1.1"
},
"gitHead": "bc0d6675646c871af5483e8b138449ac224fa1d1"
"gitHead": "597716ae7498a422af551fd1685143390dcfc036"
}

@@ -9,3 +9,3 @@ // @flow strict-local

export default (new Packager({
async package({bundle, bundleGraph}) {
async package({bundle, bundleGraph, options}) {
let assets = [];

@@ -77,2 +77,6 @@ bundle.traverseAssets(asset => {

if (manifest.manifest_version == 3 && options.hmrOptions) {
war.push({matches: ['<all_urls>'], resources: ['__parcel_hmr_proxy__']});
}
const warResult = (manifest.web_accessible_resources || []).concat(

@@ -83,6 +87,5 @@ manifest.manifest_version == 2

);
if (warResult.length > 0) {
manifest.web_accessible_resources = warResult;
}
if (warResult.length > 0) manifest.web_accessible_resources = warResult;
let {contents} = replaceURLReferences({

@@ -89,0 +92,0 @@ bundle,

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