Skip to content

Commit

Permalink
switch to @qgp-js/bling so I can use POST
Browse files Browse the repository at this point in the history
  • Loading branch information
JLarky committed Mar 3, 2023
1 parent 404f5ba commit 388bd4b
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"dependencies": {
"@astrojs/deno": "^4.0.2",
"@astrojs/solid-js": "^2.0.2",
"@qgp-js/bling": "^0.4.3",
"@solidjs/router": "^0.7.0",
"@tanstack/bling": "^0.3.0",
"@total-typescript/ts-reset": "^0.3.2",
"@types/node": "^18.14.2",
"astro": "^2.0.14",
Expand Down
2 changes: 1 addition & 1 deletion qgp.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import solid from 'vite-plugin-solid';
import { defineCommon, defineVite } from 'qgp';
import checker from 'vite-plugin-checker';
import { bling } from '@tanstack/bling/vite';
import { bling } from '@qgp-js/bling/vite';

export const common = defineCommon({
vite: {
Expand Down
4 changes: 2 additions & 2 deletions src/components/GPT.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import '../styles/tailwind.css';
import { fetch$ } from '@tanstack/bling';
import { fetch$ } from '@qgp-js/bling';
import { createSignal, For } from 'solid-js';

type Message = { content: string; role: 'user' | 'system' | 'assistant' };
Expand Down Expand Up @@ -43,7 +43,7 @@ const runServer = fetch$(
return { response: data.choices[0].message };
},
{
method: 'GET',
method: 'POST',
}
);

Expand Down
2 changes: 1 addition & 1 deletion src/pages/[...id].ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { APIRoute } from 'astro';
import { handleEvent, hasHandler } from '@tanstack/bling/server';
import { handleEvent, hasHandler } from '@qgp-js/bling/server';

export const all: APIRoute = async ({ params, request }) => {
const id = params.id;
Expand Down
16 changes: 8 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -719,19 +719,19 @@
tiny-glob "^0.2.9"
tslib "^2.4.0"

"@qgp-js/[email protected]", "@qgp-js/bling@^0.4.3":
version "0.4.3"
resolved "https://registry.yarnpkg.com/@qgp-js/bling/-/bling-0.4.3.tgz#14e0b3c6ef6935075b29eeafb86b5380217f0df9"
integrity sha512-/o4POVoLcecRXlOoVwXg8zcuOK3zb//C1ceQI1x4btZwQXJML64vtOj0+YhC9keZ6vWG9bB8JZEZmZqrtyabwg==
dependencies:
"@qgp-js/bling" "0.4.3"
"@vitejs/plugin-react" "^3.1.0"

"@solidjs/router@^0.7.0":
version "0.7.0"
resolved "https://registry.yarnpkg.com/@solidjs/router/-/router-0.7.0.tgz#5f8f1289caf4a1eb24e57cbe93e6dde639b04a6e"
integrity sha512-8HI84twe5FjYRebSLMAhtkL9bRuTDIlxJK56kjfjU9WKGoUCTaWpCnkuj8Hqde1bWZ0X+GOZxKDfNkn1CjtjxA==

"@tanstack/[email protected]", "@tanstack/bling@^0.3.0":
version "0.3.0"
resolved "https://registry.yarnpkg.com/@tanstack/bling/-/bling-0.3.0.tgz#5ae8d0484263ac67a21474f7a1c9d2d1581c0914"
integrity sha512-n7uCGpsBx650ydxtAUPU5MxWaR9rHst8dTunjM8qZGVxJqBDhMsGlJR7AVWndizygOCRD7ULLAqJVfCX04NcYg==
dependencies:
"@tanstack/bling" "0.3.0"
"@vitejs/plugin-react" "^3.1.0"

"@total-typescript/ts-reset@^0.3.2":
version "0.3.2"
resolved "https://registry.yarnpkg.com/@total-typescript/ts-reset/-/ts-reset-0.3.2.tgz#8fadc180ec10b5f25a31ce31e3bef420fd500b64"
Expand Down

0 comments on commit 388bd4b

Please sign in to comment.