jsonpolice
Advanced tools
Comparing version 11.0.2 to 12.0.0
export declare class SchemaError extends Error { | ||
scope: string; | ||
info?: any; | ||
constructor(scope: string, type: string, info?: any); | ||
info?: any | undefined; | ||
constructor(scope: string, type: string, info?: any | undefined); | ||
} | ||
@@ -6,0 +6,0 @@ export interface ValidationErrorInfo { |
export class SchemaError extends Error { | ||
scope; | ||
info; | ||
constructor(scope, type, info) { | ||
@@ -10,2 +12,5 @@ super(type); | ||
export class ValidationError extends Error { | ||
path; | ||
scope; | ||
errors; | ||
constructor(path, scope, type, errors) { | ||
@@ -12,0 +17,0 @@ super(type); |
@@ -6,2 +6,3 @@ import * as refs from 'jsonref'; | ||
export class Schema { | ||
_validators; | ||
get validators() { | ||
@@ -637,2 +638,3 @@ if (!this._validators) { | ||
export class StaticSchema extends Schema { | ||
_spec; | ||
constructor(dataOrUri, opts) { | ||
@@ -639,0 +641,0 @@ super(); |
{ | ||
"name": "jsonpolice", | ||
"version": "11.0.2", | ||
"version": "12.0.0", | ||
"description": "JSON Schema parser and validator", | ||
@@ -16,23 +16,8 @@ "type": "module", | ||
"dist/**/*.js", | ||
"dist/**/*.ts", | ||
"dist/**/*.js.map", | ||
"dist/**/*.d.ts", | ||
"!dist/**/*.test.*", | ||
"README.md", | ||
"LICENSE" | ||
], | ||
"scripts": { | ||
"build": "tsc", | ||
"build:all": "npm i && npm run build && npm i --package-lock", | ||
"build:tests": "tsc -p test", | ||
"clean": "rimraf dist coverage .nyc_output test-results", | ||
"clean:all": "npm run clean && rimraf node_modules", | ||
"cover": "c8 --require esm --reporter=lcov --reporter=text npm t", | ||
"report-coverage": "cat ./coverage/lcov.info | coveralls", | ||
"prebuild": "rimraf dist", | ||
"check-coverage": "c8 check-coverage", | ||
"watch:test": "npm t -- -w", | ||
"test": "find ./test/ts -type f -name '*.js' -delete && npm run build && tsc -p test && mocha --exit --no-timeouts --recursive --reporter mochawesome --reporter-options reportDir=test-results test/**/*.test.js", | ||
"test:debug": "find ./test/ts -type f -name '*.js' -delete && npm run build && npm run build:tests && mocha --exit --no-timeouts --inspect-brk --recursive test/**/*.test.js", | ||
"test:watch": "nodemon -e ts --ignore dist/ --ignore 'test/ts/*.js' --exec npm run test", | ||
"semantic-release": "semantic-release", | ||
"semantic-release-dry": "semantic-release --dry-run" | ||
}, | ||
"repository": { | ||
@@ -54,20 +39,21 @@ "type": "git", | ||
"devDependencies": { | ||
"@types/chai": "^4.3.1", | ||
"@types/chai-as-promised": "^7.1.5", | ||
"@types/chai-spies": "^1.0.3", | ||
"@types/mocha": "^9.1.1", | ||
"@types/node": "^16.11.26", | ||
"c8": "^7.11.3", | ||
"chai": "^4.3.6", | ||
"chai-as-promised": "^7.1.1", | ||
"chai-spies": "^1.0.0", | ||
"@changesets/cli": "^2.27.6", | ||
"@types/chai": "^4.3.16", | ||
"@types/chai-as-promised": "^7.1.8", | ||
"@types/chai-spies": "^1.0.6", | ||
"@types/mocha": "^10.0.7", | ||
"@types/node": "^20.14.9", | ||
"c8": "^10.1.2", | ||
"chai": "^5.1.1", | ||
"chai-as-promised": "^8.0.0", | ||
"chai-spies": "^1.1.0", | ||
"coveralls": "^3.1.1", | ||
"mocha": "^10.0.0", | ||
"mocha": "^10.5.2", | ||
"mochawesome": "^7.1.3", | ||
"rimraf": "^3.0.2", | ||
"semantic-release": "^19.0.3", | ||
"typescript": "^4.7.3" | ||
"rimraf": "^5.0.7", | ||
"semantic-release": "^24.0.0", | ||
"typescript": "^5.5.2" | ||
}, | ||
"dependencies": { | ||
"jsonref": "^8.0.8", | ||
"jsonref": "^9.0.0", | ||
"lodash": "^4.17.21" | ||
@@ -99,3 +85,19 @@ }, | ||
"sourceMap": true | ||
}, | ||
"scripts": { | ||
"build": "tsc", | ||
"build:all": "npm i && npm run build && npm i --package-lock", | ||
"clean": "rimraf dist coverage .nyc_output test-results", | ||
"clean:all": "npm run clean && rimraf node_modules", | ||
"cover": "c8 --require esm --reporter=lcov --reporter=text npm t", | ||
"report-coverage": "cat ./coverage/lcov.info | coveralls", | ||
"prebuild": "rimraf dist", | ||
"check-coverage": "c8 check-coverage", | ||
"watch:test": "npm t -- -w", | ||
"test": "npm run build && mocha --exit --no-timeouts --recursive --reporter mochawesome --reporter-options reportDir=test-results dist/*.test.js", | ||
"test:debug": "find ./test/ts -type f -name '*.js' -delete && npm run build && npm run build:tests && mocha --exit --no-timeouts --inspect-brk --recursive test/**/*.test.js", | ||
"test:watch": "nodemon -e ts --ignore dist/ --ignore 'test/ts/*.js' --exec npm run test", | ||
"semantic-release": "semantic-release", | ||
"semantic-release-dry": "semantic-release --dry-run" | ||
} | ||
} | ||
} |
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
68670
18
828
16
+ Addedjsonref@9.0.0(transitive)
- Removedjsonref@8.0.8(transitive)
Updatedjsonref@^9.0.0