@dynamic-labs-wallet/browser-wallet-client 0.0.198 → 0.0.200
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/index.cjs.js
CHANGED
|
@@ -264,7 +264,7 @@ class IframeManager {
|
|
|
264
264
|
return new Promise((resolve, reject)=>{
|
|
265
265
|
const attemptLoad = ()=>{
|
|
266
266
|
IframeManager.iframeLoadAttempts++;
|
|
267
|
-
this.logger.
|
|
267
|
+
this.logger.debug(`Loading iframe for waas wallet client... (attempt ${IframeManager.iframeLoadAttempts}/${IframeManager.maxRetryAttempts + 1})`, this.getIframeContext());
|
|
268
268
|
const iframe = document.createElement('iframe');
|
|
269
269
|
let messageListener = null;
|
|
270
270
|
const context = _extends({}, this.getIframeContext(), {
|
|
@@ -339,7 +339,7 @@ class IframeManager {
|
|
|
339
339
|
IframeManager.iframeInstanceCount++;
|
|
340
340
|
IframeManager.iframeLoadAttempts = 0; // Reset retry counter on success
|
|
341
341
|
resolve();
|
|
342
|
-
this.logger.
|
|
342
|
+
this.logger.debug('Iframe loaded successfully...', this.getIframeContext());
|
|
343
343
|
}
|
|
344
344
|
};
|
|
345
345
|
return messageListener;
|
|
@@ -365,7 +365,8 @@ class IframeManager {
|
|
|
365
365
|
environmentId: this.environmentId,
|
|
366
366
|
baseApiUrl: this.baseApiUrl,
|
|
367
367
|
baseMPCRelayApiUrl: this.baseMPCRelayApiUrl,
|
|
368
|
-
sdkVersion: (_this_sdkVersion = this.sdkVersion) != null ? _this_sdkVersion : ''
|
|
368
|
+
sdkVersion: (_this_sdkVersion = this.sdkVersion) != null ? _this_sdkVersion : '',
|
|
369
|
+
debug: String(this.debug)
|
|
369
370
|
});
|
|
370
371
|
iframe.src = `${this.iframeDomain}/waas-v1/${this.environmentId}?${params.toString()}`;
|
|
371
372
|
}
|
|
@@ -384,7 +385,7 @@ class IframeManager {
|
|
|
384
385
|
chainName: this.chainName,
|
|
385
386
|
iframeLoadTimeout: IframeManager.iframeLoadTimeout
|
|
386
387
|
};
|
|
387
|
-
this.logger.
|
|
388
|
+
this.logger.debug(`Loading iframe for container...`, context);
|
|
388
389
|
const iframe = document.createElement('iframe');
|
|
389
390
|
let messageListener = null;
|
|
390
391
|
const iframeTimeoutId = setTimeout(()=>{
|
|
@@ -407,7 +408,8 @@ class IframeManager {
|
|
|
407
408
|
environmentId: this.environmentId,
|
|
408
409
|
baseApiUrl: this.baseApiUrl,
|
|
409
410
|
baseMPCRelayApiUrl: this.baseMPCRelayApiUrl,
|
|
410
|
-
sdkVersion: (_this_sdkVersion1 = this.sdkVersion) != null ? _this_sdkVersion1 : ''
|
|
411
|
+
sdkVersion: (_this_sdkVersion1 = this.sdkVersion) != null ? _this_sdkVersion1 : '',
|
|
412
|
+
debug: String(this.debug)
|
|
411
413
|
});
|
|
412
414
|
iframe.src = `${this.iframeDomain}/waas-v1/${this.environmentId}?${params.toString()}`;
|
|
413
415
|
this.logger.debug('Creating iframe with src:', iframe.src);
|
|
@@ -437,7 +439,7 @@ class IframeManager {
|
|
|
437
439
|
IframeManager.iframeInstanceCount++;
|
|
438
440
|
resolve(iframe);
|
|
439
441
|
var _this_sdkVersion;
|
|
440
|
-
this.logger.
|
|
442
|
+
this.logger.debug('Iframe loaded successfully...', {
|
|
441
443
|
iframeDomain: this.iframeDomain,
|
|
442
444
|
environmentId: this.environmentId,
|
|
443
445
|
sdkVersion: (_this_sdkVersion = this.sdkVersion) != null ? _this_sdkVersion : '',
|
package/index.esm.js
CHANGED
|
@@ -263,7 +263,7 @@ class IframeManager {
|
|
|
263
263
|
return new Promise((resolve, reject)=>{
|
|
264
264
|
const attemptLoad = ()=>{
|
|
265
265
|
IframeManager.iframeLoadAttempts++;
|
|
266
|
-
this.logger.
|
|
266
|
+
this.logger.debug(`Loading iframe for waas wallet client... (attempt ${IframeManager.iframeLoadAttempts}/${IframeManager.maxRetryAttempts + 1})`, this.getIframeContext());
|
|
267
267
|
const iframe = document.createElement('iframe');
|
|
268
268
|
let messageListener = null;
|
|
269
269
|
const context = _extends({}, this.getIframeContext(), {
|
|
@@ -338,7 +338,7 @@ class IframeManager {
|
|
|
338
338
|
IframeManager.iframeInstanceCount++;
|
|
339
339
|
IframeManager.iframeLoadAttempts = 0; // Reset retry counter on success
|
|
340
340
|
resolve();
|
|
341
|
-
this.logger.
|
|
341
|
+
this.logger.debug('Iframe loaded successfully...', this.getIframeContext());
|
|
342
342
|
}
|
|
343
343
|
};
|
|
344
344
|
return messageListener;
|
|
@@ -364,7 +364,8 @@ class IframeManager {
|
|
|
364
364
|
environmentId: this.environmentId,
|
|
365
365
|
baseApiUrl: this.baseApiUrl,
|
|
366
366
|
baseMPCRelayApiUrl: this.baseMPCRelayApiUrl,
|
|
367
|
-
sdkVersion: (_this_sdkVersion = this.sdkVersion) != null ? _this_sdkVersion : ''
|
|
367
|
+
sdkVersion: (_this_sdkVersion = this.sdkVersion) != null ? _this_sdkVersion : '',
|
|
368
|
+
debug: String(this.debug)
|
|
368
369
|
});
|
|
369
370
|
iframe.src = `${this.iframeDomain}/waas-v1/${this.environmentId}?${params.toString()}`;
|
|
370
371
|
}
|
|
@@ -383,7 +384,7 @@ class IframeManager {
|
|
|
383
384
|
chainName: this.chainName,
|
|
384
385
|
iframeLoadTimeout: IframeManager.iframeLoadTimeout
|
|
385
386
|
};
|
|
386
|
-
this.logger.
|
|
387
|
+
this.logger.debug(`Loading iframe for container...`, context);
|
|
387
388
|
const iframe = document.createElement('iframe');
|
|
388
389
|
let messageListener = null;
|
|
389
390
|
const iframeTimeoutId = setTimeout(()=>{
|
|
@@ -406,7 +407,8 @@ class IframeManager {
|
|
|
406
407
|
environmentId: this.environmentId,
|
|
407
408
|
baseApiUrl: this.baseApiUrl,
|
|
408
409
|
baseMPCRelayApiUrl: this.baseMPCRelayApiUrl,
|
|
409
|
-
sdkVersion: (_this_sdkVersion1 = this.sdkVersion) != null ? _this_sdkVersion1 : ''
|
|
410
|
+
sdkVersion: (_this_sdkVersion1 = this.sdkVersion) != null ? _this_sdkVersion1 : '',
|
|
411
|
+
debug: String(this.debug)
|
|
410
412
|
});
|
|
411
413
|
iframe.src = `${this.iframeDomain}/waas-v1/${this.environmentId}?${params.toString()}`;
|
|
412
414
|
this.logger.debug('Creating iframe with src:', iframe.src);
|
|
@@ -436,7 +438,7 @@ class IframeManager {
|
|
|
436
438
|
IframeManager.iframeInstanceCount++;
|
|
437
439
|
resolve(iframe);
|
|
438
440
|
var _this_sdkVersion;
|
|
439
|
-
this.logger.
|
|
441
|
+
this.logger.debug('Iframe loaded successfully...', {
|
|
440
442
|
iframeDomain: this.iframeDomain,
|
|
441
443
|
environmentId: this.environmentId,
|
|
442
444
|
sdkVersion: (_this_sdkVersion = this.sdkVersion) != null ? _this_sdkVersion : '',
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs-wallet/browser-wallet-client",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.200",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@dynamic-labs-wallet/core": "0.0.
|
|
7
|
+
"@dynamic-labs-wallet/core": "0.0.200",
|
|
8
8
|
"@dynamic-labs/logger": "^4.25.3",
|
|
9
9
|
"@dynamic-labs/message-transport": "^4.25.3",
|
|
10
10
|
"uuid": "11.1.0"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IframeManager.d.ts","sourceRoot":"","sources":["../../../src/client/iframeManager/IframeManager.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAGT,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAGL,KAAK,iCAAiC,EACvC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAI9E,qBAAa,aAAa;IACxB,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC;IAC5B,SAAS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