swagger-codegen-openapi
Advanced tools
+1
-1
| { | ||
| "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"; |
Potential vulnerability
Supply chain riskInitial human review suggests the presence of a vulnerability in this package. It is pending further analysis and confirmation.
Found 1 instance in 1 package
Potential vulnerability
Supply chain riskInitial human review suggests the presence of a vulnerability in this package. It is pending further analysis and confirmation.
Found 1 instance in 1 package
146606
-0.01%