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

teepee

Package Overview
Dependencies
Maintainers
4
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

teepee - npm Package Compare versions

Comparing version 2.27.0 to 2.28.0

5

lib/Teepee.js

@@ -316,3 +316,4 @@ /*global JSON, setTimeout, setImmediate*/

method = options.method,
requestUrl = typeof options.path === 'string' ? options.path : options.url;
requestUrl = typeof options.path === 'string' ? options.path : options.url,
autoDecodeJson = typeof options.json !== 'undefined' ? options.json !== false : this.json !== false; // Defaults to true

@@ -742,3 +743,3 @@ Object.keys(headers).forEach(function (header) {

response.body = Buffer.concat(responseBodyChunks);
if (isContentTypeJson(response.headers['content-type']) && response.req.method !== 'HEAD') {
if (isContentTypeJson(response.headers['content-type']) && response.req.method !== 'HEAD' && autoDecodeJson) {
// 'HEAD' requests have blank response

@@ -745,0 +746,0 @@ try {

2

package.json
{
"name": "teepee",
"version": "2.27.0",
"version": "2.28.0",
"description": "Generic HTTP client",

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

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