@parcel/core
Advanced tools
Comparing version 2.0.0-nightly.110 to 2.0.0-nightly.113
@@ -447,3 +447,3 @@ "use strict"; | ||
let includedBundles = getBundlesIncludedInHash(bundle.id, bundleInfoMap); | ||
let includedBundles = [...getBundlesIncludedInHash(bundle.id, bundleInfoMap)]; | ||
hashRefToNameHash.set(bundle.hashReference, (0, _utils.md5FromString)(includedBundles.map(bundleId => bundleInfoMap[bundleId].hash).join(':')).slice(-8)); | ||
@@ -453,4 +453,4 @@ } | ||
function getBundlesIncludedInHash(bundleId, bundleInfoMap, included = []) { | ||
included.push(bundleId); | ||
function getBundlesIncludedInHash(bundleId, bundleInfoMap, included = new Set()) { | ||
included.add(bundleId); | ||
@@ -460,4 +460,4 @@ for (let hashRef of bundleInfoMap[bundleId].hashReferences) { | ||
if (!included.includes(referencedId)) { | ||
included.push(...getBundlesIncludedInHash(referencedId, bundleInfoMap, included)); | ||
if (!included.has(referencedId)) { | ||
getBundlesIncludedInHash(referencedId, bundleInfoMap, included); | ||
} | ||
@@ -464,0 +464,0 @@ } |
{ | ||
"name": "@parcel/core", | ||
"version": "2.0.0-nightly.110+9e4870b8", | ||
"version": "2.0.0-nightly.113+54b8e94f", | ||
"license": "MIT", | ||
@@ -19,13 +19,13 @@ "publishConfig": { | ||
"dependencies": { | ||
"@parcel/cache": "2.0.0-nightly.112+9e4870b8", | ||
"@parcel/diagnostic": "2.0.0-nightly.112+9e4870b8", | ||
"@parcel/events": "2.0.0-nightly.112+9e4870b8", | ||
"@parcel/fs": "2.0.0-nightly.112+9e4870b8", | ||
"@parcel/logger": "2.0.0-nightly.112+9e4870b8", | ||
"@parcel/package-manager": "2.0.0-nightly.112+9e4870b8", | ||
"@parcel/plugin": "2.0.0-nightly.112+9e4870b8", | ||
"@parcel/source-map": "2.0.0-nightly.112+9e4870b8", | ||
"@parcel/types": "2.0.0-nightly.112+9e4870b8", | ||
"@parcel/utils": "2.0.0-nightly.112+9e4870b8", | ||
"@parcel/workers": "2.0.0-nightly.112+9e4870b8", | ||
"@parcel/cache": "2.0.0-nightly.115+54b8e94f", | ||
"@parcel/diagnostic": "2.0.0-nightly.115+54b8e94f", | ||
"@parcel/events": "2.0.0-nightly.115+54b8e94f", | ||
"@parcel/fs": "2.0.0-nightly.115+54b8e94f", | ||
"@parcel/logger": "2.0.0-nightly.115+54b8e94f", | ||
"@parcel/package-manager": "2.0.0-nightly.115+54b8e94f", | ||
"@parcel/plugin": "2.0.0-nightly.115+54b8e94f", | ||
"@parcel/source-map": "2.0.0-nightly.115+54b8e94f", | ||
"@parcel/types": "2.0.0-nightly.115+54b8e94f", | ||
"@parcel/utils": "2.0.0-nightly.115+54b8e94f", | ||
"@parcel/workers": "2.0.0-nightly.115+54b8e94f", | ||
"abortcontroller-polyfill": "^1.1.9", | ||
@@ -46,3 +46,3 @@ "browserslist": "^4.6.6", | ||
}, | ||
"gitHead": "9e4870b8c861134e45750671a84bee966eacbd8c" | ||
"gitHead": "54b8e94f553af144b455573f2a3ad6bb74737d93" | ||
} |
@@ -538,3 +538,5 @@ // @flow strict-local | ||
let includedBundles = getBundlesIncludedInHash(bundle.id, bundleInfoMap); | ||
let includedBundles = [ | ||
...getBundlesIncludedInHash(bundle.id, bundleInfoMap), | ||
]; | ||
@@ -550,10 +552,12 @@ hashRefToNameHash.set( | ||
function getBundlesIncludedInHash(bundleId, bundleInfoMap, included = []) { | ||
included.push(bundleId); | ||
function getBundlesIncludedInHash( | ||
bundleId, | ||
bundleInfoMap, | ||
included = new Set(), | ||
) { | ||
included.add(bundleId); | ||
for (let hashRef of bundleInfoMap[bundleId].hashReferences) { | ||
let referencedId = getIdFromHashRef(hashRef); | ||
if (!included.includes(referencedId)) { | ||
included.push( | ||
...getBundlesIncludedInHash(referencedId, bundleInfoMap, included), | ||
); | ||
if (!included.has(referencedId)) { | ||
getBundlesIncludedInHash(referencedId, bundleInfoMap, included); | ||
} | ||
@@ -560,0 +564,0 @@ } |
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
18368
641570
+ Addedbrowserslist@4.24.3(transitive)
- Removedbrowserslist@4.24.2(transitive)