rhythia-api 112.0.0 → 113.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.
@@ -3,7 +3,6 @@ import z from "zod";
3
3
  import { protectedApi, validUser } from "../utils/requestUtils";
4
4
  import { SSPMParser } from "../utils/star-calc/sspmParser";
5
5
  import { supabase } from "../utils/supabase";
6
- import { createHash } from "crypto";
7
6
  import { PutObjectCommand, S3Client } from "@aws-sdk/client-s3";
8
7
  import { rateMap } from "../utils/star-calc";
9
8
 
@@ -51,7 +50,7 @@ export async function handler({
51
50
  const parser = new SSPMParser(Buffer.from(bytes));
52
51
 
53
52
  const parsedData = parser.parse();
54
- let sum = createHash("sha1");
53
+ let sum = require("crypto").createHash("sha1");
55
54
  sum.update(Buffer.from(bytes));
56
55
  const digested = sum.digest("hex");
57
56
  const imgkey = `beatmap-img-${Date.now()}-${digested}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rhythia-api",
3
- "version": "112.0.0",
3
+ "version": "113.0.0",
4
4
  "main": "index.ts",
5
5
  "scripts": {
6
6
  "update": "bun ./scripts/update.ts",