New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

use-http

Package Overview
Dependencies
Maintainers
1
Versions
102
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

use-http - npm Package Compare versions

Comparing version 0.1.97 to 0.1.98

11

dist/makeRouteAndOptions.js

@@ -40,12 +40,3 @@ "use strict";

const opts = Object.assign(Object.assign({}, initialOptions), { body,
method, signal: controller.signal, headers: Object.assign({
// default content types http://bit.ly/2N2ovOZ
// Accept: 'application/json',
'Content-Type': 'application/json' }, initialOptions.headers) });
if (utils_1.isBrowser &&
(routeOrBody instanceof URLSearchParams ||
routeOrBody instanceof FormData ||
bodyAs2ndParam instanceof FormData)) {
delete opts.headers['Content-Type'];
}
method, signal: controller.signal, headers: Object.assign({}, initialOptions.headers) });
if (method === GET || method === OPTIONS)

@@ -52,0 +43,0 @@ delete opts.body;

10

package.json
{
"name": "use-http",
"version": "0.1.97",
"version": "0.1.98",
"homepage": "http://use-http.com",

@@ -30,5 +30,5 @@ "main": "dist/index.js",

"eslint": "^6.0.1",
"eslint-config-prettier": "6.4.0",
"eslint-plugin-jest": "22.20.1",
"eslint-plugin-jest-formatting": "1.1.1",
"eslint-config-prettier": "6.5.0",
"eslint-plugin-jest": "22.21.0",
"eslint-plugin-jest-formatting": "1.2.0",
"eslint-plugin-jsx-a11y": "^6.2.1",

@@ -38,3 +38,3 @@ "eslint-plugin-prettier": "^3.1.0",

"eslint-plugin-react-hooks": "^2.0.0",
"eslint-plugin-sonarjs": "^0.4.0",
"eslint-plugin-sonarjs": "^0.5.0",
"eslint-watch": "^5.1.2",

@@ -41,0 +41,0 @@ "jest": "^24.7.1",

Sorry, the diff of this file is not supported yet

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