@fibery/expression-utils 17.0.5 → 17.0.6

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.
@@ -53,7 +53,7 @@ const getCompareOperatorForDateTime = (id, title, operator, compareByStartInterv
53
53
  },
54
54
  customConvertToWhereExpression: (expression, value, getNextParamName) => {
55
55
  const dateTimePlaceholders = typeof value === "string" ? dateToDateTimeIntervalLookup[value] : void 0;
56
- let relativeDateInfo = null;
56
+ let relativeDateInfo;
57
57
  if (dateTimePlaceholders) {
58
58
  const { start, end } = dateTimePlaceholders;
59
59
  const intervalParamName = compareByStartInterval ? start : end;
@@ -972,7 +972,7 @@ const operatorDateTimeIs = {
972
972
  },
973
973
  customConvertToWhereExpression: (expression, value, getNextParamName) => {
974
974
  const dateTimePlaceholders = typeof value === "string" ? dateToDateTimeIntervalLookup[value] : void 0;
975
- let relativeDateInfo = null;
975
+ let relativeDateInfo;
976
976
  if (dateTimePlaceholders) {
977
977
  const { start, end } = dateTimePlaceholders;
978
978
  return {
package/lib/visitors.js CHANGED
@@ -244,10 +244,10 @@ const UNKNOWN_EXPRESSION_TYPE = "unknown";
244
244
  const getExpressionTypeInternal = ({ expression, typeObject, functionsMeta = {}, onFieldNotFound, returnRefTypeInsteadOfId }) => {
245
245
  let result = null;
246
246
  createExpressionVisitor({
247
- visitVariableExpression: function() {
247
+ visitVariableExpression() {
248
248
  result = UNKNOWN_EXPRESSION_TYPE;
249
249
  },
250
- visitFunctionCallExpression: function([fnName, ...args]) {
250
+ visitFunctionCallExpression([fnName, ...args]) {
251
251
  const fnMeta = functionsMeta[fnName];
252
252
  if (!fnMeta) throw new Error(`Function meta for "${fnName}" was not provided`);
253
253
  const argTypes = args.map((arg) => getExpressionTypeInternal({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fibery/expression-utils",
3
- "version": "17.0.5",
3
+ "version": "17.0.6",
4
4
  "description": "utils for working with fibery api expressions",
5
5
  "license": "UNLICENSED",
6
6
  "files": [
@@ -25,12 +25,12 @@
25
25
  }
26
26
  },
27
27
  "dependencies": {
28
- "@fibery/helpers": "7.0.0",
28
+ "@fibery/helpers": "7.1.0",
29
29
  "lodash": "4.18.1",
30
30
  "moment": "2.31.0",
31
31
  "uuid": "11.1.0"
32
32
  },
33
33
  "peerDependencies": {
34
- "@fibery/schema": "13.1.5"
34
+ "@fibery/schema": "13.1.6"
35
35
  }
36
36
  }