Comparing version 0.0.1 to 0.0.2
@@ -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 |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
0
23636
8
455
3
Updatedcomb@>=0.0.5