@sentry/wasm 10.68.0 → 11.0.0-alpha.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"type":"module","version":"
|
|
1
|
+
{"type":"module","version":"11.0.0-alpha.0","sideEffects":false}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/wasm",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0-alpha.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",
|
|
7
7
|
"author": "Sentry",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"engines": {
|
|
10
|
-
"node": ">=
|
|
10
|
+
"node": ">=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0"
|
|
11
11
|
},
|
|
12
12
|
"files": [
|
|
13
13
|
"/build/npm"
|
|
@@ -28,28 +28,19 @@
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
|
-
"typesVersions": {
|
|
32
|
-
"<5.0": {
|
|
33
|
-
"build/npm/types/index.d.ts": [
|
|
34
|
-
"build/npm/types-ts3.8/index.d.ts"
|
|
35
|
-
]
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
31
|
"publishConfig": {
|
|
39
32
|
"access": "public"
|
|
40
33
|
},
|
|
41
34
|
"dependencies": {
|
|
42
|
-
"@sentry/browser": "
|
|
43
|
-
"@sentry/core": "
|
|
35
|
+
"@sentry/browser": "11.0.0-alpha.0",
|
|
36
|
+
"@sentry/core": "11.0.0-alpha.0"
|
|
44
37
|
},
|
|
45
38
|
"scripts": {
|
|
46
39
|
"build": "run-p build:transpile build:bundle build:types",
|
|
47
40
|
"build:bundle": "rollup --config rollup.bundle.config.mjs",
|
|
48
41
|
"build:dev": "run-p build:transpile build:types",
|
|
49
42
|
"build:transpile": "rollup -c rollup.npm.config.mjs",
|
|
50
|
-
"build:types": "
|
|
51
|
-
"build:types:core": "tsc -p tsconfig.types.json",
|
|
52
|
-
"build:types:downlevel": "yarn downlevel-dts build/npm/types build/npm/types-ts3.8 --to ts3.8",
|
|
43
|
+
"build:types": "tsc -p tsconfig.types.json",
|
|
53
44
|
"build:watch": "run-p build:transpile:watch build:bundle:watch",
|
|
54
45
|
"build:bundle:watch": "rollup --config rollup.bundle.config.mjs --watch",
|
|
55
46
|
"build:dev:watch": "run-p build:transpile:watch",
|
|
@@ -59,8 +50,8 @@
|
|
|
59
50
|
"test:watch": "vitest --watch",
|
|
60
51
|
"circularDepCheck": "madge --circular src/index.ts",
|
|
61
52
|
"clean": "rimraf build coverage sentry-wasm-*.tgz",
|
|
62
|
-
"lint:fix": "
|
|
63
|
-
"lint": "
|
|
53
|
+
"lint:fix": "oxlint . --fix --type-aware",
|
|
54
|
+
"lint": "oxlint . --type-aware",
|
|
64
55
|
"lint:es-compatibility": "es-check es2020 ./build/{bundles,npm/cjs}/*.js && es-check es2020 ./build/npm/esm/*.js --module",
|
|
65
56
|
"yalc:publish": "yalc publish --push --sig"
|
|
66
57
|
},
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { StackFrame } from '@sentry/core';
|
|
2
|
-
/**
|
|
3
|
-
* Minimal interface for DedicatedWorkerGlobalScope.
|
|
4
|
-
* We can't use the actual type because it breaks everyone who doesn't have {"lib": ["WebWorker"]}
|
|
5
|
-
*/
|
|
6
|
-
interface MinimalDedicatedWorkerGlobalScope {
|
|
7
|
-
postMessage: (message: unknown) => void;
|
|
8
|
-
}
|
|
9
|
-
interface RegisterWebWorkerWasmOptions {
|
|
10
|
-
self: MinimalDedicatedWorkerGlobalScope;
|
|
11
|
-
}
|
|
12
|
-
interface WasmIntegrationOptions {
|
|
13
|
-
/**
|
|
14
|
-
* Key to identify this application for third-party error filtering.
|
|
15
|
-
* This key should match one of the keys provided to the `filterKeys` option
|
|
16
|
-
* of the `thirdPartyErrorFilterIntegration`.
|
|
17
|
-
*/
|
|
18
|
-
applicationKey?: string;
|
|
19
|
-
}
|
|
20
|
-
export declare const wasmIntegration: (options?: WasmIntegrationOptions | undefined) => import("@sentry/core").Integration & {
|
|
21
|
-
name: string;
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* Patches a list of stackframes with wasm data needed for server-side symbolication
|
|
25
|
-
* if applicable. Returns true if the provided list of stack frames had at least one
|
|
26
|
-
* matching registered image.
|
|
27
|
-
*
|
|
28
|
-
* @param frames - Stack frames to patch
|
|
29
|
-
* @param applicationKey - Optional key for third-party error filtering
|
|
30
|
-
* @param existingImagesOffset - Number of existing debug images that will be prepended
|
|
31
|
-
* to the final images array (used to calculate correct addr_mode indices)
|
|
32
|
-
*/
|
|
33
|
-
export declare function patchFrames(frames: Array<StackFrame>, applicationKey?: string, existingImagesOffset?: number): boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Use this function to register WASM support in a web worker.
|
|
36
|
-
*
|
|
37
|
-
* This function will:
|
|
38
|
-
* - Patch WebAssembly.instantiateStreaming and WebAssembly.compileStreaming in the worker
|
|
39
|
-
* - Forward WASM debug images to the parent thread for symbolication
|
|
40
|
-
*
|
|
41
|
-
* @param options {RegisterWebWorkerWasmOptions} Options:
|
|
42
|
-
* - `self`: The worker's global scope (self).
|
|
43
|
-
*/
|
|
44
|
-
export declare function registerWebWorkerWasm({ self }: RegisterWebWorkerWasmOptions): void;
|
|
45
|
-
export {};
|
|
46
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { DebugImage } from '@sentry/core';
|
|
2
|
-
export declare const IMAGES: Array<DebugImage>;
|
|
3
|
-
export interface ModuleInfo {
|
|
4
|
-
buildId: string | null;
|
|
5
|
-
debugFile: string | null;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Returns the extracted meta information from a web assembly module that
|
|
9
|
-
* Sentry uses to identify debug images.
|
|
10
|
-
*
|
|
11
|
-
* @param module
|
|
12
|
-
*/
|
|
13
|
-
export declare function getModuleInfo(module: WebAssembly.Module): ModuleInfo;
|
|
14
|
-
/**
|
|
15
|
-
* Records a module and returns the created debug image.
|
|
16
|
-
*/
|
|
17
|
-
export declare function registerModule(module: WebAssembly.Module, url: string): DebugImage | null;
|
|
18
|
-
/**
|
|
19
|
-
* Returns all known images.
|
|
20
|
-
*/
|
|
21
|
-
export declare function getImages(): Array<DebugImage>;
|
|
22
|
-
/**
|
|
23
|
-
* Looks up an image by URL.
|
|
24
|
-
*
|
|
25
|
-
* @param url the URL of the WebAssembly module.
|
|
26
|
-
*/
|
|
27
|
-
export declare function getImage(url: string): number;
|
|
28
|
-
//# sourceMappingURL=registry.d.ts.map
|