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

@baiducloud/restclient

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@baiducloud/restclient - npm Package Compare versions

Comparing version 1.0.2-beta to 1.0.3-beta

3

index.js

@@ -290,5 +290,4 @@ define(function () { 'use strict';

req.headers = req.headers || {};
req.headers['Content-Type'] = 'application/x-www-form-urlencoded;charset=utf-8';
if (isObject(req.data)) {
if (isObject(req.data) && !(req.data instanceof FormData)) {
req.headers['Content-Type'] = 'application/json;charset=utf-8';

@@ -295,0 +294,0 @@ req.data = JSON.stringify(req.data);

{
"name": "@baiducloud/restclient",
"version": "1.0.2-beta",
"version": "1.0.3-beta",
"description": "Restful HTTP Client for broswer.",

@@ -5,0 +5,0 @@ "main": "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