webpack-sources
Advanced tools
Comparing version
@@ -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 @@ } |
@@ -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 { |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
-100%136102
-0.36%4528
-0.4%