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.2.4 to 0.2.5

7

dist/index.js

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

}
else if (/^\(([\s\S]+)\)$/.test(jsonSchema)) {
jsonSchema = jsonSchema.replace(/^\(([\s\S]+)\)$/, '$1');
responseTypeNames.push(responseTypeName);
}
else {

@@ -285,3 +289,4 @@ responseTypeNames.push(responseTypeName);

.replace(/ interface | type = /g, ' class ')
.replace(/ type ([^=]+) = components.([a-zA-Z.]+)[;{}]?/g, ' class $1 extends $2 {}');
.replace(/ type ([^=]+) = components.([a-zA-Z.]+)[;{}]?/g, ' class $1 extends $2 {}')
.replace(/ type ([^=]+) = /g, ' class $1 ');
});

@@ -288,0 +293,0 @@ pathsMap[namespaceName] = {

2

package.json
{
"name": "openapi-gen-typescript",
"version": "0.2.4",
"version": "0.2.5",
"main": "dist/index.js",

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

@@ -105,2 +105,5 @@ // @ts-ignore

responseTypeNames.push(`${responseTypeName}[]`);
} else if (/^\(([\s\S]+)\)$/.test(jsonSchema)) {
jsonSchema = jsonSchema.replace(/^\(([\s\S]+)\)$/, '$1');
responseTypeNames.push(responseTypeName);
} else {

@@ -416,3 +419,4 @@ responseTypeNames.push(responseTypeName);

.replace(/ interface | type = /g, ' class ')
.replace(/ type ([^=]+) = components.([a-zA-Z.]+)[;{}]?/g, ' class $1 extends $2 {}');
.replace(/ type ([^=]+) = components.([a-zA-Z.]+)[;{}]?/g, ' class $1 extends $2 {}')
.replace(/ type ([^=]+) = /g, ' class $1 ');
});

@@ -419,0 +423,0 @@ pathsMap[namespaceName] = {

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