Skip to content

Commit

Permalink
fix: check type before trying to upload (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
drochetti authored Apr 17, 2024
1 parent 9262814 commit 18eb6ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion libs/client/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@fal-ai/serverless-client",
"description": "The fal serverless JS/TS client",
"version": "0.9.2",
"version": "0.9.3",
"license": "MIT",
"repository": {
"type": "git",
Expand Down
3 changes: 3 additions & 0 deletions libs/client/src/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ export const storageImpl: StorageSupport = {

// eslint-disable-next-line @typescript-eslint/no-explicit-any
transformInput: async (input: Record<string, any>) => {
if (!isPlainObject(input)) {
return input;
}
const promises = Object.entries(input).map(async ([key, value]) => {
if (
value instanceof Blob ||
Expand Down

0 comments on commit 18eb6ec

Please sign in to comment.