47dbe7f082e9c29881a105f9cea32de78da8911676fa7f09342997c7793a8e8259402aceb41e1a74c321e3f4b1e0b01c3899ecad9d3a09dc92dc422e19143c 696 B

12345678910111213141516
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. const fs = require("./adapters/fs");
  4. class 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. }
  16. exports.default = Settings;