@sentry/nuxt 10.64.0 → 10.65.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.
- package/build/esm/package.json +1 -1
- package/build/module/module.json +1 -1
- package/build/module/runtime/hooks/updateRouteBeforeResponse.js +2 -2
- package/build/module/runtime/utils/instrumentStorage.js +5 -7
- package/build/types/runtime/utils/instrumentStorage.d.ts.map +1 -1
- package/package.json +7 -7
package/build/esm/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"type":"module","version":"10.
|
|
1
|
+
{"type":"module","version":"10.65.0"}
|
package/build/module/module.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { debug, getActiveSpan, getRootSpan, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE } from "@sentry/core";
|
|
1
|
+
import { isObjectLike, debug, getActiveSpan, getRootSpan, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE } from "@sentry/core";
|
|
2
2
|
function getMatchedRoutePath(event) {
|
|
3
3
|
const matchedRoute = event.context.matchedRoute;
|
|
4
4
|
return matchedRoute?.path ?? matchedRoute?.route;
|
|
@@ -26,7 +26,7 @@ export function updateRouteBeforeResponse(event) {
|
|
|
26
26
|
"http.route": matchedRoutePath
|
|
27
27
|
});
|
|
28
28
|
const params = event.context?.params;
|
|
29
|
-
if (params
|
|
29
|
+
if (isObjectLike(params)) {
|
|
30
30
|
Object.entries(params).forEach(([key, value]) => {
|
|
31
31
|
rootSpan.setAttributes({
|
|
32
32
|
[`url.path.parameter.${key}`]: String(value),
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
+
isObjectLike,
|
|
2
3
|
captureException,
|
|
3
4
|
debug,
|
|
4
5
|
flushIfServerless,
|
|
@@ -99,9 +100,6 @@ function wrapStorageMount(storage) {
|
|
|
99
100
|
function normalizeMethodName(methodName) {
|
|
100
101
|
return methodName.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`);
|
|
101
102
|
}
|
|
102
|
-
function isEmptyValue(value) {
|
|
103
|
-
return value === null || value === void 0;
|
|
104
|
-
}
|
|
105
103
|
function createSpanStartOptions(methodName, driver, mountBase, args) {
|
|
106
104
|
const keys = getCacheKeys(args?.[0], mountBase);
|
|
107
105
|
const attributes = {
|
|
@@ -127,15 +125,15 @@ function normalizeKey(key, prefix) {
|
|
|
127
125
|
if (typeof key === "string") {
|
|
128
126
|
return `${prefix}${key}`;
|
|
129
127
|
}
|
|
130
|
-
if (
|
|
128
|
+
if (isObjectLike(key) && "key" in key) {
|
|
131
129
|
return `${prefix}${key.key}`;
|
|
132
130
|
}
|
|
133
|
-
return `${prefix}${
|
|
131
|
+
return `${prefix}${key == null ? "" : String(key)}`;
|
|
134
132
|
}
|
|
135
133
|
const CACHED_FN_HANDLERS_RE = /^nitro:(functions|handlers):/i;
|
|
136
134
|
function isCacheHit(key, value) {
|
|
137
135
|
try {
|
|
138
|
-
const isEmpty =
|
|
136
|
+
const isEmpty = value == null;
|
|
139
137
|
if (isEmpty || typeof key !== "string" || !CACHED_FN_HANDLERS_RE.test(key)) {
|
|
140
138
|
return !isEmpty;
|
|
141
139
|
}
|
|
@@ -145,7 +143,7 @@ function isCacheHit(key, value) {
|
|
|
145
143
|
}
|
|
146
144
|
}
|
|
147
145
|
function validateCacheEntry(key, entry) {
|
|
148
|
-
if (
|
|
146
|
+
if (entry.value == null) {
|
|
149
147
|
return false;
|
|
150
148
|
}
|
|
151
149
|
if (Date.now() > (entry.expires || 0)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instrumentStorage.d.ts","sourceRoot":"","sources":["../../../../src/runtime/utils/instrumentStorage.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"instrumentStorage.d.ts","sourceRoot":"","sources":["../../../../src/runtime/utils/instrumentStorage.ts"],"names":[],"mappings":"AAyDA;;;;;GAKG;AACH,wBAAsB,mBAAmB,CAAC,UAAU,EAAE,MAAM,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CA6B/G"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/nuxt",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.65.0",
|
|
4
4
|
"description": "Official Sentry SDK for Nuxt",
|
|
5
5
|
"repository": "git://github.com/getsentry/sentry-javascript.git",
|
|
6
6
|
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/nuxt",
|
|
@@ -55,14 +55,14 @@
|
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@nuxt/kit": "^3.13.2",
|
|
58
|
-
"@sentry/browser": "10.
|
|
59
|
-
"@sentry/cloudflare": "10.
|
|
60
|
-
"@sentry/core": "10.
|
|
61
|
-
"@sentry/node": "10.
|
|
62
|
-
"@sentry/node-core": "10.
|
|
58
|
+
"@sentry/browser": "10.65.0",
|
|
59
|
+
"@sentry/cloudflare": "10.65.0",
|
|
60
|
+
"@sentry/core": "10.65.0",
|
|
61
|
+
"@sentry/node": "10.65.0",
|
|
62
|
+
"@sentry/node-core": "10.65.0",
|
|
63
63
|
"@sentry/rollup-plugin": "^5.3.0",
|
|
64
64
|
"@sentry/vite-plugin": "^5.3.0",
|
|
65
|
-
"@sentry/vue": "10.
|
|
65
|
+
"@sentry/vue": "10.65.0",
|
|
66
66
|
"local-pkg": "^1.1.2"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|