
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
@itgenio/edik-compiler
Advanced tools
Браузерный компилятор, собирающий CJS модули для работы с install
Для сборки JS используется esbuild-wasm.
Для сборки CSS используется less.
На выходе получается файл с названием [name].[hash].js, например:
type CompilerFile = { name: string; content: string };
const someFiles: CompilerFile[] = [
{
name: 'index.js',
content: `
import { logger } from './utils/logger.js';
console.log(logger());
`,
},
{
name: 'utils/logger.js',
content: `
export const logger = () => 'logs';
`,
},
];
const moduleFile: CompilerFile = {
name: 'index.KLIO2BFQ.js',
content: `edikInstall({'node_modules':{'index.KLIO2BFQ.js'(require,exports,module) {
const logger = () => 'logs';
console.log(logger());
}}},{extensions:['.js','.css','.less','.ts','.json']})`,
};
На выходе получается файл с названием style.css
В сборке участвуют следующие типы ресурсов:
Эти ресурсы могут быть расположены на любом уровне вложенности.
Существуют специальные папки, которые меняют правила сборки:
редактор| packages/some-component/index.js -> './packages/some-component/index.js'
| folder
| utils.js -> './folder/utils.js'
| main.js -> './main.js'
entrypoint.js(невидимый), в котором импортируем все файлы. Порядок не имеет значения, так как далее будет строиться дерево зависимостей и код скомпилируется в нужном порядке.import './packages/some-component/index.js';
import './folder/utils.js';
import './main.js';
entrypoint.js передаются в ESBuild чтобы собрались файлы исполнения (executable files). Эти файлы далее будут запущены на выполнение с помощью Executor-ов.FAQs
Web-based compiler for Edik resources
We found that @itgenio/edik-compiler demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.