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

api-elements

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

api-elements - npm Package Compare versions

Comparing version 0.2.5 to 0.2.6

lib/elements/Transition-test.js

6

CHANGELOG.md
# API Elements (JavaScript) CHANGELOG
## 0.2.6 (2020-07-01)
### Bug Fixes
- Fixes the `hosts` property in api category to return the hosts category.
## 0.2.5 (2020-06-13)

@@ -4,0 +10,0 @@

2

lib/define-value-of.js

@@ -39,3 +39,3 @@ /* eslint-disable no-bitwise, no-underscore-dangle */

if (typeAttributes) {
return typeAttributes.contains(attribute);
return typeAttributes.includes(attribute);
}

@@ -42,0 +42,0 @@ }

@@ -19,2 +19,11 @@ const { ArrayElement } = require('minim');

/**
* @name hosts
* @type ArraySlice
* @memberof Category.prototype
*/
get hosts() {
return this.children.filter(item => item.classes.contains('hosts'));
}
/**
* @name resourceGroups

@@ -25,3 +34,3 @@ * @type ArraySlice

get resourceGroups() {
return this.children.filter(item => item.classes.contains('resourceGroup'));
return this.children.filter(item => item.classes.includes('resourceGroup'));
}

@@ -35,11 +44,11 @@

get dataStructures() {
return this.children.filter(item => item.classes.contains('dataStructures'));
return this.children.filter(item => item.classes.includes('dataStructures'));
}
get scenarios() {
return this.children.filter(item => item.classes.contains('scenario'));
return this.children.filter(item => item.classes.includes('scenario'));
}
get transitionGroups() {
return this.children.filter(item => item.classes.contains('transitions'));
return this.children.filter(item => item.classes.includes('transitions'));
}

@@ -53,3 +62,3 @@

get authSchemeGroups() {
return this.children.filter(item => item.classes.contains('authSchemes'));
return this.children.filter(item => item.classes.includes('authSchemes'));
}

@@ -85,11 +94,2 @@

/**
* @name hosts
* @type ArraySlice
* @memberof Category.prototype
*/
get hosts() {
return this.children.filter(item => item.element === 'hosts');
}
metadata(value) {

@@ -96,0 +96,0 @@ const metadata = this.attributes.get('metadata');

@@ -69,3 +69,3 @@ const { ArrayElement } = require('minim');

// to the spec, but it's possible to include more.
return this.filter(item => item.element === 'asset' && item.classes.contains('messageBody')).first;
return this.filter(item => item.element === 'asset' && item.classes.includes('messageBody')).first;
}

@@ -81,3 +81,3 @@

// according to the spec, but it's possible to include more.
return this.filter(item => item.element === 'asset' && item.classes.contains('messageBodySchema')).first;
return this.filter(item => item.element === 'asset' && item.classes.includes('messageBodySchema')).first;
}

@@ -84,0 +84,0 @@ }

@@ -24,3 +24,3 @@ const { ArrayElement } = require('minim');

get api() {
return this.children.filter(item => item.classes.contains('api')).first;
return this.children.filter(item => item.classes.includes('api')).first;
}

@@ -44,3 +44,3 @@

return this.children
.filter(item => item.element === 'annotation' && item.classes.contains('warning'));
.filter(item => item.element === 'annotation' && item.classes.includes('warning'));
}

@@ -55,3 +55,3 @@

return this.children
.filter(item => item.element === 'annotation' && item.classes.contains('error'));
.filter(item => item.element === 'annotation' && item.classes.includes('error'));
}

@@ -58,0 +58,0 @@ }

{
"name": "api-elements",
"version": "0.2.5",
"version": "0.2.6",
"description": "API Elements JavaScript",

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

"dependencies": {
"minim": "^0.23.5",
"minim": "^0.23.8",
"ramda": "^0.27.0"

@@ -36,3 +36,3 @@ },

},
"gitHead": "567594e0cb9968e13126ae4df7625ec6c2ac9a3a"
"gitHead": "62dff8c18018c23dcee1252ebf5a25988fa5b438"
}
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