Socket
Socket
Sign inDemoInstall

fury-adapter-oas3-parser

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fury-adapter-oas3-parser - npm Package Compare versions

Comparing version 0.5.2 to 0.6.0

LICENSE

10

CHANGELOG.md
# Fury OAS3 Parser Changelog
## 0.6.0 (26-02-19)
### Enhancements
- Compatibility with [Fury 3.0.0 Beta 9](https://github.com/apiaryio/api-elements.js/releases/tag/fury-3.0.0-beta.9).
### Bug Fixes
- Fix handling of empty `!!set` and `!!map` in YAML parsing.
## 0.5.2 (19-02-19)

@@ -4,0 +14,0 @@

20

lib/parser/parseYAML.js

@@ -32,11 +32,19 @@ /* eslint-disable no-use-before-define */

function yamlToObject(node, annotations, context) {
return new context.namespace.elements.Object(node.value.map((nodes) => {
const key = convert(nodes[0], annotations, context);
const value = convert(nodes[1], annotations, context);
return new context.namespace.elements.Member(key, value);
}));
if (node.value) {
return new context.namespace.elements.Object(node.value.map((nodes) => {
const key = convert(nodes[0], annotations, context);
const value = convert(nodes[1], annotations, context);
return new context.namespace.elements.Member(key, value);
}));
}
return new context.namespace.elements.Object();
}
function yamlToArray(node, annotations, context) {
return new context.namespace.elements.Array(node.value.map(nodes => convert(nodes, annotations, context)));
if (node.value) {
return new context.namespace.elements.Array(node.value.map(nodes => convert(nodes, annotations, context)));
}
return new context.namespace.elements.Array();
}

@@ -43,0 +51,0 @@

{
"name": "fury-adapter-oas3-parser",
"version": "0.5.2",
"version": "0.6.0",
"description": "Open API Specification 3 API Elements Parser",

@@ -28,3 +28,3 @@ "author": "Apiary.io <support@apiary.io>",

"peerDependencies": {
"fury": "3.0.0-beta.8"
"fury": "3.0.0-beta.9"
},

@@ -34,3 +34,3 @@ "devDependencies": {

"eslint": "^5.9.0",
"fury": "3.0.0-beta.8",
"fury": "3.0.0-beta.9",
"mocha": "^5.0.2"

@@ -37,0 +37,0 @@ },

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