fix(proxy): svelte immutable error (#109)

* fix(proxy): svelte immutable error

* chore: version bump

* fix: release tag format script
This commit is contained in:
Daniel Rochetti 2024-11-21 12:27:49 -08:00 committed by GitHub
parent 6068163419
commit bc04feeb85
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 5 deletions

View File

@ -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

View File

@ -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",

View File

@ -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 {