@bakit/gateway 2.1.3 → 2.1.5

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/dist/index.js +1 -1
  2. package/package.json +2 -3
package/dist/index.js CHANGED
@@ -298,7 +298,7 @@ function bindWorkerToProcess(worker) {
298
298
  });
299
299
  });
300
300
  function send(type, payload) {
301
- process.send?.({ type, ...payload });
301
+ process.send && process.connected && process.send({ type, ...payload });
302
302
  }
303
303
  process.on("SIGINT", () => {
304
304
  }), process.on("SIGTERM", async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bakit/gateway",
3
- "version": "2.1.3",
3
+ "version": "2.1.5",
4
4
  "description": "Gateway manager for bakit framework",
5
5
  "type": "module",
6
6
  "exports": {
@@ -31,8 +31,7 @@
31
31
  "discord-api-types": "^0.38.37",
32
32
  "type-fest": "^4.41.0",
33
33
  "ws": "^8.19.0",
34
- "@bakit/rest": "^2.0.3",
35
- "@bakit/service": "^3.1.0",
34
+ "@bakit/rest": "^2.1.0",
36
35
  "@bakit/utils": "^2.0.0"
37
36
  },
38
37
  "devDependencies": {