Skip to content

Commit 4750b17

Browse files
committed
Update @redux-model/web version to 6.5.2
1 parent 3d91665 commit 4750b17

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"start": "yarn && node_modules/.bin/webpack-dev-server"
88
},
99
"dependencies": {
10-
"@redux-model/web": "^6.4.2",
10+
"@redux-model/web": "^6.5.2",
1111
"react": "^16.10.2",
1212
"react-dom": "^16.10.2",
1313
"react-redux": "^7.1.1",

src/models/NpmInfoModel.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ class NpmInfoModel extends Model<Data> {
1313
manage = $api.action((packageName: string) => {
1414
return this
1515
.get<Response>('/' + packageName)
16-
.query({
17-
noCache: Date.now()
18-
})
16+
.cache(1000)
1917
.onSuccess((_, action) => {
2018
return action.response;
2119
});

yarn.lock

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@
99
dependencies:
1010
regenerator-runtime "^0.13.2"
1111

12-
"@redux-model/web@^6.4.2":
13-
version "6.4.2"
14-
resolved "https://registry.npmjs.org/@redux-model/web/-/web-6.4.2.tgz#721d9ce7dfd86ea7f10bb57a21304cda4a586a89"
15-
integrity sha512-2hbsFSXStlrErzvXrhWNeIaSAOM4fs+bQv45IlKr32ephGP7tnRP6kCuVIP/+2wJ4B7T86lDXsWE/YUCOA+K1A==
12+
"@redux-model/web@^6.5.2":
13+
version "6.5.2"
14+
resolved "https://registry.npmjs.org/@redux-model/web/-/web-6.5.2.tgz#b7daee60779ec0b514069788d7b0de91a8f2789d"
15+
integrity sha512-rT2pJd4lJa0thOQDI0vAWlJYGrSorFKyP6DYnncKVRiLwdFDyesth6TAl9vDt2SLrxfab+HUfeiKOT6xXQuy+A==
1616
dependencies:
1717
axios "^0.19.0"
1818
immer "^4.0.1"
19+
lodash.clonedeep "^4.5.0"
1920
tslib "^1.10.0"
2021

2122
"@types/anymatch@*":
@@ -2574,6 +2575,11 @@ lodash-es@^4.2.1:
25742575
resolved "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.15.tgz#21bd96839354412f23d7a10340e5eac6ee455d78"
25752576
integrity sha512-rlrc3yU3+JNOpZ9zj5pQtxnx2THmvRykwL4Xlxoa8I9lHBlVbbyPhgyPMioxVZ4NqyxaVVtaJnzsyOidQIhyyQ==
25762577

2578+
lodash.clonedeep@^4.5.0:
2579+
version "4.5.0"
2580+
resolved "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz#e23f3f9c4f8fbdde872529c1071857a086e5ccef"
2581+
integrity sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=
2582+
25772583
lodash@^4.17.11, lodash@^4.17.3, lodash@^4.17.5, lodash@^4.2.1:
25782584
version "4.17.15"
25792585
resolved "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548"

0 commit comments

Comments
 (0)