@coorpacademy/app-review 0.8.5-alpha.0 → 0.8.5-alpha.2
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,10 +5,16 @@ 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(
|
|
8
|
+
}).then(results => {
|
|
9
9
|
// eslint-disable-next-line no-console
|
|
10
|
-
console.log(
|
|
11
|
-
|
|
10
|
+
console.log('Object.values(results)[0]');
|
|
11
|
+
// eslint-disable-next-line no-console
|
|
12
|
+
console.log(Object.values(results)[0]);
|
|
13
|
+
// eslint-disable-next-line no-console
|
|
14
|
+
console.log('Object.values(results)[0]');
|
|
15
|
+
// eslint-disable-next-line no-console
|
|
16
|
+
console.log(Object.keys(results)[0]);
|
|
17
|
+
return Object.values(results)[0];
|
|
12
18
|
});
|
|
13
19
|
return toJSON(response);
|
|
14
20
|
};
|
|
@@ -11,10 +11,16 @@ 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(
|
|
14
|
+
}).then(results => {
|
|
15
15
|
// eslint-disable-next-line no-console
|
|
16
|
-
console.log(
|
|
17
|
-
|
|
16
|
+
console.log('Object.values(results)[0]');
|
|
17
|
+
// eslint-disable-next-line no-console
|
|
18
|
+
console.log(Object.values(results)[0]);
|
|
19
|
+
// eslint-disable-next-line no-console
|
|
20
|
+
console.log('Object.values(results)[0]');
|
|
21
|
+
// eslint-disable-next-line no-console
|
|
22
|
+
console.log(Object.keys(results)[0]);
|
|
23
|
+
return Object.values(results)[0];
|
|
18
24
|
});
|
|
19
25
|
return (0, fetch_responses_1.toJSON)(response);
|
|
20
26
|
};
|
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.2+23be88b30",
|
|
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": "23be88b30d0766b0095985c047a836898c1ffba4"
|
|
75
75
|
}
|