fix: check type before trying to upload (#63)
This commit is contained in:
parent
9262814578
commit
18eb6ec28d
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@fal-ai/serverless-client",
|
"name": "@fal-ai/serverless-client",
|
||||||
"description": "The fal serverless JS/TS client",
|
"description": "The fal serverless JS/TS client",
|
||||||
"version": "0.9.2",
|
"version": "0.9.3",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
@ -104,6 +104,9 @@ export const storageImpl: StorageSupport = {
|
|||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
transformInput: async (input: Record<string, any>) => {
|
transformInput: async (input: Record<string, any>) => {
|
||||||
|
if (!isPlainObject(input)) {
|
||||||
|
return input;
|
||||||
|
}
|
||||||
const promises = Object.entries(input).map(async ([key, value]) => {
|
const promises = Object.entries(input).map(async ([key, value]) => {
|
||||||
if (
|
if (
|
||||||
value instanceof Blob ||
|
value instanceof Blob ||
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user