Skip to content

Commit 0051b33

Browse files
committed
remove uuidv4
1 parent 3113626 commit 0051b33

File tree

3 files changed

+3
-18
lines changed

3 files changed

+3
-18
lines changed

package-lock.json

Lines changed: 1 addition & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
"flowbite-react": "^0.10.1",
1616
"react": "^18.3.1",
1717
"react-dom": "^18.3.1",
18-
"react-router-dom": "^6.24.0",
19-
"uuid": "^10.0.0"
18+
"react-router-dom": "^6.24.0"
2019
},
2120
"devDependencies": {
2221
"@types/react": "^18.3.3",

src/cp/OCPPMessageHandler.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import {v4 as uuidv4} from "uuid";
21
import {OCPPWebSocket} from "./OCPPWebSocket";
32
import {ChargePoint} from "./ChargePoint";
43
import {Transaction} from "./Transaction";
@@ -486,6 +485,6 @@ export class OCPPMessageHandler {
486485
}
487486

488487
private generateMessageId(): string {
489-
return uuidv4();
488+
return crypto.randomUUID()
490489
}
491490
}

0 commit comments

Comments
 (0)