@sentry/solidstart 10.0.0-alpha.2 → 10.0.0-beta.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/server/utils.js +0 -17
- package/build/cjs/server/utils.js.map +1 -1
- package/build/cjs/server/withServerActionInstrumentation.js +1 -1
- package/build/cjs/server/withServerActionInstrumentation.js.map +1 -1
- package/build/esm/package.json +1 -1
- package/build/esm/server/utils.js +2 -18
- package/build/esm/server/utils.js.map +1 -1
- package/build/esm/server/withServerActionInstrumentation.js +2 -2
- package/build/esm/server/withServerActionInstrumentation.js.map +1 -1
- package/build/types/server/utils.d.ts +0 -2
- package/build/types/server/utils.d.ts.map +1 -1
- package/build/types/server/withServerActionInstrumentation.d.ts.map +1 -1
- package/package.json +4 -4
- package/build/cjs/common/debug-build.js +0 -11
- package/build/cjs/common/debug-build.js.map +0 -1
- package/build/esm/common/debug-build.js +0 -9
- package/build/esm/common/debug-build.js.map +0 -1
|
@@ -2,22 +2,6 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
2
2
|
|
|
3
3
|
const core = require('@sentry/core');
|
|
4
4
|
const node = require('@sentry/node');
|
|
5
|
-
const debugBuild = require('../common/debug-build.js');
|
|
6
|
-
|
|
7
|
-
/** Flush the event queue to ensure that events get sent to Sentry before the response is finished and the lambda ends */
|
|
8
|
-
async function flushIfServerless() {
|
|
9
|
-
const isServerless = !!process.env.LAMBDA_TASK_ROOT || !!process.env.VERCEL;
|
|
10
|
-
|
|
11
|
-
if (isServerless) {
|
|
12
|
-
try {
|
|
13
|
-
debugBuild.DEBUG_BUILD && core.debug.log('Flushing events...');
|
|
14
|
-
await node.flush(2000);
|
|
15
|
-
debugBuild.DEBUG_BUILD && core.debug.log('Done flushing events');
|
|
16
|
-
} catch (e) {
|
|
17
|
-
debugBuild.DEBUG_BUILD && core.debug.log('Error while flushing events:\n', e);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
5
|
|
|
22
6
|
/**
|
|
23
7
|
* Determines if a thrown "error" is a redirect Response which Solid Start users can throw to redirect to another route.
|
|
@@ -58,6 +42,5 @@ function filterLowQualityTransactions(options) {
|
|
|
58
42
|
}
|
|
59
43
|
|
|
60
44
|
exports.filterLowQualityTransactions = filterLowQualityTransactions;
|
|
61
|
-
exports.flushIfServerless = flushIfServerless;
|
|
62
45
|
exports.isRedirect = isRedirect;
|
|
63
46
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sources":["../../../src/server/utils.ts"],"sourcesContent":["import type { EventProcessor, Options } from '@sentry/core';\nimport { debug } from '@sentry/core';\nimport {
|
|
1
|
+
{"version":3,"file":"utils.js","sources":["../../../src/server/utils.ts"],"sourcesContent":["import type { EventProcessor, Options } from '@sentry/core';\nimport { debug } from '@sentry/core';\nimport { getGlobalScope } from '@sentry/node';\n\n/**\n * Determines if a thrown \"error\" is a redirect Response which Solid Start users can throw to redirect to another route.\n * see: https://docs.solidjs.com/solid-router/reference/data-apis/response-helpers#redirect\n * @param error the potential redirect error\n */\nexport function isRedirect(error: unknown): boolean {\n if (error == null || !(error instanceof Response)) {\n return false;\n }\n\n const hasValidLocation = typeof error.headers.get('location') === 'string';\n const hasValidStatus = error.status >= 300 && error.status <= 308;\n return hasValidLocation && hasValidStatus;\n}\n\n/**\n * Adds an event processor to filter out low quality transactions,\n * e.g. to filter out transactions for build assets\n */\nexport function filterLowQualityTransactions(options: Options): void {\n getGlobalScope().addEventProcessor(\n Object.assign(\n (event => {\n if (event.type !== 'transaction') {\n return event;\n }\n // Filter out transactions for build assets\n if (event.transaction?.match(/^GET \\/_build\\//)) {\n options.debug && debug.log('SolidStartLowQualityTransactionsFilter filtered transaction', event.transaction);\n return null;\n }\n return event;\n }) satisfies EventProcessor,\n { id: 'SolidStartLowQualityTransactionsFilter' },\n ),\n );\n}\n"],"names":["getGlobalScope","debug"],"mappings":";;;;;AAIA;AACA;AACA;AACA;AACA;AACO,SAAS,UAAU,CAAC,KAAK,EAAoB;AACpD,EAAE,IAAI,KAAA,IAAS,IAAA,IAAQ,EAAE,KAAA,YAAiB,QAAQ,CAAC,EAAE;AACrD,IAAI,OAAO,KAAK;AAChB;;AAEA,EAAE,MAAM,gBAAA,GAAmB,OAAO,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAA,KAAM,QAAQ;AAC5E,EAAE,MAAM,cAAA,GAAiB,KAAK,CAAC,MAAA,IAAU,GAAA,IAAO,KAAK,CAAC,MAAA,IAAU,GAAG;AACnE,EAAE,OAAO,gBAAA,IAAoB,cAAc;AAC3C;;AAEA;AACA;AACA;AACA;AACO,SAAS,4BAA4B,CAAC,OAAO,EAAiB;AACrE,EAAEA,mBAAc,EAAE,CAAC,iBAAiB;AACpC,IAAI,MAAM,CAAC,MAAM;AACjB,OAAO,SAAS;AAChB,QAAQ,IAAI,KAAK,CAAC,IAAA,KAAS,aAAa,EAAE;AAC1C,UAAU,OAAO,KAAK;AACtB;AACA;AACA,QAAQ,IAAI,KAAK,CAAC,WAAW,EAAE,KAAK,CAAC,iBAAiB,CAAC,EAAE;AACzD,UAAU,OAAO,CAAC,KAAA,IAASC,UAAK,CAAC,GAAG,CAAC,6DAA6D,EAAE,KAAK,CAAC,WAAW,CAAC;AACtH,UAAU,OAAO,IAAI;AACrB;AACA,QAAQ,OAAO,KAAK;AACpB,OAAO;AACP,MAAM,EAAE,EAAE,EAAE,wCAAA,EAA0C;AACtD,KAAK;AACL,GAAG;AACH;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withServerActionInstrumentation.js","sources":["../../../src/server/withServerActionInstrumentation.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"withServerActionInstrumentation.js","sources":["../../../src/server/withServerActionInstrumentation.ts"],"sourcesContent":["import {\n flushIfServerless,\n handleCallbackErrors,\n SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,\n SPAN_STATUS_ERROR,\n} from '@sentry/core';\nimport { captureException, getActiveSpan, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, spanToJSON, startSpan } from '@sentry/node';\nimport { isRedirect } from './utils';\n\n/**\n * Wraps a server action (functions that use the 'use server' directive)\n * function body with Sentry Error and Performance instrumentation.\n */\nexport async function withServerActionInstrumentation<A extends (...args: unknown[]) => unknown>(\n serverActionName: string,\n callback: A,\n): Promise<ReturnType<A>> {\n const activeSpan = getActiveSpan();\n\n if (activeSpan) {\n const spanData = spanToJSON(activeSpan).data;\n\n // In solid start, server function calls are made to `/_server` which doesn't tell us\n // a lot. We rewrite the span's route to be that of the sever action name but only\n // if the target is `/_server`, otherwise we'd overwrite pageloads on routes that use\n // server actions (which are more meaningful, e.g. a request to `GET /users/5` is more\n // meaningful than overwriting it with `GET doSomeFunctionCall`).\n if (spanData && !spanData['http.route'] && spanData['http.target'] === '/_server') {\n activeSpan.setAttribute('http.route', serverActionName);\n activeSpan.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, 'component');\n }\n }\n\n try {\n return await startSpan(\n {\n op: 'function.server_action',\n name: serverActionName,\n attributes: {\n [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.function.solidstart',\n [SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'component',\n },\n },\n async span => {\n const result = await handleCallbackErrors(callback, error => {\n if (!isRedirect(error)) {\n span.setStatus({ code: SPAN_STATUS_ERROR, message: 'internal_error' });\n captureException(error, {\n mechanism: {\n handled: false,\n type: 'solidstart',\n },\n });\n }\n });\n\n return result;\n },\n );\n } finally {\n await flushIfServerless();\n }\n}\n"],"names":["getActiveSpan","spanToJSON","SEMANTIC_ATTRIBUTE_SENTRY_SOURCE","startSpan","SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN","handleCallbackErrors","isRedirect","SPAN_STATUS_ERROR","captureException","flushIfServerless"],"mappings":";;;;;;AASA;AACA;AACA;AACA;AACO,eAAe,+BAA+B;AACrD,EAAE,gBAAgB;AAClB,EAAE,QAAQ;AACV,EAA0B;AAC1B,EAAE,MAAM,UAAA,GAAaA,kBAAa,EAAE;;AAEpC,EAAE,IAAI,UAAU,EAAE;AAClB,IAAI,MAAM,WAAWC,eAAU,CAAC,UAAU,CAAC,CAAC,IAAI;;AAEhD;AACA;AACA;AACA;AACA;AACA,IAAI,IAAI,QAAA,IAAY,CAAC,QAAQ,CAAC,YAAY,CAAA,IAAK,QAAQ,CAAC,aAAa,CAAA,KAAM,UAAU,EAAE;AACvF,MAAM,UAAU,CAAC,YAAY,CAAC,YAAY,EAAE,gBAAgB,CAAC;AAC7D,MAAM,UAAU,CAAC,YAAY,CAACC,qCAAgC,EAAE,WAAW,CAAC;AAC5E;AACA;;AAEA,EAAE,IAAI;AACN,IAAI,OAAO,MAAMC,cAAS;AAC1B,MAAM;AACN,QAAQ,EAAE,EAAE,wBAAwB;AACpC,QAAQ,IAAI,EAAE,gBAAgB;AAC9B,QAAQ,UAAU,EAAE;AACpB,UAAU,CAACC,qCAAgC,GAAG,0BAA0B;AACxE,UAAU,CAACF,qCAAgC,GAAG,WAAW;AACzD,SAAS;AACT,OAAO;AACP,MAAM,MAAM,QAAQ;AACpB,QAAQ,MAAM,SAAS,MAAMG,yBAAoB,CAAC,QAAQ,EAAE,KAAA,IAAS;AACrE,UAAU,IAAI,CAACC,gBAAU,CAAC,KAAK,CAAC,EAAE;AAClC,YAAY,IAAI,CAAC,SAAS,CAAC,EAAE,IAAI,EAAEC,sBAAiB,EAAE,OAAO,EAAE,gBAAA,EAAkB,CAAC;AAClF,YAAYC,qBAAgB,CAAC,KAAK,EAAE;AACpC,cAAc,SAAS,EAAE;AACzB,gBAAgB,OAAO,EAAE,KAAK;AAC9B,gBAAgB,IAAI,EAAE,YAAY;AAClC,eAAe;AACf,aAAa,CAAC;AACd;AACA,SAAS,CAAC;;AAEV,QAAQ,OAAO,MAAM;AACrB,OAAO;AACP,KAAK;AACL,YAAY;AACZ,IAAI,MAAMC,sBAAiB,EAAE;AAC7B;AACA;;;;"}
|
package/build/esm/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"type":"module","version":"10.0.0-
|
|
1
|
+
{"type":"module","version":"10.0.0-beta.0"}
|
|
@@ -1,21 +1,5 @@
|
|
|
1
1
|
import { debug } from '@sentry/core';
|
|
2
|
-
import { getGlobalScope
|
|
3
|
-
import { DEBUG_BUILD } from '../common/debug-build.js';
|
|
4
|
-
|
|
5
|
-
/** Flush the event queue to ensure that events get sent to Sentry before the response is finished and the lambda ends */
|
|
6
|
-
async function flushIfServerless() {
|
|
7
|
-
const isServerless = !!process.env.LAMBDA_TASK_ROOT || !!process.env.VERCEL;
|
|
8
|
-
|
|
9
|
-
if (isServerless) {
|
|
10
|
-
try {
|
|
11
|
-
DEBUG_BUILD && debug.log('Flushing events...');
|
|
12
|
-
await flush(2000);
|
|
13
|
-
DEBUG_BUILD && debug.log('Done flushing events');
|
|
14
|
-
} catch (e) {
|
|
15
|
-
DEBUG_BUILD && debug.log('Error while flushing events:\n', e);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
2
|
+
import { getGlobalScope } from '@sentry/node';
|
|
19
3
|
|
|
20
4
|
/**
|
|
21
5
|
* Determines if a thrown "error" is a redirect Response which Solid Start users can throw to redirect to another route.
|
|
@@ -55,5 +39,5 @@ function filterLowQualityTransactions(options) {
|
|
|
55
39
|
);
|
|
56
40
|
}
|
|
57
41
|
|
|
58
|
-
export { filterLowQualityTransactions,
|
|
42
|
+
export { filterLowQualityTransactions, isRedirect };
|
|
59
43
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sources":["../../../src/server/utils.ts"],"sourcesContent":["import type { EventProcessor, Options } from '@sentry/core';\nimport { debug } from '@sentry/core';\nimport {
|
|
1
|
+
{"version":3,"file":"utils.js","sources":["../../../src/server/utils.ts"],"sourcesContent":["import type { EventProcessor, Options } from '@sentry/core';\nimport { debug } from '@sentry/core';\nimport { getGlobalScope } from '@sentry/node';\n\n/**\n * Determines if a thrown \"error\" is a redirect Response which Solid Start users can throw to redirect to another route.\n * see: https://docs.solidjs.com/solid-router/reference/data-apis/response-helpers#redirect\n * @param error the potential redirect error\n */\nexport function isRedirect(error: unknown): boolean {\n if (error == null || !(error instanceof Response)) {\n return false;\n }\n\n const hasValidLocation = typeof error.headers.get('location') === 'string';\n const hasValidStatus = error.status >= 300 && error.status <= 308;\n return hasValidLocation && hasValidStatus;\n}\n\n/**\n * Adds an event processor to filter out low quality transactions,\n * e.g. to filter out transactions for build assets\n */\nexport function filterLowQualityTransactions(options: Options): void {\n getGlobalScope().addEventProcessor(\n Object.assign(\n (event => {\n if (event.type !== 'transaction') {\n return event;\n }\n // Filter out transactions for build assets\n if (event.transaction?.match(/^GET \\/_build\\//)) {\n options.debug && debug.log('SolidStartLowQualityTransactionsFilter filtered transaction', event.transaction);\n return null;\n }\n return event;\n }) satisfies EventProcessor,\n { id: 'SolidStartLowQualityTransactionsFilter' },\n ),\n );\n}\n"],"names":[],"mappings":";;;AAIA;AACA;AACA;AACA;AACA;AACO,SAAS,UAAU,CAAC,KAAK,EAAoB;AACpD,EAAE,IAAI,KAAA,IAAS,IAAA,IAAQ,EAAE,KAAA,YAAiB,QAAQ,CAAC,EAAE;AACrD,IAAI,OAAO,KAAK;AAChB;;AAEA,EAAE,MAAM,gBAAA,GAAmB,OAAO,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAA,KAAM,QAAQ;AAC5E,EAAE,MAAM,cAAA,GAAiB,KAAK,CAAC,MAAA,IAAU,GAAA,IAAO,KAAK,CAAC,MAAA,IAAU,GAAG;AACnE,EAAE,OAAO,gBAAA,IAAoB,cAAc;AAC3C;;AAEA;AACA;AACA;AACA;AACO,SAAS,4BAA4B,CAAC,OAAO,EAAiB;AACrE,EAAE,cAAc,EAAE,CAAC,iBAAiB;AACpC,IAAI,MAAM,CAAC,MAAM;AACjB,OAAO,SAAS;AAChB,QAAQ,IAAI,KAAK,CAAC,IAAA,KAAS,aAAa,EAAE;AAC1C,UAAU,OAAO,KAAK;AACtB;AACA;AACA,QAAQ,IAAI,KAAK,CAAC,WAAW,EAAE,KAAK,CAAC,iBAAiB,CAAC,EAAE;AACzD,UAAU,OAAO,CAAC,KAAA,IAAS,KAAK,CAAC,GAAG,CAAC,6DAA6D,EAAE,KAAK,CAAC,WAAW,CAAC;AACtH,UAAU,OAAO,IAAI;AACrB;AACA,QAAQ,OAAO,KAAK;AACpB,OAAO;AACP,MAAM,EAAE,EAAE,EAAE,wCAAA,EAA0C;AACtD,KAAK;AACL,GAAG;AACH;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, handleCallbackErrors, SPAN_STATUS_ERROR } from '@sentry/core';
|
|
1
|
+
import { SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, handleCallbackErrors, SPAN_STATUS_ERROR, flushIfServerless } from '@sentry/core';
|
|
2
2
|
import { getActiveSpan, spanToJSON, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, startSpan, captureException } from '@sentry/node';
|
|
3
|
-
import { isRedirect
|
|
3
|
+
import { isRedirect } from './utils.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Wraps a server action (functions that use the 'use server' directive)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withServerActionInstrumentation.js","sources":["../../../src/server/withServerActionInstrumentation.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"withServerActionInstrumentation.js","sources":["../../../src/server/withServerActionInstrumentation.ts"],"sourcesContent":["import {\n flushIfServerless,\n handleCallbackErrors,\n SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,\n SPAN_STATUS_ERROR,\n} from '@sentry/core';\nimport { captureException, getActiveSpan, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, spanToJSON, startSpan } from '@sentry/node';\nimport { isRedirect } from './utils';\n\n/**\n * Wraps a server action (functions that use the 'use server' directive)\n * function body with Sentry Error and Performance instrumentation.\n */\nexport async function withServerActionInstrumentation<A extends (...args: unknown[]) => unknown>(\n serverActionName: string,\n callback: A,\n): Promise<ReturnType<A>> {\n const activeSpan = getActiveSpan();\n\n if (activeSpan) {\n const spanData = spanToJSON(activeSpan).data;\n\n // In solid start, server function calls are made to `/_server` which doesn't tell us\n // a lot. We rewrite the span's route to be that of the sever action name but only\n // if the target is `/_server`, otherwise we'd overwrite pageloads on routes that use\n // server actions (which are more meaningful, e.g. a request to `GET /users/5` is more\n // meaningful than overwriting it with `GET doSomeFunctionCall`).\n if (spanData && !spanData['http.route'] && spanData['http.target'] === '/_server') {\n activeSpan.setAttribute('http.route', serverActionName);\n activeSpan.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, 'component');\n }\n }\n\n try {\n return await startSpan(\n {\n op: 'function.server_action',\n name: serverActionName,\n attributes: {\n [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.function.solidstart',\n [SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'component',\n },\n },\n async span => {\n const result = await handleCallbackErrors(callback, error => {\n if (!isRedirect(error)) {\n span.setStatus({ code: SPAN_STATUS_ERROR, message: 'internal_error' });\n captureException(error, {\n mechanism: {\n handled: false,\n type: 'solidstart',\n },\n });\n }\n });\n\n return result;\n },\n );\n } finally {\n await flushIfServerless();\n }\n}\n"],"names":[],"mappings":";;;;AASA;AACA;AACA;AACA;AACO,eAAe,+BAA+B;AACrD,EAAE,gBAAgB;AAClB,EAAE,QAAQ;AACV,EAA0B;AAC1B,EAAE,MAAM,UAAA,GAAa,aAAa,EAAE;;AAEpC,EAAE,IAAI,UAAU,EAAE;AAClB,IAAI,MAAM,WAAW,UAAU,CAAC,UAAU,CAAC,CAAC,IAAI;;AAEhD;AACA;AACA;AACA;AACA;AACA,IAAI,IAAI,QAAA,IAAY,CAAC,QAAQ,CAAC,YAAY,CAAA,IAAK,QAAQ,CAAC,aAAa,CAAA,KAAM,UAAU,EAAE;AACvF,MAAM,UAAU,CAAC,YAAY,CAAC,YAAY,EAAE,gBAAgB,CAAC;AAC7D,MAAM,UAAU,CAAC,YAAY,CAAC,gCAAgC,EAAE,WAAW,CAAC;AAC5E;AACA;;AAEA,EAAE,IAAI;AACN,IAAI,OAAO,MAAM,SAAS;AAC1B,MAAM;AACN,QAAQ,EAAE,EAAE,wBAAwB;AACpC,QAAQ,IAAI,EAAE,gBAAgB;AAC9B,QAAQ,UAAU,EAAE;AACpB,UAAU,CAAC,gCAAgC,GAAG,0BAA0B;AACxE,UAAU,CAAC,gCAAgC,GAAG,WAAW;AACzD,SAAS;AACT,OAAO;AACP,MAAM,MAAM,QAAQ;AACpB,QAAQ,MAAM,SAAS,MAAM,oBAAoB,CAAC,QAAQ,EAAE,KAAA,IAAS;AACrE,UAAU,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE;AAClC,YAAY,IAAI,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,OAAO,EAAE,gBAAA,EAAkB,CAAC;AAClF,YAAY,gBAAgB,CAAC,KAAK,EAAE;AACpC,cAAc,SAAS,EAAE;AACzB,gBAAgB,OAAO,EAAE,KAAK;AAC9B,gBAAgB,IAAI,EAAE,YAAY;AAClC,eAAe;AACf,aAAa,CAAC;AACd;AACA,SAAS,CAAC;;AAEV,QAAQ,OAAO,MAAM;AACrB,OAAO;AACP,KAAK;AACL,YAAY;AACZ,IAAI,MAAM,iBAAiB,EAAE;AAC7B;AACA;;;;"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import type { Options } from '@sentry/core';
|
|
2
|
-
/** Flush the event queue to ensure that events get sent to Sentry before the response is finished and the lambda ends */
|
|
3
|
-
export declare function flushIfServerless(): Promise<void>;
|
|
4
2
|
/**
|
|
5
3
|
* Determines if a thrown "error" is a redirect Response which Solid Start users can throw to redirect to another route.
|
|
6
4
|
* see: https://docs.solidjs.com/solid-router/reference/data-apis/response-helpers#redirect
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/server/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAkB,OAAO,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/server/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAkB,OAAO,EAAE,MAAM,cAAc,CAAC;AAI5D;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAQlD;AAED;;;GAGG;AACH,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAiBnE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withServerActionInstrumentation.d.ts","sourceRoot":"","sources":["../../../src/server/withServerActionInstrumentation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"withServerActionInstrumentation.d.ts","sourceRoot":"","sources":["../../../src/server/withServerActionInstrumentation.ts"],"names":[],"mappings":"AASA;;;GAGG;AACH,wBAAsB,+BAA+B,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,EAC7F,gBAAgB,EAAE,MAAM,EACxB,QAAQ,EAAE,CAAC,GACV,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CA8CxB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/solidstart",
|
|
3
|
-
"version": "10.0.0-
|
|
3
|
+
"version": "10.0.0-beta.0",
|
|
4
4
|
"description": "Official Sentry SDK for Solid Start",
|
|
5
5
|
"repository": "git://github.com/getsentry/sentry-javascript.git",
|
|
6
6
|
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/solidstart",
|
|
@@ -66,9 +66,9 @@
|
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@sentry/core": "10.0.0-
|
|
70
|
-
"@sentry/node": "10.0.0-
|
|
71
|
-
"@sentry/solid": "10.0.0-
|
|
69
|
+
"@sentry/core": "10.0.0-beta.0",
|
|
70
|
+
"@sentry/node": "10.0.0-beta.0",
|
|
71
|
+
"@sentry/solid": "10.0.0-beta.0",
|
|
72
72
|
"@sentry/vite-plugin": "^4.0.0"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* This serves as a build time flag that will be true by default, but false in non-debug builds or if users replace `__SENTRY_DEBUG__` in their generated code.
|
|
5
|
-
*
|
|
6
|
-
* ATTENTION: This constant must never cross package boundaries (i.e. be exported) to guarantee that it can be used for tree shaking.
|
|
7
|
-
*/
|
|
8
|
-
const DEBUG_BUILD = (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__);
|
|
9
|
-
|
|
10
|
-
exports.DEBUG_BUILD = DEBUG_BUILD;
|
|
11
|
-
//# sourceMappingURL=debug-build.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"debug-build.js","sources":["../../../src/common/debug-build.ts"],"sourcesContent":["declare const __DEBUG_BUILD__: boolean;\n\n/**\n * This serves as a build time flag that will be true by default, but false in non-debug builds or if users replace `__SENTRY_DEBUG__` in their generated code.\n *\n * ATTENTION: This constant must never cross package boundaries (i.e. be exported) to guarantee that it can be used for tree shaking.\n */\nexport const DEBUG_BUILD = __DEBUG_BUILD__;\n"],"names":[],"mappings":";;AAEA;AACA;AACA;AACA;AACA;AACO,MAAM,WAAA,IAAc,OAAA,gBAAA,KAAA,WAAA,IAAA,gBAAA;;;;"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This serves as a build time flag that will be true by default, but false in non-debug builds or if users replace `__SENTRY_DEBUG__` in their generated code.
|
|
3
|
-
*
|
|
4
|
-
* ATTENTION: This constant must never cross package boundaries (i.e. be exported) to guarantee that it can be used for tree shaking.
|
|
5
|
-
*/
|
|
6
|
-
const DEBUG_BUILD = (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__);
|
|
7
|
-
|
|
8
|
-
export { DEBUG_BUILD };
|
|
9
|
-
//# sourceMappingURL=debug-build.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"debug-build.js","sources":["../../../src/common/debug-build.ts"],"sourcesContent":["declare const __DEBUG_BUILD__: boolean;\n\n/**\n * This serves as a build time flag that will be true by default, but false in non-debug builds or if users replace `__SENTRY_DEBUG__` in their generated code.\n *\n * ATTENTION: This constant must never cross package boundaries (i.e. be exported) to guarantee that it can be used for tree shaking.\n */\nexport const DEBUG_BUILD = __DEBUG_BUILD__;\n"],"names":[],"mappings":"AAEA;AACA;AACA;AACA;AACA;AACO,MAAM,WAAA,IAAc,OAAA,gBAAA,KAAA,WAAA,IAAA,gBAAA;;;;"}
|