New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

swagger-axios-codegen

Package Overview
Dependencies
Maintainers
1
Versions
149
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

swagger-axios-codegen - npm Package Compare versions

Comparing version 0.9.3 to 0.9.4

__src/baseInterfaces.ts

0

dist/baseInterfaces.d.ts

@@ -0,0 +0,0 @@ export interface ISwaggerOptions {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=baseInterfaces.js.map

@@ -0,0 +0,0 @@ import { IDefinitionProperties } from "../swaggerInterfaces";

@@ -0,0 +0,0 @@ import { IEnumDef } from "../baseInterfaces";

@@ -0,0 +0,0 @@ import { IComponents } from '../swaggerInterfaces';

9

dist/componentsCodegen/index.js

@@ -9,6 +9,11 @@ "use strict";

let definitionEnums = {};
if (!definitions || !definitions.schemas) {
definitions = {
schemas: {}
};
}
for (const [k, v] of Object.entries(definitions.schemas)) {
let className = utils_1.refClassName(k);
let result = null;
// is an enum definition,just in swagger openAPI v2
// is an enum definition,just in swagger openAPI v2
if (v.enum) {

@@ -18,3 +23,3 @@ const enumDef = createDefinitionEnum_1.createDefinitionEnum(className, v.enum, v.type);

name: enumDef.name,
value: enumDef,
value: enumDef
};

@@ -21,0 +26,0 @@ }

@@ -0,0 +0,0 @@ import { IDefinitionProperty } from "../swaggerInterfaces";

@@ -0,0 +0,0 @@ "use strict";

"use strict";
//# sourceMappingURL=consts.js.map

@@ -0,0 +0,0 @@ import { IDefinitionProperties } from "../swaggerInterfaces";

@@ -0,0 +0,0 @@ import { IEnumDef } from "../baseInterfaces";

@@ -0,0 +0,0 @@ import { IDefinitions } from '../swaggerInterfaces';

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { IDefinitionProperty } from "../swaggerInterfaces";

@@ -0,0 +0,0 @@ "use strict";

import { ISwaggerOptions } from './baseInterfaces';
export declare function codegen(params: ISwaggerOptions): Promise<void>;

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { IParameter } from '../swaggerInterfaces';

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { IRequestMethod } from '../swaggerInterfaces';

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { IPaths } from '../swaggerInterfaces';

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export interface ISwaggerSource {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=swaggerInterfaces.js.map

@@ -0,0 +0,0 @@ import { IPropDef, ISwaggerOptions } from "./baseInterfaces";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { IDefinitionClass, IDefinitionEnum } from "./baseInterfaces";

@@ -0,0 +0,0 @@ "use strict";

{
"name": "swagger-axios-codegen",
"version": "0.9.3",
"version": "0.9.4",
"main": "./dist/index",

@@ -5,0 +5,0 @@ "typings": "./dist/",

Sorry, the diff of this file is not supported yet

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