@coorpacademy/app-review 0.2.1-alpha.2 → 0.2.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.
@@ -7,7 +7,7 @@ export const postAnswer = async (progression, token, answer) => {
7
7
  const { host } = decode(token);
8
8
  const response = await crossFetch(`${host}/api/v2/progressions/${progressionId}/answers`, {
9
9
  method: 'post',
10
- headers: { 'content-type': 'application/json' },
10
+ headers: { authorization: token, 'content-type': 'application/json' },
11
11
  body: JSON.stringify({
12
12
  content: {
13
13
  ref: slideRef,
@@ -5,7 +5,7 @@ export const postProgression = async (skillRef, token) => {
5
5
  const { host } = decode(token);
6
6
  const response = await crossFetch(`${host}/api/v2/progressions`, {
7
7
  method: 'post',
8
- headers: { 'content-type': 'application/json' },
8
+ headers: { authorization: token, 'content-type': 'application/json' },
9
9
  body: JSON.stringify({
10
10
  content: {
11
11
  ref: skillRef,
@@ -47,7 +47,7 @@ export var postAnswer = function (progression, token, answer) { return __awaiter
47
47
  host = decode(token).host;
48
48
  return [4 /*yield*/, crossFetch("".concat(host, "/api/v2/progressions/").concat(progressionId, "/answers"), {
49
49
  method: 'post',
50
- headers: { 'content-type': 'application/json' },
50
+ headers: { authorization: token, 'content-type': 'application/json' },
51
51
  body: JSON.stringify({
52
52
  content: {
53
53
  ref: slideRef,
@@ -45,7 +45,7 @@ export var postProgression = function (skillRef, token) { return __awaiter(void
45
45
  host = decode(token).host;
46
46
  return [4 /*yield*/, crossFetch("".concat(host, "/api/v2/progressions"), {
47
47
  method: 'post',
48
- headers: { 'content-type': 'application/json' },
48
+ headers: { authorization: token, 'content-type': 'application/json' },
49
49
  body: JSON.stringify({
50
50
  content: {
51
51
  ref: skillRef,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coorpacademy/app-review",
3
- "version": "0.2.1-alpha.2+e720583b0",
3
+ "version": "0.2.2",
4
4
  "description": "",
5
5
  "engines": {
6
6
  "node": ">=16.15.0"
@@ -41,8 +41,8 @@
41
41
  "./package.json": "./package.json"
42
42
  },
43
43
  "dependencies": {
44
- "@coorpacademy/components": "10.22.15",
45
- "@coorpacademy/redux-task": "1.1.5",
44
+ "@coorpacademy/components": "10.22.17",
45
+ "@coorpacademy/redux-task": "^1.1.5",
46
46
  "cross-fetch": "^3.1.5",
47
47
  "jwt-decode": "^3.1.2",
48
48
  "react-redux": "^8.0.1",
@@ -78,5 +78,5 @@
78
78
  "ts-node": "^10.9.1",
79
79
  "typescript": "^4.7.4"
80
80
  },
81
- "gitHead": "e720583b026b466fefadb2579980bad25d497f00"
81
+ "gitHead": "7166339db687fdaec68f846acfbd27f96b5b531e"
82
82
  }
@@ -14,7 +14,7 @@ export const postAnswer = async (
14
14
  const {host}: JWT = decode(token);
15
15
  const response = await crossFetch(`${host}/api/v2/progressions/${progressionId}/answers`, {
16
16
  method: 'post',
17
- headers: {'content-type': 'application/json'},
17
+ headers: {authorization: token, 'content-type': 'application/json'},
18
18
  body: JSON.stringify({
19
19
  content: {
20
20
  ref: slideRef,
@@ -11,7 +11,7 @@ export const postProgression = async (
11
11
  const {host}: JWT = decode(token);
12
12
  const response = await crossFetch(`${host}/api/v2/progressions`, {
13
13
  method: 'post',
14
- headers: {'content-type': 'application/json'},
14
+ headers: {authorization: token, 'content-type': 'application/json'},
15
15
  body: JSON.stringify({
16
16
  content: {
17
17
  ref: skillRef,