@stackfactor/client-api 1.1.8 → 1.1.10

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.
@@ -94,16 +94,16 @@ export const generateLearningActivityContent = (
94
94
  token
95
95
  ) => {
96
96
  return new Promise(function (resolve, reject) {
97
- const data = {
97
+ const requestData = {
98
98
  learningActivity: learningActivity,
99
99
  microSkillId: microSkillId,
100
100
  sections: sections,
101
101
  };
102
- const request = client.get(
102
+ const request = client.post(
103
103
  `api/v1/learningcontent/generatelearningactivitycontent/${skillId}`,
104
+ requestData,
104
105
  {
105
106
  headers: { authorization: token },
106
- data: data,
107
107
  }
108
108
  );
109
109
  request
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackfactor/client-api",
3
- "version": "1.1.8",
3
+ "version": "1.1.10",
4
4
  "description": "Node.js library for the StackFactor API",
5
5
  "main": "index.js",
6
6
  "exports": {