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

typescript-json-schema

Package Overview
Dependencies
Maintainers
2
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typescript-json-schema - npm Package Compare versions

Comparing version 0.9.1 to 0.9.2

2

package.json
{
"name": "typescript-json-schema",
"version": "0.9.1",
"version": "0.9.2",
"description": "typescript-json-schema generates JSON Schema files from your Typescript sources",

@@ -5,0 +5,0 @@ "main": "typescript-json-schema.js",

@@ -108,3 +108,4 @@ "use strict";

});
assertSchema("annotation-default", "main.ts", "MyObject");
});
//# sourceMappingURL=schema.test.js.map

@@ -47,10 +47,8 @@ "use strict";

JsonSchemaGenerator.prototype.parseValue = function (value) {
if (value === "false") {
return false;
try {
return JSON.parse(value);
}
if (value === "true") {
return true;
catch (error) {
return value;
}
var num = parseFloat(value);
return isNaN(num) ? value : num;
};

@@ -57,0 +55,0 @@ JsonSchemaGenerator.prototype.parseCommentsIntoDefinition = function (symbol, definition, otherAnnotations) {

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