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

volos-analytics-apigee

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

volos-analytics-apigee - npm Package Compare versions

Comparing version 0.3.6 to 0.3.7

25

lib/apigeeanalytics.js

@@ -28,3 +28,3 @@ /****************************************************************************

var onFinished = require('on-finished');
var superagent = require('superagent');
var request = require('request');

@@ -85,3 +85,3 @@ var MICROGATEWAY = 'microgateway';

function sendResponse(err, resp) {
if (err || resp.statusCode != 200) {
if (err || resp.statusCode !== 200) {
cb(err || new Error('error from server: ' + resp.statusCode), recordsToBeUploaded);

@@ -152,16 +152,23 @@ } else {

var req = superagent.post(this.uri);
var options = {
url: this.uri,
headers: {},
json: data
};
if (this.microgateway) {
req.auth(this.key, this.secret);
options.auth = {
user: this.key,
pass: this.secret,
sendImmediately: false
}
} else {
req.set('x-DNA-Api-Key', this.key);
options.headers['x-DNA-Api-Key'] = this.key;
}
if (this.compress) {
req.set('Content-Encoding', 'gzip');
options.headers['Content-Encoding'] = 'gzip';
}
req
.send(data)
.end(cb);
request.post(options, cb);
};
{
"name": "volos-analytics-apigee",
"version": "0.3.6",
"version": "0.3.7",
"main": "lib/apigeeanalytics.js",

@@ -13,5 +13,5 @@ "license": "MIT",

"dependencies": {
"debug": "1.0.x",
"on-finished": "~2.2.1",
"debug": "1.0.x",
"superagent": "0.x.x",
"request": "^2.6.0",
"volos-analytics-common": "0.2.x"

@@ -18,0 +18,0 @@ },

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