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

@transcend-io/type-utils

Package Overview
Dependencies
Maintainers
7
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@transcend-io/type-utils - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

16

build/codecTools/toJsonSchema.js

@@ -33,6 +33,6 @@ "use strict";

if (type._tag === 'UnionType') {
return { anyOf: type.types.map(exports.toJsonSchema) };
return { anyOf: type.types.map((t) => (0, exports.toJsonSchema)(t, strict)) };
}
if (type._tag === 'IntersectionType') {
return { allOf: type.types.map(exports.toJsonSchema) };
return { allOf: type.types.map((t) => (0, exports.toJsonSchema)(t, strict)) };
}

@@ -45,3 +45,3 @@ if (type._tag === 'InterfaceType') {

key,
(0, exports.toJsonSchema)(subtype),
(0, exports.toJsonSchema)(subtype, strict),
])),

@@ -54,3 +54,3 @@ ...(strict ? { additionalProperties: false } : {}),

type: 'object',
additionalProperties: (0, exports.toJsonSchema)(type.codomain),
additionalProperties: (0, exports.toJsonSchema)(type.codomain, strict),
};

@@ -63,3 +63,3 @@ }

key,
(0, exports.toJsonSchema)(subtype),
(0, exports.toJsonSchema)(subtype, strict),
])),

@@ -72,3 +72,3 @@ ...(strict ? { additionalProperties: false } : {}),

type: 'array',
items: (0, exports.toJsonSchema)(type.type),
items: (0, exports.toJsonSchema)(type.type, strict),
};

@@ -79,3 +79,3 @@ }

type: 'array',
items: type.types.map(exports.toJsonSchema),
items: type.types.map((t) => (0, exports.toJsonSchema)(t, strict)),
};

@@ -88,3 +88,3 @@ }

return {
...(0, exports.toJsonSchema)(type.type),
...(0, exports.toJsonSchema)(type.type, strict),
description: `Predicate: ${type.predicate.name || type.name}`,

@@ -91,0 +91,0 @@ };

@@ -5,3 +5,3 @@ {

"description": "Small package containing useful typescript utilities.",
"version": "1.1.0",
"version": "1.1.1",
"homepage": "https://github.com/transcend-io/type-utils",

@@ -8,0 +8,0 @@ "repository": {

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