@socketsecurity/registry
Advanced tools
Comparing version
@@ -35,2 +35,5 @@ 'use strict' | ||
const identSymbol = Symbol.for('indent') | ||
const newlineSymbol = Symbol.for('newline') | ||
let _cacache | ||
@@ -190,11 +193,16 @@ /*@__NO_SIDE_EFFECTS__*/ | ||
const { | ||
[Symbol.for('indent')]: indent, | ||
[Symbol.for('newline')]: newline, | ||
[identSymbol]: indent, | ||
[newlineSymbol]: newline, | ||
...rest | ||
} = this.content | ||
const content = sort ? packageSort(rest) : rest | ||
const { | ||
[identSymbol]: _indent, | ||
[newlineSymbol]: _newline, | ||
...origContent | ||
} = this._readFileJson | ||
if ( | ||
ignoreWhitespace && | ||
getUtil().isDeepStrictEqual(content, this._readFileJson) | ||
getUtil().isDeepStrictEqual(content, origContent) | ||
) { | ||
@@ -201,0 +209,0 @@ return false |
{ | ||
"name": "@socketsecurity/registry", | ||
"version": "1.0.174", | ||
"version": "1.0.175", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "Socket.dev registry helpers methods and metadata", |
52950992
0341365
0