Skip to content

Commit 3508ae9

Browse files
committed
restructure package json exports
1 parent c654ce5 commit 3508ae9

File tree

2 files changed

+42
-37
lines changed

2 files changed

+42
-37
lines changed

dev-packages/e2e-tests/test-applications/node-exports-test-app/scripts/consistentExports.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ const DEPENDENTS: Dependent[] = [
8484
},
8585
{
8686
package: '@sentry/google-cloud',
87-
compareWith: nodeExperimentalExports,
87+
compareWith: nodeExports,
8888
exports: Object.keys(SentryGoogleCloud),
89-
ignoreExports: ['cron', 'hapiErrorPlugin'],
89+
ignoreExports: ['cron'],
9090
},
9191
{
9292
package: '@sentry/sveltekit',

packages/google-cloud/src/index.ts

Lines changed: 40 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,52 @@
11
export {
2-
Hub,
3-
SDK_VERSION,
4-
Scope,
5-
addBreadcrumb,
62
addEventProcessor,
7-
addIntegration,
8-
autoDiscoverNodePerformanceMonitoringIntegrations,
9-
captureEvent,
3+
addBreadcrumb,
104
captureException,
5+
captureEvent,
116
captureMessage,
127
captureCheckIn,
138
withMonitor,
149
createTransport,
10+
// eslint-disable-next-line deprecation/deprecation
11+
getCurrentHub,
1512
getClient,
1613
isInitialized,
1714
getCurrentScope,
1815
getGlobalScope,
1916
getIsolationScope,
20-
getSpanStatusFromHttpCode,
21-
setHttpStatus,
17+
Hub,
2218
setCurrentClient,
19+
Scope,
20+
SDK_VERSION,
2321
setContext,
2422
setExtra,
2523
setExtras,
2624
setTag,
2725
setTags,
2826
setUser,
27+
getSpanStatusFromHttpCode,
28+
setHttpStatus,
2929
withScope,
3030
withIsolationScope,
31-
NodeClient,
3231
makeNodeTransport,
33-
close,
3432
defaultStackParser,
3533
flush,
34+
close,
3635
getSentryRelease,
37-
DEFAULT_USER_INCLUDES,
3836
addRequestDataToEvent,
37+
DEFAULT_USER_INCLUDES,
3938
extractRequestData,
40-
Handlers,
39+
consoleIntegration,
40+
onUncaughtExceptionIntegration,
41+
onUnhandledRejectionIntegration,
42+
modulesIntegration,
43+
contextLinesIntegration,
44+
nodeContextIntegration,
45+
localVariablesIntegration,
46+
requestDataIntegration,
47+
functionToStringIntegration,
48+
inboundFiltersIntegration,
49+
linkedErrorsIntegration,
4150
setMeasurement,
4251
getActiveSpan,
4352
startSpan,
@@ -46,33 +55,29 @@ export {
4655
withActiveSpan,
4756
getSpanDescendants,
4857
continueTrace,
49-
parameterize,
50-
requestDataIntegration,
51-
linkedErrorsIntegration,
52-
inboundFiltersIntegration,
53-
functionToStringIntegration,
54-
createGetModuleFromFilename,
58+
cron,
5559
metrics,
56-
consoleIntegration,
57-
onUncaughtExceptionIntegration,
58-
onUnhandledRejectionIntegration,
59-
modulesIntegration,
60-
contextLinesIntegration,
61-
nodeContextIntegration,
62-
localVariablesIntegration,
63-
anrIntegration,
64-
hapiIntegration,
65-
httpIntegration,
66-
nativeNodeFetchintegration,
67-
spotlightIntegration,
60+
parameterize,
6861
SEMANTIC_ATTRIBUTE_SENTRY_OP,
6962
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
7063
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
7164
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
72-
startSession,
73-
captureSession,
74-
endSession,
75-
} from '@sentry/node-experimental';
65+
expressIntegration,
66+
expressErrorHandler,
67+
setupExpressErrorHandler,
68+
fastifyIntegration,
69+
graphqlIntegration,
70+
mongoIntegration,
71+
mongooseIntegration,
72+
mysqlIntegration,
73+
mysql2Integration,
74+
nestIntegration,
75+
postgresIntegration,
76+
prismaIntegration,
77+
hapiIntegration,
78+
setupHapiErrorHandler,
79+
spotlightIntegration,
80+
} from '@sentry/node';
7681

7782
export {
7883
captureConsoleIntegration,

0 commit comments

Comments
 (0)