diff --git a/docs/usage.md b/docs/usage.md index 18540a7aab6..a75c9580981 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -27,7 +27,7 @@ $ npm install -g @asyncapi/cli $ asyncapi COMMAND running command... $ asyncapi (--version) -@asyncapi/cli/1.15.4 linux-x64 node-v18.20.3 +@asyncapi/cli/1.16.0 linux-x64 node-v18.20.3 $ asyncapi --help [COMMAND] USAGE $ asyncapi COMMAND @@ -98,7 +98,7 @@ EXAMPLES $ asyncapi bundle ./asyncapi.yaml -o final-asyncapi.yaml --base ../public-api/main.yaml --baseDir ./social-media/comments-service ``` -_See code: [src/commands/bundle.ts](https://github.com/asyncapi/cli/blob/v1.15.4/src/commands/bundle.ts)_ +_See code: [src/commands/bundle.ts](https://github.com/asyncapi/cli/blob/v1.16.0/src/commands/bundle.ts)_ ## `asyncapi config` @@ -112,7 +112,7 @@ DESCRIPTION CLI config settings ``` -_See code: [src/commands/config/index.ts](https://github.com/asyncapi/cli/blob/v1.15.4/src/commands/config/index.ts)_ +_See code: [src/commands/config/index.ts](https://github.com/asyncapi/cli/blob/v1.16.0/src/commands/config/index.ts)_ ## `asyncapi config analytics` @@ -132,7 +132,7 @@ DESCRIPTION Enable or disable analytics for metrics collection ``` -_See code: [src/commands/config/analytics.ts](https://github.com/asyncapi/cli/blob/v1.15.4/src/commands/config/analytics.ts)_ +_See code: [src/commands/config/analytics.ts](https://github.com/asyncapi/cli/blob/v1.16.0/src/commands/config/analytics.ts)_ ## `asyncapi config context` @@ -146,7 +146,7 @@ DESCRIPTION Manage short aliases for full paths to AsyncAPI documents ``` -_See code: [src/commands/config/context/index.ts](https://github.com/asyncapi/cli/blob/v1.15.4/src/commands/config/context/index.ts)_ +_See code: [src/commands/config/context/index.ts](https://github.com/asyncapi/cli/blob/v1.16.0/src/commands/config/context/index.ts)_ ## `asyncapi config context add CONTEXT-NAME SPEC-FILE-PATH` @@ -168,7 +168,7 @@ DESCRIPTION Add a context to the store ``` -_See code: [src/commands/config/context/add.ts](https://github.com/asyncapi/cli/blob/v1.15.4/src/commands/config/context/add.ts)_ +_See code: [src/commands/config/context/add.ts](https://github.com/asyncapi/cli/blob/v1.16.0/src/commands/config/context/add.ts)_ ## `asyncapi config context current` @@ -185,7 +185,7 @@ DESCRIPTION Shows the current context that is being used ``` -_See code: [src/commands/config/context/current.ts](https://github.com/asyncapi/cli/blob/v1.15.4/src/commands/config/context/current.ts)_ +_See code: [src/commands/config/context/current.ts](https://github.com/asyncapi/cli/blob/v1.16.0/src/commands/config/context/current.ts)_ ## `asyncapi config context edit CONTEXT-NAME NEW-SPEC-FILE-PATH` @@ -206,7 +206,7 @@ DESCRIPTION Edit a context in the store ``` -_See code: [src/commands/config/context/edit.ts](https://github.com/asyncapi/cli/blob/v1.15.4/src/commands/config/context/edit.ts)_ +_See code: [src/commands/config/context/edit.ts](https://github.com/asyncapi/cli/blob/v1.16.0/src/commands/config/context/edit.ts)_ ## `asyncapi config context init [CONTEXT-FILE-PATH]` @@ -229,7 +229,7 @@ DESCRIPTION Initialize context ``` -_See code: [src/commands/config/context/init.ts](https://github.com/asyncapi/cli/blob/v1.15.4/src/commands/config/context/init.ts)_ +_See code: [src/commands/config/context/init.ts](https://github.com/asyncapi/cli/blob/v1.16.0/src/commands/config/context/init.ts)_ ## `asyncapi config context list` @@ -246,7 +246,7 @@ DESCRIPTION List all the stored contexts in the store ``` -_See code: [src/commands/config/context/list.ts](https://github.com/asyncapi/cli/blob/v1.15.4/src/commands/config/context/list.ts)_ +_See code: [src/commands/config/context/list.ts](https://github.com/asyncapi/cli/blob/v1.16.0/src/commands/config/context/list.ts)_ ## `asyncapi config context remove CONTEXT-NAME` @@ -266,7 +266,7 @@ DESCRIPTION Delete a context from the store ``` -_See code: [src/commands/config/context/remove.ts](https://github.com/asyncapi/cli/blob/v1.15.4/src/commands/config/context/remove.ts)_ +_See code: [src/commands/config/context/remove.ts](https://github.com/asyncapi/cli/blob/v1.16.0/src/commands/config/context/remove.ts)_ ## `asyncapi config context use CONTEXT-NAME` @@ -286,7 +286,7 @@ DESCRIPTION Set a context as current ``` -_See code: [src/commands/config/context/use.ts](https://github.com/asyncapi/cli/blob/v1.15.4/src/commands/config/context/use.ts)_ +_See code: [src/commands/config/context/use.ts](https://github.com/asyncapi/cli/blob/v1.16.0/src/commands/config/context/use.ts)_ ## `asyncapi config versions` @@ -303,7 +303,7 @@ DESCRIPTION Show versions of AsyncAPI tools used ``` -_See code: [src/commands/config/versions.ts](https://github.com/asyncapi/cli/blob/v1.15.4/src/commands/config/versions.ts)_ +_See code: [src/commands/config/versions.ts](https://github.com/asyncapi/cli/blob/v1.16.0/src/commands/config/versions.ts)_ ## `asyncapi convert [SPEC-FILE]` @@ -325,7 +325,7 @@ DESCRIPTION Convert asyncapi documents older to newer versions ``` -_See code: [src/commands/convert.ts](https://github.com/asyncapi/cli/blob/v1.15.4/src/commands/convert.ts)_ +_See code: [src/commands/convert.ts](https://github.com/asyncapi/cli/blob/v1.16.0/src/commands/convert.ts)_ ## `asyncapi diff OLD NEW` @@ -365,7 +365,7 @@ DESCRIPTION Find diff between two asyncapi files ``` -_See code: [src/commands/diff.ts](https://github.com/asyncapi/cli/blob/v1.15.4/src/commands/diff.ts)_ +_See code: [src/commands/diff.ts](https://github.com/asyncapi/cli/blob/v1.16.0/src/commands/diff.ts)_ ## `asyncapi generate` @@ -379,7 +379,7 @@ DESCRIPTION Generate typed models or other things like clients, applications or docs using AsyncAPI Generator templates. ``` -_See code: [src/commands/generate/index.ts](https://github.com/asyncapi/cli/blob/v1.15.4/src/commands/generate/index.ts)_ +_See code: [src/commands/generate/index.ts](https://github.com/asyncapi/cli/blob/v1.16.0/src/commands/generate/index.ts)_ ## `asyncapi generate fromTemplate ASYNCAPI TEMPLATE` @@ -423,7 +423,7 @@ EXAMPLES $ asyncapi generate fromTemplate asyncapi.yaml @asyncapi/html-template --param version=1.0.0 singleFile=true --output ./docs --force-write ``` -_See code: [src/commands/generate/fromTemplate.ts](https://github.com/asyncapi/cli/blob/v1.15.4/src/commands/generate/fromTemplate.ts)_ +_See code: [src/commands/generate/fromTemplate.ts](https://github.com/asyncapi/cli/blob/v1.16.0/src/commands/generate/fromTemplate.ts)_ ## `asyncapi generate models LANGUAGE FILE` @@ -491,7 +491,7 @@ DESCRIPTION Generates typed models ``` -_See code: [src/commands/generate/models.ts](https://github.com/asyncapi/cli/blob/v1.15.4/src/commands/generate/models.ts)_ +_See code: [src/commands/generate/models.ts](https://github.com/asyncapi/cli/blob/v1.16.0/src/commands/generate/models.ts)_ ## `asyncapi new` @@ -548,7 +548,7 @@ EXAMPLES $ asyncapi new --file-name=my-asyncapi.yml --example=default-example.yml --no-tty - create a new file with a specific name, using one of the examples and without interactive mode ``` -_See code: [src/commands/new/index.ts](https://github.com/asyncapi/cli/blob/v1.15.4/src/commands/new/index.ts)_ +_See code: [src/commands/new/index.ts](https://github.com/asyncapi/cli/blob/v1.16.0/src/commands/new/index.ts)_ ## `asyncapi new file` @@ -605,7 +605,7 @@ EXAMPLES $ asyncapi new --file-name=my-asyncapi.yml --example=default-example.yml --no-tty - create a new file with a specific name, using one of the examples and without interactive mode ``` -_See code: [src/commands/new/file.ts](https://github.com/asyncapi/cli/blob/v1.15.4/src/commands/new/file.ts)_ +_See code: [src/commands/new/file.ts](https://github.com/asyncapi/cli/blob/v1.16.0/src/commands/new/file.ts)_ ## `asyncapi new glee` @@ -627,7 +627,7 @@ DESCRIPTION Creates a new Glee project ``` -_See code: [src/commands/new/glee.ts](https://github.com/asyncapi/cli/blob/v1.15.4/src/commands/new/glee.ts)_ +_See code: [src/commands/new/glee.ts](https://github.com/asyncapi/cli/blob/v1.16.0/src/commands/new/glee.ts)_ ## `asyncapi optimize [SPEC-FILE]` @@ -665,7 +665,7 @@ EXAMPLES $ asyncapi optimize ./asyncapi.yaml --optimization=remove-components --output=terminal --no-tty ``` -_See code: [src/commands/optimize.ts](https://github.com/asyncapi/cli/blob/v1.15.4/src/commands/optimize.ts)_ +_See code: [src/commands/optimize.ts](https://github.com/asyncapi/cli/blob/v1.16.0/src/commands/optimize.ts)_ ## `asyncapi start` @@ -679,7 +679,7 @@ DESCRIPTION Start asyncapi studio ``` -_See code: [src/commands/start/index.ts](https://github.com/asyncapi/cli/blob/v1.15.4/src/commands/start/index.ts)_ +_See code: [src/commands/start/index.ts](https://github.com/asyncapi/cli/blob/v1.16.0/src/commands/start/index.ts)_ ## `asyncapi start studio` @@ -698,7 +698,7 @@ DESCRIPTION starts a new local instance of Studio ``` -_See code: [src/commands/start/studio.ts](https://github.com/asyncapi/cli/blob/v1.15.4/src/commands/start/studio.ts)_ +_See code: [src/commands/start/studio.ts](https://github.com/asyncapi/cli/blob/v1.16.0/src/commands/start/studio.ts)_ ## `asyncapi validate [SPEC-FILE]` @@ -726,5 +726,5 @@ DESCRIPTION validate asyncapi file ``` -_See code: [src/commands/validate.ts](https://github.com/asyncapi/cli/blob/v1.15.4/src/commands/validate.ts)_ +_See code: [src/commands/validate.ts](https://github.com/asyncapi/cli/blob/v1.16.0/src/commands/validate.ts)_ diff --git a/package-lock.json b/package-lock.json index 3e0b2e4cc20..ae5de4f87c7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@asyncapi/cli", - "version": "1.16.0", + "version": "1.16.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@asyncapi/cli", - "version": "1.16.0", + "version": "1.16.1", "license": "Apache-2.0", "dependencies": { "@asyncapi/avro-schema-parser": "^3.0.22", @@ -17,7 +17,7 @@ "@asyncapi/modelina": "^3.5.1", "@asyncapi/openapi-schema-parser": "^3.0.22", "@asyncapi/optimizer": "^1.0.2", - "@asyncapi/parser": "^3.0.14", + "@asyncapi/parser": "^3.0.16", "@asyncapi/protobuf-schema-parser": "^3.2.12", "@asyncapi/raml-dt-schema-parser": "^4.0.22", "@asyncapi/studio": "^0.20.0", @@ -26,7 +26,7 @@ "@oclif/errors": "^1.3.6", "@oclif/plugin-not-found": "^2.3.22", "@smoya/asyncapi-adoption-metrics": "^2.4.7", - "@smoya/multi-parser": "^5.0.7", + "@smoya/multi-parser": "^5.0.8", "@stoplight/spectral-cli": "6.9.0", "ajv": "^8.12.0", "chalk": "^4.1.0", @@ -378,15 +378,6 @@ "node": ">=6.0.0" } }, - "node_modules/@asyncapi/generator/node_modules/@asyncapi/avro-schema-parser": { - "version": "3.0.22", - "license": "Apache-2.0", - "dependencies": { - "@asyncapi/parser": "^3.0.14", - "@types/json-schema": "^7.0.11", - "avsc": "^5.7.6" - } - }, "node_modules/@asyncapi/generator/node_modules/@asyncapi/generator-react-sdk": { "version": "1.0.18", "license": "Apache-2.0", @@ -450,122 +441,6 @@ "node": ">=0.10.0" } }, - "node_modules/@asyncapi/generator/node_modules/@asyncapi/openapi-schema-parser": { - "version": "3.0.22", - "license": "Apache-2.0", - "dependencies": { - "@asyncapi/parser": "^3.0.14", - "@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0", - "ajv": "^8.11.0", - "ajv-errors": "^3.0.0", - "ajv-formats": "^2.1.1" - } - }, - "node_modules/@asyncapi/generator/node_modules/@asyncapi/parser": { - "version": "3.0.14", - "license": "Apache-2.0", - "dependencies": { - "@asyncapi/specs": "^6.6.0", - "@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0", - "@stoplight/json": "^3.20.2", - "@stoplight/json-ref-readers": "^1.2.2", - "@stoplight/json-ref-resolver": "^3.1.5", - "@stoplight/spectral-core": "^1.16.1", - "@stoplight/spectral-functions": "^1.7.2", - "@stoplight/spectral-parsers": "^1.0.2", - "@stoplight/spectral-ref-resolver": "^1.0.3", - "@stoplight/types": "^13.12.0", - "@types/json-schema": "^7.0.11", - "@types/urijs": "^1.19.19", - "ajv": "^8.11.0", - "ajv-errors": "^3.0.0", - "ajv-formats": "^2.1.1", - "avsc": "^5.7.5", - "js-yaml": "^4.1.0", - "jsonpath-plus": "^7.2.0", - "node-fetch": "2.6.7" - } - }, - "node_modules/@asyncapi/generator/node_modules/@asyncapi/parser/node_modules/js-yaml": { - "version": "4.1.0", - "license": "MIT", - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/@asyncapi/generator/node_modules/@asyncapi/parser/node_modules/node-fetch": { - "version": "2.6.7", - "license": "MIT", - "dependencies": { - "whatwg-url": "^5.0.0" - }, - "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } - } - }, - "node_modules/@asyncapi/generator/node_modules/@asyncapi/parser/node_modules/tr46": { - "version": "0.0.3", - "license": "MIT" - }, - "node_modules/@asyncapi/generator/node_modules/@asyncapi/parser/node_modules/webidl-conversions": { - "version": "3.0.1", - "license": "BSD-2-Clause" - }, - "node_modules/@asyncapi/generator/node_modules/@asyncapi/parser/node_modules/whatwg-url": { - "version": "5.0.0", - "license": "MIT", - "dependencies": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - }, - "node_modules/@asyncapi/generator/node_modules/@asyncapi/protobuf-schema-parser": { - "version": "3.2.12", - "license": "Apache-2.0", - "dependencies": { - "@asyncapi/parser": "^3.0.14", - "@types/protocol-buffers-schema": "^3.4.1", - "protobufjs": "^7.2.6" - } - }, - "node_modules/@asyncapi/generator/node_modules/@asyncapi/raml-dt-schema-parser": { - "version": "4.0.22", - "license": "Apache-2.0", - "dependencies": { - "@asyncapi/parser": "^3.0.14", - "js-yaml": "^4.1.0", - "ramldt2jsonschema": "^1.2.3", - "webapi-parser": "^0.5.0" - } - }, - "node_modules/@asyncapi/generator/node_modules/@asyncapi/raml-dt-schema-parser/node_modules/js-yaml": { - "version": "4.1.0", - "license": "MIT", - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/@asyncapi/generator/node_modules/@asyncapi/specs": { - "version": "6.7.1", - "license": "Apache-2.0", - "dependencies": { - "@types/json-schema": "^7.0.11" - } - }, "node_modules/@asyncapi/generator/node_modules/@babel/code-frame": { "version": "7.24.2", "license": "MIT", @@ -2210,26 +2085,6 @@ "@jridgewell/sourcemap-codec": "^1.4.14" } }, - "node_modules/@asyncapi/generator/node_modules/@jsep-plugin/regex": { - "version": "1.0.3", - "license": "MIT", - "engines": { - "node": ">= 10.16.0" - }, - "peerDependencies": { - "jsep": "^0.4.0||^1.0.0" - } - }, - "node_modules/@asyncapi/generator/node_modules/@jsep-plugin/ternary": { - "version": "1.1.3", - "license": "MIT", - "engines": { - "node": ">= 10.16.0" - }, - "peerDependencies": { - "jsep": "^0.4.0||^1.0.0" - } - }, "node_modules/@asyncapi/generator/node_modules/@kwsites/file-exists": { "version": "1.1.1", "license": "MIT", @@ -2468,57 +2323,6 @@ "node": "^12.13.0 || ^14.15.0 || >=16.0.0" } }, - "node_modules/@asyncapi/generator/node_modules/@openapi-contrib/openapi-schema-to-json-schema": { - "version": "3.2.0", - "license": "MIT", - "dependencies": { - "fast-deep-equal": "^3.1.3" - } - }, - "node_modules/@asyncapi/generator/node_modules/@protobufjs/aspromise": { - "version": "1.1.2", - "license": "BSD-3-Clause" - }, - "node_modules/@asyncapi/generator/node_modules/@protobufjs/base64": { - "version": "1.1.2", - "license": "BSD-3-Clause" - }, - "node_modules/@asyncapi/generator/node_modules/@protobufjs/codegen": { - "version": "2.0.4", - "license": "BSD-3-Clause" - }, - "node_modules/@asyncapi/generator/node_modules/@protobufjs/eventemitter": { - "version": "1.1.0", - "license": "BSD-3-Clause" - }, - "node_modules/@asyncapi/generator/node_modules/@protobufjs/fetch": { - "version": "1.1.0", - "license": "BSD-3-Clause", - "dependencies": { - "@protobufjs/aspromise": "^1.1.1", - "@protobufjs/inquire": "^1.1.0" - } - }, - "node_modules/@asyncapi/generator/node_modules/@protobufjs/float": { - "version": "1.0.2", - "license": "BSD-3-Clause" - }, - "node_modules/@asyncapi/generator/node_modules/@protobufjs/inquire": { - "version": "1.1.0", - "license": "BSD-3-Clause" - }, - "node_modules/@asyncapi/generator/node_modules/@protobufjs/path": { - "version": "1.1.2", - "license": "BSD-3-Clause" - }, - "node_modules/@asyncapi/generator/node_modules/@protobufjs/pool": { - "version": "1.1.0", - "license": "BSD-3-Clause" - }, - "node_modules/@asyncapi/generator/node_modules/@protobufjs/utf8": { - "version": "1.1.0", - "license": "BSD-3-Clause" - }, "node_modules/@asyncapi/generator/node_modules/@rollup/plugin-babel": { "version": "5.3.1", "license": "MIT", @@ -2555,406 +2359,82 @@ "rollup": "^1.20.0||^2.0.0" } }, - "node_modules/@asyncapi/generator/node_modules/@smoya/multi-parser": { - "version": "5.0.7", - "license": "Apache-2.0", - "dependencies": { - "@asyncapi/avro-schema-parser": "^3.0.3", - "@asyncapi/openapi-schema-parser": "^3.0.4", - "@asyncapi/protobuf-schema-parser": "^3.0.0", - "@asyncapi/raml-dt-schema-parser": "^4.0.4", - "parserapiv1": "npm:@asyncapi/parser@^2.1.0", - "parserapiv2": "npm:@asyncapi/parser@3.0.0-next-major-spec.8", - "parserapiv3": "npm:@asyncapi/parser@^3.0.14" + "node_modules/@asyncapi/generator/node_modules/@tootallnate/once": { + "version": "2.0.0", + "license": "MIT", + "engines": { + "node": ">= 10" } }, - "node_modules/@asyncapi/generator/node_modules/@stoplight/better-ajv-errors": { + "node_modules/@asyncapi/generator/node_modules/@tsconfig/node10": { + "version": "1.0.11", + "license": "MIT" + }, + "node_modules/@asyncapi/generator/node_modules/@tsconfig/node12": { + "version": "1.0.11", + "license": "MIT" + }, + "node_modules/@asyncapi/generator/node_modules/@tsconfig/node14": { "version": "1.0.3", - "license": "Apache-2.0", + "license": "MIT" + }, + "node_modules/@asyncapi/generator/node_modules/@tsconfig/node16": { + "version": "1.0.4", + "license": "MIT" + }, + "node_modules/@asyncapi/generator/node_modules/@types/babel__core": { + "version": "7.20.5", + "license": "MIT", + "optional": true, + "peer": true, "dependencies": { - "jsonpointer": "^5.0.0", - "leven": "^3.1.0" - }, - "engines": { - "node": "^12.20 || >= 14.13" - }, - "peerDependencies": { - "ajv": ">=8" + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" } }, - "node_modules/@asyncapi/generator/node_modules/@stoplight/json": { - "version": "3.21.0", - "license": "Apache-2.0", + "node_modules/@asyncapi/generator/node_modules/@types/babel__generator": { + "version": "7.6.8", + "license": "MIT", + "optional": true, + "peer": true, "dependencies": { - "@stoplight/ordered-object-literal": "^1.0.3", - "@stoplight/path": "^1.3.2", - "@stoplight/types": "^13.6.0", - "jsonc-parser": "~2.2.1", - "lodash": "^4.17.21", - "safe-stable-stringify": "^1.1" - }, - "engines": { - "node": ">=8.3.0" + "@babel/types": "^7.0.0" } }, - "node_modules/@asyncapi/generator/node_modules/@stoplight/json-ref-readers": { - "version": "1.2.2", - "license": "Apache-2.0", + "node_modules/@asyncapi/generator/node_modules/@types/babel__template": { + "version": "7.4.4", + "license": "MIT", + "optional": true, + "peer": true, "dependencies": { - "node-fetch": "^2.6.0", - "tslib": "^1.14.1" - }, - "engines": { - "node": ">=8.3.0" + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" } }, - "node_modules/@asyncapi/generator/node_modules/@stoplight/json-ref-resolver": { - "version": "3.1.6", - "license": "Apache-2.0", - "dependencies": { - "@stoplight/json": "^3.21.0", - "@stoplight/path": "^1.3.2", - "@stoplight/types": "^12.3.0 || ^13.0.0", - "@types/urijs": "^1.19.19", - "dependency-graph": "~0.11.0", - "fast-memoize": "^2.5.2", - "immer": "^9.0.6", - "lodash": "^4.17.21", - "tslib": "^2.6.0", - "urijs": "^1.19.11" - }, - "engines": { - "node": ">=8.3.0" - } - }, - "node_modules/@asyncapi/generator/node_modules/@stoplight/json-ref-resolver/node_modules/tslib": { - "version": "2.6.2", - "license": "0BSD" - }, - "node_modules/@asyncapi/generator/node_modules/@stoplight/ordered-object-literal": { - "version": "1.0.5", - "license": "Apache-2.0", - "engines": { - "node": ">=8" - } - }, - "node_modules/@asyncapi/generator/node_modules/@stoplight/path": { - "version": "1.3.2", - "license": "Apache-2.0", - "engines": { - "node": ">=8" - } - }, - "node_modules/@asyncapi/generator/node_modules/@stoplight/spectral-core": { - "version": "1.18.3", - "license": "Apache-2.0", - "dependencies": { - "@stoplight/better-ajv-errors": "1.0.3", - "@stoplight/json": "~3.21.0", - "@stoplight/path": "1.3.2", - "@stoplight/spectral-parsers": "^1.0.0", - "@stoplight/spectral-ref-resolver": "^1.0.0", - "@stoplight/spectral-runtime": "^1.0.0", - "@stoplight/types": "~13.6.0", - "@types/es-aggregate-error": "^1.0.2", - "@types/json-schema": "^7.0.11", - "ajv": "^8.6.0", - "ajv-errors": "~3.0.0", - "ajv-formats": "~2.1.0", - "es-aggregate-error": "^1.0.7", - "jsonpath-plus": "7.1.0", - "lodash": "~4.17.21", - "lodash.topath": "^4.5.2", - "minimatch": "3.1.2", - "nimma": "0.2.2", - "pony-cause": "^1.0.0", - "simple-eval": "1.0.0", - "tslib": "^2.3.0" - }, - "engines": { - "node": "^12.20 || >= 14.13" - } - }, - "node_modules/@asyncapi/generator/node_modules/@stoplight/spectral-core/node_modules/@stoplight/types": { - "version": "13.6.0", - "license": "Apache-2.0", - "dependencies": { - "@types/json-schema": "^7.0.4", - "utility-types": "^3.10.0" - }, - "engines": { - "node": "^12.20 || >=14.13" - } - }, - "node_modules/@asyncapi/generator/node_modules/@stoplight/spectral-core/node_modules/jsonpath-plus": { - "version": "7.1.0", - "license": "MIT", - "engines": { - "node": ">=12.0.0" - } - }, - "node_modules/@asyncapi/generator/node_modules/@stoplight/spectral-core/node_modules/tslib": { - "version": "2.6.2", - "license": "0BSD" - }, - "node_modules/@asyncapi/generator/node_modules/@stoplight/spectral-formats": { - "version": "1.6.0", - "license": "Apache-2.0", - "dependencies": { - "@stoplight/json": "^3.17.0", - "@stoplight/spectral-core": "^1.8.0", - "@types/json-schema": "^7.0.7", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@asyncapi/generator/node_modules/@stoplight/spectral-formats/node_modules/tslib": { - "version": "2.6.2", - "license": "0BSD" - }, - "node_modules/@asyncapi/generator/node_modules/@stoplight/spectral-functions": { - "version": "1.7.2", - "license": "Apache-2.0", - "dependencies": { - "@stoplight/better-ajv-errors": "1.0.3", - "@stoplight/json": "^3.17.1", - "@stoplight/spectral-core": "^1.7.0", - "@stoplight/spectral-formats": "^1.0.0", - "@stoplight/spectral-runtime": "^1.1.0", - "ajv": "^8.6.3", - "ajv-draft-04": "~1.0.0", - "ajv-errors": "~3.0.0", - "ajv-formats": "~2.1.0", - "lodash": "~4.17.21", - "tslib": "^2.3.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@asyncapi/generator/node_modules/@stoplight/spectral-functions/node_modules/tslib": { - "version": "2.6.2", - "license": "0BSD" - }, - "node_modules/@asyncapi/generator/node_modules/@stoplight/spectral-parsers": { - "version": "1.0.4", - "license": "Apache-2.0", - "dependencies": { - "@stoplight/json": "~3.21.0", - "@stoplight/types": "^14.1.1", - "@stoplight/yaml": "~4.3.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": "^12.20 || >=14.13" - } - }, - "node_modules/@asyncapi/generator/node_modules/@stoplight/spectral-parsers/node_modules/@stoplight/types": { - "version": "14.1.1", - "license": "Apache-2.0", - "dependencies": { - "@types/json-schema": "^7.0.4", - "utility-types": "^3.10.0" - }, - "engines": { - "node": "^12.20 || >=14.13" - } - }, - "node_modules/@asyncapi/generator/node_modules/@stoplight/spectral-parsers/node_modules/tslib": { - "version": "2.6.2", - "license": "0BSD" - }, - "node_modules/@asyncapi/generator/node_modules/@stoplight/spectral-ref-resolver": { - "version": "1.0.4", - "license": "Apache-2.0", - "dependencies": { - "@stoplight/json-ref-readers": "1.2.2", - "@stoplight/json-ref-resolver": "~3.1.6", - "@stoplight/spectral-runtime": "^1.1.2", - "dependency-graph": "0.11.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@asyncapi/generator/node_modules/@stoplight/spectral-ref-resolver/node_modules/tslib": { - "version": "2.6.2", - "license": "0BSD" - }, - "node_modules/@asyncapi/generator/node_modules/@stoplight/spectral-runtime": { - "version": "1.1.2", - "license": "Apache-2.0", - "dependencies": { - "@stoplight/json": "^3.17.0", - "@stoplight/path": "^1.3.2", - "@stoplight/types": "^12.3.0", - "abort-controller": "^3.0.0", - "lodash": "^4.17.21", - "node-fetch": "^2.6.7", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@asyncapi/generator/node_modules/@stoplight/spectral-runtime/node_modules/@stoplight/types": { - "version": "12.5.0", - "license": "Apache-2.0", - "dependencies": { - "@types/json-schema": "^7.0.4", - "utility-types": "^3.10.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@asyncapi/generator/node_modules/@stoplight/spectral-runtime/node_modules/tslib": { - "version": "2.6.2", - "license": "0BSD" - }, - "node_modules/@asyncapi/generator/node_modules/@stoplight/types": { - "version": "13.20.0", - "license": "Apache-2.0", - "dependencies": { - "@types/json-schema": "^7.0.4", - "utility-types": "^3.10.0" - }, - "engines": { - "node": "^12.20 || >=14.13" - } - }, - "node_modules/@asyncapi/generator/node_modules/@stoplight/yaml": { - "version": "4.3.0", - "license": "Apache-2.0", - "dependencies": { - "@stoplight/ordered-object-literal": "^1.0.5", - "@stoplight/types": "^14.1.1", - "@stoplight/yaml-ast-parser": "0.0.50", - "tslib": "^2.2.0" - }, - "engines": { - "node": ">=10.8" - } - }, - "node_modules/@asyncapi/generator/node_modules/@stoplight/yaml-ast-parser": { - "version": "0.0.50", - "license": "Apache-2.0" - }, - "node_modules/@asyncapi/generator/node_modules/@stoplight/yaml/node_modules/@stoplight/types": { - "version": "14.1.1", - "license": "Apache-2.0", - "dependencies": { - "@types/json-schema": "^7.0.4", - "utility-types": "^3.10.0" - }, - "engines": { - "node": "^12.20 || >=14.13" - } - }, - "node_modules/@asyncapi/generator/node_modules/@stoplight/yaml/node_modules/tslib": { - "version": "2.6.2", - "license": "0BSD" - }, - "node_modules/@asyncapi/generator/node_modules/@tootallnate/once": { - "version": "2.0.0", - "license": "MIT", - "engines": { - "node": ">= 10" - } - }, - "node_modules/@asyncapi/generator/node_modules/@tsconfig/node10": { - "version": "1.0.11", - "license": "MIT" - }, - "node_modules/@asyncapi/generator/node_modules/@tsconfig/node12": { - "version": "1.0.11", - "license": "MIT" - }, - "node_modules/@asyncapi/generator/node_modules/@tsconfig/node14": { - "version": "1.0.3", - "license": "MIT" - }, - "node_modules/@asyncapi/generator/node_modules/@tsconfig/node16": { - "version": "1.0.4", - "license": "MIT" - }, - "node_modules/@asyncapi/generator/node_modules/@types/babel__core": { - "version": "7.20.5", - "license": "MIT", - "optional": true, - "peer": true, - "dependencies": { - "@babel/parser": "^7.20.7", - "@babel/types": "^7.20.7", - "@types/babel__generator": "*", - "@types/babel__template": "*", - "@types/babel__traverse": "*" - } - }, - "node_modules/@asyncapi/generator/node_modules/@types/babel__generator": { - "version": "7.6.8", - "license": "MIT", - "optional": true, - "peer": true, - "dependencies": { - "@babel/types": "^7.0.0" - } - }, - "node_modules/@asyncapi/generator/node_modules/@types/babel__template": { - "version": "7.4.4", - "license": "MIT", - "optional": true, - "peer": true, - "dependencies": { - "@babel/parser": "^7.1.0", - "@babel/types": "^7.0.0" - } - }, - "node_modules/@asyncapi/generator/node_modules/@types/babel__traverse": { - "version": "7.20.5", - "license": "MIT", - "optional": true, - "peer": true, + "node_modules/@asyncapi/generator/node_modules/@types/babel__traverse": { + "version": "7.20.5", + "license": "MIT", + "optional": true, + "peer": true, "dependencies": { "@babel/types": "^7.20.7" } }, - "node_modules/@asyncapi/generator/node_modules/@types/es-aggregate-error": { - "version": "1.0.6", - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, "node_modules/@asyncapi/generator/node_modules/@types/estree": { "version": "0.0.39", "license": "MIT" }, - "node_modules/@asyncapi/generator/node_modules/@types/json-schema": { - "version": "7.0.15", - "license": "MIT" - }, "node_modules/@asyncapi/generator/node_modules/@types/node": { "version": "20.11.10", "license": "MIT", + "peer": true, "dependencies": { "undici-types": "~5.26.4" } }, - "node_modules/@asyncapi/generator/node_modules/@types/protocol-buffers-schema": { - "version": "3.4.3", - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@asyncapi/generator/node_modules/@types/urijs": { - "version": "1.19.25", - "license": "MIT" - }, "node_modules/@asyncapi/generator/node_modules/a-sync-waterfall": { "version": "1.0.1", "license": "MIT" @@ -2963,16 +2443,6 @@ "version": "1.1.1", "license": "ISC" }, - "node_modules/@asyncapi/generator/node_modules/abort-controller": { - "version": "3.0.0", - "license": "MIT", - "dependencies": { - "event-target-shim": "^5.0.0" - }, - "engines": { - "node": ">=6.5" - } - }, "node_modules/@asyncapi/generator/node_modules/agent-base": { "version": "6.0.2", "license": "MIT", @@ -3012,44 +2482,10 @@ "json-schema-traverse": "^1.0.0", "require-from-string": "^2.0.2", "uri-js": "^4.4.1" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/@asyncapi/generator/node_modules/ajv-draft-04": { - "version": "1.0.0", - "license": "MIT", - "peerDependencies": { - "ajv": "^8.5.0" - }, - "peerDependenciesMeta": { - "ajv": { - "optional": true - } - } - }, - "node_modules/@asyncapi/generator/node_modules/ajv-errors": { - "version": "3.0.0", - "license": "MIT", - "peerDependencies": { - "ajv": "^8.0.1" - } - }, - "node_modules/@asyncapi/generator/node_modules/ajv-formats": { - "version": "2.1.1", - "license": "MIT", - "dependencies": { - "ajv": "^8.0.0" - }, - "peerDependencies": { - "ajv": "^8.0.0" - }, - "peerDependenciesMeta": { - "ajv": { - "optional": true - } + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" } }, "node_modules/@asyncapi/generator/node_modules/ansi-regex": { @@ -3111,75 +2547,10 @@ "version": "4.1.3", "license": "MIT" }, - "node_modules/@asyncapi/generator/node_modules/argparse": { - "version": "2.0.1", - "license": "Python-2.0" - }, - "node_modules/@asyncapi/generator/node_modules/array-buffer-byte-length": { - "version": "1.0.1", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.5", - "is-array-buffer": "^3.0.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/@asyncapi/generator/node_modules/arraybuffer.prototype.slice": { - "version": "1.0.3", - "license": "MIT", - "dependencies": { - "array-buffer-byte-length": "^1.0.1", - "call-bind": "^1.0.5", - "define-properties": "^1.2.1", - "es-abstract": "^1.22.3", - "es-errors": "^1.2.1", - "get-intrinsic": "^1.2.3", - "is-array-buffer": "^3.0.4", - "is-shared-array-buffer": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/@asyncapi/generator/node_modules/asap": { "version": "2.0.6", "license": "MIT" }, - "node_modules/@asyncapi/generator/node_modules/astring": { - "version": "1.8.6", - "license": "MIT", - "bin": { - "astring": "bin/astring" - } - }, - "node_modules/@asyncapi/generator/node_modules/available-typed-arrays": { - "version": "1.0.7", - "license": "MIT", - "dependencies": { - "possible-typed-array-names": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/@asyncapi/generator/node_modules/avsc": { - "version": "5.7.7", - "license": "MIT", - "engines": { - "node": ">=0.11" - } - }, "node_modules/@asyncapi/generator/node_modules/babel-plugin-polyfill-corejs2": { "version": "0.4.11", "license": "MIT", @@ -3356,23 +2727,6 @@ "node": ">=12" } }, - "node_modules/@asyncapi/generator/node_modules/call-bind": { - "version": "1.0.7", - "license": "MIT", - "dependencies": { - "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.4", - "set-function-length": "^1.2.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/@asyncapi/generator/node_modules/caniuse-lite": { "version": "1.0.30001618", "funding": [ @@ -3449,14 +2803,6 @@ "node": "^12.13.0 || ^14.15.0 || >=16.0.0" } }, - "node_modules/@asyncapi/generator/node_modules/co": { - "version": "4.6.0", - "license": "MIT", - "engines": { - "iojs": ">= 1.0.0", - "node": ">= 0.12.0" - } - }, "node_modules/@asyncapi/generator/node_modules/color-convert": { "version": "1.9.3", "license": "MIT", @@ -3524,51 +2870,6 @@ "node": ">=4" } }, - "node_modules/@asyncapi/generator/node_modules/data-view-buffer": { - "version": "1.0.1", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.6", - "es-errors": "^1.3.0", - "is-data-view": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/@asyncapi/generator/node_modules/data-view-byte-length": { - "version": "1.0.1", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "es-errors": "^1.3.0", - "is-data-view": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/@asyncapi/generator/node_modules/data-view-byte-offset": { - "version": "1.0.0", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.6", - "es-errors": "^1.3.0", - "is-data-view": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/@asyncapi/generator/node_modules/debug": { "version": "4.3.4", "license": "MIT", @@ -3591,47 +2892,10 @@ "node": "*" } }, - "node_modules/@asyncapi/generator/node_modules/define-data-property": { - "version": "1.1.4", - "license": "MIT", - "dependencies": { - "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "gopd": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/@asyncapi/generator/node_modules/define-properties": { - "version": "1.2.1", - "license": "MIT", - "dependencies": { - "define-data-property": "^1.0.1", - "has-property-descriptors": "^1.0.0", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/@asyncapi/generator/node_modules/delegates": { "version": "1.0.0", "license": "MIT" }, - "node_modules/@asyncapi/generator/node_modules/dependency-graph": { - "version": "0.11.0", - "license": "MIT", - "engines": { - "node": ">= 0.6.0" - } - }, "node_modules/@asyncapi/generator/node_modules/dezalgo": { "version": "1.0.4", "license": "ISC", @@ -3685,138 +2949,6 @@ "version": "2.0.3", "license": "MIT" }, - "node_modules/@asyncapi/generator/node_modules/es-abstract": { - "version": "1.23.3", - "license": "MIT", - "dependencies": { - "array-buffer-byte-length": "^1.0.1", - "arraybuffer.prototype.slice": "^1.0.3", - "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.7", - "data-view-buffer": "^1.0.1", - "data-view-byte-length": "^1.0.1", - "data-view-byte-offset": "^1.0.0", - "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.0.0", - "es-set-tostringtag": "^2.0.3", - "es-to-primitive": "^1.2.1", - "function.prototype.name": "^1.1.6", - "get-intrinsic": "^1.2.4", - "get-symbol-description": "^1.0.2", - "globalthis": "^1.0.3", - "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.2", - "has-proto": "^1.0.3", - "has-symbols": "^1.0.3", - "hasown": "^2.0.2", - "internal-slot": "^1.0.7", - "is-array-buffer": "^3.0.4", - "is-callable": "^1.2.7", - "is-data-view": "^1.0.1", - "is-negative-zero": "^2.0.3", - "is-regex": "^1.1.4", - "is-shared-array-buffer": "^1.0.3", - "is-string": "^1.0.7", - "is-typed-array": "^1.1.13", - "is-weakref": "^1.0.2", - "object-inspect": "^1.13.1", - "object-keys": "^1.1.1", - "object.assign": "^4.1.5", - "regexp.prototype.flags": "^1.5.2", - "safe-array-concat": "^1.1.2", - "safe-regex-test": "^1.0.3", - "string.prototype.trim": "^1.2.9", - "string.prototype.trimend": "^1.0.8", - "string.prototype.trimstart": "^1.0.8", - "typed-array-buffer": "^1.0.2", - "typed-array-byte-length": "^1.0.1", - "typed-array-byte-offset": "^1.0.2", - "typed-array-length": "^1.0.6", - "unbox-primitive": "^1.0.2", - "which-typed-array": "^1.1.15" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/@asyncapi/generator/node_modules/es-aggregate-error": { - "version": "1.0.13", - "license": "MIT", - "dependencies": { - "define-data-property": "^1.1.4", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.2", - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "globalthis": "^1.0.3", - "has-property-descriptors": "^1.0.2", - "set-function-name": "^2.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/@asyncapi/generator/node_modules/es-define-property": { - "version": "1.0.0", - "license": "MIT", - "dependencies": { - "get-intrinsic": "^1.2.4" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/@asyncapi/generator/node_modules/es-errors": { - "version": "1.3.0", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/@asyncapi/generator/node_modules/es-object-atoms": { - "version": "1.0.0", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/@asyncapi/generator/node_modules/es-set-tostringtag": { - "version": "2.0.3", - "license": "MIT", - "dependencies": { - "get-intrinsic": "^1.2.4", - "has-tostringtag": "^1.0.2", - "hasown": "^2.0.1" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/@asyncapi/generator/node_modules/es-to-primitive": { - "version": "1.2.1", - "license": "MIT", - "dependencies": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/@asyncapi/generator/node_modules/escalade": { "version": "3.1.2", "license": "MIT", @@ -3853,13 +2985,6 @@ "node": ">=0.10.0" } }, - "node_modules/@asyncapi/generator/node_modules/event-target-shim": { - "version": "5.0.1", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, "node_modules/@asyncapi/generator/node_modules/exponential-backoff": { "version": "3.1.1", "license": "Apache-2.0" @@ -3868,14 +2993,6 @@ "version": "3.1.3", "license": "MIT" }, - "node_modules/@asyncapi/generator/node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "license": "MIT" - }, - "node_modules/@asyncapi/generator/node_modules/fast-memoize": { - "version": "2.5.2", - "license": "MIT" - }, "node_modules/@asyncapi/generator/node_modules/filename-reserved-regex": { "version": "2.0.0", "license": "MIT", @@ -3908,13 +3025,6 @@ "node": ">=8" } }, - "node_modules/@asyncapi/generator/node_modules/for-each": { - "version": "0.3.3", - "license": "MIT", - "dependencies": { - "is-callable": "^1.1.3" - } - }, "node_modules/@asyncapi/generator/node_modules/foreachasync": { "version": "3.0.0", "license": "Apache2" @@ -3976,34 +3086,11 @@ "darwin" ], "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/@asyncapi/generator/node_modules/function-bind": { - "version": "1.1.2", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/@asyncapi/generator/node_modules/function.prototype.name": { - "version": "1.1.6", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1", - "functions-have-names": "^1.2.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" } }, - "node_modules/@asyncapi/generator/node_modules/functions-have-names": { - "version": "1.2.3", + "node_modules/@asyncapi/generator/node_modules/function-bind": { + "version": "1.1.2", "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" @@ -4043,38 +3130,6 @@ "node": ">=6.9.0" } }, - "node_modules/@asyncapi/generator/node_modules/get-intrinsic": { - "version": "1.2.4", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3", - "hasown": "^2.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/@asyncapi/generator/node_modules/get-symbol-description": { - "version": "1.0.2", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.5", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/@asyncapi/generator/node_modules/glob": { "version": "8.1.0", "license": "ISC", @@ -4139,41 +3194,10 @@ "node": ">=4" } }, - "node_modules/@asyncapi/generator/node_modules/globalthis": { - "version": "1.0.4", - "license": "MIT", - "dependencies": { - "define-properties": "^1.2.1", - "gopd": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/@asyncapi/generator/node_modules/gopd": { - "version": "1.0.1", - "license": "MIT", - "dependencies": { - "get-intrinsic": "^1.1.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/@asyncapi/generator/node_modules/graceful-fs": { "version": "4.2.11", "license": "ISC" }, - "node_modules/@asyncapi/generator/node_modules/has-bigints": { - "version": "1.0.2", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/@asyncapi/generator/node_modules/has-flag": { "version": "3.0.0", "license": "MIT", @@ -4181,49 +3205,6 @@ "node": ">=4" } }, - "node_modules/@asyncapi/generator/node_modules/has-property-descriptors": { - "version": "1.0.2", - "license": "MIT", - "dependencies": { - "es-define-property": "^1.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/@asyncapi/generator/node_modules/has-proto": { - "version": "1.0.3", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/@asyncapi/generator/node_modules/has-symbols": { - "version": "1.0.3", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/@asyncapi/generator/node_modules/has-tostringtag": { - "version": "1.0.2", - "license": "MIT", - "dependencies": { - "has-symbols": "^1.0.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/@asyncapi/generator/node_modules/has-unicode": { "version": "2.0.1", "license": "ISC" @@ -4281,329 +3262,136 @@ "engines": { "node": ">= 6" } - }, - "node_modules/@asyncapi/generator/node_modules/humanize-ms": { - "version": "1.2.1", - "license": "MIT", - "dependencies": { - "ms": "^2.0.0" - } - }, - "node_modules/@asyncapi/generator/node_modules/ignore-walk": { - "version": "5.0.1", - "license": "ISC", - "dependencies": { - "minimatch": "^5.0.1" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" - } - }, - "node_modules/@asyncapi/generator/node_modules/ignore-walk/node_modules/brace-expansion": { - "version": "2.0.1", - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/@asyncapi/generator/node_modules/ignore-walk/node_modules/minimatch": { - "version": "5.1.6", - "license": "ISC", - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@asyncapi/generator/node_modules/immer": { - "version": "9.0.21", - "license": "MIT", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/immer" - } - }, - "node_modules/@asyncapi/generator/node_modules/imurmurhash": { - "version": "0.1.4", - "license": "MIT", - "engines": { - "node": ">=0.8.19" - } - }, - "node_modules/@asyncapi/generator/node_modules/indent-string": { - "version": "4.0.0", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/@asyncapi/generator/node_modules/infer-owner": { - "version": "1.0.4", - "license": "ISC" - }, - "node_modules/@asyncapi/generator/node_modules/inflight": { - "version": "1.0.6", - "license": "ISC", - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "node_modules/@asyncapi/generator/node_modules/inherits": { - "version": "2.0.4", - "license": "ISC" - }, - "node_modules/@asyncapi/generator/node_modules/ini": { - "version": "2.0.0", - "license": "ISC", - "engines": { - "node": ">=10" - } - }, - "node_modules/@asyncapi/generator/node_modules/internal-slot": { - "version": "1.0.7", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "hasown": "^2.0.0", - "side-channel": "^1.0.4" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/@asyncapi/generator/node_modules/ip-address": { - "version": "9.0.5", - "license": "MIT", - "dependencies": { - "jsbn": "1.1.0", - "sprintf-js": "^1.1.3" - }, - "engines": { - "node": ">= 12" - } - }, - "node_modules/@asyncapi/generator/node_modules/is-array-buffer": { - "version": "3.0.4", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.2.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/@asyncapi/generator/node_modules/is-bigint": { - "version": "1.0.4", - "license": "MIT", - "dependencies": { - "has-bigints": "^1.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/@asyncapi/generator/node_modules/is-binary-path": { - "version": "2.1.0", - "license": "MIT", - "dependencies": { - "binary-extensions": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@asyncapi/generator/node_modules/is-boolean-object": { - "version": "1.1.2", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/@asyncapi/generator/node_modules/is-callable": { - "version": "1.2.7", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/@asyncapi/generator/node_modules/is-core-module": { - "version": "2.13.1", + }, + "node_modules/@asyncapi/generator/node_modules/humanize-ms": { + "version": "1.2.1", "license": "MIT", "dependencies": { - "hasown": "^2.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "ms": "^2.0.0" } }, - "node_modules/@asyncapi/generator/node_modules/is-data-view": { - "version": "1.0.1", - "license": "MIT", + "node_modules/@asyncapi/generator/node_modules/ignore-walk": { + "version": "5.0.1", + "license": "ISC", "dependencies": { - "is-typed-array": "^1.1.13" + "minimatch": "^5.0.1" }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" } }, - "node_modules/@asyncapi/generator/node_modules/is-date-object": { - "version": "1.0.5", + "node_modules/@asyncapi/generator/node_modules/ignore-walk/node_modules/brace-expansion": { + "version": "2.0.1", "license": "MIT", "dependencies": { - "has-tostringtag": "^1.0.0" + "balanced-match": "^1.0.0" + } + }, + "node_modules/@asyncapi/generator/node_modules/ignore-walk/node_modules/minimatch": { + "version": "5.1.6", + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=10" } }, - "node_modules/@asyncapi/generator/node_modules/is-extglob": { - "version": "2.1.1", + "node_modules/@asyncapi/generator/node_modules/imurmurhash": { + "version": "0.1.4", "license": "MIT", "engines": { - "node": ">=0.10.0" + "node": ">=0.8.19" } }, - "node_modules/@asyncapi/generator/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", + "node_modules/@asyncapi/generator/node_modules/indent-string": { + "version": "4.0.0", "license": "MIT", "engines": { "node": ">=8" } }, - "node_modules/@asyncapi/generator/node_modules/is-glob": { - "version": "4.0.3", - "license": "MIT", + "node_modules/@asyncapi/generator/node_modules/infer-owner": { + "version": "1.0.4", + "license": "ISC" + }, + "node_modules/@asyncapi/generator/node_modules/inflight": { + "version": "1.0.6", + "license": "ISC", "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" + "once": "^1.3.0", + "wrappy": "1" } }, - "node_modules/@asyncapi/generator/node_modules/is-lambda": { - "version": "1.0.1", - "license": "MIT" + "node_modules/@asyncapi/generator/node_modules/inherits": { + "version": "2.0.4", + "license": "ISC" }, - "node_modules/@asyncapi/generator/node_modules/is-negative-zero": { - "version": "2.0.3", - "license": "MIT", + "node_modules/@asyncapi/generator/node_modules/ini": { + "version": "2.0.0", + "license": "ISC", "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=10" } }, - "node_modules/@asyncapi/generator/node_modules/is-number-object": { - "version": "1.0.7", + "node_modules/@asyncapi/generator/node_modules/ip-address": { + "version": "9.0.5", "license": "MIT", "dependencies": { - "has-tostringtag": "^1.0.0" + "jsbn": "1.1.0", + "sprintf-js": "^1.1.3" }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">= 12" } }, - "node_modules/@asyncapi/generator/node_modules/is-regex": { - "version": "1.1.4", + "node_modules/@asyncapi/generator/node_modules/is-binary-path": { + "version": "2.1.0", "license": "MIT", "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" + "binary-extensions": "^2.0.0" }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=8" } }, - "node_modules/@asyncapi/generator/node_modules/is-shared-array-buffer": { - "version": "1.0.3", + "node_modules/@asyncapi/generator/node_modules/is-core-module": { + "version": "2.13.1", "license": "MIT", "dependencies": { - "call-bind": "^1.0.7" - }, - "engines": { - "node": ">= 0.4" + "hasown": "^2.0.0" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/@asyncapi/generator/node_modules/is-string": { - "version": "1.0.7", + "node_modules/@asyncapi/generator/node_modules/is-extglob": { + "version": "2.1.1", "license": "MIT", - "dependencies": { - "has-tostringtag": "^1.0.0" - }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=0.10.0" } }, - "node_modules/@asyncapi/generator/node_modules/is-symbol": { - "version": "1.0.4", + "node_modules/@asyncapi/generator/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", "license": "MIT", - "dependencies": { - "has-symbols": "^1.0.2" - }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=8" } }, - "node_modules/@asyncapi/generator/node_modules/is-typed-array": { - "version": "1.1.13", + "node_modules/@asyncapi/generator/node_modules/is-glob": { + "version": "4.0.3", "license": "MIT", "dependencies": { - "which-typed-array": "^1.1.14" + "is-extglob": "^2.1.1" }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=0.10.0" } }, - "node_modules/@asyncapi/generator/node_modules/is-weakref": { - "version": "1.0.2", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } + "node_modules/@asyncapi/generator/node_modules/is-lambda": { + "version": "1.0.1", + "license": "MIT" }, "node_modules/@asyncapi/generator/node_modules/isexe": { "version": "2.0.0", @@ -4645,13 +3433,6 @@ "version": "1.1.0", "license": "MIT" }, - "node_modules/@asyncapi/generator/node_modules/jsep": { - "version": "1.3.8", - "license": "MIT", - "engines": { - "node": ">= 10.16.0" - } - }, "node_modules/@asyncapi/generator/node_modules/jsesc": { "version": "2.5.2", "license": "MIT", @@ -4666,31 +3447,6 @@ "version": "2.3.1", "license": "MIT" }, - "node_modules/@asyncapi/generator/node_modules/json-schema-migrate": { - "version": "0.2.0", - "license": "MIT", - "dependencies": { - "ajv": "^5.0.0" - } - }, - "node_modules/@asyncapi/generator/node_modules/json-schema-migrate/node_modules/ajv": { - "version": "5.5.2", - "license": "MIT", - "dependencies": { - "co": "^4.6.0", - "fast-deep-equal": "^1.0.0", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.3.0" - } - }, - "node_modules/@asyncapi/generator/node_modules/json-schema-migrate/node_modules/fast-deep-equal": { - "version": "1.1.0", - "license": "MIT" - }, - "node_modules/@asyncapi/generator/node_modules/json-schema-migrate/node_modules/json-schema-traverse": { - "version": "0.3.1", - "license": "MIT" - }, "node_modules/@asyncapi/generator/node_modules/json-schema-traverse": { "version": "1.0.0", "license": "MIT" @@ -4712,10 +3468,6 @@ "node": ">=6" } }, - "node_modules/@asyncapi/generator/node_modules/jsonc-parser": { - "version": "2.2.1", - "license": "MIT" - }, "node_modules/@asyncapi/generator/node_modules/jsonfile": { "version": "1.0.1" }, @@ -4726,20 +3478,6 @@ ], "license": "MIT" }, - "node_modules/@asyncapi/generator/node_modules/jsonpath-plus": { - "version": "7.2.0", - "license": "MIT", - "engines": { - "node": ">=12.0.0" - } - }, - "node_modules/@asyncapi/generator/node_modules/jsonpointer": { - "version": "5.0.1", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/@asyncapi/generator/node_modules/just-diff": { "version": "5.2.0", "license": "MIT" @@ -4748,13 +3486,6 @@ "version": "5.5.0", "license": "MIT" }, - "node_modules/@asyncapi/generator/node_modules/leven": { - "version": "3.1.0", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, "node_modules/@asyncapi/generator/node_modules/levenshtein-edit-distance": { "version": "2.0.5", "license": "MIT", @@ -4774,10 +3505,6 @@ "version": "4.0.8", "license": "MIT" }, - "node_modules/@asyncapi/generator/node_modules/lodash.topath": { - "version": "4.5.2", - "license": "MIT" - }, "node_modules/@asyncapi/generator/node_modules/loglevel": { "version": "1.9.1", "license": "MIT", @@ -4789,10 +3516,6 @@ "url": "https://tidelift.com/funding/github/npm/loglevel" } }, - "node_modules/@asyncapi/generator/node_modules/long": { - "version": "5.2.3", - "license": "Apache-2.0" - }, "node_modules/@asyncapi/generator/node_modules/loose-envify": { "version": "1.4.0", "license": "MIT", @@ -4988,31 +3711,6 @@ "node": ">= 0.6" } }, - "node_modules/@asyncapi/generator/node_modules/nimma": { - "version": "0.2.2", - "license": "Apache-2.0", - "dependencies": { - "@jsep-plugin/regex": "^1.0.1", - "@jsep-plugin/ternary": "^1.0.2", - "astring": "^1.8.1", - "jsep": "^1.2.0" - }, - "engines": { - "node": "^12.20 || >=14.13" - }, - "optionalDependencies": { - "jsonpath-plus": "^6.0.1", - "lodash.topath": "^4.5.2" - } - }, - "node_modules/@asyncapi/generator/node_modules/nimma/node_modules/jsonpath-plus": { - "version": "6.0.1", - "license": "MIT", - "optional": true, - "engines": { - "node": ">=10.0.0" - } - }, "node_modules/@asyncapi/generator/node_modules/node-fetch": { "version": "2.7.0", "license": "MIT", @@ -5272,40 +3970,10 @@ } }, "node_modules/@asyncapi/generator/node_modules/object-assign": { - "version": "4.1.1", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/@asyncapi/generator/node_modules/object-inspect": { - "version": "1.13.1", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/@asyncapi/generator/node_modules/object-keys": { - "version": "1.1.1", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/@asyncapi/generator/node_modules/object.assign": { - "version": "4.1.5", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.5", - "define-properties": "^1.2.1", - "has-symbols": "^1.0.3", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "version": "4.1.1", + "license": "MIT", + "engines": { + "node": ">=0.10.0" } }, "node_modules/@asyncapi/generator/node_modules/once": { @@ -5373,221 +4041,6 @@ "node": "^12.13.0 || ^14.15.0 || >=16.0.0" } }, - "node_modules/@asyncapi/generator/node_modules/parserapiv1": { - "name": "@asyncapi/parser", - "version": "2.1.2", - "license": "Apache-2.0", - "dependencies": { - "@asyncapi/specs": "^5.1.0", - "@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0", - "@stoplight/json": "^3.20.2", - "@stoplight/json-ref-readers": "^1.2.2", - "@stoplight/json-ref-resolver": "^3.1.5", - "@stoplight/spectral-core": "^1.16.1", - "@stoplight/spectral-functions": "^1.7.2", - "@stoplight/spectral-parsers": "^1.0.2", - "@stoplight/spectral-ref-resolver": "^1.0.3", - "@stoplight/types": "^13.12.0", - "@types/json-schema": "^7.0.11", - "@types/urijs": "^1.19.19", - "ajv": "^8.11.0", - "ajv-errors": "^3.0.0", - "ajv-formats": "^2.1.1", - "avsc": "^5.7.5", - "js-yaml": "^4.1.0", - "jsonpath-plus": "^7.2.0", - "node-fetch": "2.6.7" - } - }, - "node_modules/@asyncapi/generator/node_modules/parserapiv1/node_modules/@asyncapi/specs": { - "version": "5.1.0", - "license": "Apache-2.0", - "dependencies": { - "@types/json-schema": "^7.0.11" - } - }, - "node_modules/@asyncapi/generator/node_modules/parserapiv1/node_modules/js-yaml": { - "version": "4.1.0", - "license": "MIT", - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/@asyncapi/generator/node_modules/parserapiv1/node_modules/node-fetch": { - "version": "2.6.7", - "license": "MIT", - "dependencies": { - "whatwg-url": "^5.0.0" - }, - "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } - } - }, - "node_modules/@asyncapi/generator/node_modules/parserapiv1/node_modules/tr46": { - "version": "0.0.3", - "license": "MIT" - }, - "node_modules/@asyncapi/generator/node_modules/parserapiv1/node_modules/webidl-conversions": { - "version": "3.0.1", - "license": "BSD-2-Clause" - }, - "node_modules/@asyncapi/generator/node_modules/parserapiv1/node_modules/whatwg-url": { - "version": "5.0.0", - "license": "MIT", - "dependencies": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - }, - "node_modules/@asyncapi/generator/node_modules/parserapiv2": { - "name": "@asyncapi/parser", - "version": "3.0.0-next-major-spec.8", - "license": "Apache-2.0", - "dependencies": { - "@asyncapi/specs": "^6.0.0-next-major-spec.9", - "@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0", - "@stoplight/json-ref-resolver": "^3.1.5", - "@stoplight/spectral-core": "^1.16.1", - "@stoplight/spectral-functions": "^1.7.2", - "@stoplight/spectral-parsers": "^1.0.2", - "@types/json-schema": "^7.0.11", - "@types/urijs": "^1.19.19", - "ajv": "^8.11.0", - "ajv-errors": "^3.0.0", - "ajv-formats": "^2.1.1", - "avsc": "^5.7.5", - "js-yaml": "^4.1.0", - "jsonpath-plus": "^7.2.0", - "node-fetch": "2.6.7", - "ramldt2jsonschema": "^1.2.3", - "webapi-parser": "^0.5.0" - } - }, - "node_modules/@asyncapi/generator/node_modules/parserapiv2/node_modules/js-yaml": { - "version": "4.1.0", - "license": "MIT", - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/@asyncapi/generator/node_modules/parserapiv2/node_modules/node-fetch": { - "version": "2.6.7", - "license": "MIT", - "dependencies": { - "whatwg-url": "^5.0.0" - }, - "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } - } - }, - "node_modules/@asyncapi/generator/node_modules/parserapiv2/node_modules/tr46": { - "version": "0.0.3", - "license": "MIT" - }, - "node_modules/@asyncapi/generator/node_modules/parserapiv2/node_modules/webidl-conversions": { - "version": "3.0.1", - "license": "BSD-2-Clause" - }, - "node_modules/@asyncapi/generator/node_modules/parserapiv2/node_modules/whatwg-url": { - "version": "5.0.0", - "license": "MIT", - "dependencies": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - }, - "node_modules/@asyncapi/generator/node_modules/parserapiv3": { - "name": "@asyncapi/parser", - "version": "3.0.14", - "license": "Apache-2.0", - "dependencies": { - "@asyncapi/specs": "^6.6.0", - "@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0", - "@stoplight/json": "^3.20.2", - "@stoplight/json-ref-readers": "^1.2.2", - "@stoplight/json-ref-resolver": "^3.1.5", - "@stoplight/spectral-core": "^1.16.1", - "@stoplight/spectral-functions": "^1.7.2", - "@stoplight/spectral-parsers": "^1.0.2", - "@stoplight/spectral-ref-resolver": "^1.0.3", - "@stoplight/types": "^13.12.0", - "@types/json-schema": "^7.0.11", - "@types/urijs": "^1.19.19", - "ajv": "^8.11.0", - "ajv-errors": "^3.0.0", - "ajv-formats": "^2.1.1", - "avsc": "^5.7.5", - "js-yaml": "^4.1.0", - "jsonpath-plus": "^7.2.0", - "node-fetch": "2.6.7" - } - }, - "node_modules/@asyncapi/generator/node_modules/parserapiv3/node_modules/js-yaml": { - "version": "4.1.0", - "license": "MIT", - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/@asyncapi/generator/node_modules/parserapiv3/node_modules/node-fetch": { - "version": "2.6.7", - "license": "MIT", - "dependencies": { - "whatwg-url": "^5.0.0" - }, - "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } - } - }, - "node_modules/@asyncapi/generator/node_modules/parserapiv3/node_modules/tr46": { - "version": "0.0.3", - "license": "MIT" - }, - "node_modules/@asyncapi/generator/node_modules/parserapiv3/node_modules/webidl-conversions": { - "version": "3.0.1", - "license": "BSD-2-Clause" - }, - "node_modules/@asyncapi/generator/node_modules/parserapiv3/node_modules/whatwg-url": { - "version": "5.0.0", - "license": "MIT", - "dependencies": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - }, "node_modules/@asyncapi/generator/node_modules/path-is-absolute": { "version": "1.0.1", "license": "MIT", @@ -5613,20 +4066,6 @@ "url": "https://github.com/sponsors/jonschlinkert" } }, - "node_modules/@asyncapi/generator/node_modules/pony-cause": { - "version": "1.1.1", - "license": "0BSD", - "engines": { - "node": ">=12.0.0" - } - }, - "node_modules/@asyncapi/generator/node_modules/possible-typed-array-names": { - "version": "1.0.0", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, "node_modules/@asyncapi/generator/node_modules/postcss-selector-parser": { "version": "6.0.15", "license": "MIT", @@ -5675,62 +4114,19 @@ } }, "node_modules/@asyncapi/generator/node_modules/prop-types": { - "version": "15.8.1", - "license": "MIT", - "dependencies": { - "loose-envify": "^1.4.0", - "object-assign": "^4.1.1", - "react-is": "^16.13.1" - } - }, - "node_modules/@asyncapi/generator/node_modules/protobufjs": { - "version": "7.3.0", - "hasInstallScript": true, - "license": "BSD-3-Clause", - "dependencies": { - "@protobufjs/aspromise": "^1.1.2", - "@protobufjs/base64": "^1.1.2", - "@protobufjs/codegen": "^2.0.4", - "@protobufjs/eventemitter": "^1.1.0", - "@protobufjs/fetch": "^1.1.0", - "@protobufjs/float": "^1.0.2", - "@protobufjs/inquire": "^1.1.0", - "@protobufjs/path": "^1.1.2", - "@protobufjs/pool": "^1.1.0", - "@protobufjs/utf8": "^1.1.0", - "@types/node": ">=13.7.0", - "long": "^5.0.0" - }, - "engines": { - "node": ">=12.0.0" - } - }, - "node_modules/@asyncapi/generator/node_modules/punycode": { - "version": "2.3.1", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/@asyncapi/generator/node_modules/ramldt2jsonschema": { - "version": "1.2.3", - "license": "Apache-2.0", - "dependencies": { - "commander": "^5.0.0", - "js-yaml": "^3.14.0", - "json-schema-migrate": "^0.2.0", - "webapi-parser": "^0.5.0" - }, - "bin": { - "dt2js": "bin/dt2js.js", - "js2dt": "bin/js2dt.js" + "version": "15.8.1", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.4.0", + "object-assign": "^4.1.1", + "react-is": "^16.13.1" } }, - "node_modules/@asyncapi/generator/node_modules/ramldt2jsonschema/node_modules/commander": { - "version": "5.1.0", + "node_modules/@asyncapi/generator/node_modules/punycode": { + "version": "2.3.1", "license": "MIT", "engines": { - "node": ">= 6" + "node": ">=6" } }, "node_modules/@asyncapi/generator/node_modules/react": { @@ -5831,22 +4227,6 @@ "@babel/runtime": "^7.8.4" } }, - "node_modules/@asyncapi/generator/node_modules/regexp.prototype.flags": { - "version": "1.5.2", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.6", - "define-properties": "^1.2.1", - "es-errors": "^1.3.0", - "set-function-name": "^2.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/@asyncapi/generator/node_modules/regexpu-core": { "version": "5.3.2", "license": "MIT", @@ -5968,49 +4348,10 @@ "fsevents": "~2.3.2" } }, - "node_modules/@asyncapi/generator/node_modules/safe-array-concat": { - "version": "1.1.2", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "get-intrinsic": "^1.2.4", - "has-symbols": "^1.0.3", - "isarray": "^2.0.5" - }, - "engines": { - "node": ">=0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/@asyncapi/generator/node_modules/safe-array-concat/node_modules/isarray": { - "version": "2.0.5", - "license": "MIT" - }, "node_modules/@asyncapi/generator/node_modules/safe-buffer": { "version": "5.1.2", "license": "MIT" }, - "node_modules/@asyncapi/generator/node_modules/safe-regex-test": { - "version": "1.0.3", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.6", - "es-errors": "^1.3.0", - "is-regex": "^1.1.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/@asyncapi/generator/node_modules/safe-stable-stringify": { - "version": "1.1.1", - "license": "MIT" - }, "node_modules/@asyncapi/generator/node_modules/safer-buffer": { "version": "2.1.2", "license": "MIT", @@ -6030,64 +4371,10 @@ "version": "2.0.0", "license": "ISC" }, - "node_modules/@asyncapi/generator/node_modules/set-function-length": { - "version": "1.2.2", - "license": "MIT", - "dependencies": { - "define-data-property": "^1.1.4", - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.4", - "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/@asyncapi/generator/node_modules/set-function-name": { - "version": "2.0.2", - "license": "MIT", - "dependencies": { - "define-data-property": "^1.1.4", - "es-errors": "^1.3.0", - "functions-have-names": "^1.2.3", - "has-property-descriptors": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/@asyncapi/generator/node_modules/side-channel": { - "version": "1.0.6", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.4", - "object-inspect": "^1.13.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/@asyncapi/generator/node_modules/signal-exit": { "version": "3.0.7", "license": "ISC" }, - "node_modules/@asyncapi/generator/node_modules/simple-eval": { - "version": "1.0.0", - "license": "MIT", - "dependencies": { - "jsep": "^1.1.2" - }, - "engines": { - "node": ">=12" - } - }, "node_modules/@asyncapi/generator/node_modules/simple-git": { "version": "3.22.0", "license": "MIT", @@ -6215,49 +4502,6 @@ "node": ">=8" } }, - "node_modules/@asyncapi/generator/node_modules/string.prototype.trim": { - "version": "1.2.9", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.0", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/@asyncapi/generator/node_modules/string.prototype.trimend": { - "version": "1.0.8", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-object-atoms": "^1.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/@asyncapi/generator/node_modules/string.prototype.trimstart": { - "version": "1.0.8", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/@asyncapi/generator/node_modules/strip-outer": { "version": "1.0.1", "license": "MIT", @@ -6413,75 +4657,6 @@ "node": ">=0.4.0" } }, - "node_modules/@asyncapi/generator/node_modules/tslib": { - "version": "1.14.1", - "license": "0BSD" - }, - "node_modules/@asyncapi/generator/node_modules/typed-array-buffer": { - "version": "1.0.2", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "es-errors": "^1.3.0", - "is-typed-array": "^1.1.13" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/@asyncapi/generator/node_modules/typed-array-byte-length": { - "version": "1.0.1", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-proto": "^1.0.3", - "is-typed-array": "^1.1.13" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/@asyncapi/generator/node_modules/typed-array-byte-offset": { - "version": "1.0.2", - "license": "MIT", - "dependencies": { - "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.7", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-proto": "^1.0.3", - "is-typed-array": "^1.1.13" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/@asyncapi/generator/node_modules/typed-array-length": { - "version": "1.0.6", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-proto": "^1.0.3", - "is-typed-array": "^1.1.13", - "possible-typed-array-names": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/@asyncapi/generator/node_modules/typescript": { "version": "4.9.5", "license": "Apache-2.0", @@ -6493,22 +4668,10 @@ "node": ">=4.2.0" } }, - "node_modules/@asyncapi/generator/node_modules/unbox-primitive": { - "version": "1.0.2", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.2", - "has-bigints": "^1.0.2", - "has-symbols": "^1.0.3", - "which-boxed-primitive": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/@asyncapi/generator/node_modules/undici-types": { "version": "5.26.5", - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/@asyncapi/generator/node_modules/unicode-canonical-property-names-ecmascript": { "version": "2.0.0", @@ -6597,21 +4760,10 @@ "punycode": "^2.1.0" } }, - "node_modules/@asyncapi/generator/node_modules/urijs": { - "version": "1.19.11", - "license": "MIT" - }, "node_modules/@asyncapi/generator/node_modules/util-deprecate": { "version": "1.0.2", "license": "MIT" }, - "node_modules/@asyncapi/generator/node_modules/utility-types": { - "version": "3.11.0", - "license": "MIT", - "engines": { - "node": ">= 4" - } - }, "node_modules/@asyncapi/generator/node_modules/v8-compile-cache-lib": { "version": "3.0.1", "license": "MIT" @@ -6645,31 +4797,6 @@ "version": "1.0.0", "license": "ISC" }, - "node_modules/@asyncapi/generator/node_modules/webapi-parser": { - "version": "0.5.0", - "license": "Apache-2.0", - "dependencies": { - "ajv": "6.5.2" - } - }, - "node_modules/@asyncapi/generator/node_modules/webapi-parser/node_modules/ajv": { - "version": "6.5.2", - "license": "MIT", - "dependencies": { - "fast-deep-equal": "^2.0.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.1" - } - }, - "node_modules/@asyncapi/generator/node_modules/webapi-parser/node_modules/fast-deep-equal": { - "version": "2.0.1", - "license": "MIT" - }, - "node_modules/@asyncapi/generator/node_modules/webapi-parser/node_modules/json-schema-traverse": { - "version": "0.4.1", - "license": "MIT" - }, "node_modules/@asyncapi/generator/node_modules/which": { "version": "2.0.2", "license": "ISC", @@ -6683,37 +4810,6 @@ "node": ">= 8" } }, - "node_modules/@asyncapi/generator/node_modules/which-boxed-primitive": { - "version": "1.0.2", - "license": "MIT", - "dependencies": { - "is-bigint": "^1.0.1", - "is-boolean-object": "^1.1.0", - "is-number-object": "^1.0.4", - "is-string": "^1.0.5", - "is-symbol": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/@asyncapi/generator/node_modules/which-typed-array": { - "version": "1.1.15", - "license": "MIT", - "dependencies": { - "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.7", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-tostringtag": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/@asyncapi/generator/node_modules/wide-align": { "version": "1.1.5", "license": "ISC", @@ -6805,10 +4901,11 @@ } }, "node_modules/@asyncapi/parser": { - "version": "3.0.14", - "license": "Apache-2.0", + "version": "3.0.16", + "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.16.tgz", + "integrity": "sha512-Ze0OAZvyCKWLeAMNcyY6nnc2Xbv5vvyvXFRnCD/I0VIGlIgbIlD7HbDgeQcNZ9fZ68lT0myjje8QLmFP7ddLGw==", "dependencies": { - "@asyncapi/specs": "^6.6.0", + "@asyncapi/specs": "^6.7.1", "@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0", "@stoplight/json": "^3.20.2", "@stoplight/json-ref-readers": "^1.2.2", @@ -12114,8 +10211,9 @@ } }, "node_modules/@smoya/multi-parser": { - "version": "5.0.7", - "license": "Apache-2.0", + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/@smoya/multi-parser/-/multi-parser-5.0.8.tgz", + "integrity": "sha512-A/2Bqz7aDRVBRNoXYgbnbaD2YCmwEU1N4865zHCJfXRXX9J4OKF54nTuIjLYu3mHJUOroIx8z5lYmCELd+hCgw==", "dependencies": { "@asyncapi/avro-schema-parser": "^3.0.3", "@asyncapi/openapi-schema-parser": "^3.0.4", @@ -12123,7 +10221,7 @@ "@asyncapi/raml-dt-schema-parser": "^4.0.4", "parserapiv1": "npm:@asyncapi/parser@^2.1.0", "parserapiv2": "npm:@asyncapi/parser@3.0.0-next-major-spec.8", - "parserapiv3": "npm:@asyncapi/parser@^3.0.14" + "parserapiv3": "npm:@asyncapi/parser@^3.0.16" } }, "node_modules/@stoplight/better-ajv-errors": { @@ -21744,10 +19842,11 @@ }, "node_modules/parserapiv3": { "name": "@asyncapi/parser", - "version": "3.0.14", - "license": "Apache-2.0", + "version": "3.0.16", + "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.16.tgz", + "integrity": "sha512-Ze0OAZvyCKWLeAMNcyY6nnc2Xbv5vvyvXFRnCD/I0VIGlIgbIlD7HbDgeQcNZ9fZ68lT0myjje8QLmFP7ddLGw==", "dependencies": { - "@asyncapi/specs": "^6.6.0", + "@asyncapi/specs": "^6.7.1", "@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0", "@stoplight/json": "^3.20.2", "@stoplight/json-ref-readers": "^1.2.2", @@ -21770,14 +19869,16 @@ }, "node_modules/parserapiv3/node_modules/jsonpath-plus": { "version": "7.2.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-7.2.0.tgz", + "integrity": "sha512-zBfiUPM5nD0YZSBT/o/fbCUlCcepMIdP0CJZxM1+KgA4f2T206f6VAg9e7mX35+KlMaIc5qXW34f3BnwJ3w+RA==", "engines": { "node": ">=12.0.0" } }, "node_modules/parserapiv3/node_modules/node-fetch": { "version": "2.6.7", - "license": "MIT", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", + "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", "dependencies": { "whatwg-url": "^5.0.0" }, @@ -21795,15 +19896,18 @@ }, "node_modules/parserapiv3/node_modules/tr46": { "version": "0.0.3", - "license": "MIT" + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" }, "node_modules/parserapiv3/node_modules/webidl-conversions": { "version": "3.0.1", - "license": "BSD-2-Clause" + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" }, "node_modules/parserapiv3/node_modules/whatwg-url": { "version": "5.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", "dependencies": { "tr46": "~0.0.3", "webidl-conversions": "^3.0.0" diff --git a/package.json b/package.json index 4fc35663c81..829fb556870 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@asyncapi/cli", "description": "All in one CLI for all AsyncAPI tools", - "version": "1.16.0", + "version": "1.16.1", "author": "@asyncapi", "bin": { "asyncapi": "./bin/run_bin" @@ -16,7 +16,7 @@ "@asyncapi/modelina": "^3.5.1", "@asyncapi/openapi-schema-parser": "^3.0.22", "@asyncapi/optimizer": "^1.0.2", - "@asyncapi/parser": "^3.0.14", + "@asyncapi/parser": "^3.0.16", "@asyncapi/protobuf-schema-parser": "^3.2.12", "@asyncapi/raml-dt-schema-parser": "^4.0.22", "@asyncapi/studio": "^0.20.0", @@ -25,7 +25,7 @@ "@oclif/errors": "^1.3.6", "@oclif/plugin-not-found": "^2.3.22", "@smoya/asyncapi-adoption-metrics": "^2.4.7", - "@smoya/multi-parser": "^5.0.7", + "@smoya/multi-parser": "^5.0.8", "@stoplight/spectral-cli": "6.9.0", "ajv": "^8.12.0", "chalk": "^4.1.0", diff --git a/src/commands/config/analytics.ts b/src/commands/config/analytics.ts index 5541a494c41..3cabf71efeb 100644 --- a/src/commands/config/analytics.ts +++ b/src/commands/config/analytics.ts @@ -20,9 +20,11 @@ export default class Analytics extends Command { if (flags.disable) { analyticsConfigFileContent.analyticsEnabled = 'false'; this.log('\nAnalytics disabled.\n'); + this.metricsMetadata.analytics_disabled = flags.disable; } else if (flags.enable) { analyticsConfigFileContent.analyticsEnabled = 'true'; this.log('\nAnalytics enabled.\n'); + this.metricsMetadata.analytics_enabled = flags.enable; } else if (!flags.status) { this.log('\nPlease append the "--disable" flag to the command in case you prefer to disable analytics, or use the "--enable" flag if you want to enable analytics back again. In case you do not know the analytics current status, then you can append the "--status" flag to be aware of it.\n'); return; @@ -35,6 +37,7 @@ export default class Analytics extends Command { } else { this.log('\nAnalytics are disabled. Please append the "--enable" flag to the command in case you prefer to enable analytics.\n'); } + this.metricsMetadata.analytics_status_checked = flags.status; } } catch (e: any) { switch (e.code) { diff --git a/src/commands/diff.ts b/src/commands/diff.ts index 5c75211baa4..4ce8ae431bc 100644 --- a/src/commands/diff.ts +++ b/src/commands/diff.ts @@ -48,6 +48,12 @@ export default class Diff extends Command { checkAndWarnFalseFlag(outputFormat, markdownSubtype); markdownSubtype = setDefaultMarkdownSubtype(outputFormat, markdownSubtype) as string; + this.metricsMetadata.output_format = outputFormat; + this.metricsMetadata.output_type = outputType; + if (outputFormat === 'md') { + this.metricsMetadata.output_markdown_subtype = flags['markdownSubtype']; + } + try { firstDocument = await load(firstDocumentPath); diff --git a/src/commands/new/glee.ts b/src/commands/new/glee.ts index 8b4aa698e5d..6ad9a04fa0f 100644 --- a/src/commands/new/glee.ts +++ b/src/commands/new/glee.ts @@ -191,6 +191,8 @@ export default class NewGlee extends Command { projectName, forceWrite ); + this.specFile = await load(flags.file); + this.metricsMetadata.template = flags.template; } else { try { await fPromises.mkdir(PROJECT_DIRECTORY); @@ -236,6 +238,8 @@ export default class NewGlee extends Command { `Unable to create the project. Please check the following message for further info about the error:\n\n${err}` ); } + this.specFile = await load(`${GLEE_TEMPLATES_DIRECTORY}/asyncapi.yaml`); + this.metricsMetadata.template = flags.template; } } } diff --git a/src/commands/start/studio.ts b/src/commands/start/studio.ts index 5e197b63057..23bc3e42e28 100644 --- a/src/commands/start/studio.ts +++ b/src/commands/start/studio.ts @@ -12,6 +12,9 @@ export default class StartStudio extends Command { const { flags } = await this.parse(StartStudio); const filePath = flags.file || (await load()).getFilePath(); const port = flags.port; + + this.specFile = await load(filePath); + this.metricsMetadata.port = port; startStudio(filePath as string, port); } diff --git a/test/integration/config/analytics.test.ts b/test/integration/config/analytics.test.ts index 4d95d641e08..7ac5d4d04a6 100644 --- a/test/integration/config/analytics.test.ts +++ b/test/integration/config/analytics.test.ts @@ -1,6 +1,17 @@ import { expect, test } from '@oclif/test'; +import { fileCleanup } from '../../helpers'; + +const analyticsConfigFilePath = './test/fixtures/.asyncapi-analytics'; describe('config:analytics', () => { + beforeEach(() => { + process.env = Object.assign(process.env, { ASYNCAPI_METRICS_CONFIG_PATH: analyticsConfigFilePath }); + }); + + afterEach(() => { + fileCleanup(analyticsConfigFilePath); + }); + describe('with disable flag', () => { test .stderr()