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:
33
node_modules/webpack/lib/NormalModule.js
generated
vendored
33
node_modules/webpack/lib/NormalModule.js
generated
vendored
@@ -79,6 +79,7 @@ const memoize = require("./util/memoize");
|
||||
/** @typedef {import("./Module").NeedBuildCallback} NeedBuildCallback */
|
||||
/** @typedef {import("./Module").BuildCallback} BuildCallback */
|
||||
/** @typedef {import("./Module").RuntimeRequirements} RuntimeRequirements */
|
||||
/** @typedef {import("./Module").Sources} Sources */
|
||||
/** @typedef {import("./Module").SourceType} SourceType */
|
||||
/** @typedef {import("./Module").SourceTypes} SourceTypes */
|
||||
/** @typedef {import("./Module").UnsafeCacheData} UnsafeCacheData */
|
||||
@@ -115,6 +116,8 @@ const memoize = require("./util/memoize");
|
||||
* @typedef {import("../declarations/LoaderContext").NormalModuleLoaderContext<T>} NormalModuleLoaderContext
|
||||
*/
|
||||
|
||||
/** @typedef {(content: string) => boolean} NoParseFn */
|
||||
|
||||
const getInvalidDependenciesModuleWarning = memoize(() =>
|
||||
require("./InvalidDependenciesModuleWarning")
|
||||
);
|
||||
@@ -123,7 +126,7 @@ const getExtractSourceMap = memoize(() => require("./util/extractSourceMap"));
|
||||
|
||||
const getValidate = memoize(() => require("schema-utils").validate);
|
||||
|
||||
const ABSOLUTE_PATH_REGEX = /^([a-zA-Z]:\\|\\\\|\/)/;
|
||||
const ABSOLUTE_PATH_REGEX = /^(?:[a-z]:\\|\\\\|\/)/i;
|
||||
|
||||
/**
|
||||
* @typedef {object} LoaderItem
|
||||
@@ -360,7 +363,7 @@ class NormalModule extends Module {
|
||||
/** @type {NormalModuleCreateData['rawRequest']} */
|
||||
this.rawRequest = rawRequest;
|
||||
/** @type {boolean} */
|
||||
this.binary = /^(asset|webassembly)\b/.test(type);
|
||||
this.binary = /^(?:asset|webassembly)\b/.test(type);
|
||||
/** @type {NormalModuleCreateData['parser'] | undefined} */
|
||||
this.parser = parser;
|
||||
/** @type {NormalModuleCreateData['parserOptions']} */
|
||||
@@ -403,14 +406,31 @@ class NormalModule extends Module {
|
||||
* @type {undefined | SourceTypes}
|
||||
*/
|
||||
this._sourceTypes = undefined;
|
||||
|
||||
// Cache
|
||||
/**
|
||||
* @private
|
||||
* @type {BuildMeta}
|
||||
*/
|
||||
this._lastSuccessfulBuildMeta = {};
|
||||
/**
|
||||
* @private
|
||||
* @type {boolean}
|
||||
*/
|
||||
this._forceBuild = true;
|
||||
/**
|
||||
* @private
|
||||
* @type {boolean}
|
||||
*/
|
||||
this._isEvaluatingSideEffects = false;
|
||||
/** @type {WeakSet<ModuleGraph> | undefined} */
|
||||
/**
|
||||
* @private
|
||||
* @type {WeakSet<ModuleGraph> | undefined}
|
||||
*/
|
||||
this._addedSideEffectsBailout = undefined;
|
||||
/** @type {CodeGenerationResultData} */
|
||||
/**
|
||||
* @private
|
||||
* @type {CodeGenerationResultData}
|
||||
*/
|
||||
this._codeGeneratorData = new Map();
|
||||
}
|
||||
|
||||
@@ -718,6 +738,7 @@ class NormalModule extends Module {
|
||||
if (schema) {
|
||||
let name = "Loader";
|
||||
let baseDataPath = "options";
|
||||
/** @type {RegExpExecArray | null} */
|
||||
let match;
|
||||
if (schema.title && (match = /^(.+) (.+)$/.exec(schema.title))) {
|
||||
[, name, baseDataPath] = match;
|
||||
@@ -982,6 +1003,7 @@ class NormalModule extends Module {
|
||||
compilation.compiler.root
|
||||
);
|
||||
if (this._sourceSizes !== undefined) this._sourceSizes.clear();
|
||||
/** @type {PreparsedAst | null} */
|
||||
this._ast =
|
||||
typeof extraInfo === "object" &&
|
||||
extraInfo !== null &&
|
||||
@@ -1518,6 +1540,7 @@ class NormalModule extends Module {
|
||||
|
||||
const getData = () => this._codeGeneratorData;
|
||||
|
||||
/** @type {Sources} */
|
||||
const sources = new Map();
|
||||
for (const type of sourceTypes || chunkGraph.getModuleSourceTypes(this)) {
|
||||
// TODO webpack@6 make generateError required
|
||||
|
||||
Reference in New Issue
Block a user