@modernpoacher/rules-runner 2.1.449 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.husky/post-commit +1 -1
- package/.husky/post-commit.cjs +8 -0
- package/.husky/post-commit.mjs +5 -0
- package/.husky/pre-commit +2 -1
- package/{types/index.d.ts → index.d.ts} +1 -3
- package/package.json +10 -15
- package/gulpfile.js +0 -17
package/.husky/post-commit
CHANGED
package/.husky/pre-commit
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
declare module '@modernpoacher/rules-runner' {
|
|
2
|
-
class RulesRunner {
|
|
2
|
+
export class RulesRunner {
|
|
3
3
|
constructor (config?: object)
|
|
4
4
|
run (values?: object, decisions?: object): object
|
|
5
5
|
runTests (expectations?: object, values?: object): object
|
|
6
6
|
runTest (expectation?: object): object
|
|
7
7
|
runOutcomes (outcomes?: object, accumulator?: object): object
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
export = RulesRunner
|
|
11
9
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modernpoacher/rules-runner",
|
|
3
|
-
"version": "2.1
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"description": "A business rules engine for Node",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"business rules",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"business rules engine"
|
|
12
12
|
],
|
|
13
13
|
"main": "./index.js",
|
|
14
|
-
"types": "./
|
|
14
|
+
"types": "./index.d.ts",
|
|
15
15
|
"author": "Jonathan Perry for Modern Poacher Limited <modernpoacher@modernpoacher.com>",
|
|
16
16
|
"contributors": [
|
|
17
17
|
{
|
|
@@ -47,36 +47,31 @@
|
|
|
47
47
|
"babel:watch": "npm run babel -- -w",
|
|
48
48
|
"lint": "eslint src test *.js",
|
|
49
49
|
"lint:fix": "npm run lint -- --fix",
|
|
50
|
-
"test": "cross-env NODE_ENV=test mocha test --recursive -r @babel/register"
|
|
51
|
-
"gulp": "gulp --color",
|
|
52
|
-
"pre-commit": "npm run lint && npm test && npm run build && git add lib",
|
|
53
|
-
"post-commit": "cross-env DEBUG=@modernpoacher/hooks,@modernpoacher/hooks:* npm run gulp -- post-commit"
|
|
50
|
+
"test": "cross-env NODE_ENV=test mocha test --recursive -r @babel/register"
|
|
54
51
|
},
|
|
55
52
|
"dependencies": {
|
|
56
53
|
"debug": "^4.3.4",
|
|
57
54
|
"object-path": "^0.11.8"
|
|
58
55
|
},
|
|
59
56
|
"devDependencies": {
|
|
60
|
-
"@babel/cli": "^7.21.
|
|
61
|
-
"@babel/core": "^7.21.
|
|
62
|
-
"@babel/eslint-parser": "^7.21.
|
|
57
|
+
"@babel/cli": "^7.21.5",
|
|
58
|
+
"@babel/core": "^7.21.8",
|
|
59
|
+
"@babel/eslint-parser": "^7.21.8",
|
|
63
60
|
"@babel/plugin-proposal-export-default-from": "^7.18.10",
|
|
64
|
-
"@babel/preset-env": "^7.21.
|
|
61
|
+
"@babel/preset-env": "^7.21.5",
|
|
65
62
|
"@babel/register": "^7.21.0",
|
|
66
|
-
"@modernpoacher/hooks": "^1.0.
|
|
67
|
-
"babel-loader": "^9.1.2",
|
|
63
|
+
"@modernpoacher/hooks": "^1.0.391",
|
|
68
64
|
"babel-plugin-module-resolver": "^5.0.0",
|
|
69
65
|
"chai": "^4.3.7",
|
|
70
66
|
"cross-env": "^7.0.3",
|
|
71
|
-
"eslint": "^8.
|
|
67
|
+
"eslint": "^8.39.0",
|
|
72
68
|
"eslint-config-standard": "^17.0.0",
|
|
73
69
|
"eslint-import-resolver-babel-module": "^5.3.2",
|
|
74
70
|
"eslint-plugin-import": "^2.27.5",
|
|
75
71
|
"eslint-plugin-node": "^11.1.0",
|
|
76
72
|
"eslint-plugin-promise": "^6.1.1",
|
|
77
|
-
"gulp": "^4.0.2",
|
|
78
73
|
"husky": "^8.0.3",
|
|
79
74
|
"mocha": "^10.2.0",
|
|
80
|
-
"rimraf": "^
|
|
75
|
+
"rimraf": "^5.0.0"
|
|
81
76
|
}
|
|
82
77
|
}
|
package/gulpfile.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
require('@babel/register')({
|
|
2
|
-
ignore: [
|
|
3
|
-
/node_modules/
|
|
4
|
-
]
|
|
5
|
-
})
|
|
6
|
-
|
|
7
|
-
const gulp = require('gulp')
|
|
8
|
-
|
|
9
|
-
const {
|
|
10
|
-
default: postCommit
|
|
11
|
-
} = require('@modernpoacher/hooks/lib/post-commit')
|
|
12
|
-
|
|
13
|
-
gulp
|
|
14
|
-
.task('post-commit', postCommit)
|
|
15
|
-
|
|
16
|
-
gulp
|
|
17
|
-
.task('default', gulp.series('post-commit'))
|