Socket
Socket
Sign inDemoInstall

teeny-request

Package Overview
Dependencies
Maintainers
3
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

teeny-request - npm Package Compare versions

Comparing version 3.11.2 to 3.11.3

16

build/src/index.js

@@ -8,3 +8,3 @@ "use strict";

return extendStatics(d, b);
};
}
return function (d, b) {

@@ -85,9 +85,9 @@ extendStatics(d, b);

function fetchToRequestResponse(opts, res) {
var request = res.body;
var request = {};
request.headers = opts.headers || {};
request.href = res.url;
// headers need to be converted from a map to an obj
var headers = {};
res.headers.forEach(function (value, key) { return headers[key] = value; });
return {
var resHeaders = {};
res.headers.forEach(function (value, key) { return resHeaders[key] = value; });
var response = Object.assign(res.body, {
statusCode: res.status,

@@ -97,4 +97,6 @@ statusMessage: res.statusText,

body: res.body,
headers: headers,
};
headers: resHeaders,
toJSON: function () { return ({ headers: resHeaders }); },
});
return response;
}

@@ -101,0 +103,0 @@ /**

{
"name": "teeny-request",
"version": "3.11.2",
"version": "3.11.3",
"description": "Like request, but smaller.",

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

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