source: trip-planner-front/node_modules/@nodelib/fs.stat/out/settings.js@ 6a3a178

Last change on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 696 bytes
Line 
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const fs = require("./adapters/fs");
4class Settings {
5 constructor(_options = {}) {
6 this._options = _options;
7 this.followSymbolicLink = this._getValue(this._options.followSymbolicLink, true);
8 this.fs = fs.createFileSystemAdapter(this._options.fs);
9 this.markSymbolicLink = this._getValue(this._options.markSymbolicLink, false);
10 this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
11 }
12 _getValue(option, value) {
13 return option !== null && option !== void 0 ? option : value;
14 }
15}
16exports.default = Settings;
Note: See TracBrowser for help on using the repository browser.