@coorpacademy/app-review 0.8.5-alpha.5 → 0.8.5-alpha.8
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.
|
@@ -5,16 +5,9 @@ export const fetchSkill = async (skillRef, token) => {
|
|
|
5
5
|
const { host } = decode(token);
|
|
6
6
|
const response = await crossFetch(`${host}/api/v2/skills?conditions={"ref":"${skillRef}"}`, {
|
|
7
7
|
headers: { authorization: token }
|
|
8
|
-
}).then(data => {
|
|
9
|
-
// eslint-disable-next-line no-console
|
|
10
|
-
console.log(data);
|
|
11
|
-
// eslint-disable-next-line no-console
|
|
12
|
-
console.log(typeof data);
|
|
13
|
-
return data;
|
|
14
8
|
});
|
|
9
|
+
const result = toJSON(response);
|
|
15
10
|
// eslint-disable-next-line no-console
|
|
16
|
-
console.log(
|
|
17
|
-
|
|
18
|
-
console.log(typeof response);
|
|
19
|
-
return toJSON(response);
|
|
11
|
+
console.log(result);
|
|
12
|
+
return result;
|
|
20
13
|
};
|
|
@@ -11,17 +11,10 @@ const fetchSkill = async (skillRef, token) => {
|
|
|
11
11
|
const { host } = (0, jwt_decode_1.default)(token);
|
|
12
12
|
const response = await (0, cross_fetch_1.default)(`${host}/api/v2/skills?conditions={"ref":"${skillRef}"}`, {
|
|
13
13
|
headers: { authorization: token }
|
|
14
|
-
}).then(data => {
|
|
15
|
-
// eslint-disable-next-line no-console
|
|
16
|
-
console.log(data);
|
|
17
|
-
// eslint-disable-next-line no-console
|
|
18
|
-
console.log(typeof data);
|
|
19
|
-
return data;
|
|
20
14
|
});
|
|
15
|
+
const result = (0, fetch_responses_1.toJSON)(response);
|
|
21
16
|
// eslint-disable-next-line no-console
|
|
22
|
-
console.log(
|
|
23
|
-
|
|
24
|
-
console.log(typeof response);
|
|
25
|
-
return (0, fetch_responses_1.toJSON)(response);
|
|
17
|
+
console.log(result);
|
|
18
|
+
return result;
|
|
26
19
|
};
|
|
27
20
|
exports.fetchSkill = fetchSkill;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coorpacademy/app-review",
|
|
3
|
-
"version": "0.8.5-alpha.
|
|
3
|
+
"version": "0.8.5-alpha.8+d8f4bbaee",
|
|
4
4
|
"description": "",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=16.15.0"
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"webpack-cli": "^4.10.0",
|
|
72
72
|
"webpack-dev-server": "^4.11.1"
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "d8f4bbaeeb489bc9317ac66e98f221156c02d0d5"
|
|
75
75
|
}
|