Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Cache Hamm committed Jun 5, 2021
2 parents 2a80411 + 90272d6 commit 2f93213
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
node-version: [10.x, 12.x, 14.x]
node-version: [12.x, 14.x]

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 2 additions & 0 deletions examples/09-rule-results.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ async function start () {
return `was not an ${condition.fact}`
case 'greaterThanInclusive':
return `${condition.fact} of ${condition.factResult} was too low`
default:
return ''
}
}).join(' and ')
console.log(`${message} ${detail}`.red)
Expand Down
2 changes: 1 addition & 1 deletion examples/support/account-api-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const accountData = {
*/
module.exports = {
getAccountInformation: (accountId) => {
var message = 'loading account information for "' + accountId + '"'
const message = 'loading account information for "' + accountId + '"'
console.log(message.dim)
return new Promise((resolve, reject) => {
setImmediate(() => {
Expand Down
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,29 +64,29 @@
"babel-cli": "6.26.0",
"babel-core": "6.26.3",
"babel-eslint": "10.1.0",
"babel-loader": "8.1.0",
"babel-loader": "8.2.2",
"babel-polyfill": "6.26.0",
"babel-preset-es2015": "~6.24.1",
"babel-preset-stage-0": "~6.24.1",
"babel-register": "6.26.0",
"chai": "^4.2.0",
"chai": "^4.3.4",
"chai-as-promised": "^7.1.1",
"colors": "~1.4.0",
"dirty-chai": "2.0.1",
"lodash": "4.17.20",
"mocha": "^8.1.3",
"lodash": "4.17.21",
"mocha": "^8.4.0",
"perfy": "^1.1.5",
"sinon": "^9.0.3",
"sinon-chai": "^3.5.0",
"snazzy": "^8.0.0",
"standard": "^14.3.4",
"tsd": "^0.13.1"
"sinon": "^11.1.1",
"sinon-chai": "^3.7.0",
"snazzy": "^9.0.0",
"standard": "^16.0.3",
"tsd": "^0.17.0"
},
"dependencies": {
"clone": "^2.1.2",
"eventemitter2": "^6.4.3",
"hash-it": "^4.0.5",
"jsonpath-plus": "^4.0.0",
"eventemitter2": "^6.4.4",
"hash-it": "^5.0.0",
"jsonpath-plus": "^5.0.7",
"lodash.isobjectlike": "^4.0.0"
}
}
2 changes: 1 addition & 1 deletion src/engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ class Engine extends EventEmitter {
return Promise.all(ruleArray.map((rule) => {
if (this.status !== RUNNING) {
debug(`engine::run status:${this.status}; skipping remaining rules`)
return
return Promise.resolve()
}
return rule.evaluate(almanac).then((ruleResult) => {
debug(`engine::run ruleResult:${ruleResult.result}`)
Expand Down

0 comments on commit 2f93213

Please sign in to comment.