HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux wordpress-ubuntu-s-2vcpu-4gb-fra1-01 5.4.0-169-generic #187-Ubuntu SMP Thu Nov 23 14:52:28 UTC 2023 x86_64
User: root (0)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/tana/frontend/node_modules/browser-sync/dist/cli/transforms/handleServerOption.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var immutable_1 = require("immutable");
function handleServerOption(incoming) {
    var value = incoming.get('server');
    if (value === false) {
        return incoming;
    }
    // server: true
    if (value === true) {
        var obj = {
            baseDir: ["./"]
        };
        return incoming.set('server', immutable_1.fromJS(obj));
    }
    // server: "./app"
    if (typeof value === "string") {
        var obj = {
            baseDir: [value]
        };
        return incoming.set('server', immutable_1.fromJS(obj));
    }
    if (immutable_1.List.isList(value)) {
        var obj = {
            baseDir: value
        };
        return incoming.set('server', immutable_1.fromJS(obj));
    }
    if (immutable_1.Map.isMap(value)) {
        var dirs = immutable_1.List([])
            .concat(value.get("baseDir", "./"))
            .filter(Boolean);
        var merged = value.merge({ baseDir: dirs });
        return incoming.set('server', merged);
    }
    return incoming;
}
exports.handleServerOption = handleServerOption;
//# sourceMappingURL=handleServerOption.js.map