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

superagent-defaults

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

superagent-defaults - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

19

index.js

@@ -7,3 +7,2 @@ /**

, methods = require('methods')
, each = require('each-component')
, Emitter = require('emitter-component');

@@ -52,4 +51,4 @@

Context.prototype.applyHeaders = function(req) {
each(this.headers, function(headerArgs) {
req.set.apply(req, headerArgs);
each(this.headers, function(header) {
req.set.apply(req, header);
});

@@ -77,1 +76,15 @@ }

});
/**
* Iterate array-ish.
*
* @param {Array|Object} arr
* @param {Function} fn
* @api private
*/
function each(arr, fn) {
for (var i = 0; i < arr.length; ++i) {
fn(arr[i], i);
}
}

3

package.json
{
"name": "superagent-defaults",
"version": "0.1.1",
"version": "0.1.2",
"description": "Create some defaults for superagent requests",

@@ -22,3 +22,2 @@ "main": "index.js",

"superagent": "~0.14.9",
"each-component": "CamShaft/each",
"methods": "0.0.1",

@@ -25,0 +24,0 @@ "emitter-component": "~1.0.1"

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