@sentry/tanstackstart 9.6.0-alpha.0 → 9.6.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/README.md +4 -34
- package/build/cjs/client/index.js +0 -15
- package/build/cjs/client/index.js.map +1 -1
- package/build/cjs/config/index.js +0 -9
- package/build/cjs/config/index.js.map +1 -1
- package/build/cjs/index.client.js +0 -18
- package/build/cjs/index.client.js.map +1 -1
- package/build/cjs/index.server.js +0 -25
- package/build/cjs/index.server.js.map +1 -1
- package/build/cjs/server/index.js +0 -58
- package/build/cjs/server/index.js.map +1 -1
- package/build/esm/client/index.js +1 -1
- package/build/esm/config/index.js +0 -7
- package/build/esm/config/index.js.map +1 -1
- package/build/esm/index.client.js +1 -2
- package/build/esm/index.client.js.map +1 -1
- package/build/esm/index.server.js +1 -4
- package/build/esm/index.server.js.map +1 -1
- package/build/esm/package.json +1 -1
- package/build/esm/server/index.js +0 -43
- package/build/esm/server/index.js.map +1 -1
- package/build/types/client/index.d.ts +1 -1
- package/build/types/client/index.d.ts.map +1 -1
- package/build/types/common/index.d.ts +1 -10
- package/build/types/common/index.d.ts.map +1 -1
- package/build/types/config/index.d.ts +1 -4
- package/build/types/config/index.d.ts.map +1 -1
- package/build/types/index.types.d.ts +0 -14
- package/build/types/index.types.d.ts.map +1 -1
- package/build/types/server/index.d.ts +1 -20
- package/build/types/server/index.d.ts.map +1 -1
- package/build/types-ts3.8/client/index.d.ts +1 -1
- package/build/types-ts3.8/common/index.d.ts +1 -10
- package/build/types-ts3.8/config/index.d.ts +1 -4
- package/build/types-ts3.8/index.types.d.ts +0 -14
- package/build/types-ts3.8/server/index.d.ts +1 -20
- package/package.json +2 -21
- package/build/cjs/common/index.js +0 -22
- package/build/cjs/common/index.js.map +0 -1
- package/build/esm/common/index.js +0 -19
- package/build/esm/common/index.js.map +0 -1
- package/build/import-hook.mjs +0 -1
- package/build/loader-hook.mjs +0 -1
package/README.md
CHANGED
|
@@ -4,49 +4,19 @@
|
|
|
4
4
|
</a>
|
|
5
5
|
</p>
|
|
6
6
|
|
|
7
|
-
#
|
|
7
|
+
# Utilities for the Sentry TanStack Start SDKs
|
|
8
8
|
|
|
9
9
|
[](https://www.npmjs.com/package/@sentry/tanstackstart)
|
|
10
10
|
[](https://www.npmjs.com/package/@sentry/tanstackstart)
|
|
11
11
|
[](https://www.npmjs.com/package/@sentry/tanstackstart)
|
|
12
12
|
|
|
13
|
-
> NOTICE: This package is
|
|
13
|
+
> NOTICE: This package is a package that contains SDK internals and does not follow semantic versioning. Use with caution.
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
This SDK does not have docs yet. Stay tuned.
|
|
18
|
-
|
|
19
|
-
## Compatibility
|
|
20
|
-
|
|
21
|
-
The minimum supported version of TanStack Start is `1.111.12`.
|
|
22
|
-
|
|
23
|
-
## Custom Usage
|
|
24
|
-
|
|
25
|
-
To set context information or to send manual events, you can use `@sentry/tanstackstart` as follows:
|
|
26
|
-
|
|
27
|
-
```ts
|
|
28
|
-
import * as Sentry from '@sentry/tanstackstart';
|
|
29
|
-
|
|
30
|
-
// Set user information, as well as tags and further extras
|
|
31
|
-
Sentry.setTag('user_mode', 'admin');
|
|
32
|
-
Sentry.setUser({ id: '4711' });
|
|
33
|
-
Sentry.setContext('application_area', { location: 'checkout' });
|
|
34
|
-
|
|
35
|
-
// Add a breadcrumb for future events
|
|
36
|
-
Sentry.addBreadcrumb({
|
|
37
|
-
message: '"Add to cart" clicked',
|
|
38
|
-
// ...
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
// Capture exceptions or messages
|
|
42
|
-
Sentry.captureException(new Error('Oh no.'));
|
|
43
|
-
Sentry.captureMessage('Hello, world!');
|
|
44
|
-
```
|
|
15
|
+
This package contains shared utilities for Sentry TanStack Start SDKs.
|
|
16
|
+
If you are looking for the actual TanStack Start React SDK package, see: https://www.npmjs.com/package/@sentry/tanstackstart-react
|
|
45
17
|
|
|
46
18
|
## Links
|
|
47
19
|
|
|
48
|
-
<!-- - [Official SDK Docs](https://docs.sentry.io/platforms/javascript/guides/tanstackstart/) -->
|
|
49
|
-
|
|
50
20
|
- [Sentry.io](https://sentry.io/?utm_source=github&utm_medium=npm_tanstackstart)
|
|
51
21
|
- [Sentry Discord Server](https://discord.gg/Ww9hbqr)
|
|
52
22
|
- [Stack Overflow](https://stackoverflow.com/questions/tagged/sentry)
|
|
@@ -1,17 +1,2 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
1
|
|
|
3
|
-
const react = require('@sentry/react');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Object.prototype.hasOwnProperty.call(react, '__proto__') &&
|
|
8
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
9
|
-
Object.defineProperty(exports, '__proto__', {
|
|
10
|
-
enumerable: true,
|
|
11
|
-
value: react['__proto__']
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
Object.keys(react).forEach(k => {
|
|
15
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = react[k];
|
|
16
|
-
});
|
|
17
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
1
|
|
|
3
|
-
/**
|
|
4
|
-
* Wraps a TanStack Start config.
|
|
5
|
-
*/
|
|
6
|
-
function wrapVinxiConfigWithSentry(config) {
|
|
7
|
-
return config;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
exports.wrapVinxiConfigWithSentry = wrapVinxiConfigWithSentry;
|
|
11
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,20 +1,2 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
1
|
|
|
3
|
-
const react = require('@sentry/react');
|
|
4
|
-
const index = require('./common/index.js');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
exports.sentryGlobalServerMiddlewareHandler = index.sentryGlobalServerMiddlewareHandler;
|
|
9
|
-
exports.wrapStreamHandlerWithSentry = index.wrapStreamHandlerWithSentry;
|
|
10
|
-
Object.prototype.hasOwnProperty.call(react, '__proto__') &&
|
|
11
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
12
|
-
Object.defineProperty(exports, '__proto__', {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
value: react['__proto__']
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
Object.keys(react).forEach(k => {
|
|
18
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = react[k];
|
|
19
|
-
});
|
|
20
2
|
//# sourceMappingURL=index.client.js.map
|
|
@@ -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,27 +1,2 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
1
|
|
|
3
|
-
const index = require('./config/index.js');
|
|
4
|
-
const index$1 = require('./server/index.js');
|
|
5
|
-
const index$2 = require('./common/index.js');
|
|
6
|
-
const node = require('@sentry/node');
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
exports.wrapVinxiConfigWithSentry = index.wrapVinxiConfigWithSentry;
|
|
11
|
-
exports.ErrorBoundary = index$1.ErrorBoundary;
|
|
12
|
-
exports.createReduxEnhancer = index$1.createReduxEnhancer;
|
|
13
|
-
exports.showReportDialog = index$1.showReportDialog;
|
|
14
|
-
exports.withErrorBoundary = index$1.withErrorBoundary;
|
|
15
|
-
exports.sentryGlobalServerMiddlewareHandler = index$2.sentryGlobalServerMiddlewareHandler;
|
|
16
|
-
exports.wrapStreamHandlerWithSentry = index$2.wrapStreamHandlerWithSentry;
|
|
17
|
-
Object.prototype.hasOwnProperty.call(node, '__proto__') &&
|
|
18
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
19
|
-
Object.defineProperty(exports, '__proto__', {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
value: node['__proto__']
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
Object.keys(node).forEach(k => {
|
|
25
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = node[k];
|
|
26
|
-
});
|
|
27
2
|
//# 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":""}
|
|
@@ -1,60 +1,2 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
1
|
|
|
3
|
-
const node = require('@sentry/node');
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* A passthrough error boundary for the server that doesn't depend on any react. Error boundaries don't catch SSR errors
|
|
7
|
-
* so they should simply be a passthrough.
|
|
8
|
-
*/
|
|
9
|
-
const ErrorBoundary = (props) => {
|
|
10
|
-
if (!props.children) {
|
|
11
|
-
return null;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
if (typeof props.children === 'function') {
|
|
15
|
-
return (props.children )();
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
return props.children;
|
|
19
|
-
};
|
|
20
|
-
|
|
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
|
-
/**
|
|
29
|
-
* A passthrough error boundary wrapper for the server that doesn't depend on any react. Error boundaries don't catch
|
|
30
|
-
* SSR errors so they should simply be a passthrough.
|
|
31
|
-
*/
|
|
32
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
33
|
-
function withErrorBoundary(
|
|
34
|
-
WrappedComponent,
|
|
35
|
-
) {
|
|
36
|
-
return WrappedComponent ;
|
|
37
|
-
}
|
|
38
|
-
|
|
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
|
-
|
|
46
|
-
exports.ErrorBoundary = ErrorBoundary;
|
|
47
|
-
exports.createReduxEnhancer = createReduxEnhancer;
|
|
48
|
-
exports.showReportDialog = showReportDialog;
|
|
49
|
-
exports.withErrorBoundary = withErrorBoundary;
|
|
50
|
-
Object.prototype.hasOwnProperty.call(node, '__proto__') &&
|
|
51
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
52
|
-
Object.defineProperty(exports, '__proto__', {
|
|
53
|
-
enumerable: true,
|
|
54
|
-
value: node['__proto__']
|
|
55
|
-
});
|
|
56
|
-
|
|
57
|
-
Object.keys(node).forEach(k => {
|
|
58
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = node[k];
|
|
59
|
-
});
|
|
60
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -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,5 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export { ErrorBoundary, createReduxEnhancer, showReportDialog, withErrorBoundary } from './server/index.js';
|
|
3
|
-
export { sentryGlobalServerMiddlewareHandler, wrapStreamHandlerWithSentry } from './common/index.js';
|
|
4
|
-
export * from '@sentry/node';
|
|
1
|
+
|
|
5
2
|
//# 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":"9.6.0
|
|
1
|
+
{"type":"module","version":"9.6.0","sideEffects":false}
|
|
@@ -1,45 +1,2 @@
|
|
|
1
|
-
export * from '@sentry/node';
|
|
2
1
|
|
|
3
|
-
/**
|
|
4
|
-
* A passthrough error boundary for the server that doesn't depend on any react. Error boundaries don't catch SSR errors
|
|
5
|
-
* so they should simply be a passthrough.
|
|
6
|
-
*/
|
|
7
|
-
const ErrorBoundary = (props) => {
|
|
8
|
-
if (!props.children) {
|
|
9
|
-
return null;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
if (typeof props.children === 'function') {
|
|
13
|
-
return (props.children )();
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
return props.children;
|
|
17
|
-
};
|
|
18
|
-
|
|
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
|
-
/**
|
|
27
|
-
* A passthrough error boundary wrapper for the server that doesn't depend on any react. Error boundaries don't catch
|
|
28
|
-
* SSR errors so they should simply be a passthrough.
|
|
29
|
-
*/
|
|
30
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
31
|
-
function withErrorBoundary(
|
|
32
|
-
WrappedComponent,
|
|
33
|
-
) {
|
|
34
|
-
return WrappedComponent ;
|
|
35
|
-
}
|
|
36
|
-
|
|
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 };
|
|
45
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC"}
|
|
@@ -1,11 +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;
|
|
1
|
+
export {};
|
|
11
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 +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"}
|
|
@@ -2,18 +2,4 @@ export * from './config';
|
|
|
2
2
|
export * from './client';
|
|
3
3
|
export * from './server';
|
|
4
4
|
export * from './common';
|
|
5
|
-
import type { Client, Integration, Options, StackParser } from '@sentry/core';
|
|
6
|
-
import type * as clientSdk from './client';
|
|
7
|
-
import type * as serverSdk from './server';
|
|
8
|
-
/** Initializes Sentry TanStack Start SDK */
|
|
9
|
-
export declare function init(options: Options | clientSdk.BrowserOptions | serverSdk.NodeOptions): Client | undefined;
|
|
10
|
-
export declare const linkedErrorsIntegration: typeof clientSdk.linkedErrorsIntegration;
|
|
11
|
-
export declare const contextLinesIntegration: typeof clientSdk.contextLinesIntegration;
|
|
12
|
-
export declare const getDefaultIntegrations: (options: Options) => Integration[];
|
|
13
|
-
export declare const defaultStackParser: StackParser;
|
|
14
|
-
export declare function getSentryRelease(fallback?: string): string | undefined;
|
|
15
|
-
export declare const ErrorBoundary: typeof clientSdk.ErrorBoundary;
|
|
16
|
-
export declare const createReduxEnhancer: typeof clientSdk.createReduxEnhancer;
|
|
17
|
-
export declare const showReportDialog: typeof clientSdk.showReportDialog;
|
|
18
|
-
export declare const withErrorBoundary: typeof clientSdk.withErrorBoundary;
|
|
19
5
|
//# sourceMappingURL=index.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.types.d.ts","sourceRoot":"","sources":["../../src/index.types.ts"],"names":[],"mappings":"AAEA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC
|
|
1
|
+
{"version":3,"file":"index.types.d.ts","sourceRoot":"","sources":["../../src/index.types.ts"],"names":[],"mappings":"AAEA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC"}
|
|
@@ -1,21 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export * from '@sentry/node';
|
|
3
|
-
/**
|
|
4
|
-
* A passthrough error boundary for the server that doesn't depend on any react. Error boundaries don't catch SSR errors
|
|
5
|
-
* so they should simply be a passthrough.
|
|
6
|
-
*/
|
|
7
|
-
export declare const ErrorBoundary: (props: React.PropsWithChildren<unknown>) => React.ReactNode;
|
|
8
|
-
/**
|
|
9
|
-
* A passthrough redux enhancer for the server that doesn't depend on anything from the `@sentry/react` package.
|
|
10
|
-
*/
|
|
11
|
-
export declare function createReduxEnhancer(): (createStore: unknown) => unknown;
|
|
12
|
-
/**
|
|
13
|
-
* A passthrough error boundary wrapper for the server that doesn't depend on any react. Error boundaries don't catch
|
|
14
|
-
* SSR errors so they should simply be a passthrough.
|
|
15
|
-
*/
|
|
16
|
-
export declare function withErrorBoundary<P extends Record<string, any>>(WrappedComponent: React.ComponentType<P>): React.FC<P>;
|
|
17
|
-
/**
|
|
18
|
-
* Just a passthrough since we're on the server and showing the report dialog on the server doesn't make any sense.
|
|
19
|
-
*/
|
|
20
|
-
export declare function showReportDialog(): void;
|
|
1
|
+
export {};
|
|
21
2
|
//# 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":"AAAA,OAAO,EAAE,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,11 +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;
|
|
1
|
+
export {};
|
|
11
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -2,18 +2,4 @@ export * from './config';
|
|
|
2
2
|
export * from './client';
|
|
3
3
|
export * from './server';
|
|
4
4
|
export * from './common';
|
|
5
|
-
import { Client, Integration, Options, StackParser } from '@sentry/core';
|
|
6
|
-
import * as clientSdk from './client';
|
|
7
|
-
import * as serverSdk from './server';
|
|
8
|
-
/** Initializes Sentry TanStack Start SDK */
|
|
9
|
-
export declare function init(options: Options | clientSdk.BrowserOptions | serverSdk.NodeOptions): Client | undefined;
|
|
10
|
-
export declare const linkedErrorsIntegration: typeof clientSdk.linkedErrorsIntegration;
|
|
11
|
-
export declare const contextLinesIntegration: typeof clientSdk.contextLinesIntegration;
|
|
12
|
-
export declare const getDefaultIntegrations: (options: Options) => Integration[];
|
|
13
|
-
export declare const defaultStackParser: StackParser;
|
|
14
|
-
export declare function getSentryRelease(fallback?: string): string | undefined;
|
|
15
|
-
export declare const ErrorBoundary: typeof clientSdk.ErrorBoundary;
|
|
16
|
-
export declare const createReduxEnhancer: typeof clientSdk.createReduxEnhancer;
|
|
17
|
-
export declare const showReportDialog: typeof clientSdk.showReportDialog;
|
|
18
|
-
export declare const withErrorBoundary: typeof clientSdk.withErrorBoundary;
|
|
19
5
|
//# sourceMappingURL=index.types.d.ts.map
|
|
@@ -1,21 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export * from '@sentry/node';
|
|
3
|
-
/**
|
|
4
|
-
* A passthrough error boundary for the server that doesn't depend on any react. Error boundaries don't catch SSR errors
|
|
5
|
-
* so they should simply be a passthrough.
|
|
6
|
-
*/
|
|
7
|
-
export declare const ErrorBoundary: (props: React.PropsWithChildren<unknown>) => React.ReactNode;
|
|
8
|
-
/**
|
|
9
|
-
* A passthrough redux enhancer for the server that doesn't depend on anything from the `@sentry/react` package.
|
|
10
|
-
*/
|
|
11
|
-
export declare function createReduxEnhancer(): (createStore: unknown) => unknown;
|
|
12
|
-
/**
|
|
13
|
-
* A passthrough error boundary wrapper for the server that doesn't depend on any react. Error boundaries don't catch
|
|
14
|
-
* SSR errors so they should simply be a passthrough.
|
|
15
|
-
*/
|
|
16
|
-
export declare function withErrorBoundary<P extends Record<string, any>>(WrappedComponent: React.ComponentType<P>): React.FC<P>;
|
|
17
|
-
/**
|
|
18
|
-
* Just a passthrough since we're on the server and showing the report dialog on the server doesn't make any sense.
|
|
19
|
-
*/
|
|
20
|
-
export declare function showReportDialog(): void;
|
|
1
|
+
export {};
|
|
21
2
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/tanstackstart",
|
|
3
|
-
"version": "9.6.0
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "9.6.0",
|
|
4
|
+
"description": "Utilities for the Sentry TanStack Start SDKs",
|
|
5
5
|
"repository": "git://github.com/getsentry/sentry-javascript.git",
|
|
6
6
|
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/tanstackstart",
|
|
7
7
|
"author": "Sentry",
|
|
@@ -27,16 +27,6 @@
|
|
|
27
27
|
"import": "./build/esm/index.server.js",
|
|
28
28
|
"require": "./build/cjs/index.server.js"
|
|
29
29
|
}
|
|
30
|
-
},
|
|
31
|
-
"./import": {
|
|
32
|
-
"import": {
|
|
33
|
-
"default": "./build/import-hook.mjs"
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
"./loader": {
|
|
37
|
-
"import": {
|
|
38
|
-
"default": "./build/loader-hook.mjs"
|
|
39
|
-
}
|
|
40
30
|
}
|
|
41
31
|
},
|
|
42
32
|
"typesVersions": {
|
|
@@ -49,15 +39,6 @@
|
|
|
49
39
|
"publishConfig": {
|
|
50
40
|
"access": "public"
|
|
51
41
|
},
|
|
52
|
-
"dependencies": {
|
|
53
|
-
"@opentelemetry/api": "^1.9.0",
|
|
54
|
-
"@opentelemetry/semantic-conventions": "^1.30.0",
|
|
55
|
-
"@sentry-internal/browser-utils": "9.6.0-alpha.0",
|
|
56
|
-
"@sentry/core": "9.6.0-alpha.0",
|
|
57
|
-
"@sentry/node": "9.6.0-alpha.0",
|
|
58
|
-
"@sentry/opentelemetry": "9.6.0-alpha.0",
|
|
59
|
-
"@sentry/react": "9.6.0-alpha.0"
|
|
60
|
-
},
|
|
61
42
|
"scripts": {
|
|
62
43
|
"build": "run-p build:transpile build:types",
|
|
63
44
|
"build:dev": "yarn build",
|
|
@@ -1,22 +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
|
-
exports.sentryGlobalServerMiddlewareHandler = sentryGlobalServerMiddlewareHandler;
|
|
21
|
-
exports.wrapStreamHandlerWithSentry = wrapStreamHandlerWithSentry;
|
|
22
|
-
//# 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"],"names":[],"mappings":";;AAAA;AACA;AACA;AACO,SAAS,mCAAmC,GAAG;AACtD;AACA,EAAE,OAAO,UAAa,MAAM,EAAsC;AAClE,IAAI,OAAO,MAAM,CAAC,IAAI,EAAE;AACxB,GAAG;AACH;;AAEA;AACA;AACA;AACO,SAAS,2BAA2B,CAAI,OAAO,EAAQ;AAC9D,EAAE,OAAO,OAAO;AAChB;;;;;"}
|
|
@@ -1,19 +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
|
-
export { sentryGlobalServerMiddlewareHandler, wrapStreamHandlerWithSentry };
|
|
19
|
-
//# 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"],"names":[],"mappings":"AAAA;AACA;AACA;AACO,SAAS,mCAAmC,GAAG;AACtD;AACA,EAAE,OAAO,UAAa,MAAM,EAAsC;AAClE,IAAI,OAAO,MAAM,CAAC,IAAI,EAAE;AACxB,GAAG;AACH;;AAEA;AACA;AACA;AACO,SAAS,2BAA2B,CAAI,OAAO,EAAQ;AAC9D,EAAE,OAAO,OAAO;AAChB;;;;"}
|
package/build/import-hook.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { getFormat, getSource, load, resolve } from '@sentry/node/loader-hook';
|
package/build/loader-hook.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '@sentry/node/import-hook';
|