WXL
3 天以前 9bce51f651aad297ef9eb6df832bfdaf1de05d84
node_modules/webpack/lib/json/JsonData.js
@@ -14,6 +14,7 @@
class JsonData {
   /**
    * Creates an instance of JsonData.
    * @param {Buffer | JsonValue} data JSON data
    */
   constructor(data) {
@@ -29,6 +30,7 @@
   }
   /**
    * Returns raw JSON data.
    * @returns {JsonValue | undefined} Raw JSON data
    */
   get() {
@@ -39,6 +41,7 @@
   }
   /**
    * Updates the hash with the data contributed by this instance.
    * @param {Hash} hash hash to be updated
    * @returns {void} the updated hash
    */
@@ -53,6 +56,7 @@
register(JsonData, "webpack/lib/json/JsonData", null, {
   /**
    * Serializes this instance into the provided serializer context.
    * @param {JsonData} obj JSONData object
    * @param {ObjectSerializerContext} context context
    */
@@ -63,6 +67,7 @@
      write(obj._buffer);
   },
   /**
    * Restores this instance from the provided deserializer context.
    * @param {ObjectDeserializerContext} context context
    * @returns {JsonData} deserialized JSON data
    */