@asyncapi/parser
Advanced tools
Comparing version 1.8.0 to 1.8.1
@@ -43,3 +43,3 @@ const path = require('path'); | ||
* @param {(String | Object)} asyncapiYAMLorJSON An AsyncAPI document in JSON or YAML format. | ||
* @param {ParserOptions} options Configuration options object {@link ParserOptions} | ||
* @param {ParserOptions=} options Configuration options object {@link ParserOptions} | ||
* @returns {Promise<AsyncAPIDocument>} The parsed AsyncAPI document. | ||
@@ -126,4 +126,4 @@ */ | ||
* @param {String} url URL where the AsyncAPI document is located. | ||
* @param {Object} [fetchOptions] Configuration to pass to the {@link https://developer.mozilla.org/en-US/docs/Web/API/Request|fetch} call. | ||
* @param {ParserOptions} [options] Configuration to pass to the {@link ParserOptions} method. | ||
* @param {Object=} [fetchOptions] Configuration to pass to the {@link https://developer.mozilla.org/en-US/docs/Web/API/Request|fetch} call. | ||
* @param {ParserOptions=} [options] Configuration to pass to the {@link ParserOptions} method. | ||
* @returns {Promise<AsyncAPIDocument>} The parsed AsyncAPI document. | ||
@@ -130,0 +130,0 @@ */ |
{ | ||
"name": "@asyncapi/parser", | ||
"version": "1.8.0", | ||
"version": "1.8.1", | ||
"description": "JavaScript AsyncAPI parser.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -249,2 +249,3 @@ <h5 align="center"> | ||
<td align="center"><a href="https://github.com/vishesh13byte"><img src="https://avatars.githubusercontent.com/u/66796715?v=4?s=100" width="100px;" alt=""/><br /><sub><b>vishesh13byte</b></sub></a><br /><a href="https://github.com/asyncapi/parser-js/commits?author=vishesh13byte" title="Tests">⚠️</a></td> | ||
<td align="center"><a href="https://iamdevelopergirl.github.io/Website-With-Animations/"><img src="https://avatars.githubusercontent.com/u/16351809?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Elakya</b></sub></a><br /><a href="https://github.com/asyncapi/parser-js/commits?author=iamdevelopergirl" title="Code">💻</a></td> | ||
</tr> | ||
@@ -251,0 +252,0 @@ </table> |
@@ -1083,6 +1083,6 @@ /** | ||
* @param asyncapiYAMLorJSON - An AsyncAPI document in JSON or YAML format. | ||
* @param options - Configuration options object {@link ParserOptions} | ||
* @param [options] - Configuration options object {@link ParserOptions} | ||
* @returns The parsed AsyncAPI document. | ||
*/ | ||
function parse(asyncapiYAMLorJSON: string | any, options: ParserOptions): Promise<AsyncAPIDocument>; | ||
function parse(asyncapiYAMLorJSON: string | any, options?: ParserOptions): Promise<AsyncAPIDocument>; | ||
/** | ||
@@ -1089,0 +1089,0 @@ * Fetches an AsyncAPI document from the given URL and passes its content to the `parse` method. |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1173086
259