@awarevue/agent-sdk 2.0.25 → 2.0.26

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/agent-app.js CHANGED
@@ -97,7 +97,7 @@ class AgentApp {
97
97
  })), this.handleResponse$(message.id));
98
98
  case 'query':
99
99
  if (!this.agent.getResult$) {
100
- return (0, rxjs_1.throwError)(() => new agent_error_1.AgentError(`Agent ${context.provider} does not support queries`, 'NOT_SUPPORTED'));
100
+ return (0, rxjs_1.throwError)(() => new agent_error_1.AgentError(`Agent ${context.provider} does not support queries`, 'NOT_SUPPORTED')).pipe(this.handleResponse$(message.id));
101
101
  }
102
102
  return this.agent.getResult$(context, message).pipe(
103
103
  // if query observable completes without emitting, throw not supported error
@@ -125,11 +125,11 @@ class AgentApp {
125
125
  requestId: message.id,
126
126
  })), this.handleResponse$(message.id));
127
127
  case 'validate-change':
128
- const validateOb$ = (0, rxjs_1.throwError)(() => new agent_error_1.AgentError(`Agent ${context.provider} does not support access change validation`, 'NOT_SUPPORTED'));
128
+ let validateOb$ = (0, rxjs_1.throwError)(() => new agent_error_1.AgentError(`Agent ${context.provider} does not support access change validation`, 'NOT_SUPPORTED'));
129
129
  if (this.agent.validateAccessChange$) {
130
130
  const v$ = this.agent.validateAccessChange$;
131
131
  // validate access change
132
- return changeValidator$(context, message).pipe((0, rxjs_1.mergeMap)(([issues, cache]) => {
132
+ validateOb$ = changeValidator$(context, message).pipe((0, rxjs_1.mergeMap)(([issues, cache]) => {
133
133
  objectCache = cache;
134
134
  const validationContext = this.createAccessChangeContext(context, message.refMap, objectCache);
135
135
  return issues.length > 0
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awarevue/agent-sdk",
3
- "version": "2.0.25",
3
+ "version": "2.0.26",
4
4
  "description": "SDK for building Agent implementations that speak the Aware protocol.",
5
5
  "author": "Yaser Awajan",
6
6
  "license": "MIT",
@@ -27,7 +27,7 @@
27
27
  "lint:fix": "yarn lint --fix"
28
28
  },
29
29
  "dependencies": {
30
- "@awarevue/api-types": "^2.0.25",
30
+ "@awarevue/api-types": "^2.0.26",
31
31
  "rxjs": "^7.8.2",
32
32
  "ws": "^8",
33
33
  "zod": "3.24.2"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awarevue/agent-sdk",
3
- "version": "2.0.25",
3
+ "version": "2.0.26",
4
4
  "description": "SDK for building Agent implementations that speak the Aware protocol.",
5
5
  "author": "Yaser Awajan",
6
6
  "license": "MIT",
@@ -27,7 +27,7 @@
27
27
  "lint:fix": "yarn lint --fix"
28
28
  },
29
29
  "dependencies": {
30
- "@awarevue/api-types": "^2.0.25",
30
+ "@awarevue/api-types": "^2.0.26",
31
31
  "rxjs": "^7.8.2",
32
32
  "ws": "^8",
33
33
  "zod": "3.24.2"