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

webpack-sources

Package Overview
Dependencies
Maintainers
3
Versions
54
Alerts
File Explorer

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.1

6

lib/OriginalSource.js

@@ -189,7 +189,3 @@ /*

hash.update("OriginalSource");
hash.update(
this._valueAsBuffer
? /** @type {Buffer} */ (this._valueAsBuffer)
: /** @type {string} */ (this._value)
);
hash.update(this.buffer());
hash.update(this._name || "");

@@ -196,0 +192,0 @@ }

@@ -131,7 +131,3 @@ /*

hash.update("RawSource");
hash.update(
this._valueAsBuffer
? /** @type {Buffer} */ (this._valueAsBuffer)
: /** @type {string} */ (this._valueAsString)
);
hash.update(this.buffer());
}

@@ -138,0 +134,0 @@ }

2

lib/Source.js

@@ -23,2 +23,4 @@ /*

* @property {string} file
* @property {string=} debugId
* @property {number[]=} ignoreList
*/

@@ -25,0 +27,0 @@

@@ -349,18 +349,4 @@ /*

hash.update("SourceMapSource");
hash.update(
this._valueAsBuffer
? this._valueAsBuffer
: typeof this._valueAsString === "string"
? this._valueAsString
: // Fallback when memory optimization enabled
this.buffer()
);
hash.update(
this._sourceMapAsBuffer
? this._sourceMapAsBuffer
: typeof this._sourceMapAsString === "string"
? this._sourceMapAsString
: // Fallback when memory optimization enabled
this._sourceMapBuffer()
);
hash.update(this.buffer());
hash.update(this._sourceMapBuffer());

@@ -367,0 +353,0 @@ if (this._hasOriginalSource) {

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

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

@@ -170,2 +170,4 @@ /*

file: string;
debugId?: string;
ignoreList?: number[];
}

@@ -172,0 +174,0 @@ declare class ReplaceSource extends Source {