@sentry/wasm 6.19.3 → 6.19.4
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/types/index.d.ts +22 -0
- package/build/types/index.d.ts.map +1 -0
- package/build/types/patchWebAssembly.d.ts +5 -0
- package/build/types/patchWebAssembly.d.ts.map +1 -0
- package/build/types/registry.d.ts +28 -0
- package/build/types/registry.d.ts.map +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/patchWebAssembly.d.ts.map +1 -0
- package/dist/registry.d.ts.map +1 -0
- package/package.json +6 -6
- package/.eslintrc.js +0 -3
- package/jest-puppeteer.config.js +0 -6
- package/rollup.config.js +0 -11
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { EventProcessor, Hub, Integration } from '@sentry/types';
|
|
2
|
+
/**
|
|
3
|
+
* Process WASM stack traces to support server-side symbolication.
|
|
4
|
+
*
|
|
5
|
+
* This also hooks the WebAssembly loading browser API so that module
|
|
6
|
+
* registraitons are intercepted.
|
|
7
|
+
*/
|
|
8
|
+
export declare class Wasm implements Integration {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
static id: string;
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
name: string;
|
|
17
|
+
/**
|
|
18
|
+
* @inheritDoc
|
|
19
|
+
*/
|
|
20
|
+
setupOnce(addGlobalEventProcessor: (callback: EventProcessor) => void, _getCurrentHub: () => Hub): void;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,cAAc,EAAE,GAAG,EAAE,WAAW,EAAc,MAAM,eAAe,CAAC;AA2BpF;;;;;GAKG;AACH,qBAAa,IAAK,YAAW,WAAW;IACtC;;OAEG;IACH,OAAc,EAAE,EAAE,MAAM,CAAU;IAElC;;OAEG;IACI,IAAI,EAAE,MAAM,CAAW;IAE9B;;OAEG;IACI,SAAS,CAAC,uBAAuB,EAAE,CAAC,QAAQ,EAAE,cAAc,KAAK,IAAI,EAAE,cAAc,EAAE,MAAM,GAAG,GAAG,IAAI;CAyB/G"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patchWebAssembly.d.ts","sourceRoot":"","sources":["../../src/patchWebAssembly.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,IAAI,CAiCvC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { DebugImage } from '@sentry/types';
|
|
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
|
|
16
|
+
*/
|
|
17
|
+
export declare function registerModule(module: WebAssembly.Module, url: string): void;
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,UAAU,CAAM,CAAC;AAE5C,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,GAAG,UAAU,CAoBpE;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CAe5E;AAED;;GAEG;AACH,wBAAgB,SAAS,IAAI,KAAK,CAAC,UAAU,CAAC,CAE7C;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE5C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,cAAc,EAAE,GAAG,EAAE,WAAW,EAAc,MAAM,eAAe,CAAC;AA2BpF;;;;;GAKG;AACH,qBAAa,IAAK,YAAW,WAAW;IACtC;;OAEG;IACH,OAAc,EAAE,EAAE,MAAM,CAAU;IAElC;;OAEG;IACI,IAAI,EAAE,MAAM,CAAW;IAE9B;;OAEG;IACI,SAAS,CAAC,uBAAuB,EAAE,CAAC,QAAQ,EAAE,cAAc,KAAK,IAAI,EAAE,cAAc,EAAE,MAAM,GAAG,GAAG,IAAI;CAyB/G"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patchWebAssembly.d.ts","sourceRoot":"","sources":["../src/patchWebAssembly.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,IAAI,CAiCvC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,UAAU,CAAM,CAAC;AAE5C,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,GAAG,UAAU,CAoBpE;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CAe5E;AAED;;GAEG;AACH,wBAAgB,SAAS,IAAI,KAAK,CAAC,UAAU,CAAC,CAE7C;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE5C"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/wasm",
|
|
3
|
-
"version": "6.19.
|
|
3
|
+
"version": "6.19.4",
|
|
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",
|
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
},
|
|
12
12
|
"main": "dist/index.js",
|
|
13
13
|
"module": "esm/index.js",
|
|
14
|
-
"types": "
|
|
14
|
+
"types": "build/types/index.d.ts",
|
|
15
15
|
"publishConfig": {
|
|
16
16
|
"access": "public"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@sentry/browser": "6.19.
|
|
20
|
-
"@sentry/types": "6.19.
|
|
19
|
+
"@sentry/browser": "6.19.4",
|
|
20
|
+
"@sentry/types": "6.19.4",
|
|
21
21
|
"tslib": "^1.9.3"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
@@ -48,11 +48,11 @@
|
|
|
48
48
|
"clean": "rimraf dist esm coverage *.js.map *.d.ts",
|
|
49
49
|
"fix": "run-s fix:eslint fix:prettier",
|
|
50
50
|
"fix:eslint": "eslint . --format stylish --fix",
|
|
51
|
-
"fix:prettier": "prettier --write \"{src,test}/**/*.ts\"",
|
|
51
|
+
"fix:prettier": "prettier --write \"{src,test,scripts}/**/*.ts\"",
|
|
52
52
|
"link:yarn": "yarn link",
|
|
53
53
|
"lint": "run-s lint:prettier lint:eslint",
|
|
54
54
|
"lint:eslint": "eslint . --cache --cache-location '../../eslintcache/' --format stylish",
|
|
55
|
-
"lint:prettier": "prettier --check \"{src,test}/**/*.ts\"",
|
|
55
|
+
"lint:prettier": "prettier --check \"{src,test,scripts}/**/*.ts\"",
|
|
56
56
|
"test": "node test/scripts/ensure-browser-bundle.js && cross-env PORT=1337 jest",
|
|
57
57
|
"test:watch": "jest --watch"
|
|
58
58
|
},
|
package/.eslintrc.js
DELETED
package/jest-puppeteer.config.js
DELETED
package/rollup.config.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { makeBaseBundleConfig, makeConfigVariants } from '../../rollup.config';
|
|
2
|
-
|
|
3
|
-
const baseBundleConfig = makeBaseBundleConfig({
|
|
4
|
-
input: 'src/index.ts',
|
|
5
|
-
isAddOn: true,
|
|
6
|
-
jsVersion: 'es5',
|
|
7
|
-
licenseTitle: '@sentry/wasm',
|
|
8
|
-
outputFileBase: 'wasm',
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
export default makeConfigVariants(baseBundleConfig);
|