Update npm packages (73 packages including @jqhtml 2.3.36)
Update npm registry domain from privatenpm.hanson.xyz to npm.internal.hanson.xyz 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
5
node_modules/webpack/lib/CleanPlugin.js
generated
vendored
5
node_modules/webpack/lib/CleanPlugin.js
generated
vendored
@@ -70,6 +70,7 @@ const mergeAssets = (as1, as2) => {
|
||||
* @returns {Set<string>} Set of directory paths
|
||||
*/
|
||||
function getDirectories(assets) {
|
||||
/** @type {Set<string>} */
|
||||
const directories = new Set();
|
||||
/**
|
||||
* @param {string} filename asset filename
|
||||
@@ -143,6 +144,7 @@ const getDiffToFs = (fs, outputPath, currentAssets, callback) => {
|
||||
* @returns {Diff} diff
|
||||
*/
|
||||
const getDiffToOldAssets = (currentAssets, oldAssets) => {
|
||||
/** @type {Diff} */
|
||||
const diff = new Set();
|
||||
const now = Date.now();
|
||||
for (const [asset, ts] of oldAssets) {
|
||||
@@ -416,7 +418,8 @@ class CleanPlugin {
|
||||
const currentAssets = new Map();
|
||||
const now = Date.now();
|
||||
for (const asset of Object.keys(compilation.assets)) {
|
||||
if (/^[A-Za-z]:\\|^\/|^\\\\/.test(asset)) continue;
|
||||
if (/^[a-z]:\\|^\/|^\\\\/i.test(asset)) continue;
|
||||
/** @type {string} */
|
||||
let normalizedAsset;
|
||||
let newNormalizedAsset = asset.replace(/\\/g, "/");
|
||||
do {
|
||||
|
||||
Reference in New Issue
Block a user