Skip to content

Commit

Permalink
fix(proxy): svelte immutable error (#109)
Browse files Browse the repository at this point in the history
* fix(proxy): svelte immutable error

* chore: version bump

* fix: release tag format script
  • Loading branch information
drochetti authored Nov 21, 2024
1 parent 6068163 commit bc04fee
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion libs/proxy/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
6 changes: 4 additions & 2 deletions libs/proxy/src/svelte.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { type RequestHandler } from "@sveltejs/kit";
import { fromHeaders, handleRequest, responsePassthrough } from "./index";
import { fromHeaders, handleRequest } from "./index";

type RequestHandlerParams = {
/**
Expand Down Expand Up @@ -37,7 +37,9 @@ export const createRequestHandler = ({
status,
headers: responseHeaders,
}),
sendResponse: responsePassthrough,
sendResponse: async (res) => {
return new Response(res.body, res);
},
});
};
return {
Expand Down

0 comments on commit bc04fee

Please sign in to comment.