This repository has been archived by the owner on Feb 12, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d589f2e
commit 563a288
Showing
4 changed files
with
38 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ require('./sourcemap-register.js');/******/ (() => { // webpackBootstrap | |
/***/ ((module) => { | ||
|
||
"use strict"; | ||
module.exports = JSON.parse('{"_args":[["@asyncapi/[email protected]","/home/runner/work/github-action-for-generator/github-action-for-generator"]],"_from":"@asyncapi/[email protected]","_id":"@asyncapi/[email protected]","_inBundle":false,"_integrity":"sha512-kzWb5VP/HGJG4D2NzhTcaVH8V3wCIgUWkFU4j7A/yj6Mk7Quj6bqIlfA0H5EnU0m3cWfUeezMDx2pBl6Hje3uQ==","_location":"/@asyncapi/generator","_phantomChildren":{"lru-cache":"6.0.0"},"_requested":{"type":"version","registry":true,"raw":"@asyncapi/[email protected]","name":"@asyncapi/generator","escapedName":"@asyncapi%2fgenerator","scope":"@asyncapi","rawSpec":"1.8.8","saveSpec":null,"fetchSpec":"1.8.8"},"_requiredBy":["/"],"_resolved":"https://registry.npmjs.org/@asyncapi/generator/-/generator-1.8.8.tgz","_spec":"1.8.8","_where":"/home/runner/work/github-action-for-generator/github-action-for-generator","author":{"name":"Fran Mendez","email":"[email protected]"},"bin":{"asyncapi-generator":"cli.js","ag":"cli.js"},"bugs":{"url":"https://github.com/asyncapi/generator/issues"},"dependencies":{"@asyncapi/avro-schema-parser":"^0.4.0","@asyncapi/generator-react-sdk":"^0.2.13","@asyncapi/openapi-schema-parser":"^2.0.1","@asyncapi/parser":"^1.8.2","@asyncapi/raml-dt-schema-parser":"^2.0.1","@npmcli/arborist":"^2.2.4","ajv":"^6.10.2","chokidar":"^3.4.0","commander":"^6.1.0","filenamify":"^4.1.0","fs.extra":"^1.3.2","global-dirs":"^3.0.0","jmespath":"^0.15.0","js-yaml":"^3.13.1","levenshtein-edit-distance":"^2.0.5","loglevel":"^1.6.8","markdown-it":"^8.4.1","minimatch":"^3.0.4","node-fetch":"^2.6.0","nunjucks":"^3.2.0","resolve-from":"^5.0.0","resolve-pkg":"^2.0.0","semver":"^7.3.2","simple-git":"^1.131.0","source-map-support":"^0.5.19","ts-node":"^9.1.1","typescript":"^4.2.2"},"description":"The AsyncAPI generator. It can generate documentation, code, anything!","devDependencies":{"@semantic-release/commit-analyzer":"^8.0.1","@semantic-release/github":"^7.0.4","@semantic-release/npm":"^7.0.6","@semantic-release/release-notes-generator":"^9.0.1","all-contributors-cli":"^6.14.2","conventional-changelog-conventionalcommits":"^4.4.0","eslint":"^6.8.0","eslint-plugin-jest":"^23.8.2","eslint-plugin-sonarjs":"^0.5.0","jest":"^25.5.0","jsdoc-to-markdown":"^5.0.0","markdown-toc":"^1.2.0","rimraf":"^3.0.2","semantic-release":"^17.2.2","unixify":"^1.0.0"},"engines":{"node":">12.16","npm":">6.13.7"},"homepage":"https://github.com/asyncapi/generator","keywords":["asyncapi","documentation","generator","markdown"],"license":"Apache-2.0","main":"./lib/generator.js","name":"@asyncapi/generator","preferGlobal":true,"publishConfig":{"access":"public"},"release":{"branches":["master"],"plugins":[["@semantic-release/commit-analyzer",{"preset":"conventionalcommits"}],["@semantic-release/release-notes-generator",{"preset":"conventionalcommits"}],"@semantic-release/npm","@semantic-release/github"]},"repository":{"type":"git","url":"git://github.com/asyncapi/generator.git"},"scripts":{"bump:version":"npm --no-git-tag-version --allow-same-version version $VERSION","docker:build":"docker build -t asyncapi/generator:latest .","docs":"jsdoc2md lib/generator.js > docs/api.md","generate:assets":"npm run docs && npm run generate:readme:toc","generate:readme:toc":"markdown-toc -i README.md","lint":"eslint --max-warnings 0 --config .eslintrc .","lint:tpl:validator":"eslint --fix --config .eslintrc .github/templates-list-validator","release":"semantic-release","test":"npm run test:unit && npm run test:integration && npm run test:cli","test:cleanup":"rimraf \\"test/temp\\"","test:cli":"node cli.js ./test/docs/dummy.yml @asyncapi/html-template -o test/output --force-write --debug && test -e test/output/index.html","test:dev":"npm run test:unit -- --watchAll","test:integration":"npm run test:cleanup && jest --testPathPattern=integration --modulePathIgnorePatterns=\'./__mocks__\'","test:unit":"jest --coverage --testPathIgnorePatterns=integration --testPathIgnorePatterns=test-project"},"version":"1.8.8"}'); | ||
module.exports = JSON.parse('{"_args":[["@asyncapi/[email protected]","/home/runner/work/github-action-for-generator/github-action-for-generator"]],"_from":"@asyncapi/[email protected]","_id":"@asyncapi/[email protected]","_inBundle":false,"_integrity":"sha512-FsqlJOwdWoEQbyFEEW4iDJQnnAXI3c/gcGbCqSqlcLVnKUFQOELZCpn4gBu6vWIUS1AO8PiVtq6AasU3K6zAzw==","_location":"/@asyncapi/generator","_phantomChildren":{"lru-cache":"6.0.0"},"_requested":{"type":"version","registry":true,"raw":"@asyncapi/[email protected]","name":"@asyncapi/generator","escapedName":"@asyncapi%2fgenerator","scope":"@asyncapi","rawSpec":"1.8.9","saveSpec":null,"fetchSpec":"1.8.9"},"_requiredBy":["/"],"_resolved":"https://registry.npmjs.org/@asyncapi/generator/-/generator-1.8.9.tgz","_spec":"1.8.9","_where":"/home/runner/work/github-action-for-generator/github-action-for-generator","author":{"name":"Fran Mendez","email":"[email protected]"},"bin":{"asyncapi-generator":"cli.js","ag":"cli.js"},"bugs":{"url":"https://github.com/asyncapi/generator/issues"},"dependencies":{"@asyncapi/avro-schema-parser":"^0.4.0","@asyncapi/generator-react-sdk":"^0.2.13","@asyncapi/openapi-schema-parser":"^2.0.1","@asyncapi/parser":"^1.9.0","@asyncapi/raml-dt-schema-parser":"^2.0.1","@npmcli/arborist":"^2.2.4","ajv":"^6.10.2","chokidar":"^3.4.0","commander":"^6.1.0","filenamify":"^4.1.0","fs.extra":"^1.3.2","global-dirs":"^3.0.0","jmespath":"^0.15.0","js-yaml":"^3.13.1","levenshtein-edit-distance":"^2.0.5","loglevel":"^1.6.8","markdown-it":"^8.4.1","minimatch":"^3.0.4","node-fetch":"^2.6.0","nunjucks":"^3.2.0","resolve-from":"^5.0.0","resolve-pkg":"^2.0.0","semver":"^7.3.2","simple-git":"^1.131.0","source-map-support":"^0.5.19","ts-node":"^9.1.1","typescript":"^4.2.2"},"description":"The AsyncAPI generator. It can generate documentation, code, anything!","devDependencies":{"@semantic-release/commit-analyzer":"^8.0.1","@semantic-release/github":"^7.0.4","@semantic-release/npm":"^7.0.6","@semantic-release/release-notes-generator":"^9.0.1","all-contributors-cli":"^6.14.2","conventional-changelog-conventionalcommits":"^4.4.0","eslint":"^6.8.0","eslint-plugin-jest":"^23.8.2","eslint-plugin-sonarjs":"^0.5.0","jest":"^25.5.0","jsdoc-to-markdown":"^5.0.0","markdown-toc":"^1.2.0","rimraf":"^3.0.2","semantic-release":"^17.2.2","unixify":"^1.0.0"},"engines":{"node":">12.16","npm":">6.13.7"},"homepage":"https://github.com/asyncapi/generator","keywords":["asyncapi","documentation","generator","markdown"],"license":"Apache-2.0","main":"./lib/generator.js","name":"@asyncapi/generator","preferGlobal":true,"publishConfig":{"access":"public"},"release":{"branches":["master"],"plugins":[["@semantic-release/commit-analyzer",{"preset":"conventionalcommits"}],["@semantic-release/release-notes-generator",{"preset":"conventionalcommits"}],"@semantic-release/npm","@semantic-release/github"]},"repository":{"type":"git","url":"git://github.com/asyncapi/generator.git"},"scripts":{"bump:version":"npm --no-git-tag-version --allow-same-version version $VERSION","docker:build":"docker build -t asyncapi/generator:latest .","docs":"jsdoc2md lib/generator.js > docs/api.md","generate:assets":"npm run docs && npm run generate:readme:toc","generate:readme:toc":"markdown-toc -i README.md","lint":"eslint --max-warnings 0 --config .eslintrc .","lint:tpl:validator":"eslint --fix --config .eslintrc .github/templates-list-validator","release":"semantic-release","test":"npm run test:unit && npm run test:integration && npm run test:cli","test:cleanup":"rimraf \\"test/temp\\"","test:cli":"node cli.js ./test/docs/dummy.yml @asyncapi/html-template -o test/output --force-write --debug && test -e test/output/index.html","test:dev":"npm run test:unit -- --watchAll","test:integration":"npm run test:cleanup && jest --testPathPattern=integration --modulePathIgnorePatterns=\'./__mocks__\'","test:unit":"jest --coverage --testPathIgnorePatterns=integration --testPathIgnorePatterns=test-project"},"version":"1.8.9"}'); | ||
|
||
/***/ }), | ||
|
||
|
@@ -15234,6 +15234,7 @@ module.exports = mix(MessageTraitable, MixinDescription, MixinTags, MixinExterna | |
/***/ 49739: | ||
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { | ||
|
||
const MessageTrait = __nccwpck_require__(2888); | ||
const MessageTraitable = __nccwpck_require__(70050); | ||
const Schema = __nccwpck_require__(36659); | ||
|
||
|
@@ -15260,6 +15261,22 @@ class Message extends MessageTraitable { | |
return new Schema(this._json.payload); | ||
} | ||
|
||
/** | ||
* @returns {MessageTrait[]} | ||
*/ | ||
traits() { | ||
const traits = this._json['x-parser-original-traits'] || this._json.traits; | ||
if (!traits) return []; | ||
return traits.map(t => new MessageTrait(t)); | ||
} | ||
|
||
/** | ||
* @returns {boolean} | ||
*/ | ||
hasTraits() { | ||
return !!this._json['x-parser-original-traits'] || !!this._json.traits; | ||
} | ||
|
||
/** | ||
* @returns {any} | ||
*/ | ||
|
@@ -15403,6 +15420,7 @@ module.exports = mix(OperationTraitable, MixinDescription, MixinTags, MixinExter | |
|
||
const OperationTraitable = __nccwpck_require__(62685); | ||
const Message = __nccwpck_require__(49739); | ||
const OperationTrait = __nccwpck_require__(61348); | ||
|
||
/** | ||
* Implements functions to deal with an Operation object. | ||
|
@@ -15421,6 +15439,22 @@ class Operation extends OperationTraitable { | |
return false; | ||
} | ||
|
||
/** | ||
* @returns {OperationTrait[]} | ||
*/ | ||
traits() { | ||
const traits = this._json['x-parser-original-traits'] || this._json.traits; | ||
if (!traits) return []; | ||
return traits.map(t => new OperationTrait(t)); | ||
} | ||
|
||
/** | ||
* @returns {boolean} | ||
*/ | ||
hasTraits() { | ||
return !!this._json['x-parser-original-traits'] || !!this._json.traits; | ||
} | ||
|
||
/** | ||
* @returns {Message[]} | ||
*/ | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters