@coorpacademy/app-review 0.9.7 → 0.10.0
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/es/actions/api/fetch-correction.d.ts +2 -1
- package/es/actions/api/fetch-rank.d.ts +2 -1
- package/es/actions/api/fetch-skill.d.ts +2 -1
- package/es/actions/api/fetch-skills.d.ts +2 -1
- package/es/actions/api/fetch-slide.d.ts +2 -1
- package/es/actions/api/fetch-slides-to-review-by-skill-ref.d.ts +2 -1
- package/es/actions/api/post-answer.d.ts +2 -1
- package/es/actions/api/post-progression.d.ts +2 -1
- package/es/actions/ui/navigation.d.ts +1 -1
- package/es/actions/ui/slides.d.ts +1 -1
- package/es/common/index.d.ts +1 -1
- package/es/configure-store.d.ts +1 -1
- package/es/configure-store.js +1 -1
- package/es/reducers/data/corrections.d.ts +1 -1
- package/es/reducers/data/current-skill.d.ts +1 -1
- package/es/reducers/data/progression.d.ts +1 -1
- package/es/reducers/data/skills.d.ts +1 -1
- package/es/reducers/data/slides.d.ts +1 -1
- package/es/reducers/ui/slide.d.ts +0 -1
- package/es/reducers/ui/slide.js +2 -3
- package/es/types/common.d.ts +10 -186
- package/es/views/skills/index.d.ts +1 -1
- package/es/views/slides/index.d.ts +1 -1
- package/es/views/slides/index.js +0 -2
- package/es/views/slides/map-api-slide-to-ui.d.ts +2 -1
- package/lib/actions/api/fetch-correction.d.ts +2 -1
- package/lib/actions/api/fetch-rank.d.ts +2 -1
- package/lib/actions/api/fetch-skill.d.ts +2 -1
- package/lib/actions/api/fetch-skills.d.ts +2 -1
- package/lib/actions/api/fetch-slide.d.ts +2 -1
- package/lib/actions/api/fetch-slides-to-review-by-skill-ref.d.ts +2 -1
- package/lib/actions/api/post-answer.d.ts +2 -1
- package/lib/actions/api/post-progression.d.ts +2 -1
- package/lib/actions/ui/navigation.d.ts +1 -1
- package/lib/actions/ui/slides.d.ts +1 -1
- package/lib/common/index.d.ts +1 -1
- package/lib/configure-store.d.ts +1 -1
- package/lib/configure-store.js +2 -2
- package/lib/reducers/data/corrections.d.ts +1 -1
- package/lib/reducers/data/current-skill.d.ts +1 -1
- package/lib/reducers/data/progression.d.ts +1 -1
- package/lib/reducers/data/skills.d.ts +1 -1
- package/lib/reducers/data/slides.d.ts +1 -1
- package/lib/reducers/ui/slide.d.ts +0 -1
- package/lib/reducers/ui/slide.js +2 -3
- package/lib/types/common.d.ts +10 -186
- package/lib/views/skills/index.d.ts +1 -1
- package/lib/views/slides/index.d.ts +1 -1
- package/lib/views/slides/index.js +0 -2
- package/lib/views/slides/map-api-slide-to-ui.d.ts +2 -1
- package/locales/bs/review.json +1 -4
- package/locales/cs/review.json +6 -6
- package/locales/de/review.json +7 -7
- package/locales/es/review.json +7 -7
- package/locales/hr/review.json +1 -1
- package/locales/hu/review.json +7 -7
- package/locales/hy/review.json +1 -4
- package/locales/id/review.json +3 -3
- package/locales/it/review.json +6 -6
- package/locales/ja/review.json +5 -5
- package/locales/ko/review.json +7 -7
- package/locales/nl/review.json +6 -6
- package/locales/pl/review.json +6 -6
- package/locales/pt/review.json +7 -7
- package/locales/ro/review.json +6 -6
- package/locales/sk/review.json +3 -3
- package/locales/th/review.json +5 -5
- package/locales/tl/review.json +7 -7
- package/locales/tr/review.json +2 -2
- package/locales/uk/review.json +7 -7
- package/locales/vi/review.json +3 -3
- package/locales/zh/review.json +4 -4
- package/locales/zh_TW/review.json +6 -6
- package/package.json +4 -3
- package/es/services/fetch-correction.d.ts +0 -2
- package/es/services/fetch-correction.js +0 -14
- package/es/services/fetch-rank.d.ts +0 -2
- package/es/services/fetch-rank.js +0 -10
- package/es/services/fetch-skill.d.ts +0 -2
- package/es/services/fetch-skill.js +0 -11
- package/es/services/fetch-skills.d.ts +0 -2
- package/es/services/fetch-skills.js +0 -10
- package/es/services/fetch-slide.d.ts +0 -2
- package/es/services/fetch-slide.js +0 -10
- package/es/services/fetch-slides-to-review-by-skill-ref.d.ts +0 -2
- package/es/services/fetch-slides-to-review-by-skill-ref.js +0 -10
- package/es/services/index.d.ts +0 -2
- package/es/services/index.js +0 -18
- package/es/services/post-answer.d.ts +0 -2
- package/es/services/post-answer.js +0 -20
- package/es/services/post-progression.d.ts +0 -2
- package/es/services/post-progression.js +0 -21
- package/es/services/tools/fetch-responses.d.ts +0 -7
- package/es/services/tools/fetch-responses.js +0 -33
- package/es/services/tools/sleep.d.ts +0 -1
- package/es/services/tools/sleep.js +0 -3
- package/lib/services/fetch-correction.d.ts +0 -2
- package/lib/services/fetch-correction.js +0 -21
- package/lib/services/fetch-rank.d.ts +0 -2
- package/lib/services/fetch-rank.js +0 -17
- package/lib/services/fetch-skill.d.ts +0 -2
- package/lib/services/fetch-skill.js +0 -18
- package/lib/services/fetch-skills.d.ts +0 -2
- package/lib/services/fetch-skills.js +0 -17
- package/lib/services/fetch-slide.d.ts +0 -2
- package/lib/services/fetch-slide.js +0 -17
- package/lib/services/fetch-slides-to-review-by-skill-ref.d.ts +0 -2
- package/lib/services/fetch-slides-to-review-by-skill-ref.js +0 -17
- package/lib/services/index.d.ts +0 -2
- package/lib/services/index.js +0 -22
- package/lib/services/post-answer.d.ts +0 -2
- package/lib/services/post-answer.js +0 -27
- package/lib/services/post-progression.d.ts +0 -2
- package/lib/services/post-progression.js +0 -28
- package/lib/services/tools/fetch-responses.d.ts +0 -7
- package/lib/services/tools/fetch-responses.js +0 -40
- package/lib/services/tools/sleep.d.ts +0 -1
- package/lib/services/tools/sleep.js +0 -7
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toVoid = exports.toText = exports.toJSON = exports.ResponseError = void 0;
|
|
4
|
-
class ResponseError extends Error {
|
|
5
|
-
constructor(statusCode, statusText, body = '') {
|
|
6
|
-
super(`${statusText} ${body}`.trim());
|
|
7
|
-
this.name = 'ResponseError';
|
|
8
|
-
this.statusCode = statusCode;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
exports.ResponseError = ResponseError;
|
|
12
|
-
const toJSON = async (response) => {
|
|
13
|
-
if (!response.ok) {
|
|
14
|
-
const body = await response.text();
|
|
15
|
-
throw new ResponseError(response.status, response.statusText, body);
|
|
16
|
-
}
|
|
17
|
-
try {
|
|
18
|
-
return await response.json();
|
|
19
|
-
}
|
|
20
|
-
catch (err) {
|
|
21
|
-
throw new ResponseError(response.status, response.statusText);
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
exports.toJSON = toJSON;
|
|
25
|
-
const toText = async (response) => {
|
|
26
|
-
const body = await response.text();
|
|
27
|
-
if (!response.ok) {
|
|
28
|
-
throw new ResponseError(response.status, response.statusText, body);
|
|
29
|
-
}
|
|
30
|
-
return body;
|
|
31
|
-
};
|
|
32
|
-
exports.toText = toText;
|
|
33
|
-
const toVoid = async (response) => {
|
|
34
|
-
if (!response.ok) {
|
|
35
|
-
const body = await response.text();
|
|
36
|
-
throw new ResponseError(response.status, response.statusText, body);
|
|
37
|
-
}
|
|
38
|
-
return;
|
|
39
|
-
};
|
|
40
|
-
exports.toVoid = toVoid;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const sleep: (msToSleep: number) => Promise<void>;
|