@travetto/web-rpc 8.0.0-alpha.1 → 8.0.0-alpha.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/web-rpc",
3
- "version": "8.0.0-alpha.1",
3
+ "version": "8.0.0-alpha.2",
4
4
  "type": "module",
5
5
  "description": "RPC support for a Web Application",
6
6
  "keywords": [
@@ -1,9 +1,10 @@
1
1
  import path from 'node:path';
2
2
 
3
3
  import { Env } from '@travetto/runtime';
4
- import { CliCommand, type CliCommandShape, CliModuleFlag, CliProfilesFlag, CliValidationResultError } from '@travetto/cli';
4
+ import { CliCommand, type CliCommandShape, CliModuleFlag, CliProfilesFlag } from '@travetto/cli';
5
5
  import { DependencyRegistryIndex } from '@travetto/di';
6
6
  import { Registry } from '@travetto/registry';
7
+ import { ValidationResultError } from '@travetto/schema';
7
8
 
8
9
  import type { WebRpcClient } from '../src/config.ts';
9
10
  import { WebRpcClientGeneratorService } from '../src/service.ts';
@@ -34,7 +35,7 @@ export class CliWebRpcCommand implements CliCommandShape {
34
35
  await service.render();
35
36
  } else {
36
37
  if (!output) {
37
- throw new CliValidationResultError(this, [
38
+ throw new ValidationResultError([
38
39
  { message: 'output is required when type is not `config`', source: 'arg', kind: 'missing', path: 'output' }
39
40
  ]);
40
41
  }