Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

swagger-codegen-openapi

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

swagger-codegen-openapi - npm Package Compare versions

Comparing version
1.0.5
to
1.0.6
+1
-1
package.json
{
"name": "swagger-codegen-openapi",
"version": "1.0.5",
"version": "1.0.6",
"description": "A code generator based on openapi generator",

@@ -5,0 +5,0 @@ "author": "Kher Phay Chang",

@@ -64,3 +64,2 @@ // tslint:disable

protected basePath = defaultBasePath;
protected defaultHeaders: any = configs.defaultHeaders();
protected axiosInstance: AxiosInstance = axios.create();

@@ -117,4 +116,5 @@ protected storage: StorageManagement = new StorageManagement();

protected initOptions(options: AxiosRequestConfig, queryParams: KeyValuePair, headerParams: KeyValuePair, canceler: (c: Canceler) => void): AxiosRequestConfig {
const defaultHeaders: any = configs.defaultHeaders();
options = options || {};
options.headers = !isEmpty(this.defaultHeaders) ? { ...this.defaultHeaders, ...options.headers } : options.headers;
options.headers = !isEmpty(defaultHeaders) ? { ...defaultHeaders, ...options.headers } : options.headers;
options.params = options.params ? options.params : {};

@@ -121,0 +121,0 @@ options.responseType = options.responseType ? options.responseType : "json";