@balena/odata-to-abstract-sql
Advanced tools
Comparing version 7.1.0-build-parse-in-as-eq-any-0d9e21b9ac29e0afc2394acdcbf8231464220a73-1 to 7.1.0-build-parse-in-as-eq-any-2fd6cfa1d7d71db2779920f173f709803c0bec65-1
@@ -782,9 +782,6 @@ "use strict"; | ||
case 'in': { | ||
if (!Object.hasOwn(rest[1], 'bind')) { | ||
throw new SyntaxError('IN must have a bind as the second argument'); | ||
} | ||
return [ | ||
'EqualsAny', | ||
'In', | ||
this.Operand(rest[0]), | ||
this.Operand(rest[1]), | ||
...rest[1].map((v) => this.Operand(v)), | ||
]; | ||
@@ -791,0 +788,0 @@ } |
{ | ||
"name": "@balena/odata-to-abstract-sql", | ||
"version": "7.1.0-build-parse-in-as-eq-any-0d9e21b9ac29e0afc2394acdcbf8231464220a73-1", | ||
"version": "7.1.0-build-parse-in-as-eq-any-2fd6cfa1d7d71db2779920f173f709803c0bec65-1", | ||
"description": "A consumer of the OData parser, written in OMeta", | ||
@@ -19,4 +19,4 @@ "type": "commonjs", | ||
"dependencies": { | ||
"@balena/abstract-sql-compiler": "10.2.0-build-compile-any-node-as-operand-a4c9bcb1a3b2e047a77288ab035c89192cdf95ca-3", | ||
"@balena/odata-parser": "4.0.0-build-in-with-single-array-bind-4b97fb54e68b9b2f5e80540a99db81cdf7abbc55-1", | ||
"@balena/abstract-sql-compiler": "10.2.0-build-compile-any-node-as-operand-77c25f0bfe74e1d1b8c5c46dddb5c14658c7144c-1", | ||
"@balena/odata-parser": "4.0.0-build-compile-in-as-eq-any-116c561f994ba6fe2d0f50d7ea599ac8ac04ddad-1", | ||
"@types/lodash": "^4.17.10", | ||
@@ -58,4 +58,4 @@ "@types/memoizee": "^0.4.11", | ||
"versionist": { | ||
"publishedAt": "2025-01-20T17:09:00.148Z" | ||
"publishedAt": "2025-01-21T14:24:39.413Z" | ||
} | ||
} |
@@ -32,2 +32,3 @@ import _ from 'lodash'; | ||
SelectQueryNode, | ||
InNode, | ||
BindNode, | ||
@@ -1175,12 +1176,7 @@ CastNode, | ||
case 'in': { | ||
if (!Object.hasOwn(rest[1], 'bind')) { | ||
throw new SyntaxError( | ||
'IN must have a bind as the second argument', | ||
); | ||
} | ||
return [ | ||
'EqualsAny', | ||
'In', | ||
this.Operand(rest[0]), | ||
this.Operand(rest[1]) as BindNode, | ||
] as EqualsAnyNode; | ||
...rest[1].map((v: any) => this.Operand(v)), | ||
] as InNode; | ||
} | ||
@@ -1187,0 +1183,0 @@ case 'call': { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
797672
7147
+ Added@balena/abstract-sql-compiler@10.2.0-build-compile-any-node-as-operand-77c25f0bfe74e1d1b8c5c46dddb5c14658c7144c-1(transitive)
+ Added@balena/odata-parser@4.0.0-build-compile-in-as-eq-any-116c561f994ba6fe2d0f50d7ea599ac8ac04ddad-1(transitive)
- Removed@balena/abstract-sql-compiler@10.2.0-build-compile-any-node-as-operand-a4c9bcb1a3b2e047a77288ab035c89192cdf95ca-3(transitive)
- Removed@balena/odata-parser@4.0.0-build-in-with-single-array-bind-4b97fb54e68b9b2f5e80540a99db81cdf7abbc55-1(transitive)
Updated@balena/odata-parser@4.0.0-build-compile-in-as-eq-any-116c561f994ba6fe2d0f50d7ea599ac8ac04ddad-1