fix(proxy): svelte immutable error (#109)
* fix(proxy): svelte immutable error * chore: version bump * fix: release tag format script
This commit is contained in:
parent
6068163419
commit
bc04feeb85
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@ -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
|
||||
|
||||
@ -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",
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user