@nodelib/fs.stat
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -10,7 +10,2 @@ import * as fs from './adapters/fs'; | ||
private readonly _options; | ||
private readonly _followSymbolicLink; | ||
private readonly _fs; | ||
private readonly _markSymbolicLink; | ||
private readonly _throwErrorOnBrokenSymbolicLink; | ||
constructor(_options?: Options); | ||
readonly followSymbolicLink: boolean; | ||
@@ -20,4 +15,5 @@ readonly fs: fs.FileSystemAdapter; | ||
readonly throwErrorOnBrokenSymbolicLink: boolean; | ||
private _setDefaultValue; | ||
constructor(_options?: Options); | ||
private _getValue; | ||
} | ||
//# sourceMappingURL=settings.d.ts.map |
@@ -7,20 +7,8 @@ "use strict"; | ||
this._options = _options; | ||
this._followSymbolicLink = this._setDefaultValue(this._options.followSymbolicLink, true); | ||
this._fs = fs.createFileSystemAdapter(this._options.fs); | ||
this._markSymbolicLink = this._setDefaultValue(this._options.markSymbolicLink, false); | ||
this._throwErrorOnBrokenSymbolicLink = this._setDefaultValue(this._options.throwErrorOnBrokenSymbolicLink, true); | ||
this.followSymbolicLink = this._getValue(this._options.followSymbolicLink, true); | ||
this.fs = fs.createFileSystemAdapter(this._options.fs); | ||
this.markSymbolicLink = this._getValue(this._options.markSymbolicLink, false); | ||
this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true); | ||
} | ||
get followSymbolicLink() { | ||
return this._followSymbolicLink; | ||
} | ||
get fs() { | ||
return this._fs; | ||
} | ||
get markSymbolicLink() { | ||
return this._markSymbolicLink; | ||
} | ||
get throwErrorOnBrokenSymbolicLink() { | ||
return this._throwErrorOnBrokenSymbolicLink; | ||
} | ||
_setDefaultValue(option, value) { | ||
_getValue(option, value) { | ||
return option === undefined ? value : option; | ||
@@ -27,0 +15,0 @@ } |
{ | ||
"name": "@nodelib/fs.stat", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Get the status of a file with some features", | ||
@@ -27,3 +27,4 @@ "license": "MIT", | ||
"watch": "npm run clean && npm run compile:watch" | ||
} | ||
}, | ||
"gitHead": "14a421c7401f269bf868e1a53fac0c3624247518" | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
10299
160