diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cbcd66c..aecc23c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,7 +3,7 @@ name: Release on: push: tags: - - "*-[0-9]+.[0-9]+.[0-9]+*" + - '*-v[0-9]+.[0-9]+.[0-9]+*' workflow_dispatch: inputs: package: @@ -52,7 +52,7 @@ jobs: # Tag trigger TAG_NAME=${{ github.ref_name }} PACKAGE_NAME=$(echo $TAG_NAME | cut -d'-' -f1) - VERSION=$(echo $TAG_NAME | cut -d'-' -f2-) + VERSION=$(echo $TAG_NAME | cut -d'-' -f2- | sed 's/^v//') fi # Extract npm tag based on version qualifier diff --git a/libs/proxy/package.json b/libs/proxy/package.json index 67b2637..58b6c57 100644 --- a/libs/proxy/package.json +++ b/libs/proxy/package.json @@ -1,7 +1,7 @@ { "name": "@fal-ai/server-proxy", "description": "The fal.ai server proxy adapter for JavaScript and TypeScript Web frameworks", - "version": "1.1.0", + "version": "1.1.1", "license": "MIT", "repository": { "type": "git", diff --git a/libs/proxy/src/svelte.ts b/libs/proxy/src/svelte.ts index 9c63e3d..d262970 100644 --- a/libs/proxy/src/svelte.ts +++ b/libs/proxy/src/svelte.ts @@ -1,5 +1,5 @@ import { type RequestHandler } from "@sveltejs/kit"; -import { fromHeaders, handleRequest, responsePassthrough } from "./index"; +import { fromHeaders, handleRequest } from "./index"; type RequestHandlerParams = { /** @@ -37,7 +37,9 @@ export const createRequestHandler = ({ status, headers: responseHeaders, }), - sendResponse: responsePassthrough, + sendResponse: async (res) => { + return new Response(res.body, res); + }, }); }; return {