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 1.0.1 to 1.1.1

3

fixtures/joi-obj-12.1.0.js

@@ -23,3 +23,4 @@ const joi = require('joi-12')

certificate: joi.binary().encoding('base64'),
notes: joi.any()
notes: joi.any(),
facebookId: joi.string().allow(null)
})

@@ -23,3 +23,4 @@ const joi = require('joi-13')

certificate: joi.binary().encoding('base64'),
notes: joi.any()
notes: joi.any(),
facebookId: joi.string().allow(null)
})

@@ -23,3 +23,4 @@ const joi = require('joi-14')

certificate: joi.binary().encoding('base64'),
notes: joi.any()
notes: joi.any(),
facebookId: joi.string().allow(null)
})

@@ -23,3 +23,4 @@ const joi = require('joi-15')

certificate: joi.binary().encoding('base64'),
notes: joi.any()
notes: joi.any(),
facebookId: joi.string().allow(null)
})

@@ -23,3 +23,4 @@ const joi = require('joi-16')

certificate: joi.binary().encoding('base64'),
notes: joi.any()
notes: joi.any(),
facebookId: joi.string().allow(null)
})

@@ -23,3 +23,4 @@ const joi = require('joi-17')

certificate: joi.binary().encoding('base64'),
notes: joi.any()
notes: joi.any(),
facebookId: joi.string().allow(null)
})

@@ -22,2 +22,5 @@ {

},
"facebookId": {
"type": ["string", "null"]
},
"ip": {

@@ -24,0 +27,0 @@ "type": "string",

@@ -60,2 +60,6 @@ /* eslint no-use-before-define: 'off' */

}
const enums = _.get(fieldDefn, this.enumFieldName)
if (Array.isArray(enums) && enums.includes(null)) {
return [type, 'null']
}
return type

@@ -62,0 +66,0 @@ }

{
"name": "joi-to-json",
"version": "1.0.1",
"version": "1.1.1",
"description": "joi to JSON 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