@formant/data-sdk 1.72.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.
- package/dist/data-sdk.cjs.js +1 -1
- package/dist/data-sdk.cjs.js.map +1 -1
- package/dist/data-sdk.es.js +3 -0
- package/dist/data-sdk.es.js.map +1 -1
- package/dist/data-sdk.es6.js +3 -0
- package/dist/data-sdk.umd.js +1 -1
- package/dist/types/data-sdk/src/model/ITaskSummary.d.ts +1 -0
- package/dist/types/data-sdk/src/stores/AuthenticationStore.d.ts +1 -0
- package/package.json +1 -1
package/dist/data-sdk.es.js
CHANGED
|
@@ -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 {
|