@healthcloudai/hc-sdk 0.2.0 → 0.3.0

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/index.cjs CHANGED
@@ -289,12 +289,12 @@ var AuthClient = class extends BaseServiceClient {
289
289
  }
290
290
  withTenantId(request) {
291
291
  const tenantId = this.getTenantId();
292
- if (!tenantId || request["tenant_id"]) {
292
+ if (!tenantId) {
293
293
  return request;
294
294
  }
295
295
  return {
296
- tenant_id: tenantId,
297
- ...request
296
+ ...request,
297
+ tenant_id: tenantId
298
298
  };
299
299
  }
300
300
  extractAccessToken(response) {
package/dist/index.js CHANGED
@@ -255,12 +255,12 @@ var AuthClient = class extends BaseServiceClient {
255
255
  }
256
256
  withTenantId(request) {
257
257
  const tenantId = this.getTenantId();
258
- if (!tenantId || request["tenant_id"]) {
258
+ if (!tenantId) {
259
259
  return request;
260
260
  }
261
261
  return {
262
- tenant_id: tenantId,
263
- ...request
262
+ ...request,
263
+ tenant_id: tenantId
264
264
  };
265
265
  }
266
266
  extractAccessToken(response) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@healthcloudai/hc-sdk",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "All-in-one HealthCloud SDK for the new HealthCloud APIs.",
5
5
  "author": "Healthcheck Systems Inc",
6
6
  "license": "MIT",