rhythia-api 1.0.1 → 15.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/editUser.ts +12 -0
- package/index.ts +2 -1
- package/package.json +16 -13
- package/scripts/update.ts +10 -0
package/api/editUser.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export async function editUser(input: { type: string }) {
|
|
2
|
+
const request = await fetch(`https://rhythia.com/api/editUser`);
|
|
3
|
+
return request.json();
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export function GET(request: Request) {
|
|
7
|
+
return new Response(`You're visiting from beautiful`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export async function POST(request: Request) {
|
|
11
|
+
return new Response(`good one`);
|
|
12
|
+
}
|
package/index.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "rhythia-api",
|
|
3
|
-
"version": "
|
|
4
|
-
"main": "index.ts",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
"supabase": "^
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "rhythia-api",
|
|
3
|
+
"version": "15.0.0",
|
|
4
|
+
"main": "index.ts",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"update": "tsx scripts/update.ts && npm set //registry.npmjs.org/:_authToken=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 && npm publish",
|
|
7
|
+
"sync": "npx supabase gen types typescript --project-id \"pfkajngbllcbdzoylrvp\" --schema public > types/supabase.ts"
|
|
8
|
+
},
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"@supabase/supabase-js": "^2.45.1",
|
|
12
|
+
"@types/node": "^22.2.0",
|
|
13
|
+
"supabase": "^1.188.4",
|
|
14
|
+
"tsx": "^4.17.0"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { readFileSync, writeFileSync } from "fs";
|
|
2
|
+
|
|
3
|
+
const packageJson = JSON.parse(readFileSync("./package.json", "utf-8"));
|
|
4
|
+
|
|
5
|
+
const versions = packageJson.version.split(".");
|
|
6
|
+
versions[0] = Number(versions[0]) + 1;
|
|
7
|
+
|
|
8
|
+
packageJson.version = versions.join(".");
|
|
9
|
+
|
|
10
|
+
writeFileSync("./package.json", JSON.stringify(packageJson, null, 2));
|