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 CHANGED
@@ -1,3 +1,3 @@
1
- export declare const VERSION = "4.0.0-rc0";
1
+ export declare const VERSION = "4.0.0-rc1";
2
2
  export declare const DESCRIPTION = "A CLI for interacting with tracks.run and running code tests on track's servers";
3
3
  export declare function checkUpdates(): Promise<boolean>;
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-rc0";
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
- // TODO: implement the API side
115
- await Promise.resolve();
116
- console.log(score);
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
@@ -3,7 +3,7 @@
3
3
  "track": "./esm/src/main.js"
4
4
  },
5
5
  "name": "track-cli",
6
- "version": "4.0.0-rc0",
6
+ "version": "4.0.0-rc1",
7
7
  "description": "A CLI for interacting with tracks.run and running code tests on track's servers",
8
8
  "license": "MIT",
9
9
  "repository": {