@quatrain/cloudwrapper-supabase 1.2.1 → 1.2.4-pr25.2908
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.
|
@@ -113,8 +113,7 @@ describe('SupabaseCloudWrapper', () => {
|
|
|
113
113
|
expect(wrapper._connectionTimeout).toBe(initialTimeout);
|
|
114
114
|
});
|
|
115
115
|
it('should handle "timeout" status', () => {
|
|
116
|
-
|
|
117
|
-
expect(() => heartbeatCallback('timeout')).not.toThrow();
|
|
116
|
+
expect(() => heartbeatCallback('timeout')).toThrow('process.exit called');
|
|
118
117
|
});
|
|
119
118
|
it('should reconnect on "disconnected" when exitOnDisconnect is false', () => {
|
|
120
119
|
wrapper = new SupabaseCloudWrapper_1.SupabaseCloudWrapper({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quatrain/cloudwrapper-supabase",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4-pr25.2908",
|
|
4
4
|
"license": "AGPL-3.0-only",
|
|
5
5
|
"description": "Cloud Wrapper adapter for Supabase",
|
|
6
6
|
"repository": {
|
|
@@ -20,14 +20,14 @@
|
|
|
20
20
|
],
|
|
21
21
|
"author": "Quatrain Développement SAS <developers@quatrain.com>",
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"@quatrain/core": "^1.2.
|
|
23
|
+
"@quatrain/core": "^1.2.18"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@quatrain/backend": "^1.2.
|
|
27
|
-
"@quatrain/cloudwrapper": "^1.2.
|
|
28
|
-
"@quatrain/core": "^1.2.
|
|
29
|
-
"@quatrain/storage": "^1.2.
|
|
30
|
-
"@supabase/supabase-js": "^2.
|
|
26
|
+
"@quatrain/backend": "^1.2.17",
|
|
27
|
+
"@quatrain/cloudwrapper": "^1.2.3",
|
|
28
|
+
"@quatrain/core": "^1.2.18",
|
|
29
|
+
"@quatrain/storage": "^1.2.13",
|
|
30
|
+
"@supabase/supabase-js": "^2.108.2",
|
|
31
31
|
"ws": "^8.18.3"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
@@ -132,8 +132,7 @@ describe('SupabaseCloudWrapper', () => {
|
|
|
132
132
|
})
|
|
133
133
|
|
|
134
134
|
it('should handle "timeout" status', () => {
|
|
135
|
-
|
|
136
|
-
expect(() => heartbeatCallback('timeout')).not.toThrow()
|
|
135
|
+
expect(() => heartbeatCallback('timeout')).toThrow('process.exit called')
|
|
137
136
|
})
|
|
138
137
|
|
|
139
138
|
it('should reconnect on "disconnected" when exitOnDisconnect is false', () => {
|
|
@@ -185,7 +185,7 @@ export class SupabaseCloudWrapper extends AbstractCloudWrapper {
|
|
|
185
185
|
realtime: {
|
|
186
186
|
transport: ws as any,
|
|
187
187
|
heartbeatIntervalMs: 5000,
|
|
188
|
-
heartbeatCallback: (status:
|
|
188
|
+
heartbeatCallback: (status: any) => {
|
|
189
189
|
switch (status) {
|
|
190
190
|
case 'ok':
|
|
191
191
|
if (!this._heartbeatOkReceived) {
|