diff --git a/index.js b/index.js index e69de29..3fc7798 100644 --- a/index.js +++ b/index.js @@ -0,0 +1 @@ +module.exports = require('./src'); diff --git a/package.json b/package.json index c83675b..d8736f4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mtn-momo", - "version": "1.1.0", + "version": "1.0.0", "description": "Node.js wrapper for the MTN Mobile Money API", "main": "index.js", "scripts": { diff --git a/src/user-provisioning.js b/src/user-provisioning.js index b34c4ed..ddb80ff 100644 --- a/src/user-provisioning.js +++ b/src/user-provisioning.js @@ -11,8 +11,9 @@ const defaultContentType = 'application/json'; class UserProvisioningAPI { constructor () { // Ensure there is only ever one instance of this class in the runtime - if (UserProvisioningAPI.singleton) { return UserProvisioningAPI.singleton; } - UserProvisioningAPI.singleton = this; + if (!UserProvisioningAPI.singleton) { + UserProvisioningAPI.singleton = this; + } } /**