Sha256: d50973311bf334084464053b895f1e0ae373e881482f06d44404bf1a76ac7d2c

Contents?: true

Size: 696 Bytes

Versions: 23

Compression:

Stored size: 696 Bytes

Contents

"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 === undefined ? value : option;
    }
}
exports.default = Settings;

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
trusty-cms-5.0.7 node_modules/@nodelib/fs.stat/out/settings.js
trusty-cms-5.0.6 node_modules/@nodelib/fs.stat/out/settings.js
trusty-cms-5.0.5 node_modules/@nodelib/fs.stat/out/settings.js
trusty-cms-5.0.4 node_modules/@nodelib/fs.stat/out/settings.js
trusty-cms-5.0.3 node_modules/@nodelib/fs.stat/out/settings.js
trusty-cms-5.0.2 node_modules/@nodelib/fs.stat/out/settings.js
trusty-cms-5.0.1 node_modules/@nodelib/fs.stat/out/settings.js
trusty-cms-4.3.5 node_modules/@nodelib/fs.stat/out/settings.js
trusty-cms-5.0.0 node_modules/@nodelib/fs.stat/out/settings.js
trusty-cms-4.3.4 node_modules/@nodelib/fs.stat/out/settings.js
trusty-cms-4.3.3 node_modules/@nodelib/fs.stat/out/settings.js
trusty-cms-4.3.2 node_modules/@nodelib/fs.stat/out/settings.js
trusty-cms-4.3.1 node_modules/@nodelib/fs.stat/out/settings.js
trusty-cms-4.3 node_modules/@nodelib/fs.stat/out/settings.js
trusty-cms-4.2.3 node_modules/@nodelib/fs.stat/out/settings.js
trusty-cms-4.2.2 node_modules/@nodelib/fs.stat/out/settings.js
trusty-cms-4.2.1 node_modules/@nodelib/fs.stat/out/settings.js
trusty-cms-4.2 node_modules/@nodelib/fs.stat/out/settings.js
trusty-cms-4.1.9 node_modules/@nodelib/fs.stat/out/settings.js
trusty-cms-4.1.8 node_modules/@nodelib/fs.stat/out/settings.js