node-gitlab
Advanced tools
Comparing version 0.0.4 to 0.0.5
0.0.5 / 2013-05-06 | ||
================== | ||
* move requestData to data when error | ||
* fixed test case for gitlab@0.5; add debug; | ||
0.0.4 / 2013-03-27 | ||
@@ -3,0 +9,0 @@ ================== |
@@ -13,2 +13,3 @@ /*! | ||
var debug = require('debug')('gitlab'); | ||
var urllib = require('urllib'); | ||
@@ -62,2 +63,3 @@ var Milestone = require('./milestone'); | ||
}, function (err, result, res) { | ||
debug('%s %s %j: result: %j, err: %j', method, url, data, result, err); | ||
if (err) { | ||
@@ -73,7 +75,6 @@ if (err.name === 'SyntaxError') { | ||
err.headers = res && res.headers; | ||
err.data = Buffer.isBuffer(result) ? result.toString() : result; | ||
err.data = { resBody: Buffer.isBuffer(result) ? result.toString() : result, requestData: data }; | ||
err.statusCode = res && res.statusCode; | ||
err.method = method; | ||
err.url = url; | ||
err.requestData = data; | ||
return callback(err); | ||
@@ -84,3 +85,3 @@ } | ||
err.name = 'Gitlab' + res.statusCode + 'Error'; | ||
err.data = result; | ||
err.data = { resBody: result, requestData: data }; | ||
err.headers = res.headers; | ||
@@ -90,3 +91,2 @@ err.statusCode = res.statusCode; | ||
err.url = url; | ||
err.requestData = data; | ||
return callback(err); | ||
@@ -93,0 +93,0 @@ } |
{ | ||
"name": "node-gitlab", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "gitlab", | ||
@@ -10,3 +10,4 @@ "main": "index.js", | ||
"dependencies": { | ||
"urllib": "0.3.4" | ||
"urllib": "0.3.4", | ||
"debug": "0.7.x" | ||
}, | ||
@@ -13,0 +14,0 @@ "devDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12574
2
+ Addeddebug@0.7.x
+ Addeddebug@0.7.4(transitive)