@stackfactor/client-api 1.0.7 → 1.0.9

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.
package/index.js CHANGED
@@ -4,7 +4,7 @@ const config = require("./lib/config");
4
4
  const constants = require("./lib/constants");
5
5
  const integration = require("./lib/integration");
6
6
  const integrationsConfiguration = require("./lib/integrationConfiguration");
7
- const departmentTraiingPlans = require("./lib/departmentTraiingPlans");
7
+ const departmentTraingPlans = require("./lib/departmentTrainingPlans");
8
8
  const groups = require("./lib/groups");
9
9
  const role = require("./lib/role");
10
10
  const roleTemplate = require("./lib/roleTemplate");
@@ -29,7 +29,7 @@ module.exports = {
29
29
  DOCUMENT_VERSION: constants.DOCUMENT_VERSION,
30
30
  integration,
31
31
  integrationsConfiguration,
32
- departmentTraiingPlans,
32
+ departmentTraingPlans,
33
33
  groups,
34
34
  RESONSE_TYPE: constants.RESONSE_TYPE,
35
35
  role,
package/lib/axios.js CHANGED
@@ -35,7 +35,7 @@ module.exports = {
35
35
  return error.response.data.toString();
36
36
  }
37
37
  } else {
38
- return error.message ? error.message : JSON.stringify(error.toString());
38
+ return error.message ? error.message : "Unknown error";
39
39
  }
40
40
  }
41
41
  },
@@ -1,6 +1,6 @@
1
1
  const { axios } = require("./axios");
2
2
 
3
- export default {
3
+ module.exports = {
4
4
  axios: axios,
5
5
 
6
6
  /**
@@ -1,6 +1,6 @@
1
1
  const axios = require("../axios");
2
2
 
3
- export default {
3
+ module.exports = {
4
4
  axios: axios,
5
5
  /**
6
6
  * Generate content
@@ -1,6 +1,6 @@
1
1
  const { axios } = require("./axios");
2
2
 
3
- export default {
3
+ module.exports = {
4
4
  /**
5
5
  * Add a new phase to an existing template
6
6
  * @param {String} templateId - the template id
@@ -1,6 +1,6 @@
1
1
  const { axios } = require("./axios");
2
2
 
3
- export default {
3
+ module.exports = {
4
4
  /**
5
5
  * Create a new release to an existing template
6
6
  * @param {string} templateId - the template id
@@ -1,6 +1,6 @@
1
1
  const { axios } = require("./axios");
2
2
 
3
- export default {
3
+ module.exports = {
4
4
  axios: axios,
5
5
 
6
6
  /**
package/lib/users.js CHANGED
@@ -1,7 +1,7 @@
1
1
  const { axios } = require("./axios");
2
2
  import { removeNullProperties } from "../components/Utils";
3
3
 
4
- export default {
4
+ module.exports = {
5
5
  axios: axios,
6
6
 
7
7
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackfactor/client-api",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "Node.js library for the StackFactor API",
5
5
  "main": "index.js",
6
6
  "exports": {