@trenskow/pged 4.0.2 → 4.0.3

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/query-builder.js +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trenskow/pged",
3
- "version": "4.0.2",
3
+ "version": "4.0.3",
4
4
  "description": "Just a silly little db management and query builder for PostgreSQL.",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/query-builder.js CHANGED
@@ -280,7 +280,8 @@ module.exports = exports = class QueryBuilder extends CustomPromise {
280
280
  $gte: '>=',
281
281
  $regexp: '~*',
282
282
  $jsonContains: '@>',
283
- $jsonNotContains: '@>'
283
+ $jsonNotContains: '@>',
284
+ $jsonArrayContains: '?'
284
285
  };
285
286
  }
286
287
 
@@ -321,6 +322,7 @@ module.exports = exports = class QueryBuilder extends CustomPromise {
321
322
  case '$regexp':
322
323
  case '$jsonContains':
323
324
  case '$jsonNotContains':
325
+ case 'jsonArrayContains':
324
326
  return this._buildConditions(condition[key], operator, key, true);
325
327
  default:
326
328
  throw new TypeError(`Unknown modifier ${caseit(key)}.`);