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:
9
node_modules/webpack/lib/util/hash/BulkUpdateHash.js
generated
vendored
9
node_modules/webpack/lib/util/hash/BulkUpdateHash.js
generated
vendored
@@ -15,7 +15,7 @@ const BULK_SIZE = 3;
|
||||
|
||||
// We are using an object instead of a Map as this will stay static during the runtime
|
||||
// so access to it can be optimized by v8
|
||||
/** @type {{[key: string]: Map<string, string>}} */
|
||||
/** @type {{ [key: string]: Map<string, string> }} */
|
||||
const digestCaches = {};
|
||||
|
||||
class BulkUpdateHash extends Hash {
|
||||
@@ -25,14 +25,20 @@ class BulkUpdateHash extends Hash {
|
||||
*/
|
||||
constructor(hashOrFactory, hashKey) {
|
||||
super();
|
||||
/** @type {undefined | string} */
|
||||
this.hashKey = hashKey;
|
||||
if (typeof hashOrFactory === "function") {
|
||||
/** @type {undefined | HashFactory} */
|
||||
this.hashFactory = hashOrFactory;
|
||||
/** @type {undefined | Hash} */
|
||||
this.hash = undefined;
|
||||
} else {
|
||||
/** @type {undefined | HashFactory} */
|
||||
this.hashFactory = undefined;
|
||||
/** @type {undefined | Hash} */
|
||||
this.hash = hashOrFactory;
|
||||
}
|
||||
/** @type {string} */
|
||||
this.buffer = "";
|
||||
}
|
||||
|
||||
@@ -103,6 +109,7 @@ class BulkUpdateHash extends Hash {
|
||||
* @returns {string | Buffer} digest
|
||||
*/
|
||||
digest(encoding) {
|
||||
/** @type {undefined | Map<string, string | Buffer>} */
|
||||
let digestCache;
|
||||
const buffer = this.buffer;
|
||||
if (this.hash === undefined) {
|
||||
|
||||
Reference in New Issue
Block a user