sentry-testkit 4.0.2 → 4.0.3

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.
@@ -30,7 +30,7 @@ var createLocalServerApi = function createLocalServerApi(testkit) {
30
30
  // we can't use bodyParser.json() directly
31
31
 
32
32
  app.use(bodyParser.text({
33
- type: ['application/json', 'application/x-sentry-envelope']
33
+ type: ['application/json', 'application/x-sentry-envelope', 'text/plain']
34
34
  }));
35
35
  app.post("/api/".concat(project, "/store/"), function (req, res) {
36
36
  testkit.reports().push(transformReport(JSON.parse(req.body)));
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@ import {
9
9
 
10
10
  export = sentryTestkit
11
11
 
12
- declare function sentryTestkit(): sentryTestkit.TestkitResult
12
+ declare function sentryTestkit<T extends sentryTestkit.V6TransportClass | sentryTestkit.V7TransportFunction>(): sentryTestkit.TestkitResult<T>
13
13
 
14
14
  declare namespace sentryTestkit {
15
15
  interface Page {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sentry-testkit",
3
- "version": "4.0.2",
3
+ "version": "4.0.3",
4
4
  "description": "Sentry Testkit enables Sentry to work natively in your application while running tests. The report is not really sent but rather logged locally into memory. In this way, the logged reports can be fetched for your own verification or any other purpose in your local development environment.",
5
5
  "main": "dist/index.js",
6
6
  "types": "index.d.ts",