Skip to content

Commit

Permalink
fix(client): local creds warning on resolvers (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
drochetti committed Aug 8, 2024
1 parent 2ff4816 commit b3ab5f0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
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.14.1",
"version": "0.14.2",
"license": "MIT",
"repository": {
"type": "git",
Expand Down
7 changes: 6 additions & 1 deletion libs/client/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,12 @@ export function config(config: Config) {
),
};
}
const { credentials, suppressLocalCredentialsWarning } = configuration;
const { credentials: resolveCredentials, suppressLocalCredentialsWarning } =
configuration;
const credentials =
typeof resolveCredentials === "function"
? resolveCredentials()
: resolveCredentials;
if (
typeof window !== "undefined" &&
credentials &&
Expand Down

0 comments on commit b3ab5f0

Please sign in to comment.