@sentry/wasm 7.15.0 → 7.17.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/LICENSE +11 -26
- package/cjs/index.js +4 -4
- package/cjs/index.js.map +1 -1
- package/cjs/patchWebAssembly.js +3 -3
- package/cjs/patchWebAssembly.js.map +1 -1
- package/cjs/registry.js +7 -7
- package/cjs/registry.js.map +1 -1
- package/esm/index.js +2 -2
- package/esm/index.js.map +1 -1
- package/esm/patchWebAssembly.js +2 -2
- package/esm/patchWebAssembly.js.map +1 -1
- package/esm/registry.js +7 -7
- package/esm/registry.js.map +1 -1
- package/package.json +4 -4
package/LICENSE
CHANGED
|
@@ -1,29 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
Copyright (c) 2021 Sentry (https://sentry.io) and individual contributors. All rights reserved.
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
|
4
|
+
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
|
|
5
|
+
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
6
|
+
persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
5
7
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
|
|
9
|
+
Software.
|
|
8
10
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
this list of conditions and the following disclaimer in the documentation
|
|
14
|
-
and/or other materials provided with the distribution.
|
|
15
|
-
|
|
16
|
-
* Neither the name of the copyright holder nor the names of its
|
|
17
|
-
contributors may be used to endorse or promote products derived from
|
|
18
|
-
this software without specific prior written permission.
|
|
19
|
-
|
|
20
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
21
|
-
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
22
|
-
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
23
|
-
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
24
|
-
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
25
|
-
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
26
|
-
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
27
|
-
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
28
|
-
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
29
|
-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
11
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
|
|
12
|
+
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
13
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
14
|
+
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/cjs/index.js
CHANGED
|
@@ -4,8 +4,8 @@ var {
|
|
|
4
4
|
|
|
5
5
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const patchWebAssembly = require('./patchWebAssembly.js');
|
|
8
|
+
const registry = require('./registry.js');
|
|
9
9
|
|
|
10
10
|
/** plz don't */
|
|
11
11
|
function patchFrames(frames) {
|
|
@@ -14,9 +14,9 @@ function patchFrames(frames) {
|
|
|
14
14
|
if (!frame.filename) {
|
|
15
15
|
return;
|
|
16
16
|
}
|
|
17
|
-
|
|
17
|
+
const match = frame.filename.match(/^(.*?):wasm-function\[\d+\]:(0x[a-fA-F0-9]+)$/);
|
|
18
18
|
if (match !== null) {
|
|
19
|
-
|
|
19
|
+
const index = registry.getImage(match[1]);
|
|
20
20
|
if (index >= 0) {
|
|
21
21
|
frame.instruction_addr = match[2];
|
|
22
22
|
frame.addr_mode = `rel:${index}`;
|
package/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/index.ts"],"sourcesContent":["import { Event, EventProcessor, Hub, Integration, StackFrame } from '@sentry/types';\n\nimport { patchWebAssembly } from './patchWebAssembly';\nimport { getImage, getImages } from './registry';\n\n/** plz don't */\nfunction patchFrames(frames: Array<StackFrame>): boolean {\n let haveWasm = false;\n frames.forEach(frame => {\n if (!frame.filename) {\n return;\n }\n const match = frame.filename.match(/^(.*?):wasm-function\\[\\d+\\]:(0x[a-fA-F0-9]+)$/);\n if (match !== null) {\n const index = getImage(match[1]);\n if (index >= 0) {\n frame.instruction_addr = match[2];\n frame.addr_mode = `rel:${index}`;\n frame.filename = match[1];\n frame.platform = 'native';\n haveWasm = true;\n }\n }\n });\n return haveWasm;\n}\n\n/**\n * Process WASM stack traces to support server-side symbolication.\n *\n * This also hooks the WebAssembly loading browser API so that module\n * registraitons are intercepted.\n */\nexport class Wasm implements Integration {\n /**\n * @inheritDoc\n */\n public static id: string = 'Wasm';\n\n /**\n * @inheritDoc\n */\n public name: string = Wasm.id;\n\n /**\n * @inheritDoc\n */\n public setupOnce(addGlobalEventProcessor: (callback: EventProcessor) => void, _getCurrentHub: () => Hub): void {\n patchWebAssembly();\n\n addGlobalEventProcessor((event: Event) => {\n let haveWasm = false;\n\n if (event.exception && event.exception.values) {\n event.exception.values.forEach(exception => {\n if (exception?.stacktrace?.frames) {\n haveWasm = haveWasm || patchFrames(exception.stacktrace.frames);\n }\n });\n }\n\n if (haveWasm) {\n event.debug_meta = event.debug_meta || {};\n event.debug_meta.images = getImages();\n }\n\n return event;\n });\n }\n}\n"],"names":[],"mappings":";;;;;;;;;AAKA;AACA
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/index.ts"],"sourcesContent":["import { Event, EventProcessor, Hub, Integration, StackFrame } from '@sentry/types';\n\nimport { patchWebAssembly } from './patchWebAssembly';\nimport { getImage, getImages } from './registry';\n\n/** plz don't */\nfunction patchFrames(frames: Array<StackFrame>): boolean {\n let haveWasm = false;\n frames.forEach(frame => {\n if (!frame.filename) {\n return;\n }\n const match = frame.filename.match(/^(.*?):wasm-function\\[\\d+\\]:(0x[a-fA-F0-9]+)$/);\n if (match !== null) {\n const index = getImage(match[1]);\n if (index >= 0) {\n frame.instruction_addr = match[2];\n frame.addr_mode = `rel:${index}`;\n frame.filename = match[1];\n frame.platform = 'native';\n haveWasm = true;\n }\n }\n });\n return haveWasm;\n}\n\n/**\n * Process WASM stack traces to support server-side symbolication.\n *\n * This also hooks the WebAssembly loading browser API so that module\n * registraitons are intercepted.\n */\nexport class Wasm implements Integration {\n /**\n * @inheritDoc\n */\n public static id: string = 'Wasm';\n\n /**\n * @inheritDoc\n */\n public name: string = Wasm.id;\n\n /**\n * @inheritDoc\n */\n public setupOnce(addGlobalEventProcessor: (callback: EventProcessor) => void, _getCurrentHub: () => Hub): void {\n patchWebAssembly();\n\n addGlobalEventProcessor((event: Event) => {\n let haveWasm = false;\n\n if (event.exception && event.exception.values) {\n event.exception.values.forEach(exception => {\n if (exception?.stacktrace?.frames) {\n haveWasm = haveWasm || patchFrames(exception.stacktrace.frames);\n }\n });\n }\n\n if (haveWasm) {\n event.debug_meta = event.debug_meta || {};\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EAAA;QACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,EAAA,KAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;QACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,OAAAC,EAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA,EAAA;MACA;;MAEA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,KAAA;IACA,CAAA,CAAA;EACA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;;"}
|
package/cjs/patchWebAssembly.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
const registry = require('./registry.js');
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Patches the web assembly runtime.
|
|
7
7
|
*/
|
|
8
8
|
function patchWebAssembly() {
|
|
9
9
|
if ('instantiateStreaming' in WebAssembly) {
|
|
10
|
-
|
|
10
|
+
const origInstantiateStreaming = WebAssembly.instantiateStreaming;
|
|
11
11
|
WebAssembly.instantiateStreaming = function instantiateStreaming(
|
|
12
12
|
response,
|
|
13
13
|
importObject,
|
|
@@ -24,7 +24,7 @@ function patchWebAssembly() {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
if ('compileStreaming' in WebAssembly) {
|
|
27
|
-
|
|
27
|
+
const origCompileStreaming = WebAssembly.compileStreaming;
|
|
28
28
|
WebAssembly.compileStreaming = function compileStreaming(
|
|
29
29
|
source,
|
|
30
30
|
) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patchWebAssembly.js","sources":["../../../src/patchWebAssembly.ts"],"sourcesContent":["import { registerModule } from './registry';\n\n/**\n * Patches the web assembly runtime.\n */\nexport function patchWebAssembly(): void {\n if ('instantiateStreaming' in WebAssembly) {\n const origInstantiateStreaming = WebAssembly.instantiateStreaming;\n WebAssembly.instantiateStreaming = function instantiateStreaming(\n response: Response | PromiseLike<Response>,\n importObject: WebAssembly.Imports,\n ): Promise<WebAssembly.Module> {\n return Promise.resolve(response).then(response => {\n return origInstantiateStreaming(response, importObject).then(rv => {\n if (response.url) {\n registerModule(rv.module, response.url);\n }\n return rv;\n });\n });\n } as typeof WebAssembly.instantiateStreaming;\n }\n\n if ('compileStreaming' in WebAssembly) {\n const origCompileStreaming = WebAssembly.compileStreaming;\n WebAssembly.compileStreaming = function compileStreaming(\n source: Response | Promise<Response>,\n ): Promise<WebAssembly.Module> {\n return Promise.resolve(source).then(response => {\n return origCompileStreaming(response).then(module => {\n if (response.url) {\n registerModule(module, response.url);\n }\n return module;\n });\n });\n } as typeof WebAssembly.compileStreaming;\n }\n}\n"],"names":[],"mappings":";;;;AAEA;AACA;AACA
|
|
1
|
+
{"version":3,"file":"patchWebAssembly.js","sources":["../../../src/patchWebAssembly.ts"],"sourcesContent":["import { registerModule } from './registry';\n\n/**\n * Patches the web assembly runtime.\n */\nexport function patchWebAssembly(): void {\n if ('instantiateStreaming' in WebAssembly) {\n const origInstantiateStreaming = WebAssembly.instantiateStreaming;\n WebAssembly.instantiateStreaming = function instantiateStreaming(\n response: Response | PromiseLike<Response>,\n importObject: WebAssembly.Imports,\n ): Promise<WebAssembly.Module> {\n return Promise.resolve(response).then(response => {\n return origInstantiateStreaming(response, importObject).then(rv => {\n if (response.url) {\n registerModule(rv.module, response.url);\n }\n return rv;\n });\n });\n } as typeof WebAssembly.instantiateStreaming;\n }\n\n if ('compileStreaming' in WebAssembly) {\n const origCompileStreaming = WebAssembly.compileStreaming;\n WebAssembly.compileStreaming = function compileStreaming(\n source: Response | Promise<Response>,\n ): Promise<WebAssembly.Module> {\n return Promise.resolve(source).then(response => {\n return origCompileStreaming(response).then(module => {\n if (response.url) {\n registerModule(module, response.url);\n }\n return module;\n });\n });\n } as typeof WebAssembly.compileStreaming;\n }\n}\n"],"names":["registerModule"],"mappings":";;;;AAEA;AACA;AACA;AACA,SAAA,gBAAA,GAAA;AACA,EAAA,IAAA,sBAAA,IAAA,WAAA,EAAA;AACA,IAAA,MAAA,wBAAA,GAAA,WAAA,CAAA,oBAAA,CAAA;AACA,IAAA,WAAA,CAAA,oBAAA,GAAA,SAAA,oBAAA;AACA,MAAA,QAAA;AACA,MAAA,YAAA;AACA,MAAA;AACA,MAAA,OAAA,OAAA,CAAA,OAAA,CAAA,QAAA,CAAA,CAAA,IAAA,CAAA,QAAA,IAAA;AACA,QAAA,OAAA,wBAAA,CAAA,QAAA,EAAA,YAAA,CAAA,CAAA,IAAA,CAAA,EAAA,IAAA;AACA,UAAA,IAAA,QAAA,CAAA,GAAA,EAAA;AACA,YAAAA,uBAAA,CAAA,EAAA,CAAA,MAAA,EAAA,QAAA,CAAA,GAAA,CAAA,CAAA;AACA,WAAA;AACA,UAAA,OAAA,EAAA,CAAA;AACA,SAAA,CAAA,CAAA;AACA,OAAA,CAAA,CAAA;AACA,KAAA,EAAA;AACA,GAAA;AACA;AACA,EAAA,IAAA,kBAAA,IAAA,WAAA,EAAA;AACA,IAAA,MAAA,oBAAA,GAAA,WAAA,CAAA,gBAAA,CAAA;AACA,IAAA,WAAA,CAAA,gBAAA,GAAA,SAAA,gBAAA;AACA,MAAA,MAAA;AACA,MAAA;AACA,MAAA,OAAA,OAAA,CAAA,OAAA,CAAA,MAAA,CAAA,CAAA,IAAA,CAAA,QAAA,IAAA;AACA,QAAA,OAAA,oBAAA,CAAA,QAAA,CAAA,CAAA,IAAA,CAAA,MAAA,IAAA;AACA,UAAA,IAAA,QAAA,CAAA,GAAA,EAAA;AACA,YAAAA,uBAAA,CAAA,MAAA,EAAA,QAAA,CAAA,GAAA,CAAA,CAAA;AACA,WAAA;AACA,UAAA,OAAA,MAAA,CAAA;AACA,SAAA,CAAA,CAAA;AACA,OAAA,CAAA,CAAA;AACA,KAAA,EAAA;AACA,GAAA;AACA;;;;"}
|
package/cjs/registry.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
const IMAGES = [];
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Returns the extracted meta information from a web assembly module that
|
|
@@ -9,21 +9,21 @@ var IMAGES = [];
|
|
|
9
9
|
* @param module
|
|
10
10
|
*/
|
|
11
11
|
function getModuleInfo(module) {
|
|
12
|
-
|
|
12
|
+
const buildIds = WebAssembly.Module.customSections(module, 'build_id');
|
|
13
13
|
let buildId = null;
|
|
14
14
|
let debugFile = null;
|
|
15
15
|
|
|
16
16
|
if (buildIds.length > 0) {
|
|
17
|
-
|
|
17
|
+
const firstBuildId = new Uint8Array(buildIds[0]);
|
|
18
18
|
buildId = Array.from(firstBuildId).reduce((acc, x) => {
|
|
19
19
|
return acc + x.toString(16).padStart(2, '0');
|
|
20
20
|
}, '');
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
const externalDebugInfo = WebAssembly.Module.customSections(module, 'external_debug_info');
|
|
24
24
|
if (externalDebugInfo.length > 0) {
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
const firstExternalDebugInfo = new Uint8Array(externalDebugInfo[0]);
|
|
26
|
+
const decoder = new TextDecoder('utf-8');
|
|
27
27
|
debugFile = decoder.decode(firstExternalDebugInfo);
|
|
28
28
|
}
|
|
29
29
|
|
|
@@ -36,7 +36,7 @@ function getModuleInfo(module) {
|
|
|
36
36
|
function registerModule(module, url) {
|
|
37
37
|
const { buildId, debugFile } = getModuleInfo(module);
|
|
38
38
|
if (buildId) {
|
|
39
|
-
|
|
39
|
+
const oldIdx = IMAGES.findIndex(img => img.code_file === url);
|
|
40
40
|
if (oldIdx >= 0) {
|
|
41
41
|
IMAGES.splice(oldIdx, 1);
|
|
42
42
|
}
|
package/cjs/registry.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.js","sources":["../../../src/registry.ts"],"sourcesContent":["import { DebugImage } from '@sentry/types';\n\nexport const IMAGES: Array<DebugImage> = [];\n\nexport interface ModuleInfo {\n buildId: string | null;\n debugFile: string | null;\n}\n\n/**\n * Returns the extracted meta information from a web assembly module that\n * Sentry uses to identify debug images.\n *\n * @param module\n */\nexport function getModuleInfo(module: WebAssembly.Module): ModuleInfo {\n const buildIds = WebAssembly.Module.customSections(module, 'build_id');\n let buildId = null;\n let debugFile = null;\n\n if (buildIds.length > 0) {\n const firstBuildId = new Uint8Array(buildIds[0]);\n buildId = Array.from(firstBuildId).reduce((acc, x) => {\n return acc + x.toString(16).padStart(2, '0');\n }, '');\n }\n\n const externalDebugInfo = WebAssembly.Module.customSections(module, 'external_debug_info');\n if (externalDebugInfo.length > 0) {\n const firstExternalDebugInfo = new Uint8Array(externalDebugInfo[0]);\n const decoder = new TextDecoder('utf-8');\n debugFile = decoder.decode(firstExternalDebugInfo);\n }\n\n return { buildId, debugFile };\n}\n\n/**\n * Records a module\n */\nexport function registerModule(module: WebAssembly.Module, url: string): void {\n const { buildId, debugFile } = getModuleInfo(module);\n if (buildId) {\n const oldIdx = IMAGES.findIndex(img => img.code_file === url);\n if (oldIdx >= 0) {\n IMAGES.splice(oldIdx, 1);\n }\n IMAGES.push({\n type: 'wasm',\n code_id: buildId,\n code_file: url,\n debug_file: debugFile ? new URL(debugFile, url).href : null,\n debug_id: `${buildId.padEnd(32, '0').substr(0, 32)}0`,\n });\n }\n}\n\n/**\n * Returns all known images.\n */\nexport function getImages(): Array<DebugImage> {\n return IMAGES;\n}\n\n/**\n * Looks up an image by URL.\n *\n * @param url the URL of the WebAssembly module.\n */\nexport function getImage(url: string): number {\n return IMAGES.findIndex(img => img.code_file === url);\n}\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"registry.js","sources":["../../../src/registry.ts"],"sourcesContent":["import { DebugImage } from '@sentry/types';\n\nexport const IMAGES: Array<DebugImage> = [];\n\nexport interface ModuleInfo {\n buildId: string | null;\n debugFile: string | null;\n}\n\n/**\n * Returns the extracted meta information from a web assembly module that\n * Sentry uses to identify debug images.\n *\n * @param module\n */\nexport function getModuleInfo(module: WebAssembly.Module): ModuleInfo {\n const buildIds = WebAssembly.Module.customSections(module, 'build_id');\n let buildId = null;\n let debugFile = null;\n\n if (buildIds.length > 0) {\n const firstBuildId = new Uint8Array(buildIds[0]);\n buildId = Array.from(firstBuildId).reduce((acc, x) => {\n return acc + x.toString(16).padStart(2, '0');\n }, '');\n }\n\n const externalDebugInfo = WebAssembly.Module.customSections(module, 'external_debug_info');\n if (externalDebugInfo.length > 0) {\n const firstExternalDebugInfo = new Uint8Array(externalDebugInfo[0]);\n const decoder = new TextDecoder('utf-8');\n debugFile = decoder.decode(firstExternalDebugInfo);\n }\n\n return { buildId, debugFile };\n}\n\n/**\n * Records a module\n */\nexport function registerModule(module: WebAssembly.Module, url: string): void {\n const { buildId, debugFile } = getModuleInfo(module);\n if (buildId) {\n const oldIdx = IMAGES.findIndex(img => img.code_file === url);\n if (oldIdx >= 0) {\n IMAGES.splice(oldIdx, 1);\n }\n IMAGES.push({\n type: 'wasm',\n code_id: buildId,\n code_file: url,\n debug_file: debugFile ? new URL(debugFile, url).href : null,\n debug_id: `${buildId.padEnd(32, '0').substr(0, 32)}0`,\n });\n }\n}\n\n/**\n * Returns all known images.\n */\nexport function getImages(): Array<DebugImage> {\n return IMAGES;\n}\n\n/**\n * Looks up an image by URL.\n *\n * @param url the URL of the WebAssembly module.\n */\nexport function getImage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A,MAAA,EAAA,GAAA,EAAA;AACA,EAAA,MAAA,EAAA,OAAA,EAAA,SAAA,EAAA,GAAA,aAAA,CAAA,MAAA,CAAA,CAAA;AACA,EAAA,IAAA,OAAA,EAAA;AACA,IAAA,MAAA,MAAA,GAAA,MAAA,CAAA,SAAA,CAAA,GAAA,IAAA,GAAA,CAAA,SAAA,KAAA,GAAA,CAAA,CAAA;AACA,IAAA,IAAA,MAAA,IAAA,CAAA,EAAA;AACA,MAAA,MAAA,CAAA,MAAA,CAAA,MAAA,EAAA,CAAA,CAAA,CAAA;AACA,KAAA;AACA,IAAA,MAAA,CAAA,IAAA,CAAA;AACA,MAAA,IAAA,EAAA,MAAA;AACA,MAAA,OAAA,EAAA,OAAA;AACA,MAAA,SAAA,EAAA,GAAA;AACA,MAAA,UAAA,EAAA,SAAA,GAAA,IAAA,GAAA,CAAA,SAAA,EAAA,GAAA,CAAA,CAAA,IAAA,GAAA,IAAA;AACA,MAAA,QAAA,EAAA,CAAA,EAAA,OAAA,CAAA,MAAA,CAAA,EAAA,EAAA,GAAA,CAAA,CAAA,MAAA,CAAA,CAAA,EAAA,EAAA,CAAA,CAAA,CAAA,CAAA;AACA,KAAA,CAAA,CAAA;AACA,GAAA;AACA,CAAA;AACA;AACA;AACA;AACA;AACA,SAAA,SAAA,GAAA;AACA,EAAA,OAAA,MAAA,CAAA;AACA,CAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAA,QAAA,CAAA,GAAA,EAAA;AACA,EAAA,OAAA,MAAA,CAAA,SAAA,CAAA,GAAA,IAAA,GAAA,CAAA,SAAA,KAAA,GAAA,CAAA,CAAA;AACA;;;;;;;;"}
|
package/esm/index.js
CHANGED
|
@@ -9,9 +9,9 @@ function patchFrames(frames) {
|
|
|
9
9
|
if (!frame.filename) {
|
|
10
10
|
return;
|
|
11
11
|
}
|
|
12
|
-
|
|
12
|
+
const match = frame.filename.match(/^(.*?):wasm-function\[\d+\]:(0x[a-fA-F0-9]+)$/);
|
|
13
13
|
if (match !== null) {
|
|
14
|
-
|
|
14
|
+
const index = getImage(match[1]);
|
|
15
15
|
if (index >= 0) {
|
|
16
16
|
frame.instruction_addr = match[2];
|
|
17
17
|
frame.addr_mode = `rel:${index}`;
|
package/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/index.ts"],"sourcesContent":["import { Event, EventProcessor, Hub, Integration, StackFrame } from '@sentry/types';\n\nimport { patchWebAssembly } from './patchWebAssembly';\nimport { getImage, getImages } from './registry';\n\n/** plz don't */\nfunction patchFrames(frames: Array<StackFrame>): boolean {\n let haveWasm = false;\n frames.forEach(frame => {\n if (!frame.filename) {\n return;\n }\n const match = frame.filename.match(/^(.*?):wasm-function\\[\\d+\\]:(0x[a-fA-F0-9]+)$/);\n if (match !== null) {\n const index = getImage(match[1]);\n if (index >= 0) {\n frame.instruction_addr = match[2];\n frame.addr_mode = `rel:${index}`;\n frame.filename = match[1];\n frame.platform = 'native';\n haveWasm = true;\n }\n }\n });\n return haveWasm;\n}\n\n/**\n * Process WASM stack traces to support server-side symbolication.\n *\n * This also hooks the WebAssembly loading browser API so that module\n * registraitons are intercepted.\n */\nexport class Wasm implements Integration {\n /**\n * @inheritDoc\n */\n public static id: string = 'Wasm';\n\n /**\n * @inheritDoc\n */\n public name: string = Wasm.id;\n\n /**\n * @inheritDoc\n */\n public setupOnce(addGlobalEventProcessor: (callback: EventProcessor) => void, _getCurrentHub: () => Hub): void {\n patchWebAssembly();\n\n addGlobalEventProcessor((event: Event) => {\n let haveWasm = false;\n\n if (event.exception && event.exception.values) {\n event.exception.values.forEach(exception => {\n if (exception?.stacktrace?.frames) {\n haveWasm = haveWasm || patchFrames(exception.stacktrace.frames);\n }\n });\n }\n\n if (haveWasm) {\n event.debug_meta = event.debug_meta || {};\n event.debug_meta.images = getImages();\n }\n\n return event;\n });\n }\n}\n"],"names":[],"mappings":";;;;AAKA;AACA
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/index.ts"],"sourcesContent":["import { Event, EventProcessor, Hub, Integration, StackFrame } from '@sentry/types';\n\nimport { patchWebAssembly } from './patchWebAssembly';\nimport { getImage, getImages } from './registry';\n\n/** plz don't */\nfunction patchFrames(frames: Array<StackFrame>): boolean {\n let haveWasm = false;\n frames.forEach(frame => {\n if (!frame.filename) {\n return;\n }\n const match = frame.filename.match(/^(.*?):wasm-function\\[\\d+\\]:(0x[a-fA-F0-9]+)$/);\n if (match !== null) {\n const index = getImage(match[1]);\n if (index >= 0) {\n frame.instruction_addr = match[2];\n frame.addr_mode = `rel:${index}`;\n frame.filename = match[1];\n frame.platform = 'native';\n haveWasm = true;\n }\n }\n });\n return haveWasm;\n}\n\n/**\n * Process WASM stack traces to support server-side symbolication.\n *\n * This also hooks the WebAssembly loading browser API so that module\n * registraitons are intercepted.\n */\nexport class Wasm implements Integration {\n /**\n * @inheritDoc\n */\n public static id: string = 'Wasm';\n\n /**\n * @inheritDoc\n */\n public name: string = Wasm.id;\n\n /**\n * @inheritDoc\n */\n public setupOnce(addGlobalEventProcessor: (callback: EventProcessor) => void, _getCurrentHub: () => Hub): void {\n patchWebAssembly();\n\n addGlobalEventProcessor((event: Event) => {\n let haveWasm = false;\n\n if (event.exception && event.exception.values) {\n event.exception.values.forEach(exception => {\n if (exception?.stacktrace?.frames) {\n haveWasm = haveWasm || patchFrames(exception.stacktrace.frames);\n }\n });\n }\n\n if (haveWasm) {\n event.debug_meta = event.debug_meta || {};\n event.debug_meta.images = getImages();\n }\n\n return event;\n });\n }\n}\n"],"names":[],"mappings":";;;;AAKA,CAAA,CAAA,EAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAA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CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;;"}
|
package/esm/patchWebAssembly.js
CHANGED
|
@@ -5,7 +5,7 @@ import { registerModule } from './registry.js';
|
|
|
5
5
|
*/
|
|
6
6
|
function patchWebAssembly() {
|
|
7
7
|
if ('instantiateStreaming' in WebAssembly) {
|
|
8
|
-
|
|
8
|
+
const origInstantiateStreaming = WebAssembly.instantiateStreaming;
|
|
9
9
|
WebAssembly.instantiateStreaming = function instantiateStreaming(
|
|
10
10
|
response,
|
|
11
11
|
importObject,
|
|
@@ -22,7 +22,7 @@ function patchWebAssembly() {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
if ('compileStreaming' in WebAssembly) {
|
|
25
|
-
|
|
25
|
+
const origCompileStreaming = WebAssembly.compileStreaming;
|
|
26
26
|
WebAssembly.compileStreaming = function compileStreaming(
|
|
27
27
|
source,
|
|
28
28
|
) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patchWebAssembly.js","sources":["../../../src/patchWebAssembly.ts"],"sourcesContent":["import { registerModule } from './registry';\n\n/**\n * Patches the web assembly runtime.\n */\nexport function patchWebAssembly(): void {\n if ('instantiateStreaming' in WebAssembly) {\n const origInstantiateStreaming = WebAssembly.instantiateStreaming;\n WebAssembly.instantiateStreaming = function instantiateStreaming(\n response: Response | PromiseLike<Response>,\n importObject: WebAssembly.Imports,\n ): Promise<WebAssembly.Module> {\n return Promise.resolve(response).then(response => {\n return origInstantiateStreaming(response, importObject).then(rv => {\n if (response.url) {\n registerModule(rv.module, response.url);\n }\n return rv;\n });\n });\n } as typeof WebAssembly.instantiateStreaming;\n }\n\n if ('compileStreaming' in WebAssembly) {\n const origCompileStreaming = WebAssembly.compileStreaming;\n WebAssembly.compileStreaming = function compileStreaming(\n source: Response | Promise<Response>,\n ): Promise<WebAssembly.Module> {\n return Promise.resolve(source).then(response => {\n return origCompileStreaming(response).then(module => {\n if (response.url) {\n registerModule(module, response.url);\n }\n return module;\n });\n });\n } as typeof WebAssembly.compileStreaming;\n }\n}\n"],"names":[],"mappings":";;AAEA;AACA;AACA
|
|
1
|
+
{"version":3,"file":"patchWebAssembly.js","sources":["../../../src/patchWebAssembly.ts"],"sourcesContent":["import { registerModule } from './registry';\n\n/**\n * Patches the web assembly runtime.\n */\nexport function patchWebAssembly(): void {\n if ('instantiateStreaming' in WebAssembly) {\n const origInstantiateStreaming = WebAssembly.instantiateStreaming;\n WebAssembly.instantiateStreaming = function instantiateStreaming(\n response: Response | PromiseLike<Response>,\n importObject: WebAssembly.Imports,\n ): Promise<WebAssembly.Module> {\n return Promise.resolve(response).then(response => {\n return origInstantiateStreaming(response, importObject).then(rv => {\n if (response.url) {\n registerModule(rv.module, response.url);\n }\n return rv;\n });\n });\n } as typeof WebAssembly.instantiateStreaming;\n }\n\n if ('compileStreaming' in WebAssembly) {\n const origCompileStreaming = WebAssembly.compileStreaming;\n WebAssembly.compileStreaming = function compileStreaming(\n source: Response | Promise<Response>,\n ): Promise<WebAssembly.Module> {\n return Promise.resolve(source).then(response => {\n return origCompileStreaming(response).then(module => {\n if (response.url) {\n registerModule(module, response.url);\n }\n return module;\n });\n });\n } as typeof WebAssembly.compileStreaming;\n }\n}\n"],"names":[],"mappings":";;AAEA;AACA;AACA;AACA,SAAA,gBAAA,GAAA;AACA,EAAA,IAAA,sBAAA,IAAA,WAAA,EAAA;AACA,IAAA,MAAA,wBAAA,GAAA,WAAA,CAAA,oBAAA,CAAA;AACA,IAAA,WAAA,CAAA,oBAAA,GAAA,SAAA,oBAAA;AACA,MAAA,QAAA;AACA,MAAA,YAAA;AACA,MAAA;AACA,MAAA,OAAA,OAAA,CAAA,OAAA,CAAA,QAAA,CAAA,CAAA,IAAA,CAAA,QAAA,IAAA;AACA,QAAA,OAAA,wBAAA,CAAA,QAAA,EAAA,YAAA,CAAA,CAAA,IAAA,CAAA,EAAA,IAAA;AACA,UAAA,IAAA,QAAA,CAAA,GAAA,EAAA;AACA,YAAA,cAAA,CAAA,EAAA,CAAA,MAAA,EAAA,QAAA,CAAA,GAAA,CAAA,CAAA;AACA,WAAA;AACA,UAAA,OAAA,EAAA,CAAA;AACA,SAAA,CAAA,CAAA;AACA,OAAA,CAAA,CAAA;AACA,KAAA,EAAA;AACA,GAAA;AACA;AACA,EAAA,IAAA,kBAAA,IAAA,WAAA,EAAA;AACA,IAAA,MAAA,oBAAA,GAAA,WAAA,CAAA,gBAAA,CAAA;AACA,IAAA,WAAA,CAAA,gBAAA,GAAA,SAAA,gBAAA;AACA,MAAA,MAAA;AACA,MAAA;AACA,MAAA,OAAA,OAAA,CAAA,OAAA,CAAA,MAAA,CAAA,CAAA,IAAA,CAAA,QAAA,IAAA;AACA,QAAA,OAAA,oBAAA,CAAA,QAAA,CAAA,CAAA,IAAA,CAAA,MAAA,IAAA;AACA,UAAA,IAAA,QAAA,CAAA,GAAA,EAAA;AACA,YAAA,cAAA,CAAA,MAAA,EAAA,QAAA,CAAA,GAAA,CAAA,CAAA;AACA,WAAA;AACA,UAAA,OAAA,MAAA,CAAA;AACA,SAAA,CAAA,CAAA;AACA,OAAA,CAAA,CAAA;AACA,KAAA,EAAA;AACA,GAAA;AACA;;;;"}
|
package/esm/registry.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
const IMAGES = [];
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Returns the extracted meta information from a web assembly module that
|
|
@@ -7,21 +7,21 @@ var IMAGES = [];
|
|
|
7
7
|
* @param module
|
|
8
8
|
*/
|
|
9
9
|
function getModuleInfo(module) {
|
|
10
|
-
|
|
10
|
+
const buildIds = WebAssembly.Module.customSections(module, 'build_id');
|
|
11
11
|
let buildId = null;
|
|
12
12
|
let debugFile = null;
|
|
13
13
|
|
|
14
14
|
if (buildIds.length > 0) {
|
|
15
|
-
|
|
15
|
+
const firstBuildId = new Uint8Array(buildIds[0]);
|
|
16
16
|
buildId = Array.from(firstBuildId).reduce((acc, x) => {
|
|
17
17
|
return acc + x.toString(16).padStart(2, '0');
|
|
18
18
|
}, '');
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
const externalDebugInfo = WebAssembly.Module.customSections(module, 'external_debug_info');
|
|
22
22
|
if (externalDebugInfo.length > 0) {
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
const firstExternalDebugInfo = new Uint8Array(externalDebugInfo[0]);
|
|
24
|
+
const decoder = new TextDecoder('utf-8');
|
|
25
25
|
debugFile = decoder.decode(firstExternalDebugInfo);
|
|
26
26
|
}
|
|
27
27
|
|
|
@@ -34,7 +34,7 @@ function getModuleInfo(module) {
|
|
|
34
34
|
function registerModule(module, url) {
|
|
35
35
|
const { buildId, debugFile } = getModuleInfo(module);
|
|
36
36
|
if (buildId) {
|
|
37
|
-
|
|
37
|
+
const oldIdx = IMAGES.findIndex(img => img.code_file === url);
|
|
38
38
|
if (oldIdx >= 0) {
|
|
39
39
|
IMAGES.splice(oldIdx, 1);
|
|
40
40
|
}
|
package/esm/registry.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.js","sources":["../../../src/registry.ts"],"sourcesContent":["import { DebugImage } from '@sentry/types';\n\nexport const IMAGES: Array<DebugImage> = [];\n\nexport interface ModuleInfo {\n buildId: string | null;\n debugFile: string | null;\n}\n\n/**\n * Returns the extracted meta information from a web assembly module that\n * Sentry uses to identify debug images.\n *\n * @param module\n */\nexport function getModuleInfo(module: WebAssembly.Module): ModuleInfo {\n const buildIds = WebAssembly.Module.customSections(module, 'build_id');\n let buildId = null;\n let debugFile = null;\n\n if (buildIds.length > 0) {\n const firstBuildId = new Uint8Array(buildIds[0]);\n buildId = Array.from(firstBuildId).reduce((acc, x) => {\n return acc + x.toString(16).padStart(2, '0');\n }, '');\n }\n\n const externalDebugInfo = WebAssembly.Module.customSections(module, 'external_debug_info');\n if (externalDebugInfo.length > 0) {\n const firstExternalDebugInfo = new Uint8Array(externalDebugInfo[0]);\n const decoder = new TextDecoder('utf-8');\n debugFile = decoder.decode(firstExternalDebugInfo);\n }\n\n return { buildId, debugFile };\n}\n\n/**\n * Records a module\n */\nexport function registerModule(module: WebAssembly.Module, url: string): void {\n const { buildId, debugFile } = getModuleInfo(module);\n if (buildId) {\n const oldIdx = IMAGES.findIndex(img => img.code_file === url);\n if (oldIdx >= 0) {\n IMAGES.splice(oldIdx, 1);\n }\n IMAGES.push({\n type: 'wasm',\n code_id: buildId,\n code_file: url,\n debug_file: debugFile ? new URL(debugFile, url).href : null,\n debug_id: `${buildId.padEnd(32, '0').substr(0, 32)}0`,\n });\n }\n}\n\n/**\n * Returns all known images.\n */\nexport function getImages(): Array<DebugImage> {\n return IMAGES;\n}\n\n/**\n * Looks up an image by URL.\n *\n * @param url the URL of the WebAssembly module.\n */\nexport function getImage(url: string): number {\n return IMAGES.findIndex(img => img.code_file === url);\n}\n"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"registry.js","sources":["../../../src/registry.ts"],"sourcesContent":["import { DebugImage } from '@sentry/types';\n\nexport const IMAGES: Array<DebugImage> = [];\n\nexport interface ModuleInfo {\n buildId: string | null;\n debugFile: string | null;\n}\n\n/**\n * Returns the extracted meta information from a web assembly module that\n * Sentry uses to identify debug images.\n *\n * @param module\n */\nexport function getModuleInfo(module: WebAssembly.Module): ModuleInfo {\n const buildIds = WebAssembly.Module.customSections(module, 'build_id');\n let buildId = null;\n let debugFile = null;\n\n if (buildIds.length > 0) {\n const firstBuildId = new Uint8Array(buildIds[0]);\n buildId = Array.from(firstBuildId).reduce((acc, x) => {\n return acc + x.toString(16).padStart(2, '0');\n }, '');\n }\n\n const externalDebugInfo = WebAssembly.Module.customSections(module, 'external_debug_info');\n if (externalDebugInfo.length > 0) {\n const firstExternalDebugInfo = new Uint8Array(externalDebugInfo[0]);\n const decoder = new TextDecoder('utf-8');\n debugFile = decoder.decode(firstExternalDebugInfo);\n }\n\n return { buildId, debugFile };\n}\n\n/**\n * Records a module\n */\nexport function registerModule(module: WebAssembly.Module, url: string): void {\n const { buildId, debugFile } = getModuleInfo(module);\n if (buildId) {\n const oldIdx = IMAGES.findIndex(img => img.code_file === url);\n if (oldIdx >= 0) {\n IMAGES.splice(oldIdx, 1);\n }\n IMAGES.push({\n type: 'wasm',\n code_id: buildId,\n code_file: url,\n debug_file: debugFile ? new URL(debugFile, url).href : null,\n debug_id: `${buildId.padEnd(32, '0').substr(0, 32)}0`,\n });\n }\n}\n\n/**\n * Returns all known images.\n */\nexport function getImages(): Array<DebugImage> {\n return IMAGES;\n}\n\n/**\n * Looks up an image by URL.\n *\n * @param url the URL of the WebAssembly module.\n */\nexport function getImage(url: string): number {\n return IMAGES.findIndex(img => img.code_file === url);\n}\n"],"names":[],"mappings":"AAEA,MAAA,MAAA,GAAA,GAAA;;AAOA;AACA;AACA;AACA;AACA;AACA;AACA,SAAA,aAAA,CAAA,MAAA,EAAA;AACA,EAAA,MAAA,QAAA,GAAA,WAAA,CAAA,MAAA,CAAA,cAAA,CAAA,MAAA,EAAA,UAAA,CAAA,CAAA;AACA,EAAA,IAAA,OAAA,GAAA,IAAA,CAAA;AACA,EAAA,IAAA,SAAA,GAAA,IAAA,CAAA;AACA;AACA,EAAA,IAAA,QAAA,CAAA,MAAA,GAAA,CAAA,EAAA;AACA,IAAA,MAAA,YAAA,GAAA,IAAA,UAAA,CAAA,QAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,IAAA,OAAA,GAAA,KAAA,CAAA,IAAA,CAAA,YAAA,CAAA,CAAA,MAAA,CAAA,CAAA,GAAA,EAAA,CAAA,KAAA;AACA,MAAA,OAAA,GAAA,GAAA,CAAA,CAAA,QAAA,CAAA,EAAA,CAAA,CAAA,QAAA,CAAA,CAAA,EAAA,GAAA,CAAA,CAAA;AACA,KAAA,EAAA,EAAA,CAAA,CAAA;AACA,GAAA;AACA;AACA,EAAA,MAAA,iBAAA,GAAA,WAAA,CAAA,MAAA,CAAA,cAAA,CAAA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AAA;AACA,EAAA,OAAA,MAAA,CAAA;AACA,CAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAA,QAAA,CAAA,GAAA,EAAA;AACA,EAAA,OAAA,MAAA,CAAA,SAAA,CAAA,GAAA,IAAA,GAAA,CAAA,SAAA,KAAA,GAAA,CAAA,CAAA;AACA;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/wasm",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.17.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",
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
"access": "public"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@sentry/browser": "7.
|
|
20
|
-
"@sentry/types": "7.
|
|
21
|
-
"@sentry/utils": "7.
|
|
19
|
+
"@sentry/browser": "7.17.0",
|
|
20
|
+
"@sentry/types": "7.17.0",
|
|
21
|
+
"@sentry/utils": "7.17.0",
|
|
22
22
|
"tslib": "^1.9.3"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|