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 1.0.0 to 1.0.1

5

dist/utils/getCodeForInterface.js

@@ -115,6 +115,3 @@ "use strict";

const generateClassArr = exportArr.map(exp => {
const exp1 = exp.replace(/ interface | type = /g, ' class ');
const exp2 = exp1.replace(/ type ([^=]+) = components.([a-zA-Z0-9._]+)[;{}]?/g, ' class $1 extends $2 {}');
const exp3 = exp2.replace(/ type ([^=]+) = {/g, ' class $1 {');
const exp4 = exp3.replace(/components.schemas/g, 'schemas');
const exp4 = exp.replace(/components.schemas/g, 'schemas');
return exp4;

@@ -121,0 +118,0 @@ });

2

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

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

@@ -176,9 +176,3 @@ /**

const generateClassArr = exportArr.map(exp => {
const exp1 = exp.replace(/ interface | type = /g, ' class ');
const exp2 = exp1.replace(
/ type ([^=]+) = components.([a-zA-Z0-9._]+)[;{}]?/g,
' class $1 extends $2 {}',
);
const exp3 = exp2.replace(/ type ([^=]+) = {/g, ' class $1 {');
const exp4 = exp3.replace(/components.schemas/g, 'schemas');
const exp4 = exp.replace(/components.schemas/g, 'schemas');
return exp4;

@@ -185,0 +179,0 @@ });

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