Skip to content

Commit

Permalink
chore(release): v1.15.0-2022-04-release.3 (asyncapi#532)
Browse files Browse the repository at this point in the history
  • Loading branch information
asyncapi-bot authored Apr 21, 2022
1 parent a71fecc commit 328f511
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 3 deletions.
23 changes: 23 additions & 0 deletions API.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@
* [.messageTraits()](#module_@asyncapi/parser+Components+messageTraits) ⇒ <code>Object.&lt;string, MessageTrait&gt;</code>
* [.hasMessageTraits()](#module_@asyncapi/parser+Components+hasMessageTraits) ⇒ <code>boolean</code>
* [.messageTrait(name)](#module_@asyncapi/parser+Components+messageTrait) ⇒ <code>MessageTrait</code>
* [.serverVariables()](#module_@asyncapi/parser+Components+serverVariables) ⇒ <code>Object.&lt;string, ServerVariable&gt;</code>
* [.hasServerVariables()](#module_@asyncapi/parser+Components+hasServerVariables) ⇒ <code>boolean</code>
* [.serverVariable(name)](#module_@asyncapi/parser+Components+serverVariable) ⇒ <code>ServerVariable</code>
* [.hasExtensions()](#module_@asyncapi/parser+Components+hasExtensions) ⇒ <code>boolean</code>
* [.extensions()](#module_@asyncapi/parser+Components+extensions) ⇒ <code>Object.&lt;string, any&gt;</code>
* [.extensionKeys()](#module_@asyncapi/parser+Components+extensionKeys) ⇒ <code>Array.&lt;string&gt;</code>
Expand Down Expand Up @@ -822,6 +825,9 @@ Implements functions to deal with a Components object.
* [.messageTraits()](#module_@asyncapi/parser+Components+messageTraits) ⇒ <code>Object.&lt;string, MessageTrait&gt;</code>
* [.hasMessageTraits()](#module_@asyncapi/parser+Components+hasMessageTraits) ⇒ <code>boolean</code>
* [.messageTrait(name)](#module_@asyncapi/parser+Components+messageTrait) ⇒ <code>MessageTrait</code>
* [.serverVariables()](#module_@asyncapi/parser+Components+serverVariables) ⇒ <code>Object.&lt;string, ServerVariable&gt;</code>
* [.hasServerVariables()](#module_@asyncapi/parser+Components+hasServerVariables) ⇒ <code>boolean</code>
* [.serverVariable(name)](#module_@asyncapi/parser+Components+serverVariable) ⇒ <code>ServerVariable</code>
* [.hasExtensions()](#module_@asyncapi/parser+Components+hasExtensions) ⇒ <code>boolean</code>
* [.extensions()](#module_@asyncapi/parser+Components+extensions) ⇒ <code>Object.&lt;string, any&gt;</code>
* [.extensionKeys()](#module_@asyncapi/parser+Components+extensionKeys) ⇒ <code>Array.&lt;string&gt;</code>
Expand Down Expand Up @@ -984,6 +990,23 @@ Implements functions to deal with a Components object.
| --- | --- | --- |
| name | <code>string</code> | Name of the message trait. |

<a name="module_@asyncapi/parser+Components+serverVariables"></a>

#### components.serverVariables() ⇒ <code>Object.&lt;string, ServerVariable&gt;</code>
**Kind**: instance method of [<code>Components</code>](#module_@asyncapi/parser+Components)
<a name="module_@asyncapi/parser+Components+hasServerVariables"></a>

#### components.hasServerVariables() ⇒ <code>boolean</code>
**Kind**: instance method of [<code>Components</code>](#module_@asyncapi/parser+Components)
<a name="module_@asyncapi/parser+Components+serverVariable"></a>

#### components.serverVariable(name) ⇒ <code>ServerVariable</code>
**Kind**: instance method of [<code>Components</code>](#module_@asyncapi/parser+Components)

| Param | Type | Description |
| --- | --- | --- |
| name | <code>string</code> | Name of the server variable. |

<a name="module_@asyncapi/parser+Components+hasExtensions"></a>

#### components.hasExtensions() ⇒ <code>boolean</code>
Expand Down
2 changes: 1 addition & 1 deletion dist/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@asyncapi/parser",
"version": "1.15.0-2022-04-release.2",
"version": "1.15.0-2022-04-release.3",
"description": "JavaScript AsyncAPI parser.",
"main": "lib/index.js",
"types": "types.d.ts",
Expand Down
8 changes: 8 additions & 0 deletions types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,14 @@ declare module "@asyncapi/parser" {
* @param name - Name of the message trait.
*/
messageTrait(name: string): MessageTrait;
serverVariables(): {
[key: string]: ServerVariable;
};
hasServerVariables(): boolean;
/**
* @param name - Name of the server variable.
*/
serverVariable(name: string): ServerVariable;
hasExtensions(): boolean;
extensions(): {
[key: string]: any;
Expand Down

0 comments on commit 328f511

Please sign in to comment.