Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

schematized

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

schematized - npm Package Compare versions

Comparing version 1.7.0 to 1.7.1

2

dist/strategies/array/index.js

@@ -40,5 +40,3 @@ "use strict";

if ((items === null || items === void 0 ? void 0 : items.anyOf) && Array.isArray(items.anyOf)) {
console.log(items.anyOf);
items.anyOf = lodash_1.default.uniqWith(items.anyOf, lodash_1.default.isEqual);
console.log(items.anyOf);
}

@@ -45,0 +43,0 @@ schema.items = items;

15

package.json
{
"name": "schematized",
"description": "Turn objects into JSON schemas! The more examples you provide, the better your schema will be.",
"version": "1.7.0",
"version": "1.7.1",
"files": [

@@ -49,4 +49,7 @@ "dist/"

},
"engines": {
"node": ">= 12.x"
},
"dependencies": {
"lodash": "^4.17.15"
"lodash": "^4.17.19"
},

@@ -56,5 +59,5 @@ "devDependencies": {

"@types/lodash": "^4.14.157",
"@types/node": "^14.0.14",
"ajv": "^6.12.2",
"ava": "^3.9.0",
"@types/node": "^14.0.22",
"ajv": "^6.12.3",
"ava": "^3.10.1",
"commitizen": "^4.1.2",

@@ -69,3 +72,3 @@ "cz-conventional-changelog": "3.2.0",

"typescript": "^3.9.6",
"xo": "^0.32.0"
"xo": "^0.32.1"
},

@@ -72,0 +75,0 @@ "keywords": [

@@ -17,3 +17,3 @@ # Schematized

- [Schematized](#schematized)
- [:rocket: Quickstart](#-quickstart)
- [:rocket: Quick start](#-quick-start)
- [Schema from the single example](#schema-from-the-single-example)

@@ -34,3 +34,3 @@ - [Schema from the two examples](#schema-from-the-two-examples)

## :rocket: Quickstart
## :rocket: Quick start

@@ -98,4 +98,4 @@ 1. **Add dependency**

"type": "string",
"maxLength": 39,
"minLength": 39
"maxLength": 32,
"minLength": 32
},

@@ -106,3 +106,3 @@ "role": {

"type": "string",
"maxLength": 9,
"maxLength": 5,
"minLength": 5

@@ -132,3 +132,3 @@ }

"maxLength": 39,
"minLength": 39
"minLength": 32
},

@@ -160,3 +160,3 @@ "role": {

"title": "/user server response",
"description": "User data.",
"description": "/user server response",
"type": "object",

@@ -167,3 +167,3 @@ "properties": {

"maxLength": 39,
"minLength": 39
"minLength": 32
},

@@ -170,0 +170,0 @@ "role": {

Sorry, the diff of this file is not supported yet

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