We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e36175 commit 73c667eCopy full SHA for 73c667e
lib/index.js
@@ -1,3 +1,5 @@
1
+var Promise = require("bluebird");
2
+
3
module.exports = {
4
Client: require("./client"),
5
Site: require("./site"),
@@ -25,3 +27,10 @@ module.exports = {
25
27
Dlda: require("./dlda"),
26
28
ImportTnChecker: require("./importTnChecker")
29
};
30
31
+for (const property in module.exports) {
32
+ Promise.promisifyAll(module.exports[property]);
33
+ if (module.exports[property].hasOwnProperty("prototype")) {
34
+ Promise.promisifyAll(module.exports[property].prototype);
35
+ }
36
+}
0 commit comments