lscontests 1.10.2 → 1.10.3

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -52,35 +52,49 @@ Options:
52
52
  It performs as follows:
53
53
 
54
54
  <!-- block_cli begin -->
55
- (*The following content was automatically generated by [semantic-release](https://github.com/semantic-release/semantic-release) in Sat, 14 May 2022 16:26:45 GMT*)
55
+ (*The following content was automatically generated by [semantic-release](https://github.com/semantic-release/semantic-release) in Sat, 14 May 2022 16:37:24 GMT*)
56
56
 
57
57
  <details>
58
- <summary> <code>> lsct </code> </summary>
58
+ <summary> <code>> lsct -L en</code> </summary>
59
59
 
60
60
  ```text
61
- 没有正在进行的比赛捏
61
+ There are 2 contests is running on NowCoder
62
62
 
63
- 接下来的 3 天内在 LeetCode,Luogu,AtCoder 上有 3 场比赛
63
+ OJ: NowCoder
64
+ Contest name: 牛客竞赛博弈专题班 Sprague-Grundy 函数(SG 函数、图游戏、Nim 和)
65
+ Rule: ICPC
66
+ Start time: 5/13/2022, 04:00:00
67
+ End time: 5/21/2022, 13:00:00
68
+ https://ac.nowcoder.com/acm/contest/34655
69
+
70
+ OJ: NowCoder
71
+ Contest name: 2022 图论班第一章图匹配例题与习题
72
+ Rule: ICPC
73
+ Start time: 5/13/2022, 06:00:00
74
+ End time: 5/30/2022, 08:00:00
75
+ https://ac.nowcoder.com/acm/contest/34649
64
76
 
65
- 比赛平台: LeetCode
66
- 比赛名称: Weekly Contest 293
67
- 赛制: AtCoder
68
- 开始时间: 5/15/2022, 02:30:00
69
- 结束时间: 5/15/2022, 04:00:00
77
+ There are 3 contests on LeetCode,Luogu,AtCoder in the next 3 days
78
+
79
+ OJ: LeetCode
80
+ Contest name: Weekly Contest 293
81
+ Rule: AtCoder
82
+ Start time: 5/15/2022, 02:30:00
83
+ End time: 5/15/2022, 04:00:00
70
84
  https://leetcode.com/contest/weekly-contest-293
71
85
 
72
- 比赛平台: Luogu
73
- 比赛名称: 「WHOI」Round 1
74
- 赛制: IOI
75
- 开始时间: 5/15/2022, 06:00:00
76
- 结束时间: 5/15/2022, 10:00:00
86
+ OJ: Luogu
87
+ Contest name: 「WHOI」Round 1
88
+ Rule: IOI
89
+ Start time: 5/15/2022, 06:00:00
90
+ End time: 5/15/2022, 10:00:00
77
91
  https://www.luogu.com.cn/contest/67377
78
92
 
79
- 比赛平台: AtCoder
80
- 比赛名称: Ⓐ AtCoder Regular Contest 140
81
- 赛制: AtCoder
82
- 开始时间: 5/15/2022, 12:00:00
83
- 结束时间: 5/15/2022, 14:00:00
93
+ OJ: AtCoder
94
+ Contest name: Ⓐ AtCoder Regular Contest 140
95
+ Rule: AtCoder
96
+ Start time: 5/15/2022, 12:00:00
97
+ End time: 5/15/2022, 14:00:00
84
98
  https://atcoder.jp/contests/arc140
85
99
  ```
86
100
 
@@ -1,11 +1,17 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  exports.addOJ = exports.alloj = void 0;
7
+ const axios_1 = __importDefault(require("axios"));
8
+ const axios_retry_1 = __importDefault(require("axios-retry"));
4
9
  const atcoder_1 = require("./atcoder");
5
10
  const codeforces_1 = require("./codeforces");
6
11
  const leetcode_1 = require("./leetcode");
7
12
  const luogu_1 = require("./luogu");
8
13
  const nowcoder_1 = require("./nowcoder");
14
+ (0, axios_retry_1.default)(axios_1.default, { retries: 3, retryDelay: (retryCount) => retryCount * 1000 });
9
15
  exports.alloj = {
10
16
  at: atcoder_1.at,
11
17
  cf: codeforces_1.cf,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/oj/index.ts"],"names":[],"mappings":";;;AACA,uCAA+B;AAC/B,6CAAkC;AAClC,yCAAgC;AAChC,mCAA6B;AAC7B,yCAAgC;AAOnB,QAAA,KAAK,GAA4B;IAC1C,EAAE,EAAF,YAAE;IACF,EAAE,EAAF,eAAE;IACF,EAAE,EAAF,aAAE;IACF,EAAE,EAAF,UAAE;IACF,EAAE,EAAF,aAAE;CACL,CAAC;AAEF;;;;GAIG;AACH,SAAgB,KAAK,CAAC,IAAY,EAAE,EAAM;IAEtC,aAAK,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;AACrB,CAAC;AAHD,sBAGC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/oj/index.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,8DAAqC;AAErC,uCAA+B;AAC/B,6CAAkC;AAClC,yCAAgC;AAChC,mCAA6B;AAC7B,yCAAgC;AAEhC,IAAA,qBAAU,EAAC,eAAK,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,GAAG,IAAI,EAAE,CAAC,CAAC;AAOpE,QAAA,KAAK,GAA4B;IAC1C,EAAE,EAAF,YAAE;IACF,EAAE,EAAF,eAAE;IACF,EAAE,EAAF,aAAE;IACF,EAAE,EAAF,UAAE;IACF,EAAE,EAAF,aAAE;CACL,CAAC;AAEF;;;;GAIG;AACH,SAAgB,KAAK,CAAC,IAAY,EAAE,EAAM;IAEtC,aAAK,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;AACrB,CAAC;AAHD,sBAGC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lscontests",
3
- "version": "1.10.2",
3
+ "version": "1.10.3",
4
4
  "description": "A tool to get information about the contests on each OJ",
5
5
  "keywords": [
6
6
  "cli",
@@ -33,6 +33,7 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "axios": "^0.27.2",
36
+ "axios-retry": "^3.2.5",
36
37
  "cheerio": "^1.0.0-rc.10",
37
38
  "commander": "^9.2.0",
38
39
  "lodash": "^4.17.21",