@stackfactor/client-api 1.0.6 → 1.0.7

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.
Files changed (2) hide show
  1. package/lib/axios.js +3 -8
  2. package/package.json +1 -1
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) {
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.7",
4
4
  "description": "Node.js library for the StackFactor API",
5
5
  "main": "index.js",
6
6
  "exports": {