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

enjoi

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

enjoi - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

3

CHANGELOG.md

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

### v2.2.1
* Add default value (#30).
### v2.2.0

@@ -3,0 +6,0 @@

18

lib/enjoi.js

@@ -83,2 +83,7 @@ 'use strict';

let joischema;
const typeDefinitionMap = {
description: 'description',
title: 'label',
default: 'default'
};

@@ -110,8 +115,7 @@ switch (current.type) {

if (current.description) {
joischema = joischema.description(current.description);
}
if (current.title) {
joischema = joischema.label(current.title);
}
Object.keys(typeDefinitionMap).forEach(function (key) {
if (current[key]) {
joischema = joischema[typeDefinitionMap[key]](current[key]);
}
});

@@ -236,3 +240,3 @@ return joischema;

if (Thing.isUndefined(current.minLength)) {
current.minLength = 0;
current.minLength = 0;
}

@@ -239,0 +243,0 @@

{
"name": "enjoi",
"version": "2.2.0",
"version": "2.2.1",
"description": "Converts json-schema to Joi schema for validation.",

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