@tryvital/vital-node 1.3.4 → 1.3.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.
@@ -0,0 +1,6 @@
1
+ import { testApiKeyClient } from "./arrange";
2
+
3
+ it('should return supported providers', async () => {
4
+ const data = await testApiKeyClient.Providers.getSupportedProviders()
5
+ expect(data.length).toBeGreaterThan(0)
6
+ })
package/dist/index.js CHANGED
@@ -92,9 +92,10 @@ var VitalClient = /** @class */ (function () {
92
92
  case 2:
93
93
  token = _a.sent();
94
94
  headers["Authorization"] = "Bearer " + token;
95
+ headers["x-vital-client-id"] = this.config.client_id;
95
96
  _a.label = 3;
96
97
  case 3:
97
- config.headers = __assign(__assign({}, headers), { 'x-vital-client-id': this.config.client_id });
98
+ config.headers = __assign({}, headers);
98
99
  return [2 /*return*/, config];
99
100
  }
100
101
  });
package/index.ts CHANGED
@@ -64,10 +64,10 @@ export class VitalClient {
64
64
  } else {
65
65
  const token = await this.clientCredentials.access_token();
66
66
  headers["Authorization"] = `Bearer ${token}`;
67
+ headers["x-vital-client-id"] = this.config.client_id;
67
68
  }
68
69
  config.headers = {
69
70
  ...headers,
70
- 'x-vital-client-id': this.config.client_id,
71
71
  };
72
72
  return config;
73
73
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvital/vital-node",
3
- "version": "1.3.4",
3
+ "version": "1.3.5",
4
4
  "description": "Node client for Vital",
5
5
  "author": "maitham",
6
6
  "keywords": [