json-rules-engine-simplified 0.1.16 → 0.2.0

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/lib/checkField.js CHANGED
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = checkField;
7
7
 
8
- var _predicate = require("predicate/dist/predicate");
8
+ var _predicate = require("predicate");
9
9
 
10
10
  var _predicate2 = _interopRequireDefault(_predicate);
11
11
 
package/lib/validation.js CHANGED
@@ -14,7 +14,7 @@ exports.listAllFields = listAllFields;
14
14
  exports.listInvalidFields = listInvalidFields;
15
15
  exports.validateConditionFields = validateConditionFields;
16
16
 
17
- var _predicate = require("predicate/dist/predicate");
17
+ var _predicate = require("predicate");
18
18
 
19
19
  var _predicate2 = _interopRequireDefault(_predicate);
20
20
 
package/package.json CHANGED
@@ -1,101 +1,101 @@
1
- {
2
- "name": "json-rules-engine-simplified",
3
- "version": "0.1.16",
4
- "description": "Simpl JSON rules engine",
5
- "private": false,
6
- "author": "mavarazy@gmail.com",
7
- "scripts": {
8
- "build:lib": "rimraf lib && cross-env NODE_ENV=production babel -d lib/ src/",
9
- "build:dist": "rimraf dist && cross-env NODE_ENV=production webpack --config webpack.config.dist.js --optimize-minimize",
10
- "cs-check": "prettier -l $npm_package_prettierOptions '{src,test}/**/*.js'",
11
- "cs-format": "prettier $npm_package_prettierOptions '{src,test}/**/*.js' --write",
12
- "dist": "npm run build:lib && npm run build:dist",
13
- "lint": "eslint src test",
14
- "precommit": "lint-staged",
15
- "publish-to-npm": "npm run dist && npm publish && npm version patch",
16
- "tdd": "jest --watchAll",
17
- "test": "jest --coverage"
18
- },
19
- "prettierOptions": "--jsx-bracket-same-line --trailing-comma es5 --semi",
20
- "jest": {
21
- "verbose": true,
22
- "collectCoverage": true,
23
- "collectCoverageFrom": [
24
- "src/**/*.{js,jsx}"
25
- ]
26
- },
27
- "lint-staged": {
28
- "{src,test}/**/*.js": [
29
- "npm run lint",
30
- "npm run cs-format",
31
- "git add"
32
- ]
33
- },
34
- "main": "lib/index.js",
35
- "files": [
36
- "dist",
37
- "lib"
38
- ],
39
- "engineStrict": false,
40
- "engines": {
41
- "npm": "^2.14.7",
42
- "node": ">=6"
43
- },
44
- "dependencies": {
45
- "deep-equal": "1.0.1",
46
- "predicate": "1.2.0",
47
- "selectn": "1.1.2"
48
- },
49
- "devDependencies": {
50
- "atob": "^2.0.3",
51
- "babel-cli": "^6.26.0",
52
- "babel-core": "^6.26.0",
53
- "babel-eslint": "^7.2.3",
54
- "babel-jest": "^20.0.3",
55
- "babel-loader": "^7.1.2",
56
- "babel-plugin-transform-class-properties": "^6.24.1",
57
- "babel-polyfill": "^6.26.0",
58
- "babel-preset-env": "^1.6.0",
59
- "babel-preset-es2015": "^6.24.1",
60
- "babel-preset-react": "^6.24.1",
61
- "babel-register": "^6.26.0",
62
- "codemirror": "^5.29.0",
63
- "coveralls": "^2.13.1",
64
- "cross-env": "^5.0.5",
65
- "css-loader": "^0.28.7",
66
- "eslint": "^4.6.1",
67
- "eslint-plugin-jest": "^20.0.3",
68
- "eslint-plugin-react": "^7.3.0",
69
- "eslint-plugin-standard": "^3.0.1",
70
- "exit-hook": "^1.1.1",
71
- "express": "^4.15.4",
72
- "extract-text-webpack-plugin": "^3.0.0",
73
- "gh-pages": "^1.0.0",
74
- "has-flag": "^2.0.0",
75
- "html": "1.0.0",
76
- "husky": "^0.14.3",
77
- "jest": "^20.0.4",
78
- "jsdom": "^11.2.0",
79
- "lint-staged": "^4.1.0",
80
- "prettier": "^1.6.1",
81
- "regenerator-runtime": "^0.11.0",
82
- "rimraf": "^2.6.1",
83
- "sinon": "^3.2.1",
84
- "style-loader": "^0.18.2",
85
- "webpack": "^3.5.5"
86
- },
87
- "directories": {
88
- "test": "test"
89
- },
90
- "repository": {
91
- "type": "git",
92
- "url": "git+https://github.com/RxNT/json-rules-engine-simplified.git"
93
- },
94
- "keywords": [
95
- "rules",
96
- "engine",
97
- "rules engine"
98
- ],
99
- "license": "Apache-2.0",
100
- "homepage": "https://github.com/RxNT/json-rules-engine-simplified#readme"
101
- }
1
+ {
2
+ "name": "json-rules-engine-simplified",
3
+ "version": "0.2.0",
4
+ "description": "Simpl JSON rules engine",
5
+ "private": false,
6
+ "author": "mavarazy@gmail.com",
7
+ "scripts": {
8
+ "build:lib": "rimraf lib && cross-env NODE_ENV=production babel -d lib/ src/",
9
+ "build:dist": "rimraf dist && cross-env NODE_ENV=production webpack --config webpack.config.dist.js --optimize-minimize",
10
+ "cs-check": "prettier -l $npm_package_prettierOptions '{src,test}/**/*.js'",
11
+ "cs-format": "prettier $npm_package_prettierOptions '{src,test}/**/*.js' --write",
12
+ "dist": "npm run build:lib && npm run build:dist",
13
+ "lint": "eslint src test",
14
+ "precommit": "lint-staged",
15
+ "publish-to-npm": "npm run dist && npm publish && npm version patch",
16
+ "tdd": "jest --watchAll",
17
+ "test": "jest --coverage"
18
+ },
19
+ "prettierOptions": "--jsx-bracket-same-line --trailing-comma es5 --semi",
20
+ "jest": {
21
+ "verbose": true,
22
+ "collectCoverage": true,
23
+ "collectCoverageFrom": [
24
+ "src/**/*.{js,jsx}"
25
+ ]
26
+ },
27
+ "lint-staged": {
28
+ "{src,test}/**/*.js": [
29
+ "npm run lint",
30
+ "npm run cs-format",
31
+ "git add"
32
+ ]
33
+ },
34
+ "main": "lib/index.js",
35
+ "files": [
36
+ "dist",
37
+ "lib"
38
+ ],
39
+ "engineStrict": false,
40
+ "engines": {
41
+ "node": ">=20.0.0",
42
+ "npm": ">=10.0.0"
43
+ },
44
+ "dependencies": {
45
+ "deep-equal": "1.0.1",
46
+ "predicate": "1.2.0",
47
+ "selectn": "1.1.2"
48
+ },
49
+ "devDependencies": {
50
+ "atob": "^2.0.3",
51
+ "babel-cli": "^6.26.0",
52
+ "babel-core": "^6.26.0",
53
+ "babel-eslint": "^7.2.3",
54
+ "babel-jest": "^20.0.3",
55
+ "babel-loader": "^7.1.2",
56
+ "babel-plugin-transform-class-properties": "^6.24.1",
57
+ "babel-polyfill": "^6.26.0",
58
+ "babel-preset-env": "^1.6.0",
59
+ "babel-preset-es2015": "^6.24.1",
60
+ "babel-preset-react": "^6.24.1",
61
+ "babel-register": "^6.26.0",
62
+ "codemirror": "^5.29.0",
63
+ "coveralls": "^2.13.1",
64
+ "cross-env": "^5.0.5",
65
+ "css-loader": "^0.28.7",
66
+ "eslint": "^4.6.1",
67
+ "eslint-plugin-jest": "^20.0.3",
68
+ "eslint-plugin-react": "^7.3.0",
69
+ "eslint-plugin-standard": "^3.0.1",
70
+ "exit-hook": "^1.1.1",
71
+ "express": "^4.15.4",
72
+ "extract-text-webpack-plugin": "^3.0.0",
73
+ "gh-pages": "^1.0.0",
74
+ "has-flag": "^2.0.0",
75
+ "html": "1.0.0",
76
+ "husky": "^0.14.3",
77
+ "jest": "^20.0.4",
78
+ "jsdom": "^11.2.0",
79
+ "lint-staged": "^4.1.0",
80
+ "prettier": "^1.6.1",
81
+ "regenerator-runtime": "^0.11.0",
82
+ "rimraf": "^2.6.1",
83
+ "sinon": "^3.2.1",
84
+ "style-loader": "^0.18.2",
85
+ "webpack": "^3.5.5"
86
+ },
87
+ "directories": {
88
+ "test": "test"
89
+ },
90
+ "repository": {
91
+ "type": "git",
92
+ "url": "git+https://github.com/RxNT/json-rules-engine-simplified.git"
93
+ },
94
+ "keywords": [
95
+ "rules",
96
+ "engine",
97
+ "rules engine"
98
+ ],
99
+ "license": "Apache-2.0",
100
+ "homepage": "https://github.com/RxNT/json-rules-engine-simplified#readme"
101
+ }
package/CHANGELOG.md DELETED
@@ -1,152 +0,0 @@
1
- <a name="0.1.16"></a>
2
- ## <small>0.1.16 (2018-02-16)</small>
3
-
4
- * #16 ([c271482](https://github.com/RxNT/json-rules-engine-simplified/commit/c271482)), closes [#16](https://github.com/RxNT/json-rules-engine-simplified/issues/16)
5
- * 0.1.15 ([5bbb244](https://github.com/RxNT/json-rules-engine-simplified/commit/5bbb244))
6
- * 0.1.16 ([9febb8e](https://github.com/RxNT/json-rules-engine-simplified/commit/9febb8e))
7
- * clean up ([0855e59](https://github.com/RxNT/json-rules-engine-simplified/commit/0855e59))
8
- * fix #12 ([cee44a7](https://github.com/RxNT/json-rules-engine-simplified/commit/cee44a7)), closes [#12](https://github.com/RxNT/json-rules-engine-simplified/issues/12)
9
- * fix #20 ([babbd55](https://github.com/RxNT/json-rules-engine-simplified/commit/babbd55)), closes [#20](https://github.com/RxNT/json-rules-engine-simplified/issues/20)
10
- * Fixes #18 ([5f2b777](https://github.com/RxNT/json-rules-engine-simplified/commit/5f2b777)), closes [#18](https://github.com/RxNT/json-rules-engine-simplified/issues/18)
11
-
12
-
13
-
14
- <a name="0.1.14"></a>
15
- ## <small>0.1.14 (2017-10-30)</small>
16
-
17
- * #15 missed validation update ([bb51457](https://github.com/RxNT/json-rules-engine-simplified/commit/bb51457)), closes [#15](https://github.com/RxNT/json-rules-engine-simplified/issues/15)
18
- * 0.1.14 ([1222800](https://github.com/RxNT/json-rules-engine-simplified/commit/1222800))
19
-
20
-
21
-
22
- <a name="0.1.13"></a>
23
- ## <small>0.1.13 (2017-10-30)</small>
24
-
25
- * 0.1.13 ([055c17e](https://github.com/RxNT/json-rules-engine-simplified/commit/055c17e))
26
- * fix #15 ([4501a6d](https://github.com/RxNT/json-rules-engine-simplified/commit/4501a6d)), closes [#15](https://github.com/RxNT/json-rules-engine-simplified/issues/15)
27
-
28
-
29
-
30
- <a name="0.1.12"></a>
31
- ## <small>0.1.12 (2017-09-11)</small>
32
-
33
- * #14 ([0b25980](https://github.com/RxNT/json-rules-engine-simplified/commit/0b25980)), closes [#14](https://github.com/RxNT/json-rules-engine-simplified/issues/14)
34
- * #14 ([cf6ffe0](https://github.com/RxNT/json-rules-engine-simplified/commit/cf6ffe0)), closes [#14](https://github.com/RxNT/json-rules-engine-simplified/issues/14)
35
- * 0.1.12 ([fec8e60](https://github.com/RxNT/json-rules-engine-simplified/commit/fec8e60))
36
- * fix #14 ([68a4438](https://github.com/RxNT/json-rules-engine-simplified/commit/68a4438)), closes [#14](https://github.com/RxNT/json-rules-engine-simplified/issues/14)
37
-
38
-
39
-
40
- <a name="0.1.11"></a>
41
- ## <small>0.1.11 (2017-09-04)</small>
42
-
43
- * #11 some more tests ([b026cf0](https://github.com/RxNT/json-rules-engine-simplified/commit/b026cf0)), closes [#11](https://github.com/RxNT/json-rules-engine-simplified/issues/11)
44
- * #11 some tests for failing travis ([40861ec](https://github.com/RxNT/json-rules-engine-simplified/commit/40861ec)), closes [#11](https://github.com/RxNT/json-rules-engine-simplified/issues/11)
45
- * 0.1.11 ([69cb069](https://github.com/RxNT/json-rules-engine-simplified/commit/69cb069))
46
- * fix #13 ([f561fe0](https://github.com/RxNT/json-rules-engine-simplified/commit/f561fe0)), closes [#13](https://github.com/RxNT/json-rules-engine-simplified/issues/13)
47
-
48
-
49
-
50
- <a name="0.1.10"></a>
51
- ## <small>0.1.10 (2017-08-10)</small>
52
-
53
- * #8 ([b48735a](https://github.com/RxNT/json-rules-engine-simplified/commit/b48735a)), closes [#8](https://github.com/RxNT/json-rules-engine-simplified/issues/8)
54
- * 0.1.10 ([09225f6](https://github.com/RxNT/json-rules-engine-simplified/commit/09225f6))
55
- * fix #8 ([cd78db5](https://github.com/RxNT/json-rules-engine-simplified/commit/cd78db5)), closes [#8](https://github.com/RxNT/json-rules-engine-simplified/issues/8)
56
- * Fixing sequence of actions during release ([c0fb150](https://github.com/RxNT/json-rules-engine-simplified/commit/c0fb150))
57
-
58
-
59
-
60
- <a name="0.1.8"></a>
61
- ## <small>0.1.8 (2017-08-10)</small>
62
-
63
- * 0.1.8 ([3e4cf34](https://github.com/RxNT/json-rules-engine-simplified/commit/3e4cf34))
64
- * fix #10 ([a9acaa3](https://github.com/RxNT/json-rules-engine-simplified/commit/a9acaa3)), closes [#10](https://github.com/RxNT/json-rules-engine-simplified/issues/10)
65
- * toError is none blocking in production ([3d0c582](https://github.com/RxNT/json-rules-engine-simplified/commit/3d0c582))
66
- * toError is none blocking in production ([edff07e](https://github.com/RxNT/json-rules-engine-simplified/commit/edff07e))
67
-
68
-
69
-
70
- <a name="0.1.7"></a>
71
- ## <small>0.1.7 (2017-08-09)</small>
72
-
73
- * #5 ([e56ea95](https://github.com/RxNT/json-rules-engine-simplified/commit/e56ea95)), closes [#5](https://github.com/RxNT/json-rules-engine-simplified/issues/5)
74
- * #5 Updating the fix ([c4514d0](https://github.com/RxNT/json-rules-engine-simplified/commit/c4514d0)), closes [#5](https://github.com/RxNT/json-rules-engine-simplified/issues/5)
75
- * 0.1.7 ([5018d35](https://github.com/RxNT/json-rules-engine-simplified/commit/5018d35))
76
-
77
-
78
-
79
- <a name="0.1.6"></a>
80
- ## <small>0.1.6 (2017-08-09)</small>
81
-
82
- * 0.1.6 ([15850bb](https://github.com/RxNT/json-rules-engine-simplified/commit/15850bb))
83
- * Fix, predicates run against condition arrays and the elements ([96aa6b2](https://github.com/RxNT/json-rules-engine-simplified/commit/96aa6b2))
84
- * fixing coveralls configuration ([029798e](https://github.com/RxNT/json-rules-engine-simplified/commit/029798e))
85
- * Update checkField.js ([917ae88](https://github.com/RxNT/json-rules-engine-simplified/commit/917ae88))
86
- * Want to test empty object ([10a8209](https://github.com/RxNT/json-rules-engine-simplified/commit/10a8209))
87
-
88
-
89
-
90
- <a name="0.1.5"></a>
91
- ## <small>0.1.5 (2017-08-01)</small>
92
-
93
- * #3 Adding appropriate error management ([235ab56](https://github.com/RxNT/json-rules-engine-simplified/commit/235ab56)), closes [#3](https://github.com/RxNT/json-rules-engine-simplified/issues/3)
94
- * #4 ([b6ac613](https://github.com/RxNT/json-rules-engine-simplified/commit/b6ac613)), closes [#4](https://github.com/RxNT/json-rules-engine-simplified/issues/4)
95
- * #4 ([b4164d2](https://github.com/RxNT/json-rules-engine-simplified/commit/b4164d2)), closes [#4](https://github.com/RxNT/json-rules-engine-simplified/issues/4)
96
- * #4 updating configs ([2b139bf](https://github.com/RxNT/json-rules-engine-simplified/commit/2b139bf)), closes [#4](https://github.com/RxNT/json-rules-engine-simplified/issues/4)
97
- * #6 Updating documentation ([6bab1e4](https://github.com/RxNT/json-rules-engine-simplified/commit/6bab1e4)), closes [#6](https://github.com/RxNT/json-rules-engine-simplified/issues/6)
98
- * 0.1.5 ([679130f](https://github.com/RxNT/json-rules-engine-simplified/commit/679130f))
99
- * Adding travis configurations ([856b5ee](https://github.com/RxNT/json-rules-engine-simplified/commit/856b5ee))
100
- * fix #4 ([7be1d2e](https://github.com/RxNT/json-rules-engine-simplified/commit/7be1d2e)), closes [#4](https://github.com/RxNT/json-rules-engine-simplified/issues/4)
101
- * fix #6 ([87a4d89](https://github.com/RxNT/json-rules-engine-simplified/commit/87a4d89)), closes [#6](https://github.com/RxNT/json-rules-engine-simplified/issues/6)
102
- * fix #7 ([02cea19](https://github.com/RxNT/json-rules-engine-simplified/commit/02cea19)), closes [#7](https://github.com/RxNT/json-rules-engine-simplified/issues/7)
103
- * some more tests ([8e33ed2](https://github.com/RxNT/json-rules-engine-simplified/commit/8e33ed2))
104
-
105
-
106
-
107
- <a name="0.1.4"></a>
108
- ## <small>0.1.4 (2017-07-12)</small>
109
-
110
- * #1 ([0c7cdf1](https://github.com/RxNT/json-rules-engine-simplified/commit/0c7cdf1)), closes [#1](https://github.com/RxNT/json-rules-engine-simplified/issues/1)
111
- * 0.1.4 ([079fc2a](https://github.com/RxNT/json-rules-engine-simplified/commit/079fc2a))
112
- * Aligning merge with lint ([04b7f96](https://github.com/RxNT/json-rules-engine-simplified/commit/04b7f96))
113
- * fix #1 ([4df43e8](https://github.com/RxNT/json-rules-engine-simplified/commit/4df43e8)), closes [#1](https://github.com/RxNT/json-rules-engine-simplified/issues/1)
114
- * Updating README ([f8c518a](https://github.com/RxNT/json-rules-engine-simplified/commit/f8c518a))
115
-
116
-
117
-
118
- <a name="0.1.3"></a>
119
- ## <small>0.1.3 (2017-07-10)</small>
120
-
121
- * 0.1.3 ([0bf731f](https://github.com/RxNT/json-rules-engine-simplified/commit/0bf731f))
122
- * Added the test scenarios for nested array ([fce6748](https://github.com/RxNT/json-rules-engine-simplified/commit/fce6748))
123
- * Fixing `not` operation ([7685be4](https://github.com/RxNT/json-rules-engine-simplified/commit/7685be4))
124
- * Fixing example with nested array ([3555909](https://github.com/RxNT/json-rules-engine-simplified/commit/3555909))
125
- * Fixing validation ([6449c59](https://github.com/RxNT/json-rules-engine-simplified/commit/6449c59))
126
- * Styling feedback ([0ac40a4](https://github.com/RxNT/json-rules-engine-simplified/commit/0ac40a4))
127
- * Updating documentation ([0ca291a](https://github.com/RxNT/json-rules-engine-simplified/commit/0ca291a))
128
-
129
-
130
-
131
- <a name="0.1.2"></a>
132
- ## <small>0.1.2 (2017-07-08)</small>
133
-
134
- * 0.1.2 ([ab42f48](https://github.com/RxNT/json-rules-engine-simplified/commit/ab42f48))
135
- * Updating publish to npm script ([78cfedc](https://github.com/RxNT/json-rules-engine-simplified/commit/78cfedc))
136
-
137
-
138
-
139
- <a name="0.1.1"></a>
140
- ## <small>0.1.1 (2017-07-08)</small>
141
-
142
- * 0.1.1 ([6cfa1d0](https://github.com/RxNT/json-rules-engine-simplified/commit/6cfa1d0))
143
- * abstracting engine ([9bba768](https://github.com/RxNT/json-rules-engine-simplified/commit/9bba768))
144
- * bumping coverage to 100% ([602ca07](https://github.com/RxNT/json-rules-engine-simplified/commit/602ca07))
145
- * Cleaning up dependencies ([a3e61df](https://github.com/RxNT/json-rules-engine-simplified/commit/a3e61df))
146
- * Disable validation of nested structures ([058ce14](https://github.com/RxNT/json-rules-engine-simplified/commit/058ce14))
147
- * Initial commit ([459d691](https://github.com/RxNT/json-rules-engine-simplified/commit/459d691))
148
- * Merging from conditionals project ([245c29c](https://github.com/RxNT/json-rules-engine-simplified/commit/245c29c))
149
- * updating validation ([7344f44](https://github.com/RxNT/json-rules-engine-simplified/commit/7344f44))
150
-
151
-
152
-