Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

openapi-client-axios

Package Overview
Dependencies
Maintainers
1
Versions
125
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openapi-client-axios - npm Package Compare versions

Comparing version 7.1.3 to 7.2.0

57

client.d.ts

@@ -132,3 +132,58 @@ import { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';

*/
getAxiosConfigForOperation: (operation: Operation | string, args: OperationMethodArguments) => AxiosRequestConfig<any>;
getAxiosConfigForOperation: (operation: Operation | string, args: OperationMethodArguments) => {
headers: {
[x: string]: string | number | boolean | string[] | import("axios").AxiosHeaders;
link?: import("axios").AxiosHeaders;
head?: import("axios").AxiosHeaders;
options?: import("axios").AxiosHeaders;
get?: import("axios").AxiosHeaders;
delete?: import("axios").AxiosHeaders;
post?: import("axios").AxiosHeaders;
put?: import("axios").AxiosHeaders;
patch?: import("axios").AxiosHeaders;
purge?: import("axios").AxiosHeaders;
unlink?: import("axios").AxiosHeaders;
common?: import("axios").AxiosHeaders;
};
url?: string;
method?: string;
baseURL?: string;
transformRequest?: import("axios").AxiosRequestTransformer | import("axios").AxiosRequestTransformer[];
transformResponse?: import("axios").AxiosResponseTransformer | import("axios").AxiosResponseTransformer[];
params?: any;
paramsSerializer?: import("axios").ParamsSerializerOptions;
data?: any;
timeout?: number;
timeoutErrorMessage?: string;
withCredentials?: boolean;
adapter?: import("axios").AxiosAdapter;
auth?: import("axios").AxiosBasicCredentials;
responseType?: import("axios").ResponseType;
responseEncoding?: string;
xsrfCookieName?: string;
xsrfHeaderName?: string;
onUploadProgress?: (progressEvent: import("axios").AxiosProgressEvent) => void;
onDownloadProgress?: (progressEvent: import("axios").AxiosProgressEvent) => void;
maxContentLength?: number;
validateStatus?: (status: number) => boolean;
maxBodyLength?: number;
maxRedirects?: number;
maxRate?: number | [number, number];
beforeRedirect?: (options: Record<string, any>, responseDetails: {
headers: Record<string, string>;
}) => void;
socketPath?: string;
httpAgent?: any;
httpsAgent?: any;
proxy?: false | import("axios").AxiosProxyConfig;
cancelToken?: import("axios").CancelToken;
decompress?: boolean;
transitional?: import("axios").TransitionalOptions;
signal?: import("axios").GenericAbortSignal;
insecureHTTPParser?: boolean;
env?: {
FormData?: new (...args: any[]) => object;
};
formSerializer?: import("axios").FormSerializerOptions;
};
/**

@@ -135,0 +190,0 @@ * Creates a generic request config object for operation + arguments.

6

client.js

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

var _a = __read(args, 3), config = _a[2];
return config ? __assign(__assign({}, axiosConfig), config) : axiosConfig;
return __assign(__assign(__assign({}, axiosConfig), config), { headers: __assign(__assign({}, axiosConfig === null || axiosConfig === void 0 ? void 0 : axiosConfig.headers), config === null || config === void 0 ? void 0 : config.headers) });
};

@@ -688,5 +688,3 @@ /**

client = this.getAxiosInstance();
return [4 /*yield*/, client.get(this.inputDocument)
// set document
];
return [4 /*yield*/, client.get(this.inputDocument)];
case 2:

@@ -693,0 +691,0 @@ documentRes = _a.sent();

{
"name": "openapi-client-axios",
"description": "JavaScript client library for consuming OpenAPI-enabled APIs with axios. Types included.",
"version": "7.1.3",
"version": "7.2.0",
"license": "MIT",

@@ -77,3 +77,3 @@ "keywords": [

},
"gitHead": "049ee835d06e0d5f162acff53800388f82570dff"
"gitHead": "6ea364b653a2264ddd2de4d2f1ddabc5cf3cbfd5"
}

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