cnpm / cnpmcore

Private NPM Registry for Enterprise
https://npmmirror.com
MIT License
607 stars 80 forks source link

feat: signup on auth #567

Closed elrrrrrrr closed 1 year ago

elrrrrrrr commented 1 year ago

Auto init the account when auth

授权时,默认进行账户初始化

  • 🧶 新增 findOrCreateUser 方法,登录和授权时均初始化账户
codecov[bot] commented 1 year ago

Codecov Report

Merging #567 (3f0e88b) into master (ab2fde7) will decrease coverage by 0.05%. Report is 24 commits behind head on master. The diff coverage is 99.01%.

@@            Coverage Diff             @@
##           master     #567      +/-   ##
==========================================
- Coverage   97.02%   96.98%   -0.05%     
==========================================
  Files         174      175       +1     
  Lines       16588    16716     +128     
  Branches     2177     2196      +19     
==========================================
+ Hits        16095    16212     +117     
- Misses        493      504      +11     
Files Changed Coverage Δ
app/common/PackageUtil.ts 97.61% <90.90%> (-1.42%) :arrow_down:
app/common/adapter/CacheAdapter.ts 100.00% <100.00%> (ø)
app/common/adapter/binary/NodePreGypBinary.ts 98.69% <100.00%> (+<0.01%) :arrow_up:
app/common/adapter/binary/PlaywrightBinary.ts 99.26% <100.00%> (+0.03%) :arrow_up:
app/common/constants.ts 100.00% <100.00%> (ø)
app/core/service/HomeService.ts 100.00% <100.00%> (ø)
app/core/service/PackageManagerService.ts 98.86% <100.00%> (ø)
app/core/service/PackageSyncerService.ts 98.21% <100.00%> (-0.01%) :arrow_down:
app/core/service/TokenService.ts 100.00% <100.00%> (ø)
app/core/service/UserService.ts 95.63% <100.00%> (+0.07%) :arrow_up:
... and 9 more

... and 2 files with indirect coverage changes