@nemme/js-sdk 0.3.3 → 0.3.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/assets/js-sdk.css +1 -1
- package/dist/client.d.ts +2 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +13 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/nemme-sdk.umd.js +1 -1
- package/dist/nemme-sdk.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -6415,7 +6415,15 @@ class qe {
|
|
|
6415
6415
|
/**
|
|
6416
6416
|
* Create a new Nemme SDK client instance
|
|
6417
6417
|
*/
|
|
6418
|
-
async init({
|
|
6418
|
+
async init({
|
|
6419
|
+
userIdentifier: e,
|
|
6420
|
+
debug: t = !1,
|
|
6421
|
+
batch: r,
|
|
6422
|
+
formConfig: a,
|
|
6423
|
+
deactivate: s = !1
|
|
6424
|
+
}) {
|
|
6425
|
+
if (s)
|
|
6426
|
+
return this.clientLogger.info("Nemme client deactivated and will stop initialization."), this.initialized = !0, this.clientLogger.configure({ enabled: !1 }), this;
|
|
6419
6427
|
if (!e) throw new Error("userIdentifier is required parameter");
|
|
6420
6428
|
this.userIdentifier = e, this.clientLogger.configure({
|
|
6421
6429
|
enabled: t,
|
|
@@ -6425,13 +6433,13 @@ class qe {
|
|
|
6425
6433
|
"X-User-Id": this.userIdentifier
|
|
6426
6434
|
}, this.formConfig = a;
|
|
6427
6435
|
try {
|
|
6428
|
-
const
|
|
6429
|
-
await this.initializeManagers(
|
|
6436
|
+
const i = await this.initializeSession();
|
|
6437
|
+
await this.initializeManagers(i, r), this.initialized = !0, this.clientLogger.info("Nemme client initialized", {
|
|
6430
6438
|
clientKey: this.clientKey,
|
|
6431
6439
|
userIdentifier: this.userIdentifier
|
|
6432
6440
|
});
|
|
6433
|
-
} catch (
|
|
6434
|
-
this.clientLogger.error("Error during initialization:",
|
|
6441
|
+
} catch (i) {
|
|
6442
|
+
this.clientLogger.error("Error during initialization:", i);
|
|
6435
6443
|
}
|
|
6436
6444
|
return this;
|
|
6437
6445
|
}
|