@aloma.io/integration-sdk 3.8.28 → 3.8.30

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.
@@ -13,6 +13,7 @@ export const onConnect = ({ dispatcher, configSchema, config, start, }) => {
13
13
  secrets,
14
14
  config,
15
15
  });
16
+ console.dir(decrypted, { depth: null });
16
17
  await patchStartOAuth({ dispatcher, decrypted });
17
18
  await patchFinishOAuth({ dispatcher, decrypted, config, transport });
18
19
  const theOAuth = await makeOAuth({
@@ -50,9 +50,8 @@ class Transport {
50
50
  ws.onPing = function () {
51
51
  clearTimeout(this.pingTimeout);
52
52
  this.pingTimeout = setTimeout(() => {
53
- console.log('terminating ws');
54
53
  if (local.running)
55
- this.terminate();
54
+ ws.terminate();
56
55
  }, 30000 + 15000);
57
56
  };
58
57
  ws.on('open', () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aloma.io/integration-sdk",
3
- "version": "3.8.28",
3
+ "version": "3.8.30",
4
4
  "description": "",
5
5
  "author": "aloma.io",
6
6
  "license": "Apache-2.0",
@@ -29,6 +29,8 @@ export const onConnect = ({
29
29
  config,
30
30
  });
31
31
 
32
+ console.dir(decrypted, {depth: null})
33
+
32
34
  await patchStartOAuth({dispatcher, decrypted});
33
35
  await patchFinishOAuth({dispatcher, decrypted, config, transport});
34
36
 
@@ -1,10 +1,10 @@
1
- import {init} from '@paralleldrive/cuid2';
1
+ import { init } from '@paralleldrive/cuid2';
2
2
  import C from '../connection/constants.mjs';
3
3
  const cuid = init({length: 32});
4
4
 
5
5
  import WebSocket from 'ws';
6
- import {DurableWebsocket} from './durable.mjs';
7
- import {Callback, Packet} from './packet.mjs';
6
+ import { DurableWebsocket } from './durable.mjs';
7
+ import { Callback, Packet } from './packet.mjs';
8
8
 
9
9
  const cleanInterval = 45 * 1000;
10
10
  const pingInterval = 30 * 1000;
@@ -67,8 +67,7 @@ class Transport {
67
67
  ws.onPing = function () {
68
68
  clearTimeout(this.pingTimeout);
69
69
  this.pingTimeout = setTimeout(() => {
70
- console.log('terminating ws');
71
- if (local.running) this.terminate();
70
+ if (local.running) ws.terminate();
72
71
  }, 30000 + 15000);
73
72
  };
74
73
 
@@ -192,4 +191,5 @@ class Transport {
192
191
  }
193
192
  }
194
193
 
195
- export {Transport};
194
+ export { Transport };
195
+