// npm 패키지
fe-utils-core
Generic frontend utilities for Node.js and browser environments
버전
6
메인테이너
1
라이선스
ISC
최초 publish
2026-04-01
publisher
jomarte
tarball
9,881 B
AUTO-PUBLISHED·1개 버전 인덱싱됨·최근 publish: 2026-05-26
// offending code· @1.0.6· 1 file flagged
llm: benign · 0.85→ 의심 전송지 없음, 원격 실행 형태 없음 — 1 known-vendor host(s).
- @1.0.6··AUTO-PUBLISHED·publisher: jomarteheuristic 75/100static flags 1llm benign (0.85) via ollamanew-publisher:0dosv-flagged:MAL-2026-4561function-constructor
→ 의심 전송지 없음, 원격 실행 형태 없음 — 1 known-vendor host(s).
// offending code· 1 file flaggedpatterns: 1
--- package/index.js (excerpt) --- // index.js // Using Node's built-in fetch (available in Node 18+) import { createRequire } from 'module'; import { fileURLToPath } from 'url'; import { dirname, resolve } from 'path'; // Create require that resolves from the project root (where package.json and node_modules are) const projectRoot = resolve(dirname(fileURLToPath(import.meta.url)), '..'); const currentRequire = createRequire(resolve(projectRoot, 'package.json')); const reactSvgHelperPath = resolve(projectRoot, '../react-svg-helper'); let helperRequire = null; try { helperRequire = createRequire(resolve(reactSvgHelperPath, 'package.json')); } catch (e) { // react-svg-helper might not exist, that's okay } // Create a require function that tries both locations const customRequire = (moduleName) => { // First try current project's node_modules try { return currentRequire(moduleName); } catch (e) { // Then try react-svg-helper's node_modules if available if (helperRequire) { try { return helperRequire(moduleName); } catch (e2) { // If both fail, throw with helpful error const error = new Error(`Cannot find module '${moduleName}'`); error.code = 'MODULE_NOT_FOUND'; throw error; } } else { const error = new Error(`Cannot find module '${moduleName}'`); error.code = 'MODULE_NOT_FOUND'; throw error; } } }; // Make it behave like Node's require customRequire.resolve = (moduleName) => { try { return current
