@asyncapi/parser
Advanced tools
Comparing version 1.14.1 to 1.15.0-2022-04-release.1
@@ -51,3 +51,3 @@ const Ajv = require('ajv'); | ||
]; | ||
['2.0.0', '2.1.0', '2.2.0', '2.3.0'].forEach(version => { | ||
['2.0.0', '2.1.0', '2.2.0', '2.3.0', '2.4.0'].forEach(version => { | ||
mimeTypes.push( | ||
@@ -54,0 +54,0 @@ `application/vnd.aai.asyncapi;version=${version}`, |
const OperationTraitable = require('./operation-traitable'); | ||
const Message = require('./message'); | ||
const OperationTrait = require('./operation-trait'); | ||
const OperationSecurityRequirement = require('./operation-security-requirement'); | ||
@@ -57,4 +58,12 @@ /** | ||
} | ||
/** | ||
* @returns {OperationSecurityRequirement[]} | ||
*/ | ||
security() { | ||
if (!this._json.security) return null; | ||
return this._json.security.map(sec => new OperationSecurityRequirement(sec)); | ||
} | ||
} | ||
module.exports = Operation; |
{ | ||
"name": "@asyncapi/parser", | ||
"version": "1.14.1", | ||
"version": "1.15.0-2022-04-release.1", | ||
"description": "JavaScript AsyncAPI parser.", | ||
@@ -91,4 +91,8 @@ "main": "lib/index.js", | ||
{ | ||
"name": "2022-01-release", | ||
"name": "2022-04-release", | ||
"prerelease": true | ||
}, | ||
{ | ||
"name": "next-major", | ||
"prerelease": true | ||
} | ||
@@ -95,0 +99,0 @@ ], |
@@ -1,11 +0,5 @@ | ||
<h5 align="center"> | ||
<br> | ||
<a href="https://www.asyncapi.org"><img src="https://github.com/asyncapi/parser-nodejs/raw/master/assets/logo.png" alt="AsyncAPI logo" width="200"></a> | ||
<br> | ||
JavaScript Parser | ||
</h5> | ||
<p align="center"> | ||
<em>Use this package to parse and validate AsyncAPI documents —either YAML or JSON— in your Node.js or browser application. Updated bundle for the browser is always attached to the GitHub Release.</em> | ||
</p> | ||
[![AsyncAPI JavaScript Parser](./assets/logo.png)](https://www.asyncapi.com) | ||
Use this package to parse and validate AsyncAPI documents —either YAML or JSON— in your Node.js or browser application. Updated bundle for the browser is always attached to the GitHub Release. | ||
![npm](https://img.shields.io/npm/v/@asyncapi/parser?style=for-the-badge) ![npm](https://img.shields.io/npm/dt/@asyncapi/parser?style=for-the-badge) | ||
@@ -12,0 +6,0 @@ |
@@ -772,2 +772,7 @@ /** | ||
/** | ||
* Implements functions to deal with a OperationSecurityRequirement object. | ||
*/ | ||
class OperationSecurityRequirement extends Base { | ||
} | ||
/** | ||
* Implements functions to deal with a OperationTrait object. | ||
@@ -843,2 +848,3 @@ */ | ||
message(): Message; | ||
security(): OperationSecurityRequirement[]; | ||
} | ||
@@ -845,0 +851,0 @@ /** |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
1267650
52
8103
2
286