File tree Expand file tree Collapse file tree 3 files changed +16
-8
lines changed
packages/middleware-retry Expand file tree Collapse file tree 3 files changed +16
-8
lines changed Original file line number Diff line number Diff line change 21
21
"@aws-sdk/protocol-http" : " 3.10.0" ,
22
22
"@aws-sdk/service-error-classification" : " 3.10.0" ,
23
23
"@aws-sdk/types" : " 3.10.0" ,
24
- "react-native-get-random-values" : " ^1.4.0" ,
25
24
"tslib" : " ^1.8.0" ,
26
25
"uuid" : " ^3.0.0"
27
26
},
32
31
"jest" : " ^26.1.0" ,
33
32
"typescript" : " ~4.1.2"
34
33
},
34
+ "peerDependencies" : {
35
+ "react-native-get-random-values" : " ^1.6.0"
36
+ },
37
+ "peerDependenciesMeta" : {
38
+ "react-native-get-random-values" : {
39
+ "optional" : true
40
+ }
41
+ },
35
42
"engines" : {
36
43
"node" : " >= 10.0.0"
37
44
},
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ //reference: https://github.com/uuidjs/uuid#getrandomvalues-not-supported
2
+ try {
3
+ //@ts -ignore
4
+ require ( "react-native-get-random-values" ) ;
5
+ } catch {
6
+ // do nothing
7
+ }
8
+
1
9
export * from "./retryMiddleware" ;
2
10
export * from "./omitRetryHeadersMiddleware" ;
3
11
export * from "./defaultStrategy" ;
You can’t perform that action at this time.
0 commit comments