@dxos/functions 0.6.11-staging.30cf5ba → 0.6.11-staging.9c4dc38

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/functions",
3
- "version": "0.6.11-staging.30cf5ba",
3
+ "version": "0.6.11-staging.9c4dc38",
4
4
  "description": "Functions API and runtime.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -52,23 +52,23 @@
52
52
  "express": "^4.19.2",
53
53
  "get-port-please": "^3.1.1",
54
54
  "ws": "^8.14.2",
55
- "@dxos/async": "0.6.11-staging.30cf5ba",
56
- "@dxos/client": "0.6.11-staging.30cf5ba",
57
- "@dxos/echo-protocol": "0.6.11-staging.30cf5ba",
58
- "@dxos/echo-db": "0.6.11-staging.30cf5ba",
59
- "@dxos/context": "0.6.11-staging.30cf5ba",
60
- "@dxos/echo-schema": "0.6.11-staging.30cf5ba",
61
- "@dxos/invariant": "0.6.11-staging.30cf5ba",
62
- "@dxos/keys": "0.6.11-staging.30cf5ba",
63
- "@dxos/log": "0.6.11-staging.30cf5ba",
64
- "@dxos/node-std": "0.6.11-staging.30cf5ba",
65
- "@dxos/protocols": "0.6.11-staging.30cf5ba",
66
- "@dxos/util": "0.6.11-staging.30cf5ba"
55
+ "@dxos/async": "0.6.11-staging.9c4dc38",
56
+ "@dxos/context": "0.6.11-staging.9c4dc38",
57
+ "@dxos/client": "0.6.11-staging.9c4dc38",
58
+ "@dxos/echo-db": "0.6.11-staging.9c4dc38",
59
+ "@dxos/echo-protocol": "0.6.11-staging.9c4dc38",
60
+ "@dxos/echo-schema": "0.6.11-staging.9c4dc38",
61
+ "@dxos/keys": "0.6.11-staging.9c4dc38",
62
+ "@dxos/invariant": "0.6.11-staging.9c4dc38",
63
+ "@dxos/protocols": "0.6.11-staging.9c4dc38",
64
+ "@dxos/node-std": "0.6.11-staging.9c4dc38",
65
+ "@dxos/log": "0.6.11-staging.9c4dc38",
66
+ "@dxos/util": "0.6.11-staging.9c4dc38"
67
67
  },
68
68
  "devDependencies": {
69
69
  "@types/express": "^4.17.17",
70
70
  "@types/ws": "^7.4.0",
71
- "@dxos/agent": "0.6.11-staging.30cf5ba"
71
+ "@dxos/agent": "0.6.11-staging.9c4dc38"
72
72
  },
73
73
  "publishConfig": {
74
74
  "access": "public"
@@ -101,7 +101,8 @@ describe('trigger registry', () => {
101
101
  });
102
102
  });
103
103
 
104
- describe('activate', () => {
104
+ // TODO(burdon): Server-only.
105
+ describe.skip('activate', () => {
105
106
  test('invokes the provided callback', async () => {
106
107
  const [client] = await createInitializedClients(testBuilder);
107
108
  const space = await client.spaces.create();
@@ -86,6 +86,7 @@ export class TriggerRegistry extends Resource {
86
86
  // Create trigger.
87
87
  const options = this._options?.[trigger.spec.type];
88
88
  const createTrigger = triggerFactory[trigger.spec.type];
89
+ invariant(createTrigger, `Trigger factory not found: ${trigger.spec.type}`);
89
90
  await createTrigger(activationCtx, space, trigger.spec, callback, options);
90
91
  } catch (err) {
91
92
  delete registeredTrigger.activationCtx;