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

openapi-gen-typescript

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openapi-gen-typescript - npm Package Compare versions

Comparing version 0.4.2 to 0.4.3

2

dist/utils/getInterfaceInfo.js

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

if (jsonSchema.lastIndexOf('[]') === jsonSchema.length - 2) {
jsonSchema = jsonSchema.replace(/\(|\)|(\[\])+/g, '');
jsonSchema = jsonSchema.replace(/\(|\)|(\[\]$)/g, '');
responseTypeNames.push(`${responseTypeName}[]`);

@@ -74,0 +74,0 @@ }

{
"name": "openapi-gen-typescript",
"version": "0.4.2",
"version": "0.4.3",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "types": "dist/index.d.ts",

@@ -80,3 +80,3 @@ // @ts-ignore

if (jsonSchema.lastIndexOf('[]') === jsonSchema.length - 2) {
jsonSchema = jsonSchema.replace(/\(|\)|(\[\])+/g, '');
jsonSchema = jsonSchema.replace(/\(|\)|(\[\]$)/g, '');
responseTypeNames.push(`${responseTypeName}[]`);

@@ -83,0 +83,0 @@ } else if (/^\(([\s\S]+)\)$/.test(jsonSchema)) {

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