@futurewindai/wotchi 0.1.0-beta.5 → 1.0.0-rc.1
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/README.md +84 -29
- package/SECURITY.md +3 -3
- package/dist/cjs/core/admission.js +22 -0
- package/dist/cjs/core/client.js +46 -0
- package/dist/cjs/core/config.js +16 -0
- package/dist/cjs/core/diagnostics.js +4 -0
- package/dist/cjs/core/group-store.js +7 -8
- package/dist/cjs/core/limits.js +5 -1
- package/dist/cjs/core/normalize.js +6 -1
- package/dist/cjs/core/notification-queue.js +77 -8
- package/dist/cjs/core/prometheus.js +129 -0
- package/dist/cjs/core/redact.js +4 -1
- package/dist/cjs/core/runtime-monitor.js +109 -0
- package/dist/cjs/index.js +6 -1
- package/dist/cjs/integrations/express/error-handler.js +24 -6
- package/dist/cjs/integrations/express/state.js +7 -20
- package/dist/cjs/integrations/express/status-observer.js +3 -9
- package/dist/cjs/integrations/nest/capture.js +21 -0
- package/dist/cjs/integrations/nest/exception-filter.js +64 -15
- package/dist/cjs/integrations/nest/filter-wrapper.js +19 -0
- package/dist/cjs/integrations/nest/index.js +6 -1
- package/dist/cjs/integrations/nest/module.js +44 -0
- package/dist/cjs/integrations/nest/register.js +17 -1
- package/dist/cjs/integrations/request-context.js +15 -23
- package/dist/esm/core/admission.js +19 -0
- package/dist/esm/core/client.js +46 -0
- package/dist/esm/core/config.js +17 -1
- package/dist/esm/core/diagnostics.js +4 -0
- package/dist/esm/core/group-store.js +7 -8
- package/dist/esm/core/limits.js +4 -0
- package/dist/esm/core/normalize.js +6 -1
- package/dist/esm/core/notification-queue.js +78 -9
- package/dist/esm/core/prometheus.js +125 -0
- package/dist/esm/core/redact.js +4 -1
- package/dist/esm/core/runtime-monitor.js +106 -0
- package/dist/esm/index.js +3 -1
- package/dist/esm/integrations/express/error-handler.js +23 -5
- package/dist/esm/integrations/express/state.js +7 -20
- package/dist/esm/integrations/express/status-observer.js +3 -9
- package/dist/esm/integrations/nest/capture.js +17 -0
- package/dist/esm/integrations/nest/exception-filter.js +65 -16
- package/dist/esm/integrations/nest/filter-wrapper.js +16 -0
- package/dist/esm/integrations/nest/index.js +2 -0
- package/dist/esm/integrations/nest/module.js +41 -0
- package/dist/esm/integrations/nest/register.js +17 -1
- package/dist/esm/integrations/request-context.js +14 -23
- package/dist/types/core/admission.d.ts +10 -0
- package/dist/types/core/config.d.ts +10 -0
- package/dist/types/core/diagnostics.d.ts +3 -1
- package/dist/types/core/incident-policy.d.ts +1 -1
- package/dist/types/core/limits.d.ts +4 -0
- package/dist/types/core/notification-queue.d.ts +9 -0
- package/dist/types/core/prometheus.d.ts +7 -0
- package/dist/types/core/runtime-monitor.d.ts +15 -0
- package/dist/types/core/types.d.ts +16 -1
- package/dist/types/index.d.ts +5 -1
- package/dist/types/integrations/express/status-observer.d.ts +1 -1
- package/dist/types/integrations/nest/capture.d.ts +4 -0
- package/dist/types/integrations/nest/exception-filter.d.ts +7 -3
- package/dist/types/integrations/nest/filter-wrapper.d.ts +7 -0
- package/dist/types/integrations/nest/index.d.ts +4 -0
- package/dist/types/integrations/nest/module.d.ts +9 -0
- package/dist/types/integrations/nest/register.d.ts +3 -0
- package/dist/types/integrations/request-context.d.ts +1 -0
- package/dist/types-cjs/core/admission.d.cts +10 -0
- package/dist/types-cjs/core/client.d.cts +1 -1
- package/dist/types-cjs/core/config.d.cts +12 -2
- package/dist/types-cjs/core/diagnostics.d.cts +4 -2
- package/dist/types-cjs/core/fingerprint.d.cts +1 -1
- package/dist/types-cjs/core/group-store.d.cts +1 -1
- package/dist/types-cjs/core/incident-builder.d.cts +2 -2
- package/dist/types-cjs/core/incident-policy.d.cts +2 -2
- package/dist/types-cjs/core/limits.d.cts +4 -0
- package/dist/types-cjs/core/notification-queue.d.cts +10 -1
- package/dist/types-cjs/core/process-monitor.d.cts +1 -1
- package/dist/types-cjs/core/prometheus.d.cts +7 -0
- package/dist/types-cjs/core/redact.d.cts +1 -1
- package/dist/types-cjs/core/runtime-monitor.d.cts +15 -0
- package/dist/types-cjs/core/types.d.cts +16 -1
- package/dist/types-cjs/index.d.cts +15 -11
- package/dist/types-cjs/integrations/express/error-handler.d.cts +2 -2
- package/dist/types-cjs/integrations/express/index.d.cts +8 -8
- package/dist/types-cjs/integrations/express/request-context.d.cts +2 -2
- package/dist/types-cjs/integrations/express/status-observer.d.cts +2 -2
- package/dist/types-cjs/integrations/nest/capture.d.cts +4 -0
- package/dist/types-cjs/integrations/nest/exception-filter.d.cts +8 -4
- package/dist/types-cjs/integrations/nest/filter-wrapper.d.cts +7 -0
- package/dist/types-cjs/integrations/nest/index.d.cts +9 -5
- package/dist/types-cjs/integrations/nest/module.d.cts +9 -0
- package/dist/types-cjs/integrations/nest/register.d.cts +7 -4
- package/dist/types-cjs/integrations/nest/request-context.d.cts +2 -2
- package/dist/types-cjs/integrations/request-context.d.cts +2 -1
- package/dist/types-cjs/notifiers/alert-payload.d.cts +2 -2
- package/dist/types-cjs/notifiers/console.d.cts +1 -1
- package/dist/types-cjs/notifiers/telegram-format.d.cts +1 -1
- package/dist/types-cjs/notifiers/telegram.d.cts +2 -2
- package/dist/types-cjs/notifiers/webhook-http.d.cts +1 -1
- package/dist/types-cjs/notifiers/webhook.d.cts +2 -2
- package/package.json +23 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@futurewindai/wotchi",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.0.0-rc.1",
|
|
4
4
|
"description": "Low-noise error alerts for Node.js, Express, and NestJS applications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"nodejs",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"license": "Apache-2.0",
|
|
18
18
|
"type": "module",
|
|
19
19
|
"engines": {
|
|
20
|
-
"node": ">=
|
|
20
|
+
"node": ">=22.14.0"
|
|
21
21
|
},
|
|
22
22
|
"sideEffects": false,
|
|
23
23
|
"publishConfig": {
|
|
@@ -33,6 +33,16 @@
|
|
|
33
33
|
"main": "./dist/cjs/index.js",
|
|
34
34
|
"module": "./dist/esm/index.js",
|
|
35
35
|
"types": "./dist/types/index.d.ts",
|
|
36
|
+
"typesVersions": {
|
|
37
|
+
"*": {
|
|
38
|
+
"express": [
|
|
39
|
+
"dist/types/integrations/express/index.d.ts"
|
|
40
|
+
],
|
|
41
|
+
"nest": [
|
|
42
|
+
"dist/types/integrations/nest/index.d.ts"
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
},
|
|
36
46
|
"exports": {
|
|
37
47
|
".": {
|
|
38
48
|
"types": {
|
|
@@ -76,15 +86,16 @@
|
|
|
76
86
|
"stand": "node scripts/start-test-stand.mjs",
|
|
77
87
|
"stand:production": "node scripts/start-nest-production-stand.mjs",
|
|
78
88
|
"typecheck": "tsc -p tsconfig.base.json --noEmit",
|
|
79
|
-
"lint": "eslint .",
|
|
80
|
-
"format": "prettier --write .",
|
|
81
|
-
"format:check": "prettier --check .",
|
|
89
|
+
"lint": "eslint src test scripts examples eslint.config.mjs",
|
|
90
|
+
"format": "prettier --write .github CHANGELOG.md CODE_OF_CONDUCT.md CONTRIBUTING.md README.md SECURITY.md docs examples eslint.config.mjs package-lock.json package.json scripts src test tsconfig.base.json tsconfig.cjs.json tsconfig.esm.json tsconfig.test.json tsconfig.types.json",
|
|
91
|
+
"format:check": "prettier --check .github CHANGELOG.md CODE_OF_CONDUCT.md CONTRIBUTING.md README.md SECURITY.md docs examples eslint.config.mjs package-lock.json package.json scripts src test tsconfig.base.json tsconfig.cjs.json tsconfig.esm.json tsconfig.test.json tsconfig.types.json",
|
|
82
92
|
"test:compile": "tsc -p tsconfig.test.json",
|
|
83
93
|
"test": "npm run test:compile && node --test .test-dist/test/unit/*.test.js .test-dist/test/integration/express/*.test.js .test-dist/test/integration/nest/*.test.js .test-dist/test/security/*.test.js",
|
|
84
94
|
"pack:dry-run": "npm run build && npm pack --dry-run --json",
|
|
85
95
|
"verify:package": "npm run build && node scripts/verify-package.mjs",
|
|
96
|
+
"verify:published-metadata": "node scripts/verify-published-metadata.mjs",
|
|
86
97
|
"test:compat": "npm run build && node test/compatibility/package-exports.smoke.cjs && node test/compatibility/framework-isolation.cjs",
|
|
87
|
-
"test:compat:matrix": "npm run build && node scripts/run-compatibility-matrix.mjs",
|
|
98
|
+
"test:compat:matrix": "npm run build && node scripts/run-compatibility-matrix.mjs --framework all --module both",
|
|
88
99
|
"benchmark": "npm run build && node --expose-gc scripts/run-benchmarks.mjs",
|
|
89
100
|
"benchmark:queue": "npm run test:compile && node --test .test-dist/test/performance/queue-saturation.bench.js",
|
|
90
101
|
"security:audit": "npm audit --audit-level=moderate",
|
|
@@ -92,8 +103,8 @@
|
|
|
92
103
|
"security:all": "npm run security:audit && npm run security:osv"
|
|
93
104
|
},
|
|
94
105
|
"peerDependencies": {
|
|
95
|
-
"@nestjs/common": "^10.4.0 || ^11.0.0",
|
|
96
|
-
"@nestjs/core": "^10.4.0 || ^11.0.0",
|
|
106
|
+
"@nestjs/common": "^10.4.0 || ^11.0.0 || ^12.0.1",
|
|
107
|
+
"@nestjs/core": "^10.4.0 || ^11.0.0 || ^12.0.1",
|
|
97
108
|
"express": "^4.18.0 || ^5.0.0",
|
|
98
109
|
"reflect-metadata": "^0.2.2",
|
|
99
110
|
"rxjs": "^7.8.0"
|
|
@@ -117,11 +128,11 @@
|
|
|
117
128
|
},
|
|
118
129
|
"devDependencies": {
|
|
119
130
|
"@eslint/js": "^10.0.1",
|
|
120
|
-
"@nestjs/common": "^
|
|
121
|
-
"@nestjs/core": "^
|
|
122
|
-
"@nestjs/platform-express": "^
|
|
131
|
+
"@nestjs/common": "^12.0.1",
|
|
132
|
+
"@nestjs/core": "^12.0.1",
|
|
133
|
+
"@nestjs/platform-express": "^12.0.1",
|
|
123
134
|
"@types/express": "^5.0.6",
|
|
124
|
-
"@types/node": "^
|
|
135
|
+
"@types/node": "^22.20.1",
|
|
125
136
|
"eslint": "^10.8.0",
|
|
126
137
|
"express": "^5.2.1",
|
|
127
138
|
"prettier": "^3.9.6",
|