@balena/odata-to-abstract-sql
Advanced tools
Comparing version 7.1.0-build-parse-in-as-eq-any-3e4542fbad6f9c84649c81d449079bb66218d48f-1 to 7.1.0-build-parse-in-as-eq-any-6b7559a8fc632e7614f4a1959546a3cbbf80c25f-1
import memoize from 'memoizee'; | ||
import type { AbstractSqlQuery, AbstractSqlModel, AbstractSqlTable, DurationNode, SelectNode, FromNode, WhereNode, OrderByNode, LimitNode, OffsetNode, NumberTypeNodes, FieldsNode, ValuesNode, ReferencedFieldNode, AliasNode, BooleanTypeNodes, SelectQueryNode, BindNode, TableNode, Definition as ModernDefinition, ResourceNode, UnionQueryNode, FromTypeNodes, FieldNode, CountNode, AddNode, InsertQueryNode, DeleteQueryNode, UpdateQueryNode, DurationTypeNodes, SubtractNode, MultiplyNode, DivideNode, NullNode, TextTypeNodes, AnyTypeNodes, StrictDateTypeNodes, EqualsAnyNode } from '@balena/abstract-sql-compiler'; | ||
import type { AbstractSqlQuery, AbstractSqlModel, AbstractSqlTable, DurationNode, SelectNode, FromNode, WhereNode, OrderByNode, LimitNode, OffsetNode, NumberTypeNodes, FieldsNode, ValuesNode, ReferencedFieldNode, AliasNode, BooleanTypeNodes, SelectQueryNode, BindNode, TableNode, Definition as ModernDefinition, ResourceNode, UnionQueryNode, FromTypeNodes, FieldNode, CountNode, AddNode, InsertQueryNode, DeleteQueryNode, UpdateQueryNode, DurationTypeNodes, SubtractNode, MultiplyNode, DivideNode, NullNode, TextTypeNodes, AnyTypeNodes, StrictDateTypeNodes } from '@balena/abstract-sql-compiler'; | ||
import type { ODataBinds, ODataQuery, SupportedMethod, ExpandPropertyPath, ResourceOptions, OrderByOption, OrderByPropertyPath, FilterOption, BindReference } from '@balena/odata-parser'; | ||
@@ -95,3 +95,2 @@ export type { ODataBinds, ODataQuery, SupportedMethod }; | ||
Operand(match: any): BindNode | NullNode | BooleanTypeNodes | NumberTypeNodes | TextTypeNodes | StrictDateTypeNodes | DurationTypeNodes; | ||
EqualsAny(match: any): EqualsAnyNode | undefined; | ||
Math(match: any): AddNode | SubtractNode | MultiplyNode | DivideNode | undefined; | ||
@@ -98,0 +97,0 @@ Lambda(resourceName: string, lambda: any): BooleanTypeNodes; |
@@ -848,3 +848,2 @@ "use strict"; | ||
this.Math, | ||
this.EqualsAny, | ||
]) { | ||
@@ -858,15 +857,2 @@ const result = matcher.call(this, match, true); | ||
} | ||
EqualsAny(match) { | ||
if (match[0] !== 'eqany') { | ||
return; | ||
} | ||
if (match[1][0] !== 'Bind') { | ||
throw new SyntaxError('Equals any must have a bind as the second argument'); | ||
} | ||
return [ | ||
'EqualsAny', | ||
this.Operand(match[0]), | ||
this.Operand(match[1]), | ||
]; | ||
} | ||
Math(match) { | ||
@@ -873,0 +859,0 @@ const [type, ...rest] = match; |
{ | ||
"name": "@balena/odata-to-abstract-sql", | ||
"version": "7.1.0-build-parse-in-as-eq-any-3e4542fbad6f9c84649c81d449079bb66218d48f-1", | ||
"version": "7.1.0-build-parse-in-as-eq-any-6b7559a8fc632e7614f4a1959546a3cbbf80c25f-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-77c25f0bfe74e1d1b8c5c46dddb5c14658c7144c-1", | ||
"@balena/odata-parser": "4.0.0-build-compile-in-as-eq-any-920795378e7f3a4c819d178be879570f48ebc3cb-1", | ||
"@balena/abstract-sql-compiler": "^10.2.0", | ||
"@balena/odata-parser": "4.1.0-build-bind-null-be4c53827082b1917a7de0174635d2c91cefb64e-1", | ||
"@types/lodash": "^4.17.10", | ||
@@ -58,4 +58,4 @@ "@types/memoizee": "^0.4.11", | ||
"versionist": { | ||
"publishedAt": "2025-01-20T20:24:13.324Z" | ||
"publishedAt": "2025-02-04T15:36:37.086Z" | ||
} | ||
} |
@@ -1263,3 +1263,2 @@ import _ from 'lodash'; | ||
this.Math, | ||
this.EqualsAny, | ||
]) { | ||
@@ -1284,18 +1283,2 @@ const result = matcher.call< | ||
} | ||
EqualsAny(match: any): EqualsAnyNode | undefined { | ||
if (match[0] !== 'eqany') { | ||
return; | ||
} | ||
if (match[1][0] !== 'Bind') { | ||
throw new SyntaxError( | ||
'Equals any must have a bind as the second argument', | ||
); | ||
} | ||
return [ | ||
'EqualsAny', | ||
this.Operand(match[0]), | ||
this.Operand(match[1]) as BindNode, | ||
]; | ||
} | ||
Math( | ||
@@ -1302,0 +1285,0 @@ match: any, |
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
1022469
7116
+ Added@balena/abstract-sql-compiler@10.2.1(transitive)
+ Added@balena/odata-parser@4.1.0-build-bind-null-be4c53827082b1917a7de0174635d2c91cefb64e-1(transitive)
- Removed@balena/abstract-sql-compiler@10.2.0-build-compile-any-node-as-operand-77c25f0bfe74e1d1b8c5c46dddb5c14658c7144c-1(transitive)
- Removed@balena/odata-parser@4.0.0-build-compile-in-as-eq-any-920795378e7f3a4c819d178be879570f48ebc3cb-1(transitive)
Updated@balena/odata-parser@4.1.0-build-bind-null-be4c53827082b1917a7de0174635d2c91cefb64e-1