
Research
5 Malicious Chrome Extensions Enable Session Hijacking in Enterprise HR and ERP Systems
Five coordinated Chrome extensions enable session hijacking and block security controls across enterprise HR and ERP platforms.
@kagol/my-lib
Advanced tools
如果你需要发布一个前端工具库,可以直接使用这个工程模板。
你可以根据自己的需要修改包名,主要包括:
export default defineConfig({
build: {
lib: {
entry: resolve(__dirname, 'src/main.ts'),
name: 'MyLib', // 建议修改成你自己的包名
fileName: 'my-lib', // 建议修改成你自己的包名
},
},
})
{
"name": "@kagol/vite-lib-template", // 建议修改成自己的包名
"version": "0.0.1",
"type": "module",
"files": ["dist"],
"main": "./dist/my-lib.umd.cjs", // 建议修改成自己的包名
"module": "./dist/my-lib.js", // 建议修改成自己的包名
"exports": {
".": {
"import": "./dist/my-lib.js", // 建议修改成自己的包名
"require": "./dist/my-lib.umd.cjs" // 建议修改成自己的包名
}
}
}
修改版本号,然后执行以下命令。
pnpm i
pnpm run build
pnpm publish
默认会包含 es / umd 两种格式的产物,可以按需配置更多形式的产物。
export default defineConfig({
build: {
lib: {
entry: resolve(__dirname, 'src/main.ts'),
name: 'MyLib', // 这是 UMD 模式,暴露在 windows 变量中的名字,可以修改成你自己的包名
fileName: 'my-lib', // 这是产物的名字,可以修改成你自己的包名
+ format: ['es', 'cjs', 'umd']
},
},
})
安装:
pnpm i @kagol/my-lib
引入和使用:
import { add } from '@kagol/my-lib'
console.log('add(1, 2):', add(1, 2))
FAQs
We found that @kagol/my-lib demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
Five coordinated Chrome extensions enable session hijacking and block security controls across enterprise HR and ERP platforms.

Research
Node.js patched a crash bug where AsyncLocalStorage could cause stack overflows to bypass error handlers and terminate production servers.

Research
/Security News
A malicious Chrome extension steals newly created MEXC API keys, exfiltrates them to Telegram, and enables full account takeover with trading and withdrawal rights.