washday-sdk 0.0.4 → 0.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/dist/api/index.js CHANGED
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const get_1 = require("./customers/get");
4
- WashdayClient.prototype.customers = {
5
- getCustomerById: get_1.getCustomerById,
6
- getCustomerHighlightsById: get_1.getCustomerHighlightsById
7
- };
8
4
  function WashdayClient(apiToken) {
9
5
  this.apiToken = apiToken;
10
- WashdayClient.prototype.customers.apiToken = apiToken;
6
+ WashdayClient.prototype.customers = { apiToken };
11
7
  }
12
8
  ;
9
+ WashdayClient.prototype.customers = {
10
+ getCustomerById: get_1.getCustomerById,
11
+ getCustomerHighlightsById: get_1.getCustomerHighlightsById
12
+ };
13
13
  exports.default = WashdayClient;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "washday-sdk",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "Washday utilities functions and API",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/src/api/index.ts CHANGED
@@ -7,15 +7,15 @@ type WashdayClientConstructor = {
7
7
  };
8
8
  };
9
9
 
10
+ function WashdayClient(this: WashdayClientInstance, apiToken: string) {
11
+ this.apiToken = apiToken;
12
+ WashdayClient.prototype.customers = { apiToken };
13
+ };
14
+
10
15
  WashdayClient.prototype.customers = {
11
16
  getCustomerById: getCustomerById,
12
17
  getCustomerHighlightsById: getCustomerHighlightsById
13
18
  };
14
19
 
15
- function WashdayClient(this: WashdayClientInstance, apiToken: string) {
16
- this.apiToken = apiToken;
17
- WashdayClient.prototype.customers.apiToken = apiToken;
18
- };
19
-
20
20
 
21
21
  export default WashdayClient;