@zenflux/core
Advanced tools
Comparing version 0.0.0-alpha.14 to 0.0.0-alpha.15
@@ -6,3 +6,3 @@ /** | ||
import ObjectBase from "../core/object-base"; | ||
import { TErrorHandlerCallbackType, TResponseFilterCallbackType, TResponseHandlerCallbackType, E_HTTP_METHOD_TYPE } from "../interfaces/"; | ||
import { E_HTTP_METHOD_TYPE, TErrorHandlerCallbackType, TResponseFilterCallbackType, TResponseHandlerCallbackType } from "../interfaces/"; | ||
export declare class Http extends ObjectBase { | ||
@@ -9,0 +9,0 @@ private readonly logger; |
{ | ||
"name": "@zenflux/core", | ||
"version": "0.0.0-alpha.14", | ||
"version": "0.0.0-alpha.15", | ||
"description": "ZenFlux core", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -10,7 +10,6 @@ /** | ||
import { | ||
E_HTTP_METHOD_TYPE, | ||
TErrorHandlerCallbackType, | ||
TResponseFilterCallbackType, | ||
TResponseHandlerCallbackType, | ||
E_HTTP_METHOD_TYPE, | ||
} from "../interfaces/"; | ||
@@ -55,7 +54,5 @@ | ||
if ( [ | ||
E_HTTP_METHOD_TYPE.POST, | ||
E_HTTP_METHOD_TYPE.PUT, | ||
E_HTTP_METHOD_TYPE.PATCH, | ||
].includes( method ) ) { | ||
if ( method === E_HTTP_METHOD_TYPE.GET ) { | ||
Object.assign( params, { headers } ); | ||
} else { | ||
Object.assign( headers, { 'Content-Type': 'application/json' } ); | ||
@@ -67,5 +64,2 @@ Object.assign( params, { | ||
} ); | ||
} else { | ||
Object.assign( params, { headers } ); | ||
} | ||
@@ -72,0 +66,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
319499
4663