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