daruk-exit-hook
Advanced tools
Comparing version 0.2.0 to 0.3.0
{ | ||
"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` |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
18489
6
429
70
1
1
2
+ Added@types/node@^12.0.0
+ Added@types/node@12.20.55(transitive)