Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

schematized

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

schematized - npm Package Compare versions

Comparing version 1.8.9 to 1.9.0

7

CHANGELOG.md
# 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 @@

6

dist/schema-builder.js
"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() {

13

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc