@fibery/expression-utils 9.0.4 → 9.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.
@@ -842,7 +842,7 @@ const getExpressionTypeInternal = ({
842
842
  //we need this trick to support 'returnRefTypeInsteadOfId' behavior for q/if.
843
843
  result = argTypes[1];
844
844
  } else {
845
- const overload = fnMeta.overloads.find(o => o["arg-types"].every((argType, index) => argTypes[index] === UNKNOWN_EXPRESSION_TYPE || argTypes[index] === argType));
845
+ const overload = fnMeta.overloads.find(o => o["arg-types"].every((argType, index) => argTypes[index] === UNKNOWN_EXPRESSION_TYPE || argTypes[index] === argType || ["fibery/email", "fibery/url", "fibery/emoji", "fibery/color"].includes(argTypes[index]) && argType === "fibery/text"));
846
846
  if (!overload) {
847
847
  throw new Error(`No overload with args ${argTypes.join(",")} found for "${fnName}" in meta`);
848
848
  }
package/lib/visitors.js CHANGED
@@ -577,7 +577,7 @@ const getExpressionTypeInternal = ({
577
577
  //we need this trick to support 'returnRefTypeInsteadOfId' behavior for q/if.
578
578
  result = argTypes[1];
579
579
  } else {
580
- const overload = fnMeta.overloads.find(o => o["arg-types"].every((argType, index) => argTypes[index] === UNKNOWN_EXPRESSION_TYPE || argTypes[index] === argType));
580
+ const overload = fnMeta.overloads.find(o => o["arg-types"].every((argType, index) => argTypes[index] === UNKNOWN_EXPRESSION_TYPE || argTypes[index] === argType || ["fibery/email", "fibery/url", "fibery/emoji", "fibery/color"].includes(argTypes[index]) && argType === "fibery/text"));
581
581
  if (!overload) {
582
582
  throw new Error(`No overload with args ${argTypes.join(",")} found for "${fnName}" in meta`);
583
583
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fibery/expression-utils",
3
- "version": "9.0.4",
3
+ "version": "9.0.6",
4
4
  "description": "utils for working with fibery api expressions",
5
5
  "exports": {
6
6
  ".": "./lib/expression-utils.js",
@@ -34,11 +34,11 @@
34
34
  "jest": "27.5.1",
35
35
  "jest-junit": "13.0.0",
36
36
  "microbundle": "0.15.1",
37
- "@fibery/babel-preset": "7.4.0",
38
- "@fibery/eslint-config": "8.6.0"
37
+ "@fibery/eslint-config": "8.6.0",
38
+ "@fibery/babel-preset": "7.4.0"
39
39
  },
40
40
  "peerDependencies": {
41
- "@fibery/schema": "10.2.1"
41
+ "@fibery/schema": "10.2.2"
42
42
  },
43
43
  "jest": {
44
44
  "testEnvironment": "node",
package/index.js DELETED
@@ -1,6 +0,0 @@
1
- import * as paramsPlaceholders from "./paramsPlaceholders";
2
- import * as utils from "./utils";
3
- import * as visitors from "./visitors";
4
- import * as contextVariables from "./contextVariables";
5
-
6
- export {utils, visitors, paramsPlaceholders, contextVariables};