@parcel/packager-webextension
Advanced tools
Comparing version 2.6.1-nightly.2740 to 2.6.1-nightly.2747
@@ -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, |
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
8510
187