openapi-gen-typescript
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -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 @@ }); |
{ | ||
"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 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
92009
2162