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

9

dist/index.js

@@ -329,3 +329,3 @@ "use strict";

yield mkdirp(currTagNameDir);
const tagIndex = [];
const namespaceNameArr = [];
Object.keys(currMap).map((namespaceName) => {

@@ -344,3 +344,3 @@ const { summary, code } = currMap[namespaceName];

].join('\n');
tagIndex.push(`export * as ${namespaceName} from './${namespaceName}';`);
namespaceNameArr.push(namespaceName);
fs.writeFileSync(`${currTagNameDir}/${namespaceName}.ts`, util_1.format(pathCode));

@@ -352,3 +352,6 @@ });

*/\n`,
...tagIndex,
...namespaceNameArr.map(key => `import * as ${key} from './${key}';`),
`\nexport {
${namespaceNameArr.join(',\n')}
}`,
].join('\n');

@@ -355,0 +358,0 @@ fs.writeFileSync(`${currTagNameDir}/index.ts`, util_1.format(tagCode));

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

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

@@ -468,3 +468,3 @@ // @ts-ignore

await mkdirp(currTagNameDir);
const tagIndex: string[] = [];
const namespaceNameArr: string[] = [];
Object.keys(currMap).map((namespaceName: string) => {

@@ -483,3 +483,3 @@ const { summary, code } = currMap[namespaceName];

].join('\n');
tagIndex.push(`export * as ${namespaceName} from './${namespaceName}';`);
namespaceNameArr.push(namespaceName);
fs.writeFileSync(`${currTagNameDir}/${namespaceName}.ts`, format(pathCode));

@@ -491,3 +491,6 @@ });

*/\n`,
...tagIndex,
...namespaceNameArr.map(key => `import * as ${key} from './${key}';`),
`\nexport {
${namespaceNameArr.join(',\n')}
}`,
].join('\n');

@@ -494,0 +497,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