@01.software/cli 0.7.1 → 0.8.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.js CHANGED
@@ -443,13 +443,11 @@ function isValidBearerToken(secret) {
443
443
  function resolveClient(apiKeyFlag) {
444
444
  let publishableKey = process.env.SOFTWARE_PUBLISHABLE_KEY;
445
445
  let secretKey = apiKeyFlag ?? process.env.SOFTWARE_SECRET_KEY;
446
- let tenantId;
447
446
  if (!publishableKey || !secretKey) {
448
447
  const local = loadLocalCredentials();
449
448
  if (local) {
450
449
  publishableKey = publishableKey ?? local.publishableKey;
451
450
  secretKey = secretKey ?? local.secretKey;
452
- tenantId = tenantId ?? local.tenantId;
453
451
  }
454
452
  }
455
453
  if (!publishableKey || !secretKey) {
@@ -457,7 +455,6 @@ function resolveClient(apiKeyFlag) {
457
455
  if (stored) {
458
456
  publishableKey = publishableKey ?? stored.publishableKey;
459
457
  secretKey = secretKey ?? stored.secretKey;
460
- tenantId = tenantId ?? stored.tenantId;
461
458
  }
462
459
  }
463
460
  if (!publishableKey || !secretKey) {
@@ -484,15 +481,14 @@ function resolveClient(apiKeyFlag) {
484
481
  }
485
482
  });
486
483
  }
487
- const serverOptions = { publishableKey, secretKey, tenantId };
484
+ const serverOptions = { publishableKey, secretKey };
488
485
  return {
489
486
  collections: new CollectionClient(
490
487
  publishableKey,
491
488
  secretKey,
492
489
  void 0,
493
490
  void 0,
494
- void 0,
495
- tenantId
491
+ void 0
496
492
  ),
497
493
  commerce: new ServerCommerceClient(serverOptions),
498
494
  publishableKey,