dbgate-filterparser 4.4.4 → 4.6.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.
@@ -190,8 +190,8 @@ const createParser = (filterType) => {
190
190
  null: () => (0, common_1.word)('NULL').map(unaryCondition('isNull')),
191
191
  empty: () => (0, common_1.word)('EMPTY').map(unaryCondition('isEmpty')),
192
192
  notEmpty: r => r.not.then(r.empty).map(unaryCondition('isNotEmpty')),
193
- true: () => (0, common_1.word)('TRUE').map(binaryFixedValueCondition(1)),
194
- false: () => (0, common_1.word)('FALSE').map(binaryFixedValueCondition(0)),
193
+ true: () => parsimmon_1.default.regexp(/true/i).map(binaryFixedValueCondition(1)),
194
+ false: () => parsimmon_1.default.regexp(/false/i).map(binaryFixedValueCondition(0)),
195
195
  trueNum: () => (0, common_1.word)('1').map(binaryFixedValueCondition(1)),
196
196
  falseNum: () => (0, common_1.word)('0').map(binaryFixedValueCondition(0)),
197
197
  this: () => (0, common_1.word)('THIS'),
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.4.4",
2
+ "version": "4.6.0",
3
3
  "name": "dbgate-filterparser",
4
4
  "main": "lib/index.js",
5
5
  "typings": "lib/index.d.ts",
@@ -13,7 +13,7 @@
13
13
  "lib"
14
14
  ],
15
15
  "devDependencies": {
16
- "dbgate-types": "^4.4.4",
16
+ "dbgate-types": "^4.6.0",
17
17
  "@types/jest": "^25.1.4",
18
18
  "@types/node": "^13.7.0",
19
19
  "jest": "^24.9.0",
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "@types/parsimmon": "^1.10.1",
25
- "dbgate-tools": "^4.4.4",
25
+ "dbgate-tools": "^4.6.0",
26
26
  "lodash": "^4.17.21",
27
27
  "moment": "^2.24.0",
28
28
  "parsimmon": "^1.13.0"