Urara-Blog/node_modules/.pnpm-store/v3/files/28/47dbe7f082e9c29881a105f9cea32de78da8911676fa7f09342997c7793a8e8259402aceb41e1a74c321e3f4b1e0b01c3899ecad9d3a09dc92dc422e19143c
2022-08-14 01:14:53 +08:00

16 lines
696 B
Text

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const fs = require("./adapters/fs");
class Settings {
constructor(_options = {}) {
this._options = _options;
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);
}
_getValue(option, value) {
return option !== null && option !== void 0 ? option : value;
}
}
exports.default = Settings;