Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/mets.corals.io/wp-content/themes/metras/node_modules/browser-sync/dist/public/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/mets.corals.io/wp-content/themes/metras/node_modules/browser-sync/dist/public/init.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var _ = require("../lodash.custom");
var cli_options_1 = require("../cli/cli-options");
/**
 * @param {BrowserSync} browserSync
 * @param {String} [name] - instance name
 * @param {Object} pjson
 * @returns {Function}
 */
module.exports = function (browserSync, name, pjson) {
    return function () {
        /**
         * Handle new + old signatures for init.
         */
        var args = require("../args")(_.toArray(arguments));
        /**
         * If the current instance is already running, just return an error
         */
        if (browserSync.active) {
            return args.cb(new Error("Instance: " + name + " is already running!"));
        }
        // Env specific items
        args.config.version = pjson.version;
        args.config.cwd = args.config.cwd || process.cwd();
        var _a = cli_options_1.merge(args.config), opts = _a[0], errors = _a[1];
        if (errors.length) {
            return args.cb(new Error(cli_options_1.printErrors(errors)));
        }
        return browserSync.init(opts, args.cb);
    };
};
//# sourceMappingURL=init.js.map

Spamworldpro Mini