You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP →

webpack-sources

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpack-sources - npm Package Compare versions

Comparing version

to
3.3.2

@@ -16,3 +16,3 @@ /*

/** @typedef {import("./Source").Hash} Hash */
/** @typedef {import("./Source").HashLike} HashLike */
/** @typedef {import("./Source").MapOptions} MapOptions */

@@ -354,3 +354,3 @@ /** @typedef {import("./Source").RawSourceMap} RawSourceMap */

/**
* @param {Hash} hash hash
* @param {HashLike} hash hash
* @returns {void}

@@ -392,3 +392,3 @@ */

};
this.original().updateHash(/** @type {Hash} */ (tracker));
this.original().updateHash(/** @type {HashLike} */ (tracker));
if (currentString !== undefined) {

@@ -395,0 +395,0 @@ update.push(Buffer.from(currentString));

@@ -10,3 +10,3 @@ /*

/** @typedef {import("./Source").Hash} Hash */
/** @typedef {import("./Source").HashLike} HashLike */
/** @typedef {import("./Source").MapOptions} MapOptions */

@@ -24,3 +24,3 @@ /** @typedef {import("./Source").RawSourceMap} RawSourceMap */

* @property {((options?: MapOptions) => SourceAndMap)=} sourceAndMap
* @property {((hash: Hash) => void)=} updateHash
* @property {((hash: HashLike) => void)=} updateHash
*/

@@ -91,3 +91,3 @@

/**
* @param {Hash} hash hash
* @param {HashLike} hash hash
* @returns {void}

@@ -94,0 +94,0 @@ */

@@ -14,3 +14,3 @@ /*

/** @typedef {import("./CompatSource").SourceLike} SourceLike */
/** @typedef {import("./Source").Hash} Hash */
/** @typedef {import("./Source").HashLike} HashLike */
/** @typedef {import("./Source").MapOptions} MapOptions */

@@ -297,3 +297,3 @@ /** @typedef {import("./Source").RawSourceMap} RawSourceMap */

/**
* @param {Hash} hash hash
* @param {HashLike} hash hash
* @returns {void}

@@ -300,0 +300,0 @@ */

@@ -12,3 +12,3 @@ /*

/** @typedef {import("./ReplaceSource").Replacement} Replacement */
/** @typedef {import("./Source").Hash} Hash */
/** @typedef {import("./Source").HashLike} HashLike */
/** @typedef {import("./Source").MapOptions} MapOptions */

@@ -15,0 +15,0 @@ /** @typedef {import("./Source").RawSourceMap} RawSourceMap */

@@ -17,3 +17,3 @@ /*

/** @typedef {import("./Source").Hash} Hash */
/** @typedef {import("./Source").HashLike} HashLike */
/** @typedef {import("./Source").MapOptions} MapOptions */

@@ -185,3 +185,3 @@ /** @typedef {import("./Source").RawSourceMap} RawSourceMap */

/**
* @param {Hash} hash hash
* @param {HashLike} hash hash
* @returns {void}

@@ -188,0 +188,0 @@ */

@@ -13,3 +13,3 @@ /*

/** @typedef {import("./Source").Hash} Hash */
/** @typedef {import("./Source").HashLike} HashLike */
/** @typedef {import("./Source").MapOptions} MapOptions */

@@ -149,3 +149,3 @@ /** @typedef {import("./Source").RawSourceMap} RawSourceMap */

/**
* @param {Hash} hash hash
* @param {HashLike} hash hash
* @returns {void}

@@ -152,0 +152,0 @@ */

@@ -15,3 +15,3 @@ /*

/** @typedef {import("./Source").Hash} Hash */
/** @typedef {import("./Source").HashLike} HashLike */
/** @typedef {import("./Source").MapOptions} MapOptions */

@@ -127,3 +127,3 @@ /** @typedef {import("./Source").RawSourceMap} RawSourceMap */

/**
* @param {Hash} hash hash
* @param {HashLike} hash hash
* @returns {void}

@@ -130,0 +130,0 @@ */

@@ -13,3 +13,3 @@ /*

/** @typedef {import("./Source").Hash} Hash */
/** @typedef {import("./Source").HashLike} HashLike */
/** @typedef {import("./Source").MapOptions} MapOptions */

@@ -529,3 +529,3 @@ /** @typedef {import("./Source").RawSourceMap} RawSourceMap */

/**
* @param {Hash} hash hash
* @param {HashLike} hash hash
* @returns {void}

@@ -532,0 +532,0 @@ */

@@ -10,3 +10,3 @@ /*

/** @typedef {import("./Source").Hash} Hash */
/** @typedef {import("./Source").HashLike} HashLike */
/** @typedef {import("./Source").MapOptions} MapOptions */

@@ -58,3 +58,3 @@ /** @typedef {import("./Source").RawSourceMap} RawSourceMap */

/**
* @param {Hash} hash hash
* @param {HashLike} hash hash
* @returns {void}

@@ -61,0 +61,0 @@ */

@@ -36,4 +36,4 @@ /*

/**
* @typedef {object} Hash
* @property {(data: string | Buffer, inputEncoding?: string) => Hash} update
* @typedef {object} HashLike
* @property {(data: string | Buffer, inputEncoding?: string) => HashLike} update
* @property {(encoding?: string) => string | Buffer} digest

@@ -80,3 +80,3 @@ */

/**
* @param {Hash} hash hash
* @param {HashLike} hash hash
* @returns {void}

@@ -83,0 +83,0 @@ */

@@ -16,3 +16,3 @@ /*

/** @typedef {import("./Source").Hash} Hash */
/** @typedef {import("./Source").HashLike} HashLike */
/** @typedef {import("./Source").MapOptions} MapOptions */

@@ -345,3 +345,3 @@ /** @typedef {import("./Source").RawSourceMap} RawSourceMap */

/**
* @param {Hash} hash hash
* @param {HashLike} hash hash
* @returns {void}

@@ -348,0 +348,0 @@ */

{
"name": "webpack-sources",
"version": "3.3.1",
"version": "3.3.2",
"description": "Source code handling classes for webpack",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -87,4 +87,4 @@ /*

}
declare interface Hash {
update: (data: string | Buffer, inputEncoding?: string) => Hash;
declare interface HashLike {
update: (data: string | Buffer, inputEncoding?: string) => HashLike;
digest: (encoding?: string) => string | Buffer;

@@ -219,3 +219,3 @@ }

sourceAndMap(options?: MapOptions): SourceAndMap;
updateHash(hash: Hash): void;
updateHash(hash: HashLike): void;
}

@@ -232,3 +232,3 @@ declare interface SourceAndMap {

sourceAndMap?: (options?: MapOptions) => SourceAndMap;
updateHash?: (hash: Hash) => void;
updateHash?: (hash: HashLike) => void;
}

@@ -318,3 +318,3 @@ declare class SourceMapSource extends Source {

Replacement,
Hash,
HashLike,
MapOptions,

@@ -321,0 +321,0 @@ RawSourceMap,