@sentry/svelte 7.56.0 → 7.57.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/package.json +12 -5
- package/types/types.d.ts +5 -5
- package/types/types.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/svelte",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.57.0-beta.0",
|
|
4
4
|
"description": "Official Sentry SDK for Svelte",
|
|
5
5
|
"repository": "git://github.com/getsentry/sentry-javascript.git",
|
|
6
6
|
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/svelte",
|
|
@@ -12,15 +12,22 @@
|
|
|
12
12
|
"main": "cjs/index.js",
|
|
13
13
|
"module": "esm/index.js",
|
|
14
14
|
"types": "types/index.d.ts",
|
|
15
|
+
"typesVersions": {
|
|
16
|
+
"<4.9": {
|
|
17
|
+
"build/types/index.d.ts": [
|
|
18
|
+
"types-ts3.8/index.d.ts"
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
},
|
|
15
22
|
"publishConfig": {
|
|
16
23
|
"access": "public"
|
|
17
24
|
},
|
|
18
25
|
"dependencies": {
|
|
19
|
-
"@sentry/browser": "7.
|
|
20
|
-
"@sentry/types": "7.
|
|
21
|
-
"@sentry/utils": "7.
|
|
26
|
+
"@sentry/browser": "7.57.0-beta.0",
|
|
27
|
+
"@sentry/types": "7.57.0-beta.0",
|
|
28
|
+
"@sentry/utils": "7.57.0-beta.0",
|
|
22
29
|
"magic-string": "^0.30.0",
|
|
23
|
-
"tslib": "^1.9.3"
|
|
30
|
+
"tslib": "^2.4.1 || ^1.9.3"
|
|
24
31
|
},
|
|
25
32
|
"peerDependencies": {
|
|
26
33
|
"svelte": "3.x || 4.x"
|
package/types/types.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export interface SentryPreprocessorGroup extends PreprocessorGroup {
|
|
|
6
6
|
/**
|
|
7
7
|
* The object exported from `svelte.config.js`
|
|
8
8
|
*/
|
|
9
|
-
export
|
|
9
|
+
export type SvelteConfig = {
|
|
10
10
|
[key: string]: unknown;
|
|
11
11
|
preprocess?: PreprocessorGroup[] | PreprocessorGroup;
|
|
12
12
|
compilerOptions?: CompileOptions;
|
|
@@ -14,10 +14,10 @@ export declare type SvelteConfig = {
|
|
|
14
14
|
/**
|
|
15
15
|
* Options users can provide to `withSentryConfig` to customize what Sentry adds too the Svelte config
|
|
16
16
|
*/
|
|
17
|
-
export
|
|
17
|
+
export type SentrySvelteConfigOptions = {
|
|
18
18
|
componentTracking?: ComponentTrackingInitOptions;
|
|
19
19
|
};
|
|
20
|
-
export
|
|
20
|
+
export type SpanOptions = {
|
|
21
21
|
/**
|
|
22
22
|
* If true, a span is recorded between a component's intialization and its
|
|
23
23
|
* onMount lifecycle hook. This span tells how long it takes a component
|
|
@@ -38,7 +38,7 @@ export declare type SpanOptions = {
|
|
|
38
38
|
* Control which components and which operations should be tracked
|
|
39
39
|
* and recorded as spans
|
|
40
40
|
*/
|
|
41
|
-
export
|
|
41
|
+
export type ComponentTrackingInitOptions = {
|
|
42
42
|
/**
|
|
43
43
|
* Control if all your Svelte components should be tracked or only a specified list
|
|
44
44
|
* of components.
|
|
@@ -50,7 +50,7 @@ export declare type ComponentTrackingInitOptions = {
|
|
|
50
50
|
*/
|
|
51
51
|
trackComponents?: boolean | string[];
|
|
52
52
|
} & SpanOptions;
|
|
53
|
-
export
|
|
53
|
+
export type TrackComponentOptions = {
|
|
54
54
|
componentName?: string;
|
|
55
55
|
} & SpanOptions;
|
|
56
56
|
//# sourceMappingURL=types.d.ts.map
|
package/types/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAI1E,MAAM,WAAW,uBAAwB,SAAQ,iBAAiB;IAChE,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAI1E,MAAM,WAAW,uBAAwB,SAAQ,iBAAiB;IAChE,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,UAAU,CAAC,EAAE,iBAAiB,EAAE,GAAG,iBAAiB,CAAC;IACrD,eAAe,CAAC,EAAE,cAAc,CAAC;CAClC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC,iBAAiB,CAAC,EAAE,4BAA4B,CAAC;CAClD,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACzC;;;;;;;;OAQG;IACH,eAAe,CAAC,EAAE,OAAO,GAAG,MAAM,EAAE,CAAC;CACtC,GAAG,WAAW,CAAC;AAEhB,MAAM,MAAM,qBAAqB,GAAG;IAClC,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,GAAG,WAAW,CAAC"}
|