Skip to content

Commit

Permalink
[fix] apply suggestions from gitroll (#16)
Browse files Browse the repository at this point in the history
* Update package name

* Update package name

* [fix] apply suggestions by gitroll (#15)
  • Loading branch information
glennfaison authored Jul 20, 2024
1 parent 6052c81 commit 4ada924
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('./src');
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
5 changes: 3 additions & 2 deletions src/user-provisioning.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

/**
Expand Down

0 comments on commit 4ada924

Please sign in to comment.