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:
root
2026-02-20 11:31:28 +00:00
parent d01a6179aa
commit b5eb27a827
1690 changed files with 47348 additions and 16848 deletions

View File

@@ -24,7 +24,9 @@ class BasicEffectRulePlugin {
* @param {string=} effectType the effect type
*/
constructor(ruleProperty, effectType) {
/** @type {BasicEffectRuleKeys} */
this.ruleProperty = ruleProperty;
/** @type {string | BasicEffectRuleKeys} */
this.effectType = effectType || ruleProperty;
}

View File

@@ -27,8 +27,11 @@ class BasicMatcherRulePlugin {
* @param {boolean=} invert if true, inverts the condition
*/
constructor(ruleProperty, dataProperty, invert) {
/** @type {BasicMatcherRuleKeys} */
this.ruleProperty = ruleProperty;
/** @type {string | BasicMatcherRuleKeys} */
this.dataProperty = dataProperty || ruleProperty;
/** @type {boolean} */
this.invert = invert || false;
}

View File

@@ -18,18 +18,22 @@
*/
/** @typedef {KeysOfTypes<RuleSetRule, { [k: string]: RuleSetConditionOrConditions }>} ObjectMatcherRuleKeys */
/** @typedef {keyof EffectData} DataProperty */
const PLUGIN_NAME = "ObjectMatcherRulePlugin";
class ObjectMatcherRulePlugin {
/**
* @param {ObjectMatcherRuleKeys} ruleProperty the rule property
* @param {keyof EffectData=} dataProperty the data property
* @param {DataProperty=} dataProperty the data property
* @param {RuleConditionFunction=} additionalConditionFunction need to check
*/
constructor(ruleProperty, dataProperty, additionalConditionFunction) {
/** @type {ObjectMatcherRuleKeys} */
this.ruleProperty = ruleProperty;
/** @type {DataProperty | ObjectMatcherRuleKeys} */
this.dataProperty = dataProperty || ruleProperty;
/** @type {RuleConditionFunction | undefined} */
this.additionalConditionFunction = additionalConditionFunction;
}

View File

@@ -9,6 +9,7 @@ const { SyncHook } = require("tapable");
/** @typedef {import("enhanced-resolve").ResolveRequest} ResolveRequest */
/** @typedef {import("../../declarations/WebpackOptions").Falsy} Falsy */
/** @typedef {import("../../declarations/WebpackOptions").RuleSetUseItem} RuleSetUseItem */
/** @typedef {import("../../declarations/WebpackOptions").RuleSetLoaderOptions} RuleSetLoaderOptions */
/** @typedef {import("../../declarations/WebpackOptions").RuleSetRule} RuleSetRule */
@@ -87,6 +88,9 @@ const { SyncHook } = require("tapable");
/** @typedef {Set<string>} UnhandledProperties */
/** @typedef {(data: EffectData) => (RuleSetUseItem | (Falsy | RuleSetUseItem)[])} RuleSetUseFn */
/** @typedef {(value: string) => boolean} RuleSetConditionFn */
/** @typedef {{ apply: (ruleSetCompiler: RuleSetCompiler) => void }} RuleSetPlugin */
class RuleSetCompiler {
@@ -116,6 +120,7 @@ class RuleSetCompiler {
* @returns {RuleSet} compiled RuleSet
*/
compile(ruleSet) {
/** @type {References} */
const refs = new Map();
const rules = this.compileRules("ruleSet", ruleSet, refs);
@@ -327,6 +332,7 @@ class RuleSetCompiler {
);
}
/** @type {Condition[]} */
const conditions = [];
for (const key of Object.keys(condition)) {
const value = condition[key];