zmp-sdk 2.15.1 → 2.15.2

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.
@@ -36589,7 +36589,7 @@
36589
36589
  }
36590
36590
  };
36591
36591
 
36592
- var version = "2.15.1";
36592
+ var version = "2.15.2";
36593
36593
 
36594
36594
  class Basics {
36595
36595
  /**
@@ -38496,10 +38496,9 @@
38496
38496
  if (!resData || resData.err !== 0) {
38497
38497
  throw apiResponse.error.cannotGetShareInfo();
38498
38498
  }
38499
- const zaloVersion = getZaloVersion();
38500
- const platform = checkPlatform();
38501
- if ((platform.isAndroid && zaloVersion % 100000 <= 593) ||
38502
- (platform.isIOS && zaloVersion <= 424)) {
38499
+ getZaloVersion();
38500
+ checkPlatform();
38501
+ {
38503
38502
  validUrl.search = `${validUrl.search}&zshareId=${resData.data.shareId}`;
38504
38503
  reqData = {
38505
38504
  link: validUrl.href,
@@ -38507,23 +38506,6 @@
38507
38506
  };
38508
38507
  object.type = 'link';
38509
38508
  }
38510
- else {
38511
- reqData = {
38512
- data: {
38513
- ZInstantAPIInfo: {
38514
- url: `${resData.data.zinstantApi}`,
38515
- zinstantdata_id: `templateId=11412&appId=${this.getAppId()}&shareId=${resData.data.shareId}`
38516
- },
38517
- previewMsgText: {
38518
- msg: {
38519
- en: description.en,
38520
- vi: description.vi
38521
- }
38522
- },
38523
- enableReactions: 1
38524
- }
38525
- };
38526
- }
38527
38509
  }
38528
38510
  return yield this.callNative(ACTION.OPEN_SHARESHEET.name, Object.assign(Object.assign({ type: ShareSheetType[object.type] }, reqData), { zapp: this.getZAppId() }), {
38529
38511
  haveTimeout: false
package/dist/index.es.js CHANGED
@@ -36586,7 +36586,7 @@ const apiResponse = {
36586
36586
  }
36587
36587
  };
36588
36588
 
36589
- var version = "2.15.1";
36589
+ var version = "2.15.2";
36590
36590
 
36591
36591
  class Basics {
36592
36592
  /**
@@ -38493,10 +38493,9 @@ class Zalo {
38493
38493
  if (!resData || resData.err !== 0) {
38494
38494
  throw apiResponse.error.cannotGetShareInfo();
38495
38495
  }
38496
- const zaloVersion = getZaloVersion();
38497
- const platform = checkPlatform();
38498
- if ((platform.isAndroid && zaloVersion % 100000 <= 593) ||
38499
- (platform.isIOS && zaloVersion <= 424)) {
38496
+ getZaloVersion();
38497
+ checkPlatform();
38498
+ {
38500
38499
  validUrl.search = `${validUrl.search}&zshareId=${resData.data.shareId}`;
38501
38500
  reqData = {
38502
38501
  link: validUrl.href,
@@ -38504,23 +38503,6 @@ class Zalo {
38504
38503
  };
38505
38504
  object.type = 'link';
38506
38505
  }
38507
- else {
38508
- reqData = {
38509
- data: {
38510
- ZInstantAPIInfo: {
38511
- url: `${resData.data.zinstantApi}`,
38512
- zinstantdata_id: `templateId=11412&appId=${this.getAppId()}&shareId=${resData.data.shareId}`
38513
- },
38514
- previewMsgText: {
38515
- msg: {
38516
- en: description.en,
38517
- vi: description.vi
38518
- }
38519
- },
38520
- enableReactions: 1
38521
- }
38522
- };
38523
- }
38524
38506
  }
38525
38507
  return yield this.callNative(ACTION.OPEN_SHARESHEET.name, Object.assign(Object.assign({ type: ShareSheetType[object.type] }, reqData), { zapp: this.getZAppId() }), {
38526
38508
  haveTimeout: false