@formant/data-sdk 1.73.0 → 1.74.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.
@@ -165,6 +165,9 @@ class AuthenticationStore {
165
165
  get isShareToken() {
166
166
  return this._isShareToken;
167
167
  }
168
+ setEnvironment(t) {
169
+ t === "prod" ? this.apiUrl = "https://api.formant.io" : t === "stage" ? this.apiUrl = "https://api-stage.formant.io" : t === "dev" ? this.apiUrl = "https://api-dev.formant.io" : t === "local" && (this.apiUrl = "https://api.formant.local");
170
+ }
168
171
  async login(t, n, r = {}) {
169
172
  const { advanced: o = !1 } = r;
170
173
  try {