zmp-sdk 2.22.2 → 2.22.3

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/CHANGELOG.json CHANGED
@@ -1,16 +1,119 @@
1
1
  [
2
2
  {
3
- "isoDate": "2022-08-03",
4
- "niceDate": "3 August 2022",
5
- "diff": "v2.22.0..",
6
- "href": "https://zalogit2.zing.vn/ZaloMiniPrograms/zmp-sdk/compare/v2.22.0...v2.22.0",
3
+ "isoDate": "2022-08-18",
4
+ "niceDate": "18 August 2022",
5
+ "diff": "v2.22.2..",
6
+ "href": "https://zalogit2.zing.vn/ZaloMiniPrograms/zmp-sdk/compare/v2.22.2...v2.22.2",
7
7
  "major": false,
8
8
  "minor": false,
9
9
  "tag": null,
10
- "title": "v2.22.0",
11
- "date": "2022-08-03T08:07:35.287Z",
10
+ "title": "v2.22.2",
11
+ "date": "2022-08-18T05:18:30.804Z",
12
12
  "summary": null,
13
- "commits": [],
13
+ "commits": [
14
+ {
15
+ "hash": "cd947e07dfce4d6981c4a3de17e876d890bb068b",
16
+ "shorthash": "cd947e0",
17
+ "author": "Kidataek",
18
+ "email": "tuankiet.hcmc@gmail.com",
19
+ "date": "2022-08-18T05:11:52.000Z",
20
+ "niceDate": "18 August 2022",
21
+ "subject": "chore: update changelog",
22
+ "message": "chore: update changelog",
23
+ "fixes": null,
24
+ "href": "https://zalogit2.zing.vn/ZaloMiniPrograms/zmp-sdk/commit/cd947e07dfce4d6981c4a3de17e876d890bb068b",
25
+ "breaking": false,
26
+ "files": 1,
27
+ "insertions": 91,
28
+ "deletions": 6,
29
+ "merge": null
30
+ }
31
+ ],
32
+ "merges": [],
33
+ "fixes": []
34
+ },
35
+ {
36
+ "isoDate": "2022-08-18",
37
+ "niceDate": "18 August 2022",
38
+ "diff": "v2.22.1..v2.22.2",
39
+ "href": "https://zalogit2.zing.vn/ZaloMiniPrograms/zmp-sdk/compare/v2.22.1...v2.22.2",
40
+ "major": false,
41
+ "minor": false,
42
+ "tag": "v2.22.2",
43
+ "date": "2022-08-18",
44
+ "title": "v2.22.2",
45
+ "version": "v2.22.2",
46
+ "summary": null,
47
+ "commits": [
48
+ {
49
+ "hash": "19b2357f0acda7817abcceed8ba99143f765289e",
50
+ "shorthash": "19b2357",
51
+ "author": "Kidataek",
52
+ "email": "tuankiet.hcmc@gmail.com",
53
+ "date": "2022-08-18T05:09:08.000Z",
54
+ "niceDate": "18 August 2022",
55
+ "subject": "fix: change version android zalo app that support share multi image",
56
+ "message": "fix: change version android zalo app that support share multi image",
57
+ "fixes": null,
58
+ "href": "https://zalogit2.zing.vn/ZaloMiniPrograms/zmp-sdk/commit/19b2357f0acda7817abcceed8ba99143f765289e",
59
+ "breaking": false,
60
+ "files": 1,
61
+ "insertions": 1,
62
+ "deletions": 1,
63
+ "merge": null
64
+ }
65
+ ],
66
+ "merges": [],
67
+ "fixes": []
68
+ },
69
+ {
70
+ "isoDate": "2022-08-09",
71
+ "niceDate": "9 August 2022",
72
+ "diff": "v2.22.0..v2.22.1",
73
+ "href": "https://zalogit2.zing.vn/ZaloMiniPrograms/zmp-sdk/compare/v2.22.0...v2.22.1",
74
+ "major": false,
75
+ "minor": false,
76
+ "tag": "v2.22.1",
77
+ "date": "2022-08-09",
78
+ "title": "v2.22.1",
79
+ "version": "v2.22.1",
80
+ "summary": null,
81
+ "commits": [
82
+ {
83
+ "hash": "5de163b3dcfa13fdbaf532fea6c12d321ef00fb6",
84
+ "shorthash": "5de163b",
85
+ "author": "Kidataek",
86
+ "email": "tuankiet.hcmc@gmail.com",
87
+ "date": "2022-08-03T08:09:27.000Z",
88
+ "niceDate": "3 August 2022",
89
+ "subject": "fix: fix issue changelog",
90
+ "message": "fix: fix issue changelog",
91
+ "fixes": null,
92
+ "href": "https://zalogit2.zing.vn/ZaloMiniPrograms/zmp-sdk/commit/5de163b3dcfa13fdbaf532fea6c12d321ef00fb6",
93
+ "breaking": false,
94
+ "files": 6,
95
+ "insertions": 14625,
96
+ "deletions": 7,
97
+ "merge": null
98
+ },
99
+ {
100
+ "hash": "7cb204bf36f9a8d86f1f11d65d70d7f6c7ca571d",
101
+ "shorthash": "7cb204b",
102
+ "author": "Kidataek",
103
+ "email": "tuankiet.hcmc@gmail.com",
104
+ "date": "2022-08-09T06:51:57.000Z",
105
+ "niceDate": "9 August 2022",
106
+ "subject": "fix: access token invalid when calling login multi time",
107
+ "message": "fix: access token invalid when calling login multi time",
108
+ "fixes": null,
109
+ "href": "https://zalogit2.zing.vn/ZaloMiniPrograms/zmp-sdk/commit/7cb204bf36f9a8d86f1f11d65d70d7f6c7ca571d",
110
+ "breaking": false,
111
+ "files": 1,
112
+ "insertions": 5,
113
+ "deletions": 0,
114
+ "merge": null
115
+ }
116
+ ],
14
117
  "merges": [],
15
118
  "fixes": []
16
119
  },
@@ -3743,7 +3743,7 @@
3743
3743
  }
3744
3744
  }
3745
3745
 
3746
- var version = "2.22.2";
3746
+ var version = "2.22.3";
3747
3747
 
3748
3748
  class Basics {
3749
3749
  /**
@@ -5789,10 +5789,10 @@
5789
5789
  static requestCameraPermission(object) {
5790
5790
  return __awaiter(this, void 0, void 0, function* () {
5791
5791
  return yield this.getJSBridge().callNative(ACTION.REQUEST_PERMISSION_CAMERA, {}, {
5792
- successCallback: () => {
5792
+ successCallback: (data) => {
5793
5793
  return Promise.resolve({
5794
- userAllow: true,
5795
- message: 'User Allow'
5794
+ userAllow: (data === null || data === void 0 ? void 0 : data['error_code']) >= 0,
5795
+ message: data === null || data === void 0 ? void 0 : data['error_message']
5796
5796
  });
5797
5797
  }
5798
5798
  });
package/dist/index.es.js CHANGED
@@ -3740,7 +3740,7 @@ class ZMPEEmitter extends eventemitter3 {
3740
3740
  }
3741
3741
  }
3742
3742
 
3743
- var version$1 = "2.22.2";
3743
+ var version$1 = "2.22.3";
3744
3744
 
3745
3745
  class Basics {
3746
3746
  /**
@@ -5786,10 +5786,10 @@ class Media {
5786
5786
  static requestCameraPermission(object) {
5787
5787
  return __awaiter(this, void 0, void 0, function* () {
5788
5788
  return yield this.getJSBridge().callNative(ACTION.REQUEST_PERMISSION_CAMERA, {}, {
5789
- successCallback: () => {
5789
+ successCallback: (data) => {
5790
5790
  return Promise.resolve({
5791
- userAllow: true,
5792
- message: 'User Allow'
5791
+ userAllow: (data === null || data === void 0 ? void 0 : data['error_code']) >= 0,
5792
+ message: data === null || data === void 0 ? void 0 : data['error_message']
5793
5793
  });
5794
5794
  }
5795
5795
  });