373 Commits

Author SHA1 Message Date
elrrrrrrr
a289d7dd5e feat: ignore sync private pkg (#1747)
> Ignore sync requests for private pacakges.
* update isLocalModule Logic, follow the #privatePackages field in
config.
2023-02-06 14:08:42 +08:00
elrrrrrrr
af9f5f7499 feat: add changes delay (#1739)
* 新增 changesDelay 配置,调用 /-/all/changes 接口时默认返回 delay 之前的 changes
* 防止出现 since 和当前时间接近时,changes 异步插入,导致 changes 计算失败的问题
2022-10-31 23:15:56 +08:00
elrrrrrrr
d8b5c9f7a9 feat: add changes api (#1734) 2022-07-28 16:28:47 +08:00
fengmk2
f8bcca1ea0 🐛 FIX: path url maybe encode (#1729) 2022-04-28 09:48:27 +08:00
fengmk2
8663e215f0 🐛 FIX: Should show sync button on scoped package not exists (#1728)
closes https://github.com/cnpm/cnpmcore/issues/218#issuecomment-1110955986
2022-04-28 09:13:43 +08:00
fengmk2
83497f2052 👌 IMPROVE: Return libc field on abbreviated manifests (#1721)
pick from https://github.com/cnpm/cnpmcore/pull/188
2022-03-20 09:49:19 +08:00
fengmk2
9f8dca4ac0 refactor: Sync exists package from cnpmcore changes stream (#1707)
closes https://github.com/cnpm/cnpmjs.org/issues/1704
2022-02-12 01:06:45 +08:00
fengmk2
b7bbf84ea3 fix: add missing config property for bug-versions (#1685) 2021-11-28 19:44:38 +08:00
fengmk2
97d501c088 feat: support bug-versions on server (#1684)
https://github.com/cnpm/bug-versions
2021-11-28 19:23:47 +08:00
fengmk2
3c5bc9dc5e feat: support package version block list (#1683) 2021-11-24 00:39:48 +08:00
fengmk2
f22a3e7370 refactor: dist tarbar url don't contains querystring (#1682) 2021-11-22 21:04:49 +08:00
fengmk2
abc1723bef feat: support dist.integrity (#1677)
https://github.com/npm/registry/blob/master/docs/responses/package-metadata.md#dist
2021-11-09 14:43:39 +08:00
fengmk2
39cf77ae0f refactor: use remote abbreviated version data (#1675)
avoid npm abbreviated version fields change

closes https://github.com/cnpm/cnpmjs.org/issues/1667

and starting use the new domain: npmmirror.com
2021-11-07 23:38:32 +08:00
fengmk2
62fdbd400a fix: should update etag after abbreviated meta change (#1670) 2021-10-01 17:52:06 +08:00
fengmk2
283f14976d feat: add missing abbreviated meta attibutes (#1668)
os, cpu, peerDependenciesMeta, workspaces
2021-09-27 17:21:53 +08:00
killa
2e7354c647 fix: allow download without scope filename (#1665) 2021-09-19 10:22:24 +08:00
killa
bbae9d3bc3 fix: new publish with token should add user to maintainers (#1662)
* fix: new publish with token should add user to maintainers

ci: use github

fix: fix _saveNpmUser

* ci: github add mysql service
2021-09-03 14:04:40 +08:00
killa
d28af7fd7e feat: support custom tokenService (#1658) 2021-07-28 14:41:13 +08:00
Solais
e2582417fa remove maintainers logic (#1654)
* fix: remove maintainers logic when token mode

Co-authored-by: zhixiang.tzx <zhixiang.tzx@alibaba-inc.com>
2021-07-06 17:52:43 +08:00
killa
a1e8a82892 feat: impl npm owner hooks (#1645)
* feat: impl npm owner hooks
* fix: fix tagDir/packageDir for oss-cnpm
2021-06-11 10:34:50 +08:00
killa
f1217094b7 fix: should yield backup method (#1639) 2021-05-06 15:02:57 +08:00
killa
2245dc2967 feat: impl accelerate request (#1637)
* feat: impl accelerate request
2021-05-06 15:00:04 +08:00
killa
a21aed08c5 feat: impl sync to/from backup files (#1636)
* feat: impl save backup files

* feat: impl sync from backup files

* feat: impl sync unpublish from backup file

* config: add backupProtocol
2021-04-30 11:48:11 +08:00
fengmk2
819a499661 feat: add custom format hooks for registry package request (#1635)
let custom registry can filter the package fields itself
2021-04-19 22:54:51 +08:00
fengmk2
dc0955320b feat: export models ref to app (#1634)
let custom middleware can access app.models
2021-04-18 13:55:02 +08:00
fengmk2
aa7cb3df01 feat: allow to disable total modules query on db (#1624)
use `config.enableTotalCount = false`
2021-02-24 18:29:49 +08:00
killa
33dd3554f5 feat: impl dist-tag hooks (#1612)
* feat: impl dist-tag hooks

* test: add tag assert
2021-01-14 10:20:16 +08:00
killa
39c322332f feat: new registry api (#1597) 2020-10-21 13:53:44 +08:00
killa
b7089d33d4 fix: set maintainer to current user if maintainer is undefined (#1592)
If pub with token, pkg has no default maintainer
2020-09-28 20:16:15 +08:00
killa
45f2f8b31f feat: impl registry token api (#1590)
Refs:
- https://github.com/npm/registry/blob/master/docs/user/authentication.md
2020-09-20 21:41:15 +08:00
fengmk2
e97835f702 feat: support custom web middlewares (#1563) 2020-04-10 10:55:26 +08:00
fengmk2
3cb3fe02f0 feat: list all package versions by date (#1557) 2020-02-23 20:43:24 +08:00
Khaidi Chu
2c511f2209 feat: add unpublishRemoveTarball mode (#1536) 2019-12-12 16:24:33 +08:00
Khaidi Chu
92b72169a8 fix: maintainer permission greater than scope (#1494) 2019-08-21 16:01:44 +08:00
fengmk2
be05886452 feat: add vary header on cdn 2019-05-24 15:44:47 +08:00
fengmk2
581925db97 feat: support cache-control header on registry request (#1468) 2019-05-23 23:49:49 +08:00
alsotang
be00b65573 refactor: add detail message to error and keep reason (#1445)
closes https://github.com/cnpm/cnpmjs.org/issues/1443
2019-03-13 15:44:55 +08:00
Khaidi Chu
99c4c3fe35 feat: support customized middlewares (#1436) 2019-02-19 22:01:33 +08:00
fengmk2
4b57c118a0 feat: can override tgz download options
speed up download from the wall
2019-01-22 22:51:13 +08:00
alsotang
d0c3f1b19e test: shouldjs change from getter to function call (#1420) 2019-01-22 21:08:55 +08:00
alsotang
b395c666be feat: proxy npm audit request (#1419)
add test for #1407
2019-01-22 21:07:27 +08:00
fengmk2
8a2f744749 fix: don't update __all__ downloads every times (#1417) 2018-12-04 18:47:54 +08:00
Albert Zhang
9bdb695375 fix: proxy to source registry when package is public scoped with encoded path (#1415) 2018-12-01 14:55:35 +08:00
Khaidi Chu
93d5def8ac fix: show package when non-semver version of semver tag (#1411)
* test: fix listen multiple times under Node.js 10
2018-11-26 17:55:24 +08:00
fengmk2
a4a25f9e38 feat: use faster etag instead of koa-etag (#1409)
* fix: should set weak etag avoid nginx(<1.7.3) remove it
2018-11-20 01:56:42 +08:00
Khaidi Chu
4a3a851256 fix: use <%- instead of <%= in user profile page (#1404) 2018-11-07 14:21:51 +08:00
Ankur Kumar
3497bae2b9 fix: Obfuscate email address (#1391)
fixes #1373
2018-10-24 00:04:31 +08:00
fengmk2
017af69cce feat: add badgeService define on config (#1387)
```js
badgeService: {
  url(subject, status, options): return string
}
```
2018-09-14 19:54:30 +08:00
fengmk2
842c0316ed feat: show versions list on package page (#1386) 2018-09-14 18:46:15 +08:00
fengmk2
fc799304d8 fix: should return [done] Sync {name} string when task finished (#1382)
the cnpm client sync need the `[done] Sync {name}` string to detect when sync task finished
2018-09-09 00:20:50 +08:00