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:
16
node_modules/webpack/lib/util/runtime.js
generated
vendored
16
node_modules/webpack/lib/util/runtime.js
generated
vendored
@@ -10,7 +10,8 @@ const SortableSet = require("./SortableSet");
|
||||
/** @typedef {import("../Compilation")} Compilation */
|
||||
/** @typedef {import("../Entrypoint").EntryOptions} EntryOptions */
|
||||
|
||||
/** @typedef {string | SortableSet<string> | undefined} RuntimeSpec */
|
||||
/** @typedef {SortableSet<string>} RuntimeSpecSortableSet */
|
||||
/** @typedef {string | RuntimeSpecSortableSet | undefined} RuntimeSpec */
|
||||
/** @typedef {RuntimeSpec | boolean} RuntimeCondition */
|
||||
|
||||
/**
|
||||
@@ -20,7 +21,9 @@ const SortableSet = require("./SortableSet");
|
||||
* @returns {RuntimeSpec} runtime
|
||||
*/
|
||||
const getEntryRuntime = (compilation, name, options) => {
|
||||
/** @type {EntryOptions["dependOn"]} */
|
||||
let dependOn;
|
||||
/** @type {EntryOptions["runtime"]} */
|
||||
let runtime;
|
||||
if (options) {
|
||||
({ dependOn, runtime } = options);
|
||||
@@ -194,6 +197,7 @@ const mergeRuntime = (a, b) => {
|
||||
return a;
|
||||
} else if (typeof a === "string") {
|
||||
if (typeof b === "string") {
|
||||
/** @type {RuntimeSpecSortableSet} */
|
||||
const set = new SortableSet();
|
||||
set.add(a);
|
||||
set.add(b);
|
||||
@@ -201,16 +205,19 @@ const mergeRuntime = (a, b) => {
|
||||
} else if (b.has(a)) {
|
||||
return b;
|
||||
}
|
||||
/** @type {RuntimeSpecSortableSet} */
|
||||
const set = new SortableSet(b);
|
||||
set.add(a);
|
||||
return set;
|
||||
}
|
||||
if (typeof b === "string") {
|
||||
if (a.has(b)) return a;
|
||||
/** @type {RuntimeSpecSortableSet} */
|
||||
const set = new SortableSet(a);
|
||||
set.add(b);
|
||||
return set;
|
||||
}
|
||||
/** @type {RuntimeSpecSortableSet} */
|
||||
const set = new SortableSet(a);
|
||||
for (const item of b) set.add(item);
|
||||
if (set.size === a.size) return a;
|
||||
@@ -271,14 +278,17 @@ const mergeRuntimeOwned = (a, b) => {
|
||||
if (typeof b === "string") {
|
||||
return b;
|
||||
}
|
||||
/** @type {RuntimeSpecSortableSet} */
|
||||
return new SortableSet(b);
|
||||
} else if (typeof a === "string") {
|
||||
if (typeof b === "string") {
|
||||
/** @type {RuntimeSpecSortableSet} */
|
||||
const set = new SortableSet();
|
||||
set.add(a);
|
||||
set.add(b);
|
||||
return set;
|
||||
}
|
||||
/** @type {RuntimeSpecSortableSet} */
|
||||
const set = new SortableSet(b);
|
||||
set.add(a);
|
||||
return set;
|
||||
@@ -315,6 +325,7 @@ const intersectRuntime = (a, b) => {
|
||||
if (a.has(b)) return b;
|
||||
return;
|
||||
}
|
||||
/** @type {RuntimeSpecSortableSet} */
|
||||
const set = new SortableSet();
|
||||
for (const item of b) {
|
||||
if (a.has(item)) set.add(item);
|
||||
@@ -354,10 +365,12 @@ const subtractRuntime = (a, b) => {
|
||||
if (item !== b) return item;
|
||||
}
|
||||
}
|
||||
/** @type {RuntimeSpecSortableSet} */
|
||||
const set = new SortableSet(a);
|
||||
set.delete(b);
|
||||
return set;
|
||||
}
|
||||
/** @type {RuntimeSpecSortableSet} */
|
||||
const set = new SortableSet();
|
||||
for (const item of a) {
|
||||
if (!b.has(item)) set.add(item);
|
||||
@@ -394,6 +407,7 @@ const filterRuntime = (runtime, filter) => {
|
||||
if (typeof runtime === "string") return filter(runtime);
|
||||
let some = false;
|
||||
let every = true;
|
||||
/** @type {RuntimeSpec} */
|
||||
let result;
|
||||
for (const r of runtime) {
|
||||
const v = filter(r);
|
||||
|
||||
Reference in New Issue
Block a user