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

amazon-lib

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amazon-lib - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

34

lib/aws/baseService.js

@@ -131,14 +131,10 @@ var comb = require("comb"),

res.on('end', comb.hitch(this, function() {
try {
var parser = new xml2js.Parser();
parser.parseString(data, comb.hitch(this, function(err, data) {
if (err) {
ret.errback(err);
} else {
ret.callback(data);
}
}));
} catch(e) {
ret.errback(e);
}
var parser = new xml2js.Parser();
parser.parseString(data, comb.hitch(this, function(err, data) {
if (err) {
ret.errback(err);
} else {
ret.callback(data);
}
}));
}));

@@ -159,10 +155,6 @@ res.on("error", comb.hitch(ret, "errback"));

var req = (this.useSSL ? https : http).request(reqOptions, comb.hitch(this, function (res) {
try {
if (res.statusCode == 200) {
this.__handleResponse(res).then(comb.hitch(ret, "callback"), comb.hitch(ret, "errback", "error"));
} else {
this.__handleResponse(res).then(comb.hitch(ret, "errback", "error"), comb.hitch(ret, "errback", "error"));
}
} catch(e) {
ret.errback(e);
if (res.statusCode == 200) {
this.__handleResponse(res).then(comb.hitch(ret, "callback"), comb.hitch(ret, "errback", "error"));
} else {
this.__handleResponse(res).then(comb.hitch(ret, "errback", "error"), comb.hitch(ret, "errback", "error"));
}

@@ -211,2 +203,2 @@ }));

}
}).export(module);
}).as(module);

@@ -172,2 +172,2 @@ var comb = require("comb"),

}
}).export(module);
}).as(module);

@@ -15,3 +15,3 @@ var comb = require("comb"),

constructor : function(options) {
this.super(arguments);
this._super(arguments);
},

@@ -150,2 +150,2 @@

}).export(module);
}).as(module);
{
"name": "amazon-lib",
"description": "AWS Library",
"version": "0.0.1",
"version": "0.0.2",
"keywords" : ["Amazon", "AWS", "SQS", "SNS"],

@@ -13,3 +13,3 @@ "repository": {

"dependencies" : {
"comb" : ">=0.0.3",
"comb" : ">=0.0.5",
"xml2js" : ">=0.1.11"

@@ -16,0 +16,0 @@ },

@@ -13,3 +13,3 @@ #Amazon lib

This library leverages Promises to allow for flow control as well as full error catching, and propogation(Now you have to handle them :) ). This library also uses ean easily extensible library so one can write their own extensions.
This library leverages Promises to allow for flow control as well as full error catching, and propogation(Now you have to handle them :) ). Its extensible.

@@ -16,0 +16,0 @@ ## Installation

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