Comparing version 2.0.8 to 3.0.0
{ | ||
"name": "edgegrid", | ||
"version": "2.0.8", | ||
"version": "3.0.0", | ||
"description": "Authentication handler for the Akamai OPEN EdgeGrid Authentication scheme in Node.js", | ||
@@ -28,5 +28,5 @@ "main": "index.js", | ||
"log4js": "^0.6.14", | ||
"moment": "^2.7.0", | ||
"request": "2.60.0", | ||
"moment": "^2.7.0", | ||
"node-uuid": "^1.4.1" | ||
"uuid": "^3.0.0" | ||
}, | ||
@@ -33,0 +33,0 @@ "devDependencies": { |
@@ -43,4 +43,4 @@ # EdgeGrid for Node.js | ||
eg.send(function(data, response) { | ||
console.log(data); | ||
eg.send(function(error, response, body) { | ||
console.log(body); | ||
}); | ||
@@ -91,4 +91,4 @@ ``` | ||
body: data | ||
}).send(function (data, response) { | ||
console.log(data); | ||
}).send(function (error, response, body) { | ||
console.log(body); | ||
}); | ||
@@ -145,4 +145,4 @@ ``` | ||
}} | ||
}).send(function (data, response) { | ||
console.log(data); | ||
}).send(function (error, response, body) { | ||
console.log(body); | ||
}); | ||
@@ -224,3 +224,3 @@ | ||
Copyright 2015 Akamai Technologies, Inc. All rights reserved. | ||
Copyright 2016 Akamai Technologies, Inc. All rights reserved. | ||
@@ -227,0 +227,0 @@ Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -72,4 +72,4 @@ // Copyright 2014 Akamai Technologies, Inc. All Rights Reserved | ||
if (error) { | ||
callback(error) | ||
return | ||
callback(error); | ||
return; | ||
} | ||
@@ -81,3 +81,3 @@ if (helpers.isRedirect(response.statusCode)) { | ||
callback(body, response); | ||
callback(null, response, body); | ||
}.bind(this)); | ||
@@ -84,0 +84,0 @@ |
@@ -15,3 +15,3 @@ // Copyright 2014 Akamai Technologies, Inc. All Rights Reserved | ||
var uuid = require('node-uuid'), | ||
var uuid = require('uuid'), | ||
helpers = require('./helpers'), | ||
@@ -18,0 +18,0 @@ logger = require('./logger'), |
@@ -233,4 +233,4 @@ // Copyright 2014 Akamai Technologies, Inc. All Rights Reserved | ||
this.api.send(function(data) { | ||
assert.equal(JSON.parse(data).foo, 'bar'); | ||
this.api.send(function(err, resp, body) { | ||
assert.equal(JSON.parse(body).foo, 'bar'); | ||
done(); | ||
@@ -256,4 +256,4 @@ }); | ||
this.api.send(function(data) { | ||
assert.equal(JSON.parse(data).foo, 'bar'); | ||
this.api.send(function(err, resp, body) { | ||
assert.equal(JSON.parse(body).foo, 'bar'); | ||
done(); | ||
@@ -280,4 +280,4 @@ }); | ||
this.api.send(function(data) { | ||
assert.equal(JSON.parse(data).bar, 'bim'); | ||
this.api.send(function(err, resp, body) { | ||
assert.equal(JSON.parse(body).bar, 'bim'); | ||
done(); | ||
@@ -284,0 +284,0 @@ }); |
275652
+ Addeduuid@^3.0.0
+ Addeduuid@3.4.0(transitive)
- Removednode-uuid@^1.4.1