@asyncapi/cli 2.3.2 → 2.3.11

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.
@@ -5,6 +5,6 @@
5
5
  "supportedProtocols": []
6
6
  },
7
7
  "dependencies": {
8
- "@asyncapi/generator-react-sdk": "^1.0.20"
8
+ "@asyncapi/generator-react-sdk": "^1.1.1"
9
9
  }
10
10
  }
@@ -6,6 +6,7 @@ const global_flags_1 = require("../../core/flags/global.flags");
6
6
  class Versions extends base_1.default {
7
7
  run() {
8
8
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
9
+ var _a;
9
10
  const dependencies = [];
10
11
  let dependency = '';
11
12
  // Preparation of the array with all dependencies '@asyncapi/*' along with
@@ -19,7 +20,7 @@ class Versions extends base_1.default {
19
20
  try {
20
21
  // Goofy name `importedPJSON` is chosen to distinguish from name `pjson`
21
22
  // used in `@oclif` source code.
22
- const importedPJSON = yield Promise.resolve().then(() => tslib_1.__importStar(require(`${key}/package.json`)));
23
+ const importedPJSON = yield (_a = `${key}/package.json`, Promise.resolve().then(() => tslib_1.__importStar(require(_a))));
23
24
  dependencies.push(`${key}/${importedPJSON.default.version}`);
24
25
  }
25
26
  catch (e) {
@@ -7,7 +7,7 @@ export declare class SpecificationFileNotFound extends SpecificationFileError {
7
7
  export declare class SpecificationURLNotFound extends SpecificationFileError {
8
8
  constructor(URL: string);
9
9
  }
10
- declare type From = 'file' | 'url' | 'context' | 'invalid file';
10
+ type From = 'file' | 'url' | 'context' | 'invalid file';
11
11
  export declare class ErrorLoadingSpec extends Error {
12
12
  private readonly errorMessages;
13
13
  constructor(from?: From, param?: string);
@@ -1,4 +1,4 @@
1
- declare type ErrorType = 'parser-error' | 'invalid-file' | 'no-spec-found';
1
+ type ErrorType = 'parser-error' | 'invalid-file' | 'no-spec-found';
2
2
  interface IValidationErrorInput {
3
3
  type: ErrorType;
4
4
  err?: any;
@@ -1,4 +1,4 @@
1
- export declare const watchFlag: (description?: string | undefined) => import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
1
+ export declare const watchFlag: (description?: string) => import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
2
2
  export declare const helpFlag: () => {
3
3
  help: import("@oclif/core/lib/interfaces").BooleanFlag<void>;
4
4
  };
@@ -1,6 +1,6 @@
1
1
  import Command from './base';
2
2
  import { Specification } from './models/SpecificationFile';
3
- export declare type SpecWatcherParams = {
3
+ export type SpecWatcherParams = {
4
4
  spec: Specification;
5
5
  handler: Command;
6
6
  handlerName: string;
@@ -3,7 +3,7 @@ import { OutputFormat } from '@stoplight/spectral-cli/dist/services/config';
3
3
  import type { Diagnostic } from '@asyncapi/parser/cjs';
4
4
  import type Command from './base';
5
5
  import type { Specification } from './models/SpecificationFile';
6
- export declare type SeverityKind = 'error' | 'warn' | 'info' | 'hint';
6
+ export type SeverityKind = 'error' | 'warn' | 'info' | 'hint';
7
7
  export { convertToOldAPI };
8
8
  export interface ValidationFlagsOptions {
9
9
  logDiagnostics?: boolean;
@@ -1587,5 +1587,5 @@
1587
1587
  ]
1588
1588
  }
1589
1589
  },
1590
- "version": "2.3.2"
1590
+ "version": "2.3.11"
1591
1591
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@asyncapi/cli",
3
3
  "description": "All in one CLI for all AsyncAPI tools",
4
- "version": "2.3.2",
4
+ "version": "2.3.11",
5
5
  "author": "@asyncapi",
6
6
  "bin": {
7
7
  "asyncapi": "./bin/run_bin"
@@ -9,14 +9,14 @@
9
9
  "bugs": "https://github.com/asyncapi/cli/issues",
10
10
  "dependencies": {
11
11
  "@asyncapi/avro-schema-parser": "^3.0.23",
12
- "@asyncapi/bundler": "^0.6.1",
13
- "@asyncapi/converter": "^1.4.20",
12
+ "@asyncapi/bundler": "^0.6.3",
13
+ "@asyncapi/converter": "^1.5.1",
14
14
  "@asyncapi/diff": "^0.4.1",
15
15
  "@asyncapi/generator": "^1.17.25",
16
16
  "@asyncapi/modelina": "^3.7.0",
17
17
  "@asyncapi/modelina-cli": "^4.0.0-next.48",
18
18
  "@asyncapi/openapi-schema-parser": "^3.0.24",
19
- "@asyncapi/optimizer": "^1.0.2",
19
+ "@asyncapi/optimizer": "^1.0.3",
20
20
  "@asyncapi/parser": "^3.1.0",
21
21
  "@asyncapi/protobuf-schema-parser": "^3.2.13",
22
22
  "@asyncapi/raml-dt-schema-parser": "^4.0.24",
@@ -91,7 +91,7 @@
91
91
  "simple-git": "^3.16.0",
92
92
  "ts-node": "^10.9.1",
93
93
  "tslib": "^2.3.1",
94
- "typescript": "4.6.4"
94
+ "typescript": "^4.6.4"
95
95
  },
96
96
  "engines": {
97
97
  "node": ">12.16"