jsonpolice
Advanced tools
Comparing version 7.0.2 to 7.0.3
@@ -8,3 +8,3 @@ import { SchemaOptions } from './global'; | ||
protected opts: SchemaOptions; | ||
constructor(scope: string, opts: SchemaOptions); | ||
constructor(scope: string, opts?: SchemaOptions); | ||
abstract schema(): Promise<any>; | ||
@@ -11,0 +11,0 @@ abstract validate(data: any, path?: string): Promise<any>; |
@@ -62,3 +62,3 @@ "use strict"; | ||
class Schema { | ||
constructor(scope, opts) { | ||
constructor(scope, opts = {}) { | ||
this.scope = scope; | ||
@@ -65,0 +65,0 @@ this.opts = opts; |
@@ -1,65 +0,1 @@ | ||
{ | ||
"name": "jsonpolice", | ||
"version": "7.0.2", | ||
"description": "JSON Schema parser and validator", | ||
"main": "dist/index.js", | ||
"typings": "dist/index.d.ts", | ||
"scripts": { | ||
"clean": "rimraf dist coverage .nyc_output node_modules", | ||
"prebuild": "rimraf dist", | ||
"build": "tsc", | ||
"precommit": "npm run build && npm run cover && npm run check-coverage", | ||
"commit": "git-cz", | ||
"check-coverage": "nyc check-coverage --statements 100 --branches 100 --functions 100 --lines 100", | ||
"report-coverage": "cat ./coverage/lcov.info | coveralls", | ||
"watch:test": "npm t -- -w", | ||
"test": "mocha test/*.test.js", | ||
"cover": "nyc --reporter=lcov --reporter=text npm t", | ||
"semantic-release": "semantic-release pre && npm publish && semantic-release post" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/vivocha/jsonpolice.git" | ||
}, | ||
"keywords": [ | ||
"js", | ||
"json", | ||
"schema" | ||
], | ||
"files": [ | ||
"dist/**/*.js", | ||
"dist/**/*.ts", | ||
"README.md", | ||
"LICENSE" | ||
], | ||
"author": "Federico Pinna <fpinna@vivocha.com> (http://www.vivocha.com/)", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/vivocha/jsonpolice/issues" | ||
}, | ||
"homepage": "https://github.com/vivocha/jsonpolice#readme", | ||
"devDependencies": { | ||
"@types/lodash": "4.14.77", | ||
"chai": "4.1.2", | ||
"chai-as-promised": "7.1.1", | ||
"chai-spies": "0.7.1", | ||
"commitizen": "2.9.6", | ||
"coveralls": "3.0.0", | ||
"cz-conventional-changelog": "2.0.0", | ||
"husky": "0.14.3", | ||
"mocha": "4.0.1", | ||
"nyc": "11.2.1", | ||
"rimraf": "2.6.2", | ||
"semantic-release": "^8.0.3", | ||
"typescript": "2.5.3" | ||
}, | ||
"config": { | ||
"commitizen": { | ||
"path": "node_modules/cz-conventional-changelog" | ||
} | ||
}, | ||
"dependencies": { | ||
"jsonref": "^4.0.2", | ||
"lodash": "^4.17.4" | ||
} | ||
} | ||
{"name":"jsonpolice","version":"7.0.3","description":"JSON Schema parser and validator","main":"dist/index.js","typings":"dist/index.d.ts","scripts":{"clean":"rimraf dist coverage .nyc_output node_modules","prebuild":"rimraf dist","build":"tsc","precommit":"npm run build && npm run cover && npm run check-coverage","commit":"git-cz","check-coverage":"nyc check-coverage --statements 100 --branches 100 --functions 100 --lines 100","report-coverage":"cat ./coverage/lcov.info | coveralls","watch:test":"npm t -- -w","test":"mocha test/*.test.js","cover":"nyc --reporter=lcov --reporter=text npm t","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"repository":{"type":"git","url":"https://github.com/vivocha/jsonpolice.git"},"keywords":["js","json","schema"],"files":["dist/**/*.js","dist/**/*.ts","README.md","LICENSE"],"author":"Federico Pinna <fpinna@vivocha.com> (http://www.vivocha.com/)","license":"MIT","bugs":{"url":"https://github.com/vivocha/jsonpolice/issues"},"homepage":"https://github.com/vivocha/jsonpolice#readme","devDependencies":{"@types/lodash":"4.14.84","chai":"4.1.2","chai-as-promised":"7.1.1","chai-spies":"0.7.1","commitizen":"2.9.6","coveralls":"3.0.0","cz-conventional-changelog":"2.1.0","husky":"0.14.3","mocha":"4.0.1","nyc":"11.3.0","rimraf":"2.6.2","semantic-release":"^8.2.0","typescript":"2.6.1"},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"}},"dependencies":{"jsonref":"^4.0.2","lodash":"^4.17.4"}} |
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
55280