openapi-gen-typescript
Advanced tools
Comparing version 0.4.7 to 0.4.8
@@ -19,4 +19,3 @@ "use strict"; | ||
const constants_1 = require("../constants"); | ||
const hasRefRegex = /.+\??\:\s+schemas\..+;/; | ||
const hasRefRegex2 = /extends\s+schemas\./; | ||
const hasRefRegex = /schemas\./; | ||
const writeFileFromIFileCode = (props) => __awaiter(void 0, void 0, void 0, function* () { | ||
@@ -41,3 +40,3 @@ const { outputDir, fileCodeList, fetchModuleFile, schemasClassCode, schemasTypesCode, pathsCode, } = props; | ||
.join('/'), | ||
schemasClassCode.length > 0 && (hasRefRegex.test(el.code) || hasRefRegex2.test(el.code)) | ||
schemasClassCode.length > 0 && hasRefRegex.test(el.code) | ||
? `import * as schemas from '../schemas';\n` | ||
@@ -44,0 +43,0 @@ : '\n', |
{ | ||
"name": "openapi-gen-typescript", | ||
"version": "0.4.7", | ||
"version": "0.4.8", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
@@ -18,4 +18,3 @@ // @ts-ignore | ||
const hasRefRegex = /.+\??\:\s+schemas\..+;/; | ||
const hasRefRegex2 = /extends\s+schemas\./; | ||
const hasRefRegex = /schemas\./; | ||
@@ -50,3 +49,3 @@ export const writeFileFromIFileCode = async (props: IProps) => { | ||
.join('/'), | ||
schemasClassCode.length > 0 && (hasRefRegex.test(el.code) || hasRefRegex2.test(el.code)) | ||
schemasClassCode.length > 0 && hasRefRegex.test(el.code) | ||
? `import * as schemas from '../schemas';\n` | ||
@@ -53,0 +52,0 @@ : '\n', |
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
92524
2171