Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@asyncapi/parser

Package Overview
Dependencies
Maintainers
3
Versions
170
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@asyncapi/parser - npm Package Compare versions

Comparing version 1.14.1 to 1.15.0-2022-04-release.1

lib/models/operation-security-requirement.js

2

lib/asyncapiSchemaFormatParser.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc