@ray-js/lock-sdk 1.1.1-beta.18 → 1.1.1-beta.19

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.
@@ -18,17 +18,21 @@ export const syncUnlockMethod = async () => {
18
18
  const dpCode = config.supportBigData
19
19
  ? dpCodes.synchMethodW
20
20
  : dpCodes.synchMethod;
21
- await publishDps({ [dpCode]: ins }, {
22
- checkReport: (dpData) => {
23
- if (typeof dpData[dpCode] !== "undefined") {
24
- const result = dpUtils.parse(dpData[dpCode], config.supportBigData ? reportSyncBigMap : reportSyncMap);
25
- if (result.stage === 1) {
26
- return true;
21
+ try {
22
+ await publishDps({ [dpCode]: ins }, {
23
+ checkReport: (dpData) => {
24
+ if (typeof dpData[dpCode] !== "undefined") {
25
+ const result = dpUtils.parse(dpData[dpCode], config.supportBigData ? reportSyncBigMap : reportSyncMap);
26
+ if (result.stage === 1) {
27
+ return true;
28
+ }
27
29
  }
28
- }
29
- return false;
30
- },
31
- });
30
+ return false;
31
+ },
32
+ });
33
+ }
34
+ catch (error) {
35
+ }
32
36
  }
33
37
  };
34
38
  export const autoSyncUnlockMethod = async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/lock-sdk",
3
- "version": "1.1.1-beta.18",
3
+ "version": "1.1.1-beta.19",
4
4
  "files": [
5
5
  "lib",
6
6
  "LICENSE.md"