rhythia-api 199.0.0 → 200.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.
@@ -10,6 +10,7 @@ import { User } from "@supabase/supabase-js";
10
10
  export const Schema = {
11
11
  input: z.strictObject({
12
12
  session: z.string(),
13
+ version: z.string().optional(),
13
14
  data: z.strictObject({
14
15
  token: z.string(),
15
16
  relayHwid: z.string(),
@@ -60,6 +61,7 @@ export async function POST(request: Request): Promise<NextResponse> {
60
61
 
61
62
  export async function handler({
62
63
  data,
64
+ version,
63
65
  session,
64
66
  }: (typeof Schema)["input"]["_type"]): Promise<
65
67
  NextResponse<(typeof Schema)["output"]["_type"]>
@@ -268,6 +270,7 @@ export async function handler({
268
270
  // Only spin scores
269
271
  const spinTotalSp = weightCalculate(spinHashMap);
270
272
 
273
+ console.log("VERSION: " + version);
271
274
  await supabase.from("profiles").upsert({
272
275
  id: userData.id,
273
276
  play_count: (userData.play_count || 0) + 1,
package/index.ts CHANGED
@@ -1181,6 +1181,7 @@ export const setPasskey = handleApi({url:"/api/setPasskey",...SetPasskey})
1181
1181
  export const Schema = {
1182
1182
  input: z.strictObject({
1183
1183
  session: z.string(),
1184
+ version: z.string().optional(),
1184
1185
  data: z.strictObject({
1185
1186
  token: z.string(),
1186
1187
  relayHwid: z.string(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rhythia-api",
3
- "version": "199.0.0",
3
+ "version": "200.0.0",
4
4
  "main": "index.ts",
5
5
  "author": "online-contributors-cunev",
6
6
  "scripts": {