Skip to content

Commit

Permalink
Revert "fix uuid"
Browse files Browse the repository at this point in the history
This reverts commit aa34567.
  • Loading branch information
fruitriin committed Feb 21, 2023
1 parent aa34567 commit 7571d6c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"tsconfig-paths": "4.1.2",
"twemoji-parser": "14.0.0",
"typescript": "^4.9.5",
"uuid": "^9.0.0",
"uuid": "9.0.0",
"vanilla-tilt": "1.8.0",
"vite": "4.1.2",
"vue": "3.2.47",
Expand Down
3 changes: 1 addition & 2 deletions src/miauth.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { CapacitorHttp } from "@capacitor/core";
import uuid from "uuid"

function join(...paths: string[]) {
return paths.join("/");
Expand Down Expand Up @@ -125,7 +124,7 @@ export class MiAuth {
* this is MiAuth constructor light wrapper
*/
export function quickAuth(origin: string, param: UrlParam): MiAuth {
const session = uuid.v4();
const session = crypto.randomUUID();
return new MiAuth(origin, param, session);
}

Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5644,7 +5644,7 @@ util-deprecate@^1.0.1, util-deprecate@^1.0.2, util-deprecate@~1.0.1:
resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf"
integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==

uuid@9.0.0, uuid@^9.0.0:
uuid@9.0.0:
version "9.0.0"
resolved "https://registry.yarnpkg.com/uuid/-/uuid-9.0.0.tgz#592f550650024a38ceb0c562f2f6aa435761efb5"
integrity sha512-MXcSTerfPa4uqyzStbRoTgt5XIe3x5+42+q1sDuy3R5MDk66URdLMOZe5aPX/SQd+kuYAh0FdP/pO28IkQyTeg==
Expand Down

0 comments on commit 7571d6c

Please sign in to comment.