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.3.4 to 0.4.0

1

dist/utils/fileStream.js

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

const pathCode = [
"/* tslint:disable */",
`/**

@@ -30,0 +31,0 @@ * @namespace ${el.fileName}

2

dist/utils/genCodes.d.ts

@@ -11,5 +11,5 @@ /**

export declare const genCodes: (props: IProps) => Promise<{
fileCodeList: Array<IFileCode>;
fileCodeList: IFileCode[];
pathsCode: string[];
}>;
export {};
{
"name": "openapi-gen-typescript",
"version": "0.3.4",
"version": "0.4.0",
"main": "dist/index.js",

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

"tslint": "^6.1.3",
"tslint-config-prettier": "^1.18.0",
"typescript": "^4.0.3"

@@ -23,0 +24,0 @@ },

@@ -26,1 +26,2 @@ # openapi-gen-typescript

| handlePostScript | post script to customize the result |
| handleGenPath | custom generated file path |

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

import { OpenAPIV3 } from 'openapi-types';
import * as _ from 'lodash';
import { IGenParmas } from './utils/type';

@@ -9,0 +8,0 @@ import { genCodes } from './utils/genCodes';

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

const pathCode = [
"/* tslint:disable */",
`/**

@@ -38,0 +39,0 @@ * @namespace ${el.fileName}

@@ -22,3 +22,3 @@ /**

props: IProps,
): Promise<{ fileCodeList: Array<IFileCode>; pathsCode: string[] }> => {
): Promise<{ fileCodeList: IFileCode[]; pathsCode: string[] }> => {
const result: { fileCodeList: IFileCode[]; pathsCode: string[] } = {

@@ -25,0 +25,0 @@ fileCodeList: [],

{
"extends": ["tslint:recommended", "tslint-react", "tslint-react-hooks", "tslint-config-prettier"],
"extends": ["tslint:recommended", "tslint-config-prettier"],
"linterOptions": {

@@ -4,0 +4,0 @@ "exclude": ["node_modules/**/*.ts"]

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