File tree 3 files changed +11
-10
lines changed 3 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 63
63
"@types/lodash" : " ^4.14.168" ,
64
64
"little-state-machine" : " ^4.1.0" ,
65
65
"lodash" : " ^4.17.21" ,
66
- "nanoid" : " ^4.0.0" ,
67
66
"react-simple-animate" : " ^3.3.12" ,
68
- "use-deep-compare-effect" : " ^1.8.1"
67
+ "use-deep-compare-effect" : " ^1.8.1" ,
68
+ "uuid" : " ^8.3.2"
69
69
},
70
70
"devDependencies" : {
71
71
"@babel/core" : " ^7.13.16" ,
83
83
"@testing-library/react" : " ^11.2.6" ,
84
84
"@types/jest" : " ^26.0.23" ,
85
85
"@types/react" : " ^17.0.4" ,
86
+ "@types/uuid" : " ^8.3.4" ,
86
87
"@typescript-eslint/eslint-plugin" : " ^4.22.0" ,
87
88
"@typescript-eslint/parser" : " ^4.22.0" ,
88
89
"babel-loader" : " ^8.2.2" ,
Original file line number Diff line number Diff line change 1
1
import _ from 'lodash' ;
2
- import { nanoid } from 'nanoid' ;
3
2
import { useEffect , useState } from 'react' ;
4
3
import { Control , useFormState , useWatch } from 'react-hook-form' ;
5
4
import useDeepCompareEffect from 'use-deep-compare-effect' ;
5
+ import { v4 as uuid } from 'uuid' ;
6
6
import { MessageData , UpdatePayload } from './types' ;
7
7
import { nestToFlat , proxyToObject } from './utils' ;
8
8
9
- const id = nanoid ( ) ;
9
+ const id = uuid ( ) ;
10
10
11
11
export function useExportControlToExtension ( control : Control < any > ) {
12
12
const nestedFormValues = useWatch ( { control } ) ;
Original file line number Diff line number Diff line change 3189
3189
resolved "https://registry.yarnpkg.com/@types/unist/-/unist-2.0.6.tgz#250a7b16c3b91f672a24552ec64678eeb1d3a08d"
3190
3190
integrity sha512-PBjIUxZHOuj0R15/xuwJYjFi+KZdNFrehocChv4g5hu6aFroHue8m0lBP0POdK2nKzbw0cgV1mws8+V/JAcEkQ==
3191
3191
3192
+ "@types/uuid@^8.3.4":
3193
+ version "8.3.4"
3194
+ resolved "https://registry.yarnpkg.com/@types/uuid/-/uuid-8.3.4.tgz#bd86a43617df0594787d38b735f55c805becf1bc"
3195
+ integrity sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==
3196
+
3192
3197
"@types/webpack-env@^1.16.0":
3193
3198
version "1.17.0"
3194
3199
resolved "https://registry.yarnpkg.com/@types/webpack-env/-/webpack-env-1.17.0.tgz#f99ce359f1bfd87da90cc4a57cab0a18f34a48d0"
@@ -9188,11 +9193,6 @@ nanoid@^3.3.1:
9188
9193
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.4.tgz#730b67e3cd09e2deacf03c027c81c9d9dbc5e8ab"
9189
9194
integrity sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==
9190
9195
9191
- nanoid@^4.0.0:
9192
- version "4.0.0"
9193
- resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-4.0.0.tgz#6e144dee117609232c3f415c34b0e550e64999a5"
9194
- integrity sha512-IgBP8piMxe/gf73RTQx7hmnhwz0aaEXYakvqZyE302IXW3HyVNhdNGC+O2MwMAVhLEnvXlvKtGbtJf6wvHihCg==
9195
-
9196
9196
nanomatch@^1.2.9:
9197
9197
version "1.2.13"
9198
9198
resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.13.tgz#b87a8aa4fc0de8fe6be88895b38983ff265bd119"
@@ -12438,7 +12438,7 @@ uuid@^3.3.2:
12438
12438
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee"
12439
12439
integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==
12440
12440
12441
- uuid@^8.3.0:
12441
+ uuid@^8.3.0, uuid@^8.3.2 :
12442
12442
version "8.3.2"
12443
12443
resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2"
12444
12444
integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==
You can’t perform that action at this time.
0 commit comments