File tree 5 files changed +19
-19
lines changed
5 files changed +19
-19
lines changed Original file line number Diff line number Diff line change 8
8
"build" : " webpack-genius build --env production"
9
9
},
10
10
"dependencies" : {
11
- "@redux-model/react" : " ^7 .0.0" ,
11
+ "@redux-model/react" : " ^8 .0.0" ,
12
12
"lodash" : " ^4.17.15" ,
13
13
"react" : " ^16.12.0" ,
14
14
"react-dom" : " ^16.12.0" ,
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ class CounterModel extends Model<Data> {
15
15
}
16
16
} ) ;
17
17
18
- protected initReducer ( ) : Data {
18
+ protected initialState ( ) : Data {
19
19
return {
20
20
amount : 0 ,
21
21
} ;
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ class NpmInfoModel extends Model<Data> {
33
33
} ,
34
34
} ) ;
35
35
36
- this . changeReducer ( ( state ) => {
36
+ this . changeState ( ( state ) => {
37
37
state . homepage = info . response . homepage ;
38
38
} ) ;
39
39
} ) ;
@@ -42,7 +42,7 @@ class NpmInfoModel extends Model<Data> {
42
42
return { } ;
43
43
} ) ;
44
44
45
- protected initReducer ( ) : Data {
45
+ protected initialState ( ) : Data {
46
46
return { } ;
47
47
}
48
48
}
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ interface Data {
8
8
}
9
9
10
10
class SummaryModel extends Model < Data > {
11
- protected initReducer ( ) : Data {
11
+ protected initialState ( ) : Data {
12
12
return {
13
13
times : 0 ,
14
14
} ;
Original file line number Diff line number Diff line change 1137
1137
native-url "^0.2.6"
1138
1138
schema-utils "^2.6.5"
1139
1139
1140
- " @redux-model/core@^7 .0.0 " :
1141
- version "7 .0.0"
1142
- resolved "https://registry.npmjs. org/@redux-model/core/- /core-7 .0.0.tgz#3da620228ee02e26af46005a70305b49d1b9aa8c "
1143
- integrity sha512-oZx/CHz7xzlNZrkIqDAFb0XSNsu5RHCJMgu8lPrub6XhcGtrXwDPglD4WKNvJRMwDQpnMMRiUIfG40mDtp4iUA= =
1140
+ " @redux-model/core@8 .0.0 " :
1141
+ version "8 .0.0"
1142
+ resolved "https://registry.npm.taobao. org/@redux-model/core/download/@redux-model /core-8 .0.0.tgz#46676fd3f75c89df34beabf2a4b0126251480724 "
1143
+ integrity sha1-Rmdv0/dcid80vqvypLASYlFIByQ =
1144
1144
dependencies :
1145
1145
clone "2.1.2"
1146
- immer "7.0.5 "
1146
+ immer "7.0.7 "
1147
1147
1148
- " @redux-model/react@^7 .0.0 " :
1149
- version "7 .0.0"
1150
- resolved "https://registry.npmjs. org/@redux-model/react/- /react-7 .0.0.tgz#84ca22aec5652a7c13e5d2cfe54e7229fe4325d5 "
1151
- integrity sha512-JiFwGrt1Dro6UMe1k2leKrBSNHHygBm+IiQYCvqS0mfVyZzxvx5ZCUX7O4XGxOnP9e6AR/YFSWYV1vp9PKYvrA= =
1148
+ " @redux-model/react@^8 .0.0 " :
1149
+ version "8 .0.0"
1150
+ resolved "https://registry.npm.taobao. org/@redux-model/react/download/@redux-model /react-8 .0.0.tgz#563505c459a7aa0d9028af763740b92ef7c06df2 "
1151
+ integrity sha1-VjUFxFmnqg2QKK92N0C5LvfAbfI =
1152
1152
dependencies :
1153
- " @redux-model/core" " ^7 .0.0"
1153
+ " @redux-model/core" " 8 .0.0"
1154
1154
axios "0.19.2"
1155
1155
tslib "2.0.0"
1156
1156
@@ -4735,10 +4735,10 @@ immer@1.10.0:
4735
4735
resolved "https://registry.npmjs.org/immer/-/immer-1.10.0.tgz#bad67605ba9c810275d91e1c2a47d4582e98286d"
4736
4736
integrity sha512-O3sR1/opvCDGLEVcvrGTMtLac8GJ5IwZC4puPrLuRj3l7ICKvkmA0vGuU9OW8mV9WIBRnaxp5GJh9IEAaNOoYg==
4737
4737
4738
- immer@7.0.5 :
4739
- version "7.0.5 "
4740
- resolved "https://registry.npmjs.org/immer/-/immer-7.0.5 .tgz#8af347db5b60b40af8ae7baf1784ea4d35b5208e "
4741
- integrity sha512-TtRAKZyuqld2eYjvWgXISLJ0ZlOl1OOTzRmrmiY8SlB0dnAhZ1OiykIDL5KDFNaPHDXiLfGQFNJGtet8z8AEmg ==
4738
+ immer@7.0.7 :
4739
+ version "7.0.7 "
4740
+ resolved "https://registry.npmjs.org/immer/-/immer-7.0.7 .tgz#9dfe713d49bf871cc59aedfce59b1992fa37a977 "
4741
+ integrity sha512-Q8yYwVADJXrNfp1ZUAh4XDHkcoE3wpdpb4mC5abDSajs2EbW8+cGdPyAnglMyLnm7EF6ojD2xBFX7L5i4TIytw ==
4742
4742
4743
4743
import-cwd@^2.0.0 :
4744
4744
version "2.1.0"
You can’t perform that action at this time.
0 commit comments