File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-native-update" ,
3
- "version" : " 10.23.1 " ,
3
+ "version" : " 10.24.0 " ,
4
4
"description" : " react-native hot update" ,
5
5
"main" : " src/index" ,
6
6
"scripts" : {
74
74
"react-native" : " 0.73" ,
75
75
"ts-jest" : " ^29.2.5" ,
76
76
"typescript" : " ^5.6.3"
77
- },
78
- "packageManager" :
" [email protected] +sha1.1959a18351b811cdeedbd484a8f86c3cc3bbaf72"
77
+ }
79
78
}
Original file line number Diff line number Diff line change @@ -41,6 +41,8 @@ export const UpdateContext = createContext<{
41
41
lastError ?: Error ;
42
42
} > ( defaultContext ) ;
43
43
44
- export const usePushy = ( ) => useContext ( UpdateContext ) ;
44
+ export const useUpdate = ( ) => useContext ( UpdateContext ) ;
45
45
46
- export const useCresc = ( ) => useContext ( UpdateContext ) ;
46
+ export const usePushy = useUpdate ;
47
+
48
+ export const useCresc = useUpdate ;
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import {
15
15
import { Pushy , Cresc } from './client' ;
16
16
import { currentVersion , packageVersion , getCurrentVersionInfo } from './core' ;
17
17
import { CheckResult , ProgressData , UpdateTestPayload } from './type' ;
18
- import { ClientContext } from './context' ;
18
+ import { UpdateContext } from './context' ;
19
19
import { URL } from 'react-native-url-polyfill' ;
20
20
import { isInRollout } from './isInRollout' ;
21
21
import { log } from './utils' ;
@@ -335,7 +335,7 @@ export const UpdateProvider = ({
335
335
} , [ parseTestPayload ] ) ;
336
336
337
337
return (
338
- < ClientContext . Provider
338
+ < UpdateContext . Provider
339
339
value = { {
340
340
checkUpdate,
341
341
switchVersion,
@@ -354,7 +354,7 @@ export const UpdateProvider = ({
354
354
parseTestQrCode,
355
355
} } >
356
356
{ children }
357
- </ ClientContext . Provider >
357
+ </ UpdateContext . Provider >
358
358
) ;
359
359
} ;
360
360
You can’t perform that action at this time.
0 commit comments