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/Template.js
generated
vendored
15
node_modules/webpack/lib/Template.js
generated
vendored
@@ -36,10 +36,10 @@ const NUMBER_OF_IDENTIFIER_CONTINUATION_CHARS =
|
||||
const FUNCTION_CONTENT_REGEX = /^function\s?\(\)\s?\{\r?\n?|\r?\n?\}$/g;
|
||||
const INDENT_MULTILINE_REGEX = /^\t/gm;
|
||||
const LINE_SEPARATOR_REGEX = /\r?\n/g;
|
||||
const IDENTIFIER_NAME_REPLACE_REGEX = /^([^a-zA-Z$_])/;
|
||||
const IDENTIFIER_ALPHA_NUMERIC_NAME_REPLACE_REGEX = /[^a-zA-Z0-9$]+/g;
|
||||
const IDENTIFIER_NAME_REPLACE_REGEX = /^([^a-z$_])/i;
|
||||
const IDENTIFIER_ALPHA_NUMERIC_NAME_REPLACE_REGEX = /[^a-z0-9$]+/gi;
|
||||
const COMMENT_END_REGEX = /\*\//g;
|
||||
const PATH_NAME_NORMALIZE_REPLACE_REGEX = /[^a-zA-Z0-9_!§$()=\-^°]+/g;
|
||||
const PATH_NAME_NORMALIZE_REPLACE_REGEX = /[^a-z0-9_!§$()=\-^°]+/gi;
|
||||
const MATCH_PADDED_HYPHENS_REPLACE_REGEX = /^-|-$/g;
|
||||
|
||||
/**
|
||||
@@ -83,10 +83,14 @@ const MATCH_PADDED_HYPHENS_REPLACE_REGEX = /^-|-$/g;
|
||||
* @typedef {(module: Module) => boolean} ModuleFilterPredicate
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef {object} Stringable
|
||||
* @property {() => string} toString
|
||||
*/
|
||||
|
||||
class Template {
|
||||
/**
|
||||
* @template {EXPECTED_FUNCTION} T
|
||||
* @param {T} fn a runtime function (.runtime.js) "template"
|
||||
* @param {Stringable} fn a runtime function (.runtime.js) "template"
|
||||
* @returns {string} the updated and normalized function string
|
||||
*/
|
||||
static getFunctionContent(fn) {
|
||||
@@ -359,6 +363,7 @@ class Template {
|
||||
const source = new ConcatSource();
|
||||
for (const module of runtimeModules) {
|
||||
const codeGenerationResults = renderContext.codeGenerationResults;
|
||||
/** @type {undefined | Source} */
|
||||
let runtimeSource;
|
||||
if (codeGenerationResults) {
|
||||
runtimeSource = codeGenerationResults.getSource(
|
||||
|
||||
Reference in New Issue
Block a user