@sentry/wasm 6.19.1 → 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.
@@ -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,5 @@
1
+ /**
2
+ * Patches the web assembly runtime.
3
+ */
4
+ export declare function patchWebAssembly(): void;
5
+ //# sourceMappingURL=patchWebAssembly.d.ts.map
@@ -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.1",
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": "dist/index.d.ts",
14
+ "types": "build/types/index.d.ts",
15
15
  "publishConfig": {
16
16
  "access": "public"
17
17
  },
18
18
  "dependencies": {
19
- "@sentry/browser": "6.19.1",
20
- "@sentry/types": "6.19.1",
19
+ "@sentry/browser": "6.19.4",
20
+ "@sentry/types": "6.19.4",
21
21
  "tslib": "^1.9.3"
22
22
  },
23
23
  "devDependencies": {
@@ -32,26 +32,27 @@
32
32
  "build": "run-p build:cjs build:esm build:bundle build:types",
33
33
  "build:bundle": "rollup --config",
34
34
  "build:cjs": "tsc -p tsconfig.cjs.json",
35
- "build:dev": "run-s build:cjs build:esm build:types",
35
+ "build:dev": "run-p build:cjs build:esm build:types",
36
36
  "build:es5": "yarn build:cjs # *** backwards compatibility - remove in v7 ***",
37
37
  "build:esm": "tsc -p tsconfig.esm.json",
38
38
  "build:types": "tsc -p tsconfig.types.json",
39
- "build:watch": "run-p build:cjs:watch build:esm:watch build:types:watch",
39
+ "build:watch": "run-p build:cjs:watch build:esm:watch build:bundle:watch build:types:watch",
40
+ "build:bundle:watch": "rollup --config --watch",
40
41
  "build:cjs:watch": "tsc -p tsconfig.cjs.json --watch",
41
- "build:dev:watch": "run-s build:watch",
42
+ "build:dev:watch": "run-p build:cjs:watch build:esm:watch build:types:watch",
42
43
  "build:es5:watch": "yarn build:cjs:watch # *** backwards compatibility - remove in v7 ***",
43
44
  "build:esm:watch": "tsc -p tsconfig.esm.json --watch",
44
45
  "build:types:watch": "tsc -p tsconfig.types.json --watch",
46
+ "build:npm": "npm pack",
45
47
  "circularDepCheck": "madge --circular src/index.ts",
46
48
  "clean": "rimraf dist esm coverage *.js.map *.d.ts",
47
49
  "fix": "run-s fix:eslint fix:prettier",
48
50
  "fix:eslint": "eslint . --format stylish --fix",
49
- "fix:prettier": "prettier --write \"{src,test}/**/*.ts\"",
51
+ "fix:prettier": "prettier --write \"{src,test,scripts}/**/*.ts\"",
50
52
  "link:yarn": "yarn link",
51
53
  "lint": "run-s lint:prettier lint:eslint",
52
54
  "lint:eslint": "eslint . --cache --cache-location '../../eslintcache/' --format stylish",
53
- "lint:prettier": "prettier --check \"{src,test}/**/*.ts\"",
54
- "pack": "npm pack",
55
+ "lint:prettier": "prettier --check \"{src,test,scripts}/**/*.ts\"",
55
56
  "test": "node test/scripts/ensure-browser-bundle.js && cross-env PORT=1337 jest",
56
57
  "test:watch": "jest --watch"
57
58
  },
package/.eslintrc.js DELETED
@@ -1,3 +0,0 @@
1
- module.exports = {
2
- extends: ['../../.eslintrc.js'],
3
- };
@@ -1,6 +0,0 @@
1
- module.exports = {
2
- server: {
3
- command: 'node test/server.js',
4
- port: process.env.PORT,
5
- },
6
- };
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);