@budibase/worker 2.11.36 → 2.11.37

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.
Files changed (2) hide show
  1. package/package.json +6 -7
  2. package/src/index.ts +2 -18
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@budibase/worker",
3
3
  "email": "hi@budibase.com",
4
- "version": "2.11.36",
4
+ "version": "2.11.37",
5
5
  "description": "Budibase background service",
6
6
  "main": "src/index.ts",
7
7
  "repository": {
@@ -38,12 +38,11 @@
38
38
  "author": "Budibase",
39
39
  "license": "GPL-3.0",
40
40
  "dependencies": {
41
- "@budibase/backend-core": "2.11.36",
42
- "@budibase/pro": "2.11.36",
43
- "@budibase/string-templates": "2.11.36",
44
- "@budibase/types": "2.11.36",
41
+ "@budibase/backend-core": "2.11.37",
42
+ "@budibase/pro": "2.11.37",
43
+ "@budibase/string-templates": "2.11.37",
44
+ "@budibase/types": "2.11.37",
45
45
  "@koa/router": "8.0.8",
46
- "@sentry/node": "6.17.7",
47
46
  "@techpass/passport-openidconnect": "0.3.2",
48
47
  "@types/global-agent": "2.1.1",
49
48
  "aws-sdk": "2.1030.0",
@@ -108,5 +107,5 @@
108
107
  }
109
108
  }
110
109
  },
111
- "gitHead": "8e819e9eb791df30e6a5d519bf4b1353216b1eab"
110
+ "gitHead": "735961cf9cbfe40adbb1c983976a21ee18ba2433"
112
111
  }
package/src/index.ts CHANGED
@@ -4,8 +4,6 @@ if (process.env.DD_APM_ENABLED) {
4
4
 
5
5
  // need to load environment first
6
6
  import env from "./environment"
7
- import { Scope } from "@sentry/node"
8
- import { Event } from "@sentry/types/dist/event"
9
7
  import Application from "koa"
10
8
  import { bootstrap } from "global-agent"
11
9
  import * as db from "./db"
@@ -25,9 +23,9 @@ import koaBody from "koa-body"
25
23
  import http from "http"
26
24
  import api from "./api"
27
25
  import * as redis from "./utilities/redis"
28
- const Sentry = require("@sentry/node")
26
+
29
27
  const koaSession = require("koa-session")
30
- const { userAgent } = require("koa-useragent")
28
+ import { userAgent } from "koa-useragent"
31
29
 
32
30
  import destroyable from "server-destroy"
33
31
  import { initPro } from "./initPro"
@@ -66,20 +64,6 @@ app.use(auth.passport.session())
66
64
  // api routes
67
65
  app.use(api.routes())
68
66
 
69
- // sentry
70
- if (env.isProd()) {
71
- Sentry.init()
72
-
73
- app.on("error", (err, ctx) => {
74
- Sentry.withScope(function (scope: Scope) {
75
- scope.addEventProcessor(function (event: Event) {
76
- return Sentry.Handlers.parseRequest(event, ctx.request)
77
- })
78
- Sentry.captureException(err)
79
- })
80
- })
81
- }
82
-
83
67
  const server = http.createServer(app.callback())
84
68
  destroyable(server)
85
69