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

swagger-fluent

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

swagger-fluent - npm Package Compare versions

Comparing version 3.1.4 to 3.2.0

9

CHANGELOG.md

@@ -5,3 +5,3 @@ # Change Log

## [3.1.4](https://github.com/silasbw/swagger-fluent/compare/3.1.3...3.1.4) (2019-05-20)
# [3.2.0](https://github.com/silasbw/swagger-fluent/compare/3.1.4...3.2.0) (2019-05-24)

@@ -11,6 +11,11 @@

* **parameters:** fix passing pathname parameters to backends ([#33](https://github.com/silasbw/swagger-fluent/issues/33)) ([d74f27c](https://github.com/silasbw/swagger-fluent/commit/d74f27c))
* **Component:** fix issues with subclassing Component ([#35](https://github.com/silasbw/swagger-fluent/issues/35)) ([b2a3d75](https://github.com/silasbw/swagger-fluent/commit/b2a3d75))
### Features
* **_addEndpoint:** returns Component object that gets the endpoint ([#34](https://github.com/silasbw/swagger-fluent/issues/34)) ([5863f27](https://github.com/silasbw/swagger-fluent/commit/5863f27))
<a name="3.1.1"></a>

@@ -17,0 +22,0 @@ ## [3.1.1](https://github.com/silasbw/swagger-fluent/compare/3.1.0...3.1.1) (2018-12-29)

@@ -67,3 +67,3 @@ /* eslint-disable no-sync */

//
const namedComponent = new Component({
const namedComponent = new this.constructor({
backend: component.backend,

@@ -84,6 +84,3 @@ getNames: options.getNames,

//
Object.getOwnPropertyNames(Component.prototype).forEach(name => {
if (name === 'constructor') return
component[name] = Component.prototype[name].bind(component)
})
Object.setPrototypeOf(component, this.constructor.prototype)
} else {

@@ -180,3 +177,3 @@ component = this

if (!(split in parent)) {
const component = new Component({
const component = new this.constructor({
getNames: this.getNames,

@@ -217,6 +214,7 @@ backend: this.backend,

* @param {Endpoint} endpoint - Endpoint object.
* @returns {Component} Component object endpoint was added to.
*/
_addEndpoint (endpoint) {
const component = this._walkSplits(endpoint)
if (!component) return
if (!component) return null
component.pathItemObject = endpoint.pathItem

@@ -234,2 +232,4 @@ component.swaggerName = endpoint.name

})
return component
}

@@ -236,0 +236,0 @@

{
"name": "swagger-fluent",
"version": "3.1.4",
"version": "3.2.0",
"description": "A fluent client for OpenAPI and Swagger",

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

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