owlservable 0.2.2 → 0.2.4
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/index.cjs +4 -0
- package/index.js +4 -0
- package/package.json +3 -1
package/index.cjs
CHANGED
|
@@ -373,6 +373,10 @@ function startDashboard(port) {
|
|
|
373
373
|
server.listen(port, '127.0.0.1', () => console.log('[owlservable] Dashboard → http://localhost:' + port))
|
|
374
374
|
}
|
|
375
375
|
|
|
376
|
+
process.on('exit', () => { if (server) server.close() })
|
|
377
|
+
process.on('SIGTERM', () => { if (server) server.close(); process.exit(0) })
|
|
378
|
+
process.on('SIGINT', () => { if (server) server.close(); process.exit(0) })
|
|
379
|
+
|
|
376
380
|
let initialized = false
|
|
377
381
|
|
|
378
382
|
function init({ port = 4321, dashboard = true, logging = false, save = false, retention = 86_400_000 } = {}) {
|
package/index.js
CHANGED
|
@@ -373,6 +373,10 @@ function startDashboard(port) {
|
|
|
373
373
|
server.listen(port, '127.0.0.1', () => console.log('[owlservable] Dashboard → http://localhost:' + port))
|
|
374
374
|
}
|
|
375
375
|
|
|
376
|
+
process.on('exit', () => { if (server) server.close() })
|
|
377
|
+
process.on('SIGTERM', () => { if (server) server.close(); process.exit(0) })
|
|
378
|
+
process.on('SIGINT', () => { if (server) server.close(); process.exit(0) })
|
|
379
|
+
|
|
376
380
|
let initialized = false
|
|
377
381
|
|
|
378
382
|
export function init({ port = 4321, dashboard = true, logging = false, save = false, retention = 86_400_000 } = {}) {
|
package/package.json
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "owlservable",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "Minimalist Observability Platform. Zero config, zero dependencies.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"types": "index.d.ts",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
|
+
"types": "./index.d.ts",
|
|
10
11
|
"import": "./index.js",
|
|
11
12
|
"require": "./index.cjs"
|
|
12
13
|
},
|
|
13
14
|
"./auto": {
|
|
15
|
+
"types": "./index.d.ts",
|
|
14
16
|
"import": "./auto.js",
|
|
15
17
|
"require": "./auto.cjs"
|
|
16
18
|
}
|