Socket
Socket
Sign inDemoInstall

@nodelib/fs.stat

Package Overview
Dependencies
0
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 2.0.1

8

out/settings.d.ts

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc