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:
14
node_modules/webpack/lib/wasm-async/AsyncWasmLoadingRuntimeModule.js
generated
vendored
14
node_modules/webpack/lib/wasm-async/AsyncWasmLoadingRuntimeModule.js
generated
vendored
@@ -12,11 +12,15 @@ const Template = require("../Template");
|
||||
/** @typedef {import("../Chunk")} Chunk */
|
||||
/** @typedef {import("../Compilation")} Compilation */
|
||||
|
||||
/** @typedef {(wasmModuleSrcPath: string) => string} GenerateBeforeLoadBinaryCode */
|
||||
/** @typedef {(wasmModuleSrcPath: string) => string} GenerateLoadBinaryCode */
|
||||
/** @typedef {() => string} GenerateBeforeInstantiateStreaming */
|
||||
|
||||
/**
|
||||
* @typedef {object} AsyncWasmLoadingRuntimeModuleOptions
|
||||
* @property {((wasmModuleSrcPath: string) => string)=} generateBeforeLoadBinaryCode
|
||||
* @property {(wasmModuleSrcPath: string) => string} generateLoadBinaryCode
|
||||
* @property {(() => string)=} generateBeforeInstantiateStreaming
|
||||
* @property {GenerateLoadBinaryCode} generateLoadBinaryCode
|
||||
* @property {GenerateBeforeLoadBinaryCode=} generateBeforeLoadBinaryCode
|
||||
* @property {GenerateBeforeInstantiateStreaming=} generateBeforeInstantiateStreaming
|
||||
* @property {boolean} supportsStreaming
|
||||
*/
|
||||
|
||||
@@ -31,10 +35,14 @@ class AsyncWasmLoadingRuntimeModule extends RuntimeModule {
|
||||
supportsStreaming
|
||||
}) {
|
||||
super("wasm loading", RuntimeModule.STAGE_NORMAL);
|
||||
/** @type {GenerateLoadBinaryCode} */
|
||||
this.generateLoadBinaryCode = generateLoadBinaryCode;
|
||||
/** @type {generateBeforeLoadBinaryCode | undefined} */
|
||||
this.generateBeforeLoadBinaryCode = generateBeforeLoadBinaryCode;
|
||||
/** @type {generateBeforeInstantiateStreaming | undefined} */
|
||||
this.generateBeforeInstantiateStreaming =
|
||||
generateBeforeInstantiateStreaming;
|
||||
/** @type {boolean} */
|
||||
this.supportsStreaming = supportsStreaming;
|
||||
}
|
||||
|
||||
|
||||
1
node_modules/webpack/lib/wasm-async/AsyncWebAssemblyGenerator.js
generated
vendored
1
node_modules/webpack/lib/wasm-async/AsyncWebAssemblyGenerator.js
generated
vendored
@@ -26,6 +26,7 @@ class AsyncWebAssemblyGenerator extends Generator {
|
||||
*/
|
||||
constructor(options) {
|
||||
super();
|
||||
/** @type {AsyncWebAssemblyGeneratorOptions} */
|
||||
this.options = options;
|
||||
}
|
||||
|
||||
|
||||
5
node_modules/webpack/lib/wasm-async/AsyncWebAssemblyModulesPlugin.js
generated
vendored
5
node_modules/webpack/lib/wasm-async/AsyncWebAssemblyModulesPlugin.js
generated
vendored
@@ -11,7 +11,7 @@ const Generator = require("../Generator");
|
||||
const { tryRunOrWebpackError } = require("../HookWebpackError");
|
||||
const { WEBASSEMBLY_MODULE_TYPE_ASYNC } = require("../ModuleTypeConstants");
|
||||
const WebAssemblyImportDependency = require("../dependencies/WebAssemblyImportDependency");
|
||||
const { compareModulesByIdOrIdentifier } = require("../util/comparators");
|
||||
const { compareModulesByFullName } = require("../util/comparators");
|
||||
const memoize = require("../util/memoize");
|
||||
|
||||
/** @typedef {import("webpack-sources").Source} Source */
|
||||
@@ -89,6 +89,7 @@ class AsyncWebAssemblyModulesPlugin {
|
||||
* @param {AsyncWebAssemblyModulesPluginOptions} options options
|
||||
*/
|
||||
constructor(options) {
|
||||
/** @type {AsyncWebAssemblyModulesPluginOptions} */
|
||||
this.options = options;
|
||||
}
|
||||
|
||||
@@ -139,7 +140,7 @@ class AsyncWebAssemblyModulesPlugin {
|
||||
|
||||
for (const module of chunkGraph.getOrderedChunkModulesIterable(
|
||||
chunk,
|
||||
compareModulesByIdOrIdentifier(chunkGraph)
|
||||
compareModulesByFullName(compiler)
|
||||
)) {
|
||||
if (module.type === WEBASSEMBLY_MODULE_TYPE_ASYNC) {
|
||||
const filenameTemplate = outputOptions.webassemblyModuleFilename;
|
||||
|
||||
Reference in New Issue
Block a user