New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ts-json-schema-generator

Package Overview
Dependencies
Maintainers
1
Versions
340
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.37.0 to 0.37.1

4

dist/src/NodeParser/MappedTypeNodeParser.js

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

const NodeParser_1 = require("../NodeParser");
const LiteralType_1 = require("../Type/LiteralType");
const ObjectType_1 = require("../Type/ObjectType");

@@ -25,2 +26,5 @@ const StringType_1 = require("../Type/StringType");

}
else if (keyListType instanceof LiteralType_1.LiteralType) {
return new ObjectType_1.ObjectType(id, [], this.getProperties(node, new UnionType_1.UnionType([keyListType]), context), false);
}
else if (keyListType instanceof StringType_1.StringType) {

@@ -27,0 +31,0 @@ return new ObjectType_1.ObjectType(id, [], [], this.childNodeParser.createType(node.type, context));

@@ -93,2 +93,3 @@ "use strict";

assertSchema("type-mapped-native", "MyObject");
assertSchema("type-mapped-native-single-literal", "MyObject");
assertSchema("type-mapped-widened", "MyObject");

@@ -95,0 +96,0 @@ assertSchema("generic-simple", "MyObject");

4

package.json
{
"name": "ts-json-schema-generator",
"version": "0.37.0",
"version": "0.37.1",
"description": "Generate JSON schema from your Typescript sources",

@@ -44,3 +44,3 @@ "main": "dist/index.js",

"json-stable-stringify": "^1.0.1",
"typescript": "^3.2.1"
"typescript": "^3.2.2"
},

@@ -47,0 +47,0 @@ "devDependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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