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 0.1.13 to 0.1.14

2

package.json
{
"name": "enjoi",
"version": "0.1.13",
"version": "0.1.14",
"description": "Converts json-schema to Joi schema for validation.",

@@ -5,0 +5,0 @@ "main": "lib/enjoi.js",

@@ -9,4 +9,3 @@ [![Build Status](https://travis-ci.org/tlivings/enjoi.png)](https://travis-ci.org/tlivings/enjoi) [![NPM version](https://badge.fury.io/js/enjoi.png)](http://badge.fury.io/js/enjoi)

`enjoi` is built against json-schema v4, but does not support all json-schema properties
(sometimes due to lack of support in Joi).
`enjoi` is built against json-schema v4, but does not support all of json-schema (yet).

@@ -24,3 +23,3 @@ Here is a list of some missing keyword support still being worked on:

- `object:minProperties`
- `array:items` (supports as schema, not supported as array).
- `array:items` (supports as single schema, not supported as array of schemas).
- `array:additionalItems`

@@ -30,5 +29,5 @@

- `enjoi` - function with arguments:
- `enjoi(schema [, subSchemas])`
- `schema` - a JSON schema.
- `subSchemas` - an object with keys representing schema ids, and values representing schemas.
- `subSchemas` - an (optional) object with keys representing schema ids, and values representing schemas.

@@ -106,4 +105,4 @@ Example:

$ tv4 vs joi benchmark:
$ tv4: 48744 operations/second.
$ enjoi: 114419 operations/second.
$ tv4: 44122 operations/second. (0.0226644ms)
$ joi: 111245 operations/second. (0.0089892ms)
```
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