@sequencemedia/process 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +5 -3
- package/src/common/index.mjs +10 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sequencemedia/process",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "Node process handlers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Node",
|
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
26
|
"lint": "eslint .",
|
|
27
|
-
"lint:fix": "npm run lint -- --fix"
|
|
27
|
+
"lint:fix": "npm run lint -- --fix",
|
|
28
|
+
"prepare": "husky"
|
|
28
29
|
},
|
|
29
30
|
"dependencies": {
|
|
30
31
|
"debug": "^4.4.0"
|
|
@@ -35,7 +36,8 @@
|
|
|
35
36
|
"@sequencemedia/eslint-config-standard": "^0.2.13",
|
|
36
37
|
"core-js": "^3.40.0",
|
|
37
38
|
"eslint": "^9.18.0",
|
|
38
|
-
"globals": "^15.14.0"
|
|
39
|
+
"globals": "^15.14.0",
|
|
40
|
+
"husky": "^9.1.7"
|
|
39
41
|
},
|
|
40
42
|
"exports": {
|
|
41
43
|
".": "./src/index.mjs",
|
package/src/common/index.mjs
CHANGED
|
@@ -26,7 +26,7 @@ export function handleSigHup (signal) {
|
|
|
26
26
|
*/
|
|
27
27
|
if (hasClearLine()) clearLine()
|
|
28
28
|
|
|
29
|
-
log('
|
|
29
|
+
log('handleSigHup', signal)
|
|
30
30
|
|
|
31
31
|
process.exit(0)
|
|
32
32
|
}
|
|
@@ -37,49 +37,49 @@ export function handleSigInt (signal) {
|
|
|
37
37
|
*/
|
|
38
38
|
if (hasClearLine()) clearLine()
|
|
39
39
|
|
|
40
|
-
log('
|
|
40
|
+
log('handleSigInt', signal)
|
|
41
41
|
|
|
42
42
|
process.exit(0)
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
export function handleSigBreak (signal) {
|
|
46
|
-
log('
|
|
46
|
+
log('handleSigBreak', signal)
|
|
47
47
|
|
|
48
48
|
process.exit(0)
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
export function handleSigQuit (signal) {
|
|
52
|
-
log('
|
|
52
|
+
log('handleSigQuit', signal)
|
|
53
53
|
|
|
54
54
|
process.exit(0)
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
export function handleSigTerm (signal) {
|
|
58
|
-
log('
|
|
58
|
+
log('handleSigTerm', signal)
|
|
59
59
|
|
|
60
60
|
process.exit(0)
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
export function handleSigPipe (signal) {
|
|
64
|
-
log('
|
|
64
|
+
log('handleSigPipe', signal)
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
export function handleBeforeExit (code) {
|
|
68
|
-
log('
|
|
68
|
+
log('handleBeforeExit', code)
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
export function handleExit (code) {
|
|
72
|
-
log('
|
|
72
|
+
log('handleExit', code)
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
export function handleUncaughtException ({ message }) {
|
|
76
|
-
log('
|
|
76
|
+
log('handleUncaughtException', message)
|
|
77
77
|
|
|
78
78
|
process.exit(1)
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
export function handleUnhandledRejection (reason, promise) {
|
|
82
|
-
log('
|
|
82
|
+
log('handleUnhandledRejection', reason, promise)
|
|
83
83
|
|
|
84
84
|
process.exit(1)
|
|
85
85
|
}
|