You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

swagger-typescript-api

Package Overview
Dependencies
Maintainers
2
Versions
154
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

swagger-typescript-api - npm Package Compare versions

Comparing version

to
13.2.4

dist/src-Dg3yZCMd.js
# swagger-typescript-api
## 13.2.4
### Patch Changes
- [#1299](https://github.com/acacode/swagger-typescript-api/pull/1299) [`9552c0a`](https://github.com/acacode/swagger-typescript-api/commit/9552c0a3341583be69aaa2cdf2b4e830a1919b01) Thanks [@js2me](https://github.com/js2me)! - added support of x-enum-descriptions property
## 13.2.3

@@ -4,0 +10,0 @@

2

dist/cli.js
#!/usr/bin/env node
import { CodeGenConfig, HTTP_CLIENT, TemplatesGenConfig, generateApi, generateTemplates, package_default } from "./src-BYbyXNbU.js";
import { CodeGenConfig, HTTP_CLIENT, TemplatesGenConfig, generateApi, generateTemplates, package_default } from "./src-Dg3yZCMd.js";
import * as path$1 from "node:path";

@@ -4,0 +4,0 @@ import { loadConfig } from "c12";

import { __export } from "./chunk-Cl8Af3a2.js";
import * as lodash20 from "lodash";
import * as lodash19 from "lodash";
import lodash from "lodash";
import * as typescript from "typescript";
import * as eta21 from "eta";
import * as eta20 from "eta";
import { OpenAPI } from "openapi-types";
import * as swagger_schema_official17 from "swagger-schema-official";
import * as swagger_schema_official16 from "swagger-schema-official";

@@ -138,2 +138,3 @@ //#region src/schema-components-map.d.ts

getEnumNames: (schema: any) => any;
getEnumDescriptions: (schema: any) => any;
getSchemaRefType: (schema: any) => SchemaComponent | null;

@@ -499,2 +500,3 @@ isPropertyRequired: (name: any, propertySchema: any, rootSchema: any) => any;

EnumField: (key: unknown, value: unknown) => string;
EnumFieldDescription: (description: any) => string;
EnumFieldsWrapper: (contents: Record<string, unknown>[]) => string;

@@ -604,2 +606,3 @@ ObjectWrapper: (content: unknown) => string;

EnumField: (key: unknown, value: unknown) => string;
EnumFieldDescription: (description: any) => string;
EnumFieldsWrapper: (contents: Record<string, unknown>[]) => string;

@@ -917,3 +920,3 @@ ObjectWrapper: (content: unknown) => string;

summary?: string;
responses?: swagger_schema_official17.Spec["responses"];
responses?: swagger_schema_official16.Spec["responses"];
produces?: string[];

@@ -1151,3 +1154,3 @@ requestBody?: object;

}) => string;
_: lodash20.LoDashStatic;
_: lodash19.LoDashStatic;
require: (path: string) => unknown;

@@ -1173,3 +1176,3 @@ };

}) => void;
renderTemplate: (templateContent: string, data: Record<string, unknown>, etaOptions?: Partial<eta21.EtaConfig>) => Promise<string> | string;
renderTemplate: (templateContent: string, data: Record<string, unknown>, etaOptions?: Partial<eta20.EtaConfig>) => Promise<string> | string;
getTemplate: (params: {

@@ -1402,4 +1405,11 @@ fileName?: string;

/**
* /\** description \*\/
*/
EnumFieldDescription: (description: any) => string;
/**
* /\** $A0.description \*\/
* $A0.key = $A0.value,
* /\** $A1.description \*\/
* $A1.key = $A1.value,
* /\** $AN.description \*\/
* $AN.key = $AN.value,

@@ -1554,2 +1564,3 @@ */

EnumField: (key: unknown, value: unknown) => string;
EnumFieldDescription: (description: any) => string;
EnumFieldsWrapper: (contents: Record<string, unknown>[]) => string;

@@ -1590,3 +1601,3 @@ ObjectWrapper: (content: unknown) => string;

NameResolver: typeof NameResolver;
_: lodash20.LoDashStatic;
_: lodash19.LoDashStatic;
require: (packageOrPath: string) => Promise<any>;

@@ -1593,0 +1604,0 @@ };

@@ -1,3 +0,3 @@

import { constants_exports, generateApi, generateTemplates } from "./src-BYbyXNbU.js";
import { constants_exports, generateApi, generateTemplates } from "./src-Dg3yZCMd.js";
export { constants_exports as constants, generateApi, generateTemplates };
{
"name": "swagger-typescript-api",
"version": "13.2.3",
"version": "13.2.4",
"description": "Generate the API client for Fetch or Axios from an OpenAPI Specification",

@@ -51,3 +51,3 @@ "homepage": "https://github.com/acacode/swagger-typescript-api",

"@biomejs/js-api": "1.0.0",
"@biomejs/wasm-nodejs": "2.0.0",
"@biomejs/wasm-nodejs": "2.0.4",
"@types/swagger-schema-official": "^2.0.25",

@@ -66,9 +66,9 @@ "c12": "^3.0.4",

"devDependencies": {
"@biomejs/biome": "2.0.0",
"@biomejs/biome": "2.0.4",
"@changesets/changelog-github": "0.5.1",
"@changesets/cli": "2.29.4",
"@changesets/cli": "2.29.5",
"@tsconfig/node18": "18.2.4",
"@tsconfig/strictest": "2.0.5",
"@types/js-yaml": "4.0.9",
"@types/lodash": "4.17.17",
"@types/lodash": "4.17.18",
"@types/node": "24.0.3",

@@ -80,3 +80,3 @@ "@types/swagger2openapi": "7.0.4",

"typedoc": "0.28.5",
"vitest": "3.2.3"
"vitest": "3.2.4"
},

@@ -83,0 +83,0 @@ "packageManager": "yarn@4.9.2",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet