chore(dep): upgrade dependency
This commit is contained in:
parent
072b8b7fd7
commit
3531e7a265
3 changed files with 5 additions and 2 deletions
|
@ -6,5 +6,8 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "scripts/build.sh",
|
"build": "scripts/build.sh",
|
||||||
"start": "cd src/client/web/ && yarn && yarn build && cd ../../.. && go run cmd/start/main.go -c `pwd`/configs/dev.yml"
|
"start": "cd src/client/web/ && yarn && yarn build && cd ../../.. && go run cmd/start/main.go -c `pwd`/configs/dev.yml"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"webpack-bundle-analyzer": "^4.4.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
"tslint": "^5.16.0",
|
"tslint": "^5.16.0",
|
||||||
"typescript": "^4.1.3",
|
"typescript": "^4.1.3",
|
||||||
"webpack": "^5.0.0",
|
"webpack": "^5.0.0",
|
||||||
"webpack-bundle-analyzer": "^3.3.2",
|
"webpack-bundle-analyzer": "^4.4.2",
|
||||||
"webpack-cli": "^4.2.0",
|
"webpack-cli": "^4.2.0",
|
||||||
"webpack-merge": "^4.2.1",
|
"webpack-merge": "^4.2.1",
|
||||||
"worker-loader": "^3.0.7"
|
"worker-loader": "^3.0.7"
|
||||||
|
@ -65,7 +65,6 @@
|
||||||
"react-dom": "^16.8.6",
|
"react-dom": "^16.8.6",
|
||||||
"react-svg": "^8.0.6",
|
"react-svg": "^8.0.6",
|
||||||
"throttle-debounce": "^2.1.0",
|
"throttle-debounce": "^2.1.0",
|
||||||
"webpack-bundle-analyzer": "^4.4.2",
|
|
||||||
"worker-loader": "^3.0.7"
|
"worker-loader": "^3.0.7"
|
||||||
},
|
},
|
||||||
"jest": {
|
"jest": {
|
||||||
|
|
|
@ -259,6 +259,7 @@ func (us *KVUserStore) SetUsed(id uint64, incr bool, capacity int64) error {
|
||||||
if !ok {
|
if !ok {
|
||||||
return fmt.Errorf("user (%d) does not exist", id)
|
return fmt.Errorf("user (%d) does not exist", id)
|
||||||
}
|
}
|
||||||
|
|
||||||
gotUser := &User{}
|
gotUser := &User{}
|
||||||
err := json.Unmarshal([]byte(infoStr), gotUser)
|
err := json.Unmarshal([]byte(infoStr), gotUser)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue