@fastify/merge-json-schemas
Advanced tools
| name: CI | ||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| - master | ||
| - next | ||
| - 'v*' | ||
| paths-ignore: | ||
| - 'docs/**' | ||
| - '*.md' | ||
| pull_request: | ||
| paths-ignore: | ||
| - 'docs/**' | ||
| - '*.md' | ||
| jobs: | ||
| test: | ||
| uses: fastify/workflows/.github/workflows/plugins-ci.yml@v5.0.0 | ||
| with: | ||
| license-check: true | ||
| lint: true |
+1
-1
| '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') |
+1
-1
| 'use strict' | ||
| const deepEqual = require('fast-deep-equal') | ||
| const { dequal: deepEqual } = require('dequal') | ||
| const { MergeError } = require('./errors') | ||
@@ -5,0 +5,0 @@ |
+5
-4
| { | ||
| "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" | ||
| } | ||
| } |
+4
-4
@@ -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 = { |
| name: Run Tests | ||
| on: [push, pull_request] | ||
| permissions: | ||
| contents: read | ||
| jobs: | ||
| test: | ||
| name: Test | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| matrix: | ||
| node-version: [18.x, 20.x] | ||
| os: [ubuntu-latest, windows-latest, macOS-latest] | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - name: Use Node.js ${{ matrix.node-version }} | ||
| uses: actions/setup-node@v3 | ||
| with: | ||
| node-version: ${{ matrix.node-version }} | ||
| - name: Install | ||
| run: | | ||
| npm install | ||
| - name: Test | ||
| run: | | ||
| npm run test |
100831
-0.18%4
33.33%+ Added
+ Added
- Removed
- Removed