lscontests 2.6.0 → 2.6.2
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +102 -124
- package/dist/lib/oj/nowcoder.js +2 -1
- package/dist/lib/oj/nowcoder.js.map +1 -1
- package/dist/server.js +3 -7
- package/dist/server.js.map +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
@@ -56,7 +56,7 @@ Options:
|
|
56
56
|
It performs as follows:
|
57
57
|
|
58
58
|
<!-- block_cli begin -->
|
59
|
-
(*The following content was automatically generated using [semantic-release](https://github.com/semantic-release/semantic-release) on
|
59
|
+
(*The following content was automatically generated using [semantic-release](https://github.com/semantic-release/semantic-release) on Sun, 16 Oct 2022 05:22:37 GMT*)
|
60
60
|
|
61
61
|
<details>
|
62
62
|
<summary> <code>> lsct -L en</code> </summary>
|
@@ -64,78 +64,28 @@ It performs as follows:
|
|
64
64
|
```text
|
65
65
|
There are no running contests on AtCoder,Codeforces,LeetCode,Luogu,NowCoder
|
66
66
|
|
67
|
-
There are
|
68
|
-
|
69
|
-
OJ: Luogu
|
70
|
-
Contest name: FAOI-R1 & CSP 赛前信心赛
|
71
|
-
Rule: LeDuo
|
72
|
-
Start time: 7/22/2022, 09:00:00
|
73
|
-
End time: 7/22/2022, 13:00:00
|
74
|
-
https://www.luogu.com.cn/contest/73362
|
75
|
-
|
76
|
-
OJ: NowCoder
|
77
|
-
Contest name: "蔚来杯"2022 牛客暑期多校训练营 2
|
78
|
-
Rule: ICPC
|
79
|
-
Start time: 7/23/2022, 04:00:00
|
80
|
-
End time: 7/23/2022, 09:00:00
|
81
|
-
https://ac.nowcoder.com/acm/contest/33187
|
82
|
-
|
83
|
-
OJ: Luogu
|
84
|
-
Contest name: 「KDOI」Round 1
|
85
|
-
Rule: IOI
|
86
|
-
Start time: 7/23/2022, 06:00:00
|
87
|
-
End time: 7/23/2022, 10:00:00
|
88
|
-
https://www.luogu.com.cn/contest/71146
|
67
|
+
There are 3 contests on AtCoder,Codeforces in the next 3 days
|
89
68
|
|
90
69
|
OJ: AtCoder
|
91
|
-
Contest name: Ⓐ AtCoder
|
92
|
-
Rule: AtCoder
|
93
|
-
Start time: 7/23/2022, 12:00:00
|
94
|
-
End time: 7/23/2022, 13:40:00
|
95
|
-
https://atcoder.jp/contests/abc261
|
96
|
-
|
97
|
-
OJ: LeetCode
|
98
|
-
Contest name: Biweekly Contest 83
|
99
|
-
Rule: AtCoder
|
100
|
-
Start time: 7/23/2022, 14:30:00
|
101
|
-
End time: 7/23/2022, 16:00:00
|
102
|
-
https://leetcode.com/contest/biweekly-contest-83
|
103
|
-
|
104
|
-
OJ: LeetCode
|
105
|
-
Contest name: Weekly Contest 303
|
70
|
+
Contest name: Ⓐ AtCoder Regular Contest 151
|
106
71
|
Rule: AtCoder
|
107
|
-
Start time:
|
108
|
-
End time:
|
109
|
-
https://
|
72
|
+
Start time: 10/16/2022, 12:00:00
|
73
|
+
End time: 10/16/2022, 14:00:00
|
74
|
+
https://atcoder.jp/contests/arc151
|
110
75
|
|
111
|
-
OJ:
|
112
|
-
Contest name:
|
76
|
+
OJ: Codeforces
|
77
|
+
Contest name: Codeforces Round #828 (Div. 3)
|
113
78
|
Rule: ICPC
|
114
|
-
Start time:
|
115
|
-
End time:
|
116
|
-
https://
|
117
|
-
|
118
|
-
OJ: Luogu
|
119
|
-
Contest name: 【LGR-113】洛谷 7 月普及组月赛 & JROI R6
|
120
|
-
Rule: OI
|
121
|
-
Start time: 7/24/2022, 06:00:00
|
122
|
-
End time: 7/24/2022, 09:30:00
|
123
|
-
https://www.luogu.com.cn/contest/65483
|
79
|
+
Start time: 10/16/2022, 14:35:00
|
80
|
+
End time: 10/16/2022, 16:50:00
|
81
|
+
https://codeforces.com/contests/1744
|
124
82
|
|
125
83
|
OJ: Codeforces
|
126
|
-
Contest name: Codeforces Round
|
127
|
-
Rule: Codeforces
|
128
|
-
Start time: 7/24/2022, 14:35:00
|
129
|
-
End time: 7/24/2022, 17:05:00
|
130
|
-
https://codeforces.com/contests/1710
|
131
|
-
https://codeforces.com/contests/1711
|
132
|
-
|
133
|
-
OJ: NowCoder
|
134
|
-
Contest name: "蔚来杯"2022 牛客暑期多校训练营 3
|
84
|
+
Contest name: Educational Codeforces Round 137 (Rated for Div. 2)
|
135
85
|
Rule: ICPC
|
136
|
-
Start time:
|
137
|
-
End time:
|
138
|
-
https://
|
86
|
+
Start time: 10/17/2022, 14:35:00
|
87
|
+
End time: 10/17/2022, 16:35:00
|
88
|
+
https://codeforces.com/contests/1743
|
139
89
|
```
|
140
90
|
|
141
91
|
</details>
|
@@ -146,22 +96,42 @@ https://ac.nowcoder.com/acm/contest/33188
|
|
146
96
|
```text
|
147
97
|
There are no running contests on AtCoder,Codeforces
|
148
98
|
|
149
|
-
There are
|
99
|
+
There are 5 contests on AtCoder,Codeforces in the next 7 days
|
150
100
|
|
151
101
|
OJ: AtCoder
|
152
|
-
Contest name: Ⓐ AtCoder
|
102
|
+
Contest name: Ⓐ AtCoder Regular Contest 151
|
153
103
|
Rule: AtCoder
|
154
|
-
Start time:
|
155
|
-
End time:
|
156
|
-
https://atcoder.jp/contests/
|
104
|
+
Start time: 10/16/2022, 12:00:00
|
105
|
+
End time: 10/16/2022, 14:00:00
|
106
|
+
https://atcoder.jp/contests/arc151
|
157
107
|
|
158
108
|
OJ: Codeforces
|
159
|
-
Contest name: Codeforces Round
|
160
|
-
Rule:
|
161
|
-
Start time:
|
162
|
-
End time:
|
163
|
-
https://codeforces.com/contests/
|
164
|
-
|
109
|
+
Contest name: Codeforces Round #828 (Div. 3)
|
110
|
+
Rule: ICPC
|
111
|
+
Start time: 10/16/2022, 14:35:00
|
112
|
+
End time: 10/16/2022, 16:50:00
|
113
|
+
https://codeforces.com/contests/1744
|
114
|
+
|
115
|
+
OJ: Codeforces
|
116
|
+
Contest name: Educational Codeforces Round 137 (Rated for Div. 2)
|
117
|
+
Rule: ICPC
|
118
|
+
Start time: 10/17/2022, 14:35:00
|
119
|
+
End time: 10/17/2022, 16:35:00
|
120
|
+
https://codeforces.com/contests/1743
|
121
|
+
|
122
|
+
OJ: Codeforces
|
123
|
+
Contest name: Educational Codeforces Round 138 (Rated for Div. 2)
|
124
|
+
Rule: ICPC
|
125
|
+
Start time: 10/20/2022, 14:35:00
|
126
|
+
End time: 10/20/2022, 16:35:00
|
127
|
+
https://codeforces.com/contests/1749
|
128
|
+
|
129
|
+
OJ: AtCoder
|
130
|
+
Contest name: Ⓐ キーエンスプログラミングコンテスト 2022(AtCoder Beginner Contest 274)
|
131
|
+
Rule: AtCoder
|
132
|
+
Start time: 10/22/2022, 12:00:00
|
133
|
+
End time: 10/22/2022, 13:40:00
|
134
|
+
https://atcoder.jp/contests/abc274
|
165
135
|
```
|
166
136
|
|
167
137
|
</details>
|
@@ -175,91 +145,99 @@ https://codeforces.com/contests/1711
|
|
175
145
|
"upcoming": [
|
176
146
|
{
|
177
147
|
"ojName": "AtCoder",
|
178
|
-
"name": "Ⓐ AtCoder
|
148
|
+
"name": "Ⓐ AtCoder Regular Contest 151",
|
179
149
|
"rule": "AtCoder",
|
180
|
-
"startTime": "2022-
|
181
|
-
"endTime": "2022-
|
182
|
-
"url": "https://atcoder.jp/contests/
|
150
|
+
"startTime": "2022-10-16T12:00:00.000Z",
|
151
|
+
"endTime": "2022-10-16T14:00:00.000Z",
|
152
|
+
"url": "https://atcoder.jp/contests/arc151"
|
183
153
|
},
|
184
154
|
{
|
185
155
|
"ojName": "AtCoder",
|
186
|
-
"name": "Ⓐ AtCoder
|
156
|
+
"name": "Ⓐ キーエンスプログラミングコンテスト2022(AtCoder Beginner Contest 274)",
|
187
157
|
"rule": "AtCoder",
|
188
|
-
"startTime": "2022-
|
189
|
-
"endTime": "2022-
|
190
|
-
"url": "https://atcoder.jp/contests/
|
158
|
+
"startTime": "2022-10-22T12:00:00.000Z",
|
159
|
+
"endTime": "2022-10-22T13:40:00.000Z",
|
160
|
+
"url": "https://atcoder.jp/contests/abc274"
|
191
161
|
},
|
192
162
|
{
|
193
163
|
"ojName": "AtCoder",
|
194
|
-
"name": "Ⓐ AtCoder Beginner Contest
|
164
|
+
"name": "Ⓐ AtCoder Beginner Contest 275",
|
195
165
|
"rule": "AtCoder",
|
196
|
-
"startTime": "2022-
|
197
|
-
"endTime": "2022-
|
198
|
-
"url": "https://atcoder.jp/contests/
|
166
|
+
"startTime": "2022-10-29T12:00:00.000Z",
|
167
|
+
"endTime": "2022-10-29T13:40:00.000Z",
|
168
|
+
"url": "https://atcoder.jp/contests/abc275"
|
199
169
|
},
|
200
170
|
{
|
201
171
|
"ojName": "AtCoder",
|
202
|
-
"name": "
|
172
|
+
"name": "Ⓗ TOYOTA MOTOR CORPORATION Programming Contest 2022(AtCoder Heuristic Contest 015)",
|
203
173
|
"rule": "AtCoder",
|
204
|
-
"startTime": "2022-
|
205
|
-
"endTime": "2022-
|
206
|
-
"url": "https://atcoder.jp/contests/
|
174
|
+
"startTime": "2022-10-30T06:00:00.000Z",
|
175
|
+
"endTime": "2022-10-30T10:00:00.000Z",
|
176
|
+
"url": "https://atcoder.jp/contests/ahc015"
|
207
177
|
},
|
208
178
|
{
|
209
|
-
"ojName": "
|
210
|
-
"name": "
|
211
|
-
"rule": "
|
212
|
-
"startTime": "2022-
|
213
|
-
"endTime": "2022-
|
214
|
-
"url": "https://
|
179
|
+
"ojName": "Codeforces",
|
180
|
+
"name": "Codeforces Round #828 (Div. 3)",
|
181
|
+
"rule": "ICPC",
|
182
|
+
"startTime": "2022-10-16T14:35:00.000Z",
|
183
|
+
"endTime": "2022-10-16T16:50:00.000Z",
|
184
|
+
"url": "https://codeforces.com/contests/1744"
|
215
185
|
},
|
216
186
|
{
|
217
|
-
"ojName": "
|
218
|
-
"name": "
|
219
|
-
"rule": "
|
220
|
-
"startTime": "2022-
|
221
|
-
"endTime": "2022-
|
222
|
-
"url": "https://
|
187
|
+
"ojName": "Codeforces",
|
188
|
+
"name": "Educational Codeforces Round 137 (Rated for Div. 2)",
|
189
|
+
"rule": "ICPC",
|
190
|
+
"startTime": "2022-10-17T14:35:00.000Z",
|
191
|
+
"endTime": "2022-10-17T16:35:00.000Z",
|
192
|
+
"url": "https://codeforces.com/contests/1743"
|
223
193
|
},
|
224
194
|
{
|
225
|
-
"ojName": "
|
226
|
-
"name": "
|
227
|
-
"rule": "
|
228
|
-
"startTime": "2022-
|
229
|
-
"endTime": "2022-
|
230
|
-
"url": "https://
|
195
|
+
"ojName": "Codeforces",
|
196
|
+
"name": "Educational Codeforces Round 138 (Rated for Div. 2)",
|
197
|
+
"rule": "ICPC",
|
198
|
+
"startTime": "2022-10-20T14:35:00.000Z",
|
199
|
+
"endTime": "2022-10-20T16:35:00.000Z",
|
200
|
+
"url": "https://codeforces.com/contests/1749"
|
231
201
|
},
|
232
202
|
{
|
233
|
-
"name": "Codeforces Round #810 (Div. 1/2)",
|
234
203
|
"ojName": "Codeforces",
|
204
|
+
"name": "Codeforces Round (Div. 2)",
|
235
205
|
"rule": "Codeforces",
|
236
|
-
"startTime": "2022-
|
237
|
-
"endTime": "2022-
|
238
|
-
"url": "https://codeforces.com/contests/
|
206
|
+
"startTime": "2022-10-23T10:05:00.000Z",
|
207
|
+
"endTime": "2022-10-23T12:05:00.000Z",
|
208
|
+
"url": "https://codeforces.com/contests/1732"
|
239
209
|
},
|
240
210
|
{
|
241
211
|
"ojName": "Codeforces",
|
242
|
-
"name": "
|
212
|
+
"name": "Codeforces Round (Div. 1 + Div. 2)",
|
243
213
|
"rule": "Codeforces",
|
244
|
-
"startTime": "2022-
|
245
|
-
"endTime": "2022-
|
246
|
-
"url": "https://codeforces.com/contests/
|
214
|
+
"startTime": "2022-10-29T09:05:00.000Z",
|
215
|
+
"endTime": "2022-10-29T11:05:00.000Z",
|
216
|
+
"url": "https://codeforces.com/contests/1740"
|
247
217
|
},
|
248
218
|
{
|
249
219
|
"ojName": "Codeforces",
|
250
220
|
"name": "Codeforces Round (Div. 2)",
|
251
221
|
"rule": "Codeforces",
|
252
|
-
"startTime": "2022-
|
253
|
-
"endTime": "2022-
|
254
|
-
"url": "https://codeforces.com/contests/
|
222
|
+
"startTime": "2022-11-04T14:35:00.000Z",
|
223
|
+
"endTime": "2022-11-04T16:35:00.000Z",
|
224
|
+
"url": "https://codeforces.com/contests/1747"
|
225
|
+
},
|
226
|
+
{
|
227
|
+
"ojName": "Codeforces",
|
228
|
+
"name": "Codeforces Round (Div. 1 + Div. 2)",
|
229
|
+
"rule": "Codeforces",
|
230
|
+
"startTime": "2022-11-06T14:35:00.000Z",
|
231
|
+
"endTime": "2022-11-06T16:35:00.000Z",
|
232
|
+
"url": "https://codeforces.com/contests/1750"
|
255
233
|
},
|
256
234
|
{
|
257
235
|
"ojName": "Codeforces",
|
258
236
|
"name": "Codeforces Round (Div. 2)",
|
259
237
|
"rule": "Codeforces",
|
260
|
-
"startTime": "2022-
|
261
|
-
"endTime": "2022-
|
262
|
-
"url": "https://codeforces.com/contests/
|
238
|
+
"startTime": "2022-12-27T14:35:00.000Z",
|
239
|
+
"endTime": "2022-12-27T16:35:00.000Z",
|
240
|
+
"url": "https://codeforces.com/contests/1731"
|
263
241
|
}
|
264
242
|
]
|
265
243
|
}
|
package/dist/lib/oj/nowcoder.js
CHANGED
@@ -15,6 +15,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.nc = void 0;
|
16
16
|
const axios_1 = __importDefault(require("axios"));
|
17
17
|
const cheerio_1 = require("cheerio");
|
18
|
+
const lodash_1 = require("lodash");
|
18
19
|
var topCategoryFilter;
|
19
20
|
(function (topCategoryFilter) {
|
20
21
|
topCategoryFilter[topCategoryFilter["NOWCODERSERIES"] = 13] = "NOWCODERSERIES";
|
@@ -48,7 +49,7 @@ exports.nc = {
|
|
48
49
|
return res.filter(res => res.signUpEndCountDownTime > 0).map((res) => {
|
49
50
|
return {
|
50
51
|
ojName: exports.nc.name,
|
51
|
-
name: res.contestName,
|
52
|
+
name: (0, lodash_1.unescape)(res.contestName),
|
52
53
|
rule: ruleRecord[res.type],
|
53
54
|
startTime: new Date(res.contestStartTime),
|
54
55
|
endTime: new Date(res.contestEndTime),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"nowcoder.js","sourceRoot":"","sources":["../../../src/lib/oj/nowcoder.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,qCAA+B;
|
1
|
+
{"version":3,"file":"nowcoder.js","sourceRoot":"","sources":["../../../src/lib/oj/nowcoder.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,qCAA+B;AAG/B,mCAAkC;AA8ClC,IAAK,iBAIJ;AAJD,WAAK,iBAAiB;IAElB,8EAAmB,CAAA;IACnB,4EAAa,CAAA;AACjB,CAAC,EAJI,iBAAiB,KAAjB,iBAAiB,QAIrB;AAED,MAAM,GAAG,GAAG,+CAA+C,CAAC;AAE5D,SAAe,aAAa,CAAC,GAAsB;;QAE/C,MAAM,IAAI,GAAG,CAAC,MAAM,eAAK,CAAC,GAAG,CAAC,GAAG,GAAG,sBAAsB,GAAG,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;QACvE,MAAM,CAAC,GAAG,IAAA,cAAI,EAAC,IAAI,CAAC,CAAC;QACrB,MAAM,EAAE,GAAa,EAAE,CAAC;QACxB,CAAC,CAAC,qCAAqC,CAAC,CAAC,IAAI,CAAC;YAE1C,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,IAAA,cAAI,EAAC,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;QAChE,CAAC,CAAC,CAAC;QACH,OAAO,EAAE,CAAC;IACd,CAAC;CAAA;AAED,MAAM,UAAU,GAAyB;IACrC,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,IAAI;IACP,CAAC,EAAE,KAAK;CACX,CAAC;AAEW,QAAA,EAAE,GAAO;IAClB,IAAI,EAAE,UAAU;IACV,GAAG;;YAEL,MAAM,GAAG,GAAa;gBAClB,GAAG,MAAM,aAAa,CAAC,iBAAiB,CAAC,cAAc,CAAC;gBACxD,GAAG,MAAM,aAAa,CAAC,iBAAiB,CAAC,aAAa,CAAC;aAC1D,CAAC;YACF,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,sBAAsB,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAW,EAAE;gBAE1E,OAAO;oBACH,MAAM,EAAE,UAAE,CAAC,IAAI;oBACf,IAAI,EAAE,IAAA,iBAAQ,EAAC,GAAG,CAAC,WAAW,CAAC;oBAC/B,IAAI,EAAE,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC;oBAC1B,SAAS,EAAE,IAAI,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC;oBACzC,OAAO,EAAE,IAAI,IAAI,CAAC,GAAG,CAAC,cAAc,CAAC;oBACrC,GAAG,EAAE,uCAAuC,GAAG,CAAC,SAAS,EAAE;iBAC9D,CAAC;YACN,CAAC,CAAC,CAAC;QACP,CAAC;KAAA;CACJ,CAAC"}
|
package/dist/server.js
CHANGED
@@ -22,12 +22,9 @@ const pangu_1 = __importDefault(require("pangu"));
|
|
22
22
|
const crypto_1 = require("crypto");
|
23
23
|
const commander_1 = require("commander");
|
24
24
|
const package_json_1 = require("../package.json");
|
25
|
-
const lodash_1 = __importDefault(require("lodash"));
|
26
25
|
const fs_1 = require("fs");
|
27
26
|
const await_lock_1 = __importDefault(require("await-lock"));
|
28
27
|
const app = (0, express_1.default)();
|
29
|
-
function assertType(obj) {
|
30
|
-
}
|
31
28
|
const logger = () => {
|
32
29
|
return (req, res, next) => {
|
33
30
|
const start = process.hrtime();
|
@@ -68,8 +65,6 @@ app.get("/ics", (req, res) => __awaiter(void 0, void 0, void 0, function* () {
|
|
68
65
|
}
|
69
66
|
else if (!oArg)
|
70
67
|
oArg = Object.keys(oj_1.alloj);
|
71
|
-
assertType(oArg);
|
72
|
-
assertType(lArg);
|
73
68
|
const data = yield getIcs(lArg, oArg);
|
74
69
|
res.setHeader("Content-Type", "text/calendar");
|
75
70
|
res.send(data);
|
@@ -101,7 +96,7 @@ function checkCache() {
|
|
101
96
|
try {
|
102
97
|
if (contestsCache.lastUpdate < Date.now() - 1000 * 60 * 5) {
|
103
98
|
const c = yield new _1.default({ days: -1 }).getContests();
|
104
|
-
contestsCache.contests =
|
99
|
+
contestsCache.contests = c.running.concat(...c.upcoming);
|
105
100
|
contestsCache.contests = contestsCache.contests.filter(c => c.endTime.getTime() - c.startTime.getTime() < 1000 * 60 * 60 * 24 * 2); // ignore too long contests
|
106
101
|
contestsCache.lastUpdate = Date.now();
|
107
102
|
}
|
@@ -141,7 +136,8 @@ function getIcs(lang, ojs) {
|
|
141
136
|
const { value, error } = (0, ics_1.createEvents)(events);
|
142
137
|
if (error)
|
143
138
|
throw error;
|
144
|
-
|
139
|
+
if (!value)
|
140
|
+
throw new Error("No valid ics string.");
|
145
141
|
return icsPostProcess(value);
|
146
142
|
});
|
147
143
|
}
|
package/dist/server.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,sDAA8B;AAC9B,yCAAwC;AACxC,iCAAiC;AACjC,qCAAuC;AACvC,6BAA6E;AAC7E,kDAA0B;AAC1B,mCAAoC;AACpC,yCAAoC;AACpC,kDAA+C;AAC/C,
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,sDAA8B;AAC9B,yCAAwC;AACxC,iCAAiC;AACjC,qCAAuC;AACvC,6BAA6E;AAC7E,kDAA0B;AAC1B,mCAAoC;AACpC,yCAAoC;AACpC,kDAA+C;AAC/C,2BAAkC;AAClC,4DAAmC;AAEnC,MAAM,GAAG,GAAG,IAAA,iBAAO,GAAE,CAAC;AAEtB,MAAM,MAAM,GAAG,GAAG,EAAE;IAEhB,OAAO,CAAC,GAAo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CAAC,CAAC;QACH,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,IAAA,kBAAY,EAAC,MAAM,CAAC,CAAC;QAC9C,IAAG,KAAK;YAAE,MAAM,KAAK,CAAC;QACtB,IAAG,CAAC,KAAK;YAAE,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;QACnD,OAAO,cAAc,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC;CAAA;AAED,MAAM,OAAO,GAAG,IAAI,mBAAO,EAAE;KACxB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,kBAAG,CAAC,CAAC,CAAC,CAAC,CAAC;KACzB,OAAO,CAAC,sBAAO,CAAC;KAChB,MAAM,CAAC,oBAAoB,EAAE,mBAAmB,EAAE,SAAS,CAAC;KAC5D,MAAM,CAAC,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,CAAC,CAAC;AAC/D,OAAO,CAAC,KAAK,EAAE,CAAC;AAEhB,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC,IAAc,CAAC;AAC3C,IAAI,IAAI,GAAoB,OAAO,CAAC,IAAI,EAAE,CAAC,IAAc,CAAC;AAC1D,IAAI,GAAG,QAAQ,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;AAC1B,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE;IAExB,MAAM,MAAM,GAAG,UAAU,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,IAAI,IAAI,GAAG,CAAC;IAC5E,OAAO,CAAC,GAAG,CAAC,gBAAgB,sBAAO,iBAAiB,MAAM,EAAE,CAAC,CAAC;AAClE,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "lscontests",
|
3
|
-
"version": "2.6.
|
3
|
+
"version": "2.6.2",
|
4
4
|
"description": "A tool to get information about the contests on each OJ",
|
5
5
|
"keywords": [
|
6
6
|
"cli",
|
@@ -36,7 +36,7 @@
|
|
36
36
|
},
|
37
37
|
"dependencies": {
|
38
38
|
"await-lock": "^2.2.2",
|
39
|
-
"axios": "^
|
39
|
+
"axios": "^1.1.3",
|
40
40
|
"axios-retry": "^3.2.5",
|
41
41
|
"cheerio": "^1.0.0-rc.11",
|
42
42
|
"commander": "^9.3.0",
|
@@ -50,16 +50,16 @@
|
|
50
50
|
"@types/express": "^4.17.13",
|
51
51
|
"@types/lodash": "^4.14.182",
|
52
52
|
"@types/node": "^18.0.0",
|
53
|
-
"@types/pangu": "^
|
53
|
+
"@types/pangu": "^4.0.0",
|
54
54
|
"@typescript-eslint/eslint-plugin": "^5.27.1",
|
55
55
|
"@typescript-eslint/parser": "^5.27.1",
|
56
56
|
"cpy-cli": "^4.1.0",
|
57
57
|
"cz-conventional-changelog": "3.3.0",
|
58
58
|
"eslint": "^8.17.0",
|
59
|
-
"markdownlint-cli": "^0.
|
59
|
+
"markdownlint-cli": "^0.32.0",
|
60
60
|
"rimraf": "^3.0.2",
|
61
61
|
"tsx": "^3.4.2",
|
62
|
-
"typedoc": "^0.
|
62
|
+
"typedoc": "^0.23.16",
|
63
63
|
"typedoc-plugin-extras": "^2.2.3",
|
64
64
|
"typescript": "^4.7.3"
|
65
65
|
},
|