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

joi-to-json

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

joi-to-json - npm Package Compare versions

Comparing version 2.2.3 to 2.2.4

10

lib/parsers/json.js

@@ -99,10 +99,6 @@ /* eslint no-use-before-define: 'off' */

_getEnum(fieldDefn) {
if (_.isEmpty(fieldDefn[this.enumFieldName])) {
return undefined
const enumList = fieldDefn[this.enumFieldName]
if (fieldDefn.flags && fieldDefn.flags.only && !_.isEmpty(enumList)) {
return _.uniq(enumList)
}
const enumList = _.filter(fieldDefn[this.enumFieldName], (item) => {
return !_.isEmpty(item)
})
return _.isEmpty(enumList) ? undefined : enumList
}

@@ -109,0 +105,0 @@

{
"name": "joi-to-json",
"version": "2.2.3",
"version": "2.2.4",
"description": "joi to JSON / OpenAPI Schema Converter",

@@ -5,0 +5,0 @@ "main": "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