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 0.18.2 to 0.18.3

7

lib/models/schema.js

@@ -343,2 +343,9 @@ const { addExtensions } = require('../utils');

*/
deprecated() {
return this._json.deprecated;
}
/**
* @returns {boolean}
*/
readOnly() {

@@ -345,0 +352,0 @@ return !!this._json.readOnly;

2

package.json
{
"name": "@asyncapi/parser",
"version": "0.18.2",
"version": "0.18.3",
"description": "JavaScript AsyncAPI parser.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -486,2 +486,11 @@ const { expect } = require('chai');

describe('#deprecated()', function () {
it('should return a boolean', () => {
const doc = { "type": "string", "deprecated": true };
const d = new Schema(doc);
expect(typeof d.deprecated()).to.be.equal('boolean');
expect(d.deprecated()).to.be.equal(doc.deprecated);
});
});
describe('#readOnly()', function () {

@@ -488,0 +497,0 @@ it('should return a boolean', () => {

Sorry, the diff of this file is too big to display

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