yach.open.jssdk 4.3.8 → 4.3.9
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/yach_jssdk_4.3.9.js +1 -0
- package/es/api/app/custom/talYoungFilesUpload.js +0 -2
- package/es/api/biz/chat/chooseConversationByCorpId.js +0 -2
- package/es/api/biz/chat/openSingleChat.js +0 -2
- package/es/api/biz/chat/openSquad.js +0 -2
- package/es/api/biz/chat/openTeamChat.js +0 -2
- package/es/api/biz/chat/pickConversation.js +0 -2
- package/es/api/biz/chat/sendP2PMsg.js +0 -2
- package/es/api/biz/contact/complexPicker.js +0 -2
- package/es/api/biz/contact/departmentsPicker.js +0 -2
- package/es/api/biz/group/groupComplexPicker.js +0 -2
- package/es/api/biz/map/multipointView.js +0 -2
- package/es/api/biz/map/view.js +0 -2
- package/es/api/biz/navigation/close.js +0 -2
- package/es/api/biz/navigation/goBack.js +0 -2
- package/es/api/biz/navigation/quit.js +0 -2
- package/es/api/biz/navigation/replace.js +0 -2
- package/es/api/biz/navigation/setIcon.js +0 -2
- package/es/api/biz/navigation/setLeft.js +0 -2
- package/es/api/biz/navigation/setMenu.js +0 -2
- package/es/api/biz/navigation/setPanGestureEnable.js +0 -2
- package/es/api/biz/navigation/setRight.js +0 -2
- package/es/api/biz/navigation/setTitle.js +0 -2
- package/es/api/biz/navigation/setTitleExpandIcon.js +0 -2
- package/es/api/biz/navigation/setWindowBig.js +0 -2
- package/es/api/biz/navigation/tencentMeeting.js +0 -2
- package/es/api/biz/navigation/tencentMeetingBegin.js +0 -2
- package/es/api/biz/navigation/updateExpandTitle.js +0 -2
- package/es/api/biz/telephone/call.js +0 -2
- package/es/api/biz/telephone/showCallMenu.js +0 -2
- package/es/api/biz/util/addAppToNav.js +0 -2
- package/es/api/biz/util/assistantCreate.js +0 -2
- package/es/api/biz/util/authFinish.js +0 -2
- package/es/api/biz/util/authStart.js +0 -2
- package/es/api/biz/util/chosen.js +0 -2
- package/es/api/biz/util/clipboardFileUpload.js +0 -2
- package/es/api/biz/util/closeWindow.js +0 -2
- package/es/api/biz/util/complain.js +0 -2
- package/es/api/biz/util/createModifySchedule.js +0 -2
- package/es/api/biz/util/datepicker.js +0 -2
- package/es/api/biz/util/datetimepicker.js +0 -2
- package/es/api/biz/util/disableScreenCapture.js +0 -2
- package/es/api/biz/util/downloadFile.js +0 -2
- package/es/api/biz/util/entergroupCheck.js +0 -2
- package/es/api/biz/util/externalLinkPreviewFile.js +0 -2
- package/es/api/biz/util/feedback.js +0 -2
- package/es/api/biz/util/getSingleWebviewData.js +0 -2
- package/es/api/biz/util/getTogetherConfig.js +0 -2
- package/es/api/biz/util/getToken.js +0 -2
- package/es/api/biz/util/injectScript.js +0 -2
- package/es/api/biz/util/invoice.js +0 -2
- package/es/api/biz/util/mediaFileUpload.js +0 -2
- package/es/api/biz/util/onlineDocmentOpenTeamChat.js +0 -2
- package/es/api/biz/util/open.js +0 -2
- package/es/api/biz/util/openFutureGroup.js +0 -2
- package/es/api/biz/util/openLink.js +0 -2
- package/es/api/biz/util/openMediaFileDialog.js +0 -2
- package/es/api/biz/util/openSingleWebview.js +0 -2
- package/es/api/biz/util/openSlidePanel.js +0 -2
- package/es/api/biz/util/openTalYoungToTopic.js +0 -2
- package/es/api/biz/util/openTogetherEyeWebview.js +0 -2
- package/es/api/biz/util/openUserSchedule.js +0 -2
- package/es/api/biz/util/openVideoPlayer.js +0 -2
- package/es/api/biz/util/previewFile.js +0 -2
- package/es/api/biz/util/previewImage.js +0 -2
- package/es/api/biz/util/proxy.js +0 -2
- package/es/api/biz/util/pushWorkMsg.js +0 -2
- package/es/api/biz/util/remind.js +0 -2
- package/es/api/biz/util/resetSessionUnread.js +0 -2
- package/es/api/biz/util/rouseApp.js +0 -2
- package/es/api/biz/util/savePic.js +0 -2
- package/es/api/biz/util/scan.js +0 -2
- package/es/api/biz/util/selectDepartment.js +0 -2
- package/es/api/biz/util/share.js +0 -2
- package/es/api/biz/util/takePicture.js +0 -2
- package/es/api/biz/util/uploadAttachment.js +0 -2
- package/es/api/biz/util/yachEvent.js +0 -2
- package/es/api/biz/util/zfbAuth.js +0 -2
- package/es/api/biz/webViewMessage/send.js +0 -2
- package/es/api/device/audio/download.js +0 -2
- package/es/api/device/audio/onPlayEnd.js +0 -2
- package/es/api/device/audio/onRecordEnd.js +0 -2
- package/es/api/device/audio/onRecordEnd_v2.js +0 -2
- package/es/api/device/audio/pause.js +0 -2
- package/es/api/device/audio/play.js +0 -2
- package/es/api/device/audio/resume.js +0 -2
- package/es/api/device/audio/startRecord.js +0 -2
- package/es/api/device/audio/startRecord_v2.js +0 -2
- package/es/api/device/audio/stop.js +0 -2
- package/es/api/device/audio/stopRecord.js +0 -2
- package/es/api/device/audio/stopRecord_v2.js +0 -2
- package/es/api/device/base/checkStepPermission.js +0 -2
- package/es/api/device/base/getPhoneInfo.js +0 -2
- package/es/api/device/base/getUUID.js +0 -2
- package/es/api/device/connection/getNetworkType.js +0 -2
- package/es/api/device/connection/isAtTal.js +2 -4
- package/es/api/device/geolocation/get.js +0 -2
- package/es/api/device/geolocation/getSwitch.js +0 -2
- package/es/api/device/notification/actionSheet.js +0 -2
- package/es/api/device/notification/alert.js +0 -2
- package/es/api/device/notification/confirm.js +0 -2
- package/es/api/device/notification/hidePreloader.js +0 -2
- package/es/api/device/notification/showPreloader.js +0 -2
- package/es/api/device/notification/toast.js +0 -2
- package/es/api/device/notification/vibrate.js +0 -2
- package/es/api/device/system/getLang.js +0 -2
- package/es/api/device/system/setLight.js +0 -2
- package/es/api/initAPI.js +3 -5
- package/es/api/primary/createTab.js +0 -2
- package/es/api/primary/exitFullScreen.js +0 -2
- package/es/api/primary/fullScreen.js +0 -2
- package/es/api/primary/weeklyShare.js +0 -2
- package/es/api/runtime/permission/requestAuthCode.js +0 -2
- package/es/api/ui/pullToRefresh/disable.js +0 -2
- package/es/api/ui/pullToRefresh/enable.js +0 -2
- package/es/api/ui/pullToRefresh/stop.js +0 -2
- package/es/api/ui/webViewBounce/disable.js +0 -2
- package/es/api/util/domainStorage/getItem.js +0 -2
- package/es/api/util/domainStorage/removeItem.js +0 -2
- package/es/api/util/domainStorage/setItem.js +0 -2
- package/es/api/util/tool/flushLog.js +0 -2
- package/es/api/util/tool/log.js +0 -2
- package/es/index.js +14 -25
- package/es/lib/bridge/mobile.js +8 -23
- package/es/lib/bridge/pc.js +16 -17
- package/es/lib/helper/apiHelper.js +0 -2
- package/es/lib/helper/codeMap.js +0 -2
- package/es/lib/helper/event.js +0 -13
- package/es/lib/helper/pcIframe.js +14 -45
- package/es/lib/index.js +7 -21
- package/es/lib/sdk/index.js +14 -35
- package/es/lib/sdk/sdk.typings.js +0 -1
- package/es/utils/bpitLog.js +4 -13
- package/es/utils/compareVersions.js +23 -50
- package/es/utils/console.js +0 -15
- package/es/utils/env.js +12 -19
- package/es/utils/index.js +0 -5
- package/libs/api/app/custom/talYoungFilesUpload.js +1 -6
- package/libs/api/biz/chat/chooseConversationByCorpId.js +0 -6
- package/libs/api/biz/chat/openSingleChat.js +0 -6
- package/libs/api/biz/chat/openSquad.js +0 -6
- package/libs/api/biz/chat/openTeamChat.js +0 -6
- package/libs/api/biz/chat/pickConversation.js +0 -6
- package/libs/api/biz/chat/sendP2PMsg.js +0 -6
- package/libs/api/biz/contact/complexPicker.js +0 -6
- package/libs/api/biz/contact/departmentsPicker.js +0 -6
- package/libs/api/biz/group/groupComplexPicker.js +0 -6
- package/libs/api/biz/map/multipointView.js +0 -6
- package/libs/api/biz/map/view.js +0 -6
- package/libs/api/biz/navigation/close.js +0 -6
- package/libs/api/biz/navigation/goBack.js +0 -6
- package/libs/api/biz/navigation/quit.js +0 -6
- package/libs/api/biz/navigation/replace.js +0 -6
- package/libs/api/biz/navigation/setIcon.js +0 -7
- package/libs/api/biz/navigation/setLeft.js +0 -7
- package/libs/api/biz/navigation/setMenu.js +0 -7
- package/libs/api/biz/navigation/setPanGestureEnable.js +0 -7
- package/libs/api/biz/navigation/setRight.js +0 -7
- package/libs/api/biz/navigation/setTitle.js +0 -6
- package/libs/api/biz/navigation/setTitleExpandIcon.js +0 -7
- package/libs/api/biz/navigation/setWindowBig.js +1 -6
- package/libs/api/biz/navigation/tencentMeeting.js +0 -6
- package/libs/api/biz/navigation/tencentMeetingBegin.js +0 -6
- package/libs/api/biz/navigation/updateExpandTitle.js +0 -6
- package/libs/api/biz/telephone/call.js +0 -6
- package/libs/api/biz/telephone/showCallMenu.js +0 -6
- package/libs/api/biz/util/addAppToNav.js +0 -6
- package/libs/api/biz/util/assistantCreate.js +0 -6
- package/libs/api/biz/util/authFinish.js +0 -6
- package/libs/api/biz/util/authStart.js +0 -6
- package/libs/api/biz/util/chosen.js +0 -6
- package/libs/api/biz/util/clipboardFileUpload.js +0 -6
- package/libs/api/biz/util/closeWindow.js +0 -6
- package/libs/api/biz/util/complain.js +0 -6
- package/libs/api/biz/util/createModifySchedule.js +0 -6
- package/libs/api/biz/util/datepicker.js +0 -6
- package/libs/api/biz/util/datetimepicker.js +0 -6
- package/libs/api/biz/util/disableScreenCapture.js +0 -6
- package/libs/api/biz/util/downloadFile.js +0 -6
- package/libs/api/biz/util/entergroupCheck.js +0 -6
- package/libs/api/biz/util/externalLinkPreviewFile.js +0 -6
- package/libs/api/biz/util/feedback.js +0 -6
- package/libs/api/biz/util/getSingleWebviewData.js +0 -6
- package/libs/api/biz/util/getTogetherConfig.js +0 -6
- package/libs/api/biz/util/getToken.js +0 -6
- package/libs/api/biz/util/injectScript.js +0 -6
- package/libs/api/biz/util/invoice.js +1 -6
- package/libs/api/biz/util/mediaFileUpload.js +1 -6
- package/libs/api/biz/util/onlineDocmentOpenTeamChat.js +0 -6
- package/libs/api/biz/util/open.js +0 -6
- package/libs/api/biz/util/openFutureGroup.js +0 -6
- package/libs/api/biz/util/openLink.js +0 -6
- package/libs/api/biz/util/openMediaFileDialog.js +1 -6
- package/libs/api/biz/util/openSingleWebview.js +0 -6
- package/libs/api/biz/util/openSlidePanel.js +0 -6
- package/libs/api/biz/util/openTalYoungToTopic.js +1 -6
- package/libs/api/biz/util/openTogetherEyeWebview.js +0 -6
- package/libs/api/biz/util/openUserSchedule.js +0 -6
- package/libs/api/biz/util/openVideoPlayer.js +0 -6
- package/libs/api/biz/util/previewFile.js +0 -6
- package/libs/api/biz/util/previewImage.js +0 -6
- package/libs/api/biz/util/proxy.js +0 -6
- package/libs/api/biz/util/pushWorkMsg.js +1 -6
- package/libs/api/biz/util/remind.js +0 -6
- package/libs/api/biz/util/resetSessionUnread.js +0 -6
- package/libs/api/biz/util/rouseApp.js +1 -6
- package/libs/api/biz/util/savePic.js +0 -6
- package/libs/api/biz/util/scan.js +0 -6
- package/libs/api/biz/util/selectDepartment.js +0 -6
- package/libs/api/biz/util/share.js +0 -6
- package/libs/api/biz/util/takePicture.js +0 -6
- package/libs/api/biz/util/uploadAttachment.js +0 -6
- package/libs/api/biz/util/yachEvent.js +0 -6
- package/libs/api/biz/util/zfbAuth.js +0 -6
- package/libs/api/biz/webViewMessage/send.js +0 -6
- package/libs/api/device/audio/download.js +0 -6
- package/libs/api/device/audio/onPlayEnd.js +0 -6
- package/libs/api/device/audio/onRecordEnd.js +0 -6
- package/libs/api/device/audio/onRecordEnd_v2.js +0 -6
- package/libs/api/device/audio/pause.js +0 -6
- package/libs/api/device/audio/play.js +0 -6
- package/libs/api/device/audio/resume.js +0 -6
- package/libs/api/device/audio/startRecord.js +0 -6
- package/libs/api/device/audio/startRecord_v2.js +0 -6
- package/libs/api/device/audio/stop.js +0 -6
- package/libs/api/device/audio/stopRecord.js +0 -6
- package/libs/api/device/audio/stopRecord_v2.js +0 -6
- package/libs/api/device/base/checkStepPermission.js +0 -6
- package/libs/api/device/base/getPhoneInfo.js +0 -6
- package/libs/api/device/base/getUUID.js +0 -6
- package/libs/api/device/connection/getNetworkType.js +0 -6
- package/libs/api/device/connection/isAtTal.js +2 -8
- package/libs/api/device/geolocation/get.js +0 -6
- package/libs/api/device/geolocation/getSwitch.js +0 -6
- package/libs/api/device/notification/actionSheet.js +0 -6
- package/libs/api/device/notification/alert.js +0 -6
- package/libs/api/device/notification/confirm.js +0 -6
- package/libs/api/device/notification/hidePreloader.js +0 -6
- package/libs/api/device/notification/showPreloader.js +0 -6
- package/libs/api/device/notification/toast.js +0 -6
- package/libs/api/device/notification/vibrate.js +0 -6
- package/libs/api/device/system/getLang.js +0 -6
- package/libs/api/device/system/setLight.js +0 -6
- package/libs/api/initAPI.js +4 -13
- package/libs/api/primary/createTab.js +0 -6
- package/libs/api/primary/exitFullScreen.js +0 -6
- package/libs/api/primary/fullScreen.js +0 -6
- package/libs/api/primary/weeklyShare.js +0 -6
- package/libs/api/runtime/permission/requestAuthCode.js +0 -6
- package/libs/api/ui/pullToRefresh/disable.js +0 -6
- package/libs/api/ui/pullToRefresh/enable.js +0 -6
- package/libs/api/ui/pullToRefresh/stop.js +0 -6
- package/libs/api/ui/webViewBounce/disable.js +0 -6
- package/libs/api/util/domainStorage/getItem.js +0 -6
- package/libs/api/util/domainStorage/removeItem.js +0 -6
- package/libs/api/util/domainStorage/setItem.js +0 -6
- package/libs/api/util/tool/flushLog.js +0 -6
- package/libs/api/util/tool/log.js +0 -6
- package/libs/index.js +12 -284
- package/libs/lib/bridge/index.js +0 -7
- package/libs/lib/bridge/mobile.js +11 -45
- package/libs/lib/bridge/pc.js +19 -33
- package/libs/lib/helper/apiHelper.js +0 -6
- package/libs/lib/helper/codeMap.js +0 -6
- package/libs/lib/helper/event.js +1 -22
- package/libs/lib/helper/pcIframe.js +13 -51
- package/libs/lib/index.js +8 -32
- package/libs/lib/sdk/index.js +15 -45
- package/libs/lib/sdk/sdk.typings.js +0 -4
- package/libs/utils/bpitLog.js +4 -16
- package/libs/utils/compareVersions.js +27 -72
- package/libs/utils/console.js +0 -16
- package/libs/utils/env.js +12 -21
- package/libs/utils/index.js +0 -13
- package/package.json +1 -1
- package/dist/yach_jssdk_4.3.8.js +0 -1
|
@@ -4,7 +4,6 @@ import _includesInstanceProperty from "@babel/runtime-corejs3/core-js/instance/i
|
|
|
4
4
|
import _parseInt from "@babel/runtime-corejs3/core-js/parse-int";
|
|
5
5
|
import _Object$keys from "@babel/runtime-corejs3/core-js/object/keys";
|
|
6
6
|
import _indexOfInstanceProperty from "@babel/runtime-corejs3/core-js/instance/index-of";
|
|
7
|
-
|
|
8
7
|
/**
|
|
9
8
|
* Compare [semver](https://semver.org/) version strings to find greater, equal or lesser.
|
|
10
9
|
* This library supports the full semver specification, including comparing versions with different number of digits like `1.0.0`, `1.0`, `1`, and pre-release versions like `1.0.0-alpha`.
|
|
@@ -15,20 +14,19 @@ import _indexOfInstanceProperty from "@babel/runtime-corejs3/core-js/instance/in
|
|
|
15
14
|
export var compareVersions = function compareVersions(v1, v2) {
|
|
16
15
|
// validate input and split into segments
|
|
17
16
|
var n1 = validateAndParse(v1);
|
|
18
|
-
var n2 = validateAndParse(v2);
|
|
19
|
-
|
|
17
|
+
var n2 = validateAndParse(v2);
|
|
18
|
+
// pop off the patch
|
|
20
19
|
var p1 = n1.pop();
|
|
21
|
-
var p2 = n2.pop();
|
|
22
|
-
|
|
20
|
+
var p2 = n2.pop();
|
|
21
|
+
// validate numbers
|
|
23
22
|
var r = compareSegments(n1, n2);
|
|
24
|
-
if (r !== 0) return r;
|
|
25
|
-
|
|
23
|
+
if (r !== 0) return r;
|
|
24
|
+
// validate pre-release
|
|
26
25
|
if (p1 && p2) {
|
|
27
26
|
return compareSegments(p1.split('.'), p2.split('.'));
|
|
28
27
|
} else if (p1 || p2) {
|
|
29
28
|
return p1 ? -1 : 1;
|
|
30
29
|
}
|
|
31
|
-
|
|
32
30
|
return 0;
|
|
33
31
|
};
|
|
34
32
|
/**
|
|
@@ -44,7 +42,6 @@ export var compareVersions = function compareVersions(v1, v2) {
|
|
|
44
42
|
* validate('foo'); // return false
|
|
45
43
|
* ```
|
|
46
44
|
*/
|
|
47
|
-
|
|
48
45
|
export var validate = function validate(version) {
|
|
49
46
|
return typeof version === 'string' && /^[v\d]/.test(version) && semver.test(version);
|
|
50
47
|
};
|
|
@@ -65,14 +62,12 @@ export var validate = function validate(version) {
|
|
|
65
62
|
* compare('10.1.1', '10.2.2', '>='); // return false
|
|
66
63
|
* ```
|
|
67
64
|
*/
|
|
68
|
-
|
|
69
65
|
export var compare = function compare(v1, v2, operator) {
|
|
70
66
|
var _context;
|
|
71
|
-
|
|
72
67
|
// validate input operator
|
|
73
|
-
assertValidOperator(operator);
|
|
68
|
+
assertValidOperator(operator);
|
|
69
|
+
// since result of compareVersions can only be -1 or 0 or 1
|
|
74
70
|
// a simple map can be used to replace switch
|
|
75
|
-
|
|
76
71
|
var res = compareVersions(v1, v2);
|
|
77
72
|
return _includesInstanceProperty(_context = operatorResMap[operator]).call(_context, res);
|
|
78
73
|
};
|
|
@@ -89,88 +84,69 @@ export var compare = function compare(v1, v2, operator) {
|
|
|
89
84
|
* satisfies('1.1.0', '~1.0.0'); // return false
|
|
90
85
|
* ```
|
|
91
86
|
*/
|
|
92
|
-
|
|
93
87
|
export var satisfies = function satisfies(version, range) {
|
|
94
88
|
// if no range operator then "="
|
|
95
89
|
var m = range.match(/^([<>=~^]+)/);
|
|
96
|
-
var op = m ? m[1] : '=';
|
|
97
|
-
|
|
98
|
-
if (op !== '^' && op !== '~') return compare(version, range, op);
|
|
99
|
-
|
|
90
|
+
var op = m ? m[1] : '=';
|
|
91
|
+
// if gt/lt/eq then operator compare
|
|
92
|
+
if (op !== '^' && op !== '~') return compare(version, range, op);
|
|
93
|
+
// else range of either "~" or "^" is assumed
|
|
100
94
|
var _validateAndParse = validateAndParse(version),
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
95
|
+
_validateAndParse2 = _slicedToArray(_validateAndParse, 3),
|
|
96
|
+
v1 = _validateAndParse2[0],
|
|
97
|
+
v2 = _validateAndParse2[1],
|
|
98
|
+
v3 = _validateAndParse2[2];
|
|
106
99
|
var _validateAndParse3 = validateAndParse(range),
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
100
|
+
_validateAndParse4 = _slicedToArray(_validateAndParse3, 3),
|
|
101
|
+
r1 = _validateAndParse4[0],
|
|
102
|
+
r2 = _validateAndParse4[1],
|
|
103
|
+
r3 = _validateAndParse4[2];
|
|
112
104
|
if (compareStrings(v1, r1) !== 0) return false;
|
|
113
|
-
|
|
114
105
|
if (op === '^') {
|
|
115
106
|
return compareSegments([v2, v3], [r2, r3]) >= 0;
|
|
116
107
|
}
|
|
117
|
-
|
|
118
108
|
if (compareStrings(v2, r2) !== 0) return false;
|
|
119
109
|
return compareStrings(v3, r3) >= 0;
|
|
120
110
|
};
|
|
121
111
|
var semver = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;
|
|
122
|
-
|
|
123
112
|
var validateAndParse = function validateAndParse(version) {
|
|
124
113
|
if (typeof version !== 'string') {
|
|
125
114
|
throw new TypeError('Invalid argument expected string');
|
|
126
115
|
}
|
|
127
|
-
|
|
128
116
|
var match = version.match(semver);
|
|
129
|
-
|
|
130
117
|
if (!match) {
|
|
131
118
|
throw new Error("Invalid argument not valid semver ('".concat(version, "' received)"));
|
|
132
119
|
}
|
|
133
|
-
|
|
134
120
|
match.shift();
|
|
135
121
|
return match;
|
|
136
122
|
};
|
|
137
|
-
|
|
138
123
|
var isWildcard = function isWildcard(s) {
|
|
139
124
|
return s === '*' || s === 'x' || s === 'X';
|
|
140
125
|
};
|
|
141
|
-
|
|
142
126
|
var tryParse = function tryParse(v) {
|
|
143
127
|
var n = _parseInt(v, 10);
|
|
144
|
-
|
|
145
128
|
return isNaN(n) ? v : n;
|
|
146
129
|
};
|
|
147
|
-
|
|
148
130
|
var forceType = function forceType(a, b) {
|
|
149
131
|
return _typeof(a) !== _typeof(b) ? [String(a), String(b)] : [a, b];
|
|
150
132
|
};
|
|
151
|
-
|
|
152
133
|
var compareStrings = function compareStrings(a, b) {
|
|
153
134
|
if (isWildcard(a) || isWildcard(b)) return 0;
|
|
154
|
-
|
|
155
135
|
var _forceType = forceType(tryParse(a), tryParse(b)),
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
136
|
+
_forceType2 = _slicedToArray(_forceType, 2),
|
|
137
|
+
ap = _forceType2[0],
|
|
138
|
+
bp = _forceType2[1];
|
|
160
139
|
if (ap > bp) return 1;
|
|
161
140
|
if (ap < bp) return -1;
|
|
162
141
|
return 0;
|
|
163
142
|
};
|
|
164
|
-
|
|
165
143
|
var compareSegments = function compareSegments(a, b) {
|
|
166
144
|
for (var i = 0; i < Math.max(a.length, b.length); i++) {
|
|
167
145
|
var r = compareStrings(a[i] || '0', b[i] || '0');
|
|
168
146
|
if (r !== 0) return r;
|
|
169
147
|
}
|
|
170
|
-
|
|
171
148
|
return 0;
|
|
172
149
|
};
|
|
173
|
-
|
|
174
150
|
var operatorResMap = {
|
|
175
151
|
'>': [1],
|
|
176
152
|
'>=': [0, 1],
|
|
@@ -178,14 +154,11 @@ var operatorResMap = {
|
|
|
178
154
|
'<=': [-1, 0],
|
|
179
155
|
'<': [-1]
|
|
180
156
|
};
|
|
181
|
-
|
|
182
157
|
var allowedOperators = _Object$keys(operatorResMap);
|
|
183
|
-
|
|
184
158
|
var assertValidOperator = function assertValidOperator(op) {
|
|
185
159
|
if (typeof op !== 'string') {
|
|
186
160
|
throw new TypeError("Invalid operator type, expected string but got ".concat(_typeof(op)));
|
|
187
161
|
}
|
|
188
|
-
|
|
189
162
|
if (_indexOfInstanceProperty(allowedOperators).call(allowedOperators, op) === -1) {
|
|
190
163
|
throw new Error("Invalid operator, expected one of ".concat(allowedOperators.join('|')));
|
|
191
164
|
}
|
package/es/utils/console.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
var _context, _context2, _context3;
|
|
2
|
-
|
|
3
2
|
import _bindInstanceProperty from "@babel/runtime-corejs3/core-js/instance/bind";
|
|
4
3
|
// 防止被应用复写console
|
|
5
4
|
var myconsole = {
|
|
@@ -7,53 +6,39 @@ var myconsole = {
|
|
|
7
6
|
warn: function warn() {},
|
|
8
7
|
error: function error() {}
|
|
9
8
|
};
|
|
10
|
-
|
|
11
9
|
if (typeof window !== 'undefined' && window.console) {
|
|
12
10
|
myconsole = window.console;
|
|
13
11
|
}
|
|
14
|
-
|
|
15
12
|
if (typeof document !== 'undefined' && document.body) {
|
|
16
13
|
var iframe = document.createElement('iframe');
|
|
17
|
-
|
|
18
14
|
if (iframe && iframe.contentWindow && iframe.contentWindow.console) {
|
|
19
15
|
iframe.style.display = 'none';
|
|
20
16
|
document.body.appendChild(iframe);
|
|
21
17
|
myconsole = iframe.contentWindow.console;
|
|
22
18
|
}
|
|
23
19
|
}
|
|
24
|
-
|
|
25
20
|
var myLog = _bindInstanceProperty(_context = myconsole.log).call(_context, myconsole);
|
|
26
|
-
|
|
27
21
|
var myWarn = _bindInstanceProperty(_context2 = myconsole.warn).call(_context2, myconsole);
|
|
28
|
-
|
|
29
22
|
var myError = _bindInstanceProperty(_context3 = myconsole.error).call(_context3, myconsole);
|
|
30
|
-
|
|
31
23
|
var style = 'color:#fff;font-weight:bold;border-radius:5px;background:#67c23a;';
|
|
32
24
|
var styleError = "".concat(style, "background-color:red;");
|
|
33
25
|
var styleWarn = "".concat(style, "background-color:orange;");
|
|
34
|
-
|
|
35
26
|
function log() {
|
|
36
27
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
37
28
|
args[_key] = arguments[_key];
|
|
38
29
|
}
|
|
39
|
-
|
|
40
30
|
return myLog("%c Yach-jssdk log: ", style, args);
|
|
41
31
|
}
|
|
42
|
-
|
|
43
32
|
function error() {
|
|
44
33
|
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
45
34
|
args[_key2] = arguments[_key2];
|
|
46
35
|
}
|
|
47
|
-
|
|
48
36
|
return myWarn("%c Yach-jssdk log: ", styleError, args);
|
|
49
37
|
}
|
|
50
|
-
|
|
51
38
|
function warn() {
|
|
52
39
|
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
53
40
|
args[_key3] = arguments[_key3];
|
|
54
41
|
}
|
|
55
|
-
|
|
56
42
|
return myError("%c Yach-jssdk log: ", styleWarn, args);
|
|
57
43
|
}
|
|
58
|
-
|
|
59
44
|
export { log, error, warn };
|
package/es/utils/env.js
CHANGED
|
@@ -1,37 +1,31 @@
|
|
|
1
1
|
import { ENV_ENUM } from '../lib/sdk/sdk.typings';
|
|
2
|
-
|
|
3
2
|
function getUA() {
|
|
4
3
|
return typeof navigator !== 'undefined' ? navigator.userAgent : '';
|
|
5
4
|
}
|
|
6
|
-
|
|
7
5
|
function getENV() {
|
|
8
6
|
var ua = getUA(),
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
7
|
+
inYach = /Yach/i.test(ua),
|
|
8
|
+
inIOS = /iPhone|iPad|iPod|iOS/i.test(ua) && inYach,
|
|
9
|
+
inAndroid = /Android/i.test(ua) && inYach,
|
|
10
|
+
inPC = /YachPc/i.test(ua),
|
|
11
|
+
inIpad = /iPad/i.test(ua) && inYach,
|
|
12
|
+
inIPhone = /iPhone/i.test(ua) && inYach,
|
|
13
|
+
isTest = /Yachtest/.test(ua) && inYach;
|
|
14
|
+
// platform
|
|
17
15
|
var platform = ENV_ENUM.notInYach;
|
|
18
|
-
|
|
19
16
|
if (inIOS) {
|
|
20
17
|
platform = ENV_ENUM.ios;
|
|
21
18
|
}
|
|
22
|
-
|
|
23
19
|
if (inAndroid) {
|
|
24
20
|
platform = ENV_ENUM.android;
|
|
25
21
|
}
|
|
26
|
-
|
|
27
22
|
if (inPC) {
|
|
28
23
|
platform = ENV_ENUM.pc;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
24
|
+
}
|
|
25
|
+
// version
|
|
32
26
|
var versionArr = ua.match(/Yach\/[a-zA-Z0-9.-]+/) || [];
|
|
33
|
-
var version = (versionArr[0] || '').split('/')[1] || '';
|
|
34
|
-
|
|
27
|
+
var version = (versionArr[0] || '').split('/')[1] || '';
|
|
28
|
+
// language
|
|
35
29
|
var language = typeof navigator !== 'undefined' ? navigator.language : '*';
|
|
36
30
|
return {
|
|
37
31
|
platform: platform,
|
|
@@ -48,5 +42,4 @@ function getENV() {
|
|
|
48
42
|
env: isTest ? 'test' : 'online'
|
|
49
43
|
};
|
|
50
44
|
}
|
|
51
|
-
|
|
52
45
|
export { getENV };
|
package/es/utils/index.js
CHANGED
|
@@ -3,13 +3,10 @@ import _Object$assign from "@babel/runtime-corejs3/core-js/object/assign";
|
|
|
3
3
|
import { getENV } from './env';
|
|
4
4
|
import bpitLog from './bpitLog';
|
|
5
5
|
import { log, error, warn } from './console';
|
|
6
|
-
|
|
7
6
|
function staticsLog(config) {
|
|
8
7
|
var env = getENV().env;
|
|
9
8
|
var version = getENV().version;
|
|
10
|
-
|
|
11
9
|
var timestamp = _Date$now();
|
|
12
|
-
|
|
13
10
|
var params = _Object$assign({
|
|
14
11
|
group: 'yach',
|
|
15
12
|
project: 'yach_31_jssdk',
|
|
@@ -17,9 +14,7 @@ function staticsLog(config) {
|
|
|
17
14
|
version: version,
|
|
18
15
|
timestamp: timestamp
|
|
19
16
|
}, config);
|
|
20
|
-
|
|
21
17
|
console.log('jssdk 项目 bpit 上报数据:', params);
|
|
22
18
|
bpitLog(params);
|
|
23
19
|
}
|
|
24
|
-
|
|
25
20
|
export { log, error, warn, staticsLog as bpitLog, getENV };
|
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
-
|
|
5
4
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
|
-
|
|
7
5
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
|
-
|
|
11
8
|
exports.talYoungFilesUpload = talYoungFilesUpload;
|
|
12
|
-
|
|
13
9
|
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
14
|
-
|
|
15
10
|
/*
|
|
16
11
|
* @Descripttion:
|
|
17
12
|
* @Author: olei<wangzheng_jzb@100tal.com>
|
|
@@ -20,8 +15,8 @@ var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
|
20
15
|
* @LastEditTime: 2020-09-10 16:51:44
|
|
21
16
|
* yach > 1.4.7 已经废弃,目前只保留 sdk 入口兼容 yach 低版本调用
|
|
22
17
|
*/
|
|
23
|
-
var apiName = 'app.custom.talYoungFilesUpload';
|
|
24
18
|
|
|
19
|
+
var apiName = 'app.custom.talYoungFilesUpload';
|
|
25
20
|
function talYoungFilesUpload(params) {
|
|
26
21
|
(0, _initAPI["default"])(apiName, {
|
|
27
22
|
params: params
|
|
@@ -1,19 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
-
|
|
5
4
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
|
-
|
|
7
5
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
|
-
|
|
11
8
|
exports.chooseConversationByCorpId = chooseConversationByCorpId;
|
|
12
|
-
|
|
13
9
|
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
14
|
-
|
|
15
10
|
var apiName = 'biz.chat.chooseConversationByCorpId';
|
|
16
|
-
|
|
17
11
|
function chooseConversationByCorpId(params) {
|
|
18
12
|
(0, _initAPI["default"])(apiName, {
|
|
19
13
|
params: params
|
|
@@ -1,19 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
-
|
|
5
4
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
|
-
|
|
7
5
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
|
-
|
|
11
8
|
exports.openSingleChat = openSingleChat;
|
|
12
|
-
|
|
13
9
|
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
14
|
-
|
|
15
10
|
var apiName = 'biz.chat.openSingleChat';
|
|
16
|
-
|
|
17
11
|
function openSingleChat(params) {
|
|
18
12
|
(0, _initAPI["default"])(apiName, {
|
|
19
13
|
params: params
|
|
@@ -1,19 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
-
|
|
5
4
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
|
-
|
|
7
5
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
|
-
|
|
11
8
|
exports.openSquad = openSquad;
|
|
12
|
-
|
|
13
9
|
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
14
|
-
|
|
15
10
|
var apiName = 'biz.chat.openSquad';
|
|
16
|
-
|
|
17
11
|
function openSquad(params) {
|
|
18
12
|
(0, _initAPI["default"])(apiName, {
|
|
19
13
|
params: params
|
|
@@ -1,19 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
-
|
|
5
4
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
|
-
|
|
7
5
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
|
-
|
|
11
8
|
exports.openTeamChat = openTeamChat;
|
|
12
|
-
|
|
13
9
|
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
14
|
-
|
|
15
10
|
var apiName = 'biz.chat.openTeamChat';
|
|
16
|
-
|
|
17
11
|
function openTeamChat(params) {
|
|
18
12
|
(0, _initAPI["default"])(apiName, {
|
|
19
13
|
params: params
|
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
-
|
|
5
4
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
|
-
|
|
7
5
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
|
-
|
|
11
8
|
exports.pickConversation = pickConversation;
|
|
12
|
-
|
|
13
9
|
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
14
|
-
|
|
15
10
|
var apiName = 'biz.chat.pickConversation';
|
|
16
11
|
var ios = {
|
|
17
12
|
vs: '0.0.0'
|
|
@@ -23,7 +18,6 @@ var platform = {
|
|
|
23
18
|
ios: ios,
|
|
24
19
|
android: android
|
|
25
20
|
};
|
|
26
|
-
|
|
27
21
|
function pickConversation(params) {
|
|
28
22
|
(0, _initAPI["default"])(apiName, {
|
|
29
23
|
params: params,
|
|
@@ -1,19 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
-
|
|
5
4
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
|
-
|
|
7
5
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
|
-
|
|
11
8
|
exports.sendP2PMsg = sendP2PMsg;
|
|
12
|
-
|
|
13
9
|
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
14
|
-
|
|
15
10
|
var apiName = 'biz.chat.sendP2PMsg';
|
|
16
|
-
|
|
17
11
|
function sendP2PMsg(params) {
|
|
18
12
|
(0, _initAPI["default"])(apiName, {
|
|
19
13
|
params: params
|
|
@@ -1,19 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
-
|
|
5
4
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
|
-
|
|
7
5
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
|
-
|
|
11
8
|
exports.complexPicker = complexPicker;
|
|
12
|
-
|
|
13
9
|
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
14
|
-
|
|
15
10
|
var apiName = 'biz.contact.complexPicker';
|
|
16
|
-
|
|
17
11
|
function complexPicker(params) {
|
|
18
12
|
(0, _initAPI["default"])(apiName, {
|
|
19
13
|
params: params
|
|
@@ -1,19 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
-
|
|
5
4
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
|
-
|
|
7
5
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
|
-
|
|
11
8
|
exports.departmentsPicker = departmentsPicker;
|
|
12
|
-
|
|
13
9
|
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
14
|
-
|
|
15
10
|
var apiName = 'biz.contact.departmentsPicker';
|
|
16
|
-
|
|
17
11
|
function departmentsPicker(params) {
|
|
18
12
|
(0, _initAPI["default"])(apiName, {
|
|
19
13
|
params: params
|
|
@@ -1,19 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
-
|
|
5
4
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
|
-
|
|
7
5
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
|
-
|
|
11
8
|
exports.groupComplexPicker = groupComplexPicker;
|
|
12
|
-
|
|
13
9
|
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
14
|
-
|
|
15
10
|
var apiName = 'biz.group.groupComplexPicker';
|
|
16
|
-
|
|
17
11
|
function groupComplexPicker(params) {
|
|
18
12
|
(0, _initAPI["default"])(apiName, {
|
|
19
13
|
params: params
|
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
-
|
|
5
4
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
|
-
|
|
7
5
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
|
-
|
|
11
8
|
exports.multipointView = multipointView;
|
|
12
|
-
|
|
13
9
|
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
14
|
-
|
|
15
10
|
var apiName = 'biz.map.multipointView';
|
|
16
11
|
var ios = {
|
|
17
12
|
vs: '0.0.0'
|
|
@@ -23,7 +18,6 @@ var platform = {
|
|
|
23
18
|
ios: ios,
|
|
24
19
|
android: android
|
|
25
20
|
};
|
|
26
|
-
|
|
27
21
|
function multipointView(params) {
|
|
28
22
|
(0, _initAPI["default"])(apiName, {
|
|
29
23
|
params: params,
|
package/libs/api/biz/map/view.js
CHANGED
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
-
|
|
5
4
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
|
-
|
|
7
5
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
|
-
|
|
11
8
|
exports.view = view;
|
|
12
|
-
|
|
13
9
|
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
14
|
-
|
|
15
10
|
var apiName = 'biz.map.view';
|
|
16
11
|
var ios = {
|
|
17
12
|
vs: '0.0.0'
|
|
@@ -23,7 +18,6 @@ var platform = {
|
|
|
23
18
|
ios: ios,
|
|
24
19
|
android: android
|
|
25
20
|
};
|
|
26
|
-
|
|
27
21
|
function view(params) {
|
|
28
22
|
(0, _initAPI["default"])(apiName, {
|
|
29
23
|
params: params,
|
|
@@ -1,20 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
-
|
|
5
4
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
|
-
|
|
7
5
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
|
-
|
|
11
8
|
exports.close = close;
|
|
12
|
-
|
|
13
9
|
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
14
|
-
|
|
15
10
|
;
|
|
16
11
|
var apiName = 'biz.navigation.close';
|
|
17
|
-
|
|
18
12
|
function close(params) {
|
|
19
13
|
(0, _initAPI["default"])(apiName, {
|
|
20
14
|
params: params
|
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
-
|
|
5
4
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
|
-
|
|
7
5
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
|
-
|
|
11
8
|
exports.goBack = goBack;
|
|
12
|
-
|
|
13
9
|
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
14
|
-
|
|
15
10
|
var apiName = 'biz.navigation.goBack';
|
|
16
11
|
var ios = {
|
|
17
12
|
vs: '0.0.0'
|
|
@@ -23,7 +18,6 @@ var platform = {
|
|
|
23
18
|
ios: ios,
|
|
24
19
|
android: android
|
|
25
20
|
};
|
|
26
|
-
|
|
27
21
|
function goBack(params) {
|
|
28
22
|
(0, _initAPI["default"])(apiName, {
|
|
29
23
|
params: params,
|
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
-
|
|
5
4
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
|
-
|
|
7
5
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
|
-
|
|
11
8
|
exports.quit = quit;
|
|
12
|
-
|
|
13
9
|
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
14
|
-
|
|
15
10
|
var apiName = 'biz.navigation.quit';
|
|
16
11
|
var pc = {
|
|
17
12
|
vs: '0.0.0'
|
|
@@ -19,7 +14,6 @@ var pc = {
|
|
|
19
14
|
var platform = {
|
|
20
15
|
pc: pc
|
|
21
16
|
};
|
|
22
|
-
|
|
23
17
|
function quit(params) {
|
|
24
18
|
(0, _initAPI["default"])(apiName, {
|
|
25
19
|
params: params,
|