@djangocfg/monitor 2.1.223 → 2.1.225
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/dist/client.cjs +4 -2
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +2 -0
- package/dist/client.d.ts +2 -0
- package/dist/client.mjs +4 -2
- package/dist/client.mjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/package.json +2 -2
- package/src/client/capture/js-errors.ts +2 -0
- package/src/types/config.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@djangocfg/monitor",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.225",
|
|
4
4
|
"description": "Browser error and event monitoring SDK for django-cfg backends. Captures JS errors, network failures, console logs, and performance metrics.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"django",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
|
-
"@djangocfg/typescript-config": "^2.1.
|
|
86
|
+
"@djangocfg/typescript-config": "^2.1.225",
|
|
87
87
|
"p-retry": "^6.2.0",
|
|
88
88
|
"@types/node": "^24.7.2",
|
|
89
89
|
"@types/react": "^19.1.0",
|
|
@@ -30,6 +30,7 @@ export function installJsErrorCapture(): () => void {
|
|
|
30
30
|
user_agent: navigator.userAgent,
|
|
31
31
|
project_name: config.project,
|
|
32
32
|
environment: config.environment,
|
|
33
|
+
build_id: config.buildId ?? '',
|
|
33
34
|
})
|
|
34
35
|
} catch { /* never crash */ }
|
|
35
36
|
}
|
|
@@ -55,6 +56,7 @@ export function installJsErrorCapture(): () => void {
|
|
|
55
56
|
user_agent: navigator.userAgent,
|
|
56
57
|
project_name: config.project,
|
|
57
58
|
environment: config.environment,
|
|
59
|
+
build_id: config.buildId ?? '',
|
|
58
60
|
})
|
|
59
61
|
} catch { /* never crash */ }
|
|
60
62
|
}
|
package/src/types/config.ts
CHANGED
|
@@ -9,6 +9,8 @@ export interface MonitorConfig {
|
|
|
9
9
|
project?: string
|
|
10
10
|
/** Environment tag: production / staging / development */
|
|
11
11
|
environment?: string
|
|
12
|
+
/** Next.js BUILD_ID for server-side source map deminification */
|
|
13
|
+
buildId?: string
|
|
12
14
|
/** Flush interval in ms. Default: 5000 */
|
|
13
15
|
flushInterval?: number
|
|
14
16
|
/** Max events in buffer before immediate flush. Default: 20 */
|