File tree Expand file tree Collapse file tree 4 files changed +2
-18
lines changed Expand file tree Collapse file tree 4 files changed +2
-18
lines changed Original file line number Diff line number Diff line change 13
13
"module" : " build/esm/index.server.js" ,
14
14
"browser" : " build/esm/index.client.js" ,
15
15
"types" : " build/types/index.types.d.ts" ,
16
- "exports" : {
17
- "." : {
18
- "import" : " ./build/esm/index.server.js" ,
19
- "require" : " ./build/cjs/index.server.js" ,
20
- "types" : " ./build/types/index.types.d.ts"
21
- },
22
- "./requestAsyncStorageShim" : {
23
- "import" : " ./build/esm/config/templates/requestAsyncStorageShim.js"
24
- }
25
- },
26
16
"typesVersions" : {
27
17
"<4.9" : {
28
18
"build/npm/types/index.d.ts" : [
Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ export default function wrappingLoader(
191
191
}
192
192
templateCode = templateCode . replace (
193
193
/ _ _ S E N T R Y _ N E X T J S _ R E Q U E S T _ A S Y N C _ S T O R A G E _ S H I M _ _ / g,
194
- '@sentry/nextjs/requestAsyncStorageShim' ,
194
+ '@sentry/nextjs/build/esm/config/templates/ requestAsyncStorageShim.js ' ,
195
195
) ;
196
196
}
197
197
Original file line number Diff line number Diff line change @@ -7,9 +7,3 @@ export interface RequestAsyncStorage {
7
7
}
8
8
| undefined ;
9
9
}
10
-
11
- export const requestAsyncStorage : RequestAsyncStorage = {
12
- getStore : ( ) => {
13
- return undefined ;
14
- } ,
15
- } ;
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ if (typeof serverComponent === 'function') {
28
28
let sentryTraceHeader : string | undefined | null = undefined ;
29
29
let baggageHeader : string | undefined | null = undefined ;
30
30
31
- // We try-catch here just in case the API around `requestAsyncStorage` changes unexpectedly since it is not public API
31
+ // We try-catch here just in `requestAsyncStorage` is undefined since it may not be defined
32
32
try {
33
33
const requestAsyncStore = requestAsyncStorage . getStore ( ) ;
34
34
sentryTraceHeader = requestAsyncStore ?. headers . get ( 'sentry-trace' ) ;
You can’t perform that action at this time.
0 commit comments