@fastify/merge-json-schemas
Advanced tools
Comparing version 0.1.1 to 0.2.0
'use strict' | ||
const deepEqual = require('fast-deep-equal') | ||
const { dequal: deepEqual } = require('dequal') | ||
const resolvers = require('./lib/resolvers') | ||
@@ -5,0 +5,0 @@ const errors = require('./lib/errors') |
'use strict' | ||
const deepEqual = require('fast-deep-equal') | ||
const { dequal: deepEqual } = require('dequal') | ||
const { MergeError } = require('./errors') | ||
@@ -5,0 +5,0 @@ |
{ | ||
"name": "@fastify/merge-json-schemas", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"description": "Builds a logical conjunction (AND) of multiple JSON schemas", | ||
@@ -11,5 +11,5 @@ "main": "index.js", | ||
"lint:fix": "standard --fix", | ||
"test": "npm run test:unit && npm run test:types", | ||
"test:unit": "c8 --100 node --test", | ||
"test:types": "tsd", | ||
"test": "npm run lint && npm run test:unit && npm run test:types" | ||
"test:types": "tsd" | ||
}, | ||
@@ -33,2 +33,3 @@ "repository": { | ||
"devDependencies": { | ||
"@fastify/pre-commit": "^2.1.0", | ||
"c8": "^8.0.1", | ||
@@ -39,4 +40,4 @@ "standard": "^17.1.0", | ||
"dependencies": { | ||
"fast-deep-equal": "^3.1.3" | ||
"dequal": "^2.0.3" | ||
} | ||
} |
@@ -1,4 +0,4 @@ | ||
# @fastify/merge-json-schema | ||
# @fastify/merge-json-schemas | ||
__merge-json-schema__ is a javascript library that build a logical product (AND) for multiple [JSON schemas](https://json-schema.org/draft/2020-12/json-schema-core#name-introduction). | ||
__merge-json-schemas__ is a javascript library that build a logical product (AND) for multiple [JSON schemas](https://json-schema.org/draft/2020-12/json-schema-core#name-introduction). | ||
@@ -18,3 +18,3 @@ - [Installation](#installation) | ||
```bash | ||
npm install @fastify/merge-json-schema | ||
npm install @fastify/merge-json-schemas | ||
``` | ||
@@ -28,3 +28,3 @@ | ||
const assert = require('node:assert') | ||
const { mergeSchemas } = require('merge-json-schema') | ||
const { mergeSchemas } = require('@fastify/merge-json-schemas'); | ||
@@ -31,0 +31,0 @@ const schema1 = { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
100831
4
+ Addeddequal@^2.0.3
+ Addeddequal@2.0.3(transitive)
- Removedfast-deep-equal@^3.1.3
- Removedfast-deep-equal@3.1.3(transitive)