@gammatech/aijsx 0.7.0-dev.2024-05-14 → 0.7.1-dev.2024-05-14
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/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -29,7 +29,7 @@ declare function Retry({ shouldRetry, retries, maxRetries, children }: RetryProp
|
|
|
29
29
|
|
|
30
30
|
type FallbackProps = {
|
|
31
31
|
fallback: AINode;
|
|
32
|
-
shouldFallback
|
|
32
|
+
shouldFallback?: (error: Error) => boolean;
|
|
33
33
|
children: AINode;
|
|
34
34
|
};
|
|
35
35
|
declare function Fallback({ shouldFallback, fallback, children }: FallbackProps, ctx: RenderContext): AsyncGenerator<string, void, unknown>;
|
package/dist/index.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ declare function Retry({ shouldRetry, retries, maxRetries, children }: RetryProp
|
|
|
29
29
|
|
|
30
30
|
type FallbackProps = {
|
|
31
31
|
fallback: AINode;
|
|
32
|
-
shouldFallback
|
|
32
|
+
shouldFallback?: (error: Error) => boolean;
|
|
33
33
|
children: AINode;
|
|
34
34
|
};
|
|
35
35
|
declare function Fallback({ shouldFallback, fallback, children }: FallbackProps, ctx: RenderContext): AsyncGenerator<string, void, unknown>;
|
package/dist/index.js
CHANGED
|
@@ -1472,7 +1472,7 @@ async function* Retry({ shouldRetry: shouldRetry4, retries = 0, maxRetries = 3,
|
|
|
1472
1472
|
}
|
|
1473
1473
|
|
|
1474
1474
|
// src/fallback.tsx
|
|
1475
|
-
async function* Fallback({ shouldFallback, fallback, children }, ctx) {
|
|
1475
|
+
async function* Fallback({ shouldFallback = () => true, fallback, children }, ctx) {
|
|
1476
1476
|
const { render } = ctx;
|
|
1477
1477
|
let hasYieldedData = false;
|
|
1478
1478
|
try {
|
package/dist/index.mjs
CHANGED
|
@@ -1368,7 +1368,7 @@ async function* Retry({ shouldRetry: shouldRetry4, retries = 0, maxRetries = 3,
|
|
|
1368
1368
|
}
|
|
1369
1369
|
|
|
1370
1370
|
// src/fallback.tsx
|
|
1371
|
-
async function* Fallback({ shouldFallback, fallback, children }, ctx) {
|
|
1371
|
+
async function* Fallback({ shouldFallback = () => true, fallback, children }, ctx) {
|
|
1372
1372
|
const { render } = ctx;
|
|
1373
1373
|
let hasYieldedData = false;
|
|
1374
1374
|
try {
|