node-gitlab
Version:
Gitlab API nodejs client.
28 lines (23 loc) • 508 B
JavaScript
/**!
* gitlab - lib/thunkify.js
*
* Copyright(c) fengmk2 and other contributors.
* MIT Licensed
*
* Authors:
* fengmk2 <fengmk2@gmail.com> (http://fengmk2.github.com)
*/
;
/**
* Module dependencies.
*/
var thunkify = require('thunkify-wrap');
var properties = require('./properties');
module.exports = function (client) {
thunkify(client, 'request');
for (var key in properties) {
var methods = properties[key];
thunkify(client[key], methods);
}
return client;
};