node-gitlab
Advanced tools
Comparing version 1.4.0 to 1.5.0
1.5.0 / 2017-01-10 | ||
================== | ||
* feat: Add repository.archive functionality (#29) | ||
* test: Fixed Testing (#26) | ||
1.4.0 / 2016-10-12 | ||
@@ -3,0 +9,0 @@ ================== |
@@ -168,1 +168,16 @@ /**! | ||
/** | ||
* Get the archive for a repo by commit sha. | ||
* | ||
* @param {Object} params | ||
* - {String} id The ID of a project | ||
* - {String} sha The repo sha | ||
* @param {Function} callback | ||
*/ | ||
Repository.prototype.archive = function (params, callback) { | ||
params.type = 'archive'; | ||
params.contentType = 'buffer'; | ||
this.client.request('get', this.path, params, callback); | ||
}; | ||
{ | ||
"name": "node-gitlab", | ||
"version": "1.4.0", | ||
"version": "1.5.0", | ||
"description": "Gitlab API nodejs client.", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "mocha --harmony -R spec -r co-mocha -t 20000 test/*.test.js", | ||
"test-cov": "node --harmony node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- -r co-mocha -t 20000 test/*.test.js", | ||
"test-travis": "node --harmony node_modules/.bin/istanbul cover node_modules/.bin/_mocha --report lcovonly -- -r co-mocha -t 20000 test/*.test.js", | ||
"test": "mocha --harmony -R spec -r co-mocha -t 40000 test/*.test.js", | ||
"test-cov": "node --harmony node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- -r co-mocha -t 40000 test/*.test.js", | ||
"test-travis": "node --harmony node_modules/.bin/istanbul cover node_modules/.bin/_mocha --report lcovonly -- -r co-mocha -t 40000 test/*.test.js", | ||
"jshint": "jshint .", | ||
@@ -27,2 +27,3 @@ "autod": "autod -w --prefix '~'", | ||
"mocha": "*", | ||
"objectid": "^3.2.1", | ||
"pedding": "~1.0.0", | ||
@@ -29,0 +30,0 @@ "should": "~6.0.3" |
Sorry, the diff of this file is not supported yet
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
56268
603
8