@datadog/browser-rum-nextjs 7.1.0 → 7.3.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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.addNextjsError = addNextjsError;
|
|
4
|
+
const time_1 = require("@datadog/js-core/time");
|
|
4
5
|
const browser_core_1 = require("@datadog/browser-core");
|
|
5
6
|
const nextjsPlugin_1 = require("../nextjsPlugin");
|
|
6
7
|
/**
|
|
@@ -24,7 +25,7 @@ const nextjsPlugin_1 = require("../nextjsPlugin");
|
|
|
24
25
|
*/
|
|
25
26
|
function addNextjsError(error, errorInfo) {
|
|
26
27
|
const handlingStack = (0, browser_core_1.createHandlingStack)('nextjs error');
|
|
27
|
-
const startClocks = (0,
|
|
28
|
+
const startClocks = (0, time_1.clocksNow)();
|
|
28
29
|
(0, nextjsPlugin_1.onRumStart)((addError) => {
|
|
29
30
|
(0, browser_core_1.callMonitored)(() => {
|
|
30
31
|
addError({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addNextjsError.js","sourceRoot":"","sources":["../../../src/domain/error/addNextjsError.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"addNextjsError.js","sourceRoot":"","sources":["../../../src/domain/error/addNextjsError.ts"],"names":[],"mappings":";;AAyBA,wCAkBC;AA3CD,gDAAiD;AACjD,wDAA0E;AAG1E,kDAA4C;AAE5C;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,cAAc,CAAC,KAAkC,EAAE,SAAqB;IACtF,MAAM,aAAa,GAAG,IAAA,kCAAmB,EAAC,cAAc,CAAC,CAAA;IACzD,MAAM,WAAW,GAAG,IAAA,gBAAS,GAAE,CAAA;IAC/B,IAAA,yBAAU,EAAC,CAAC,QAAQ,EAAE,EAAE;QACtB,IAAA,4BAAa,EAAC,GAAG,EAAE;YACjB,QAAQ,CAAC;gBACP,KAAK;gBACL,aAAa;gBACb,cAAc,EAAE,SAAS,EAAE,cAAc,IAAI,SAAS;gBACtD,WAAW;gBACX,OAAO,EAAE;oBACP,GAAI,KAA0C,CAAC,UAAU;oBACzD,GAAG,CAAC,KAAK,CAAC,MAAM,IAAI,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,EAAE,CAAC;oBACzD,SAAS,EAAE,QAAQ;iBACpB;aACF,CAAC,CAAA;QACJ,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { clocksNow } from '@datadog/js-core/time';
|
|
2
|
+
import { callMonitored, createHandlingStack } from '@datadog/browser-core';
|
|
2
3
|
import { onRumStart } from '../nextjsPlugin';
|
|
3
4
|
/**
|
|
4
5
|
* Add a Next.js error to the RUM session.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addNextjsError.js","sourceRoot":"","sources":["../../../src/domain/error/addNextjsError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"addNextjsError.js","sourceRoot":"","sources":["../../../src/domain/error/addNextjsError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAG1E,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAE5C;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,cAAc,CAAC,KAAkC,EAAE,SAAqB;IACtF,MAAM,aAAa,GAAG,mBAAmB,CAAC,cAAc,CAAC,CAAA;IACzD,MAAM,WAAW,GAAG,SAAS,EAAE,CAAA;IAC/B,UAAU,CAAC,CAAC,QAAQ,EAAE,EAAE;QACtB,aAAa,CAAC,GAAG,EAAE;YACjB,QAAQ,CAAC;gBACP,KAAK;gBACL,aAAa;gBACb,cAAc,EAAE,SAAS,EAAE,cAAc,IAAI,SAAS;gBACtD,WAAW;gBACX,OAAO,EAAE;oBACP,GAAI,KAA0C,CAAC,UAAU;oBACzD,GAAG,CAAC,KAAK,CAAC,MAAM,IAAI,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,EAAE,CAAC;oBACzD,SAAS,EAAE,QAAQ;iBACpB;aACF,CAAC,CAAA;QACJ,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datadog/browser-rum-nextjs",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.3.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "cjs/entries/main.js",
|
|
6
6
|
"module": "esm/entries/main.js",
|
|
@@ -17,9 +17,10 @@
|
|
|
17
17
|
"prepack": "yarn build"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@datadog/browser-core": "7.
|
|
21
|
-
"@datadog/browser-rum-core": "7.
|
|
22
|
-
"@datadog/browser-rum-react": "7.
|
|
20
|
+
"@datadog/browser-core": "7.3.0",
|
|
21
|
+
"@datadog/browser-rum-core": "7.3.0",
|
|
22
|
+
"@datadog/browser-rum-react": "7.3.0",
|
|
23
|
+
"@datadog/js-core": "0.0.2"
|
|
23
24
|
},
|
|
24
25
|
"peerDependencies": {
|
|
25
26
|
"next": ">=13.0.0",
|
|
@@ -36,15 +37,15 @@
|
|
|
36
37
|
"repository": {
|
|
37
38
|
"type": "git",
|
|
38
39
|
"url": "https://github.com/DataDog/browser-sdk.git",
|
|
39
|
-
"directory": "packages/rum-nextjs"
|
|
40
|
+
"directory": "packages/browser-rum-nextjs"
|
|
40
41
|
},
|
|
41
42
|
"volta": {
|
|
42
43
|
"extends": "../../package.json"
|
|
43
44
|
},
|
|
44
45
|
"devDependencies": {
|
|
45
|
-
"@types/react": "19.2.
|
|
46
|
-
"next": "16.2.
|
|
47
|
-
"react": "19.2.
|
|
48
|
-
"react-dom": "19.2.
|
|
46
|
+
"@types/react": "19.2.15",
|
|
47
|
+
"next": "16.2.6",
|
|
48
|
+
"react": "19.2.6",
|
|
49
|
+
"react-dom": "19.2.6"
|
|
49
50
|
}
|
|
50
51
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { clocksNow } from '@datadog/js-core/time'
|
|
2
|
+
import { callMonitored, createHandlingStack } from '@datadog/browser-core'
|
|
2
3
|
import type { Context } from '@datadog/browser-core'
|
|
3
4
|
import type { ErrorInfo } from 'react'
|
|
4
5
|
import { onRumStart } from '../nextjsPlugin'
|