New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

daruk-exit-hook

Package Overview
Dependencies
Maintainers
7
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

daruk-exit-hook - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

.editorconfig

17

package.json
{
"name": "daruk-exit-hook",
"version": "0.2.0",
"version": "0.3.0",
"description": "Run some code when the process exits",
"main": "./src/index.js",
"types": "./types/index.d.ts",
"main": "./lib/index.js",
"scripts": {
"test": "node ./test/index.js"
"test": "node ./test/index.js",
"build": "node ./node_modules/.bin/tsc"
},

@@ -22,4 +22,9 @@ "repository": {

"author": "jingyu16",
"license": "ISC",
"dependencies": {}
"license": "MIT",
"dependencies": {
"@types/node": "^12.0.0"
},
"devDependencies": {
"typescript": "^3.4.5"
}
}

@@ -64,2 +64,7 @@ ## daruk-exit-hook

使用`process.exit()`手动退出进程时,退出的回调函数不支持执行异步任务;并且如果退出的回调函数报错,有进程退出失败的风险
使用`process.exit()`手动退出进程时,退出的回调函数不支持执行异步任务;并且如果退出的回调函数报错,有进程退出失败的风险
## TODO
- 建议研究一下 TS 自动生成 commonjs 的 declaration,现在需要手动的在lib目录中添加 `export = ExitHook`
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc