@radishbot/sdk 0.7.0 → 0.7.2

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.
package/dist/index.js CHANGED
@@ -307,7 +307,7 @@ class SdkConnection {
307
307
  waiter(row.id);
308
308
  }
309
309
  });
310
- c.subscriptionBuilder().onApplied(() => resolve(c)).subscribeToAll();
310
+ c.subscriptionBuilder().onApplied(() => resolve(c)).subscribe([`SELECT * FROM flow WHERE key_hash = '${this._keyHash}'`]);
311
311
  }).onConnectError((_ctx, err) => {
312
312
  reject(new Error(`SpacetimeDB connection failed: ${err}`));
313
313
  }).build();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@radishbot/sdk",
3
- "version": "0.7.0",
3
+ "version": "0.7.2",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/connection.ts CHANGED
@@ -45,7 +45,7 @@ export class SdkConnection {
45
45
 
46
46
  c.subscriptionBuilder()
47
47
  .onApplied(() => resolve(c))
48
- .subscribeToAll();
48
+ .subscribe([`SELECT * FROM flow WHERE key_hash = '${this._keyHash}'`]);
49
49
  })
50
50
  .onConnectError((_ctx, err) => {
51
51
  reject(new Error(`SpacetimeDB connection failed: ${err}`));