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/webpack/lib/ |
Upload File : |
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const DependenciesBlock = require("./DependenciesBlock"); /** @typedef {import("./ChunkGroup")} ChunkGroup */ /** @typedef {import("./Module")} Module */ /** @typedef {import("./Dependency").DependencyLocation} DependencyLocation */ /** @typedef {import("./util/createHash").Hash} Hash */ /** @typedef {TODO} GroupOptions */ module.exports = class AsyncDependenciesBlock extends DependenciesBlock { /** * @param {GroupOptions} groupOptions options for the group * @param {Module} module the Module object * @param {DependencyLocation=} loc the line of code * @param {TODO=} request the request */ constructor(groupOptions, module, loc, request) { super(); if (typeof groupOptions === "string") { groupOptions = { name: groupOptions }; } else if (!groupOptions) { groupOptions = { name: undefined }; } this.groupOptions = groupOptions; /** @type {ChunkGroup=} */ this.chunkGroup = undefined; this.module = module; this.loc = loc; this.request = request; /** @type {DependenciesBlock} */ this.parent = undefined; } /** * @returns {string} The name of the chunk */ get chunkName() { return this.groupOptions.name; } /** * @param {string} value The new chunk name * @returns {void} */ set chunkName(value) { this.groupOptions.name = value; } /** * @returns {never} this throws and should never be called */ get chunks() { throw new Error("Moved to AsyncDependenciesBlock.chunkGroup"); } /** * @param {never} value setter value * @returns {never} this is going to throw therefore we should throw type * assertions by returning never */ set chunks(value) { throw new Error("Moved to AsyncDependenciesBlock.chunkGroup"); } /** * @param {Hash} hash the hash used to track block changes, from "crypto" module * @returns {void} */ updateHash(hash) { hash.update(JSON.stringify(this.groupOptions)); hash.update( (this.chunkGroup && this.chunkGroup.chunks .map(chunk => { return chunk.id !== null ? chunk.id : ""; }) .join(",")) || "" ); super.updateHash(hash); } /** * @returns {void} */ disconnect() { this.chunkGroup = undefined; super.disconnect(); } /** * @returns {void} */ unseal() { this.chunkGroup = undefined; super.unseal(); } /** * @returns {void} */ sortItems() { super.sortItems(); } };