schematized
Advanced tools
Comparing version 1.7.1 to 1.7.2
@@ -27,3 +27,3 @@ "use strict"; | ||
toSchema() { | ||
if (this.maxProperties === 0) | ||
if (!this.maxProperties) | ||
return undefined; | ||
@@ -30,0 +30,0 @@ return { maxProperties: Math.round(this.maxProperties) }; |
@@ -27,3 +27,3 @@ "use strict"; | ||
toSchema() { | ||
if (this.minProperties === 0) | ||
if (!this.minProperties) | ||
return undefined; | ||
@@ -30,0 +30,0 @@ return { minProperties: Math.round(this.minProperties) }; |
{ | ||
"name": "schematized", | ||
"description": "Turn objects into JSON schemas! The more examples you provide, the better your schema will be.", | ||
"version": "1.7.1", | ||
"version": "1.7.2", | ||
"files": [ | ||
"dist/" | ||
"dist" | ||
], | ||
"main": "dist/index", | ||
"main": "dist", | ||
"types": "dist/index.d.ts", | ||
"repository": "https://github.com/ryparker/Schematized.git", | ||
"repository": "https://github.com/ryparker/schematized.git", | ||
"author": "Ryan Parker", | ||
@@ -17,3 +17,3 @@ "license": "MIT", | ||
"fix": "xo src --fix", | ||
"test": "yarn build && yarn nyc ava --verbose", | ||
"test": "yarn build && yarn nyc ava", | ||
"clean": "rimraf ./dist" | ||
@@ -45,2 +45,23 @@ }, | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "lint-staged", | ||
"pre-push": "yarn test" | ||
} | ||
}, | ||
"lint-staged": { | ||
"./src/**/*": [ | ||
"xo src --fix" | ||
] | ||
}, | ||
"release": { | ||
"plugins": [ | ||
"@semantic-release/commit-analyzer", | ||
"@semantic-release/release-notes-generator", | ||
"@semantic-release/changelog", | ||
"@semantic-release/npm", | ||
"@semantic-release/git", | ||
"@semantic-release/github" | ||
] | ||
}, | ||
"config": { | ||
@@ -59,9 +80,14 @@ "commitizen": { | ||
"@ava/typescript": "^1.1.1", | ||
"@types/lodash": "^4.14.157", | ||
"@types/node": "^14.0.22", | ||
"@semantic-release/changelog": "^5.0.1", | ||
"@semantic-release/git": "^9.0.0", | ||
"@types/lodash": "^4.14.159", | ||
"@types/node": "^14.0.27", | ||
"ajv": "^6.12.3", | ||
"ava": "^3.10.1", | ||
"ava": "^3.11.1", | ||
"commitizen": "^4.1.2", | ||
"cz-conventional-changelog": "3.2.0", | ||
"eslint-config-xo-typescript": "^0.31.0", | ||
"eslint-plugin-prettier": "^3.1.4", | ||
"husky": "^4.2.5", | ||
"lint-staged": "^10.2.11", | ||
"nyc": "^15.1.0", | ||
@@ -72,3 +98,3 @@ "prettier": "^2.0.5", | ||
"ts-node": "^8.10.2", | ||
"typescript": "^3.9.6", | ||
"typescript": "^3.9.7", | ||
"xo": "^0.32.1" | ||
@@ -75,0 +101,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
78386
73
20