schematized
Advanced tools
Comparing version 1.8.9 to 1.9.0
# Changelog | ||
# [1.9.0](https://github.com/ryparker/schematized/compare/v1.8.9...v1.9.0) (2021-01-01) | ||
### Features | ||
* **schema-builder.ts:** added sorting of key on `toSchema()` ([39e964b](https://github.com/ryparker/schematized/commit/39e964b32196418eb6a0dc89b0c78c75c59eb8d8)) | ||
## [1.8.9](https://github.com/ryparker/schematized/compare/v1.8.8...v1.8.9) (2020-12-23) | ||
@@ -4,0 +11,0 @@ |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const schema_node_1 = require("./schema-node"); | ||
const sort_keys_1 = __importDefault(require("sort-keys")); | ||
class SchemaBuilder { | ||
@@ -23,3 +27,3 @@ constructor(schemaUri = 'http://json-schema.org/draft-07/schema#') { | ||
const schema = this.baseSchema(); | ||
return { ...schema, ...this.rootNode.toSchema() }; | ||
return sort_keys_1.default({ ...schema, ...this.rootNode.toSchema() }); | ||
} | ||
@@ -26,0 +30,0 @@ toPrettySchema() { |
{ | ||
"name": "schematized", | ||
"description": "Turn objects into JSON schemas! The more examples you provide, the better your schema will be.", | ||
"version": "1.8.9", | ||
"version": "1.9.0", | ||
"files": [ | ||
@@ -92,3 +92,4 @@ "dist" | ||
"dependencies": { | ||
"lodash": "^4.17.20" | ||
"lodash": "^4.17.20", | ||
"sort-keys": "^4.2.0" | ||
}, | ||
@@ -99,6 +100,6 @@ "devDependencies": { | ||
"@semantic-release/git": "^9.0.0", | ||
"@types/lodash": "^4.14.165", | ||
"@types/node": "^14.14.14", | ||
"@types/lodash": "^4.14.167", | ||
"@types/node": "^14.14.19", | ||
"ajv": "6.12.4", | ||
"ava": "^3.14.0", | ||
"ava": "^3.15.0", | ||
"commitizen": "^4.2.2", | ||
@@ -114,3 +115,3 @@ "conventional-changelog-conventionalcommits": "^4.5.0", | ||
"rimraf": "^3.0.2", | ||
"semantic-release": "^17.3.0", | ||
"semantic-release": "^17.3.1", | ||
"ts-node": "^9.1.1", | ||
@@ -117,0 +118,0 @@ "typescript": "^4.1.3", |
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
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
90104
1169
2
+ Addedsort-keys@^4.2.0
+ Addedis-plain-obj@2.1.0(transitive)
+ Addedsort-keys@4.2.0(transitive)