@squiz/dx-json-schema-lib
Advanced tools
Comparing version 1.12.0-alpha.3 to 1.12.0-alpha.4
@@ -1,4 +0,3 @@ | ||
import { IOutputError } from 'better-ajv-errors'; | ||
export declare class SchemaValidationError extends Error { | ||
constructor(validationErrors: IOutputError[] | string, error?: Error); | ||
constructor(message: string, error?: Error); | ||
} |
@@ -5,10 +5,3 @@ "use strict"; | ||
class SchemaValidationError extends Error { | ||
constructor(validationErrors, error) { | ||
let message; | ||
if (typeof validationErrors != 'string') { | ||
message = validationErrors.map((e) => e.error).join(', '); | ||
} | ||
else { | ||
message = validationErrors; | ||
} | ||
constructor(message, error) { | ||
super(`failed validation: ${message}`); | ||
@@ -15,0 +8,0 @@ this.stack = error === null || error === void 0 ? void 0 : error.stack; |
"use strict"; | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
@@ -4,0 +4,0 @@ * This file was automatically generated by json-schema-to-typescript. |
"use strict"; | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
@@ -4,0 +4,0 @@ * This file was automatically generated by json-schema-to-typescript. |
{ | ||
"name": "@squiz/dx-json-schema-lib", | ||
"version": "1.12.0-alpha.3", | ||
"version": "1.12.0-alpha.4", | ||
"description": "", | ||
@@ -16,9 +16,9 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@types/express": "4.17.14", | ||
"@types/express": "4.17.17", | ||
"@types/jest": "28.1.8", | ||
"@types/node": "17.0.27", | ||
"dotenv": "16.0.3", | ||
"jest": "28.1.3", | ||
"json-schema-to-typescript": "11.0.2", | ||
"rimraf": "3.0.2", | ||
"jest": "29.4.1", | ||
"json-schema-to-typescript": "11.0.3", | ||
"rimraf": "4.1.2", | ||
"ts-jest": "28.0.8", | ||
@@ -31,8 +31,5 @@ "ts-loader": "9.3.1", | ||
"@sagold/json-query": "6.0.0", | ||
"ajv": "8.11.2", | ||
"ajv-formats": "2.1.1", | ||
"better-ajv-errors": "1.2.0", | ||
"json-schema-library": "7.4.4" | ||
"json-schema-library": "7.4.5" | ||
}, | ||
"gitHead": "72afcbb92d39d57e19f26efe59aab71611c7d819" | ||
"gitHead": "b07c2d33f579e2603c2bbb88a9cfe8073be76ba5" | ||
} |
@@ -1,13 +0,3 @@ | ||
import { IOutputError } from 'better-ajv-errors'; | ||
export class SchemaValidationError extends Error { | ||
constructor(validationErrors: IOutputError[] | string, error?: Error) { | ||
let message: string; | ||
if (typeof validationErrors != 'string') { | ||
message = validationErrors.map((e) => e.error).join(', '); | ||
} else { | ||
message = validationErrors; | ||
} | ||
constructor(message: string, error?: Error) { | ||
super(`failed validation: ${message}`); | ||
@@ -14,0 +4,0 @@ this.stack = error?.stack; |
@@ -1,2 +0,2 @@ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
@@ -3,0 +3,0 @@ * This file was automatically generated by json-schema-to-typescript. |
@@ -1,2 +0,2 @@ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
@@ -3,0 +3,0 @@ * This file was automatically generated by json-schema-to-typescript. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2
498978
12912
+ Addedjson-schema-library@7.4.5(transitive)
- Removedajv@8.11.2
- Removedajv-formats@2.1.1
- Removedbetter-ajv-errors@1.2.0
- Removed@babel/code-frame@7.26.2(transitive)
- Removed@babel/helper-validator-identifier@7.25.9(transitive)
- Removed@humanwhocodes/momoa@2.0.4(transitive)
- Removedajv@8.11.2(transitive)
- Removedajv-formats@2.1.1(transitive)
- Removedansi-styles@4.3.0(transitive)
- Removedbetter-ajv-errors@1.2.0(transitive)
- Removedchalk@4.1.2(transitive)
- Removedcolor-convert@2.0.1(transitive)
- Removedcolor-name@1.1.4(transitive)
- Removedhas-flag@4.0.0(transitive)
- Removedjs-tokens@4.0.0(transitive)
- Removedjson-schema-library@7.4.4(transitive)
- Removedjson-schema-traverse@1.0.0(transitive)
- Removedjsonpointer@5.0.1(transitive)
- Removedleven@3.1.0(transitive)
- Removedpicocolors@1.1.1(transitive)
- Removedpunycode@2.3.1(transitive)
- Removedrequire-from-string@2.0.2(transitive)
- Removedsupports-color@7.2.0(transitive)
- Removeduri-js@4.4.1(transitive)
Updatedjson-schema-library@7.4.5