fix(client): local creds warning on resolvers (#83)
This commit is contained in:
parent
2ff481614b
commit
b3ab5f0e15
@ -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.14.1",
|
"version": "0.14.2",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
@ -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 (
|
if (
|
||||||
typeof window !== "undefined" &&
|
typeof window !== "undefined" &&
|
||||||
credentials &&
|
credentials &&
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user