88 Commits

Author SHA1 Message Date
XXBeii
f52e9c3382 feat: support sync private package from define registry (#1701)
Co-authored-by: wangjx2018 <wangjx2018@chinaunicom.cn>
2022-02-14 00:16:00 +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
b094f5692f fix: changes stream syncer without deps 2019-04-29 17:39:56 +08:00
fengmk2
6f656a0736 fix: save sync last time when successes > 1000 2018-03-15 21:22:31 +08:00
fengmk2
820ae23454 fix: control sync frequency 2017-11-08 17:51:07 +08:00
fengmk2
6c019de514 fix: changes_stream_syncer log url should not contain sync_upstream=true 2017-08-22 09:17:13 +08:00
fengmk2
6b223f887a fix: don't sync upstream on every sync request (#1216)
only effect on change_stream and web sync button
2017-08-22 08:58:02 +08:00
fengmk2
35a2d4e996 refactor: use yield instead of yield* 2017-08-21 19:58:25 +08:00
fengmk2
32434b22dc feat: trigger package:sync event with changedVersions 2017-08-17 00:44:45 -05:00
fengmk2
f55c6ba1c6 fix: ignore sync npm registry status 502 2017-03-27 15:49:34 +08:00
fengmk2
bf5f02908f fix: try to sync from official replicate (#1076) 2016-11-20 01:27:44 +08:00
fengmk2
7c2f947518 fix: limit sync fails email notice (#1006)
and skip JSONResponseFormatError and 504 server error
2016-08-02 21:42:31 +08:00
fengmk2
79ac9fb823 fix: should show new version package count (#984) 2016-07-04 00:06:42 +08:00
fengmk2
6d921a9c46 fix: make sure chagnes stream destroy (#982)
closes #981
2016-07-01 17:58:24 +08:00
fengmk2
97895bdfa5 feat: add security check badge for public package (#971) 2016-06-26 13:18:33 +08:00
fengmk2
6485e4b019 feat: add changes stream syncer (#970)
* feat: add changes stream syncer

fix scope package missing problem

close #908

* refactor: use let instead of var
2016-06-25 21:05:00 +08:00
fengmk2
e0213e18a0 fix: don't sync constructor package on exists mode (#883)
closes #857
2016-04-09 12:33:52 +08:00
fengmk2
6e11a2c8a7 fix: use better diff time to check sync status
closes #858
2016-04-05 15:43:29 +08:00
fengmk2
4169ee9c6e fix: only send warning email if no any sync data after 24h 2016-03-07 02:02:46 +08:00
fengmk2
658be3004f fix: source registry is not cnpm, ignore check status 2016-01-12 17:33:53 +08:00
fengmk2
1c680367a7 feat(sync): monitor sync status
if last_sync_time > 2 x syncInterval, send the expired
warning message to admin
2016-01-12 10:11:20 +08:00
alsotang
35fbc651cd remove bluebird
same as #767
2015-12-17 13:34:33 +08:00
fengmk2
7fd264440e feat: list packages by username
GET /-/users/:user/packages

return user packages list

{
  "user": {
    "name": $name
  },
  "packages": [
    {
      "name": $name,
      "description": $description,
      "version": $version
    }, ...
  ],
}

closes #661
2015-09-28 13:58:02 +08:00
fengmk2
7f27447dac fix(sync): add recover logic 2015-09-08 08:03:28 +08:00
fengmk2
a2c151f246 feat(sync): add sync scripts 2015-09-06 14:50:12 +08:00
fengmk2
a82e772097 fix: only sync update packages 2015-09-05 21:41:27 +08:00
fengmk2
9b9ec50ccf fix: support new array and old map format both 2015-09-05 17:49:31 +08:00
fengmk2
6e7d528c9f fix: /-/all/since had been redirect to /-/all/static/today.json
data format from map change to array

http://weibo.com/1400854834/Cz8OkaAQL
2015-09-05 17:34:39 +08:00
fengmk2
1c6eb50e05 fix: ignore 503 server error 2015-07-26 20:02:48 +08:00
fengmk2
aa8d4ac850 fix: ignore sync 503 server error 2015-07-26 19:54:07 +08:00
fengmk2
cba9d5dbbb feat: upgrade to co4 2015-02-10 09:00:55 +08:00
fengmk2
af8ae63eab fix(sync): make get popular pakcage faster
Fixes #591
2015-02-03 18:09:51 +08:00
fengmk2
89e7ae3ba2 feat(sync): web page also redirect to npm www 2015-02-03 17:28:08 +08:00
fengmk2
44c8e05563 change(sync): remove dist syncer
move to https://github.com/cnpm/mirrors

Fixes #523 #504 #307
2015-01-29 10:18:10 +08:00
fengmk2
140f5b302e refactor(sync_worker): only sync request need to sync upstream first 2014-11-07 00:56:34 +08:00
fengmk2
aa9d6479de fix(sync_worker): make sure end event will emit 2014-11-07 00:42:01 +08:00
fengmk2
c8d66f6d78 fix(sync): hotfix co uncaughtException
Closes #494
2014-11-06 23:25:14 +08:00
fengmk2
ff51d7febf feat(sync): sync python dist
https://www.python.org/ftp/python/

Closes #492
2014-11-06 17:40:38 +08:00
fengmk2
5b3d92ee43 fix(module_log): limit module sync log size to 1MB
If log size bigger than 1MB, it will be auto slice to 0.5MB
2014-11-01 22:32:46 +08:00
fengmk2
9ce8482a13 feat(sync): add min sync interval time detect
Forbidden some guy write `config.syncInterval = 1` to let sync too fast.

Closes #486
2014-10-31 14:16:16 +08:00
fengmk2
47ad267df5 fix tests 2014-10-30 13:42:51 +08:00
fengmk2
49b27d562d merge sequelize 2014-10-30 13:38:01 +08:00
fengmk2
f49ce17457 refactor(sync): fix sync/*.js tests 2014-10-30 12:11:15 +08:00
fengmk2
12b09ab559 fix use_package.js 2014-10-29 02:04:39 +08:00
fengmk2
c5b5064e40 module controllers 拆分到 controllers/package/*.js 2014-10-28 00:14:27 +08:00
dead_horse
7e583b2edf fix typo in sync popular, fix #477 2014-10-15 02:42:24 +08:00
fengmk2
c8990083a7 mv proxy/total.js to services/total.js 2014-10-13 03:17:44 +08:00
fengmk2
ef246c2ec4 controllers/total.js done 2014-10-13 02:10:38 +08:00
dead_horse
ea322c3310 add sync popular modules, close #468 2014-10-13 00:42:06 +08:00
fengmk2
615d16165c dist sync document too. fixed #420 2014-09-13 00:33:20 +08:00