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.0 to 1.0.1

3

fixtures/joi-obj-12.1.0.js

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

retired: joi.boolean().truthy('yes').falsy('no').insensitive(false),
certificate: joi.binary().encoding('base64')
certificate: joi.binary().encoding('base64'),
notes: joi.any()
})

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

retired: joi.boolean().truthy('yes').falsy('no').insensitive(false),
certificate: joi.binary().encoding('base64')
certificate: joi.binary().encoding('base64'),
notes: joi.any()
})

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

retired: joi.boolean().truthy('yes').falsy('no').insensitive(false),
certificate: joi.binary().encoding('base64')
certificate: joi.binary().encoding('base64'),
notes: joi.any()
})

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

retired: joi.boolean().truthy('yes').falsy('no').insensitive(false),
certificate: joi.binary().encoding('base64')
certificate: joi.binary().encoding('base64'),
notes: joi.any()
})

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

retired: joi.boolean().truthy('yes').falsy('no').sensitive(false),
certificate: joi.binary().encoding('base64')
certificate: joi.binary().encoding('base64'),
notes: joi.any()
})

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

retired: joi.boolean().truthy('yes').falsy('no').sensitive(false),
certificate: joi.binary().encoding('base64')
certificate: joi.binary().encoding('base64'),
notes: joi.any()
})

@@ -114,2 +114,12 @@ {

"format": "binary"
},
"notes": {
"type": [
"array",
"boolean",
"number",
"object",
"string",
"null"
]
}

@@ -116,0 +126,0 @@ },

@@ -1,2 +0,2 @@

/* eslint no-use-before-define: "off" */
/* eslint no-use-before-define: 'off' */
const _ = require('lodash')

@@ -49,2 +49,3 @@

this._setAlternativesProperties(schema, joiDescribe)
this._setAnyProperties(schema, joiDescribe)

@@ -298,4 +299,19 @@ return schema

}
_setAnyProperties(schema) {
if (schema.type !== 'any') {
return
}
schema.type = [
'array',
'boolean',
'number',
'object',
'string',
'null'
]
}
}
module.exports = JoiJsonSchemaParser
{
"name": "joi-to-json",
"version": "1.0.0",
"version": "1.0.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