hylid-bridge 2.7.3 → 2.8.0

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.
Files changed (51) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/canIUse.json +1 -1
  3. package/lib/bridges.d.ts +6 -0
  4. package/lib/bridges.js +70 -0
  5. package/lib/clients/mp/alipay_plus/canIUse.d.ts +2 -0
  6. package/lib/clients/mp/alipay_plus/canIUse.js +3 -0
  7. package/lib/clients/mp/alipay_plus/createSelectorQuery.d.ts +2 -0
  8. package/lib/clients/mp/alipay_plus/createSelectorQuery.js +2 -0
  9. package/lib/clients/mp/alipay_plus/custom.d.ts +3 -1
  10. package/lib/clients/mp/alipay_plus/custom.js +4 -1
  11. package/lib/clients/mp/alipay_plus/generated.d.ts +7 -0
  12. package/lib/clients/mp/alipay_plus/generated.js +15 -1
  13. package/lib/clients/mp/alipay_plus/getStorageInfo.d.ts +2 -0
  14. package/lib/clients/mp/alipay_plus/getStorageInfo.js +2 -0
  15. package/lib/clients/mp/alipay_plus/getStorageInfoSync.d.ts +2 -0
  16. package/lib/clients/mp/alipay_plus/getStorageInfoSync.js +2 -0
  17. package/lib/clients/mp/alipay_plus/getSystemInfoSync.d.ts +2 -0
  18. package/lib/clients/mp/alipay_plus/getSystemInfoSync.js +2 -0
  19. package/lib/clients/mp/alipay_plus/index.d.ts +8 -0
  20. package/lib/clients/mp/alipay_plus/onMessage.d.ts +2 -0
  21. package/lib/clients/mp/alipay_plus/onMessage.js +2 -0
  22. package/lib/clients/mp/alipay_plus/postMessage.d.ts +2 -0
  23. package/lib/clients/mp/alipay_plus/postMessage.js +2 -0
  24. package/lib/clients/mp/alipay_plus/showSharePanel.d.ts +2 -0
  25. package/lib/clients/mp/alipay_plus/showSharePanel.js +2 -0
  26. package/lib/common/apis/generated/canIUse.d.ts +2 -0
  27. package/lib/common/apis/generated/canIUse.js +4 -0
  28. package/lib/common/apis/generated/createSelectorQuery.d.ts +2 -0
  29. package/lib/common/apis/generated/createSelectorQuery.js +4 -0
  30. package/lib/common/apis/generated/getStorageInfo.d.ts +2 -0
  31. package/lib/common/apis/generated/getStorageInfo.js +4 -0
  32. package/lib/common/apis/generated/getStorageInfoSync.d.ts +2 -0
  33. package/lib/common/apis/generated/getStorageInfoSync.js +4 -0
  34. package/lib/common/apis/generated/getSystemInfoSync.d.ts +2 -0
  35. package/lib/common/apis/generated/getSystemInfoSync.js +4 -0
  36. package/lib/common/apis/generated/onMessage.d.ts +2 -0
  37. package/lib/common/apis/generated/onMessage.js +4 -0
  38. package/lib/common/apis/generated/postMessage.d.ts +2 -0
  39. package/lib/common/apis/generated/postMessage.js +4 -0
  40. package/lib/common/apis/generated/showSharePanel.d.ts +2 -0
  41. package/lib/common/apis/generated/showSharePanel.js +4 -0
  42. package/lib/common/whichCanIUse.d.ts +3 -0
  43. package/lib/common/{canIUse.js → whichCanIUse.js} +10 -4
  44. package/lib/index.d.ts +1 -2
  45. package/lib/index.js +1 -2
  46. package/lib/types/mp.d.ts +6 -0
  47. package/lib/umd/index.js +1 -1
  48. package/lib/umd/mp_alipay_plus.js +1 -1
  49. package/lib/umd/web_h5.js +1 -1
  50. package/package.json +2 -2
  51. package/lib/common/canIUse.d.ts +0 -3
package/CHANGELOG.md CHANGED
@@ -3,6 +3,18 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.8.0](https://code.alipay.com/ant-ife/hylid-bridge/compare/v2.7.3...v2.8.0) (2022-09-26)
7
+
8
+
9
+ ### Features
10
+
11
+ * canIUse* remove whichCanIUse export
12
+
13
+ ### Performance Improvements
14
+
15
+ * 恢复变更* 添加MPApi* 执行yarn gen
16
+
17
+
6
18
  ### [2.7.3](https://code.alipay.com/ant-ife/hylid-bridge/compare/v2.7.2...v2.7.3) (2022-09-14)
7
19
 
8
20
  **Note:** Version bump only for package hylid-bridge
package/canIUse.json CHANGED
@@ -1 +1 @@
1
- [{"name":"addFatigueAction","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus"]}},{"name":"addPhoneContact","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus","alipay"]}},{"name":"alert","custom":{"web":["alipay","alipay_plus","h5"]},"includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus","alipay"],"web":["h5","alipay_plus","alipay"]}},{"name":"apDisableJSAPI","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus"]}},{"name":"appxrpc","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus"]}},{"name":"APRegionRPC","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus"]}},{"name":"batchQueryCdpSpaceInfo","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus"]}},{"name":"chooseImage","custom":{"web":["alipay","alipay_plus"]},"page":"image","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay"]}},{"name":"choosePhoneContact","custom":{"web":["alipay","alipay_plus"]},"includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus","alipay"]}},{"name":"clearStorage","custom":{"web":["alipay","alipay_plus","h5"]},"page":"storage","includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay","h5"]}},{"name":"clearStorageSync","page":"storage","custom":{"web":["h5"]},"includes":{"mp":["alipay_plus","lazada","taobao"],"web":["h5"]}},{"name":"closeBluetoothAdapter","page":"bluetooth","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"]}},{"name":"closeSocket","page":"socket","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"]}},{"name":"confirm","custom":{"web":["h5","alipay","alipay_plus"]},"includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus","alipay"],"web":["h5","alipay_plus","alipay"]}},{"name":"connectBLEDevice","page":"bluetooth","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"]}},{"name":"connectSocket","page":"socket","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"]}},{"name":"createAnimation","page":"createAnimation","includes":{"mp":["alipay_plus","lazada","taobao"]}},{"name":"createWebViewContext","page":"createWebViewContext","includes":{"mp":["alipay_plus","lazada","taobao"]}},{"name":"crossPay","custom":{"mp":["taobao"]},"includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus"]}},{"name":"datePicker","custom":{"web":["alipay","alipay_plus"]},"includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus","alipay"]}},{"name":"disconnectBLEDevice","page":"bluetooth","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"]}},{"name":"downloadFile","custom":{"web":["alipay","alipay_plus"]},"page":"file","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus","alipay"]}},{"name":"exitApp","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus"]}},{"name":"getAppIdSync","custom":{"mp_web":["alipay_plus","alipay"],"web":["h5"]},"includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus","alipay"],"web":["h5"]}},{"name":"getAppToken","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus"]}},{"name":"getAuthCode","custom":{"mp":["lazada","taobao"],"web":["alipay","alipay_plus"]},"includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay"]}},{"name":"getBatteryInfo","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus","alipay"]}},{"name":"getBLEDeviceCharacteristics","page":"bluetooth","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"]}},{"name":"getBLEDeviceServices","page":"bluetooth","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"]}},{"name":"getBluetoothAdapterState","page":"bluetooth","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"]}},{"name":"getBluetoothDevices","page":"bluetooth","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"]}},{"name":"getClipboard","custom":{"web":["h5"]},"includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay","h5"]}},{"name":"getComponentAuth","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus"]}},{"name":"getConnectedBluetoothDevices","page":"bluetooth","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"]}},{"name":"getFileInfo","page":"file","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus","alipay"]}},{"name":"getImageInfo","page":"image","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay"]}},{"name":"getLocation","custom":{"web":["h5","alipay","alipay_plus"]},"includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus","alipay"],"web":["h5","alipay_plus","alipay"]}},{"name":"getNetworkType","custom":{"web":["alipay","alipay_plus","h5"]},"includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay","h5"]}},{"name":"getOpenUserInfo","custom":{"mp":["taobao"],"web":["alipay_plus"]},"page":"getOpenUserInfo","includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus"],"web":["alipay_plus"]}},{"name":"getPaymentCode","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus"]}},{"name":"getPhoneNumber","custom":{"web":["alipay","alipay_plus"]},"page":"getPhoneNumber","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay"]}},{"name":"getSavedFileInfo","page":"file","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus","alipay"]}},{"name":"getSavedFileList","page":"file","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus","alipay"]}},{"name":"getScreenBrightness","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus","alipay"]}},{"name":"getServerTime","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus","alipay","h5"]},"custom":{"web":["h5"]}},{"name":"getSetting","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus","alipay"]}},{"name":"getSiteInfo","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus","alipay","h5"]},"custom":{"web":["h5"]}},{"name":"getStorage","custom":{"web":["alipay","alipay_plus","h5"]},"page":"storage","includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay","h5"]}},{"name":"getStorageSync","page":"storage","custom":{"web":["h5"]},"includes":{"mp":["alipay_plus","lazada","taobao"],"web":["h5"]}},{"name":"getSystemInfo","includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay","h5"]},"custom":{"web":["h5"]}},{"name":"getSystemInfoSync","includes":{"web":["h5"]},"custom":{"web":["h5"]}},{"name":"hideBackHome","includes":{"mp":["alipay_plus","lazada","taobao"]}},{"name":"hideKeyboard","page":"hideKeyboard","includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay"]}},{"name":"hideLoading","page":"loading","includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay","h5"]},"custom":{"web":["h5"]}},{"name":"hideNavigationBarLoading","custom":{"web":["alipay","alipay_plus"]},"page":"loading","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay"]}},{"name":"hideTabBar","includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus"]}},{"name":"hideToast","includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay","h5"]},"custom":{"web":["h5"]}},{"name":"inquireQuote","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus"]}},{"name":"isInstalledApp","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus"]}},{"name":"makePhoneCall","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay","h5"]},"custom":{"web":["h5"]}},{"name":"multiLevelSelect","custom":{"web":["alipay","alipay_plus"]},"includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay"]}},{"name":"navigateBack","page":"navigator","includes":{"mp":["alipay_plus","lazada","taobao"]}},{"name":"navigateBackMiniProgram","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay"]}},{"name":"navigateTo","page":"navigator","includes":{"mp":["alipay_plus","lazada","taobao"]}},{"name":"navigateToBizScene","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus","h5"]},"custom":{"web":["h5"]}},{"name":"navigateToMiniProgram","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay","h5"]},"custom":{"web":["h5"]}},{"name":"notifyBLECharacteristicValueChange","page":"bluetooth","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"]}},{"name":"offAccelerometerChange","includes":{"mp":["alipay_plus","lazada"]}},{"name":"offBLECharacteristicValueChange","page":"bluetooth","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"]}},{"name":"offBLEConnectionStateChanged","page":"bluetooth","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"]}},{"name":"offBluetoothAdapterStateChange","page":"bluetooth","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"]}},{"name":"offBluetoothDeviceFound","page":"bluetooth","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"]}},{"name":"offCompassChange","includes":{"mp":["alipay_plus","lazada"]}},{"name":"offMemoryWarning","includes":{"mp":["alipay_plus","lazada","taobao"]}},{"name":"offSocketClose","page":"socket","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"]}},{"name":"offSocketError","page":"socket","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"]}},{"name":"offSocketMessage","page":"socket","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"]}},{"name":"offSocketOpen","page":"socket","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"]}},{"name":"offUserCaptureScreen","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"]}},{"name":"onAccelerometerChange","includes":{"mp":["alipay_plus","lazada"]}},{"name":"onBLECharacteristicValueChange","page":"bluetooth","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"]}},{"name":"onBLEConnectionStateChanged","page":"bluetooth","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"]}},{"name":"onBluetoothAdapterStateChange","page":"bluetooth","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"]}},{"name":"onBluetoothDeviceFound","page":"bluetooth","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"]}},{"name":"onCompassChange","includes":{"mp":["alipay_plus","lazada"]}},{"name":"onMemoryWarning","includes":{"mp":["alipay_plus","lazada","taobao"]}},{"name":"onSocketClose","page":"socket","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"]}},{"name":"onSocketError","page":"socket","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"]}},{"name":"onSocketMessage","page":"socket","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"]}},{"name":"onSocketOpen","page":"socket","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"]}},{"name":"onUserCaptureScreen","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"]}},{"name":"openBluetoothAdapter","page":"bluetooth","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"]}},{"name":"openDocument","page":"file","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus","alipay"]}},{"name":"openSchemeWithBacking","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus"]}},{"name":"openSetting","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus","alipay"]}},{"name":"pageScrollTo","includes":{"mp":["alipay_plus","lazada","taobao"],"web":["h5"]},"custom":{"web":["h5"]}},{"name":"paySignCenter","custom":{"web":["alipay_plus"]},"includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus"]}},{"name":"previewImage","custom":{"web":["alipay","alipay_plus"]},"page":"image","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay"]}},{"name":"prompt","includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay"]}},{"name":"readBLECharacteristicValue","page":"bluetooth","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"]}},{"name":"redirectTo","page":"navigator","includes":{"mp":["alipay_plus","lazada","taobao"]}},{"name":"regionFetchAllApps","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus"]}},{"name":"regionSearchAppsByKeywords","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus"]}},{"name":"reLaunch","page":"navigator","includes":{"mp":["alipay_plus","lazada","taobao"]}},{"name":"removeSavedFile","page":"file","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus","alipay"]}},{"name":"removeStorage","page":"storage","custom":{"web":["alipay","alipay_plus","h5"]},"includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay","h5"]}},{"name":"removeStorageSync","page":"storage","custom":{"web":["h5"]},"includes":{"mp":["alipay_plus","lazada","taobao"],"web":["h5"]}},{"name":"request","custom":{"web":["h5","alipay","alipay_plus"]},"includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus","alipay"],"web":["h5","alipay_plus","alipay"]}},{"name":"rpc","includes":{"mp":["alipay","alipay_plus","lazada"],"mp_web":["alipay","alipay_plus"],"web":["alipay","alipay_plus","h5"]},"custom":{"web":["h5"]}},{"name":"saveFile","page":"file","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus","alipay"]}},{"name":"saveImage","custom":{"web":["alipay","alipay_plus"]},"page":"image","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay"]}},{"name":"scan","includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay"]}},{"name":"sendSocketMessage","page":"socket","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"]}},{"name":"setBackgroundColor","includes":{"mp":["alipay_plus","lazada","taobao"]}},{"name":"setCanPullDown","includes":{"mp":["alipay_plus","lazada","taobao"]}},{"name":"setClipboard","includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay","h5"]},"custom":{"web":["h5"]}},{"name":"setKeepScreenOn","custom":{"web":["alipay","alipay_plus"]},"includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus","alipay"]}},{"name":"setNavigationBar","custom":{"web":["alipay","alipay_plus","h5"]},"includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay","h5"]}},{"name":"setOptionMenu","custom":{"web":["alipay","alipay_plus"]},"includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay"]}},{"name":"setScreenBrightness","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus","alipay"]}},{"name":"setStorage","custom":{"web":["alipay","alipay_plus","h5"]},"page":"storage","includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay","h5"]}},{"name":"setStorageSync","page":"storage","custom":{"web":["h5"]},"includes":{"mp":["alipay_plus","lazada","taobao"],"web":["h5"]}},{"name":"setTabBarStyle","includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus"]}},{"name":"showActionSheet","custom":{"web":["alipay","alipay_plus"]},"includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus"],"web":["alipay_plus","alipay"]}},{"name":"showAuthGuide","custom":{"web":["alipay","alipay_plus"]},"includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay"]}},{"name":"showLoading","page":"loading","includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay","h5"]},"custom":{"web":["h5"]}},{"name":"showNavigationBarLoading","custom":{"web":["alipay","alipay_plus"]},"page":"loading","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay"]}},{"name":"showToast","custom":{"web":["h5","alipay","alipay_plus"]},"includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus","alipay"],"web":["h5","alipay_plus","alipay"]}},{"name":"signContract","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus","alipay"]}},{"name":"startApp","page":"startApp","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus"]}},{"name":"startBizService","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus"]}},{"name":"startBluetoothDevicesDiscovery","page":"bluetooth","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"]}},{"name":"startPullDownRefresh","includes":{"mp":["alipay_plus","lazada","taobao"]}},{"name":"stopBluetoothDevicesDiscovery","page":"bluetooth","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"]}},{"name":"stopPullDownRefresh","includes":{"mp":["alipay_plus","lazada","taobao"]}},{"name":"switchTab","page":"navigator","includes":{"mp":["alipay_plus","lazada","taobao"]}},{"name":"thirdPartyAuthForAc","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus"]}},{"name":"tradePay","includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay"]}},{"name":"uploadApdidToken","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus"]}},{"name":"uploadFile","custom":{"web":["alipay","alipay_plus"]},"page":"file","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus","alipay"]}},{"name":"vibrate","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay"]}},{"name":"watchShake","includes":{"mp":["alipay_plus","lazada"]}},{"name":"writeBLECharacteristicValue","page":"bluetooth","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"]}},{"name":"getLaunchOptionsSync","custom":{"web":["h5"]},"includes":{"web":["h5"]}},{"name":"createSelectorQuery","custom":{"web":["h5"]},"includes":{"web":["h5"]}}]
1
+ [{"name":"addFatigueAction","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus"]}},{"name":"addPhoneContact","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus","alipay"]}},{"name":"alert","custom":{"web":["alipay","alipay_plus","h5"]},"includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus","alipay"],"web":["h5","alipay_plus","alipay"]}},{"name":"apDisableJSAPI","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus"]}},{"name":"appxrpc","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus"]}},{"name":"APRegionRPC","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus"]}},{"name":"batchQueryCdpSpaceInfo","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus"]}},{"name":"chooseImage","custom":{"web":["alipay","alipay_plus"]},"page":"image","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay"]}},{"name":"choosePhoneContact","custom":{"web":["alipay","alipay_plus"]},"includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus","alipay"]}},{"name":"clearStorage","custom":{"web":["alipay","alipay_plus","h5"]},"page":"storage","includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay","h5"]}},{"name":"clearStorageSync","page":"storage","custom":{"web":["h5"]},"includes":{"mp":["alipay_plus","lazada","taobao"],"web":["h5"]}},{"name":"closeBluetoothAdapter","page":"bluetooth","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":[]}},{"name":"closeSocket","page":"socket","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":[]}},{"name":"confirm","custom":{"web":["h5","alipay","alipay_plus"]},"includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus","alipay"],"web":["h5","alipay_plus","alipay"]}},{"name":"connectBLEDevice","page":"bluetooth","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":[]}},{"name":"connectSocket","page":"socket","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":[]}},{"name":"createAnimation","page":"createAnimation","includes":{"mp":["alipay_plus","lazada","taobao"],"web":[]}},{"name":"createWebViewContext","page":"createWebViewContext","includes":{"mp":["alipay_plus","lazada","taobao"],"web":[]}},{"name":"crossPay","custom":{"mp":["taobao"]},"includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus"]}},{"name":"datePicker","custom":{"web":["alipay","alipay_plus"]},"includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus","alipay"]}},{"name":"disconnectBLEDevice","page":"bluetooth","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":[]}},{"name":"downloadFile","custom":{"web":["alipay","alipay_plus"]},"page":"file","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus","alipay"]}},{"name":"exitApp","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus"]}},{"name":"getAppIdSync","custom":{"mp_web":["alipay_plus","alipay"],"web":["h5"]},"includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus","alipay"],"web":["h5"]}},{"name":"getAppToken","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus"]}},{"name":"getAuthCode","custom":{"mp":["lazada","taobao"],"web":["alipay","alipay_plus"]},"includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay"]}},{"name":"getBatteryInfo","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus","alipay"]}},{"name":"getBLEDeviceCharacteristics","page":"bluetooth","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":[]}},{"name":"getBLEDeviceServices","page":"bluetooth","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":[]}},{"name":"getBluetoothAdapterState","page":"bluetooth","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":[]}},{"name":"getBluetoothDevices","page":"bluetooth","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":[]}},{"name":"getClipboard","custom":{"web":["h5"]},"includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay","h5"]}},{"name":"getComponentAuth","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus"]}},{"name":"getConnectedBluetoothDevices","page":"bluetooth","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":[]}},{"name":"getFileInfo","page":"file","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus","alipay"]}},{"name":"getImageInfo","page":"image","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay"]}},{"name":"getLocation","custom":{"web":["h5","alipay","alipay_plus"]},"includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus","alipay"],"web":["h5","alipay_plus","alipay"]}},{"name":"getNetworkType","custom":{"web":["alipay","alipay_plus","h5"]},"includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay","h5"]}},{"name":"getOpenUserInfo","custom":{"mp":["taobao"],"web":["alipay_plus"]},"page":"getOpenUserInfo","includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus"],"web":["alipay_plus"]}},{"name":"getPaymentCode","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus"]}},{"name":"getPhoneNumber","custom":{"web":["alipay","alipay_plus"]},"page":"getPhoneNumber","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay"]}},{"name":"getSavedFileInfo","page":"file","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus","alipay"]}},{"name":"getSavedFileList","page":"file","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus","alipay"]}},{"name":"getScreenBrightness","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus","alipay"]}},{"name":"getServerTime","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus","alipay","h5"]},"custom":{"web":["h5"]}},{"name":"getSetting","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus","alipay"]}},{"name":"getSiteInfo","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus","alipay","h5"]},"custom":{"web":["h5"]}},{"name":"getStorage","custom":{"web":["alipay","alipay_plus","h5"]},"page":"storage","includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay","h5"]}},{"name":"getStorageSync","page":"storage","custom":{"web":["h5"]},"includes":{"mp":["alipay_plus","lazada","taobao"],"web":["h5"]}},{"name":"getSystemInfo","includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay","h5"]},"custom":{"web":["h5"]}},{"name":"getSystemInfoSync","includes":{"web":["h5"],"mp":["alipay_plus"]},"custom":{"web":["h5"]}},{"name":"hideBackHome","includes":{"mp":["alipay_plus","lazada","taobao"],"web":[]}},{"name":"hideKeyboard","page":"hideKeyboard","includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay"]}},{"name":"hideLoading","page":"loading","includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay","h5"]},"custom":{"web":["h5"]}},{"name":"hideNavigationBarLoading","custom":{"web":["alipay","alipay_plus"]},"page":"loading","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay"]}},{"name":"hideTabBar","includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus"],"web":[]}},{"name":"hideToast","includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay","h5"]},"custom":{"web":["h5"]}},{"name":"inquireQuote","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus"]}},{"name":"isInstalledApp","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus"]}},{"name":"makePhoneCall","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay","h5"]},"custom":{"web":["h5"]}},{"name":"multiLevelSelect","custom":{"web":["alipay","alipay_plus"]},"includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay"]}},{"name":"navigateBack","page":"navigator","includes":{"mp":["alipay_plus","lazada","taobao"],"web":[]}},{"name":"navigateBackMiniProgram","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay"]}},{"name":"navigateTo","page":"navigator","includes":{"mp":["alipay_plus","lazada","taobao"],"web":[]}},{"name":"navigateToBizScene","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus","h5"]},"custom":{"web":["h5"]}},{"name":"navigateToMiniProgram","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay","h5"]},"custom":{"web":["h5"]}},{"name":"notifyBLECharacteristicValueChange","page":"bluetooth","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":[]}},{"name":"offAccelerometerChange","includes":{"mp":["alipay_plus","lazada"],"web":[]}},{"name":"offBLECharacteristicValueChange","page":"bluetooth","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":[]}},{"name":"offBLEConnectionStateChanged","page":"bluetooth","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":[]}},{"name":"offBluetoothAdapterStateChange","page":"bluetooth","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":[]}},{"name":"offBluetoothDeviceFound","page":"bluetooth","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":[]}},{"name":"offCompassChange","includes":{"mp":["alipay_plus","lazada"],"web":[]}},{"name":"offMemoryWarning","includes":{"mp":["alipay_plus","lazada","taobao"],"web":[]}},{"name":"offSocketClose","page":"socket","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":[]}},{"name":"offSocketError","page":"socket","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":[]}},{"name":"offSocketMessage","page":"socket","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":[]}},{"name":"offSocketOpen","page":"socket","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":[]}},{"name":"offUserCaptureScreen","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":[]}},{"name":"onAccelerometerChange","includes":{"mp":["alipay_plus","lazada"],"web":[]}},{"name":"onBLECharacteristicValueChange","page":"bluetooth","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":[]}},{"name":"onBLEConnectionStateChanged","page":"bluetooth","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":[]}},{"name":"onBluetoothAdapterStateChange","page":"bluetooth","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":[]}},{"name":"onBluetoothDeviceFound","page":"bluetooth","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":[]}},{"name":"onCompassChange","includes":{"mp":["alipay_plus","lazada"],"web":[]}},{"name":"onMemoryWarning","includes":{"mp":["alipay_plus","lazada","taobao"],"web":[]}},{"name":"onSocketClose","page":"socket","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":[]}},{"name":"onSocketError","page":"socket","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":[]}},{"name":"onSocketMessage","page":"socket","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":[]}},{"name":"onSocketOpen","page":"socket","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":[]}},{"name":"onUserCaptureScreen","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":[]}},{"name":"openBluetoothAdapter","page":"bluetooth","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":[]}},{"name":"openDocument","page":"file","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus","alipay"]}},{"name":"openSchemeWithBacking","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus"]}},{"name":"openSetting","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus","alipay"]}},{"name":"pageScrollTo","includes":{"mp":["alipay_plus","lazada","taobao"],"web":["h5"]},"custom":{"web":["h5"]}},{"name":"paySignCenter","custom":{"web":["alipay_plus"]},"includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus"]}},{"name":"previewImage","custom":{"web":["alipay","alipay_plus"]},"page":"image","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay"]}},{"name":"prompt","includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay"]}},{"name":"readBLECharacteristicValue","page":"bluetooth","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":[]}},{"name":"redirectTo","page":"navigator","includes":{"mp":["alipay_plus","lazada","taobao"],"web":[]}},{"name":"regionFetchAllApps","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus"]}},{"name":"regionSearchAppsByKeywords","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus"]}},{"name":"reLaunch","page":"navigator","includes":{"mp":["alipay_plus","lazada","taobao"],"web":[]}},{"name":"removeSavedFile","page":"file","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus","alipay"]}},{"name":"removeStorage","page":"storage","custom":{"web":["alipay","alipay_plus","h5"]},"includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay","h5"]}},{"name":"removeStorageSync","page":"storage","custom":{"web":["h5"]},"includes":{"mp":["alipay_plus","lazada","taobao"],"web":["h5"]}},{"name":"request","custom":{"web":["h5","alipay","alipay_plus"]},"includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus","alipay"],"web":["h5","alipay_plus","alipay"]}},{"name":"rpc","includes":{"mp":["alipay","alipay_plus","lazada"],"mp_web":["alipay","alipay_plus"],"web":["alipay","alipay_plus","h5"]},"custom":{"web":["h5"]}},{"name":"saveFile","page":"file","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus","alipay"]}},{"name":"saveImage","custom":{"web":["alipay","alipay_plus"]},"page":"image","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay"]}},{"name":"scan","includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay"]}},{"name":"sendSocketMessage","page":"socket","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":[]}},{"name":"setBackgroundColor","includes":{"mp":["alipay_plus","lazada","taobao"],"web":[]}},{"name":"setCanPullDown","includes":{"mp":["alipay_plus","lazada","taobao"],"web":[]}},{"name":"setClipboard","includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay","h5"]},"custom":{"web":["h5"]}},{"name":"setKeepScreenOn","custom":{"web":["alipay","alipay_plus"]},"includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus","alipay"]}},{"name":"setNavigationBar","custom":{"web":["alipay","alipay_plus","h5"]},"includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay","h5"]}},{"name":"setOptionMenu","custom":{"web":["alipay","alipay_plus"]},"includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay"]}},{"name":"setScreenBrightness","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus","alipay"]}},{"name":"setStorage","custom":{"web":["alipay","alipay_plus","h5"]},"page":"storage","includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay","h5"]}},{"name":"setStorageSync","page":"storage","custom":{"web":["h5"]},"includes":{"mp":["alipay_plus","lazada","taobao"],"web":["h5"]}},{"name":"setTabBarStyle","includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus"],"web":[]}},{"name":"showActionSheet","custom":{"web":["alipay","alipay_plus"]},"includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus"],"web":["alipay_plus","alipay"]}},{"name":"showAuthGuide","custom":{"web":["alipay","alipay_plus"]},"includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay"]}},{"name":"showLoading","page":"loading","includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay","h5"]},"custom":{"web":["h5"]}},{"name":"showNavigationBarLoading","custom":{"web":["alipay","alipay_plus"]},"page":"loading","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay"]}},{"name":"showToast","custom":{"web":["h5","alipay","alipay_plus"]},"includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus","alipay"],"web":["h5","alipay_plus","alipay"]}},{"name":"signContract","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus","alipay"]}},{"name":"startApp","page":"startApp","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus"]}},{"name":"startBizService","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus"]}},{"name":"startBluetoothDevicesDiscovery","page":"bluetooth","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":[]}},{"name":"startPullDownRefresh","includes":{"mp":["alipay_plus","lazada","taobao"],"web":[]}},{"name":"stopBluetoothDevicesDiscovery","page":"bluetooth","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":[]}},{"name":"stopPullDownRefresh","includes":{"mp":["alipay_plus","lazada","taobao"],"web":[]}},{"name":"switchTab","page":"navigator","includes":{"mp":["alipay_plus","lazada","taobao"],"web":[]}},{"name":"thirdPartyAuthForAc","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus"]}},{"name":"tradePay","includes":{"mp":["alipay_plus","lazada","taobao"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay"]}},{"name":"uploadApdidToken","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus"]}},{"name":"uploadFile","custom":{"web":["alipay","alipay_plus"]},"page":"file","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":["alipay_plus","alipay"]}},{"name":"vibrate","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus","alipay"],"web":["alipay_plus","alipay"]}},{"name":"watchShake","includes":{"mp":["alipay_plus","lazada"],"web":[]}},{"name":"writeBLECharacteristicValue","page":"bluetooth","includes":{"mp":["alipay_plus","lazada"],"mp_web":["alipay_plus"],"web":[]}},{"name":"getLaunchOptionsSync","custom":{"web":["h5"]},"includes":{"web":["h5"]}},{"name":"createSelectorQuery","custom":{"web":["h5"]},"includes":{"web":["h5"],"mp":["alipay_plus"]}},{"name":"canIUse","includes":{"mp":["alipay_plus"],"web":[]},"custom":{"mp":["alipay_plus"]}},{"name":"getStorageInfo","includes":{"mp":["alipay_plus"],"web":[]}},{"name":"getStorageInfoSync","includes":{"mp":["alipay_plus"],"web":[]}},{"name":"showSharePanel","includes":{"mp":["alipay_plus"],"web":[]}},{"name":"postMessage","includes":{"mp":["alipay_plus"],"web":[]}},{"name":"onMessage","includes":{"mp":["alipay_plus"],"web":[]}}]
package/lib/bridges.d.ts CHANGED
@@ -144,3 +144,9 @@ export declare const watchShake: PickMPAttr<'watchShake'>;
144
144
  export declare const writeBLECharacteristicValue: PickMPAttr<'writeBLECharacteristicValue'>;
145
145
  export declare const getLaunchOptionsSync: PickMPAttr<'getLaunchOptionsSync'>;
146
146
  export declare const createSelectorQuery: PickMPAttr<'createSelectorQuery'>;
147
+ export declare const canIUse: PickMPAttr<'canIUse'>;
148
+ export declare const getStorageInfo: PickMPAttr<'getStorageInfo'>;
149
+ export declare const getStorageInfoSync: PickMPAttr<'getStorageInfoSync'>;
150
+ export declare const showSharePanel: PickMPAttr<'showSharePanel'>;
151
+ export declare const postMessage: PickMPAttr<'postMessage'>;
152
+ export declare const onMessage: PickMPAttr<'onMessage'>;
package/lib/bridges.js CHANGED
@@ -61,6 +61,7 @@ import _getSiteInfo from "./common/apis/generated/getSiteInfo";
61
61
  import _getStorage from "./common/apis/generated/getStorage";
62
62
  import _getStorageSync from "./common/apis/generated/getStorageSync";
63
63
  import _getSystemInfo from "./common/apis/generated/getSystemInfo";
64
+ import _getSystemInfoSync from "./common/apis/generated/getSystemInfoSync";
64
65
  import _hideBackHome from "./common/apis/generated/hideBackHome";
65
66
  import _hideKeyboard from "./common/apis/generated/hideKeyboard";
66
67
  import _hideLoading from "./common/apis/generated/hideLoading";
@@ -152,6 +153,13 @@ import _uploadFile from "./common/apis/generated/uploadFile";
152
153
  import _vibrate from "./common/apis/generated/vibrate";
153
154
  import _watchShake from "./common/apis/generated/watchShake";
154
155
  import _writeBLECharacteristicValue from "./common/apis/generated/writeBLECharacteristicValue";
156
+ import _createSelectorQuery from "./common/apis/generated/createSelectorQuery";
157
+ import mpAlipayPlusCanIUse from "./clients/mp/alipay_plus/canIUse";
158
+ import _getStorageInfo from "./common/apis/generated/getStorageInfo";
159
+ import _getStorageInfoSync from "./common/apis/generated/getStorageInfoSync";
160
+ import _showSharePanel from "./common/apis/generated/showSharePanel";
161
+ import _postMessage from "./common/apis/generated/postMessage";
162
+ import _onMessage from "./common/apis/generated/onMessage";
155
163
  import mpLazadaGetAuthCode from "./clients/mp/lazada/getAuthCode";
156
164
  import mpTaobaoCrossPay from "./clients/mp/taobao/crossPay";
157
165
  import mpTaobaoGetAuthCode from "./clients/mp/taobao/getAuthCode";
@@ -950,6 +958,7 @@ export var getSystemInfoSync = function getSystemInfoSync() {
950
958
  rest[_i] = arguments[_i];
951
959
  }
952
960
 
961
+ if (appEnv.isMpAlipayPlus) return _getSystemInfoSync.apply(void 0, rest);
953
962
  if (appEnv.isWebH5) return webH5GetSystemInfoSync.apply(void 0, rest);
954
963
  return notFound.apply(void 0, __spreadArray(['getSystemInfoSync'], rest, false));
955
964
  };
@@ -2207,6 +2216,67 @@ export var createSelectorQuery = function createSelectorQuery() {
2207
2216
  rest[_i] = arguments[_i];
2208
2217
  }
2209
2218
 
2219
+ if (appEnv.isMpAlipayPlus) return _createSelectorQuery.apply(void 0, rest);
2210
2220
  if (appEnv.isWebH5) return webH5CreateSelectorQuery.apply(void 0, rest);
2211
2221
  return notFound.apply(void 0, __spreadArray(['createSelectorQuery'], rest, false));
2222
+ };
2223
+ export var canIUse = function canIUse() {
2224
+ var rest = [];
2225
+
2226
+ for (var _i = 0; _i < arguments.length; _i++) {
2227
+ rest[_i] = arguments[_i];
2228
+ }
2229
+
2230
+ if (appEnv.isMpAlipayPlus) return mpAlipayPlusCanIUse.apply(void 0, rest);
2231
+ return notFound.apply(void 0, __spreadArray(['canIUse'], rest, false));
2232
+ };
2233
+ export var getStorageInfo = function getStorageInfo() {
2234
+ var rest = [];
2235
+
2236
+ for (var _i = 0; _i < arguments.length; _i++) {
2237
+ rest[_i] = arguments[_i];
2238
+ }
2239
+
2240
+ if (appEnv.isMpAlipayPlus) return _getStorageInfo.apply(void 0, rest);
2241
+ return notFound.apply(void 0, __spreadArray(['getStorageInfo'], rest, false));
2242
+ };
2243
+ export var getStorageInfoSync = function getStorageInfoSync() {
2244
+ var rest = [];
2245
+
2246
+ for (var _i = 0; _i < arguments.length; _i++) {
2247
+ rest[_i] = arguments[_i];
2248
+ }
2249
+
2250
+ if (appEnv.isMpAlipayPlus) return _getStorageInfoSync.apply(void 0, rest);
2251
+ return notFound.apply(void 0, __spreadArray(['getStorageInfoSync'], rest, false));
2252
+ };
2253
+ export var showSharePanel = function showSharePanel() {
2254
+ var rest = [];
2255
+
2256
+ for (var _i = 0; _i < arguments.length; _i++) {
2257
+ rest[_i] = arguments[_i];
2258
+ }
2259
+
2260
+ if (appEnv.isMpAlipayPlus) return _showSharePanel.apply(void 0, rest);
2261
+ return notFound.apply(void 0, __spreadArray(['showSharePanel'], rest, false));
2262
+ };
2263
+ export var postMessage = function postMessage() {
2264
+ var rest = [];
2265
+
2266
+ for (var _i = 0; _i < arguments.length; _i++) {
2267
+ rest[_i] = arguments[_i];
2268
+ }
2269
+
2270
+ if (appEnv.isMpAlipayPlus) return _postMessage.apply(void 0, rest);
2271
+ return notFound.apply(void 0, __spreadArray(['postMessage'], rest, false));
2272
+ };
2273
+ export var onMessage = function onMessage() {
2274
+ var rest = [];
2275
+
2276
+ for (var _i = 0; _i < arguments.length; _i++) {
2277
+ rest[_i] = arguments[_i];
2278
+ }
2279
+
2280
+ if (appEnv.isMpAlipayPlus) return _onMessage.apply(void 0, rest);
2281
+ return notFound.apply(void 0, __spreadArray(['onMessage'], rest, false));
2212
2282
  };
@@ -0,0 +1,2 @@
1
+ declare const _default: (name: string) => boolean;
2
+ export default _default;
@@ -0,0 +1,3 @@
1
+ export default (function (name) {
2
+ return my.canIUse(name);
3
+ });
@@ -0,0 +1,2 @@
1
+ import fill from '../../../common/apis/generated/createSelectorQuery';
2
+ export default fill;
@@ -0,0 +1,2 @@
1
+ import fill from "../../../common/apis/generated/createSelectorQuery";
2
+ export default fill;
@@ -1,2 +1,4 @@
1
- declare const _default: {};
1
+ declare const _default: {
2
+ canIUse: (name: string) => boolean;
3
+ };
2
4
  export default _default;
@@ -1 +1,4 @@
1
- export default {};
1
+ import canIUse from "./canIUse";
2
+ export default {
3
+ canIUse: canIUse
4
+ };
@@ -105,6 +105,7 @@ declare const _default: {
105
105
  data: any;
106
106
  };
107
107
  getSystemInfo: (args: GetSystemInfoArgs) => void;
108
+ getSystemInfoSync: () => GetSystemInfoCallbackValue;
108
109
  hideBackHome: () => void;
109
110
  hideKeyboard: () => void;
110
111
  hideLoading: (args?: HideLoadingArgs | undefined) => void;
@@ -247,5 +248,11 @@ declare const _default: {
247
248
  vibrate: (args: AsyncCallback<void>) => void;
248
249
  watchShake: (args?: AsyncCallback<any> | undefined) => void;
249
250
  writeBLECharacteristicValue: (args: WriteBLECharacteristicValueArgs) => void;
251
+ createSelectorQuery: () => SelectorQuery;
252
+ getStorageInfo: (args?: any) => void;
253
+ getStorageInfoSync: (args?: any) => void;
254
+ showSharePanel: (args?: any) => void;
255
+ postMessage: (args?: any) => void;
256
+ onMessage: (args?: any) => void;
250
257
  };
251
258
  export default _default;
@@ -48,6 +48,7 @@ import getSiteInfo from "../../../common/apis/generated/getSiteInfo";
48
48
  import getStorage from "../../../common/apis/generated/getStorage";
49
49
  import getStorageSync from "../../../common/apis/generated/getStorageSync";
50
50
  import getSystemInfo from "../../../common/apis/generated/getSystemInfo";
51
+ import getSystemInfoSync from "../../../common/apis/generated/getSystemInfoSync";
51
52
  import hideBackHome from "../../../common/apis/generated/hideBackHome";
52
53
  import hideKeyboard from "../../../common/apis/generated/hideKeyboard";
53
54
  import hideLoading from "../../../common/apis/generated/hideLoading";
@@ -140,6 +141,12 @@ import uploadFile from "../../../common/apis/generated/uploadFile";
140
141
  import vibrate from "../../../common/apis/generated/vibrate";
141
142
  import watchShake from "../../../common/apis/generated/watchShake";
142
143
  import writeBLECharacteristicValue from "../../../common/apis/generated/writeBLECharacteristicValue";
144
+ import createSelectorQuery from "../../../common/apis/generated/createSelectorQuery";
145
+ import getStorageInfo from "../../../common/apis/generated/getStorageInfo";
146
+ import getStorageInfoSync from "../../../common/apis/generated/getStorageInfoSync";
147
+ import showSharePanel from "../../../common/apis/generated/showSharePanel";
148
+ import postMessage from "../../../common/apis/generated/postMessage";
149
+ import onMessage from "../../../common/apis/generated/onMessage";
143
150
  export default {
144
151
  addFatigueAction: addFatigueAction,
145
152
  addPhoneContact: addPhoneContact,
@@ -191,6 +198,7 @@ export default {
191
198
  getStorage: getStorage,
192
199
  getStorageSync: getStorageSync,
193
200
  getSystemInfo: getSystemInfo,
201
+ getSystemInfoSync: getSystemInfoSync,
194
202
  hideBackHome: hideBackHome,
195
203
  hideKeyboard: hideKeyboard,
196
204
  hideLoading: hideLoading,
@@ -282,5 +290,11 @@ export default {
282
290
  uploadFile: uploadFile,
283
291
  vibrate: vibrate,
284
292
  watchShake: watchShake,
285
- writeBLECharacteristicValue: writeBLECharacteristicValue
293
+ writeBLECharacteristicValue: writeBLECharacteristicValue,
294
+ createSelectorQuery: createSelectorQuery,
295
+ getStorageInfo: getStorageInfo,
296
+ getStorageInfoSync: getStorageInfoSync,
297
+ showSharePanel: showSharePanel,
298
+ postMessage: postMessage,
299
+ onMessage: onMessage
286
300
  };
@@ -0,0 +1,2 @@
1
+ import fill from '../../../common/apis/generated/getStorageInfo';
2
+ export default fill;
@@ -0,0 +1,2 @@
1
+ import fill from "../../../common/apis/generated/getStorageInfo";
2
+ export default fill;
@@ -0,0 +1,2 @@
1
+ import fill from '../../../common/apis/generated/getStorageInfoSync';
2
+ export default fill;
@@ -0,0 +1,2 @@
1
+ import fill from "../../../common/apis/generated/getStorageInfoSync";
2
+ export default fill;
@@ -0,0 +1,2 @@
1
+ import fill from '../../../common/apis/generated/getSystemInfoSync';
2
+ export default fill;
@@ -0,0 +1,2 @@
1
+ import fill from "../../../common/apis/generated/getSystemInfoSync";
2
+ export default fill;
@@ -1,4 +1,5 @@
1
1
  declare const _default: {
2
+ canIUse: (name: string) => boolean;
2
3
  addFatigueAction: (args?: import("../../../types").AddFatigueActionArgs | undefined) => void;
3
4
  addPhoneContact: (args: Partial<AddPhoneContactArgs>) => void;
4
5
  alert: (args?: AlertArgs | undefined) => void;
@@ -105,6 +106,7 @@ declare const _default: {
105
106
  data: any;
106
107
  };
107
108
  getSystemInfo: (args: GetSystemInfoArgs) => void;
109
+ getSystemInfoSync: () => GetSystemInfoCallbackValue;
108
110
  hideBackHome: () => void;
109
111
  hideKeyboard: () => void;
110
112
  hideLoading: (args?: HideLoadingArgs | undefined) => void;
@@ -247,5 +249,11 @@ declare const _default: {
247
249
  vibrate: (args: AsyncCallback<void>) => void;
248
250
  watchShake: (args?: AsyncCallback<any> | undefined) => void;
249
251
  writeBLECharacteristicValue: (args: WriteBLECharacteristicValueArgs) => void;
252
+ createSelectorQuery: () => SelectorQuery;
253
+ getStorageInfo: (args?: any) => void;
254
+ getStorageInfoSync: (args?: any) => void;
255
+ showSharePanel: (args?: any) => void;
256
+ postMessage: (args?: any) => void;
257
+ onMessage: (args?: any) => void;
250
258
  };
251
259
  export default _default;
@@ -0,0 +1,2 @@
1
+ import fill from '../../../common/apis/generated/onMessage';
2
+ export default fill;
@@ -0,0 +1,2 @@
1
+ import fill from "../../../common/apis/generated/onMessage";
2
+ export default fill;
@@ -0,0 +1,2 @@
1
+ import fill from '../../../common/apis/generated/postMessage';
2
+ export default fill;
@@ -0,0 +1,2 @@
1
+ import fill from "../../../common/apis/generated/postMessage";
2
+ export default fill;
@@ -0,0 +1,2 @@
1
+ import fill from '../../../common/apis/generated/showSharePanel';
2
+ export default fill;
@@ -0,0 +1,2 @@
1
+ import fill from "../../../common/apis/generated/showSharePanel";
2
+ export default fill;
@@ -0,0 +1,2 @@
1
+ declare const _default: (args: string) => boolean;
2
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import call from "../../call";
2
+ export default (function (opt) {
3
+ return call('canIUse', opt);
4
+ });
@@ -0,0 +1,2 @@
1
+ declare const _default: () => SelectorQuery;
2
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import call from "../../call";
2
+ export default (function (opt) {
3
+ return call('createSelectorQuery', opt);
4
+ });
@@ -0,0 +1,2 @@
1
+ declare const _default: (args?: any) => void;
2
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import call from "../../call";
2
+ export default (function (opt) {
3
+ return call('getStorageInfo', opt);
4
+ });
@@ -0,0 +1,2 @@
1
+ declare const _default: (args?: any) => void;
2
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import call from "../../call";
2
+ export default (function (opt) {
3
+ return call('getStorageInfoSync', opt);
4
+ });
@@ -0,0 +1,2 @@
1
+ declare const _default: () => GetSystemInfoCallbackValue;
2
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import call from "../../call";
2
+ export default (function (opt) {
3
+ return call('getSystemInfoSync', opt);
4
+ });
@@ -0,0 +1,2 @@
1
+ declare const _default: (args?: any) => void;
2
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import call from "../../call";
2
+ export default (function (opt) {
3
+ return call('onMessage', opt);
4
+ });
@@ -0,0 +1,2 @@
1
+ declare const _default: (args?: any) => void;
2
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import call from "../../call";
2
+ export default (function (opt) {
3
+ return call('postMessage', opt);
4
+ });
@@ -0,0 +1,2 @@
1
+ declare const _default: (args?: any) => void;
2
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import call from "../../call";
2
+ export default (function (opt) {
3
+ return call('showSharePanel', opt);
4
+ });
@@ -0,0 +1,3 @@
1
+ import { MPApi } from '../types';
2
+ export declare const whichCanIUse: (name: keyof MPApi | ({} & string)) => boolean;
3
+ export default whichCanIUse;
@@ -51,7 +51,7 @@ var apis = {
51
51
  getStorage: [clientName.mpAlipayPlus, clientName.mpLazada, clientName.mpTaobao, clientName.mpWebAlipayPlus, clientName.mpWebAlipay, clientName.webAlipayPlus, clientName.webAlipay, clientName.webH5],
52
52
  getStorageSync: [clientName.mpAlipayPlus, clientName.mpLazada, clientName.mpTaobao, clientName.webH5],
53
53
  getSystemInfo: [clientName.mpAlipayPlus, clientName.mpLazada, clientName.mpTaobao, clientName.mpWebAlipayPlus, clientName.mpWebAlipay, clientName.webAlipayPlus, clientName.webAlipay, clientName.webH5],
54
- getSystemInfoSync: [clientName.webH5],
54
+ getSystemInfoSync: [clientName.webH5, clientName.mpAlipayPlus],
55
55
  hideBackHome: [clientName.mpAlipayPlus, clientName.mpLazada, clientName.mpTaobao],
56
56
  hideKeyboard: [clientName.mpAlipayPlus, clientName.mpLazada, clientName.mpTaobao, clientName.mpWebAlipayPlus, clientName.mpWebAlipay, clientName.webAlipayPlus, clientName.webAlipay],
57
57
  hideLoading: [clientName.mpAlipayPlus, clientName.mpLazada, clientName.mpTaobao, clientName.mpWebAlipayPlus, clientName.mpWebAlipay, clientName.webAlipayPlus, clientName.webAlipay, clientName.webH5],
@@ -145,11 +145,17 @@ var apis = {
145
145
  watchShake: [clientName.mpAlipayPlus, clientName.mpLazada],
146
146
  writeBLECharacteristicValue: [clientName.mpAlipayPlus, clientName.mpLazada, clientName.mpWebAlipayPlus],
147
147
  getLaunchOptionsSync: [clientName.webH5],
148
- createSelectorQuery: [clientName.webH5]
148
+ createSelectorQuery: [clientName.webH5, clientName.mpAlipayPlus],
149
+ canIUse: [clientName.mpAlipayPlus],
150
+ getStorageInfo: [clientName.mpAlipayPlus],
151
+ getStorageInfoSync: [clientName.mpAlipayPlus],
152
+ showSharePanel: [clientName.mpAlipayPlus],
153
+ postMessage: [clientName.mpAlipayPlus],
154
+ onMessage: [clientName.mpAlipayPlus]
149
155
  };
150
- export var canIUse = function canIUse(name) {
156
+ export var whichCanIUse = function whichCanIUse(name) {
151
157
  if (!(name in apis)) return false; // @ts-ignore
152
158
 
153
159
  return !apis[name].includes(getEnv().client);
154
160
  };
155
- export default canIUse;
161
+ export default whichCanIUse;
package/lib/index.d.ts CHANGED
@@ -1,10 +1,9 @@
1
1
  import * as bridge from './bridges';
2
2
  import { call } from './common/call';
3
3
  import { appEnv, getEnv } from './appEnv';
4
- import { canIUse } from './common/canIUse';
5
4
  import { logger } from './common/logger';
6
5
  import { ApiCallStage } from './common/constants';
7
6
  import WebviewBridge from './common/webview-bridge';
8
7
  export * from './bridges';
9
- export { appEnv, getEnv, canIUse, call, logger, WebviewBridge, ApiCallStage };
8
+ export { appEnv, getEnv, call, logger, WebviewBridge, ApiCallStage };
10
9
  export default bridge;