From 9bce51f651aad297ef9eb6df832bfdaf1de05d84 Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期三, 22 四月 2026 14:27:54 +0800
Subject: [PATCH] 青岛推送
---
node_modules/webpack/lib/serialization/PlainObjectSerializer.js | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/node_modules/webpack/lib/serialization/PlainObjectSerializer.js b/node_modules/webpack/lib/serialization/PlainObjectSerializer.js
index 2d04aa4..2fc8435 100644
--- a/node_modules/webpack/lib/serialization/PlainObjectSerializer.js
+++ b/node_modules/webpack/lib/serialization/PlainObjectSerializer.js
@@ -10,21 +10,26 @@
/** @typedef {EXPECTED_FUNCTION} CacheAssoc */
/**
+ * Defines the shared type used by this module.
* @template T
* @typedef {WeakMap<CacheAssoc, ObjectStructure<T>>}
*/
const cache = new WeakMap();
/**
+ * Represents ObjectStructure.
* @template T
*/
class ObjectStructure {
constructor() {
+ /** @type {undefined | keyof T[]} */
this.keys = undefined;
+ /** @type {undefined | Map<keyof T, ObjectStructure<T>>} */
this.children = undefined;
}
/**
+ * Returns keys.
* @param {keyof T[]} keys keys
* @returns {keyof T[]} keys
*/
@@ -34,6 +39,7 @@
}
/**
+ * Returns object structure.
* @param {keyof T} key key
* @returns {ObjectStructure<T>} object structure
*/
@@ -48,6 +54,7 @@
}
/**
+ * Returns keys.
* @template T
* @param {(keyof T)[]} keys keys
* @param {CacheAssoc} cacheAssoc cache assoc fn
@@ -68,6 +75,7 @@
class PlainObjectSerializer {
/**
+ * Serializes this instance into the provided serializer context.
* @template {object} T
* @param {T} obj plain object
* @param {ObjectSerializerContext} context context
@@ -96,6 +104,7 @@
}
/**
+ * Restores this instance from the provided deserializer context.
* @template {object} T
* @param {ObjectDeserializerContext} context context
* @returns {T} plain object
--
Gitblit v1.9.3