@sentry/tanstackstart-react 10.28.0-alpha.0 → 10.29.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/cjs/client/index.js +2 -0
- package/build/cjs/client/index.js.map +1 -1
- package/build/cjs/client/sdk.js +23 -0
- package/build/cjs/client/sdk.js.map +1 -0
- package/build/cjs/index.client.js +2 -4
- package/build/cjs/index.client.js.map +1 -1
- package/build/cjs/index.server.js +5 -11
- package/build/cjs/index.server.js.map +1 -1
- package/build/cjs/server/index.js +6 -16
- package/build/cjs/server/index.js.map +1 -1
- package/build/cjs/server/sdk.js +21 -0
- package/build/cjs/server/sdk.js.map +1 -0
- package/build/esm/client/index.js +1 -0
- package/build/esm/client/index.js.map +1 -1
- package/build/esm/client/sdk.js +21 -0
- package/build/esm/client/sdk.js.map +1 -0
- package/build/esm/index.client.js +1 -1
- package/build/esm/index.server.js +2 -3
- package/build/esm/index.server.js.map +1 -1
- package/build/esm/package.json +1 -1
- package/build/esm/server/index.js +6 -15
- package/build/esm/server/index.js.map +1 -1
- package/build/esm/server/sdk.js +19 -0
- package/build/esm/server/sdk.js.map +1 -0
- package/build/types/client/index.d.ts +1 -0
- package/build/types/client/index.d.ts.map +1 -1
- package/build/types/client/sdk.d.ts +9 -0
- package/build/types/client/sdk.d.ts.map +1 -0
- package/build/types/common/index.d.ts +1 -14
- package/build/types/common/index.d.ts.map +1 -1
- package/build/types/config/index.d.ts +1 -9
- package/build/types/config/index.d.ts.map +1 -1
- package/build/types/index.client.d.ts.map +1 -1
- package/build/types/index.server.d.ts.map +1 -1
- package/build/types/index.types.d.ts +0 -3
- package/build/types/index.types.d.ts.map +1 -1
- package/build/types/server/index.d.ts +1 -8
- package/build/types/server/index.d.ts.map +1 -1
- package/build/types/server/sdk.d.ts +6 -0
- package/build/types/server/sdk.d.ts.map +1 -0
- package/build/types-ts3.8/client/index.d.ts +1 -0
- package/build/types-ts3.8/client/sdk.d.ts +9 -0
- package/build/types-ts3.8/common/index.d.ts +1 -14
- package/build/types-ts3.8/config/index.d.ts +1 -9
- package/build/types-ts3.8/index.types.d.ts +0 -3
- package/build/types-ts3.8/server/index.d.ts +1 -8
- package/build/types-ts3.8/server/sdk.d.ts +6 -0
- package/package.json +5 -5
- package/build/cjs/common/index.js +0 -30
- package/build/cjs/common/index.js.map +0 -1
- package/build/cjs/config/index.js +0 -18
- package/build/cjs/config/index.js.map +0 -1
- package/build/esm/common/index.js +0 -26
- package/build/esm/common/index.js.map +0 -1
- package/build/esm/config/index.js +0 -16
- package/build/esm/config/index.js.map +0 -1
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
|
|
3
3
|
const react = require('@sentry/react');
|
|
4
|
+
const sdk = require('./sdk.js');
|
|
4
5
|
|
|
5
6
|
|
|
6
7
|
|
|
8
|
+
exports.init = sdk.init;
|
|
7
9
|
Object.prototype.hasOwnProperty.call(react, '__proto__') &&
|
|
8
10
|
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
9
11
|
Object.defineProperty(exports, '__proto__', {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
|
|
3
|
+
const core = require('@sentry/core');
|
|
4
|
+
const react = require('@sentry/react');
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Initializes the TanStack Start React SDK
|
|
8
|
+
*
|
|
9
|
+
* @param options Configuration options for the SDK.
|
|
10
|
+
*/
|
|
11
|
+
function init(options) {
|
|
12
|
+
const sentryOptions = {
|
|
13
|
+
defaultIntegrations: [...react.getDefaultIntegrations(options)],
|
|
14
|
+
...options,
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
core.applySdkMetadata(sentryOptions, 'tanstackstart-react', ['tanstackstart-react', 'react']);
|
|
18
|
+
|
|
19
|
+
return react.init(sentryOptions);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
exports.init = init;
|
|
23
|
+
//# sourceMappingURL=sdk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sdk.js","sources":["../../../src/client/sdk.ts"],"sourcesContent":["import type { Client } from '@sentry/core';\nimport { applySdkMetadata } from '@sentry/core';\nimport type { BrowserOptions as ReactBrowserOptions } from '@sentry/react';\nimport { getDefaultIntegrations as getReactDefaultIntegrations, init as initReactSDK } from '@sentry/react';\n\n/**\n * Initializes the TanStack Start React SDK\n *\n * @param options Configuration options for the SDK.\n */\nexport function init(options: ReactBrowserOptions): Client | undefined {\n const sentryOptions: ReactBrowserOptions = {\n defaultIntegrations: [...getReactDefaultIntegrations(options)],\n ...options,\n };\n\n applySdkMetadata(sentryOptions, 'tanstackstart-react', ['tanstackstart-react', 'react']);\n\n return initReactSDK(sentryOptions);\n}\n"],"names":["getReactDefaultIntegrations","applySdkMetadata","initReactSDK"],"mappings":";;;;;AAKA;AACA;AACA;AACA;AACA;AACO,SAAS,IAAI,CAAC,OAAO,EAA2C;AACvE,EAAE,MAAM,aAAa,GAAwB;AAC7C,IAAI,mBAAmB,EAAE,CAAC,GAAGA,4BAA2B,CAAC,OAAO,CAAC,CAAC;AAClE,IAAI,GAAG,OAAO;AACd,GAAG;;AAEH,EAAEC,qBAAgB,CAAC,aAAa,EAAE,qBAAqB,EAAE,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;;AAE1F,EAAE,OAAOC,UAAY,CAAC,aAAa,CAAC;AACpC;;;;"}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
|
|
3
3
|
const react = require('@sentry/react');
|
|
4
|
-
const
|
|
4
|
+
const sdk = require('./client/sdk.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.
|
|
9
|
-
exports.wrapCreateRootRouteWithSentry = index.wrapCreateRootRouteWithSentry;
|
|
10
|
-
exports.wrapStreamHandlerWithSentry = index.wrapStreamHandlerWithSentry;
|
|
8
|
+
exports.init = sdk.init;
|
|
11
9
|
Object.prototype.hasOwnProperty.call(react, '__proto__') &&
|
|
12
10
|
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
13
11
|
Object.defineProperty(exports, '__proto__', {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.client.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.client.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
|
|
@@ -1,20 +1,14 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
|
|
3
|
-
const index = require('./
|
|
4
|
-
const
|
|
5
|
-
const index$2 = require('./common/index.js');
|
|
3
|
+
const index = require('./server/index.js');
|
|
4
|
+
const sdk = require('./server/sdk.js');
|
|
6
5
|
const node = require('@sentry/node');
|
|
7
6
|
|
|
8
7
|
|
|
9
8
|
|
|
10
|
-
exports.
|
|
11
|
-
exports.
|
|
12
|
-
exports.
|
|
13
|
-
exports.showReportDialog = index$1.showReportDialog;
|
|
14
|
-
exports.withErrorBoundary = index$1.withErrorBoundary;
|
|
15
|
-
exports.sentryGlobalServerMiddlewareHandler = index$2.sentryGlobalServerMiddlewareHandler;
|
|
16
|
-
exports.wrapCreateRootRouteWithSentry = index$2.wrapCreateRootRouteWithSentry;
|
|
17
|
-
exports.wrapStreamHandlerWithSentry = index$2.wrapStreamHandlerWithSentry;
|
|
9
|
+
exports.ErrorBoundary = index.ErrorBoundary;
|
|
10
|
+
exports.withErrorBoundary = index.withErrorBoundary;
|
|
11
|
+
exports.init = sdk.init;
|
|
18
12
|
Object.prototype.hasOwnProperty.call(node, '__proto__') &&
|
|
19
13
|
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
20
14
|
Object.defineProperty(exports, '__proto__', {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.server.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.server.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
|
|
3
3
|
const node = require('@sentry/node');
|
|
4
|
+
const sdk = require('./sdk.js');
|
|
5
|
+
|
|
6
|
+
// import/export got a false positive, and affects most of our index barrel files
|
|
7
|
+
// can be removed once following issue is fixed: https://github.com/import-js/eslint-plugin-import/issues/703
|
|
8
|
+
/* eslint-disable import/export */
|
|
4
9
|
|
|
5
10
|
/**
|
|
6
11
|
* A passthrough error boundary for the server that doesn't depend on any react. Error boundaries don't catch SSR errors
|
|
@@ -18,13 +23,6 @@ const ErrorBoundary = (props) => {
|
|
|
18
23
|
return props.children;
|
|
19
24
|
};
|
|
20
25
|
|
|
21
|
-
/**
|
|
22
|
-
* A passthrough redux enhancer for the server that doesn't depend on anything from the `@sentry/react` package.
|
|
23
|
-
*/
|
|
24
|
-
function createReduxEnhancer() {
|
|
25
|
-
return (createStore) => createStore;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
26
|
/**
|
|
29
27
|
* A passthrough error boundary wrapper for the server that doesn't depend on any react. Error boundaries don't catch
|
|
30
28
|
* SSR errors so they should simply be a passthrough.
|
|
@@ -36,16 +34,8 @@ function withErrorBoundary(
|
|
|
36
34
|
return WrappedComponent ;
|
|
37
35
|
}
|
|
38
36
|
|
|
39
|
-
|
|
40
|
-
* Just a passthrough since we're on the server and showing the report dialog on the server doesn't make any sense.
|
|
41
|
-
*/
|
|
42
|
-
function showReportDialog() {
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
|
|
37
|
+
exports.init = sdk.init;
|
|
46
38
|
exports.ErrorBoundary = ErrorBoundary;
|
|
47
|
-
exports.createReduxEnhancer = createReduxEnhancer;
|
|
48
|
-
exports.showReportDialog = showReportDialog;
|
|
49
39
|
exports.withErrorBoundary = withErrorBoundary;
|
|
50
40
|
Object.prototype.hasOwnProperty.call(node, '__proto__') &&
|
|
51
41
|
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/server/index.ts"],"sourcesContent":["export * from '@sentry/node';\n\n/**\n * A passthrough error boundary for the server that doesn't depend on any react. Error boundaries don't catch SSR errors\n * so they should simply be a passthrough.\n */\nexport const ErrorBoundary = (props: React.PropsWithChildren<unknown>): React.ReactNode => {\n if (!props.children) {\n return null;\n }\n\n if (typeof props.children === 'function') {\n return (props.children as () => React.ReactNode)();\n }\n\n return props.children;\n};\n\n/**\n * A passthrough
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/server/index.ts"],"sourcesContent":["// import/export got a false positive, and affects most of our index barrel files\n// can be removed once following issue is fixed: https://github.com/import-js/eslint-plugin-import/issues/703\n/* eslint-disable import/export */\nexport * from '@sentry/node';\n\nexport { init } from './sdk';\n\n/**\n * A passthrough error boundary for the server that doesn't depend on any react. Error boundaries don't catch SSR errors\n * so they should simply be a passthrough.\n */\nexport const ErrorBoundary = (props: React.PropsWithChildren<unknown>): React.ReactNode => {\n if (!props.children) {\n return null;\n }\n\n if (typeof props.children === 'function') {\n return (props.children as () => React.ReactNode)();\n }\n\n return props.children;\n};\n\n/**\n * A passthrough error boundary wrapper for the server that doesn't depend on any react. Error boundaries don't catch\n * SSR errors so they should simply be a passthrough.\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function withErrorBoundary<P extends Record<string, any>>(\n WrappedComponent: React.ComponentType<P>,\n): React.FC<P> {\n return WrappedComponent as React.FC<P>;\n}\n"],"names":[],"mappings":";;;;;AAAA;AACA;AACA;;AAKA;AACA;AACA;AACA;AACO,MAAM,aAAA,GAAgB,CAAC,KAAK,KAAwD;AAC3F,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE;AACvB,IAAI,OAAO,IAAI;AACf,EAAE;;AAEF,EAAE,IAAI,OAAO,KAAK,CAAC,QAAA,KAAa,UAAU,EAAE;AAC5C,IAAI,OAAO,CAAC,KAAK,CAAC,QAAA,IAAoC;AACtD,EAAE;;AAEF,EAAE,OAAO,KAAK,CAAC,QAAQ;AACvB;;AAEA;AACA;AACA;AACA;AACA;AACO,SAAS,iBAAiB;AACjC,EAAE,gBAAgB;AAClB,EAAe;AACf,EAAE,OAAO,gBAAA;AACT;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
|
|
3
|
+
const core = require('@sentry/core');
|
|
4
|
+
const node = require('@sentry/node');
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Initializes the server side of the TanStack Start React SDK
|
|
8
|
+
*/
|
|
9
|
+
function init(options) {
|
|
10
|
+
const sentryOptions = {
|
|
11
|
+
defaultIntegrations: [...node.getDefaultIntegrations(options)],
|
|
12
|
+
...options,
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
core.applySdkMetadata(sentryOptions, 'tanstackstart-react', ['tanstackstart-react', 'node']);
|
|
16
|
+
|
|
17
|
+
return node.init(sentryOptions);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
exports.init = init;
|
|
21
|
+
//# sourceMappingURL=sdk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sdk.js","sources":["../../../src/server/sdk.ts"],"sourcesContent":["import { applySdkMetadata } from '@sentry/core';\nimport type { NodeClient, NodeOptions } from '@sentry/node';\nimport { getDefaultIntegrations as getDefaultNodeIntegrations, init as initNodeSdk } from '@sentry/node';\n\n/**\n * Initializes the server side of the TanStack Start React SDK\n */\nexport function init(options: NodeOptions): NodeClient | undefined {\n const sentryOptions: NodeOptions = {\n defaultIntegrations: [...getDefaultNodeIntegrations(options)],\n ...options,\n };\n\n applySdkMetadata(sentryOptions, 'tanstackstart-react', ['tanstackstart-react', 'node']);\n\n return initNodeSdk(sentryOptions);\n}\n"],"names":["getDefaultNodeIntegrations","applySdkMetadata","initNodeSdk"],"mappings":";;;;;AAIA;AACA;AACA;AACO,SAAS,IAAI,CAAC,OAAO,EAAuC;AACnE,EAAE,MAAM,aAAa,GAAgB;AACrC,IAAI,mBAAmB,EAAE,CAAC,GAAGA,2BAA0B,CAAC,OAAO,CAAC,CAAC;AACjE,IAAI,GAAG,OAAO;AACd,GAAG;;AAEH,EAAEC,qBAAgB,CAAC,aAAa,EAAE,qBAAqB,EAAE,CAAC,qBAAqB,EAAE,MAAM,CAAC,CAAC;;AAEzF,EAAE,OAAOC,SAAW,CAAC,aAAa,CAAC;AACnC;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { applySdkMetadata } from '@sentry/core';
|
|
2
|
+
import { getDefaultIntegrations, init as init$1 } from '@sentry/react';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Initializes the TanStack Start React SDK
|
|
6
|
+
*
|
|
7
|
+
* @param options Configuration options for the SDK.
|
|
8
|
+
*/
|
|
9
|
+
function init(options) {
|
|
10
|
+
const sentryOptions = {
|
|
11
|
+
defaultIntegrations: [...getDefaultIntegrations(options)],
|
|
12
|
+
...options,
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
applySdkMetadata(sentryOptions, 'tanstackstart-react', ['tanstackstart-react', 'react']);
|
|
16
|
+
|
|
17
|
+
return init$1(sentryOptions);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export { init };
|
|
21
|
+
//# sourceMappingURL=sdk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sdk.js","sources":["../../../src/client/sdk.ts"],"sourcesContent":["import type { Client } from '@sentry/core';\nimport { applySdkMetadata } from '@sentry/core';\nimport type { BrowserOptions as ReactBrowserOptions } from '@sentry/react';\nimport { getDefaultIntegrations as getReactDefaultIntegrations, init as initReactSDK } from '@sentry/react';\n\n/**\n * Initializes the TanStack Start React SDK\n *\n * @param options Configuration options for the SDK.\n */\nexport function init(options: ReactBrowserOptions): Client | undefined {\n const sentryOptions: ReactBrowserOptions = {\n defaultIntegrations: [...getReactDefaultIntegrations(options)],\n ...options,\n };\n\n applySdkMetadata(sentryOptions, 'tanstackstart-react', ['tanstackstart-react', 'react']);\n\n return initReactSDK(sentryOptions);\n}\n"],"names":["getReactDefaultIntegrations","initReactSDK"],"mappings":";;;AAKA;AACA;AACA;AACA;AACA;AACO,SAAS,IAAI,CAAC,OAAO,EAA2C;AACvE,EAAE,MAAM,aAAa,GAAwB;AAC7C,IAAI,mBAAmB,EAAE,CAAC,GAAGA,sBAA2B,CAAC,OAAO,CAAC,CAAC;AAClE,IAAI,GAAG,OAAO;AACd,GAAG;;AAEH,EAAE,gBAAgB,CAAC,aAAa,EAAE,qBAAqB,EAAE,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;;AAE1F,EAAE,OAAOC,MAAY,CAAC,aAAa,CAAC;AACpC;;;;"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export { sentryGlobalServerMiddlewareHandler, wrapCreateRootRouteWithSentry, wrapStreamHandlerWithSentry } from './common/index.js';
|
|
1
|
+
export { ErrorBoundary, withErrorBoundary } from './server/index.js';
|
|
2
|
+
export { init } from './server/sdk.js';
|
|
4
3
|
export * from '@sentry/node';
|
|
5
4
|
//# sourceMappingURL=index.server.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.server.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.server.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
package/build/esm/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"type":"module","version":"10.
|
|
1
|
+
{"type":"module","version":"10.29.0","sideEffects":false}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
export * from '@sentry/node';
|
|
2
|
+
export { init } from './sdk.js';
|
|
3
|
+
|
|
4
|
+
// import/export got a false positive, and affects most of our index barrel files
|
|
5
|
+
// can be removed once following issue is fixed: https://github.com/import-js/eslint-plugin-import/issues/703
|
|
6
|
+
/* eslint-disable import/export */
|
|
2
7
|
|
|
3
8
|
/**
|
|
4
9
|
* A passthrough error boundary for the server that doesn't depend on any react. Error boundaries don't catch SSR errors
|
|
@@ -16,13 +21,6 @@ const ErrorBoundary = (props) => {
|
|
|
16
21
|
return props.children;
|
|
17
22
|
};
|
|
18
23
|
|
|
19
|
-
/**
|
|
20
|
-
* A passthrough redux enhancer for the server that doesn't depend on anything from the `@sentry/react` package.
|
|
21
|
-
*/
|
|
22
|
-
function createReduxEnhancer() {
|
|
23
|
-
return (createStore) => createStore;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
24
|
/**
|
|
27
25
|
* A passthrough error boundary wrapper for the server that doesn't depend on any react. Error boundaries don't catch
|
|
28
26
|
* SSR errors so they should simply be a passthrough.
|
|
@@ -34,12 +32,5 @@ function withErrorBoundary(
|
|
|
34
32
|
return WrappedComponent ;
|
|
35
33
|
}
|
|
36
34
|
|
|
37
|
-
|
|
38
|
-
* Just a passthrough since we're on the server and showing the report dialog on the server doesn't make any sense.
|
|
39
|
-
*/
|
|
40
|
-
function showReportDialog() {
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export { ErrorBoundary, createReduxEnhancer, showReportDialog, withErrorBoundary };
|
|
35
|
+
export { ErrorBoundary, withErrorBoundary };
|
|
45
36
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/server/index.ts"],"sourcesContent":["export * from '@sentry/node';\n\n/**\n * A passthrough error boundary for the server that doesn't depend on any react. Error boundaries don't catch SSR errors\n * so they should simply be a passthrough.\n */\nexport const ErrorBoundary = (props: React.PropsWithChildren<unknown>): React.ReactNode => {\n if (!props.children) {\n return null;\n }\n\n if (typeof props.children === 'function') {\n return (props.children as () => React.ReactNode)();\n }\n\n return props.children;\n};\n\n/**\n * A passthrough
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/server/index.ts"],"sourcesContent":["// import/export got a false positive, and affects most of our index barrel files\n// can be removed once following issue is fixed: https://github.com/import-js/eslint-plugin-import/issues/703\n/* eslint-disable import/export */\nexport * from '@sentry/node';\n\nexport { init } from './sdk';\n\n/**\n * A passthrough error boundary for the server that doesn't depend on any react. Error boundaries don't catch SSR errors\n * so they should simply be a passthrough.\n */\nexport const ErrorBoundary = (props: React.PropsWithChildren<unknown>): React.ReactNode => {\n if (!props.children) {\n return null;\n }\n\n if (typeof props.children === 'function') {\n return (props.children as () => React.ReactNode)();\n }\n\n return props.children;\n};\n\n/**\n * A passthrough error boundary wrapper for the server that doesn't depend on any react. Error boundaries don't catch\n * SSR errors so they should simply be a passthrough.\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function withErrorBoundary<P extends Record<string, any>>(\n WrappedComponent: React.ComponentType<P>,\n): React.FC<P> {\n return WrappedComponent as React.FC<P>;\n}\n"],"names":[],"mappings":";;;AAAA;AACA;AACA;;AAKA;AACA;AACA;AACA;AACO,MAAM,aAAA,GAAgB,CAAC,KAAK,KAAwD;AAC3F,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE;AACvB,IAAI,OAAO,IAAI;AACf,EAAE;;AAEF,EAAE,IAAI,OAAO,KAAK,CAAC,QAAA,KAAa,UAAU,EAAE;AAC5C,IAAI,OAAO,CAAC,KAAK,CAAC,QAAA,IAAoC;AACtD,EAAE;;AAEF,EAAE,OAAO,KAAK,CAAC,QAAQ;AACvB;;AAEA;AACA;AACA;AACA;AACA;AACO,SAAS,iBAAiB;AACjC,EAAE,gBAAgB;AAClB,EAAe;AACf,EAAE,OAAO,gBAAA;AACT;;;;"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { applySdkMetadata } from '@sentry/core';
|
|
2
|
+
import { getDefaultIntegrations, init as init$1 } from '@sentry/node';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Initializes the server side of the TanStack Start React SDK
|
|
6
|
+
*/
|
|
7
|
+
function init(options) {
|
|
8
|
+
const sentryOptions = {
|
|
9
|
+
defaultIntegrations: [...getDefaultIntegrations(options)],
|
|
10
|
+
...options,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
applySdkMetadata(sentryOptions, 'tanstackstart-react', ['tanstackstart-react', 'node']);
|
|
14
|
+
|
|
15
|
+
return init$1(sentryOptions);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export { init };
|
|
19
|
+
//# sourceMappingURL=sdk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sdk.js","sources":["../../../src/server/sdk.ts"],"sourcesContent":["import { applySdkMetadata } from '@sentry/core';\nimport type { NodeClient, NodeOptions } from '@sentry/node';\nimport { getDefaultIntegrations as getDefaultNodeIntegrations, init as initNodeSdk } from '@sentry/node';\n\n/**\n * Initializes the server side of the TanStack Start React SDK\n */\nexport function init(options: NodeOptions): NodeClient | undefined {\n const sentryOptions: NodeOptions = {\n defaultIntegrations: [...getDefaultNodeIntegrations(options)],\n ...options,\n };\n\n applySdkMetadata(sentryOptions, 'tanstackstart-react', ['tanstackstart-react', 'node']);\n\n return initNodeSdk(sentryOptions);\n}\n"],"names":["getDefaultNodeIntegrations","initNodeSdk"],"mappings":";;;AAIA;AACA;AACA;AACO,SAAS,IAAI,CAAC,OAAO,EAAuC;AACnE,EAAE,MAAM,aAAa,GAAgB;AACrC,IAAI,mBAAmB,EAAE,CAAC,GAAGA,sBAA0B,CAAC,OAAO,CAAC,CAAC;AACjE,IAAI,GAAG,OAAO;AACd,GAAG;;AAEH,EAAE,gBAAgB,CAAC,aAAa,EAAE,qBAAqB,EAAE,CAAC,qBAAqB,EAAE,MAAM,CAAC,CAAC;;AAEzF,EAAE,OAAOC,MAAW,CAAC,aAAa,CAAC;AACnC;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/index.ts"],"names":[],"mappings":"AAGA,cAAc,eAAe,CAAC;AAE9B,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Client } from '@sentry/core';
|
|
2
|
+
import type { BrowserOptions as ReactBrowserOptions } from '@sentry/react';
|
|
3
|
+
/**
|
|
4
|
+
* Initializes the TanStack Start React SDK
|
|
5
|
+
*
|
|
6
|
+
* @param options Configuration options for the SDK.
|
|
7
|
+
*/
|
|
8
|
+
export declare function init(options: ReactBrowserOptions): Client | undefined;
|
|
9
|
+
//# sourceMappingURL=sdk.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../../../src/client/sdk.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAE3C,OAAO,KAAK,EAAE,cAAc,IAAI,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAG3E;;;;GAIG;AACH,wBAAgB,IAAI,CAAC,OAAO,EAAE,mBAAmB,GAAG,MAAM,GAAG,SAAS,CASrE"}
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
* A middleware handler that can be passed to TanStack Start's `createMiddleware().server(...)` method as [global middleware](https://tanstack.com/start/latest/docs/framework/react/middleware#global-middleware) for instrumenting server functions.
|
|
3
|
-
*/
|
|
4
|
-
export declare function sentryGlobalServerMiddlewareHandler(): <T>(server: {
|
|
5
|
-
next: (...args: any[]) => T;
|
|
6
|
-
}) => T;
|
|
7
|
-
/**
|
|
8
|
-
* Wraps a TanStack Start stream handler with Sentry instrumentation that can be passed to `createStartHandler(...)`.
|
|
9
|
-
*/
|
|
10
|
-
export declare function wrapStreamHandlerWithSentry<H>(handler: H): H;
|
|
11
|
-
/**
|
|
12
|
-
* Wraps the create root route function with Sentry for server-client tracing with SSR.
|
|
13
|
-
*/
|
|
14
|
-
export declare function wrapCreateRootRouteWithSentry<F>(createRootRoute: F): F;
|
|
1
|
+
export {};
|
|
15
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC"}
|
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
* Wraps a TanStack Start config.
|
|
3
|
-
*/
|
|
4
|
-
export declare function wrapVinxiConfigWithSentry<C>(config: C, sentryBuildOptions?: {
|
|
5
|
-
org?: string;
|
|
6
|
-
project?: string;
|
|
7
|
-
silent?: boolean;
|
|
8
|
-
authToken?: string;
|
|
9
|
-
}): C;
|
|
1
|
+
export {};
|
|
10
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/config/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.client.d.ts","sourceRoot":"","sources":["../../src/index.client.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.client.d.ts","sourceRoot":"","sources":["../../src/index.client.ts"],"names":[],"mappings":"AAEA,cAAc,UAAU,CAAC;AAGzB,cAAc,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.server.d.ts","sourceRoot":"","sources":["../../src/index.server.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.server.d.ts","sourceRoot":"","sources":["../../src/index.server.ts"],"names":[],"mappings":"AAEA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC"}
|
|
@@ -11,10 +11,7 @@ export declare const linkedErrorsIntegration: typeof clientSdk.linkedErrorsInteg
|
|
|
11
11
|
export declare const contextLinesIntegration: typeof clientSdk.contextLinesIntegration;
|
|
12
12
|
export declare const getDefaultIntegrations: (options: Options) => Integration[];
|
|
13
13
|
export declare const defaultStackParser: StackParser;
|
|
14
|
-
export declare function getSentryRelease(fallback?: string): string | undefined;
|
|
15
14
|
export declare const ErrorBoundary: typeof clientSdk.ErrorBoundary;
|
|
16
|
-
export declare const createReduxEnhancer: typeof clientSdk.createReduxEnhancer;
|
|
17
|
-
export declare const showReportDialog: typeof clientSdk.showReportDialog;
|
|
18
15
|
export declare const withErrorBoundary: typeof clientSdk.withErrorBoundary;
|
|
19
16
|
export declare const logger: typeof clientSdk.logger | typeof serverSdk.logger;
|
|
20
17
|
export declare const growthbookIntegration: typeof clientSdk.growthbookIntegration;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.types.d.ts","sourceRoot":"","sources":["../../src/index.types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.types.d.ts","sourceRoot":"","sources":["../../src/index.types.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC9E,OAAO,KAAK,KAAK,SAAS,MAAM,UAAU,CAAC;AAC3C,OAAO,KAAK,KAAK,SAAS,MAAM,UAAU,CAAC;AAE3C,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AAEzB,4CAA4C;AAC5C,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,OAAO,EAAE,OAAO,GAAG,SAAS,CAAC,cAAc,GAAG,SAAS,CAAC,WAAW,GAAG,MAAM,GAAG,SAAS,CAAC;AAEtH,MAAM,CAAC,OAAO,CAAC,MAAM,uBAAuB,EAAE,OAAO,SAAS,CAAC,uBAAuB,CAAC;AACvF,MAAM,CAAC,OAAO,CAAC,MAAM,uBAAuB,EAAE,OAAO,SAAS,CAAC,uBAAuB,CAAC;AAEvF,MAAM,CAAC,OAAO,CAAC,MAAM,sBAAsB,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,WAAW,EAAE,CAAC;AACjF,MAAM,CAAC,OAAO,CAAC,MAAM,kBAAkB,EAAE,WAAW,CAAC;AAErD,MAAM,CAAC,OAAO,CAAC,MAAM,aAAa,EAAE,OAAO,SAAS,CAAC,aAAa,CAAC;AACnE,MAAM,CAAC,OAAO,CAAC,MAAM,iBAAiB,EAAE,OAAO,SAAS,CAAC,iBAAiB,CAAC;AAE3E,MAAM,CAAC,OAAO,CAAC,MAAM,MAAM,EAAE,OAAO,SAAS,CAAC,MAAM,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AAE/E,MAAM,CAAC,OAAO,CAAC,MAAM,qBAAqB,EAAE,OAAO,SAAS,CAAC,qBAAqB,CAAC;AACnF,MAAM,CAAC,OAAO,CAAC,MAAM,uBAAuB,EAAE,OAAO,SAAS,CAAC,uBAAuB,CAAC;AACvF,MAAM,CAAC,OAAO,CAAC,MAAM,gCAAgC,EAAE,OAAO,SAAS,CAAC,gCAAgC,CAAC;AACzG,MAAM,CAAC,OAAO,CAAC,MAAM,sBAAsB,EAAE,OAAO,SAAS,CAAC,sBAAsB,CAAC;AACrF,MAAM,CAAC,OAAO,CAAC,MAAM,0BAA0B,EAAE,OAAO,SAAS,CAAC,0BAA0B,CAAC;AAC7F,MAAM,CAAC,OAAO,CAAC,MAAM,kBAAkB,EAAE,OAAO,SAAS,CAAC,kBAAkB,CAAC;AAC7E,MAAM,CAAC,OAAO,CAAC,MAAM,kBAAkB,EAAE,OAAO,SAAS,CAAC,kBAAkB,CAAC"}
|
|
@@ -1,20 +1,13 @@
|
|
|
1
1
|
export * from '@sentry/node';
|
|
2
|
+
export { init } from './sdk';
|
|
2
3
|
/**
|
|
3
4
|
* A passthrough error boundary for the server that doesn't depend on any react. Error boundaries don't catch SSR errors
|
|
4
5
|
* so they should simply be a passthrough.
|
|
5
6
|
*/
|
|
6
7
|
export declare const ErrorBoundary: (props: React.PropsWithChildren<unknown>) => React.ReactNode;
|
|
7
|
-
/**
|
|
8
|
-
* A passthrough redux enhancer for the server that doesn't depend on anything from the `@sentry/react` package.
|
|
9
|
-
*/
|
|
10
|
-
export declare function createReduxEnhancer(): (createStore: unknown) => unknown;
|
|
11
8
|
/**
|
|
12
9
|
* A passthrough error boundary wrapper for the server that doesn't depend on any react. Error boundaries don't catch
|
|
13
10
|
* SSR errors so they should simply be a passthrough.
|
|
14
11
|
*/
|
|
15
12
|
export declare function withErrorBoundary<P extends Record<string, any>>(WrappedComponent: React.ComponentType<P>): React.FC<P>;
|
|
16
|
-
/**
|
|
17
|
-
* Just a passthrough since we're on the server and showing the report dialog on the server doesn't make any sense.
|
|
18
|
-
*/
|
|
19
|
-
export declare function showReportDialog(): void;
|
|
20
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/server/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/server/index.ts"],"names":[],"mappings":"AAGA,cAAc,cAAc,CAAC;AAE7B,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAE7B;;;GAGG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,KAAK,CAAC,iBAAiB,CAAC,OAAO,CAAC,KAAG,KAAK,CAAC,SAU7E,CAAC;AAEF;;;GAGG;AAEH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC7D,gBAAgB,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,GACvC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAEb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../../../src/server/sdk.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG5D;;GAEG;AACH,wBAAgB,IAAI,CAAC,OAAO,EAAE,WAAW,GAAG,UAAU,GAAG,SAAS,CASjE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Client } from '@sentry/core';
|
|
2
|
+
import { BrowserOptions as ReactBrowserOptions } from '@sentry/react';
|
|
3
|
+
/**
|
|
4
|
+
* Initializes the TanStack Start React SDK
|
|
5
|
+
*
|
|
6
|
+
* @param options Configuration options for the SDK.
|
|
7
|
+
*/
|
|
8
|
+
export declare function init(options: ReactBrowserOptions): Client | undefined;
|
|
9
|
+
//# sourceMappingURL=sdk.d.ts.map
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
* A middleware handler that can be passed to TanStack Start's `createMiddleware().server(...)` method as [global middleware](https://tanstack.com/start/latest/docs/framework/react/middleware#global-middleware) for instrumenting server functions.
|
|
3
|
-
*/
|
|
4
|
-
export declare function sentryGlobalServerMiddlewareHandler(): <T>(server: {
|
|
5
|
-
next: (...args: any[]) => T;
|
|
6
|
-
}) => T;
|
|
7
|
-
/**
|
|
8
|
-
* Wraps a TanStack Start stream handler with Sentry instrumentation that can be passed to `createStartHandler(...)`.
|
|
9
|
-
*/
|
|
10
|
-
export declare function wrapStreamHandlerWithSentry<H>(handler: H): H;
|
|
11
|
-
/**
|
|
12
|
-
* Wraps the create root route function with Sentry for server-client tracing with SSR.
|
|
13
|
-
*/
|
|
14
|
-
export declare function wrapCreateRootRouteWithSentry<F>(createRootRoute: F): F;
|
|
1
|
+
export {};
|
|
15
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
* Wraps a TanStack Start config.
|
|
3
|
-
*/
|
|
4
|
-
export declare function wrapVinxiConfigWithSentry<C>(config: C, sentryBuildOptions?: {
|
|
5
|
-
org?: string;
|
|
6
|
-
project?: string;
|
|
7
|
-
silent?: boolean;
|
|
8
|
-
authToken?: string;
|
|
9
|
-
}): C;
|
|
1
|
+
export {};
|
|
10
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -11,10 +11,7 @@ export declare const linkedErrorsIntegration: typeof clientSdk.linkedErrorsInteg
|
|
|
11
11
|
export declare const contextLinesIntegration: typeof clientSdk.contextLinesIntegration;
|
|
12
12
|
export declare const getDefaultIntegrations: (options: Options) => Integration[];
|
|
13
13
|
export declare const defaultStackParser: StackParser;
|
|
14
|
-
export declare function getSentryRelease(fallback?: string): string | undefined;
|
|
15
14
|
export declare const ErrorBoundary: typeof clientSdk.ErrorBoundary;
|
|
16
|
-
export declare const createReduxEnhancer: typeof clientSdk.createReduxEnhancer;
|
|
17
|
-
export declare const showReportDialog: typeof clientSdk.showReportDialog;
|
|
18
15
|
export declare const withErrorBoundary: typeof clientSdk.withErrorBoundary;
|
|
19
16
|
export declare const logger: typeof clientSdk.logger | typeof serverSdk.logger;
|
|
20
17
|
export declare const growthbookIntegration: typeof clientSdk.growthbookIntegration;
|
|
@@ -1,20 +1,13 @@
|
|
|
1
1
|
export * from '@sentry/node';
|
|
2
|
+
export { init } from './sdk';
|
|
2
3
|
/**
|
|
3
4
|
* A passthrough error boundary for the server that doesn't depend on any react. Error boundaries don't catch SSR errors
|
|
4
5
|
* so they should simply be a passthrough.
|
|
5
6
|
*/
|
|
6
7
|
export declare const ErrorBoundary: (props: React.PropsWithChildren<unknown>) => React.ReactNode;
|
|
7
|
-
/**
|
|
8
|
-
* A passthrough redux enhancer for the server that doesn't depend on anything from the `@sentry/react` package.
|
|
9
|
-
*/
|
|
10
|
-
export declare function createReduxEnhancer(): (createStore: unknown) => unknown;
|
|
11
8
|
/**
|
|
12
9
|
* A passthrough error boundary wrapper for the server that doesn't depend on any react. Error boundaries don't catch
|
|
13
10
|
* SSR errors so they should simply be a passthrough.
|
|
14
11
|
*/
|
|
15
12
|
export declare function withErrorBoundary<P extends Record<string, any>>(WrappedComponent: React.ComponentType<P>): React.FC<P>;
|
|
16
|
-
/**
|
|
17
|
-
* Just a passthrough since we're on the server and showing the report dialog on the server doesn't make any sense.
|
|
18
|
-
*/
|
|
19
|
-
export declare function showReportDialog(): void;
|
|
20
13
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/tanstackstart-react",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.29.0",
|
|
4
4
|
"description": "Official Sentry SDK for TanStack Start React",
|
|
5
5
|
"repository": "git://github.com/getsentry/sentry-javascript.git",
|
|
6
6
|
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/tanstackstart-react",
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@opentelemetry/api": "^1.9.0",
|
|
54
54
|
"@opentelemetry/semantic-conventions": "^1.37.0",
|
|
55
|
-
"@sentry-internal/browser-utils": "10.
|
|
56
|
-
"@sentry/core": "10.
|
|
57
|
-
"@sentry/node": "10.
|
|
58
|
-
"@sentry/react": "10.
|
|
55
|
+
"@sentry-internal/browser-utils": "10.29.0",
|
|
56
|
+
"@sentry/core": "10.29.0",
|
|
57
|
+
"@sentry/node": "10.29.0",
|
|
58
|
+
"@sentry/react": "10.29.0"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"build": "run-p build:transpile build:types",
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* A middleware handler that can be passed to TanStack Start's `createMiddleware().server(...)` method as [global middleware](https://tanstack.com/start/latest/docs/framework/react/middleware#global-middleware) for instrumenting server functions.
|
|
5
|
-
*/
|
|
6
|
-
function sentryGlobalServerMiddlewareHandler() {
|
|
7
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
8
|
-
return function (server) {
|
|
9
|
-
return server.next();
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Wraps a TanStack Start stream handler with Sentry instrumentation that can be passed to `createStartHandler(...)`.
|
|
15
|
-
*/
|
|
16
|
-
function wrapStreamHandlerWithSentry(handler) {
|
|
17
|
-
return handler;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Wraps the create root route function with Sentry for server-client tracing with SSR.
|
|
22
|
-
*/
|
|
23
|
-
function wrapCreateRootRouteWithSentry(createRootRoute) {
|
|
24
|
-
return createRootRoute;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
exports.sentryGlobalServerMiddlewareHandler = sentryGlobalServerMiddlewareHandler;
|
|
28
|
-
exports.wrapCreateRootRouteWithSentry = wrapCreateRootRouteWithSentry;
|
|
29
|
-
exports.wrapStreamHandlerWithSentry = wrapStreamHandlerWithSentry;
|
|
30
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/common/index.ts"],"sourcesContent":["/**\n * A middleware handler that can be passed to TanStack Start's `createMiddleware().server(...)` method as [global middleware](https://tanstack.com/start/latest/docs/framework/react/middleware#global-middleware) for instrumenting server functions.\n */\nexport function sentryGlobalServerMiddlewareHandler() {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return function <T>(server: { next: (...args: any[]) => T }): T {\n return server.next();\n };\n}\n\n/**\n * Wraps a TanStack Start stream handler with Sentry instrumentation that can be passed to `createStartHandler(...)`.\n */\nexport function wrapStreamHandlerWithSentry<H>(handler: H): H {\n return handler;\n}\n\n/**\n * Wraps the create root route function with Sentry for server-client tracing with SSR.\n */\nexport function wrapCreateRootRouteWithSentry<F>(createRootRoute: F): F {\n return createRootRoute;\n}\n"],"names":[],"mappings":";;AAAA;AACA;AACA;AACO,SAAS,mCAAmC,GAAG;AACtD;AACA,EAAE,OAAO,UAAa,MAAM,EAAsC;AAClE,IAAI,OAAO,MAAM,CAAC,IAAI,EAAE;AACxB,EAAE,CAAC;AACH;;AAEA;AACA;AACA;AACO,SAAS,2BAA2B,CAAI,OAAO,EAAQ;AAC9D,EAAE,OAAO,OAAO;AAChB;;AAEA;AACA;AACA;AACO,SAAS,6BAA6B,CAAI,eAAe,EAAQ;AACxE,EAAE,OAAO,eAAe;AACxB;;;;;;"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Wraps a TanStack Start config.
|
|
5
|
-
*/
|
|
6
|
-
function wrapVinxiConfigWithSentry(
|
|
7
|
-
config,
|
|
8
|
-
// TODO: Expand this type in the future. Right now it is just so that TS doesn't complain for our users when they copy paste from the docs.
|
|
9
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10
|
-
sentryBuildOptions
|
|
11
|
-
|
|
12
|
-
= {},
|
|
13
|
-
) {
|
|
14
|
-
return config;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
exports.wrapVinxiConfigWithSentry = wrapVinxiConfigWithSentry;
|
|
18
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/config/index.ts"],"sourcesContent":["/**\n * Wraps a TanStack Start config.\n */\nexport function wrapVinxiConfigWithSentry<C>(\n config: C,\n // TODO: Expand this type in the future. Right now it is just so that TS doesn't complain for our users when they copy paste from the docs.\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n sentryBuildOptions: {\n org?: string;\n project?: string;\n silent?: boolean;\n authToken?: string;\n } = {},\n): C {\n return config;\n}\n"],"names":[],"mappings":";;AAAA;AACA;AACA;AACO,SAAS,yBAAyB;AACzC,EAAE,MAAM;AACR;AACA;AACA,EAAE;;AAKA,GAAI,EAAE;AACR,EAAK;AACL,EAAE,OAAO,MAAM;AACf;;;;"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A middleware handler that can be passed to TanStack Start's `createMiddleware().server(...)` method as [global middleware](https://tanstack.com/start/latest/docs/framework/react/middleware#global-middleware) for instrumenting server functions.
|
|
3
|
-
*/
|
|
4
|
-
function sentryGlobalServerMiddlewareHandler() {
|
|
5
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6
|
-
return function (server) {
|
|
7
|
-
return server.next();
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Wraps a TanStack Start stream handler with Sentry instrumentation that can be passed to `createStartHandler(...)`.
|
|
13
|
-
*/
|
|
14
|
-
function wrapStreamHandlerWithSentry(handler) {
|
|
15
|
-
return handler;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Wraps the create root route function with Sentry for server-client tracing with SSR.
|
|
20
|
-
*/
|
|
21
|
-
function wrapCreateRootRouteWithSentry(createRootRoute) {
|
|
22
|
-
return createRootRoute;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export { sentryGlobalServerMiddlewareHandler, wrapCreateRootRouteWithSentry, wrapStreamHandlerWithSentry };
|
|
26
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/common/index.ts"],"sourcesContent":["/**\n * A middleware handler that can be passed to TanStack Start's `createMiddleware().server(...)` method as [global middleware](https://tanstack.com/start/latest/docs/framework/react/middleware#global-middleware) for instrumenting server functions.\n */\nexport function sentryGlobalServerMiddlewareHandler() {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return function <T>(server: { next: (...args: any[]) => T }): T {\n return server.next();\n };\n}\n\n/**\n * Wraps a TanStack Start stream handler with Sentry instrumentation that can be passed to `createStartHandler(...)`.\n */\nexport function wrapStreamHandlerWithSentry<H>(handler: H): H {\n return handler;\n}\n\n/**\n * Wraps the create root route function with Sentry for server-client tracing with SSR.\n */\nexport function wrapCreateRootRouteWithSentry<F>(createRootRoute: F): F {\n return createRootRoute;\n}\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACO,SAAS,mCAAmC,GAAG;AACtD;AACA,EAAE,OAAO,UAAa,MAAM,EAAsC;AAClE,IAAI,OAAO,MAAM,CAAC,IAAI,EAAE;AACxB,EAAE,CAAC;AACH;;AAEA;AACA;AACA;AACO,SAAS,2BAA2B,CAAI,OAAO,EAAQ;AAC9D,EAAE,OAAO,OAAO;AAChB;;AAEA;AACA;AACA;AACO,SAAS,6BAA6B,CAAI,eAAe,EAAQ;AACxE,EAAE,OAAO,eAAe;AACxB;;;;"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Wraps a TanStack Start config.
|
|
3
|
-
*/
|
|
4
|
-
function wrapVinxiConfigWithSentry(
|
|
5
|
-
config,
|
|
6
|
-
// TODO: Expand this type in the future. Right now it is just so that TS doesn't complain for our users when they copy paste from the docs.
|
|
7
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
8
|
-
sentryBuildOptions
|
|
9
|
-
|
|
10
|
-
= {},
|
|
11
|
-
) {
|
|
12
|
-
return config;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export { wrapVinxiConfigWithSentry };
|
|
16
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/config/index.ts"],"sourcesContent":["/**\n * Wraps a TanStack Start config.\n */\nexport function wrapVinxiConfigWithSentry<C>(\n config: C,\n // TODO: Expand this type in the future. Right now it is just so that TS doesn't complain for our users when they copy paste from the docs.\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n sentryBuildOptions: {\n org?: string;\n project?: string;\n silent?: boolean;\n authToken?: string;\n } = {},\n): C {\n return config;\n}\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACO,SAAS,yBAAyB;AACzC,EAAE,MAAM;AACR;AACA;AACA,EAAE;;AAKA,GAAI,EAAE;AACR,EAAK;AACL,EAAE,OAAO,MAAM;AACf;;;;"}
|