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.3.0 to 2.3.1

4

index.js

@@ -24,3 +24,3 @@ const cmp = require('semver-compare')

function parse(joiObj, type = 'json') {
function parse(joiObj, type = 'json', definitions = {}) {
if (typeof joiObj.describe !== 'function') {

@@ -62,5 +62,5 @@ throw new Error('Not an joi object.')

return new parser().parse(joiBaseSpec)
return new parser().parse(joiBaseSpec, definitions)
}
module.exports = parse
{
"name": "joi-to-json",
"version": "2.3.0",
"version": "2.3.1",
"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