ballerina-core 1.0.93 → 1.0.94

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.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "ballerina-core",
3
3
  "author": "Dr. Giuseppe Maggiore",
4
4
  "private": false,
5
- "version": "1.0.93",
5
+ "version": "1.0.94",
6
6
  "main": "main.ts",
7
7
  "scripts": {
8
8
  "prettier": "prettier --write ."
@@ -606,22 +606,22 @@ export const fromAPIRawValue =
606
606
  }
607
607
 
608
608
  if (t.value === "Sum" && t.args.length === 2) {
609
- if (!RawSum.Operations.IsRawSum(raw)) {
610
- return ValueOrErrors.Default.throwOne(
611
- `Sum expected but got ${JSON.stringify(raw)}`,
612
- );
613
- }
609
+ // if (!RawSum.Operations.IsRawSum(raw)) {
610
+ // return ValueOrErrors.Default.throwOne(
611
+ // `Sum expected but got ${JSON.stringify(raw)}`,
612
+ // );
613
+ // }
614
614
 
615
- const result = converters[t.value].fromAPIRawValue(raw);
615
+ // const result = converters[t.value].fromAPIRawValue(raw);
616
616
 
617
- if (raw.Kind === "l") {
617
+ if (raw.IsLeft) {
618
618
  return fromAPIRawValue(
619
619
  t.args[0],
620
620
  types,
621
621
  builtIns,
622
622
  converters,
623
623
  injectedPrimitives,
624
- )(result.value).Then((value) =>
624
+ )(raw.Left).Then((value) =>
625
625
  ValueOrErrors.Default.return(
626
626
  PredicateValue.Default.sum(Sum.Default.left(value)),
627
627
  ),
@@ -634,7 +634,7 @@ export const fromAPIRawValue =
634
634
  builtIns,
635
635
  converters,
636
636
  injectedPrimitives,
637
- )(result.value).Then((value) =>
637
+ )(raw.Right).Then((value) =>
638
638
  ValueOrErrors.Default.return(
639
639
  PredicateValue.Default.sum(Sum.Default.right(value)),
640
640
  ),