@ouroboros/body 1.0.4 → 1.0.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ouroboros/body",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Classes to communicate with Ouroboros Coding Inc. body services",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
package/src/index.d.ts CHANGED
@@ -60,7 +60,7 @@ export type responseReject = (error: responseErrorStruct) => boolean;
60
60
  * @name Body
61
61
  */
62
62
  declare class Body {
63
- private domain;
63
+ domain: string;
64
64
  private error;
65
65
  private errorCode;
66
66
  private noSession;
package/src/index.ts CHANGED
@@ -77,7 +77,7 @@ const ACTIONS_TO_METHODS = {
77
77
  class Body {
78
78
 
79
79
  // The domain used to make requests to
80
- private domain: string = '';
80
+ public domain: string = '';
81
81
 
82
82
  // The function to call for http and related errors that need to be reported
83
83
  private error: onError | null = null;
@@ -352,9 +352,9 @@ class Body {
352
352
  }
353
353
 
354
354
  /**
355
- * On No Session
355
+ * On Error Code
356
356
  *
357
- * Sets callback for whenever a request gets a REST_AUTHORIZATION error
357
+ * Sets callback for whenever a request gets an error back
358
358
  *
359
359
  * @name onNoSession
360
360
  * @access public