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:
15
node_modules/webpack/lib/dependencies/ContextDependencyHelpers.js
generated
vendored
15
node_modules/webpack/lib/dependencies/ContextDependencyHelpers.js
generated
vendored
@@ -26,7 +26,7 @@ const quoteMeta = (str) => str.replace(/[-[\]\\/{}()*+?.^$|]/g, "\\$&");
|
||||
|
||||
/**
|
||||
* @param {string} prefix prefix
|
||||
* @returns {{prefix: string, context: string}} result
|
||||
* @returns {{ prefix: string, context: string }} result
|
||||
*/
|
||||
const splitContextFromPrefix = (prefix) => {
|
||||
const idx = prefix.lastIndexOf("/");
|
||||
@@ -42,17 +42,23 @@ const splitContextFromPrefix = (prefix) => {
|
||||
};
|
||||
|
||||
/** @typedef {Partial<Omit<ContextDependencyOptions, "resource">>} PartialContextDependencyOptions */
|
||||
/** @typedef {{ new(options: ContextDependencyOptions, range: Range, valueRange: Range, ...args: EXPECTED_ANY[]): ContextDependency }} ContextDependencyConstructor */
|
||||
/** @typedef {{ new (options: ContextDependencyOptions, range: Range, valueRange: Range, ...args: EXPECTED_ANY[]): ContextDependency }} ContextDependencyConstructor */
|
||||
|
||||
/**
|
||||
* @param {ContextDependencyConstructor} Dep the Dependency class
|
||||
* @template T
|
||||
* @typedef {T extends new (options: ContextDependencyOptions, range: Range, valueRange: Range, ...remains: infer R) => EXPECTED_ANY ? R : []} GetAdditionalDepArgs
|
||||
*/
|
||||
|
||||
/**
|
||||
* @template {ContextDependencyConstructor} T
|
||||
* @param {T} Dep the Dependency class
|
||||
* @param {Range} range source range
|
||||
* @param {BasicEvaluatedExpression} param context param
|
||||
* @param {Expression} expr expr
|
||||
* @param {Pick<JavascriptParserOptions, `${"expr" | "wrapped"}Context${"Critical" | "Recursive" | "RegExp"}` | "exprContextRequest">} options options for context creation
|
||||
* @param {PartialContextDependencyOptions} contextOptions options for the ContextModule
|
||||
* @param {JavascriptParser} parser the parser
|
||||
* @param {...EXPECTED_ANY} depArgs depArgs
|
||||
* @param {GetAdditionalDepArgs<T>} depArgs depArgs
|
||||
* @returns {ContextDependency} the created Dependency
|
||||
*/
|
||||
module.exports.create = (
|
||||
@@ -216,6 +222,7 @@ module.exports.create = (
|
||||
...depArgs
|
||||
);
|
||||
dep.loc = /** @type {DependencyLocation} */ (expr.loc);
|
||||
/** @type {Replaces} */
|
||||
const replaces = [];
|
||||
if (prefixRange) {
|
||||
replaces.push({
|
||||
|
||||
Reference in New Issue
Block a user