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.6 to 0.4.7

3

dist/utils/fileStream.js

@@ -20,2 +20,3 @@ "use strict";

const hasRefRegex = /.+\??\:\s+schemas\..+;/;
const hasRefRegex2 = /extends\s+schemas\./;
const writeFileFromIFileCode = (props) => __awaiter(void 0, void 0, void 0, function* () {

@@ -40,3 +41,3 @@ const { outputDir, fileCodeList, fetchModuleFile, schemasClassCode, schemasTypesCode, pathsCode, } = props;

.join('/'),
schemasClassCode.length > 0 && hasRefRegex.test(el.code)
schemasClassCode.length > 0 && (hasRefRegex.test(el.code) || hasRefRegex2.test(el.code))
? `import * as schemas from '../schemas';\n`

@@ -43,0 +44,0 @@ : '\n',

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

@@ -33,2 +33,2 @@ "types": "dist/index.d.ts",

}
}
}

@@ -19,2 +19,3 @@ // @ts-ignore

const hasRefRegex = /.+\??\:\s+schemas\..+;/;
const hasRefRegex2 = /extends\s+schemas\./;

@@ -49,3 +50,3 @@ export const writeFileFromIFileCode = async (props: IProps) => {

.join('/'),
schemasClassCode.length > 0 && hasRefRegex.test(el.code)
schemasClassCode.length > 0 && (hasRefRegex.test(el.code) || hasRefRegex2.test(el.code))
? `import * as schemas from '../schemas';\n`

@@ -52,0 +53,0 @@ : '\n',

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