@stackfactor/client-api 1.0.6 → 1.0.8

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/lib/axios.js CHANGED
@@ -12,9 +12,6 @@ let instance = axios.create({
12
12
  */
13
13
  module.exports = {
14
14
  axios: instance,
15
-
16
- DOCUMENT_VERSION: DOCUMENT_VERSION,
17
-
18
15
  /**
19
16
  * Returns the error as a string
20
17
  * @param {Object} error
@@ -56,7 +53,7 @@ module.exports = {
56
53
 
57
54
  /**
58
55
  * Return the error information to include just the status and the message
59
- * @param {*} error
56
+ * @param {Object} error
60
57
  * @returns Object
61
58
  */
62
59
  getErrorInformation: (error) => {
@@ -66,12 +63,10 @@ module.exports = {
66
63
  };
67
64
  },
68
65
 
69
- RESPONSE_TYPE: RESPONSE_TYPE,
70
-
71
66
  /**
72
67
  * Returns true if an exception should be handled to the business and presentation layer
73
- * @param {*} returnAllExceptions - If set true all exceptions will be passed
74
- * @param {*} error - The error returned by the server
68
+ * @param {Boolean} returnAllExceptions - If set true all exceptions will be passed
69
+ * @param {Object} error - The error returned by the server
75
70
  */
76
71
  shouldReturnError: (returnAllExceptions, error) => {
77
72
  if (getErrorType(error) === responseType.UNAUTHORIZED) {
@@ -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.6",
3
+ "version": "1.0.8",
4
4
  "description": "Node.js library for the StackFactor API",
5
5
  "main": "index.js",
6
6
  "exports": {