⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.1
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
qda-digital.online
/
node_modules
/
jszip
/
Edit File: deps.js
"use strict"; const madge = require("madge"); const path = require("path"); const ts = require("typescript"); const DIR = "./lib"; async function main() { const tsconfigPath = ts.findConfigFile("./", ts.sys.fileExists); const tsconfig = ts.readConfigFile(tsconfigPath, ts.sys.readFile).config; const parsedConfig = ts.parseJsonConfigFileContent(tsconfig, ts.sys, "./"); const typedPaths = parsedConfig.fileNames.map(filename => path.resolve("./", filename)); const excludeTypedPaths = path => !typedPaths.includes(path); const res = await madge(DIR, { dependencyFilter: excludeTypedPaths }); const untypedLeaves = res.leaves().map(filename => path.resolve(DIR, filename)).filter(excludeTypedPaths); if (untypedLeaves.length) { console.log("Convert next:"); console.log(untypedLeaves.join("\n")); } else { console.log("No untyped leaf dependencies found."); console.log("Try looking at circular dependencies, or the image to decide what to convert next:"); const untypedCircular = res.circular().flat().map(filename => path.resolve(DIR, filename)).filter(excludeTypedPaths); console.log(untypedCircular.join("\n")); } const imagePath = await res.image("graph.svg"); console.log(); console.log("Image written to " + imagePath); } main();
Simpan