zinkee 0.1.2 → 0.1.4

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
@@ -1320,6 +1320,7 @@ var redactedSecretMask = "********";
1320
1320
  var ENV_API_KEY = "ZINKEE_API_KEY";
1321
1321
  var ENV_BASE_URL = "ZINKEE_API_BASE_URL";
1322
1322
  var ENV_PROFILE = "ZINKEE_PROFILE";
1323
+ var DEFAULT_PRODUCTION_BASE_URL = "https://api-z2.zinkee.com";
1323
1324
  var ProfileResolutionError = class extends Error {
1324
1325
  name = "ProfileResolutionError";
1325
1326
  constructor(message) {
@@ -1569,7 +1570,7 @@ function resolveRuntimeContext(config, overrides = {}) {
1569
1570
  });
1570
1571
  return {
1571
1572
  profile: profile.name,
1572
- baseUrl: baseUrlOverride ?? profile.baseUrl,
1573
+ baseUrl: baseUrlOverride ?? profile.baseUrl ?? DEFAULT_PRODUCTION_BASE_URL,
1573
1574
  apiKey: apiKeyOverride ?? profile.apiKey,
1574
1575
  readOnly: overrides.readOnly ?? false,
1575
1576
  json: overrides.json ?? false,