@sentry/wasm 10.32.1 → 10.33.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/npm/cjs/index.js +14 -3
- package/build/npm/cjs/index.js.map +1 -1
- package/build/npm/esm/index.js +14 -3
- package/build/npm/esm/index.js.map +1 -1
- package/build/npm/esm/package.json +1 -1
- package/build/npm/types/index.d.ts +11 -2
- package/build/npm/types/index.d.ts.map +1 -1
- package/build/npm/types-ts3.8/index.d.ts +11 -2
- package/package.json +3 -3
package/build/npm/cjs/index.js
CHANGED
|
@@ -6,7 +6,7 @@ const registry = require('./registry.js');
|
|
|
6
6
|
|
|
7
7
|
const INTEGRATION_NAME = 'Wasm';
|
|
8
8
|
|
|
9
|
-
const _wasmIntegration = (() => {
|
|
9
|
+
const _wasmIntegration = ((options = {}) => {
|
|
10
10
|
return {
|
|
11
11
|
name: INTEGRATION_NAME,
|
|
12
12
|
setupOnce() {
|
|
@@ -19,7 +19,7 @@ const _wasmIntegration = (() => {
|
|
|
19
19
|
event.exception.values.forEach(exception => {
|
|
20
20
|
if (exception.stacktrace?.frames) {
|
|
21
21
|
hasAtLeastOneWasmFrameWithImage =
|
|
22
|
-
hasAtLeastOneWasmFrameWithImage || patchFrames(exception.stacktrace.frames);
|
|
22
|
+
hasAtLeastOneWasmFrameWithImage || patchFrames(exception.stacktrace.frames, options.applicationKey);
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
25
|
}
|
|
@@ -38,13 +38,17 @@ const wasmIntegration = core.defineIntegration(_wasmIntegration);
|
|
|
38
38
|
|
|
39
39
|
const PARSER_REGEX = /^(.*?):wasm-function\[\d+\]:(0x[a-fA-F0-9]+)$/;
|
|
40
40
|
|
|
41
|
+
// We use the same prefix as bundler plugins so that thirdPartyErrorFilterIntegration
|
|
42
|
+
// recognizes WASM frames as first-party code without needing modifications.
|
|
43
|
+
const BUNDLER_PLUGIN_APP_KEY_PREFIX = '_sentryBundlerPluginAppKey:';
|
|
44
|
+
|
|
41
45
|
/**
|
|
42
46
|
* Patches a list of stackframes with wasm data needed for server-side symbolication
|
|
43
47
|
* if applicable. Returns true if the provided list of stack frames had at least one
|
|
44
48
|
* matching registered image.
|
|
45
49
|
*/
|
|
46
50
|
// Only exported for tests
|
|
47
|
-
function patchFrames(frames) {
|
|
51
|
+
function patchFrames(frames, applicationKey) {
|
|
48
52
|
let hasAtLeastOneWasmFrameWithImage = false;
|
|
49
53
|
frames.forEach(frame => {
|
|
50
54
|
if (!frame.filename) {
|
|
@@ -72,6 +76,13 @@ function patchFrames(frames) {
|
|
|
72
76
|
frame.filename = match[1];
|
|
73
77
|
frame.platform = 'native';
|
|
74
78
|
|
|
79
|
+
if (applicationKey) {
|
|
80
|
+
frame.module_metadata = {
|
|
81
|
+
...frame.module_metadata,
|
|
82
|
+
[`${BUNDLER_PLUGIN_APP_KEY_PREFIX}${applicationKey}`]: true,
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
75
86
|
if (index >= 0) {
|
|
76
87
|
frame.addr_mode = `rel:${index}`;
|
|
77
88
|
hasAtLeastOneWasmFrameWithImage = true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/index.ts"],"sourcesContent":["import type { Event, IntegrationFn, StackFrame } from '@sentry/core';\nimport { defineIntegration } from '@sentry/core';\nimport { patchWebAssembly } from './patchWebAssembly';\nimport { getImage, getImages } from './registry';\n\nconst INTEGRATION_NAME = 'Wasm';\n\nconst _wasmIntegration = (() => {\n return {\n name: INTEGRATION_NAME,\n setupOnce() {\n patchWebAssembly();\n },\n processEvent(event: Event): Event {\n let hasAtLeastOneWasmFrameWithImage = false;\n\n if (event.exception?.values) {\n event.exception.values.forEach(exception => {\n if (exception.stacktrace?.frames) {\n hasAtLeastOneWasmFrameWithImage =\n hasAtLeastOneWasmFrameWithImage || patchFrames(exception.stacktrace.frames);\n }\n });\n }\n\n if (hasAtLeastOneWasmFrameWithImage) {\n event.debug_meta = event.debug_meta || {};\n event.debug_meta.images = [...(event.debug_meta.images || []), ...getImages()];\n }\n\n return event;\n },\n };\n}) satisfies IntegrationFn;\n\nexport const wasmIntegration = defineIntegration(_wasmIntegration);\n\nconst PARSER_REGEX = /^(.*?):wasm-function\\[\\d+\\]:(0x[a-fA-F0-9]+)$/;\n\n/**\n * Patches a list of stackframes with wasm data needed for server-side symbolication\n * if applicable. Returns true if the provided list of stack frames had at least one\n * matching registered image.\n */\n// Only exported for tests\nexport function patchFrames(frames: Array<StackFrame
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/index.ts"],"sourcesContent":["import type { Event, IntegrationFn, StackFrame } from '@sentry/core';\nimport { defineIntegration } from '@sentry/core';\nimport { patchWebAssembly } from './patchWebAssembly';\nimport { getImage, getImages } from './registry';\n\nconst INTEGRATION_NAME = 'Wasm';\n\ninterface WasmIntegrationOptions {\n /**\n * Key to identify this application for third-party error filtering.\n * This key should match one of the keys provided to the `filterKeys` option\n * of the `thirdPartyErrorFilterIntegration`.\n */\n applicationKey?: string;\n}\n\nconst _wasmIntegration = ((options: WasmIntegrationOptions = {}) => {\n return {\n name: INTEGRATION_NAME,\n setupOnce() {\n patchWebAssembly();\n },\n processEvent(event: Event): Event {\n let hasAtLeastOneWasmFrameWithImage = false;\n\n if (event.exception?.values) {\n event.exception.values.forEach(exception => {\n if (exception.stacktrace?.frames) {\n hasAtLeastOneWasmFrameWithImage =\n hasAtLeastOneWasmFrameWithImage || patchFrames(exception.stacktrace.frames, options.applicationKey);\n }\n });\n }\n\n if (hasAtLeastOneWasmFrameWithImage) {\n event.debug_meta = event.debug_meta || {};\n event.debug_meta.images = [...(event.debug_meta.images || []), ...getImages()];\n }\n\n return event;\n },\n };\n}) satisfies IntegrationFn;\n\nexport const wasmIntegration = defineIntegration(_wasmIntegration);\n\nconst PARSER_REGEX = /^(.*?):wasm-function\\[\\d+\\]:(0x[a-fA-F0-9]+)$/;\n\n// We use the same prefix as bundler plugins so that thirdPartyErrorFilterIntegration\n// recognizes WASM frames as first-party code without needing modifications.\nconst BUNDLER_PLUGIN_APP_KEY_PREFIX = '_sentryBundlerPluginAppKey:';\n\n/**\n * Patches a list of stackframes with wasm data needed for server-side symbolication\n * if applicable. Returns true if the provided list of stack frames had at least one\n * matching registered image.\n */\n// Only exported for tests\nexport function patchFrames(frames: Array<StackFrame>, applicationKey?: string): boolean {\n let hasAtLeastOneWasmFrameWithImage = false;\n frames.forEach(frame => {\n if (!frame.filename) {\n return;\n }\n\n const split = frame.filename.split('(');\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n const lastSplit = split[split.length - 1]!;\n\n // Let's call this first match a \"messy match\".\n // The browser stacktrace parser spits out frames that have a filename like this: \"int) const (http://localhost:8001/main.wasm:wasm-function[190]:0x5aeb\"\n // It contains some leftover mess because wasm stack frames are more complicated than our parser can handle: \"at MyClass::bar(int) const (http://localhost:8001/main.wasm:wasm-function[190]:0x5aeb)\"\n // This first match simply tries to mitigate the mess up until the first opening parens.\n // The match afterwards is a sensible fallback\n let match = lastSplit.match(PARSER_REGEX) as null | [string, string, string];\n\n if (!match) {\n match = frame.filename.match(PARSER_REGEX) as null | [string, string, string];\n }\n\n if (match) {\n const index = getImage(match[1]);\n frame.instruction_addr = match[2];\n frame.filename = match[1];\n frame.platform = 'native';\n\n if (applicationKey) {\n frame.module_metadata = {\n ...frame.module_metadata,\n [`${BUNDLER_PLUGIN_APP_KEY_PREFIX}${applicationKey}`]: true,\n };\n }\n\n if (index >= 0) {\n frame.addr_mode = `rel:${index}`;\n hasAtLeastOneWasmFrameWithImage = true;\n }\n }\n });\n\n return hasAtLeastOneWasmFrameWithImage;\n}\n"],"names":["patchWebAssembly","getImages","defineIntegration","getImage"],"mappings":";;;;;;AAKA,MAAM,gBAAA,GAAmB,MAAM;;AAW/B,MAAM,gBAAA,IAAoB,CAAC,OAAO,GAA2B,EAAE,KAAK;AACpE,EAAE,OAAO;AACT,IAAI,IAAI,EAAE,g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,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC;AAC3C;AACA,IAAI,MAAM,SAAA,GAAY,KAAK,CAAC,KAAK,CAAC,MAAA,GAAS,CAAC,CAAC;;AAE7C;AACA;AACA;AACA;AACA;AACA,IAAI,IAAI,QAAQ,SAAS,CAAC,KAAK,CAAC,YAAY,CAAA;;AAE5C,IAAI,IAAI,CAAC,KAAK,EAAE;AAChB,MAAM,KAAA,GAAQ,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,YAAY,CAAA;AAC/C,IAAI;;AAEJ,IAAI,IAAI,KAAK,EAAE;AACf,MAAM,MAAM,QAAQC,iBAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AACtC,MAAM,KAAK,CAAC,gBAAA,GAAmB,KAAK,CAAC,CAAC,CAAC;AACvC,MAAM,KAAK,CAAC,QAAA,GAAW,KAAK,CAAC,CAAC,CAAC;AAC/B,MAAM,KAAK,CAAC,QAAA,GAAW,QAAQ;;AAE/B,MAAM,IAAI,cAAc,EAAE;AAC1B,QAAQ,KAAK,CAAC,eAAA,GAAkB;AAChC,UAAU,GAAG,KAAK,CAAC,eAAe;AAClC,UAAU,CAAC,CAAC,EAAA,6BAAA,CAAA,EAAA,cAAA,CAAA,CAAA,GAAA,IAAA;AACA,SAAA;AACA,MAAA;;AAEA,MAAA,IAAA,KAAA,IAAA,CAAA,EAAA;AACA,QAAA,KAAA,CAAA,SAAA,GAAA,CAAA,IAAA,EAAA,KAAA,CAAA,CAAA;AACA,QAAA,+BAAA,GAAA,IAAA;AACA,MAAA;AACA,IAAA;AACA,EAAA,CAAA,CAAA;;AAEA,EAAA,OAAA,+BAAA;AACA;;;;;"}
|
package/build/npm/esm/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { getImages, getImage } from './registry.js';
|
|
|
4
4
|
|
|
5
5
|
const INTEGRATION_NAME = 'Wasm';
|
|
6
6
|
|
|
7
|
-
const _wasmIntegration = (() => {
|
|
7
|
+
const _wasmIntegration = ((options = {}) => {
|
|
8
8
|
return {
|
|
9
9
|
name: INTEGRATION_NAME,
|
|
10
10
|
setupOnce() {
|
|
@@ -17,7 +17,7 @@ const _wasmIntegration = (() => {
|
|
|
17
17
|
event.exception.values.forEach(exception => {
|
|
18
18
|
if (exception.stacktrace?.frames) {
|
|
19
19
|
hasAtLeastOneWasmFrameWithImage =
|
|
20
|
-
hasAtLeastOneWasmFrameWithImage || patchFrames(exception.stacktrace.frames);
|
|
20
|
+
hasAtLeastOneWasmFrameWithImage || patchFrames(exception.stacktrace.frames, options.applicationKey);
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
23
|
}
|
|
@@ -36,13 +36,17 @@ const wasmIntegration = defineIntegration(_wasmIntegration);
|
|
|
36
36
|
|
|
37
37
|
const PARSER_REGEX = /^(.*?):wasm-function\[\d+\]:(0x[a-fA-F0-9]+)$/;
|
|
38
38
|
|
|
39
|
+
// We use the same prefix as bundler plugins so that thirdPartyErrorFilterIntegration
|
|
40
|
+
// recognizes WASM frames as first-party code without needing modifications.
|
|
41
|
+
const BUNDLER_PLUGIN_APP_KEY_PREFIX = '_sentryBundlerPluginAppKey:';
|
|
42
|
+
|
|
39
43
|
/**
|
|
40
44
|
* Patches a list of stackframes with wasm data needed for server-side symbolication
|
|
41
45
|
* if applicable. Returns true if the provided list of stack frames had at least one
|
|
42
46
|
* matching registered image.
|
|
43
47
|
*/
|
|
44
48
|
// Only exported for tests
|
|
45
|
-
function patchFrames(frames) {
|
|
49
|
+
function patchFrames(frames, applicationKey) {
|
|
46
50
|
let hasAtLeastOneWasmFrameWithImage = false;
|
|
47
51
|
frames.forEach(frame => {
|
|
48
52
|
if (!frame.filename) {
|
|
@@ -70,6 +74,13 @@ function patchFrames(frames) {
|
|
|
70
74
|
frame.filename = match[1];
|
|
71
75
|
frame.platform = 'native';
|
|
72
76
|
|
|
77
|
+
if (applicationKey) {
|
|
78
|
+
frame.module_metadata = {
|
|
79
|
+
...frame.module_metadata,
|
|
80
|
+
[`${BUNDLER_PLUGIN_APP_KEY_PREFIX}${applicationKey}`]: true,
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
73
84
|
if (index >= 0) {
|
|
74
85
|
frame.addr_mode = `rel:${index}`;
|
|
75
86
|
hasAtLeastOneWasmFrameWithImage = true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/index.ts"],"sourcesContent":["import type { Event, IntegrationFn, StackFrame } from '@sentry/core';\nimport { defineIntegration } from '@sentry/core';\nimport { patchWebAssembly } from './patchWebAssembly';\nimport { getImage, getImages } from './registry';\n\nconst INTEGRATION_NAME = 'Wasm';\n\nconst _wasmIntegration = (() => {\n return {\n name: INTEGRATION_NAME,\n setupOnce() {\n patchWebAssembly();\n },\n processEvent(event: Event): Event {\n let hasAtLeastOneWasmFrameWithImage = false;\n\n if (event.exception?.values) {\n event.exception.values.forEach(exception => {\n if (exception.stacktrace?.frames) {\n hasAtLeastOneWasmFrameWithImage =\n hasAtLeastOneWasmFrameWithImage || patchFrames(exception.stacktrace.frames);\n }\n });\n }\n\n if (hasAtLeastOneWasmFrameWithImage) {\n event.debug_meta = event.debug_meta || {};\n event.debug_meta.images = [...(event.debug_meta.images || []), ...getImages()];\n }\n\n return event;\n },\n };\n}) satisfies IntegrationFn;\n\nexport const wasmIntegration = defineIntegration(_wasmIntegration);\n\nconst PARSER_REGEX = /^(.*?):wasm-function\\[\\d+\\]:(0x[a-fA-F0-9]+)$/;\n\n/**\n * Patches a list of stackframes with wasm data needed for server-side symbolication\n * if applicable. Returns true if the provided list of stack frames had at least one\n * matching registered image.\n */\n// Only exported for tests\nexport function patchFrames(frames: Array<StackFrame
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/index.ts"],"sourcesContent":["import type { Event, IntegrationFn, StackFrame } from '@sentry/core';\nimport { defineIntegration } from '@sentry/core';\nimport { patchWebAssembly } from './patchWebAssembly';\nimport { getImage, getImages } from './registry';\n\nconst INTEGRATION_NAME = 'Wasm';\n\ninterface WasmIntegrationOptions {\n /**\n * Key to identify this application for third-party error filtering.\n * This key should match one of the keys provided to the `filterKeys` option\n * of the `thirdPartyErrorFilterIntegration`.\n */\n applicationKey?: string;\n}\n\nconst _wasmIntegration = ((options: WasmIntegrationOptions = {}) => {\n return {\n name: INTEGRATION_NAME,\n setupOnce() {\n patchWebAssembly();\n },\n processEvent(event: Event): Event {\n let hasAtLeastOneWasmFrameWithImage = false;\n\n if (event.exception?.values) {\n event.exception.values.forEach(exception => {\n if (exception.stacktrace?.frames) {\n hasAtLeastOneWasmFrameWithImage =\n hasAtLeastOneWasmFrameWithImage || patchFrames(exception.stacktrace.frames, options.applicationKey);\n }\n });\n }\n\n if (hasAtLeastOneWasmFrameWithImage) {\n event.debug_meta = event.debug_meta || {};\n event.debug_meta.images = [...(event.debug_meta.images || []), ...getImages()];\n }\n\n return event;\n },\n };\n}) satisfies IntegrationFn;\n\nexport const wasmIntegration = defineIntegration(_wasmIntegration);\n\nconst PARSER_REGEX = /^(.*?):wasm-function\\[\\d+\\]:(0x[a-fA-F0-9]+)$/;\n\n// We use the same prefix as bundler plugins so that thirdPartyErrorFilterIntegration\n// recognizes WASM frames as first-party code without needing modifications.\nconst BUNDLER_PLUGIN_APP_KEY_PREFIX = '_sentryBundlerPluginAppKey:';\n\n/**\n * Patches a list of stackframes with wasm data needed for server-side symbolication\n * if applicable. Returns true if the provided list of stack frames had at least one\n * matching registered image.\n */\n// Only exported for tests\nexport function patchFrames(frames: Array<StackFrame>, applicationKey?: string): boolean {\n let hasAtLeastOneWasmFrameWithImage = false;\n frames.forEach(frame => {\n if (!frame.filename) {\n return;\n }\n\n const split = frame.filename.split('(');\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n const lastSplit = split[split.length - 1]!;\n\n // Let's call this first match a \"messy match\".\n // The browser stacktrace parser spits out frames that have a filename like this: \"int) const (http://localhost:8001/main.wasm:wasm-function[190]:0x5aeb\"\n // It contains some leftover mess because wasm stack frames are more complicated than our parser can handle: \"at MyClass::bar(int) const (http://localhost:8001/main.wasm:wasm-function[190]:0x5aeb)\"\n // This first match simply tries to mitigate the mess up until the first opening parens.\n // The match afterwards is a sensible fallback\n let match = lastSplit.match(PARSER_REGEX) as null | [string, string, string];\n\n if (!match) {\n match = frame.filename.match(PARSER_REGEX) as null | [string, string, string];\n }\n\n if (match) {\n const index = getImage(match[1]);\n frame.instruction_addr = match[2];\n frame.filename = match[1];\n frame.platform = 'native';\n\n if (applicationKey) {\n frame.module_metadata = {\n ...frame.module_metadata,\n [`${BUNDLER_PLUGIN_APP_KEY_PREFIX}${applicationKey}`]: true,\n };\n }\n\n if (index >= 0) {\n frame.addr_mode = `rel:${index}`;\n hasAtLeastOneWasmFrameWithImage = true;\n }\n }\n });\n\n return hasAtLeastOneWasmFrameWithImage;\n}\n"],"names":[],"mappings":";;;;AAKA,MAAM,gBAAA,GAAmB,MAAM;;AAW/B,MAAM,gBAAA,IAAoB,CAAC,OAAO,GAA2B,EAAE,KAAK;AACpE,EAAE,OAAO;AACT,IAAI,IAAI,EAAE,gBAAgB;AAC1B,IAAI,SAAS,GAAG;AAChB,MAAM,gBAAgB,EAAE;AACxB,IAAI,CAAC;AACL,IAAI,YAAY,CAAC,KAAK,EAAgB;AACtC,MAAM,IAAI,+BAAA,GAAkC,KAAK;;AAEjD,MAAM,IAAI,KAAK,CAAC,SAAS,EAAE,MAAM,EAAE;AACnC,QAAQ,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,SAAA,IAAa;AACpD,UAAU,IAAI,SAAS,CAAC,UAAU,EAAE,MAAM,EAAE;AAC5C,YAAY,+BAAA;AACZ,cAAc,+BAAA,IAAmC,WAAW,CAAC,SAAS,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,CAAC,cAAc,CAAC;AACjH,UAAU;AACV,QAAQ,CAAC,CAAC;AACV,MAAM;;AAEN,MAAM,IAAI,+BAA+B,EAAE;AAC3C,QAAQ,KAAK,C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C/B,MAAM,KAAK,CAAC,QAAA,GAAW,QAAQ;;AAE/B,MAAM,IAAI,cAAc,EAAE;AAC1B,QAAQ,KAAK,CAAC,eAAA,GAAkB;AAChC,UAAU,GAAG,KAAK,CAAC,eAAe;AAClC,UAAU,CAAC,CAAC,EAAA,6BAAA,CAAA,EAAA,cAAA,CAAA,CAAA,GAAA,IAAA;AACA,SAAA;AACA,MAAA;;AAEA,MAAA,IAAA,KAAA,IAAA,CAAA,EAAA;AACA,QAAA,KAAA,CAAA,SAAA,GAAA,CAAA,IAAA,EAAA,KAAA,CAAA,CAAA;AACA,QAAA,+BAAA,GAAA,IAAA;AACA,MAAA;AACA,IAAA;AACA,EAAA,CAAA,CAAA;;AAEA,EAAA,OAAA,+BAAA;AACA;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"type":"module","version":"10.
|
|
1
|
+
{"type":"module","version":"10.33.0","sideEffects":false}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import type { StackFrame } from '@sentry/core';
|
|
2
|
-
|
|
2
|
+
interface WasmIntegrationOptions {
|
|
3
|
+
/**
|
|
4
|
+
* Key to identify this application for third-party error filtering.
|
|
5
|
+
* This key should match one of the keys provided to the `filterKeys` option
|
|
6
|
+
* of the `thirdPartyErrorFilterIntegration`.
|
|
7
|
+
*/
|
|
8
|
+
applicationKey?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const wasmIntegration: (options?: WasmIntegrationOptions | undefined) => import("@sentry/core").Integration;
|
|
3
11
|
/**
|
|
4
12
|
* Patches a list of stackframes with wasm data needed for server-side symbolication
|
|
5
13
|
* if applicable. Returns true if the provided list of stack frames had at least one
|
|
6
14
|
* matching registered image.
|
|
7
15
|
*/
|
|
8
|
-
export declare function patchFrames(frames: Array<StackFrame
|
|
16
|
+
export declare function patchFrames(frames: Array<StackFrame>, applicationKey?: string): boolean;
|
|
17
|
+
export {};
|
|
9
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAwB,UAAU,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAwB,UAAU,EAAE,MAAM,cAAc,CAAC;AAOrE,UAAU,sBAAsB;IAC9B;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AA8BD,eAAO,MAAM,eAAe,sFAAsC,CAAC;AAQnE;;;;GAIG;AAEH,wBAAgB,WAAW,CAAC,MAAM,EAAE,KAAK,CAAC,UAAU,CAAC,EAAE,cAAc,CAAC,EAAE,MAAM,GAAG,OAAO,CA2CvF"}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { StackFrame } from '@sentry/core';
|
|
2
|
-
|
|
2
|
+
interface WasmIntegrationOptions {
|
|
3
|
+
/**
|
|
4
|
+
* Key to identify this application for third-party error filtering.
|
|
5
|
+
* This key should match one of the keys provided to the `filterKeys` option
|
|
6
|
+
* of the `thirdPartyErrorFilterIntegration`.
|
|
7
|
+
*/
|
|
8
|
+
applicationKey?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const wasmIntegration: (options?: WasmIntegrationOptions | undefined) => import("@sentry/core").Integration;
|
|
3
11
|
/**
|
|
4
12
|
* Patches a list of stackframes with wasm data needed for server-side symbolication
|
|
5
13
|
* if applicable. Returns true if the provided list of stack frames had at least one
|
|
6
14
|
* matching registered image.
|
|
7
15
|
*/
|
|
8
|
-
export declare function patchFrames(frames: Array<StackFrame
|
|
16
|
+
export declare function patchFrames(frames: Array<StackFrame>, applicationKey?: string): boolean;
|
|
17
|
+
export {};
|
|
9
18
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/wasm",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.33.0",
|
|
4
4
|
"description": "Support for WASM.",
|
|
5
5
|
"repository": "git://github.com/getsentry/sentry-javascript.git",
|
|
6
6
|
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/wasm",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@sentry/browser": "10.
|
|
43
|
-
"@sentry/core": "10.
|
|
42
|
+
"@sentry/browser": "10.33.0",
|
|
43
|
+
"@sentry/core": "10.33.0"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"build": "run-p build:transpile build:bundle build:types",
|