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

ts-json-schema-generator

Package Overview
Dependencies
Maintainers
1
Versions
335
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-json-schema-generator - npm Package Compare versions

Comparing version 0.19.0 to 0.20.0

4

dist/src/AnnotationsReader/BasicAnnotationsReader.js

@@ -62,2 +62,6 @@ "use strict";

"uniqueItems",
"propertyNames",
"contains",
"const",
"examples",
"default",

@@ -64,0 +68,0 @@ ];

2

dist/src/SchemaGenerator.js

@@ -16,3 +16,3 @@ "use strict";

const rootType = this.nodeParser.createType(rootNode, new NodeParser_1.Context());
return Object.assign({ $schema: "http://json-schema.org/draft-04/schema#", definitions: this.getRootChildDefinitions(rootType) }, this.getRootTypeDefinition(rootType));
return Object.assign({ $schema: "http://json-schema.org/draft-06/schema#", definitions: this.getRootChildDefinitions(rootType) }, this.getRootTypeDefinition(rootType));
}

@@ -19,0 +19,0 @@ findRootNode(fullName) {

{
"name": "ts-json-schema-generator",
"version": "0.19.0",
"version": "0.20.0",
"description": "Generate JSON schema from your Typescript sources",

@@ -41,7 +41,7 @@ "main": "dist/index.js",

"dependencies": {
"commander": "~2.13.0",
"commander": "~2.14.1",
"glob": "~7.1.2",
"json-stable-stringify": "^1.0.1",
"ts-node": "^4.1.0",
"typescript": "~2.7.1"
"ts-node": "^5.0.0",
"typescript": "~2.7.2"
},

@@ -54,6 +54,6 @@ "devDependencies": {

"@types/mocha": "^2.2.48",
"@types/node": "^9.4.0",
"@types/node": "^9.4.6",
"ajv": "~6.1.1",
"chai": "~4.1.2",
"mocha": "~5.0.0",
"mocha": "~5.0.1",
"source-map-support": "~0.5.3",

@@ -60,0 +60,0 @@ "tslint": "~5.9.1"

Sorry, the diff of this file is not supported yet

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