This repository was archived by the owner on May 26, 2023. It is now read-only.
File tree 4 files changed +8
-15
lines changed
packages/zilliqa-js-crypto
4 files changed +8
-15
lines changed Original file line number Diff line number Diff line change 33
33
"@types/fancy-log" : " ^1.3.0" ,
34
34
"@types/jest" : " 27.0.1" ,
35
35
"@types/node" : " ^16.6.1" ,
36
- "@types/uuid" : " ^3.4.4" ,
37
36
"@types/webpack" : " ^4.4.17" ,
38
37
"@typescript-eslint/eslint-plugin" : " ^4.31.1" ,
39
38
"@typescript-eslint/parser" : " ^4.31.1" ,
Original file line number Diff line number Diff line change 25
25
"clean" : " rimraf ./dist ./tsconfig.tsbuildinfo"
26
26
},
27
27
"dependencies" : {
28
+ "@types/uuid" : " 8.3.1" ,
28
29
"@types/sodium-native" : " 2.3.5" ,
29
30
"@types/elliptic" : " ^6.4.13" ,
30
31
"@zilliqa-js/util" : " ^3.3.2" ,
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import aes from 'aes-js';
19
19
import hashjs from 'hash.js' ;
20
20
import { pbkdf2Sync } from 'pbkdf2' ;
21
21
import scrypt from 'scrypt-js' ;
22
- import uuid from 'uuid' ;
22
+ import { v4 as uuidv4 } from 'uuid' ;
23
23
24
24
import { bytes } from '@zilliqa-js/util' ;
25
25
@@ -137,7 +137,7 @@ export const encryptPrivateKey = async (
137
137
)
138
138
. digest ( 'hex' ) ,
139
139
} ,
140
- id : uuid . v4 ( { random : bytes . hexToIntArray ( randomBytes ( 16 ) ) } ) ,
140
+ id : uuidv4 ( { random : bytes . hexToIntArray ( randomBytes ( 16 ) ) } ) ,
141
141
version : 3 ,
142
142
} ) ;
143
143
} ;
Original file line number Diff line number Diff line change 1869
1869
dependencies :
1870
1870
source-map "^0.6.1"
1871
1871
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==
1878
1876
1879
1877
" @types/webpack-sources@* " :
1880
1878
version "0.1.5"
10075
10073
resolved "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2"
10076
10074
integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==
10077
10075
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 :
10084
10077
version "3.4.0"
10085
10078
resolved "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee"
10086
10079
integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==
You can’t perform that action at this time.
0 commit comments