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/identifier.js
generated
vendored
9
node_modules/webpack/lib/util/identifier.js
generated
vendored
@@ -6,7 +6,7 @@
|
||||
|
||||
const path = require("path");
|
||||
|
||||
const WINDOWS_ABS_PATH_REGEXP = /^[a-zA-Z]:[\\/]/;
|
||||
const WINDOWS_ABS_PATH_REGEXP = /^[a-z]:[\\/]/i;
|
||||
const SEGMENTS_SPLIT_REGEXP = /([|!])/;
|
||||
const WINDOWS_PATH_SEPARATOR_REGEXP = /\\/g;
|
||||
|
||||
@@ -165,7 +165,8 @@ const makeCacheable = (realFn) => {
|
||||
* @returns {MakeCacheableWithContextResult & { bindCache: BindCacheForContext, bindContextCache: BindContextCacheForContext }} cacheable function with context
|
||||
*/
|
||||
const makeCacheableWithContext = (fn) => {
|
||||
/** @type {WeakMap<AssociatedObjectForCache, Map<string, Map<string, string>>>} */
|
||||
/** @typedef {Map<string, Map<string, string>>} InnerCache */
|
||||
/** @type {WeakMap<AssociatedObjectForCache, InnerCache>} */
|
||||
const cache = new WeakMap();
|
||||
|
||||
/** @type {MakeCacheableWithContextResult & { bindCache: BindCacheForContext, bindContextCache: BindContextCacheForContext }} */
|
||||
@@ -178,6 +179,7 @@ const makeCacheableWithContext = (fn) => {
|
||||
cache.set(associatedObjectForCache, innerCache);
|
||||
}
|
||||
|
||||
/** @type {undefined | string} */
|
||||
let cachedResult;
|
||||
let innerSubCache = innerCache.get(context);
|
||||
if (innerSubCache === undefined) {
|
||||
@@ -196,6 +198,7 @@ const makeCacheableWithContext = (fn) => {
|
||||
|
||||
/** @type {BindCacheForContext} */
|
||||
cachedFn.bindCache = (associatedObjectForCache) => {
|
||||
/** @type {undefined | InnerCache} */
|
||||
let innerCache;
|
||||
if (associatedObjectForCache) {
|
||||
innerCache = cache.get(associatedObjectForCache);
|
||||
@@ -213,6 +216,7 @@ const makeCacheableWithContext = (fn) => {
|
||||
* @returns {string} the returned relative path
|
||||
*/
|
||||
const boundFn = (context, identifier) => {
|
||||
/** @type {undefined | string} */
|
||||
let cachedResult;
|
||||
let innerSubCache = innerCache.get(context);
|
||||
if (innerSubCache === undefined) {
|
||||
@@ -234,6 +238,7 @@ const makeCacheableWithContext = (fn) => {
|
||||
|
||||
/** @type {BindContextCacheForContext} */
|
||||
cachedFn.bindContextCache = (context, associatedObjectForCache) => {
|
||||
/** @type {undefined | Map<string, string>} */
|
||||
let innerSubCache;
|
||||
if (associatedObjectForCache) {
|
||||
let innerCache = cache.get(associatedObjectForCache);
|
||||
|
||||
Reference in New Issue
Block a user