@opra/mongodb 1.19.0 → 1.19.2

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.
@@ -87,10 +87,6 @@ function addPrefix(source, prefix) {
87
87
  function prepareFilterAst(ast, negative) {
88
88
  if (!ast)
89
89
  return;
90
- if (ast instanceof common_1.OpraFilter.QualifiedIdentifier ||
91
- ast instanceof common_1.OpraFilter.Literal) {
92
- return ast.value;
93
- }
94
90
  if (ast instanceof common_1.OpraFilter.ArrayExpression) {
95
91
  return ast.items.map(x => prepareFilterAst(x, negative));
96
92
  }
@@ -185,6 +181,10 @@ function prepareFilterAst(ast, negative) {
185
181
  }
186
182
  throw new Error(`Unimplemented ComparisonExpression operation (right side is ${ast.right.kind})`);
187
183
  }
184
+ if (ast instanceof common_1.OpraFilter.QualifiedIdentifier ||
185
+ ast instanceof common_1.OpraFilter.Literal) {
186
+ return ast.value;
187
+ }
188
188
  throw new Error(`${ast.kind} is not implemented yet`);
189
189
  }
190
190
  const wrapNot = (o, negative) => (negative ? { $not: o } : o);
@@ -84,10 +84,6 @@ function addPrefix(source, prefix) {
84
84
  function prepareFilterAst(ast, negative) {
85
85
  if (!ast)
86
86
  return;
87
- if (ast instanceof OpraFilter.QualifiedIdentifier ||
88
- ast instanceof OpraFilter.Literal) {
89
- return ast.value;
90
- }
91
87
  if (ast instanceof OpraFilter.ArrayExpression) {
92
88
  return ast.items.map(x => prepareFilterAst(x, negative));
93
89
  }
@@ -182,6 +178,10 @@ function prepareFilterAst(ast, negative) {
182
178
  }
183
179
  throw new Error(`Unimplemented ComparisonExpression operation (right side is ${ast.right.kind})`);
184
180
  }
181
+ if (ast instanceof OpraFilter.QualifiedIdentifier ||
182
+ ast instanceof OpraFilter.Literal) {
183
+ return ast.value;
184
+ }
185
185
  throw new Error(`${ast.kind} is not implemented yet`);
186
186
  }
187
187
  const wrapNot = (o, negative) => (negative ? { $not: o } : o);
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@opra/mongodb",
3
- "version": "1.19.0",
3
+ "version": "1.19.2",
4
4
  "description": "Opra MongoDB adapter package",
5
5
  "author": "Panates",
6
6
  "license": "MIT",
7
7
  "dependencies": {
8
8
  "@jsopen/objects": "^1.6.3",
9
9
  "tslib": "^2.8.1",
10
- "valgen": "^5.17.1"
10
+ "valgen": "^5.17.2"
11
11
  },
12
12
  "peerDependencies": {
13
- "@opra/common": "^1.19.0",
14
- "@opra/core": "^1.19.0",
15
- "@opra/http": "^1.19.0",
13
+ "@opra/common": "^1.19.2",
14
+ "@opra/core": "^1.19.2",
15
+ "@opra/http": "^1.19.2",
16
16
  "mongodb": "^6.18.0"
17
17
  },
18
18
  "type": "module",