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

@zenflux/core

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zenflux/core - npm Package Compare versions

Comparing version 0.0.0-alpha.14 to 0.0.0-alpha.15

2

dist/es/clients/http.d.ts

@@ -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

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