Skip to content

Commit

Permalink
Merge pull request #26 from nickjoanis/hotfix/configuration_params
Browse files Browse the repository at this point in the history
hotfix - properly evaluating test parameter of configuration since las update including default configs.
  • Loading branch information
gabrielsimpsons authored Jun 1, 2021
2 parents c695d52 + 1cda7c6 commit 7e34fd7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,14 @@ const send = async (data, type, configuration) => {
}
let hostPrefix = prefix;
let filePrefix = prefix;

if (configuration.test !== undefined || configuration.test !== null) {
config.test = configuration.test;
}
if (config.test) {
hostPrefix += 'TEST_';
}

if (type === 'acs' || type === 'txn') {
filePrefix += 'MPI_';
}
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "moneryze",
"version": "1.0.9",
"version": "1.0.10",
"description": "Promise based wrapper for the Moneris API",
"main": "index.js",
"files": [
Expand Down Expand Up @@ -34,4 +34,4 @@
"mocha": "^7.1.1",
"nyc": "^15.0.0"
}
}
}

0 comments on commit 7e34fd7

Please sign in to comment.