Server IP : 185.86.78.101 / Your IP : 216.73.216.124 Web Server : Apache System : Linux 675867-vds-valikoshka1996.gmhost.pp.ua 5.4.0-150-generic #167-Ubuntu SMP Mon May 15 17:35:05 UTC 2023 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,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_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /www/wwwroot/mifepriston.org/node_modules/browser-sync/dist/ |
Upload File : |
"use strict"; var _ = require("./lodash.custom"); var fileUtils = { /** * React to file-change events that occur on "core" namespace only * @param bs * @param data */ changedFile: function (bs, data) { /** * If the event property is undefined, infer that it's a 'change' * event due the fact this handler is for emitter.emit("file:changed") */ if (_.isUndefined(data.event)) { data.event = "change"; } /** * Chokidar always sends an 'event' property - which could be * `add` `unlink` etc etc so we need to check for that and only * respond to 'change', for now. */ if (bs.options.get("watchEvents").indexOf(data.event) > -1) { if (!bs.paused && data.namespace === "core") { bs.events.emit("file:reload", fileUtils.getFileInfo(data, bs.options)); } } }, /** * @param data * @param options * @returns {{assetFileName: *, fileExtension: String}} */ getFileInfo: function (data, options) { data.ext = require("path") .extname(data.path) .slice(1); data.basename = require("path").basename(data.path); var obj = { ext: data.ext, path: data.path, basename: data.basename, event: data.event, type: "inject" }; // RELOAD page if (!_.includes(options.get("injectFileTypes").toJS(), obj.ext)) { obj.url = obj.path; obj.type = "reload"; } obj.path = data.path; obj.log = data.log; return obj; } }; module.exports = fileUtils; //# sourceMappingURL=file-utils.js.map