Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 3.140.201.179
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
wb /
node_modules /
browser-sync /
dist /
Delete
Unzip
Name
Size
Permission
Date
Action
cli
[ DIR ]
drwxrwxr-x
2022-08-30 11:49
public
[ DIR ]
drwxrwxr-x
2022-08-30 11:49
server
[ DIR ]
drwxrwxr-x
2022-08-30 11:49
args.js
1.61
KB
-rw-rw-r--
2022-08-30 11:49
args.js.map
1.4
KB
-rw-rw-r--
2022-08-30 11:49
async-tasks.js
1.33
KB
-rw-rw-r--
2022-08-30 11:49
async-tasks.js.map
1.07
KB
-rw-rw-r--
2022-08-30 11:49
async.js
9.05
KB
-rw-rw-r--
2022-08-30 11:49
async.js.map
6.92
KB
-rw-rw-r--
2022-08-30 11:49
bin.js
7.19
KB
-rwxrwxr-x
2022-08-30 11:49
bin.js.map
5.46
KB
-rw-rw-r--
2022-08-30 11:49
browser-sync.js
14.47
KB
-rw-rw-r--
2022-08-30 11:49
browser-sync.js.map
13.45
KB
-rw-rw-r--
2022-08-30 11:49
config.js
1.11
KB
-rw-rw-r--
2022-08-30 11:49
config.js.map
819
B
-rw-rw-r--
2022-08-30 11:49
connect-utils.js
7.8
KB
-rw-rw-r--
2022-08-30 11:49
connect-utils.js.map
5.42
KB
-rw-rw-r--
2022-08-30 11:49
default-config.js
14.31
KB
-rw-rw-r--
2022-08-30 11:49
default-config.js.map
3.13
KB
-rw-rw-r--
2022-08-30 11:49
file-event-handler.js
2.5
KB
-rw-rw-r--
2022-08-30 11:49
file-event-handler.js.map
2.04
KB
-rw-rw-r--
2022-08-30 11:49
file-utils.js
1.73
KB
-rw-rw-r--
2022-08-30 11:49
file-utils.js.map
1.43
KB
-rw-rw-r--
2022-08-30 11:49
file-watcher.js
2.04
KB
-rw-rw-r--
2022-08-30 11:49
file-watcher.js.map
2.02
KB
-rw-rw-r--
2022-08-30 11:49
hooks.js
2.41
KB
-rw-rw-r--
2022-08-30 11:49
hooks.js.map
2.13
KB
-rw-rw-r--
2022-08-30 11:49
http-protocol.js
3.26
KB
-rw-rw-r--
2022-08-30 11:49
http-protocol.js.map
2.7
KB
-rw-rw-r--
2022-08-30 11:49
index.js
10.34
KB
-rw-rw-r--
2022-08-30 11:49
index.js.map
5.94
KB
-rw-rw-r--
2022-08-30 11:49
internal-events.js
3.39
KB
-rw-rw-r--
2022-08-30 11:49
internal-events.js.map
3.13
KB
-rw-rw-r--
2022-08-30 11:49
lodash.custom.js
148.39
KB
-rw-rw-r--
2022-08-30 11:49
lodash.custom.js.map
74.35
KB
-rw-rw-r--
2022-08-30 11:49
logger.js
6.95
KB
-rw-rw-r--
2022-08-30 11:49
logger.js.map
6.44
KB
-rw-rw-r--
2022-08-30 11:49
options.js
6.48
KB
-rw-rw-r--
2022-08-30 11:49
options.js.map
5.95
KB
-rw-rw-r--
2022-08-30 11:49
plugins.js
4.72
KB
-rw-rw-r--
2022-08-30 11:49
plugins.js.map
3.04
KB
-rw-rw-r--
2022-08-30 11:49
snippet.js
2.87
KB
-rw-rw-r--
2022-08-30 11:49
snippet.js.map
2.65
KB
-rw-rw-r--
2022-08-30 11:49
sockets.js
2.25
KB
-rw-rw-r--
2022-08-30 11:49
sockets.js.map
2.05
KB
-rw-rw-r--
2022-08-30 11:49
tunnel.js
950
B
-rw-rw-r--
2022-08-30 11:49
tunnel.js.map
1.05
KB
-rw-rw-r--
2022-08-30 11:49
types.js
110
B
-rw-rw-r--
2022-08-30 11:49
types.js.map
102
B
-rw-rw-r--
2022-08-30 11:49
utils.js
8.41
KB
-rw-rw-r--
2022-08-30 11:49
utils.js.map
7.07
KB
-rw-rw-r--
2022-08-30 11:49
Save
Rename
"use strict"; var _ = require("./lodash.custom"); var fs = require("fs"); var config = require("./config"); function getPath(options, relative, port) { if (options.get("mode") === "snippet") { return options.get("scheme") + "://HOST:" + port + relative; } else { return "//HOST:" + port + relative; } } var connectUtils = { /** * Allow users to disable the Browsersync snippet * @param {Immutable.Map} options * @returns {Boolean} */ enabled: function (options) { const userValue = options.get("snippet"); if (typeof userValue === "boolean") { return userValue; } return true; }, /** * @param {Immutable.Map} options * @returns {String} */ scriptTags: function (options) { var scriptPath = this.clientScript(options); var async = options.getIn(["snippetOptions", "async"]); var scriptDomain = options.getIn(["script", "domain"]); /** * Generate the [src] attribute based on user options */ var scriptSrc = (function () { if (options.get("localOnly")) { return [ options.get("scheme"), "://localhost:", options.get("port"), scriptPath ].join(""); } /** * First, was "scriptPath" set? if so the user wanted full control over the * script tag output * */ if (_.isFunction(options.get("scriptPath"))) { return options .get("scriptPath") .apply(null, getScriptArgs(options, scriptPath)); } /** * Next, if "script.domain" was given, allow that + the path to the JS file * eg: * script.domain=localhost:3000 * -> localhost:3000/browser-sync/browser-sync-client.js */ if (scriptDomain) { if (_.isFunction(scriptDomain)) { return scriptDomain.call(null, options) + scriptPath; } if (scriptDomain.match(/\{port\}/)) { return (scriptDomain.replace("{port}", options.get("port")) + scriptPath); } return scriptDomain + scriptPath; } /** * Now if server or proxy, use dynamic script * eg: * browser-sync start --server * -> * "HOST:3000/browser-sync/browser-sync-client.js".replace("HOST", location.hostname) */ if (options.get("server") || options.get("proxy")) { return scriptPath; } /** * Final use case is snippet mode * -> "http://HOST:3000/browser-sync/browser-sync-client.js".replace("HOST", location.hostname) * -> "//HOST:3000/browser-sync/browser-sync-client.js".replace("HOST", location.hostname)" */ return getPath(options, scriptPath, options.get("port")); })(); /** * Decide which template shall be used to generate the script tags */ var template = (function () { if (scriptDomain || options.get("localOnly")) { return config.templates.scriptTagSimple; } return config.templates.scriptTag; })(); /** * Finally read the template file from disk and replace * the dynamic values. */ return fs .readFileSync(template, "utf8") .replace("%script%", scriptSrc) .replace("%async%", async ? "async" : ""); }, /** * @param {Map} options * @returns {String} */ socketConnector: function (options) { var socket = options.get("socket"); var template = fs.readFileSync(config.templates.connector, "utf-8"); var url = connectUtils.getConnectionUrl(options); /** * ***Backwards compatibility***. While `socket.path` is technically a * socketIoClientConfig property, it's been documented previously * as a top-level option, so must stay. */ var clientConfig = socket.get("socketIoClientConfig").merge({ path: socket.get("path") }); template = template .replace("%config%", JSON.stringify(clientConfig.toJS())) .replace("%options%", JSON.stringify(options)) .replace("%url%", url); return template; }, /** * @param {Object} socketOpts * @param {Map} options * @returns {String|Function} */ getNamespace: function (socketOpts, options) { var namespace = socketOpts.namespace; if (typeof namespace === "function") { return namespace(options); } if (!namespace.match(/^\//)) { namespace = "/" + namespace; } return namespace; }, /** * @param {Map} options * @returns {string} */ getConnectionUrl: function (options) { var socketOpts = options.get("socket").toJS(); var namespace = connectUtils.getNamespace(socketOpts, options); var protocol = ""; var withHostnamePort = "'{protocol}' + location.hostname + ':{port}{ns}'"; var withHost = "'{protocol}' + location.host + '{ns}'"; var withDomain = "'{domain}{ns}'"; var port = options.get("port"); // default use-case is server/proxy var string = withHost; if (options.get("mode") !== "server") { protocol = options.get("scheme") + "://"; string = withHostnamePort; } if (options.get("mode") === "proxy" && options.getIn(["proxy", "ws"])) { port = options.getIn(["socket", "port"]); } /** * Ensure socket.domain is always a string (for noop replacements later) */ socketOpts.domain = (function () { if (options.get("localOnly")) { string = withDomain; return [ options.get("scheme"), "://localhost:", options.get("port") ].join(""); } if (socketOpts.domain) { string = withDomain; /** * User provided a function */ if (_.isFunction(socketOpts.domain)) { return socketOpts.domain.call(null, options); } /** * User provided a string */ if (_.isString(socketOpts.domain)) { return socketOpts.domain; } } return ""; })(); return string .replace("{protocol}", protocol) .replace("{port}", port) .replace("{domain}", socketOpts.domain.replace("{port}", port)) .replace("{ns}", namespace); }, /** * @param {Object} [options] * @param {Boolean} [both] */ clientScript: function (options, both) { var prefix = options.getIn(["socket", "clientPath"]); var script = prefix + "/browser-sync-client.js"; var versioned = prefix + "/browser-sync-client.js?v=" + options.get("version"); if (both) { return { path: script, versioned: versioned }; } return versioned; } }; /** * @param options * @returns {*[]} */ function getScriptArgs(options, scriptPath) { var abspath = options.get("scheme") + "://HOST:" + options.get("port") + scriptPath; return [scriptPath, options.get("port"), options.set("absolute", abspath)]; } module.exports = connectUtils; //# sourceMappingURL=connect-utils.js.map