From 2e4015bb188303f812e6a4d4347b1cbe17089444 Mon Sep 17 00:00:00 2001 From: Daniel Rochetti Date: Tue, 16 Jan 2024 09:38:40 -0800 Subject: [PATCH 1/2] chore: client release 0.8.2 --- README.md | 2 +- apps/demo-express-app/.env.example | 2 +- apps/demo-nextjs-app-router/.env.example | 2 +- apps/demo-nextjs-page-router/.env.example | 2 +- libs/client/package.json | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 6c3faac..3222388 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ This client library is crafted as a lightweight layer atop platform standards li 3. Retrieve your function id and execute it: ```ts - const result = await fal.run('my-function-id'); + const result = await fal.run('user/app-alias'); ``` The result's type is contingent upon your Python function's output. Types in Python are mapped to their corresponding types in JavaScript. diff --git a/apps/demo-express-app/.env.example b/apps/demo-express-app/.env.example index aee3d34..d5dbd3a 100644 --- a/apps/demo-express-app/.env.example +++ b/apps/demo-express-app/.env.example @@ -1,3 +1,3 @@ # Rename this file to .env.local and add your fal credentials # Visit https://fal.ai to get started -FAL_KEY="FAL_KEY_ID:FAL_KEY_SECRET"; +FAL_KEY="FAL_KEY_ID:FAL_KEY_SECRET" diff --git a/apps/demo-nextjs-app-router/.env.example b/apps/demo-nextjs-app-router/.env.example index aee3d34..d5dbd3a 100644 --- a/apps/demo-nextjs-app-router/.env.example +++ b/apps/demo-nextjs-app-router/.env.example @@ -1,3 +1,3 @@ # Rename this file to .env.local and add your fal credentials # Visit https://fal.ai to get started -FAL_KEY="FAL_KEY_ID:FAL_KEY_SECRET"; +FAL_KEY="FAL_KEY_ID:FAL_KEY_SECRET" diff --git a/apps/demo-nextjs-page-router/.env.example b/apps/demo-nextjs-page-router/.env.example index aee3d34..d5dbd3a 100644 --- a/apps/demo-nextjs-page-router/.env.example +++ b/apps/demo-nextjs-page-router/.env.example @@ -1,3 +1,3 @@ # Rename this file to .env.local and add your fal credentials # Visit https://fal.ai to get started -FAL_KEY="FAL_KEY_ID:FAL_KEY_SECRET"; +FAL_KEY="FAL_KEY_ID:FAL_KEY_SECRET" diff --git a/libs/client/package.json b/libs/client/package.json index 1b5027b..fcafede 100644 --- a/libs/client/package.json +++ b/libs/client/package.json @@ -1,7 +1,7 @@ { "name": "@fal-ai/serverless-client", "description": "The fal serverless JS/TS client", - "version": "0.8.0", + "version": "0.8.2", "license": "MIT", "repository": { "type": "git", From 07b0fedb62e1b5c9990579b24d3a1e95b9784243 Mon Sep 17 00:00:00 2001 From: Daniel Rochetti Date: Tue, 16 Jan 2024 09:41:24 -0800 Subject: [PATCH 2/2] fix: domain check on proxy --- libs/proxy/package.json | 2 +- libs/proxy/src/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/proxy/package.json b/libs/proxy/package.json index eaf6636..b0b0174 100644 --- a/libs/proxy/package.json +++ b/libs/proxy/package.json @@ -1,6 +1,6 @@ { "name": "@fal-ai/serverless-proxy", - "version": "0.7.0", + "version": "0.7.1", "license": "MIT", "repository": { "type": "git", diff --git a/libs/proxy/src/index.ts b/libs/proxy/src/index.ts index 351d8c3..dede16d 100644 --- a/libs/proxy/src/index.ts +++ b/libs/proxy/src/index.ts @@ -9,7 +9,7 @@ const FAL_KEY_SECRET = export type HeaderValue = string | string[] | undefined | null; -const FAL_URL_REG_EXP = /(fal\.(run|ai))$/; +const FAL_URL_REG_EXP = /(\.fal\.(run|ai))$/; /** * The proxy behavior that is passed to the proxy handler. This is a subset of