@kong-ui-public/error-boundary 2.5.20 → 2.5.21-pr.4059.43830afeb.0

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.
Files changed (2) hide show
  1. package/README.md +3 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -92,8 +92,8 @@ You may still override this global callback on individual instances of the compo
92
92
  // Global registration
93
93
  import { createApp } from 'vue'
94
94
  import ErrorBoundary from '@kong-ui-public/error-boundary' // No style imports needed
95
- // Datadog package example
96
- import { datadogRum } from '@datadog/browser-rum'
95
+ // rum package example
96
+ import { rum } from '@kong-ui/real-user-monitoring'
97
97
 
98
98
  const app = createApp(App)
99
99
 
@@ -101,7 +101,7 @@ app.use(ErrorBoundary, {
101
101
  // Provide a global, default `onError` callback for all ErrorBoundary instances
102
102
  onError({ error, context }) {
103
103
  // Example of sending errors to Datadog
104
- datadogRum.addError(error, {
104
+ rum.addError(error, {
105
105
  ui: context,
106
106
  })
107
107
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kong-ui-public/error-boundary",
3
- "version": "2.5.20",
3
+ "version": "2.5.21-pr.4059.43830afeb.0",
4
4
  "type": "module",
5
5
  "main": "./dist/error-boundary.umd.js",
6
6
  "module": "./dist/error-boundary.es.js",