Skip to content
This repository was archived by the owner on May 26, 2023. It is now read-only.

Commit 2f7ba77

Browse files
author
Noel
authored
fix: uuid (#431)
1 parent 5788e35 commit 2f7ba77

File tree

4 files changed

+8
-15
lines changed

4 files changed

+8
-15
lines changed

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
"@types/fancy-log": "^1.3.0",
3434
"@types/jest": "27.0.1",
3535
"@types/node": "^16.6.1",
36-
"@types/uuid": "^3.4.4",
3736
"@types/webpack": "^4.4.17",
3837
"@typescript-eslint/eslint-plugin": "^4.31.1",
3938
"@typescript-eslint/parser": "^4.31.1",

packages/zilliqa-js-crypto/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"clean": "rimraf ./dist ./tsconfig.tsbuildinfo"
2626
},
2727
"dependencies": {
28+
"@types/uuid": "8.3.1",
2829
"@types/sodium-native": "2.3.5",
2930
"@types/elliptic": "^6.4.13",
3031
"@zilliqa-js/util": "^3.3.2",

packages/zilliqa-js-crypto/src/keystore.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import aes from 'aes-js';
1919
import hashjs from 'hash.js';
2020
import { pbkdf2Sync } from 'pbkdf2';
2121
import scrypt from 'scrypt-js';
22-
import uuid from 'uuid';
22+
import { v4 as uuidv4 } from 'uuid';
2323

2424
import { bytes } from '@zilliqa-js/util';
2525

@@ -137,7 +137,7 @@ export const encryptPrivateKey = async (
137137
)
138138
.digest('hex'),
139139
},
140-
id: uuid.v4({ random: bytes.hexToIntArray(randomBytes(16)) }),
140+
id: uuidv4({ random: bytes.hexToIntArray(randomBytes(16)) }),
141141
version: 3,
142142
});
143143
};

yarn.lock

+5-12
Original file line numberDiff line numberDiff line change
@@ -1869,12 +1869,10 @@
18691869
dependencies:
18701870
source-map "^0.6.1"
18711871

1872-
"@types/uuid@^3.4.4":
1873-
version "3.4.5"
1874-
resolved "https://registry.npmjs.org/@types/uuid/-/uuid-3.4.5.tgz#d4dc10785b497a1474eae0ba7f0cb09c0ddfd6eb"
1875-
integrity sha512-MNL15wC3EKyw1VLF+RoVO4hJJdk9t/Hlv3rt1OL65Qvuadm4BYo6g9ZJQqoq7X8NBFSsQXgAujWciovh2lpVjA==
1876-
dependencies:
1877-
"@types/node" "*"
1872+
1873+
version "8.3.1"
1874+
resolved "https://registry.npmjs.org/@types/uuid/-/uuid-8.3.1.tgz#1a32969cf8f0364b3d8c8af9cc3555b7805df14f"
1875+
integrity sha512-Y2mHTRAbqfFkpjldbkHGY8JIzRN6XqYRliG8/24FcHm2D2PwW24fl5xMRTVGdrb7iMrwCaIEbLWerGIkXuFWVg==
18781876

18791877
"@types/webpack-sources@*":
18801878
version "0.1.5"
@@ -10075,12 +10073,7 @@ [email protected]:
1007510073
resolved "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2"
1007610074
integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==
1007710075

10078-
uuid@^3.1.0:
10079-
version "3.3.3"
10080-
resolved "https://registry.npmjs.org/uuid/-/uuid-3.3.3.tgz#4568f0216e78760ee1dbf3a4d2cf53e224112866"
10081-
integrity sha512-pW0No1RGHgzlpHJO1nsVrHKpOEIxkGg1xB+v0ZmdNH5OAeAwzAVrCnI2/6Mtx+Uys6iaylxa+D3g4j63IKKjSQ==
10082-
10083-
uuid@^3.3.2:
10076+
uuid@^3.1.0, uuid@^3.3.2:
1008410077
version "3.4.0"
1008510078
resolved "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee"
1008610079
integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==

0 commit comments

Comments
 (0)