@atlaspack/runtime-browser-hmr
Advanced tools
Comparing version
@@ -8,3 +8,3 @@ "use strict"; | ||
HMRMessage, | ||
} from '@atlaspack/reporter-dev-server/src/HMRServer.js'; | ||
} from '@atlaspack/reporter-dev-server/src/HMRServer'; | ||
interface ParcelRequire { | ||
@@ -11,0 +11,0 @@ (string): mixed; |
{ | ||
"name": "@atlaspack/runtime-browser-hmr", | ||
"version": "2.12.1-dev.3450+58845ef87", | ||
"version": "2.12.1-dev.3460+340817991", | ||
"license": "(MIT OR Apache-2.0)", | ||
@@ -16,9 +16,9 @@ "publishConfig": { | ||
"node": ">= 16.0.0", | ||
"parcel": "^2.12.1-dev.3450+58845ef87" | ||
"parcel": "^2.12.1-dev.3460+340817991" | ||
}, | ||
"dependencies": { | ||
"@atlaspack/plugin": "2.12.1-dev.3450+58845ef87", | ||
"@atlaspack/utils": "2.12.1-dev.3450+58845ef87" | ||
"@atlaspack/plugin": "2.12.1-dev.3460+340817991", | ||
"@atlaspack/utils": "2.12.1-dev.3460+340817991" | ||
}, | ||
"gitHead": "58845ef87446fcedb7d7d8876440c64184645cbb" | ||
"gitHead": "3408179911d6c67e2bdad99e545dd7a0a9a6782c" | ||
} |
@@ -8,3 +8,3 @@ // @flow | ||
HMRMessage, | ||
} from '@atlaspack/reporter-dev-server/src/HMRServer.js'; | ||
} from '@atlaspack/reporter-dev-server/src/HMRServer'; | ||
interface ParcelRequire { | ||
@@ -151,6 +151,8 @@ (string): mixed; | ||
let assets = data.assets.filter(asset => asset.envHash === HMR_ENV_HASH); | ||
let assets = data.assets.filter( | ||
(asset) => asset.envHash === HMR_ENV_HASH, | ||
); | ||
// Handle HMR Update | ||
let handled = assets.every(asset => { | ||
let handled = assets.every((asset) => { | ||
return ( | ||
@@ -275,3 +277,5 @@ asset.type === 'css' || | ||
<div> | ||
${diagnostic.hints.map(hint => '<div>💡 ' + hint + '</div>').join('')} | ||
${diagnostic.hints | ||
.map((hint) => '<div>💡 ' + hint + '</div>') | ||
.join('')} | ||
</div> | ||
@@ -424,4 +428,4 @@ ${ | ||
if (!supportsSourceURL) { | ||
let promises = assets.map(asset => | ||
hmrDownload(asset)?.catch(err => { | ||
let promises = assets.map((asset) => | ||
hmrDownload(asset)?.catch((err) => { | ||
// Web extension fix | ||
@@ -452,3 +456,3 @@ if ( | ||
if (scriptsToRemove) { | ||
scriptsToRemove.forEach(script => { | ||
scriptsToRemove.forEach((script) => { | ||
if (script) { | ||
@@ -525,3 +529,3 @@ document.head?.removeChild(script); | ||
// Now delete the orphans. | ||
orphans.forEach(id => { | ||
orphans.forEach((id) => { | ||
hmrDelete(module.bundle.root, id); | ||
@@ -528,0 +532,0 @@ }); |
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
50914
0.1%1172
0.34%311
0.65%62
3.33%8
33.33%311
0.65%