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:
2
node_modules/webpack/lib/rules/BasicEffectRulePlugin.js
generated
vendored
2
node_modules/webpack/lib/rules/BasicEffectRulePlugin.js
generated
vendored
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
3
node_modules/webpack/lib/rules/BasicMatcherRulePlugin.js
generated
vendored
3
node_modules/webpack/lib/rules/BasicMatcherRulePlugin.js
generated
vendored
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
6
node_modules/webpack/lib/rules/ObjectMatcherRulePlugin.js
generated
vendored
6
node_modules/webpack/lib/rules/ObjectMatcherRulePlugin.js
generated
vendored
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
6
node_modules/webpack/lib/rules/RuleSetCompiler.js
generated
vendored
6
node_modules/webpack/lib/rules/RuleSetCompiler.js
generated
vendored
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user