New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

joi-to-swagger

Package Overview
Dependencies
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

joi-to-swagger - npm Package Compare versions

Comparing version 5.0.1 to 5.1.0

5

CHANGELOG.md

@@ -0,1 +1,6 @@

5.1.0 / 2020-10-17
==================
* Fix boolean false default value not working (thanks @nelsongomes)
5.0.1 / 2020-08-13

@@ -2,0 +7,0 @@ ==================

2

index.js

@@ -374,3 +374,3 @@ 'use strict';

const defaultValue = get(schema, '_flags.default');
if (defaultValue && typeof defaultValue !== 'function') {
if ((defaultValue || typeof defaultValue === 'boolean') && typeof defaultValue !== 'function') {
swagger.default = defaultValue;

@@ -377,0 +377,0 @@ }

{
"name": "joi-to-swagger",
"version": "5.0.1",
"version": "5.1.0",
"description": "",

@@ -47,4 +47,4 @@ "main": "index.js",

"dependencies": {
"lodash": "^4.17.19"
"lodash": "^4.17.20"
}
}
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