track-cli 4.0.0-rc0 → 4.0.0-rc1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/src/meta.d.ts +1 -1
- package/esm/src/meta.js +1 -1
- package/esm/src/track/training.js +3 -10
- package/package.json +1 -1
package/esm/src/meta.d.ts
CHANGED
package/esm/src/meta.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as colors from "../deps/deno.land/std@0.195.0/fmt/colors.js";
|
|
2
2
|
// @ts-ignore: has no exported member
|
|
3
3
|
import { CookieJar, fetch } from "node-fetch-cookies";
|
|
4
|
-
export const VERSION = "4.0.0-
|
|
4
|
+
export const VERSION = "4.0.0-rc1";
|
|
5
5
|
export const DESCRIPTION = "A CLI for interacting with tracks.run and running code tests on track's servers";
|
|
6
6
|
const VERSION_RE = /^(\d+)\.(\d+)\.(\d+)(?:-?(.*))$/;
|
|
7
7
|
function parseSemver(s) {
|
|
@@ -111,16 +111,9 @@ export class TrainingClient extends TrackClientBase {
|
|
|
111
111
|
return await this._put(`/api/train/${this.klassId}/challenges/results/${this.klassResultId}/save`, FormType.JSON, files);
|
|
112
112
|
}
|
|
113
113
|
async updateEditorScore(score) {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
// return await this._put(
|
|
118
|
-
// `/api/train/${this.klassId}/challenges/results/${this.klassResultId}/editorScore`,
|
|
119
|
-
// FormType.JSON,
|
|
120
|
-
// {
|
|
121
|
-
// editorScore: score,
|
|
122
|
-
// },
|
|
123
|
-
// );
|
|
114
|
+
return await this._put(`/api/train/${this.klassId}/challenges/results/${this.klassResultId}/editorScore`, FormType.JSON, {
|
|
115
|
+
editorScore: score,
|
|
116
|
+
});
|
|
124
117
|
}
|
|
125
118
|
async reset() {
|
|
126
119
|
return await this._put(`/api/train/${this.klassId}/challenges/results/${this.klassResultId}/reset`, FormType.JSON, {});
|
package/package.json
CHANGED