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

bridge-compile

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bridge-compile - npm Package Compare versions

Comparing version 1.0.11 to 1.0.12

2

dist/sdk-compilers/typescript/json-type-to-ts-interface.js

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

return `Record<${(0, exports.JSONTypeToTSInterface)(JSONType.record.key)}, ${(0, exports.JSONTypeToTSInterface)(JSONType.record.value)}>`;
if ('union' in JSONType)
if ('union' in JSONType && JSONType.union.length > 0)
return '(' + JSONType.union.map((elem) => (0, exports.JSONTypeToTSInterface)(elem)).join(' | ') + ')';

@@ -23,0 +23,0 @@ if ('intersection' in JSONType && JSONType.intersection.length > 0)

{
"name": "bridge-compile",
"version": "1.0.11",
"version": "1.0.12",
"description": "Compile the sdk of your Bridge project with one command locally",

@@ -5,0 +5,0 @@ "author": "Bridge Team <support@bridge.codes>",

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