New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.38.3 to 0.39.0

1

dist/test/schema.test.js

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

assertSchema("any-unknown", "MyObject");
assertSchema("never", "Never");
});

@@ -179,0 +180,0 @@ describe("class and interface", function () {

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

var props = this.tc.getPropertiesOfType(clazzType).filter(function (prop) {
var propertyType = _this.tc.getTypeOfSymbolAtLocation(prop, node);
if (ts.TypeFlags.Never === propertyType.getFlags()) {
return false;
}
if (!_this.args.excludePrivate) {

@@ -571,0 +575,0 @@ return true;

2

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

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

@@ -714,2 +714,7 @@ import * as glob from "glob";

const props = this.tc.getPropertiesOfType(clazzType).filter(prop => {
// filter never
const propertyType = this.tc.getTypeOfSymbolAtLocation(prop, node);
if (ts.TypeFlags.Never === propertyType.getFlags()) {
return false;
}
if (!this.args.excludePrivate) {

@@ -716,0 +721,0 @@ return true;

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