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

sbx-client-request

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sbx-client-request - npm Package Compare versions

Comparing version 0.2.9 to 0.2.10

9

lib/index.js

@@ -22,4 +22,4 @@ import * as Cookie from 'sbx-client-cookie';

storage: 'localStorage', // cookie
response: props.hasOwnProperty('response')
? props.response
responseType: props.hasOwnProperty('responseType')
? props.responseType
: 'body', // full

@@ -38,2 +38,3 @@ };

middlewares = [],
responseType,
} = this.config,

@@ -174,5 +175,5 @@ self = this;

else {
if(this.config.response === 'body'){
if(responseType === 'body'){
resolve(response);
}else if(this.config.response === 'full'){
}else if(responseType === 'full'){
resolve({

@@ -179,0 +180,0 @@ headers:responseHeaders,

{
"name": "sbx-client-request",
"version": "0.2.9",
"version": "0.2.10",
"description": "sbx-client-request",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

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