@parcel/packager-webextension
Advanced tools
Comparing version 2.5.1-nightly.2722 to 2.5.1-nightly.2726
@@ -106,3 +106,8 @@ "use strict"; | ||
manifest.web_accessible_resources = (manifest.web_accessible_resources || []).concat(manifest.manifest_version == 2 ? [...new Set(war.flatMap(entry => entry.resources))] : war); | ||
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 { | ||
@@ -109,0 +114,0 @@ contents |
{ | ||
"name": "@parcel/packager-webextension", | ||
"version": "2.5.1-nightly.2722+b836d6bff", | ||
"version": "2.5.1-nightly.2726+460e78611", | ||
"license": "MIT", | ||
@@ -20,10 +20,10 @@ "publishConfig": { | ||
"node": ">=12.0.0", | ||
"parcel": "2.0.0-nightly.1097+b836d6bff" | ||
"parcel": "2.0.0-nightly.1101+460e78611" | ||
}, | ||
"dependencies": { | ||
"@parcel/plugin": "2.0.0-nightly.1099+b836d6bff", | ||
"@parcel/utils": "2.0.0-nightly.1099+b836d6bff", | ||
"@parcel/plugin": "2.0.0-nightly.1103+460e78611", | ||
"@parcel/utils": "2.0.0-nightly.1103+460e78611", | ||
"nullthrows": "^1.1.1" | ||
}, | ||
"gitHead": "b836d6bffc4dfa0302aadb00e1220f43e6b11919" | ||
"gitHead": "460e786115a3ae20f8148bb13568b4f0149fdd3f" | ||
} |
@@ -75,5 +75,4 @@ // @flow strict-local | ||
} | ||
manifest.web_accessible_resources = ( | ||
manifest.web_accessible_resources || [] | ||
).concat( | ||
const warResult = (manifest.web_accessible_resources || []).concat( | ||
manifest.manifest_version == 2 | ||
@@ -83,2 +82,6 @@ ? [...new Set(war.flatMap(entry => entry.resources))] | ||
); | ||
if (warResult.length > 0) { | ||
manifest.web_accessible_resources = warResult; | ||
} | ||
let {contents} = replaceURLReferences({ | ||
@@ -85,0 +88,0 @@ bundle, |
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
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
8191
181