Skip to content
Permalink
Browse files

Added bluebird .promisifyAll to Client prototype functions

  • Loading branch information...
chrisswaine committed Apr 13, 2017
1 parent 97d9239 commit 54d0626823016de630b5c74c2ea7bba2554d02a9
Showing with 5 additions and 1 deletion.
  1. +4 −1 lib/solr.js
  2. +1 −0 package.json
@@ -21,7 +21,8 @@ var http = require('http'),
duplexer = require('duplexer'),
request = require('request'),
JSONbig = require('json-bigint'),
versionUtils = require('./utils/version');
versionUtils = require('./utils/version'),
Promise = require('bluebird');

/**
* Expose `createClient()`.
@@ -1001,3 +1002,5 @@ function handleJSONResponse(request, bigint, callback){
});
};
};

Promise.promisifyAll(Client.prototype);
@@ -17,6 +17,7 @@
},
"dependencies": {
"JSONStream": "~1.0.6",
"bluebird": "^3.5.0",
"duplexer": "~0.1.1",
"httperror": "~0.2.3",
"json-bigint": "~0.1.4",

0 comments on commit 54d0626

Please sign in to comment.
You can’t perform that action at this time.