@bool-ts/core 1.7.2 → 1.7.3
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/hooks/factory.js +3 -0
- package/package.json +1 -1
- package/src/hooks/factory.ts +4 -0
package/dist/hooks/factory.js
CHANGED
|
@@ -528,6 +528,9 @@ const fetcher = async (bun, bool) => {
|
|
|
528
528
|
}
|
|
529
529
|
}
|
|
530
530
|
context[responseBodyArgsKey] = await collection.func(...args);
|
|
531
|
+
if (context[responseBodyArgsKey] instanceof Response) {
|
|
532
|
+
return responseConverter(context[responseBodyArgsKey]);
|
|
533
|
+
}
|
|
531
534
|
}
|
|
532
535
|
if (context[responseBodyArgsKey] instanceof Response) {
|
|
533
536
|
return responseConverter(context[responseBodyArgsKey]);
|
package/package.json
CHANGED
package/src/hooks/factory.ts
CHANGED
|
@@ -849,6 +849,10 @@ const fetcher = async (
|
|
|
849
849
|
}
|
|
850
850
|
|
|
851
851
|
context[responseBodyArgsKey] = await collection.func(...args);
|
|
852
|
+
|
|
853
|
+
if (context[responseBodyArgsKey] instanceof Response) {
|
|
854
|
+
return responseConverter(context[responseBodyArgsKey]);
|
|
855
|
+
}
|
|
852
856
|
}
|
|
853
857
|
|
|
854
858
|
if (context[responseBodyArgsKey] instanceof Response) {
|