ballerina-core 1.0.98 → 1.0.101
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
package/src/async/state.ts
CHANGED
|
@@ -120,7 +120,7 @@ export const AsyncState = {
|
|
|
120
120
|
})),
|
|
121
121
|
toReloading: <a>(): Updater<AsyncState<a>> =>
|
|
122
122
|
Updater((current) =>
|
|
123
|
-
current.kind == "loaded"
|
|
123
|
+
current.kind == "loaded" || current.kind == "reloading"
|
|
124
124
|
? AsyncState.Default.reloading(current.value)
|
|
125
125
|
: AsyncState.Updaters.toLoading<a>()(current),
|
|
126
126
|
),
|
|
@@ -432,13 +432,6 @@ export const fromAPIRawValue =
|
|
|
432
432
|
injectedPrimitives?: InjectedPrimitives<T>,
|
|
433
433
|
) =>
|
|
434
434
|
(raw: any): ValueOrErrors<PredicateValue, string> => {
|
|
435
|
-
// allow undefined for unit renderer
|
|
436
|
-
if (raw == undefined && (t.kind !== "primitive" || t.value != "unit")) {
|
|
437
|
-
return ValueOrErrors.Default.throwOne(
|
|
438
|
-
`raw value is undefined for type ${JSON.stringify(t)}`,
|
|
439
|
-
);
|
|
440
|
-
}
|
|
441
|
-
|
|
442
435
|
if (t.kind == "primitive") {
|
|
443
436
|
// unit is a special kind of primitive
|
|
444
437
|
if (t.value == "unit") {
|