@coorpacademy/app-review 0.8.5-alpha.8 → 0.8.6
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.
|
@@ -6,8 +6,6 @@ export const fetchSkill = async (skillRef, token) => {
|
|
|
6
6
|
const response = await crossFetch(`${host}/api/v2/skills?conditions={"ref":"${skillRef}"}`, {
|
|
7
7
|
headers: { authorization: token }
|
|
8
8
|
});
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
console.log(result);
|
|
12
|
-
return result;
|
|
9
|
+
const skills = await toJSON(response);
|
|
10
|
+
return skills[0];
|
|
13
11
|
};
|
|
@@ -12,9 +12,7 @@ const fetchSkill = async (skillRef, token) => {
|
|
|
12
12
|
const response = await (0, cross_fetch_1.default)(`${host}/api/v2/skills?conditions={"ref":"${skillRef}"}`, {
|
|
13
13
|
headers: { authorization: token }
|
|
14
14
|
});
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
console.log(result);
|
|
18
|
-
return result;
|
|
15
|
+
const skills = await (0, fetch_responses_1.toJSON)(response);
|
|
16
|
+
return skills[0];
|
|
19
17
|
};
|
|
20
18
|
exports.fetchSkill = fetchSkill;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coorpacademy/app-review",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.6",
|
|
4
4
|
"description": "",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=16.15.0"
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"main": "lib/index.js",
|
|
36
36
|
"module": "es/index.js",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@coorpacademy/components": "10.28.
|
|
38
|
+
"@coorpacademy/components": "10.28.5",
|
|
39
39
|
"@coorpacademy/redux-task": "1.1.6",
|
|
40
|
-
"@coorpacademy/translate": "6.1.5",
|
|
40
|
+
"@coorpacademy/translate": "^6.1.5",
|
|
41
41
|
"cross-fetch": "^3.1.5",
|
|
42
42
|
"jwt-decode": "^3.1.2",
|
|
43
43
|
"react-redux": "^7.2.9",
|
|
@@ -70,6 +70,5 @@
|
|
|
70
70
|
"webpack": "^5.74.0",
|
|
71
71
|
"webpack-cli": "^4.10.0",
|
|
72
72
|
"webpack-dev-server": "^4.11.1"
|
|
73
|
-
}
|
|
74
|
-
"gitHead": "d8f4bbaeeb489bc9317ac66e98f221156c02d0d5"
|
|
73
|
+
}
|
|
75
74
|
}
|