yach.open.jssdk 4.4.1 → 4.4.3-beta1
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/package.json +1 -1
- package/dist/yach_jssdk_4.4.1-beta6.js +0 -1
- package/es/api/app/custom/talYoungFilesUpload.d.ts +0 -38
- package/es/api/app/custom/talYoungFilesUpload.js +0 -16
- package/es/api/biz/chat/chooseConversationByCorpId.d.ts +0 -36
- package/es/api/biz/chat/chooseConversationByCorpId.js +0 -8
- package/es/api/biz/chat/openSingleChat.d.ts +0 -10
- package/es/api/biz/chat/openSingleChat.js +0 -8
- package/es/api/biz/chat/openSquad.d.ts +0 -8
- package/es/api/biz/chat/openSquad.js +0 -8
- package/es/api/biz/chat/openTeamChat.d.ts +0 -10
- package/es/api/biz/chat/openTeamChat.js +0 -8
- package/es/api/biz/chat/pickConversation.d.ts +0 -19
- package/es/api/biz/chat/pickConversation.js +0 -19
- package/es/api/biz/chat/sendP2PMsg.d.ts +0 -10
- package/es/api/biz/chat/sendP2PMsg.js +0 -8
- package/es/api/biz/contact/complexPicker.d.ts +0 -62
- package/es/api/biz/contact/complexPicker.js +0 -8
- package/es/api/biz/contact/departmentsPicker.d.ts +0 -35
- package/es/api/biz/contact/departmentsPicker.js +0 -8
- package/es/api/biz/group/groupComplexPicker.d.ts +0 -33
- package/es/api/biz/group/groupComplexPicker.js +0 -8
- package/es/api/biz/map/multipointView.d.ts +0 -21
- package/es/api/biz/map/multipointView.js +0 -19
- package/es/api/biz/map/view.d.ts +0 -13
- package/es/api/biz/map/view.js +0 -19
- package/es/api/biz/navigation/close.d.ts +0 -7
- package/es/api/biz/navigation/close.js +0 -9
- package/es/api/biz/navigation/goBack.d.ts +0 -7
- package/es/api/biz/navigation/goBack.js +0 -19
- package/es/api/biz/navigation/quit.d.ts +0 -8
- package/es/api/biz/navigation/quit.js +0 -15
- package/es/api/biz/navigation/replace.d.ts +0 -8
- package/es/api/biz/navigation/replace.js +0 -8
- package/es/api/biz/navigation/setIcon.d.ts +0 -12
- package/es/api/biz/navigation/setIcon.js +0 -27
- package/es/api/biz/navigation/setLeft.d.ts +0 -9
- package/es/api/biz/navigation/setLeft.js +0 -31
- package/es/api/biz/navigation/setMenu.d.ts +0 -20
- package/es/api/biz/navigation/setMenu.js +0 -25
- package/es/api/biz/navigation/setPanGestureEnable.d.ts +0 -9
- package/es/api/biz/navigation/setPanGestureEnable.js +0 -26
- package/es/api/biz/navigation/setRight.d.ts +0 -13
- package/es/api/biz/navigation/setRight.js +0 -31
- package/es/api/biz/navigation/setTitle.d.ts +0 -11
- package/es/api/biz/navigation/setTitle.js +0 -8
- package/es/api/biz/navigation/setTitleExpandIcon.d.ts +0 -9
- package/es/api/biz/navigation/setTitleExpandIcon.js +0 -25
- package/es/api/biz/navigation/setWindowBig.d.ts +0 -9
- package/es/api/biz/navigation/setWindowBig.js +0 -16
- package/es/api/biz/navigation/tencentMeeting.d.ts +0 -22
- package/es/api/biz/navigation/tencentMeeting.js +0 -8
- package/es/api/biz/navigation/tencentMeetingBegin.d.ts +0 -7
- package/es/api/biz/navigation/tencentMeetingBegin.js +0 -8
- package/es/api/biz/navigation/updateExpandTitle.d.ts +0 -8
- package/es/api/biz/navigation/updateExpandTitle.js +0 -8
- package/es/api/biz/telephone/call.d.ts +0 -9
- package/es/api/biz/telephone/call.js +0 -19
- package/es/api/biz/telephone/showCallMenu.d.ts +0 -12
- package/es/api/biz/telephone/showCallMenu.js +0 -19
- package/es/api/biz/util/addAppToNav.d.ts +0 -9
- package/es/api/biz/util/addAppToNav.js +0 -23
- package/es/api/biz/util/assistantCreate.d.ts +0 -11
- package/es/api/biz/util/assistantCreate.js +0 -23
- package/es/api/biz/util/authFinish.d.ts +0 -11
- package/es/api/biz/util/authFinish.js +0 -19
- package/es/api/biz/util/authStart.d.ts +0 -9
- package/es/api/biz/util/authStart.js +0 -19
- package/es/api/biz/util/chosen.d.ts +0 -15
- package/es/api/biz/util/chosen.js +0 -19
- package/es/api/biz/util/clipboardFileUpload.d.ts +0 -7
- package/es/api/biz/util/clipboardFileUpload.js +0 -8
- package/es/api/biz/util/closeWindow.d.ts +0 -8
- package/es/api/biz/util/closeWindow.js +0 -15
- package/es/api/biz/util/complain.d.ts +0 -12
- package/es/api/biz/util/complain.js +0 -8
- package/es/api/biz/util/copy.d.ts +0 -11
- package/es/api/biz/util/copy.js +0 -19
- package/es/api/biz/util/createModifySchedule.d.ts +0 -26
- package/es/api/biz/util/createModifySchedule.js +0 -15
- package/es/api/biz/util/datepicker.d.ts +0 -14
- package/es/api/biz/util/datepicker.js +0 -19
- package/es/api/biz/util/datetimepicker.d.ts +0 -14
- package/es/api/biz/util/datetimepicker.js +0 -19
- package/es/api/biz/util/disableScreenCapture.d.ts +0 -8
- package/es/api/biz/util/disableScreenCapture.js +0 -19
- package/es/api/biz/util/downloadFile.d.ts +0 -9
- package/es/api/biz/util/downloadFile.js +0 -8
- package/es/api/biz/util/entergroupCheck.d.ts +0 -11
- package/es/api/biz/util/entergroupCheck.js +0 -23
- package/es/api/biz/util/externalLinkPreviewFile.d.ts +0 -11
- package/es/api/biz/util/externalLinkPreviewFile.js +0 -8
- package/es/api/biz/util/feedback.d.ts +0 -11
- package/es/api/biz/util/feedback.js +0 -8
- package/es/api/biz/util/getSingleWebviewData.d.ts +0 -8
- package/es/api/biz/util/getSingleWebviewData.js +0 -8
- package/es/api/biz/util/getTogetherConfig.d.ts +0 -11
- package/es/api/biz/util/getTogetherConfig.js +0 -23
- package/es/api/biz/util/getToken.d.ts +0 -11
- package/es/api/biz/util/getToken.js +0 -19
- package/es/api/biz/util/injectScript.d.ts +0 -9
- package/es/api/biz/util/injectScript.js +0 -8
- package/es/api/biz/util/invoice.d.ts +0 -12
- package/es/api/biz/util/invoice.js +0 -15
- package/es/api/biz/util/knowledgeBaseSelect.d.ts +0 -21
- package/es/api/biz/util/knowledgeBaseSelect.js +0 -15
- package/es/api/biz/util/lorebaseRefreshNodeWebview.d.ts +0 -11
- package/es/api/biz/util/lorebaseRefreshNodeWebview.js +0 -19
- package/es/api/biz/util/lorebaseShowList.d.ts +0 -11
- package/es/api/biz/util/lorebaseShowList.js +0 -19
- package/es/api/biz/util/mediaFileUpload.d.ts +0 -26
- package/es/api/biz/util/mediaFileUpload.js +0 -15
- package/es/api/biz/util/onlineDocmentOpenTeamChat.d.ts +0 -10
- package/es/api/biz/util/onlineDocmentOpenTeamChat.js +0 -23
- package/es/api/biz/util/open.d.ts +0 -9
- package/es/api/biz/util/open.js +0 -8
- package/es/api/biz/util/openFutureGroup.d.ts +0 -10
- package/es/api/biz/util/openFutureGroup.js +0 -23
- package/es/api/biz/util/openLink.d.ts +0 -8
- package/es/api/biz/util/openLink.js +0 -8
- package/es/api/biz/util/openMediaFileDialog.d.ts +0 -23
- package/es/api/biz/util/openMediaFileDialog.js +0 -15
- package/es/api/biz/util/openSingleWebview.d.ts +0 -23
- package/es/api/biz/util/openSingleWebview.js +0 -15
- package/es/api/biz/util/openSlidePanel.d.ts +0 -11
- package/es/api/biz/util/openSlidePanel.js +0 -15
- package/es/api/biz/util/openTalYoungToTopic.d.ts +0 -6
- package/es/api/biz/util/openTalYoungToTopic.js +0 -15
- package/es/api/biz/util/openTogetherEyeWebview.d.ts +0 -11
- package/es/api/biz/util/openTogetherEyeWebview.js +0 -23
- package/es/api/biz/util/openUserSchedule.d.ts +0 -11
- package/es/api/biz/util/openUserSchedule.js +0 -23
- package/es/api/biz/util/openVideoPlayer.d.ts +0 -27
- package/es/api/biz/util/openVideoPlayer.js +0 -23
- package/es/api/biz/util/previewFile.d.ts +0 -11
- package/es/api/biz/util/previewFile.js +0 -8
- package/es/api/biz/util/previewImage.d.ts +0 -9
- package/es/api/biz/util/previewImage.js +0 -8
- package/es/api/biz/util/proxy.d.ts +0 -13
- package/es/api/biz/util/proxy.js +0 -8
- package/es/api/biz/util/pushWorkMsg.d.ts +0 -10
- package/es/api/biz/util/pushWorkMsg.js +0 -15
- package/es/api/biz/util/remind.d.ts +0 -15
- package/es/api/biz/util/remind.js +0 -23
- package/es/api/biz/util/resetSessionUnread.d.ts +0 -8
- package/es/api/biz/util/resetSessionUnread.js +0 -21
- package/es/api/biz/util/rouseApp.d.ts +0 -12
- package/es/api/biz/util/rouseApp.js +0 -15
- package/es/api/biz/util/savePic.d.ts +0 -8
- package/es/api/biz/util/savePic.js +0 -19
- package/es/api/biz/util/scan.d.ts +0 -11
- package/es/api/biz/util/scan.js +0 -19
- package/es/api/biz/util/selectDepartment.d.ts +0 -9
- package/es/api/biz/util/selectDepartment.js +0 -8
- package/es/api/biz/util/share.d.ts +0 -12
- package/es/api/biz/util/share.js +0 -19
- package/es/api/biz/util/takePicture.d.ts +0 -13
- package/es/api/biz/util/takePicture.js +0 -8
- package/es/api/biz/util/uploadAttachment.d.ts +0 -55
- package/es/api/biz/util/uploadAttachment.js +0 -8
- package/es/api/biz/util/yachEvent.d.ts +0 -12
- package/es/api/biz/util/yachEvent.js +0 -27
- package/es/api/biz/util/zfbAuth.d.ts +0 -10
- package/es/api/biz/util/zfbAuth.js +0 -19
- package/es/api/biz/webViewMessage/send.d.ts +0 -7
- package/es/api/biz/webViewMessage/send.js +0 -15
- package/es/api/common.typings.d.ts +0 -9
- package/es/api/common.typings.js +0 -0
- package/es/api/device/audio/download.d.ts +0 -8
- package/es/api/device/audio/download.js +0 -19
- package/es/api/device/audio/onPlayEnd.d.ts +0 -7
- package/es/api/device/audio/onPlayEnd.js +0 -19
- package/es/api/device/audio/onRecordEnd.d.ts +0 -7
- package/es/api/device/audio/onRecordEnd.js +0 -19
- package/es/api/device/audio/onRecordEnd_v2.d.ts +0 -7
- package/es/api/device/audio/onRecordEnd_v2.js +0 -19
- package/es/api/device/audio/pause.d.ts +0 -8
- package/es/api/device/audio/pause.js +0 -19
- package/es/api/device/audio/play.d.ts +0 -8
- package/es/api/device/audio/play.js +0 -19
- package/es/api/device/audio/resume.d.ts +0 -8
- package/es/api/device/audio/resume.js +0 -19
- package/es/api/device/audio/startRecord.d.ts +0 -8
- package/es/api/device/audio/startRecord.js +0 -19
- package/es/api/device/audio/startRecord_v2.d.ts +0 -8
- package/es/api/device/audio/startRecord_v2.js +0 -19
- package/es/api/device/audio/stop.d.ts +0 -8
- package/es/api/device/audio/stop.js +0 -19
- package/es/api/device/audio/stopRecord.d.ts +0 -7
- package/es/api/device/audio/stopRecord.js +0 -19
- package/es/api/device/audio/stopRecord_v2.d.ts +0 -7
- package/es/api/device/audio/stopRecord_v2.js +0 -19
- package/es/api/device/base/checkStepPermission.d.ts +0 -8
- package/es/api/device/base/checkStepPermission.js +0 -19
- package/es/api/device/base/getPhoneInfo.d.ts +0 -16
- package/es/api/device/base/getPhoneInfo.js +0 -19
- package/es/api/device/base/getUUID.d.ts +0 -10
- package/es/api/device/base/getUUID.js +0 -23
- package/es/api/device/connection/getNetworkType.d.ts +0 -10
- package/es/api/device/connection/getNetworkType.js +0 -19
- package/es/api/device/connection/isAtTal.d.ts +0 -10
- package/es/api/device/connection/isAtTal.js +0 -21
- package/es/api/device/geolocation/get.d.ts +0 -42
- package/es/api/device/geolocation/get.js +0 -19
- package/es/api/device/geolocation/getSwitch.d.ts +0 -10
- package/es/api/device/geolocation/getSwitch.js +0 -15
- package/es/api/device/notification/actionSheet.d.ts +0 -15
- package/es/api/device/notification/actionSheet.js +0 -19
- package/es/api/device/notification/alert.d.ts +0 -13
- package/es/api/device/notification/alert.js +0 -23
- package/es/api/device/notification/confirm.d.ts +0 -16
- package/es/api/device/notification/confirm.js +0 -23
- package/es/api/device/notification/hidePreloader.d.ts +0 -7
- package/es/api/device/notification/hidePreloader.js +0 -19
- package/es/api/device/notification/showPreloader.d.ts +0 -9
- package/es/api/device/notification/showPreloader.js +0 -19
- package/es/api/device/notification/toast.d.ts +0 -15
- package/es/api/device/notification/toast.js +0 -8
- package/es/api/device/notification/vibrate.d.ts +0 -8
- package/es/api/device/notification/vibrate.js +0 -19
- package/es/api/device/system/getLang.d.ts +0 -10
- package/es/api/device/system/getLang.js +0 -8
- package/es/api/device/system/setLight.d.ts +0 -8
- package/es/api/device/system/setLight.js +0 -19
- package/es/api/initAPI.d.ts +0 -6
- package/es/api/initAPI.js +0 -22
- package/es/api/primary/createTab.d.ts +0 -13
- package/es/api/primary/createTab.js +0 -15
- package/es/api/primary/exitFullScreen.d.ts +0 -7
- package/es/api/primary/exitFullScreen.js +0 -15
- package/es/api/primary/fullScreen.d.ts +0 -7
- package/es/api/primary/fullScreen.js +0 -15
- package/es/api/primary/weeklyShare.d.ts +0 -13
- package/es/api/primary/weeklyShare.js +0 -15
- package/es/api/runtime/permission/requestAuthCode.d.ts +0 -12
- package/es/api/runtime/permission/requestAuthCode.js +0 -8
- package/es/api/ui/pullToRefresh/disable.d.ts +0 -7
- package/es/api/ui/pullToRefresh/disable.js +0 -19
- package/es/api/ui/pullToRefresh/enable.d.ts +0 -7
- package/es/api/ui/pullToRefresh/enable.js +0 -19
- package/es/api/ui/pullToRefresh/stop.d.ts +0 -7
- package/es/api/ui/pullToRefresh/stop.js +0 -19
- package/es/api/ui/webViewBounce/disable.d.ts +0 -7
- package/es/api/ui/webViewBounce/disable.js +0 -15
- package/es/api/util/domainStorage/getItem.d.ts +0 -12
- package/es/api/util/domainStorage/getItem.js +0 -19
- package/es/api/util/domainStorage/removeItem.d.ts +0 -9
- package/es/api/util/domainStorage/removeItem.js +0 -19
- package/es/api/util/domainStorage/setItem.d.ts +0 -11
- package/es/api/util/domainStorage/setItem.js +0 -19
- package/es/api/util/tool/flushLog.d.ts +0 -7
- package/es/api/util/tool/flushLog.js +0 -15
- package/es/api/util/tool/log.d.ts +0 -9
- package/es/api/util/tool/log.js +0 -15
- package/es/index.d.ts +0 -325
- package/es/index.js +0 -341
- package/es/lib/bridge/index.d.ts +0 -2
- package/es/lib/bridge/index.js +0 -2
- package/es/lib/bridge/mobile.d.ts +0 -13
- package/es/lib/bridge/mobile.js +0 -179
- package/es/lib/bridge/pc.d.ts +0 -4
- package/es/lib/bridge/pc.js +0 -87
- package/es/lib/helper/apiHelper.d.ts +0 -2
- package/es/lib/helper/apiHelper.js +0 -8
- package/es/lib/helper/codeMap.d.ts +0 -2
- package/es/lib/helper/codeMap.js +0 -6
- package/es/lib/helper/event.d.ts +0 -9
- package/es/lib/helper/event.js +0 -40
- package/es/lib/helper/pcIframe.d.ts +0 -44
- package/es/lib/helper/pcIframe.js +0 -150
- package/es/lib/index.d.ts +0 -4
- package/es/lib/index.js +0 -78
- package/es/lib/sdk/index.d.ts +0 -19
- package/es/lib/sdk/index.js +0 -170
- package/es/lib/sdk/sdk.typings.d.ts +0 -85
- package/es/lib/sdk/sdk.typings.js +0 -7
- package/es/utils/bpitLog.d.ts +0 -16
- package/es/utils/bpitLog.js +0 -62
- package/es/utils/compareVersions.d.ts +0 -58
- package/es/utils/compareVersions.js +0 -165
- package/es/utils/console.d.ts +0 -4
- package/es/utils/console.js +0 -44
- package/es/utils/env.d.ts +0 -3
- package/es/utils/env.js +0 -45
- package/es/utils/index.d.ts +0 -4
- package/es/utils/index.js +0 -20
- package/libs/api/app/custom/talYoungFilesUpload.d.ts +0 -38
- package/libs/api/app/custom/talYoungFilesUpload.js +0 -24
- package/libs/api/biz/chat/chooseConversationByCorpId.d.ts +0 -36
- package/libs/api/biz/chat/chooseConversationByCorpId.js +0 -15
- package/libs/api/biz/chat/openSingleChat.d.ts +0 -10
- package/libs/api/biz/chat/openSingleChat.js +0 -15
- package/libs/api/biz/chat/openSquad.d.ts +0 -8
- package/libs/api/biz/chat/openSquad.js +0 -15
- package/libs/api/biz/chat/openTeamChat.d.ts +0 -10
- package/libs/api/biz/chat/openTeamChat.js +0 -15
- package/libs/api/biz/chat/pickConversation.d.ts +0 -19
- package/libs/api/biz/chat/pickConversation.js +0 -26
- package/libs/api/biz/chat/sendP2PMsg.d.ts +0 -10
- package/libs/api/biz/chat/sendP2PMsg.js +0 -15
- package/libs/api/biz/contact/complexPicker.d.ts +0 -62
- package/libs/api/biz/contact/complexPicker.js +0 -15
- package/libs/api/biz/contact/departmentsPicker.d.ts +0 -35
- package/libs/api/biz/contact/departmentsPicker.js +0 -15
- package/libs/api/biz/group/groupComplexPicker.d.ts +0 -33
- package/libs/api/biz/group/groupComplexPicker.js +0 -15
- package/libs/api/biz/map/multipointView.d.ts +0 -21
- package/libs/api/biz/map/multipointView.js +0 -26
- package/libs/api/biz/map/view.d.ts +0 -13
- package/libs/api/biz/map/view.js +0 -26
- package/libs/api/biz/navigation/close.d.ts +0 -7
- package/libs/api/biz/navigation/close.js +0 -16
- package/libs/api/biz/navigation/goBack.d.ts +0 -7
- package/libs/api/biz/navigation/goBack.js +0 -26
- package/libs/api/biz/navigation/quit.d.ts +0 -8
- package/libs/api/biz/navigation/quit.js +0 -22
- package/libs/api/biz/navigation/replace.d.ts +0 -8
- package/libs/api/biz/navigation/replace.js +0 -15
- package/libs/api/biz/navigation/setIcon.d.ts +0 -12
- package/libs/api/biz/navigation/setIcon.js +0 -34
- package/libs/api/biz/navigation/setLeft.d.ts +0 -9
- package/libs/api/biz/navigation/setLeft.js +0 -38
- package/libs/api/biz/navigation/setMenu.d.ts +0 -20
- package/libs/api/biz/navigation/setMenu.js +0 -32
- package/libs/api/biz/navigation/setPanGestureEnable.d.ts +0 -9
- package/libs/api/biz/navigation/setPanGestureEnable.js +0 -33
- package/libs/api/biz/navigation/setRight.d.ts +0 -13
- package/libs/api/biz/navigation/setRight.js +0 -38
- package/libs/api/biz/navigation/setTitle.d.ts +0 -11
- package/libs/api/biz/navigation/setTitle.js +0 -15
- package/libs/api/biz/navigation/setTitleExpandIcon.d.ts +0 -9
- package/libs/api/biz/navigation/setTitleExpandIcon.js +0 -32
- package/libs/api/biz/navigation/setWindowBig.d.ts +0 -9
- package/libs/api/biz/navigation/setWindowBig.js +0 -24
- package/libs/api/biz/navigation/tencentMeeting.d.ts +0 -22
- package/libs/api/biz/navigation/tencentMeeting.js +0 -15
- package/libs/api/biz/navigation/tencentMeetingBegin.d.ts +0 -7
- package/libs/api/biz/navigation/tencentMeetingBegin.js +0 -15
- package/libs/api/biz/navigation/updateExpandTitle.d.ts +0 -8
- package/libs/api/biz/navigation/updateExpandTitle.js +0 -15
- package/libs/api/biz/telephone/call.d.ts +0 -9
- package/libs/api/biz/telephone/call.js +0 -26
- package/libs/api/biz/telephone/showCallMenu.d.ts +0 -12
- package/libs/api/biz/telephone/showCallMenu.js +0 -26
- package/libs/api/biz/util/addAppToNav.d.ts +0 -9
- package/libs/api/biz/util/addAppToNav.js +0 -30
- package/libs/api/biz/util/assistantCreate.d.ts +0 -11
- package/libs/api/biz/util/assistantCreate.js +0 -30
- package/libs/api/biz/util/authFinish.d.ts +0 -11
- package/libs/api/biz/util/authFinish.js +0 -26
- package/libs/api/biz/util/authStart.d.ts +0 -9
- package/libs/api/biz/util/authStart.js +0 -26
- package/libs/api/biz/util/chosen.d.ts +0 -15
- package/libs/api/biz/util/chosen.js +0 -26
- package/libs/api/biz/util/clipboardFileUpload.d.ts +0 -7
- package/libs/api/biz/util/clipboardFileUpload.js +0 -15
- package/libs/api/biz/util/closeWindow.d.ts +0 -8
- package/libs/api/biz/util/closeWindow.js +0 -22
- package/libs/api/biz/util/complain.d.ts +0 -12
- package/libs/api/biz/util/complain.js +0 -15
- package/libs/api/biz/util/copy.d.ts +0 -11
- package/libs/api/biz/util/copy.js +0 -26
- package/libs/api/biz/util/createModifySchedule.d.ts +0 -26
- package/libs/api/biz/util/createModifySchedule.js +0 -22
- package/libs/api/biz/util/datepicker.d.ts +0 -14
- package/libs/api/biz/util/datepicker.js +0 -26
- package/libs/api/biz/util/datetimepicker.d.ts +0 -14
- package/libs/api/biz/util/datetimepicker.js +0 -26
- package/libs/api/biz/util/disableScreenCapture.d.ts +0 -8
- package/libs/api/biz/util/disableScreenCapture.js +0 -26
- package/libs/api/biz/util/downloadFile.d.ts +0 -9
- package/libs/api/biz/util/downloadFile.js +0 -15
- package/libs/api/biz/util/entergroupCheck.d.ts +0 -11
- package/libs/api/biz/util/entergroupCheck.js +0 -30
- package/libs/api/biz/util/externalLinkPreviewFile.d.ts +0 -11
- package/libs/api/biz/util/externalLinkPreviewFile.js +0 -15
- package/libs/api/biz/util/feedback.d.ts +0 -11
- package/libs/api/biz/util/feedback.js +0 -15
- package/libs/api/biz/util/getSingleWebviewData.d.ts +0 -8
- package/libs/api/biz/util/getSingleWebviewData.js +0 -15
- package/libs/api/biz/util/getTogetherConfig.d.ts +0 -11
- package/libs/api/biz/util/getTogetherConfig.js +0 -30
- package/libs/api/biz/util/getToken.d.ts +0 -11
- package/libs/api/biz/util/getToken.js +0 -26
- package/libs/api/biz/util/injectScript.d.ts +0 -9
- package/libs/api/biz/util/injectScript.js +0 -15
- package/libs/api/biz/util/invoice.d.ts +0 -12
- package/libs/api/biz/util/invoice.js +0 -23
- package/libs/api/biz/util/knowledgeBaseSelect.d.ts +0 -21
- package/libs/api/biz/util/knowledgeBaseSelect.js +0 -22
- package/libs/api/biz/util/lorebaseRefreshNodeWebview.d.ts +0 -11
- package/libs/api/biz/util/lorebaseRefreshNodeWebview.js +0 -26
- package/libs/api/biz/util/lorebaseShowList.d.ts +0 -11
- package/libs/api/biz/util/lorebaseShowList.js +0 -26
- package/libs/api/biz/util/mediaFileUpload.d.ts +0 -26
- package/libs/api/biz/util/mediaFileUpload.js +0 -23
- package/libs/api/biz/util/onlineDocmentOpenTeamChat.d.ts +0 -10
- package/libs/api/biz/util/onlineDocmentOpenTeamChat.js +0 -30
- package/libs/api/biz/util/open.d.ts +0 -9
- package/libs/api/biz/util/open.js +0 -15
- package/libs/api/biz/util/openFutureGroup.d.ts +0 -10
- package/libs/api/biz/util/openFutureGroup.js +0 -30
- package/libs/api/biz/util/openLink.d.ts +0 -8
- package/libs/api/biz/util/openLink.js +0 -15
- package/libs/api/biz/util/openMediaFileDialog.d.ts +0 -23
- package/libs/api/biz/util/openMediaFileDialog.js +0 -23
- package/libs/api/biz/util/openSingleWebview.d.ts +0 -23
- package/libs/api/biz/util/openSingleWebview.js +0 -22
- package/libs/api/biz/util/openSlidePanel.d.ts +0 -11
- package/libs/api/biz/util/openSlidePanel.js +0 -22
- package/libs/api/biz/util/openTalYoungToTopic.d.ts +0 -6
- package/libs/api/biz/util/openTalYoungToTopic.js +0 -23
- package/libs/api/biz/util/openTogetherEyeWebview.d.ts +0 -11
- package/libs/api/biz/util/openTogetherEyeWebview.js +0 -30
- package/libs/api/biz/util/openUserSchedule.d.ts +0 -11
- package/libs/api/biz/util/openUserSchedule.js +0 -30
- package/libs/api/biz/util/openVideoPlayer.d.ts +0 -27
- package/libs/api/biz/util/openVideoPlayer.js +0 -30
- package/libs/api/biz/util/previewFile.d.ts +0 -11
- package/libs/api/biz/util/previewFile.js +0 -15
- package/libs/api/biz/util/previewImage.d.ts +0 -9
- package/libs/api/biz/util/previewImage.js +0 -15
- package/libs/api/biz/util/proxy.d.ts +0 -13
- package/libs/api/biz/util/proxy.js +0 -15
- package/libs/api/biz/util/pushWorkMsg.d.ts +0 -10
- package/libs/api/biz/util/pushWorkMsg.js +0 -23
- package/libs/api/biz/util/remind.d.ts +0 -15
- package/libs/api/biz/util/remind.js +0 -30
- package/libs/api/biz/util/resetSessionUnread.d.ts +0 -8
- package/libs/api/biz/util/resetSessionUnread.js +0 -28
- package/libs/api/biz/util/rouseApp.d.ts +0 -12
- package/libs/api/biz/util/rouseApp.js +0 -23
- package/libs/api/biz/util/savePic.d.ts +0 -8
- package/libs/api/biz/util/savePic.js +0 -26
- package/libs/api/biz/util/scan.d.ts +0 -11
- package/libs/api/biz/util/scan.js +0 -26
- package/libs/api/biz/util/selectDepartment.d.ts +0 -9
- package/libs/api/biz/util/selectDepartment.js +0 -15
- package/libs/api/biz/util/share.d.ts +0 -12
- package/libs/api/biz/util/share.js +0 -26
- package/libs/api/biz/util/takePicture.d.ts +0 -13
- package/libs/api/biz/util/takePicture.js +0 -15
- package/libs/api/biz/util/uploadAttachment.d.ts +0 -55
- package/libs/api/biz/util/uploadAttachment.js +0 -15
- package/libs/api/biz/util/yachEvent.d.ts +0 -12
- package/libs/api/biz/util/yachEvent.js +0 -34
- package/libs/api/biz/util/zfbAuth.d.ts +0 -10
- package/libs/api/biz/util/zfbAuth.js +0 -26
- package/libs/api/biz/webViewMessage/send.d.ts +0 -7
- package/libs/api/biz/webViewMessage/send.js +0 -22
- package/libs/api/common.typings.d.ts +0 -9
- package/libs/api/common.typings.js +0 -1
- package/libs/api/device/audio/download.d.ts +0 -8
- package/libs/api/device/audio/download.js +0 -26
- package/libs/api/device/audio/onPlayEnd.d.ts +0 -7
- package/libs/api/device/audio/onPlayEnd.js +0 -26
- package/libs/api/device/audio/onRecordEnd.d.ts +0 -7
- package/libs/api/device/audio/onRecordEnd.js +0 -26
- package/libs/api/device/audio/onRecordEnd_v2.d.ts +0 -7
- package/libs/api/device/audio/onRecordEnd_v2.js +0 -26
- package/libs/api/device/audio/pause.d.ts +0 -8
- package/libs/api/device/audio/pause.js +0 -26
- package/libs/api/device/audio/play.d.ts +0 -8
- package/libs/api/device/audio/play.js +0 -26
- package/libs/api/device/audio/resume.d.ts +0 -8
- package/libs/api/device/audio/resume.js +0 -26
- package/libs/api/device/audio/startRecord.d.ts +0 -8
- package/libs/api/device/audio/startRecord.js +0 -26
- package/libs/api/device/audio/startRecord_v2.d.ts +0 -8
- package/libs/api/device/audio/startRecord_v2.js +0 -26
- package/libs/api/device/audio/stop.d.ts +0 -8
- package/libs/api/device/audio/stop.js +0 -26
- package/libs/api/device/audio/stopRecord.d.ts +0 -7
- package/libs/api/device/audio/stopRecord.js +0 -26
- package/libs/api/device/audio/stopRecord_v2.d.ts +0 -7
- package/libs/api/device/audio/stopRecord_v2.js +0 -26
- package/libs/api/device/base/checkStepPermission.d.ts +0 -8
- package/libs/api/device/base/checkStepPermission.js +0 -26
- package/libs/api/device/base/getPhoneInfo.d.ts +0 -16
- package/libs/api/device/base/getPhoneInfo.js +0 -26
- package/libs/api/device/base/getUUID.d.ts +0 -10
- package/libs/api/device/base/getUUID.js +0 -30
- package/libs/api/device/connection/getNetworkType.d.ts +0 -10
- package/libs/api/device/connection/getNetworkType.js +0 -26
- package/libs/api/device/connection/isAtTal.d.ts +0 -10
- package/libs/api/device/connection/isAtTal.js +0 -28
- package/libs/api/device/geolocation/get.d.ts +0 -42
- package/libs/api/device/geolocation/get.js +0 -26
- package/libs/api/device/geolocation/getSwitch.d.ts +0 -10
- package/libs/api/device/geolocation/getSwitch.js +0 -22
- package/libs/api/device/notification/actionSheet.d.ts +0 -15
- package/libs/api/device/notification/actionSheet.js +0 -26
- package/libs/api/device/notification/alert.d.ts +0 -13
- package/libs/api/device/notification/alert.js +0 -30
- package/libs/api/device/notification/confirm.d.ts +0 -16
- package/libs/api/device/notification/confirm.js +0 -30
- package/libs/api/device/notification/hidePreloader.d.ts +0 -7
- package/libs/api/device/notification/hidePreloader.js +0 -26
- package/libs/api/device/notification/showPreloader.d.ts +0 -9
- package/libs/api/device/notification/showPreloader.js +0 -26
- package/libs/api/device/notification/toast.d.ts +0 -15
- package/libs/api/device/notification/toast.js +0 -15
- package/libs/api/device/notification/vibrate.d.ts +0 -8
- package/libs/api/device/notification/vibrate.js +0 -26
- package/libs/api/device/system/getLang.d.ts +0 -10
- package/libs/api/device/system/getLang.js +0 -15
- package/libs/api/device/system/setLight.d.ts +0 -8
- package/libs/api/device/system/setLight.js +0 -26
- package/libs/api/initAPI.d.ts +0 -6
- package/libs/api/initAPI.js +0 -29
- package/libs/api/primary/createTab.d.ts +0 -13
- package/libs/api/primary/createTab.js +0 -22
- package/libs/api/primary/exitFullScreen.d.ts +0 -7
- package/libs/api/primary/exitFullScreen.js +0 -22
- package/libs/api/primary/fullScreen.d.ts +0 -7
- package/libs/api/primary/fullScreen.js +0 -22
- package/libs/api/primary/weeklyShare.d.ts +0 -13
- package/libs/api/primary/weeklyShare.js +0 -22
- package/libs/api/runtime/permission/requestAuthCode.d.ts +0 -12
- package/libs/api/runtime/permission/requestAuthCode.js +0 -15
- package/libs/api/ui/pullToRefresh/disable.d.ts +0 -7
- package/libs/api/ui/pullToRefresh/disable.js +0 -26
- package/libs/api/ui/pullToRefresh/enable.d.ts +0 -7
- package/libs/api/ui/pullToRefresh/enable.js +0 -26
- package/libs/api/ui/pullToRefresh/stop.d.ts +0 -7
- package/libs/api/ui/pullToRefresh/stop.js +0 -26
- package/libs/api/ui/webViewBounce/disable.d.ts +0 -7
- package/libs/api/ui/webViewBounce/disable.js +0 -22
- package/libs/api/util/domainStorage/getItem.d.ts +0 -12
- package/libs/api/util/domainStorage/getItem.js +0 -26
- package/libs/api/util/domainStorage/removeItem.d.ts +0 -9
- package/libs/api/util/domainStorage/removeItem.js +0 -26
- package/libs/api/util/domainStorage/setItem.d.ts +0 -11
- package/libs/api/util/domainStorage/setItem.js +0 -26
- package/libs/api/util/tool/flushLog.d.ts +0 -7
- package/libs/api/util/tool/flushLog.js +0 -22
- package/libs/api/util/tool/log.d.ts +0 -9
- package/libs/api/util/tool/log.js +0 -22
- package/libs/index.d.ts +0 -325
- package/libs/index.js +0 -1098
- package/libs/lib/bridge/index.d.ts +0 -2
- package/libs/lib/bridge/index.js +0 -32
- package/libs/lib/bridge/mobile.d.ts +0 -13
- package/libs/lib/bridge/mobile.js +0 -185
- package/libs/lib/bridge/pc.d.ts +0 -4
- package/libs/lib/bridge/pc.js +0 -93
- package/libs/lib/helper/apiHelper.d.ts +0 -2
- package/libs/lib/helper/apiHelper.js +0 -15
- package/libs/lib/helper/codeMap.d.ts +0 -2
- package/libs/lib/helper/codeMap.js +0 -13
- package/libs/lib/helper/event.d.ts +0 -9
- package/libs/lib/helper/event.js +0 -48
- package/libs/lib/helper/pcIframe.d.ts +0 -44
- package/libs/lib/helper/pcIframe.js +0 -158
- package/libs/lib/index.d.ts +0 -4
- package/libs/lib/index.js +0 -86
- package/libs/lib/sdk/index.d.ts +0 -19
- package/libs/lib/sdk/index.js +0 -178
- package/libs/lib/sdk/sdk.typings.d.ts +0 -85
- package/libs/lib/sdk/sdk.typings.js +0 -14
- package/libs/utils/bpitLog.d.ts +0 -16
- package/libs/utils/bpitLog.js +0 -69
- package/libs/utils/compareVersions.d.ts +0 -58
- package/libs/utils/compareVersions.js +0 -173
- package/libs/utils/console.d.ts +0 -4
- package/libs/utils/console.js +0 -53
- package/libs/utils/env.d.ts +0 -3
- package/libs/utils/env.js +0 -51
- package/libs/utils/index.d.ts +0 -4
- package/libs/utils/index.js +0 -51
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
5
|
-
_Object$defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.validate = exports.satisfies = exports.compareVersions = exports.compare = void 0;
|
|
9
|
-
var _typeof2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/typeof"));
|
|
10
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/slicedToArray"));
|
|
11
|
-
var _includes = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/instance/includes"));
|
|
12
|
-
var _parseInt2 = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/parse-int"));
|
|
13
|
-
var _keys = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/object/keys"));
|
|
14
|
-
var _indexOf = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/instance/index-of"));
|
|
15
|
-
/**
|
|
16
|
-
* Compare [semver](https://semver.org/) version strings to find greater, equal or lesser.
|
|
17
|
-
* 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`.
|
|
18
|
-
* @param v1 - First version to compare
|
|
19
|
-
* @param v2 - Second version to compare
|
|
20
|
-
* @returns Numeric value compatible with the [Array.sort(fn) interface](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#Parameters).
|
|
21
|
-
*/
|
|
22
|
-
var compareVersions = exports.compareVersions = function compareVersions(v1, v2) {
|
|
23
|
-
// validate input and split into segments
|
|
24
|
-
var n1 = validateAndParse(v1);
|
|
25
|
-
var n2 = validateAndParse(v2);
|
|
26
|
-
// pop off the patch
|
|
27
|
-
var p1 = n1.pop();
|
|
28
|
-
var p2 = n2.pop();
|
|
29
|
-
// validate numbers
|
|
30
|
-
var r = compareSegments(n1, n2);
|
|
31
|
-
if (r !== 0) return r;
|
|
32
|
-
// validate pre-release
|
|
33
|
-
if (p1 && p2) {
|
|
34
|
-
return compareSegments(p1.split('.'), p2.split('.'));
|
|
35
|
-
} else if (p1 || p2) {
|
|
36
|
-
return p1 ? -1 : 1;
|
|
37
|
-
}
|
|
38
|
-
return 0;
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* Validate [semver](https://semver.org/) version strings.
|
|
42
|
-
*
|
|
43
|
-
* @param version Version number to validate
|
|
44
|
-
* @returns `true` if the version number is a valid semver version number, `false` otherwise.
|
|
45
|
-
*
|
|
46
|
-
* @example
|
|
47
|
-
* ```
|
|
48
|
-
* validate('1.0.0-rc.1'); // return true
|
|
49
|
-
* validate('1.0-rc.1'); // return false
|
|
50
|
-
* validate('foo'); // return false
|
|
51
|
-
* ```
|
|
52
|
-
*/
|
|
53
|
-
var validate = exports.validate = function validate(version) {
|
|
54
|
-
return typeof version === 'string' && /^[v\d]/.test(version) && semver.test(version);
|
|
55
|
-
};
|
|
56
|
-
/**
|
|
57
|
-
* Compare [semver](https://semver.org/) version strings using the specified operator.
|
|
58
|
-
*
|
|
59
|
-
* @param v1 First version to compare
|
|
60
|
-
* @param v2 Second version to compare
|
|
61
|
-
* @param operator Allowed arithmetic operator to use
|
|
62
|
-
* @returns `true` if the comparison between the firstVersion and the secondVersion satisfies the operator, `false` otherwise.
|
|
63
|
-
*
|
|
64
|
-
* @example
|
|
65
|
-
* ```
|
|
66
|
-
* compare('10.1.8', '10.0.4', '>'); // return true
|
|
67
|
-
* compare('10.0.1', '10.0.1', '='); // return true
|
|
68
|
-
* compare('10.1.1', '10.2.2', '<'); // return true
|
|
69
|
-
* compare('10.1.1', '10.2.2', '<='); // return true
|
|
70
|
-
* compare('10.1.1', '10.2.2', '>='); // return false
|
|
71
|
-
* ```
|
|
72
|
-
*/
|
|
73
|
-
var compare = exports.compare = function compare(v1, v2, operator) {
|
|
74
|
-
var _context;
|
|
75
|
-
// validate input operator
|
|
76
|
-
assertValidOperator(operator);
|
|
77
|
-
// since result of compareVersions can only be -1 or 0 or 1
|
|
78
|
-
// a simple map can be used to replace switch
|
|
79
|
-
var res = compareVersions(v1, v2);
|
|
80
|
-
return (0, _includes["default"])(_context = operatorResMap[operator]).call(_context, res);
|
|
81
|
-
};
|
|
82
|
-
/**
|
|
83
|
-
* Match [npm semver](https://docs.npmjs.com/cli/v6/using-npm/semver) version range.
|
|
84
|
-
*
|
|
85
|
-
* @param version Version number to match
|
|
86
|
-
* @param range Range pattern for version
|
|
87
|
-
* @returns `true` if the version number is within the range, `false` otherwise.
|
|
88
|
-
*
|
|
89
|
-
* @example
|
|
90
|
-
* ```
|
|
91
|
-
* satisfies('1.1.0', '^1.0.0'); // return true
|
|
92
|
-
* satisfies('1.1.0', '~1.0.0'); // return false
|
|
93
|
-
* ```
|
|
94
|
-
*/
|
|
95
|
-
var satisfies = exports.satisfies = function satisfies(version, range) {
|
|
96
|
-
// if no range operator then "="
|
|
97
|
-
var m = range.match(/^([<>=~^]+)/);
|
|
98
|
-
var op = m ? m[1] : '=';
|
|
99
|
-
// if gt/lt/eq then operator compare
|
|
100
|
-
if (op !== '^' && op !== '~') return compare(version, range, op);
|
|
101
|
-
// else range of either "~" or "^" is assumed
|
|
102
|
-
var _validateAndParse = validateAndParse(version),
|
|
103
|
-
_validateAndParse2 = (0, _slicedToArray2["default"])(_validateAndParse, 3),
|
|
104
|
-
v1 = _validateAndParse2[0],
|
|
105
|
-
v2 = _validateAndParse2[1],
|
|
106
|
-
v3 = _validateAndParse2[2];
|
|
107
|
-
var _validateAndParse3 = validateAndParse(range),
|
|
108
|
-
_validateAndParse4 = (0, _slicedToArray2["default"])(_validateAndParse3, 3),
|
|
109
|
-
r1 = _validateAndParse4[0],
|
|
110
|
-
r2 = _validateAndParse4[1],
|
|
111
|
-
r3 = _validateAndParse4[2];
|
|
112
|
-
if (compareStrings(v1, r1) !== 0) return false;
|
|
113
|
-
if (op === '^') {
|
|
114
|
-
return compareSegments([v2, v3], [r2, r3]) >= 0;
|
|
115
|
-
}
|
|
116
|
-
if (compareStrings(v2, r2) !== 0) return false;
|
|
117
|
-
return compareStrings(v3, r3) >= 0;
|
|
118
|
-
};
|
|
119
|
-
var semver = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;
|
|
120
|
-
var validateAndParse = function validateAndParse(version) {
|
|
121
|
-
if (typeof version !== 'string') {
|
|
122
|
-
throw new TypeError('Invalid argument expected string');
|
|
123
|
-
}
|
|
124
|
-
var match = version.match(semver);
|
|
125
|
-
if (!match) {
|
|
126
|
-
throw new Error("Invalid argument not valid semver ('".concat(version, "' received)"));
|
|
127
|
-
}
|
|
128
|
-
match.shift();
|
|
129
|
-
return match;
|
|
130
|
-
};
|
|
131
|
-
var isWildcard = function isWildcard(s) {
|
|
132
|
-
return s === '*' || s === 'x' || s === 'X';
|
|
133
|
-
};
|
|
134
|
-
var tryParse = function tryParse(v) {
|
|
135
|
-
var n = (0, _parseInt2["default"])(v, 10);
|
|
136
|
-
return isNaN(n) ? v : n;
|
|
137
|
-
};
|
|
138
|
-
var forceType = function forceType(a, b) {
|
|
139
|
-
return (0, _typeof2["default"])(a) !== (0, _typeof2["default"])(b) ? [String(a), String(b)] : [a, b];
|
|
140
|
-
};
|
|
141
|
-
var compareStrings = function compareStrings(a, b) {
|
|
142
|
-
if (isWildcard(a) || isWildcard(b)) return 0;
|
|
143
|
-
var _forceType = forceType(tryParse(a), tryParse(b)),
|
|
144
|
-
_forceType2 = (0, _slicedToArray2["default"])(_forceType, 2),
|
|
145
|
-
ap = _forceType2[0],
|
|
146
|
-
bp = _forceType2[1];
|
|
147
|
-
if (ap > bp) return 1;
|
|
148
|
-
if (ap < bp) return -1;
|
|
149
|
-
return 0;
|
|
150
|
-
};
|
|
151
|
-
var compareSegments = function compareSegments(a, b) {
|
|
152
|
-
for (var i = 0; i < Math.max(a.length, b.length); i++) {
|
|
153
|
-
var r = compareStrings(a[i] || '0', b[i] || '0');
|
|
154
|
-
if (r !== 0) return r;
|
|
155
|
-
}
|
|
156
|
-
return 0;
|
|
157
|
-
};
|
|
158
|
-
var operatorResMap = {
|
|
159
|
-
'>': [1],
|
|
160
|
-
'>=': [0, 1],
|
|
161
|
-
'=': [0],
|
|
162
|
-
'<=': [-1, 0],
|
|
163
|
-
'<': [-1]
|
|
164
|
-
};
|
|
165
|
-
var allowedOperators = (0, _keys["default"])(operatorResMap);
|
|
166
|
-
var assertValidOperator = function assertValidOperator(op) {
|
|
167
|
-
if (typeof op !== 'string') {
|
|
168
|
-
throw new TypeError("Invalid operator type, expected string but got ".concat((0, _typeof2["default"])(op)));
|
|
169
|
-
}
|
|
170
|
-
if ((0, _indexOf["default"])(allowedOperators).call(allowedOperators, op) === -1) {
|
|
171
|
-
throw new Error("Invalid operator, expected one of ".concat(allowedOperators.join('|')));
|
|
172
|
-
}
|
|
173
|
-
};
|
package/libs/utils/console.d.ts
DELETED
package/libs/utils/console.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
5
|
-
_Object$defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.error = error;
|
|
9
|
-
exports.log = log;
|
|
10
|
-
exports.warn = warn;
|
|
11
|
-
var _bind = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/instance/bind"));
|
|
12
|
-
var _context, _context2, _context3;
|
|
13
|
-
// 防止被应用复写console
|
|
14
|
-
var myconsole = {
|
|
15
|
-
log: function log() {},
|
|
16
|
-
warn: function warn() {},
|
|
17
|
-
error: function error() {}
|
|
18
|
-
};
|
|
19
|
-
if (typeof window !== 'undefined' && window.console) {
|
|
20
|
-
myconsole = window.console;
|
|
21
|
-
}
|
|
22
|
-
if (typeof document !== 'undefined' && document.body) {
|
|
23
|
-
var iframe = document.createElement('iframe');
|
|
24
|
-
if (iframe && iframe.contentWindow && iframe.contentWindow.console) {
|
|
25
|
-
iframe.style.display = 'none';
|
|
26
|
-
document.body.appendChild(iframe);
|
|
27
|
-
myconsole = iframe.contentWindow.console;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
var myLog = (0, _bind["default"])(_context = myconsole.log).call(_context, myconsole);
|
|
31
|
-
var myWarn = (0, _bind["default"])(_context2 = myconsole.warn).call(_context2, myconsole);
|
|
32
|
-
var myError = (0, _bind["default"])(_context3 = myconsole.error).call(_context3, myconsole);
|
|
33
|
-
var style = 'color:#fff;font-weight:bold;border-radius:5px;background:#67c23a;';
|
|
34
|
-
var styleError = "".concat(style, "background-color:red;");
|
|
35
|
-
var styleWarn = "".concat(style, "background-color:orange;");
|
|
36
|
-
function log() {
|
|
37
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
38
|
-
args[_key] = arguments[_key];
|
|
39
|
-
}
|
|
40
|
-
return myLog("%c Yach-jssdk log: ", style, args);
|
|
41
|
-
}
|
|
42
|
-
function error() {
|
|
43
|
-
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
44
|
-
args[_key2] = arguments[_key2];
|
|
45
|
-
}
|
|
46
|
-
return myWarn("%c Yach-jssdk log: ", styleError, args);
|
|
47
|
-
}
|
|
48
|
-
function warn() {
|
|
49
|
-
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
50
|
-
args[_key3] = arguments[_key3];
|
|
51
|
-
}
|
|
52
|
-
return myError("%c Yach-jssdk log: ", styleWarn, args);
|
|
53
|
-
}
|
package/libs/utils/env.d.ts
DELETED
package/libs/utils/env.js
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
-
_Object$defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.getENV = getENV;
|
|
8
|
-
var _sdk = require("../lib/sdk/sdk.typings");
|
|
9
|
-
function getUA() {
|
|
10
|
-
return typeof navigator !== 'undefined' ? navigator.userAgent : '';
|
|
11
|
-
}
|
|
12
|
-
function getENV() {
|
|
13
|
-
var ua = getUA(),
|
|
14
|
-
inYach = /Yach/i.test(ua),
|
|
15
|
-
inIOS = /iPhone|iPad|iPod|iOS/i.test(ua) && inYach,
|
|
16
|
-
inAndroid = /Android/i.test(ua) && inYach,
|
|
17
|
-
inPC = /YachPc/i.test(ua),
|
|
18
|
-
inIpad = /iPad/i.test(ua) && inYach,
|
|
19
|
-
inIPhone = /iPhone/i.test(ua) && inYach,
|
|
20
|
-
isTest = /Yachtest/.test(ua) && inYach;
|
|
21
|
-
// platform
|
|
22
|
-
var platform = _sdk.ENV_ENUM.notInYach;
|
|
23
|
-
if (inIOS) {
|
|
24
|
-
platform = _sdk.ENV_ENUM.ios;
|
|
25
|
-
}
|
|
26
|
-
if (inAndroid) {
|
|
27
|
-
platform = _sdk.ENV_ENUM.android;
|
|
28
|
-
}
|
|
29
|
-
if (inPC) {
|
|
30
|
-
platform = _sdk.ENV_ENUM.pc;
|
|
31
|
-
}
|
|
32
|
-
// version
|
|
33
|
-
var versionArr = ua.match(/Yach\/[a-zA-Z0-9.-]+/) || [];
|
|
34
|
-
var version = (versionArr[0] || '').split('/')[1] || '';
|
|
35
|
-
// language
|
|
36
|
-
var language = typeof navigator !== 'undefined' ? navigator.language : '*';
|
|
37
|
-
return {
|
|
38
|
-
platform: platform,
|
|
39
|
-
platformV2: {
|
|
40
|
-
inYach: inYach,
|
|
41
|
-
inIOS: inIOS,
|
|
42
|
-
inAndroid: inAndroid,
|
|
43
|
-
inPC: inPC,
|
|
44
|
-
inIpad: inIpad,
|
|
45
|
-
inIPhone: inIPhone
|
|
46
|
-
},
|
|
47
|
-
version: version,
|
|
48
|
-
language: language,
|
|
49
|
-
env: isTest ? 'test' : 'online'
|
|
50
|
-
};
|
|
51
|
-
}
|
package/libs/utils/index.d.ts
DELETED
package/libs/utils/index.js
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
5
|
-
_Object$defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.bpitLog = staticsLog;
|
|
9
|
-
_Object$defineProperty(exports, "error", {
|
|
10
|
-
enumerable: true,
|
|
11
|
-
get: function get() {
|
|
12
|
-
return _console.error;
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
_Object$defineProperty(exports, "getENV", {
|
|
16
|
-
enumerable: true,
|
|
17
|
-
get: function get() {
|
|
18
|
-
return _env.getENV;
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
_Object$defineProperty(exports, "log", {
|
|
22
|
-
enumerable: true,
|
|
23
|
-
get: function get() {
|
|
24
|
-
return _console.log;
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
_Object$defineProperty(exports, "warn", {
|
|
28
|
-
enumerable: true,
|
|
29
|
-
get: function get() {
|
|
30
|
-
return _console.warn;
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
var _now = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/date/now"));
|
|
34
|
-
var _assign = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/object/assign"));
|
|
35
|
-
var _env = require("./env");
|
|
36
|
-
var _bpitLog = _interopRequireDefault(require("./bpitLog"));
|
|
37
|
-
var _console = require("./console");
|
|
38
|
-
function staticsLog(config) {
|
|
39
|
-
var env = (0, _env.getENV)().env;
|
|
40
|
-
var version = (0, _env.getENV)().version;
|
|
41
|
-
var timestamp = (0, _now["default"])();
|
|
42
|
-
var params = (0, _assign["default"])({
|
|
43
|
-
group: 'yach',
|
|
44
|
-
project: 'yach_31_jssdk',
|
|
45
|
-
env: env,
|
|
46
|
-
version: version,
|
|
47
|
-
timestamp: timestamp
|
|
48
|
-
}, config);
|
|
49
|
-
console.log('jssdk 项目 bpit 上报数据:', params);
|
|
50
|
-
(0, _bpitLog["default"])(params);
|
|
51
|
-
}
|