@tarojs/taro-h5 3.6.6 → 3.6.7-alpha.1

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 (246) hide show
  1. package/dist/api/ad/index.js +2 -2
  2. package/dist/api/ad/index.js.map +1 -1
  3. package/dist/api/ai/facial.js +3 -3
  4. package/dist/api/ai/facial.js.map +1 -1
  5. package/dist/api/ai/visual.js +2 -2
  6. package/dist/api/ai/visual.js.map +1 -1
  7. package/dist/api/alipay/index.js +1 -1
  8. package/dist/api/alipay/index.js.map +1 -1
  9. package/dist/api/base/crypto.js +1 -1
  10. package/dist/api/base/crypto.js.map +1 -1
  11. package/dist/api/base/debug.js +3 -3
  12. package/dist/api/base/debug.js.map +1 -1
  13. package/dist/api/base/index.d.ts +1 -2
  14. package/dist/api/base/index.js +3 -3
  15. package/dist/api/base/index.js.map +1 -1
  16. package/dist/api/base/performance.js +2 -2
  17. package/dist/api/base/performance.js.map +1 -1
  18. package/dist/api/base/system.js +2 -2
  19. package/dist/api/base/system.js.map +1 -1
  20. package/dist/api/base/update.js +2 -2
  21. package/dist/api/base/update.js.map +1 -1
  22. package/dist/api/base/weapp/app-event.js +7 -8
  23. package/dist/api/base/weapp/app-event.js.map +1 -1
  24. package/dist/api/canvas/CanvasContext.d.ts +2 -1
  25. package/dist/api/canvas/CanvasContext.js.map +1 -1
  26. package/dist/api/canvas/index.js +1 -1
  27. package/dist/api/canvas/index.js.map +1 -1
  28. package/dist/api/data-analysis/index.js +4 -4
  29. package/dist/api/data-analysis/index.js.map +1 -1
  30. package/dist/api/device/accelerometer.js +1 -2
  31. package/dist/api/device/accelerometer.js.map +1 -1
  32. package/dist/api/device/accessibility.js +1 -1
  33. package/dist/api/device/accessibility.js.map +1 -1
  34. package/dist/api/device/battery.js +1 -1
  35. package/dist/api/device/battery.js.map +1 -1
  36. package/dist/api/device/bluetooth-ble.js +16 -16
  37. package/dist/api/device/bluetooth-ble.js.map +1 -1
  38. package/dist/api/device/bluetooth-peripheral.js +3 -3
  39. package/dist/api/device/bluetooth-peripheral.js.map +1 -1
  40. package/dist/api/device/bluetooth.js +13 -13
  41. package/dist/api/device/bluetooth.js.map +1 -1
  42. package/dist/api/device/calendar.d.ts +3 -2
  43. package/dist/api/device/calendar.js +142 -3
  44. package/dist/api/device/calendar.js.map +1 -1
  45. package/dist/api/device/compass.js +1 -2
  46. package/dist/api/device/compass.js.map +1 -1
  47. package/dist/api/device/contact.js +2 -2
  48. package/dist/api/device/contact.js.map +1 -1
  49. package/dist/api/device/crypto.js +1 -1
  50. package/dist/api/device/crypto.js.map +1 -1
  51. package/dist/api/device/gyroscope.js +4 -4
  52. package/dist/api/device/gyroscope.js.map +1 -1
  53. package/dist/api/device/iBeacon.js +7 -7
  54. package/dist/api/device/iBeacon.js.map +1 -1
  55. package/dist/api/device/index.js +1 -1
  56. package/dist/api/device/keyboard.js +4 -4
  57. package/dist/api/device/keyboard.js.map +1 -1
  58. package/dist/api/device/memory.js +2 -2
  59. package/dist/api/device/memory.js.map +1 -1
  60. package/dist/api/device/motion.js +1 -2
  61. package/dist/api/device/motion.js.map +1 -1
  62. package/dist/api/device/network.js +3 -3
  63. package/dist/api/device/network.js.map +1 -1
  64. package/dist/api/device/nfc.js +7 -7
  65. package/dist/api/device/nfc.js.map +1 -1
  66. package/dist/api/device/scan.js +1 -1
  67. package/dist/api/device/scan.js.map +1 -1
  68. package/dist/api/device/screen.js +6 -6
  69. package/dist/api/device/screen.js.map +1 -1
  70. package/dist/api/device/wifi.d.ts +2 -1
  71. package/dist/api/device/wifi.js +13 -12
  72. package/dist/api/device/wifi.js.map +1 -1
  73. package/dist/api/ext/index.js +2 -2
  74. package/dist/api/ext/index.js.map +1 -1
  75. package/dist/api/files/index.js +8 -8
  76. package/dist/api/files/index.js.map +1 -1
  77. package/dist/api/index.d.ts +1 -0
  78. package/dist/api/index.js +12 -6
  79. package/dist/api/index.js.map +1 -1
  80. package/dist/api/location/chooseLocation.js +9 -5
  81. package/dist/api/location/chooseLocation.js.map +1 -1
  82. package/dist/api/location/getLocation.js +1 -1
  83. package/dist/api/location/getLocation.js.map +1 -1
  84. package/dist/api/location/index.js +10 -10
  85. package/dist/api/location/index.js.map +1 -1
  86. package/dist/api/media/audio/InnerAudioContext.d.ts +2 -0
  87. package/dist/api/media/audio/InnerAudioContext.js +4 -1
  88. package/dist/api/media/audio/InnerAudioContext.js.map +1 -1
  89. package/dist/api/media/audio/index.js +8 -8
  90. package/dist/api/media/audio/index.js.map +1 -1
  91. package/dist/api/media/background-audio/index.js +8 -8
  92. package/dist/api/media/background-audio/index.js.map +1 -1
  93. package/dist/api/media/camera.js +1 -1
  94. package/dist/api/media/camera.js.map +1 -1
  95. package/dist/api/media/image/chooseImage.d.ts +1 -0
  96. package/dist/api/media/image/chooseImage.js +28 -71
  97. package/dist/api/media/image/chooseImage.js.map +1 -1
  98. package/dist/api/media/image/index.d.ts +6 -3
  99. package/dist/api/media/image/index.js +8 -7
  100. package/dist/api/media/image/index.js.map +1 -1
  101. package/dist/api/media/image/saveImageToPhotosAlbum.d.ts +3 -0
  102. package/dist/api/media/image/saveImageToPhotosAlbum.js +30 -0
  103. package/dist/api/media/image/saveImageToPhotosAlbum.js.map +1 -0
  104. package/dist/api/media/index.js +2 -2
  105. package/dist/api/media/live.js +2 -2
  106. package/dist/api/media/live.js.map +1 -1
  107. package/dist/api/media/map.js +1 -1
  108. package/dist/api/media/map.js.map +1 -1
  109. package/dist/api/media/media-recorder.js +1 -1
  110. package/dist/api/media/media-recorder.js.map +1 -1
  111. package/dist/api/media/recorder.js +3 -3
  112. package/dist/api/media/recorder.js.map +1 -1
  113. package/dist/api/media/video/chooseMedia.d.ts +6 -0
  114. package/dist/api/media/video/chooseMedia.js +208 -0
  115. package/dist/api/media/video/chooseMedia.js.map +1 -0
  116. package/dist/api/media/video/chooseVideo.d.ts +7 -0
  117. package/dist/api/media/video/chooseVideo.js +44 -0
  118. package/dist/api/media/video/chooseVideo.js.map +1 -0
  119. package/dist/api/media/video/getVideoInfo.d.ts +3 -0
  120. package/dist/api/media/video/getVideoInfo.js +63 -0
  121. package/dist/api/media/video/getVideoInfo.js.map +1 -0
  122. package/dist/api/media/video/index.d.ts +5 -8
  123. package/dist/api/media/video/index.js +8 -67
  124. package/dist/api/media/video/index.js.map +1 -1
  125. package/dist/api/media/video/saveVideoToPhotosAlbum.d.ts +3 -0
  126. package/dist/api/media/video/saveVideoToPhotosAlbum.js +30 -0
  127. package/dist/api/media/video/saveVideoToPhotosAlbum.js.map +1 -0
  128. package/dist/api/media/video-decoder.js +1 -1
  129. package/dist/api/media/video-decoder.js.map +1 -1
  130. package/dist/api/media/video-processing.js +1 -1
  131. package/dist/api/media/video-processing.js.map +1 -1
  132. package/dist/api/media/voip.js +14 -14
  133. package/dist/api/media/voip.js.map +1 -1
  134. package/dist/api/navigate/index.js +5 -5
  135. package/dist/api/navigate/index.js.map +1 -1
  136. package/dist/api/network/mdns.js +10 -10
  137. package/dist/api/network/mdns.js.map +1 -1
  138. package/dist/api/network/request/index.d.ts +1 -1
  139. package/dist/api/network/request/index.js +23 -18
  140. package/dist/api/network/request/index.js.map +1 -1
  141. package/dist/api/network/tcp.js +1 -1
  142. package/dist/api/network/tcp.js.map +1 -1
  143. package/dist/api/network/udp.js +1 -1
  144. package/dist/api/network/udp.js.map +1 -1
  145. package/dist/api/open-api/account.js +1 -1
  146. package/dist/api/open-api/account.js.map +1 -1
  147. package/dist/api/open-api/address.js +1 -1
  148. package/dist/api/open-api/address.js.map +1 -1
  149. package/dist/api/open-api/authorize.js +2 -2
  150. package/dist/api/open-api/authorize.js.map +1 -1
  151. package/dist/api/open-api/card.js +2 -2
  152. package/dist/api/open-api/card.js.map +1 -1
  153. package/dist/api/open-api/channels-live.js +6 -6
  154. package/dist/api/open-api/channels-live.js.map +1 -1
  155. package/dist/api/open-api/customer-service.js +1 -1
  156. package/dist/api/open-api/customer-service.js.map +1 -1
  157. package/dist/api/open-api/facial.js +4 -4
  158. package/dist/api/open-api/facial.js.map +1 -1
  159. package/dist/api/open-api/favorites.js +3 -3
  160. package/dist/api/open-api/favorites.js.map +1 -1
  161. package/dist/api/open-api/group.js +1 -1
  162. package/dist/api/open-api/group.js.map +1 -1
  163. package/dist/api/open-api/index.js +1 -1
  164. package/dist/api/open-api/invoice.js +2 -2
  165. package/dist/api/open-api/invoice.js.map +1 -1
  166. package/dist/api/open-api/license-plate.js +1 -1
  167. package/dist/api/open-api/license-plate.js.map +1 -1
  168. package/dist/api/open-api/login.js +3 -3
  169. package/dist/api/open-api/login.js.map +1 -1
  170. package/dist/api/open-api/red-package.js +1 -1
  171. package/dist/api/open-api/red-package.js.map +1 -1
  172. package/dist/api/open-api/settings.js +2 -2
  173. package/dist/api/open-api/settings.js.map +1 -1
  174. package/dist/api/open-api/soter.js +3 -3
  175. package/dist/api/open-api/soter.js.map +1 -1
  176. package/dist/api/open-api/subscribe-message.d.ts +2 -1
  177. package/dist/api/open-api/subscribe-message.js +4 -2
  178. package/dist/api/open-api/subscribe-message.js.map +1 -1
  179. package/dist/api/open-api/user-info.js +2 -2
  180. package/dist/api/open-api/user-info.js.map +1 -1
  181. package/dist/api/open-api/werun.js +2 -2
  182. package/dist/api/open-api/werun.js.map +1 -1
  183. package/dist/api/payment/index.js +2 -2
  184. package/dist/api/payment/index.js.map +1 -1
  185. package/dist/api/qq/index.d.ts +2 -0
  186. package/dist/api/qq/index.js +7 -0
  187. package/dist/api/qq/index.js.map +1 -0
  188. package/dist/api/share/index.d.ts +10 -0
  189. package/dist/api/share/index.js +21 -11
  190. package/dist/api/share/index.js.map +1 -1
  191. package/dist/api/storage/background-fetch.js +4 -4
  192. package/dist/api/storage/background-fetch.js.map +1 -1
  193. package/dist/api/storage/index.js +2 -2
  194. package/dist/api/storage/index.js.map +1 -1
  195. package/dist/api/swan/index.js +21 -21
  196. package/dist/api/swan/index.js.map +1 -1
  197. package/dist/api/taro.js +1 -1
  198. package/dist/api/taro.js.map +1 -1
  199. package/dist/api/ui/background.js +2 -2
  200. package/dist/api/ui/background.js.map +1 -1
  201. package/dist/api/ui/index.js +1 -1
  202. package/dist/api/ui/interaction/index.d.ts +1 -1
  203. package/dist/api/ui/interaction/index.js +4 -4
  204. package/dist/api/ui/interaction/index.js.map +1 -1
  205. package/dist/api/ui/interaction/modal.js +6 -0
  206. package/dist/api/ui/interaction/modal.js.map +1 -1
  207. package/dist/api/ui/menu.js +1 -1
  208. package/dist/api/ui/menu.js.map +1 -1
  209. package/dist/api/ui/navigation-bar/index.js +3 -3
  210. package/dist/api/ui/navigation-bar/index.js.map +1 -1
  211. package/dist/api/ui/sticky.js +1 -1
  212. package/dist/api/ui/sticky.js.map +1 -1
  213. package/dist/api/ui/window.d.ts +2 -1
  214. package/dist/api/ui/window.js +3 -2
  215. package/dist/api/ui/window.js.map +1 -1
  216. package/dist/api/worker/index.js +1 -1
  217. package/dist/api/worker/index.js.map +1 -1
  218. package/dist/api/wxml/IntersectionObserver.d.ts +1 -1
  219. package/dist/api/wxml/IntersectionObserver.js +0 -1
  220. package/dist/api/wxml/IntersectionObserver.js.map +1 -1
  221. package/dist/api/wxml/MediaQueryObserver.d.ts +1 -1
  222. package/dist/api/wxml/MediaQueryObserver.js.map +1 -1
  223. package/dist/index.cjs.d.ts +35 -13
  224. package/dist/index.cjs.js +3910 -20776
  225. package/dist/index.cjs.js.map +1 -1
  226. package/dist/index.esm.d.ts +35 -13
  227. package/dist/index.esm.js +4352 -21219
  228. package/dist/index.esm.js.map +1 -1
  229. package/dist/index.js +17 -7
  230. package/dist/index.js.map +1 -1
  231. package/dist/utils/helper.d.ts +2 -0
  232. package/dist/utils/helper.js +11 -0
  233. package/dist/utils/helper.js.map +1 -0
  234. package/dist/utils/index.d.ts +5 -3
  235. package/dist/utils/index.js +4 -9
  236. package/dist/utils/index.js.map +1 -1
  237. package/package.json +16 -10
  238. package/dist/_virtual/_commonjsHelpers.js +0 -35
  239. package/dist/_virtual/_commonjsHelpers.js.map +0 -1
  240. package/dist/_virtual/lodash.js +0 -4
  241. package/dist/_virtual/lodash.js.map +0 -1
  242. package/dist/node_modules/.pnpm/registry.npmjs.org_lodash@4.17.21/node_modules/lodash/lodash.js +0 -17220
  243. package/dist/node_modules/.pnpm/registry.npmjs.org_lodash@4.17.21/node_modules/lodash/lodash.js.map +0 -1
  244. package/dist/utils/lodash.d.ts +0 -3
  245. package/dist/utils/lodash.js +0 -32
  246. package/dist/utils/lodash.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"voip.js","sources":["../../../src/api/media/voip.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 实时语音\nexport const updateVoIPChatMuteConfig = temporarilyNotSupport('updateVoIPChatMuteConfig')\nexport const subscribeVoIPVideoMembers = temporarilyNotSupport('subscribeVoIPVideoMembers')\nexport const setEnable1v1Chat = temporarilyNotSupport('setEnable1v1Chat')\nexport const onVoIPVideoMembersChanged = temporarilyNotSupport('onVoIPVideoMembersChanged')\nexport const onVoIPChatStateChanged = temporarilyNotSupport('onVoIPChatStateChanged')\nexport const onVoIPChatSpeakersChanged = temporarilyNotSupport('onVoIPChatSpeakersChanged')\nexport const onVoIPChatMembersChanged = temporarilyNotSupport('onVoIPChatMembersChanged')\nexport const onVoIPChatInterrupted = temporarilyNotSupport('onVoIPChatInterrupted')\nexport const offVoIPVideoMembersChanged = temporarilyNotSupport('offVoIPVideoMembersChanged')\nexport const offVoIPChatStateChanged = temporarilyNotSupport('offVoIPChatStateChanged')\nexport const offVoIPChatMembersChanged = temporarilyNotSupport('offVoIPChatMembersChanged')\nexport const offVoIPChatInterrupted = temporarilyNotSupport('offVoIPChatInterrupted')\nexport const joinVoIPChat = temporarilyNotSupport('joinVoIPChat')\nexport const exitVoIPChat = temporarilyNotSupport('exitVoIPChat')\n"],"names":[],"mappings":";;AAEA;MACa,wBAAwB,GAAG,qBAAqB,CAAC,0BAA0B,EAAC;MAC5E,yBAAyB,GAAG,qBAAqB,CAAC,2BAA2B,EAAC;MAC9E,gBAAgB,GAAG,qBAAqB,CAAC,kBAAkB,EAAC;MAC5D,yBAAyB,GAAG,qBAAqB,CAAC,2BAA2B,EAAC;MAC9E,sBAAsB,GAAG,qBAAqB,CAAC,wBAAwB,EAAC;MACxE,yBAAyB,GAAG,qBAAqB,CAAC,2BAA2B,EAAC;MAC9E,wBAAwB,GAAG,qBAAqB,CAAC,0BAA0B,EAAC;MAC5E,qBAAqB,GAAG,qBAAqB,CAAC,uBAAuB,EAAC;MACtE,0BAA0B,GAAG,qBAAqB,CAAC,4BAA4B,EAAC;MAChF,uBAAuB,GAAG,qBAAqB,CAAC,yBAAyB,EAAC;MAC1E,yBAAyB,GAAG,qBAAqB,CAAC,2BAA2B,EAAC;MAC9E,sBAAsB,GAAG,qBAAqB,CAAC,wBAAwB,EAAC;MACxE,YAAY,GAAG,qBAAqB,CAAC,cAAc,EAAC;MACpD,YAAY,GAAG,qBAAqB,CAAC,cAAc;;;;"}
1
+ {"version":3,"file":"voip.js","sources":["../../../src/api/media/voip.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 实时语音\nexport const updateVoIPChatMuteConfig = /* @__PURE__ */ temporarilyNotSupport('updateVoIPChatMuteConfig')\nexport const subscribeVoIPVideoMembers = /* @__PURE__ */ temporarilyNotSupport('subscribeVoIPVideoMembers')\nexport const setEnable1v1Chat = /* @__PURE__ */ temporarilyNotSupport('setEnable1v1Chat')\nexport const onVoIPVideoMembersChanged = /* @__PURE__ */ temporarilyNotSupport('onVoIPVideoMembersChanged')\nexport const onVoIPChatStateChanged = /* @__PURE__ */ temporarilyNotSupport('onVoIPChatStateChanged')\nexport const onVoIPChatSpeakersChanged = /* @__PURE__ */ temporarilyNotSupport('onVoIPChatSpeakersChanged')\nexport const onVoIPChatMembersChanged = /* @__PURE__ */ temporarilyNotSupport('onVoIPChatMembersChanged')\nexport const onVoIPChatInterrupted = /* @__PURE__ */ temporarilyNotSupport('onVoIPChatInterrupted')\nexport const offVoIPVideoMembersChanged = /* @__PURE__ */ temporarilyNotSupport('offVoIPVideoMembersChanged')\nexport const offVoIPChatStateChanged = /* @__PURE__ */ temporarilyNotSupport('offVoIPChatStateChanged')\nexport const offVoIPChatMembersChanged = /* @__PURE__ */ temporarilyNotSupport('offVoIPChatMembersChanged')\nexport const offVoIPChatInterrupted = /* @__PURE__ */ temporarilyNotSupport('offVoIPChatInterrupted')\nexport const joinVoIPChat = /* @__PURE__ */ temporarilyNotSupport('joinVoIPChat')\nexport const exitVoIPChat = /* @__PURE__ */ temporarilyNotSupport('exitVoIPChat')\n"],"names":[],"mappings":";;AAEA;AACa,MAAA,wBAAwB,mBAAmB,qBAAqB,CAAC,0BAA0B,EAAC;AAC5F,MAAA,yBAAyB,mBAAmB,qBAAqB,CAAC,2BAA2B,EAAC;AAC9F,MAAA,gBAAgB,mBAAmB,qBAAqB,CAAC,kBAAkB,EAAC;AAC5E,MAAA,yBAAyB,mBAAmB,qBAAqB,CAAC,2BAA2B,EAAC;AAC9F,MAAA,sBAAsB,mBAAmB,qBAAqB,CAAC,wBAAwB,EAAC;AACxF,MAAA,yBAAyB,mBAAmB,qBAAqB,CAAC,2BAA2B,EAAC;AAC9F,MAAA,wBAAwB,mBAAmB,qBAAqB,CAAC,0BAA0B,EAAC;AAC5F,MAAA,qBAAqB,mBAAmB,qBAAqB,CAAC,uBAAuB,EAAC;AACtF,MAAA,0BAA0B,mBAAmB,qBAAqB,CAAC,4BAA4B,EAAC;AAChG,MAAA,uBAAuB,mBAAmB,qBAAqB,CAAC,yBAAyB,EAAC;AAC1F,MAAA,yBAAyB,mBAAmB,qBAAqB,CAAC,2BAA2B,EAAC;AAC9F,MAAA,sBAAsB,mBAAmB,qBAAqB,CAAC,wBAAwB,EAAC;AACxF,MAAA,YAAY,mBAAmB,qBAAqB,CAAC,cAAc,EAAC;AACpE,MAAA,YAAY,mBAAmB,qBAAqB,CAAC,cAAc;;;;"}
@@ -1,11 +1,11 @@
1
1
  import { temporarilyNotSupport } from '../../utils/index.js';
2
2
 
3
3
  // 跳转
4
- const openEmbeddedMiniProgram = temporarilyNotSupport('openEmbeddedMiniProgram');
5
- const navigateToMiniProgram = temporarilyNotSupport('navigateToMiniProgram');
6
- const navigateBackMiniProgram = temporarilyNotSupport('navigateBackMiniProgram');
7
- const exitMiniProgram = temporarilyNotSupport('exitMiniProgram');
8
- const openBusinessView = temporarilyNotSupport('openBusinessView');
4
+ const openEmbeddedMiniProgram = /* @__PURE__ */ temporarilyNotSupport('openEmbeddedMiniProgram');
5
+ const navigateToMiniProgram = /* @__PURE__ */ temporarilyNotSupport('navigateToMiniProgram');
6
+ const navigateBackMiniProgram = /* @__PURE__ */ temporarilyNotSupport('navigateBackMiniProgram');
7
+ const exitMiniProgram = /* @__PURE__ */ temporarilyNotSupport('exitMiniProgram');
8
+ const openBusinessView = /* @__PURE__ */ temporarilyNotSupport('openBusinessView');
9
9
 
10
10
  export { exitMiniProgram, navigateBackMiniProgram, navigateToMiniProgram, openBusinessView, openEmbeddedMiniProgram };
11
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/api/navigate/index.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 跳转\nexport const openEmbeddedMiniProgram = temporarilyNotSupport('openEmbeddedMiniProgram')\nexport const navigateToMiniProgram = temporarilyNotSupport('navigateToMiniProgram')\nexport const navigateBackMiniProgram = temporarilyNotSupport('navigateBackMiniProgram')\nexport const exitMiniProgram = temporarilyNotSupport('exitMiniProgram')\nexport const openBusinessView = temporarilyNotSupport('openBusinessView')\n"],"names":[],"mappings":";;AAEA;MACa,uBAAuB,GAAG,qBAAqB,CAAC,yBAAyB,EAAC;MAC1E,qBAAqB,GAAG,qBAAqB,CAAC,uBAAuB,EAAC;MACtE,uBAAuB,GAAG,qBAAqB,CAAC,yBAAyB,EAAC;MAC1E,eAAe,GAAG,qBAAqB,CAAC,iBAAiB,EAAC;MAC1D,gBAAgB,GAAG,qBAAqB,CAAC,kBAAkB;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/api/navigate/index.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 跳转\nexport const openEmbeddedMiniProgram = /* @__PURE__ */ temporarilyNotSupport('openEmbeddedMiniProgram')\nexport const navigateToMiniProgram = /* @__PURE__ */ temporarilyNotSupport('navigateToMiniProgram')\nexport const navigateBackMiniProgram = /* @__PURE__ */ temporarilyNotSupport('navigateBackMiniProgram')\nexport const exitMiniProgram = /* @__PURE__ */ temporarilyNotSupport('exitMiniProgram')\nexport const openBusinessView = /* @__PURE__ */ temporarilyNotSupport('openBusinessView')\n"],"names":[],"mappings":";;AAEA;AACa,MAAA,uBAAuB,mBAAmB,qBAAqB,CAAC,yBAAyB,EAAC;AAC1F,MAAA,qBAAqB,mBAAmB,qBAAqB,CAAC,uBAAuB,EAAC;AACtF,MAAA,uBAAuB,mBAAmB,qBAAqB,CAAC,yBAAyB,EAAC;AAC1F,MAAA,eAAe,mBAAmB,qBAAqB,CAAC,iBAAiB,EAAC;AAC1E,MAAA,gBAAgB,mBAAmB,qBAAqB,CAAC,kBAAkB;;;;"}
@@ -1,16 +1,16 @@
1
1
  import { temporarilyNotSupport } from '../../utils/index.js';
2
2
 
3
3
  // mDNS
4
- const stopLocalServiceDiscovery = temporarilyNotSupport('stopLocalServiceDiscovery');
5
- const startLocalServiceDiscovery = temporarilyNotSupport('startLocalServiceDiscovery');
6
- const onLocalServiceResolveFail = temporarilyNotSupport('onLocalServiceResolveFail');
7
- const onLocalServiceLost = temporarilyNotSupport('onLocalServiceLost');
8
- const onLocalServiceFound = temporarilyNotSupport('onLocalServiceFound');
9
- const onLocalServiceDiscoveryStop = temporarilyNotSupport('onLocalServiceDiscoveryStop');
10
- const offLocalServiceResolveFail = temporarilyNotSupport('offLocalServiceResolveFail');
11
- const offLocalServiceLost = temporarilyNotSupport('offLocalServiceLost');
12
- const offLocalServiceFound = temporarilyNotSupport('offLocalServiceFound');
13
- const offLocalServiceDiscoveryStop = temporarilyNotSupport('offLocalServiceDiscoveryStop');
4
+ const stopLocalServiceDiscovery = /* @__PURE__ */ temporarilyNotSupport('stopLocalServiceDiscovery');
5
+ const startLocalServiceDiscovery = /* @__PURE__ */ temporarilyNotSupport('startLocalServiceDiscovery');
6
+ const onLocalServiceResolveFail = /* @__PURE__ */ temporarilyNotSupport('onLocalServiceResolveFail');
7
+ const onLocalServiceLost = /* @__PURE__ */ temporarilyNotSupport('onLocalServiceLost');
8
+ const onLocalServiceFound = /* @__PURE__ */ temporarilyNotSupport('onLocalServiceFound');
9
+ const onLocalServiceDiscoveryStop = /* @__PURE__ */ temporarilyNotSupport('onLocalServiceDiscoveryStop');
10
+ const offLocalServiceResolveFail = /* @__PURE__ */ temporarilyNotSupport('offLocalServiceResolveFail');
11
+ const offLocalServiceLost = /* @__PURE__ */ temporarilyNotSupport('offLocalServiceLost');
12
+ const offLocalServiceFound = /* @__PURE__ */ temporarilyNotSupport('offLocalServiceFound');
13
+ const offLocalServiceDiscoveryStop = /* @__PURE__ */ temporarilyNotSupport('offLocalServiceDiscoveryStop');
14
14
 
15
15
  export { offLocalServiceDiscoveryStop, offLocalServiceFound, offLocalServiceLost, offLocalServiceResolveFail, onLocalServiceDiscoveryStop, onLocalServiceFound, onLocalServiceLost, onLocalServiceResolveFail, startLocalServiceDiscovery, stopLocalServiceDiscovery };
16
16
  //# sourceMappingURL=mdns.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mdns.js","sources":["../../../src/api/network/mdns.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// mDNS\nexport const stopLocalServiceDiscovery = temporarilyNotSupport('stopLocalServiceDiscovery')\nexport const startLocalServiceDiscovery = temporarilyNotSupport('startLocalServiceDiscovery')\nexport const onLocalServiceResolveFail = temporarilyNotSupport('onLocalServiceResolveFail')\nexport const onLocalServiceLost = temporarilyNotSupport('onLocalServiceLost')\nexport const onLocalServiceFound = temporarilyNotSupport('onLocalServiceFound')\nexport const onLocalServiceDiscoveryStop = temporarilyNotSupport('onLocalServiceDiscoveryStop')\nexport const offLocalServiceResolveFail = temporarilyNotSupport('offLocalServiceResolveFail')\nexport const offLocalServiceLost = temporarilyNotSupport('offLocalServiceLost')\nexport const offLocalServiceFound = temporarilyNotSupport('offLocalServiceFound')\nexport const offLocalServiceDiscoveryStop = temporarilyNotSupport('offLocalServiceDiscoveryStop')\n"],"names":[],"mappings":";;AAEA;MACa,yBAAyB,GAAG,qBAAqB,CAAC,2BAA2B,EAAC;MAC9E,0BAA0B,GAAG,qBAAqB,CAAC,4BAA4B,EAAC;MAChF,yBAAyB,GAAG,qBAAqB,CAAC,2BAA2B,EAAC;MAC9E,kBAAkB,GAAG,qBAAqB,CAAC,oBAAoB,EAAC;MAChE,mBAAmB,GAAG,qBAAqB,CAAC,qBAAqB,EAAC;MAClE,2BAA2B,GAAG,qBAAqB,CAAC,6BAA6B,EAAC;MAClF,0BAA0B,GAAG,qBAAqB,CAAC,4BAA4B,EAAC;MAChF,mBAAmB,GAAG,qBAAqB,CAAC,qBAAqB,EAAC;MAClE,oBAAoB,GAAG,qBAAqB,CAAC,sBAAsB,EAAC;MACpE,4BAA4B,GAAG,qBAAqB,CAAC,8BAA8B;;;;"}
1
+ {"version":3,"file":"mdns.js","sources":["../../../src/api/network/mdns.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// mDNS\nexport const stopLocalServiceDiscovery = /* @__PURE__ */ temporarilyNotSupport('stopLocalServiceDiscovery')\nexport const startLocalServiceDiscovery = /* @__PURE__ */ temporarilyNotSupport('startLocalServiceDiscovery')\nexport const onLocalServiceResolveFail = /* @__PURE__ */ temporarilyNotSupport('onLocalServiceResolveFail')\nexport const onLocalServiceLost = /* @__PURE__ */ temporarilyNotSupport('onLocalServiceLost')\nexport const onLocalServiceFound = /* @__PURE__ */ temporarilyNotSupport('onLocalServiceFound')\nexport const onLocalServiceDiscoveryStop = /* @__PURE__ */ temporarilyNotSupport('onLocalServiceDiscoveryStop')\nexport const offLocalServiceResolveFail = /* @__PURE__ */ temporarilyNotSupport('offLocalServiceResolveFail')\nexport const offLocalServiceLost = /* @__PURE__ */ temporarilyNotSupport('offLocalServiceLost')\nexport const offLocalServiceFound = /* @__PURE__ */ temporarilyNotSupport('offLocalServiceFound')\nexport const offLocalServiceDiscoveryStop = /* @__PURE__ */ temporarilyNotSupport('offLocalServiceDiscoveryStop')\n"],"names":[],"mappings":";;AAEA;AACa,MAAA,yBAAyB,mBAAmB,qBAAqB,CAAC,2BAA2B,EAAC;AAC9F,MAAA,0BAA0B,mBAAmB,qBAAqB,CAAC,4BAA4B,EAAC;AAChG,MAAA,yBAAyB,mBAAmB,qBAAqB,CAAC,2BAA2B,EAAC;AAC9F,MAAA,kBAAkB,mBAAmB,qBAAqB,CAAC,oBAAoB,EAAC;AAChF,MAAA,mBAAmB,mBAAmB,qBAAqB,CAAC,qBAAqB,EAAC;AAClF,MAAA,2BAA2B,mBAAmB,qBAAqB,CAAC,6BAA6B,EAAC;AAClG,MAAA,0BAA0B,mBAAmB,qBAAqB,CAAC,4BAA4B,EAAC;AAChG,MAAA,mBAAmB,mBAAmB,qBAAqB,CAAC,qBAAqB,EAAC;AAClF,MAAA,oBAAoB,mBAAmB,qBAAqB,CAAC,sBAAsB,EAAC;AACpF,MAAA,4BAA4B,mBAAmB,qBAAqB,CAAC,8BAA8B;;;;"}
@@ -1,5 +1,5 @@
1
1
  import Taro from '@tarojs/api';
2
- declare const request: typeof Taro.request;
2
+ declare const request: <T = any, U = any>(option: Taro.request.Option<T, U>) => Taro.RequestTask<T>;
3
3
  declare const addInterceptor: any;
4
4
  declare const cleanInterceptors: any;
5
5
  export { request, addInterceptor, cleanInterceptors };
@@ -1,3 +1,4 @@
1
+ import { __rest } from '../../../node_modules/.pnpm/registry.npmjs.org_tslib@2.5.0/node_modules/tslib/tslib.es6.js';
1
2
  import 'whatwg-fetch';
2
3
  import 'abortcontroller-polyfill/dist/abortcontroller-polyfill-only';
3
4
  import Taro from '@tarojs/api';
@@ -7,7 +8,7 @@ import { serializeParams } from '../../../utils/index.js';
7
8
 
8
9
  // @ts-ignore
9
10
  const { Link } = Taro;
10
- function generateRequestUrlWithParams(url, params) {
11
+ function generateRequestUrlWithParams(url = '', params) {
11
12
  params = typeof params === 'string' ? params : serializeParams(params);
12
13
  if (params) {
13
14
  url += (~url.indexOf('?') ? '&' : '?') + params;
@@ -15,26 +16,21 @@ function generateRequestUrlWithParams(url, params) {
15
16
  url = url.replace('?&', '?');
16
17
  return url;
17
18
  }
18
- // FIXME 移除 any 标注
19
- function _request(options) {
20
- options = options || {};
21
- if (typeof options === 'string') {
22
- options = {
23
- url: options
24
- };
25
- }
19
+ function _request(options = {}) {
26
20
  const { success, complete, fail } = options;
27
- let url = options.url;
21
+ let url = options.url || '';
28
22
  const params = {};
29
23
  const res = {};
30
24
  if (options.jsonp) {
31
- Object.assign(params, options);
32
- params.params = options.data;
33
- params.cache = options.jsonpCache;
34
- if (typeof options.jsonp === 'string') {
35
- params.name = options.jsonp;
25
+ const { jsonp } = options, opts = __rest(options, ["jsonp"]);
26
+ Object.assign(params, opts);
27
+ // @ts-ignore
28
+ params.params = opts.data;
29
+ params.cache = opts.jsonpCache;
30
+ if (typeof jsonp === 'string') {
31
+ // @ts-ignore
32
+ params.name = jsonp;
36
33
  }
37
- delete params.jsonp;
38
34
  return jsonpRetry(url, params)
39
35
  .then(data => {
40
36
  res.statusCode = 200;
@@ -55,7 +51,7 @@ function _request(options) {
55
51
  if (methodUpper === 'GET' || methodUpper === 'HEAD') {
56
52
  url = generateRequestUrlWithParams(url, options.data);
57
53
  }
58
- else if (Object.prototype.toString.call(options.data) === '[object Object]') {
54
+ else if (['[object Array]', '[object Object]'].indexOf(Object.prototype.toString.call(options.data)) >= 0) {
59
55
  options.header = options.header || {};
60
56
  const keyOfContentType = Object.keys(options.header).find(item => item.toLowerCase() === 'content-type');
61
57
  if (!keyOfContentType) {
@@ -145,7 +141,16 @@ function taroInterceptor(chain) {
145
141
  return _request(chain.requestParams);
146
142
  }
147
143
  const link = new Link(taroInterceptor);
148
- const request = link.request.bind(link);
144
+ const request = ((...args) => {
145
+ const [url = '', options = {}] = args;
146
+ if (typeof url === 'string') {
147
+ options.url = url;
148
+ }
149
+ else {
150
+ Object.assign(options, url);
151
+ }
152
+ return link.request(options);
153
+ });
149
154
  const addInterceptor = link.addInterceptor.bind(link);
150
155
  const cleanInterceptors = link.cleanInterceptors.bind(link);
151
156
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/api/network/request/index.ts"],"sourcesContent":["import 'whatwg-fetch'\nimport 'abortcontroller-polyfill/dist/abortcontroller-polyfill-only'\n\nimport Taro from '@tarojs/api'\nimport { isFunction } from '@tarojs/shared'\nimport jsonpRetry from 'jsonp-retry'\n\nimport { serializeParams } from '../../../utils'\n\n// @ts-ignore\nconst { Link } = Taro\n\nfunction generateRequestUrlWithParams (url: string, params?: unknown) {\n params = typeof params === 'string' ? params : serializeParams(params)\n if (params) {\n url += (~url.indexOf('?') ? '&' : '?') + params\n }\n url = url.replace('?&', '?')\n return url\n}\n\n// FIXME 移除 any 标注\nfunction _request (options) {\n options = options || {}\n if (typeof options === 'string') {\n options = {\n url: options\n }\n }\n const { success, complete, fail } = options\n let url = options.url\n const params: any = {}\n const res: any = {}\n if (options.jsonp) {\n Object.assign(params, options)\n params.params = options.data\n params.cache = options.jsonpCache\n if (typeof options.jsonp === 'string') {\n params.name = options.jsonp\n }\n delete params.jsonp\n return jsonpRetry(url, params)\n .then(data => {\n res.statusCode = 200\n res.data = data\n isFunction(success) && success(res)\n isFunction(complete) && complete(res)\n return res\n })\n .catch(err => {\n isFunction(fail) && fail(err)\n isFunction(complete) && complete(res)\n return Promise.reject(err)\n })\n }\n params.method = options.method || 'GET'\n const methodUpper = params.method.toUpperCase()\n params.cache = options.cache || 'default'\n if (methodUpper === 'GET' || methodUpper === 'HEAD') {\n url = generateRequestUrlWithParams(url, options.data)\n } else if (Object.prototype.toString.call(options.data) === '[object Object]') {\n options.header = options.header || {}\n\n const keyOfContentType = Object.keys(options.header).find(item => item.toLowerCase() === 'content-type')\n if (!keyOfContentType) {\n options.header['Content-Type'] = 'application/json'\n }\n const contentType = options.header[keyOfContentType || 'Content-Type']\n\n if (contentType.indexOf('application/json') >= 0) {\n params.body = JSON.stringify(options.data)\n } else if (contentType.indexOf('application/x-www-form-urlencoded') >= 0) {\n params.body = serializeParams(options.data)\n } else {\n params.body = options.data\n }\n } else {\n params.body = options.data\n }\n if (options.header) {\n params.headers = options.header\n }\n if (options.mode) {\n params.mode = options.mode\n }\n let timeoutTimer: ReturnType<typeof setTimeout> | null = null\n if (options.signal) {\n params.signal = options.signal\n } else if (typeof options.timeout === 'number') {\n const controller = new window.AbortController()\n params.signal = controller.signal\n timeoutTimer = setTimeout(function () {\n controller.abort()\n }, options.timeout)\n }\n params.credentials = options.credentials\n return fetch(url, params)\n .then(response => {\n if (timeoutTimer) {\n clearTimeout(timeoutTimer)\n timeoutTimer = null\n }\n if (!response) {\n const errorResponse = { ok: false }\n throw errorResponse\n }\n res.statusCode = response.status\n res.header = {}\n for (const key of response.headers.keys()) {\n res.header[key] = response.headers.get(key)\n }\n if (options.responseType === 'arraybuffer') {\n return response.arrayBuffer()\n }\n if (res.statusCode !== 204) {\n if (options.dataType === 'json' || typeof options.dataType === 'undefined') {\n return response.json().catch(() => {\n return null\n })\n }\n }\n if (options.responseType === 'text' || options.dataType === 'text') {\n return response.text()\n }\n return Promise.resolve(null)\n })\n .then(data => {\n res.data = data\n isFunction(success) && success(res)\n isFunction(complete) && complete(res)\n return res\n })\n .catch(err => {\n if (timeoutTimer) {\n clearTimeout(timeoutTimer)\n timeoutTimer = null\n }\n isFunction(fail) && fail(err)\n isFunction(complete) && complete(res)\n err.statusCode = res.statusCode\n err.errMsg = err.message\n return Promise.reject(err)\n })\n}\n\nfunction taroInterceptor (chain) {\n return _request(chain.requestParams)\n}\n\nconst link = new Link(taroInterceptor)\n\nexport const request: typeof Taro.request = link.request.bind(link)\nexport const addInterceptor = link.addInterceptor.bind(link)\nexport const cleanInterceptors = link.cleanInterceptors.bind(link)\n"],"names":[],"mappings":";;;;;;;AASA;AACA,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAA;AAErB,SAAS,4BAA4B,CAAE,GAAW,EAAE,MAAgB,EAAA;AAClE,IAAA,MAAM,GAAG,OAAO,MAAM,KAAK,QAAQ,GAAG,MAAM,GAAG,eAAe,CAAC,MAAM,CAAC,CAAA;AACtE,IAAA,IAAI,MAAM,EAAE;QACV,GAAG,IAAI,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG,IAAI,MAAM,CAAA;AAChD,KAAA;IACD,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAA;AAC5B,IAAA,OAAO,GAAG,CAAA;AACZ,CAAC;AAED;AACA,SAAS,QAAQ,CAAE,OAAO,EAAA;AACxB,IAAA,OAAO,GAAG,OAAO,IAAI,EAAE,CAAA;AACvB,IAAA,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE;AAC/B,QAAA,OAAO,GAAG;AACR,YAAA,GAAG,EAAE,OAAO;SACb,CAAA;AACF,KAAA;IACD,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,OAAO,CAAA;AAC3C,IAAA,IAAI,GAAG,GAAG,OAAO,CAAC,GAAG,CAAA;IACrB,MAAM,MAAM,GAAQ,EAAE,CAAA;IACtB,MAAM,GAAG,GAAQ,EAAE,CAAA;IACnB,IAAI,OAAO,CAAC,KAAK,EAAE;AACjB,QAAA,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAC9B,QAAA,MAAM,CAAC,MAAM,GAAG,OAAO,CAAC,IAAI,CAAA;AAC5B,QAAA,MAAM,CAAC,KAAK,GAAG,OAAO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,CAAA;AACN,CAAC;AAED,SAAS,eAAe,CAAE,KAAK,EAAA;AAC7B,IAAA,OAAO,QAAQ,CAAC,KAAK,CAAC,aAAa,CAAC,CAAA;AACtC,CAAC;AAED,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,eAAe,CAAC,CAAA;AAE/B,MAAM,OAAO,GAAwB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAC;AAC5D,MAAM,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,EAAC;AACrD,MAAM,iBAAiB,GAAG,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/api/network/request/index.ts"],"sourcesContent":["import 'whatwg-fetch'\nimport 'abortcontroller-polyfill/dist/abortcontroller-polyfill-only'\n\nimport Taro from '@tarojs/api'\nimport { isFunction } from '@tarojs/shared'\nimport jsonpRetry from 'jsonp-retry'\n\nimport { serializeParams } from '../../../utils'\n\n// @ts-ignore\nconst { Link } = Taro\n\nfunction generateRequestUrlWithParams (url = '', params?: unknown) {\n params = typeof params === 'string' ? params : serializeParams(params)\n if (params) {\n url += (~url.indexOf('?') ? '&' : '?') + params\n }\n url = url.replace('?&', '?')\n return url\n}\n\nfunction _request (options: Partial<Taro.request.Option> = {}) {\n const { success, complete, fail } = options\n let url = options.url || ''\n const params: RequestInit = {}\n const res: any = {}\n if (options.jsonp) {\n const { jsonp, ...opts } = options\n Object.assign(params, opts)\n // @ts-ignore\n params.params = opts.data\n params.cache = opts.jsonpCache\n if (typeof jsonp === 'string') {\n // @ts-ignore\n params.name = jsonp\n }\n return jsonpRetry(url, params)\n .then(data => {\n res.statusCode = 200\n res.data = data\n isFunction(success) && success(res)\n isFunction(complete) && complete(res)\n return res\n })\n .catch(err => {\n isFunction(fail) && fail(err)\n isFunction(complete) && complete(res)\n return Promise.reject(err)\n })\n }\n params.method = options.method || 'GET'\n const methodUpper = params.method.toUpperCase()\n params.cache = options.cache || 'default'\n if (methodUpper === 'GET' || methodUpper === 'HEAD') {\n url = generateRequestUrlWithParams(url, options.data)\n } else if (['[object Array]', '[object Object]'].indexOf(Object.prototype.toString.call(options.data)) >= 0) {\n options.header = options.header || {}\n\n const keyOfContentType = Object.keys(options.header).find(item => item.toLowerCase() === 'content-type')\n if (!keyOfContentType) {\n options.header['Content-Type'] = 'application/json'\n }\n const contentType = options.header[keyOfContentType || 'Content-Type']\n\n if (contentType.indexOf('application/json') >= 0) {\n params.body = JSON.stringify(options.data)\n } else if (contentType.indexOf('application/x-www-form-urlencoded') >= 0) {\n params.body = serializeParams(options.data)\n } else {\n params.body = options.data\n }\n } else {\n params.body = options.data\n }\n if (options.header) {\n params.headers = options.header\n }\n if (options.mode) {\n params.mode = options.mode\n }\n let timeoutTimer: ReturnType<typeof setTimeout> | null = null\n if (options.signal) {\n params.signal = options.signal\n } else if (typeof options.timeout === 'number') {\n const controller = new window.AbortController()\n params.signal = controller.signal\n timeoutTimer = setTimeout(function () {\n controller.abort()\n }, options.timeout)\n }\n params.credentials = options.credentials\n return fetch(url, params)\n .then(response => {\n if (timeoutTimer) {\n clearTimeout(timeoutTimer)\n timeoutTimer = null\n }\n if (!response) {\n const errorResponse = { ok: false }\n throw errorResponse\n }\n res.statusCode = response.status\n res.header = {}\n for (const key of response.headers.keys()) {\n res.header[key] = response.headers.get(key)\n }\n if (options.responseType === 'arraybuffer') {\n return response.arrayBuffer()\n }\n if (res.statusCode !== 204) {\n if (options.dataType === 'json' || typeof options.dataType === 'undefined') {\n return response.json().catch(() => {\n return null\n })\n }\n }\n if (options.responseType === 'text' || options.dataType === 'text') {\n return response.text()\n }\n return Promise.resolve(null)\n })\n .then(data => {\n res.data = data\n isFunction(success) && success(res)\n isFunction(complete) && complete(res)\n return res\n })\n .catch(err => {\n if (timeoutTimer) {\n clearTimeout(timeoutTimer)\n timeoutTimer = null\n }\n isFunction(fail) && fail(err)\n isFunction(complete) && complete(res)\n err.statusCode = res.statusCode\n err.errMsg = err.message\n return Promise.reject(err)\n })\n}\n\nfunction taroInterceptor (chain) {\n return _request(chain.requestParams)\n}\n\nconst link = new Link(taroInterceptor)\n\nexport const request = (<T extends Partial<Taro.request.Option> = TaroGeneral.IAnyObject>(...args: [string | T, T]) => {\n const [url = '', options = {} as T] = args\n if (typeof url === 'string') {\n options.url = url\n } else {\n Object.assign(options, url)\n }\n return link.request(options)\n}) as typeof Taro.request\nexport const addInterceptor = link.addInterceptor.bind(link)\nexport const cleanInterceptors = link.cleanInterceptors.bind(link)\n"],"names":[],"mappings":";;;;;;;;AASA;AACA,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAA;AAErB,SAAS,4BAA4B,CAAE,GAAG,GAAG,EAAE,EAAE,MAAgB,EAAA;AAC/D,IAAA,MAAM,GAAG,OAAO,MAAM,KAAK,QAAQ,GAAG,MAAM,GAAG,eAAe,CAAC,MAAM,CAAC,CAAA;AACtE,IAAA,IAAI,MAAM,EAAE;QACV,GAAG,IAAI,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG,IAAI,MAAM,CAAA;AAChD,KAAA;IACD,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAA;AAC5B,IAAA,OAAO,GAAG,CAAA;AACZ,CAAC;AAED,SAAS,QAAQ,CAAE,OAAA,GAAwC,EAAE,EAAA;IAC3D,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,OAAO,CAAA;AAC3C,IAAA,IAAI,GAAG,GAAG,OAAO,CAAC,GAAG,IAAI,EAAE,CAAA;IAC3B,MAAM,MAAM,GAAgB,EAAE,CAAA;IAC9B,MAAM,GAAG,GAAQ,EAAE,CAAA;IACnB,IAAI,OAAO,CAAC,KAAK,EAAE;QACjB,MAAM,EAAE,KAAK,EAAA,GAAc,OAAO,EAAhB,IAAI,GAAA,MAAA,CAAK,OAA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AA;AACrC,QAAA,GAAG,CAAC,UAAU,GAAG,GAAG,CAAC,UAAU,CAAA;AAC/B,QAAA,GAAG,CAAC,MAAM,GAAG,GAAG,CAAC,OAAO,CAAA;AACxB,QAAA,OAAO,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;AAC5B,KAAC,CAAC,CAAA;AACN,CAAC;AAED,SAAS,eAAe,CAAE,KAAK,EAAA;AAC7B,IAAA,OAAO,QAAQ,CAAC,KAAK,CAAC,aAAa,CAAC,CAAA;AACtC,CAAC;AAED,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,eAAe,CAAC,CAAA;MAEzB,OAAO,IAAI,CAAkE,GAAG,IAAqB,KAAI;IACpH,MAAM,CAAC,GAAG,GAAG,EAAE,EAAE,OAAO,GAAG,EAAO,CAAC,GAAG,IAAI,CAAA;AAC1C,IAAA,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;AAC3B,QAAA,OAAO,CAAC,GAAG,GAAG,GAAG,CAAA;AAClB,KAAA;AAAM,SAAA;AACL,QAAA,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,GAAG,CAAC,CAAA;AAC5B,KAAA;AACD,IAAA,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAA;AAC9B,CAAC,EAAwB;AAClB,MAAM,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,EAAC;AACrD,MAAM,iBAAiB,GAAG,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI;;;;"}
@@ -1,7 +1,7 @@
1
1
  import { temporarilyNotSupport } from '../../utils/index.js';
2
2
 
3
3
  // TCP 通信
4
- const createTCPSocket = temporarilyNotSupport('createTCPSocket');
4
+ const createTCPSocket = /* @__PURE__ */ temporarilyNotSupport('createTCPSocket');
5
5
 
6
6
  export { createTCPSocket };
7
7
  //# sourceMappingURL=tcp.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tcp.js","sources":["../../../src/api/network/tcp.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// TCP 通信\nexport const createTCPSocket = temporarilyNotSupport('createTCPSocket')\n"],"names":[],"mappings":";;AAEA;MACa,eAAe,GAAG,qBAAqB,CAAC,iBAAiB;;;;"}
1
+ {"version":3,"file":"tcp.js","sources":["../../../src/api/network/tcp.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// TCP 通信\nexport const createTCPSocket = /* @__PURE__ */ temporarilyNotSupport('createTCPSocket')\n"],"names":[],"mappings":";;AAEA;AACa,MAAA,eAAe,mBAAmB,qBAAqB,CAAC,iBAAiB;;;;"}
@@ -1,7 +1,7 @@
1
1
  import { temporarilyNotSupport } from '../../utils/index.js';
2
2
 
3
3
  // UDP 通信
4
- const createUDPSocket = temporarilyNotSupport('createUDPSocket');
4
+ const createUDPSocket = /* @__PURE__ */ temporarilyNotSupport('createUDPSocket');
5
5
 
6
6
  export { createUDPSocket };
7
7
  //# sourceMappingURL=udp.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"udp.js","sources":["../../../src/api/network/udp.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// UDP 通信\nexport const createUDPSocket = temporarilyNotSupport('createUDPSocket')\n"],"names":[],"mappings":";;AAEA;MACa,eAAe,GAAG,qBAAqB,CAAC,iBAAiB;;;;"}
1
+ {"version":3,"file":"udp.js","sources":["../../../src/api/network/udp.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// UDP 通信\nexport const createUDPSocket = /* @__PURE__ */ temporarilyNotSupport('createUDPSocket')\n"],"names":[],"mappings":";;AAEA;AACa,MAAA,eAAe,mBAAmB,qBAAqB,CAAC,iBAAiB;;;;"}
@@ -1,7 +1,7 @@
1
1
  import { temporarilyNotSupport } from '../../utils/index.js';
2
2
 
3
3
  // 帐号信息
4
- const getAccountInfoSync = temporarilyNotSupport('getAccountInfoSync');
4
+ const getAccountInfoSync = /* @__PURE__ */ temporarilyNotSupport('getAccountInfoSync');
5
5
 
6
6
  export { getAccountInfoSync };
7
7
  //# sourceMappingURL=account.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"account.js","sources":["../../../src/api/open-api/account.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 帐号信息\nexport const getAccountInfoSync = temporarilyNotSupport('getAccountInfoSync')\n"],"names":[],"mappings":";;AAEA;MACa,kBAAkB,GAAG,qBAAqB,CAAC,oBAAoB;;;;"}
1
+ {"version":3,"file":"account.js","sources":["../../../src/api/open-api/account.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 帐号信息\nexport const getAccountInfoSync = /* @__PURE__ */ temporarilyNotSupport('getAccountInfoSync')\n"],"names":[],"mappings":";;AAEA;AACa,MAAA,kBAAkB,mBAAmB,qBAAqB,CAAC,oBAAoB;;;;"}
@@ -1,7 +1,7 @@
1
1
  import { temporarilyNotSupport } from '../../utils/index.js';
2
2
 
3
3
  // 收货地址
4
- const chooseAddress = temporarilyNotSupport('chooseAddress');
4
+ const chooseAddress = /* @__PURE__ */ temporarilyNotSupport('chooseAddress');
5
5
 
6
6
  export { chooseAddress };
7
7
  //# sourceMappingURL=address.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"address.js","sources":["../../../src/api/open-api/address.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 收货地址\nexport const chooseAddress = temporarilyNotSupport('chooseAddress')\n"],"names":[],"mappings":";;AAEA;MACa,aAAa,GAAG,qBAAqB,CAAC,eAAe;;;;"}
1
+ {"version":3,"file":"address.js","sources":["../../../src/api/open-api/address.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 收货地址\nexport const chooseAddress = /* @__PURE__ */ temporarilyNotSupport('chooseAddress')\n"],"names":[],"mappings":";;AAEA;AACa,MAAA,aAAa,mBAAmB,qBAAqB,CAAC,eAAe;;;;"}
@@ -1,8 +1,8 @@
1
1
  import { temporarilyNotSupport } from '../../utils/index.js';
2
2
 
3
3
  // 授权
4
- const authorizeForMiniProgram = temporarilyNotSupport('authorizeForMiniProgram');
5
- const authorize = temporarilyNotSupport('authorize');
4
+ const authorizeForMiniProgram = /* @__PURE__ */ temporarilyNotSupport('authorizeForMiniProgram');
5
+ const authorize = /* @__PURE__ */ temporarilyNotSupport('authorize');
6
6
 
7
7
  export { authorize, authorizeForMiniProgram };
8
8
  //# sourceMappingURL=authorize.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"authorize.js","sources":["../../../src/api/open-api/authorize.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 授权\nexport const authorizeForMiniProgram = temporarilyNotSupport('authorizeForMiniProgram')\nexport const authorize = temporarilyNotSupport('authorize')\n"],"names":[],"mappings":";;AAEA;MACa,uBAAuB,GAAG,qBAAqB,CAAC,yBAAyB,EAAC;MAC1E,SAAS,GAAG,qBAAqB,CAAC,WAAW;;;;"}
1
+ {"version":3,"file":"authorize.js","sources":["../../../src/api/open-api/authorize.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 授权\nexport const authorizeForMiniProgram = /* @__PURE__ */ temporarilyNotSupport('authorizeForMiniProgram')\nexport const authorize = /* @__PURE__ */ temporarilyNotSupport('authorize')\n"],"names":[],"mappings":";;AAEA;AACa,MAAA,uBAAuB,mBAAmB,qBAAqB,CAAC,yBAAyB,EAAC;AAC1F,MAAA,SAAS,mBAAmB,qBAAqB,CAAC,WAAW;;;;"}
@@ -1,8 +1,8 @@
1
1
  import { temporarilyNotSupport } from '../../utils/index.js';
2
2
 
3
3
  // 卡券
4
- const openCard = temporarilyNotSupport('openCard');
5
- const addCard = temporarilyNotSupport('addCard');
4
+ const openCard = /* @__PURE__ */ temporarilyNotSupport('openCard');
5
+ const addCard = /* @__PURE__ */ temporarilyNotSupport('addCard');
6
6
 
7
7
  export { addCard, openCard };
8
8
  //# sourceMappingURL=card.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"card.js","sources":["../../../src/api/open-api/card.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 卡券\nexport const openCard = temporarilyNotSupport('openCard')\nexport const addCard = temporarilyNotSupport('addCard')\n"],"names":[],"mappings":";;AAEA;MACa,QAAQ,GAAG,qBAAqB,CAAC,UAAU,EAAC;MAC5C,OAAO,GAAG,qBAAqB,CAAC,SAAS;;;;"}
1
+ {"version":3,"file":"card.js","sources":["../../../src/api/open-api/card.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 卡券\nexport const openCard = /* @__PURE__ */ temporarilyNotSupport('openCard')\nexport const addCard = /* @__PURE__ */ temporarilyNotSupport('addCard')\n"],"names":[],"mappings":";;AAEA;AACa,MAAA,QAAQ,mBAAmB,qBAAqB,CAAC,UAAU,EAAC;AAC5D,MAAA,OAAO,mBAAmB,qBAAqB,CAAC,SAAS;;;;"}
@@ -1,12 +1,12 @@
1
1
  import { temporarilyNotSupport } from '../../utils/index.js';
2
2
 
3
3
  // 视频号
4
- const reserveChannelsLive = temporarilyNotSupport('reserveChannelsLive');
5
- const openChannelsLive = temporarilyNotSupport('openChannelsLive');
6
- const openChannelsEvent = temporarilyNotSupport('openChannelsEvent');
7
- const openChannelsActivity = temporarilyNotSupport('openChannelsActivity');
8
- const getChannelsLiveNoticeInfo = temporarilyNotSupport('getChannelsLiveNoticeInfo');
9
- const getChannelsLiveInfo = temporarilyNotSupport('getChannelsLiveInfo');
4
+ const reserveChannelsLive = /* @__PURE__ */ temporarilyNotSupport('reserveChannelsLive');
5
+ const openChannelsLive = /* @__PURE__ */ temporarilyNotSupport('openChannelsLive');
6
+ const openChannelsEvent = /* @__PURE__ */ temporarilyNotSupport('openChannelsEvent');
7
+ const openChannelsActivity = /* @__PURE__ */ temporarilyNotSupport('openChannelsActivity');
8
+ const getChannelsLiveNoticeInfo = /* @__PURE__ */ temporarilyNotSupport('getChannelsLiveNoticeInfo');
9
+ const getChannelsLiveInfo = /* @__PURE__ */ temporarilyNotSupport('getChannelsLiveInfo');
10
10
 
11
11
  export { getChannelsLiveInfo, getChannelsLiveNoticeInfo, openChannelsActivity, openChannelsEvent, openChannelsLive, reserveChannelsLive };
12
12
  //# sourceMappingURL=channels-live.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"channels-live.js","sources":["../../../src/api/open-api/channels-live.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 视频号\nexport const reserveChannelsLive = temporarilyNotSupport('reserveChannelsLive')\nexport const openChannelsLive = temporarilyNotSupport('openChannelsLive')\nexport const openChannelsEvent = temporarilyNotSupport('openChannelsEvent')\nexport const openChannelsActivity = temporarilyNotSupport('openChannelsActivity')\nexport const getChannelsLiveNoticeInfo = temporarilyNotSupport('getChannelsLiveNoticeInfo')\nexport const getChannelsLiveInfo = temporarilyNotSupport('getChannelsLiveInfo')\n"],"names":[],"mappings":";;AAEA;MACa,mBAAmB,GAAG,qBAAqB,CAAC,qBAAqB,EAAC;MAClE,gBAAgB,GAAG,qBAAqB,CAAC,kBAAkB,EAAC;MAC5D,iBAAiB,GAAG,qBAAqB,CAAC,mBAAmB,EAAC;MAC9D,oBAAoB,GAAG,qBAAqB,CAAC,sBAAsB,EAAC;MACpE,yBAAyB,GAAG,qBAAqB,CAAC,2BAA2B,EAAC;MAC9E,mBAAmB,GAAG,qBAAqB,CAAC,qBAAqB;;;;"}
1
+ {"version":3,"file":"channels-live.js","sources":["../../../src/api/open-api/channels-live.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 视频号\nexport const reserveChannelsLive = /* @__PURE__ */ temporarilyNotSupport('reserveChannelsLive')\nexport const openChannelsLive = /* @__PURE__ */ temporarilyNotSupport('openChannelsLive')\nexport const openChannelsEvent = /* @__PURE__ */ temporarilyNotSupport('openChannelsEvent')\nexport const openChannelsActivity = /* @__PURE__ */ temporarilyNotSupport('openChannelsActivity')\nexport const getChannelsLiveNoticeInfo = /* @__PURE__ */ temporarilyNotSupport('getChannelsLiveNoticeInfo')\nexport const getChannelsLiveInfo = /* @__PURE__ */ temporarilyNotSupport('getChannelsLiveInfo')\n"],"names":[],"mappings":";;AAEA;AACa,MAAA,mBAAmB,mBAAmB,qBAAqB,CAAC,qBAAqB,EAAC;AAClF,MAAA,gBAAgB,mBAAmB,qBAAqB,CAAC,kBAAkB,EAAC;AAC5E,MAAA,iBAAiB,mBAAmB,qBAAqB,CAAC,mBAAmB,EAAC;AAC9E,MAAA,oBAAoB,mBAAmB,qBAAqB,CAAC,sBAAsB,EAAC;AACpF,MAAA,yBAAyB,mBAAmB,qBAAqB,CAAC,2BAA2B,EAAC;AAC9F,MAAA,mBAAmB,mBAAmB,qBAAqB,CAAC,qBAAqB;;;;"}
@@ -1,7 +1,7 @@
1
1
  import { temporarilyNotSupport } from '../../utils/index.js';
2
2
 
3
3
  // 微信客服
4
- const openCustomerServiceChat = temporarilyNotSupport('openCustomerServiceChat');
4
+ const openCustomerServiceChat = /* @__PURE__ */ temporarilyNotSupport('openCustomerServiceChat');
5
5
 
6
6
  export { openCustomerServiceChat };
7
7
  //# sourceMappingURL=customer-service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"customer-service.js","sources":["../../../src/api/open-api/customer-service.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 微信客服\nexport const openCustomerServiceChat = temporarilyNotSupport('openCustomerServiceChat')\n"],"names":[],"mappings":";;AAEA;MACa,uBAAuB,GAAG,qBAAqB,CAAC,yBAAyB;;;;"}
1
+ {"version":3,"file":"customer-service.js","sources":["../../../src/api/open-api/customer-service.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 微信客服\nexport const openCustomerServiceChat = /* @__PURE__ */ temporarilyNotSupport('openCustomerServiceChat')\n"],"names":[],"mappings":";;AAEA;AACa,MAAA,uBAAuB,mBAAmB,qBAAqB,CAAC,yBAAyB;;;;"}
@@ -1,10 +1,10 @@
1
1
  import { temporarilyNotSupport } from '../../utils/index.js';
2
2
 
3
3
  // 过往接口
4
- const checkIsSupportFacialRecognition = temporarilyNotSupport('checkIsSupportFacialRecognition');
5
- const startFacialRecognitionVerify = temporarilyNotSupport('startFacialRecognitionVerify');
6
- const startFacialRecognitionVerifyAndUploadVideo = temporarilyNotSupport('startFacialRecognitionVerifyAndUploadVideo');
7
- const faceVerifyForPay = temporarilyNotSupport('faceVerifyForPay');
4
+ const checkIsSupportFacialRecognition = /* @__PURE__ */ temporarilyNotSupport('checkIsSupportFacialRecognition');
5
+ const startFacialRecognitionVerify = /* @__PURE__ */ temporarilyNotSupport('startFacialRecognitionVerify');
6
+ const startFacialRecognitionVerifyAndUploadVideo = /* @__PURE__ */ temporarilyNotSupport('startFacialRecognitionVerifyAndUploadVideo');
7
+ const faceVerifyForPay = /* @__PURE__ */ temporarilyNotSupport('faceVerifyForPay');
8
8
 
9
9
  export { checkIsSupportFacialRecognition, faceVerifyForPay, startFacialRecognitionVerify, startFacialRecognitionVerifyAndUploadVideo };
10
10
  //# sourceMappingURL=facial.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"facial.js","sources":["../../../src/api/open-api/facial.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 过往接口\nexport const checkIsSupportFacialRecognition = temporarilyNotSupport('checkIsSupportFacialRecognition')\nexport const startFacialRecognitionVerify = temporarilyNotSupport('startFacialRecognitionVerify')\nexport const startFacialRecognitionVerifyAndUploadVideo = temporarilyNotSupport('startFacialRecognitionVerifyAndUploadVideo')\nexport const faceVerifyForPay = temporarilyNotSupport('faceVerifyForPay')\n"],"names":[],"mappings":";;AAEA;MACa,+BAA+B,GAAG,qBAAqB,CAAC,iCAAiC,EAAC;MAC1F,4BAA4B,GAAG,qBAAqB,CAAC,8BAA8B,EAAC;MACpF,0CAA0C,GAAG,qBAAqB,CAAC,4CAA4C,EAAC;MAChH,gBAAgB,GAAG,qBAAqB,CAAC,kBAAkB;;;;"}
1
+ {"version":3,"file":"facial.js","sources":["../../../src/api/open-api/facial.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 过往接口\nexport const checkIsSupportFacialRecognition = /* @__PURE__ */ temporarilyNotSupport('checkIsSupportFacialRecognition')\nexport const startFacialRecognitionVerify = /* @__PURE__ */ temporarilyNotSupport('startFacialRecognitionVerify')\nexport const startFacialRecognitionVerifyAndUploadVideo = /* @__PURE__ */ temporarilyNotSupport('startFacialRecognitionVerifyAndUploadVideo')\nexport const faceVerifyForPay = /* @__PURE__ */ temporarilyNotSupport('faceVerifyForPay')\n"],"names":[],"mappings":";;AAEA;AACa,MAAA,+BAA+B,mBAAmB,qBAAqB,CAAC,iCAAiC,EAAC;AAC1G,MAAA,4BAA4B,mBAAmB,qBAAqB,CAAC,8BAA8B,EAAC;AACpG,MAAA,0CAA0C,mBAAmB,qBAAqB,CAAC,4CAA4C,EAAC;AAChI,MAAA,gBAAgB,mBAAmB,qBAAqB,CAAC,kBAAkB;;;;"}
@@ -1,9 +1,9 @@
1
1
  import { temporarilyNotSupport } from '../../utils/index.js';
2
2
 
3
3
  // 收藏
4
- const addVideoToFavorites = temporarilyNotSupport('addVideoToFavorites');
5
- const addFileToFavorites = temporarilyNotSupport('addFileToFavorites');
6
- const checkIsAddedToMyMiniProgram = temporarilyNotSupport('checkIsAddedToMyMiniProgram');
4
+ const addVideoToFavorites = /* @__PURE__ */ temporarilyNotSupport('addVideoToFavorites');
5
+ const addFileToFavorites = /* @__PURE__ */ temporarilyNotSupport('addFileToFavorites');
6
+ const checkIsAddedToMyMiniProgram = /* @__PURE__ */ temporarilyNotSupport('checkIsAddedToMyMiniProgram');
7
7
 
8
8
  export { addFileToFavorites, addVideoToFavorites, checkIsAddedToMyMiniProgram };
9
9
  //# sourceMappingURL=favorites.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"favorites.js","sources":["../../../src/api/open-api/favorites.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 收藏\nexport const addVideoToFavorites = temporarilyNotSupport('addVideoToFavorites')\nexport const addFileToFavorites = temporarilyNotSupport('addFileToFavorites')\nexport const checkIsAddedToMyMiniProgram = temporarilyNotSupport('checkIsAddedToMyMiniProgram')\n"],"names":[],"mappings":";;AAEA;MACa,mBAAmB,GAAG,qBAAqB,CAAC,qBAAqB,EAAC;MAClE,kBAAkB,GAAG,qBAAqB,CAAC,oBAAoB,EAAC;MAChE,2BAA2B,GAAG,qBAAqB,CAAC,6BAA6B;;;;"}
1
+ {"version":3,"file":"favorites.js","sources":["../../../src/api/open-api/favorites.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 收藏\nexport const addVideoToFavorites = /* @__PURE__ */ temporarilyNotSupport('addVideoToFavorites')\nexport const addFileToFavorites = /* @__PURE__ */ temporarilyNotSupport('addFileToFavorites')\nexport const checkIsAddedToMyMiniProgram = /* @__PURE__ */ temporarilyNotSupport('checkIsAddedToMyMiniProgram')\n"],"names":[],"mappings":";;AAEA;AACa,MAAA,mBAAmB,mBAAmB,qBAAqB,CAAC,qBAAqB,EAAC;AAClF,MAAA,kBAAkB,mBAAmB,qBAAqB,CAAC,oBAAoB,EAAC;AAChF,MAAA,2BAA2B,mBAAmB,qBAAqB,CAAC,6BAA6B;;;;"}
@@ -1,7 +1,7 @@
1
1
  import { temporarilyNotSupport } from '../../utils/index.js';
2
2
 
3
3
  // 微信群
4
- const getGroupEnterInfo = temporarilyNotSupport('getGroupEnterInfo');
4
+ const getGroupEnterInfo = /* @__PURE__ */ temporarilyNotSupport('getGroupEnterInfo');
5
5
 
6
6
  export { getGroupEnterInfo };
7
7
  //# sourceMappingURL=group.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"group.js","sources":["../../../src/api/open-api/group.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 微信群\nexport const getGroupEnterInfo = temporarilyNotSupport('getGroupEnterInfo')\n"],"names":[],"mappings":";;AAEA;MACa,iBAAiB,GAAG,qBAAqB,CAAC,mBAAmB;;;;"}
1
+ {"version":3,"file":"group.js","sources":["../../../src/api/open-api/group.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 微信群\nexport const getGroupEnterInfo = /* @__PURE__ */ temporarilyNotSupport('getGroupEnterInfo')\n"],"names":[],"mappings":";;AAEA;AACa,MAAA,iBAAiB,mBAAmB,qBAAqB,CAAC,mBAAmB;;;;"}
@@ -13,7 +13,7 @@ export { checkSession, login, pluginLogin } from './login.js';
13
13
  export { showRedPackage } from './red-package.js';
14
14
  export { getSetting, openSetting } from './settings.js';
15
15
  export { checkIsSoterEnrolledInDevice, checkIsSupportSoterAuthentication, startSoterAuthentication } from './soter.js';
16
- export { requestSubscribeMessage } from './subscribe-message.js';
16
+ export { requestSubscribeDeviceMessage, requestSubscribeMessage } from './subscribe-message.js';
17
17
  export { getUserInfo, getUserProfile } from './user-info.js';
18
18
  export { getWeRunData, shareToWeRun } from './werun.js';
19
19
  //# sourceMappingURL=index.js.map
@@ -1,8 +1,8 @@
1
1
  import { temporarilyNotSupport } from '../../utils/index.js';
2
2
 
3
3
  // 发票
4
- const chooseInvoiceTitle = temporarilyNotSupport('chooseInvoiceTitle');
5
- const chooseInvoice = temporarilyNotSupport('chooseInvoice');
4
+ const chooseInvoiceTitle = /* @__PURE__ */ temporarilyNotSupport('chooseInvoiceTitle');
5
+ const chooseInvoice = /* @__PURE__ */ temporarilyNotSupport('chooseInvoice');
6
6
 
7
7
  export { chooseInvoice, chooseInvoiceTitle };
8
8
  //# sourceMappingURL=invoice.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"invoice.js","sources":["../../../src/api/open-api/invoice.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 发票\nexport const chooseInvoiceTitle = temporarilyNotSupport('chooseInvoiceTitle')\nexport const chooseInvoice = temporarilyNotSupport('chooseInvoice')\n"],"names":[],"mappings":";;AAEA;MACa,kBAAkB,GAAG,qBAAqB,CAAC,oBAAoB,EAAC;MAChE,aAAa,GAAG,qBAAqB,CAAC,eAAe;;;;"}
1
+ {"version":3,"file":"invoice.js","sources":["../../../src/api/open-api/invoice.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 发票\nexport const chooseInvoiceTitle = /* @__PURE__ */ temporarilyNotSupport('chooseInvoiceTitle')\nexport const chooseInvoice = /* @__PURE__ */ temporarilyNotSupport('chooseInvoice')\n"],"names":[],"mappings":";;AAEA;AACa,MAAA,kBAAkB,mBAAmB,qBAAqB,CAAC,oBAAoB,EAAC;AAChF,MAAA,aAAa,mBAAmB,qBAAqB,CAAC,eAAe;;;;"}
@@ -1,7 +1,7 @@
1
1
  import { temporarilyNotSupport } from '../../utils/index.js';
2
2
 
3
3
  // 车牌
4
- const chooseLicensePlate = temporarilyNotSupport('chooseLicensePlate');
4
+ const chooseLicensePlate = /* @__PURE__ */ temporarilyNotSupport('chooseLicensePlate');
5
5
 
6
6
  export { chooseLicensePlate };
7
7
  //# sourceMappingURL=license-plate.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"license-plate.js","sources":["../../../src/api/open-api/license-plate.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 车牌\nexport const chooseLicensePlate = temporarilyNotSupport('chooseLicensePlate')\n"],"names":[],"mappings":";;AAEA;MACa,kBAAkB,GAAG,qBAAqB,CAAC,oBAAoB;;;;"}
1
+ {"version":3,"file":"license-plate.js","sources":["../../../src/api/open-api/license-plate.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 车牌\nexport const chooseLicensePlate = /* @__PURE__ */ temporarilyNotSupport('chooseLicensePlate')\n"],"names":[],"mappings":";;AAEA;AACa,MAAA,kBAAkB,mBAAmB,qBAAqB,CAAC,oBAAoB;;;;"}
@@ -1,9 +1,9 @@
1
1
  import { temporarilyNotSupport } from '../../utils/index.js';
2
2
 
3
3
  // 帐号信息
4
- const pluginLogin = temporarilyNotSupport('pluginLogin');
5
- const login = temporarilyNotSupport('login');
6
- const checkSession = temporarilyNotSupport('checkSession');
4
+ const pluginLogin = /* @__PURE__ */ temporarilyNotSupport('pluginLogin');
5
+ const login = /* @__PURE__ */ temporarilyNotSupport('login');
6
+ const checkSession = /* @__PURE__ */ temporarilyNotSupport('checkSession');
7
7
 
8
8
  export { checkSession, login, pluginLogin };
9
9
  //# sourceMappingURL=login.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"login.js","sources":["../../../src/api/open-api/login.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 帐号信息\nexport const pluginLogin = temporarilyNotSupport('pluginLogin')\nexport const login = temporarilyNotSupport('login')\nexport const checkSession = temporarilyNotSupport('checkSession')\n"],"names":[],"mappings":";;AAEA;MACa,WAAW,GAAG,qBAAqB,CAAC,aAAa,EAAC;MAClD,KAAK,GAAG,qBAAqB,CAAC,OAAO,EAAC;MACtC,YAAY,GAAG,qBAAqB,CAAC,cAAc;;;;"}
1
+ {"version":3,"file":"login.js","sources":["../../../src/api/open-api/login.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 帐号信息\nexport const pluginLogin = /* @__PURE__ */ temporarilyNotSupport('pluginLogin')\nexport const login = /* @__PURE__ */ temporarilyNotSupport('login')\nexport const checkSession = /* @__PURE__ */ temporarilyNotSupport('checkSession')\n"],"names":[],"mappings":";;AAEA;AACa,MAAA,WAAW,mBAAmB,qBAAqB,CAAC,aAAa,EAAC;AAClE,MAAA,KAAK,mBAAmB,qBAAqB,CAAC,OAAO,EAAC;AACtD,MAAA,YAAY,mBAAmB,qBAAqB,CAAC,cAAc;;;;"}
@@ -1,7 +1,7 @@
1
1
  import { temporarilyNotSupport } from '../../utils/index.js';
2
2
 
3
3
  // 微信红包
4
- const showRedPackage = temporarilyNotSupport('showRedPackage');
4
+ const showRedPackage = /* @__PURE__ */ temporarilyNotSupport('showRedPackage');
5
5
 
6
6
  export { showRedPackage };
7
7
  //# sourceMappingURL=red-package.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"red-package.js","sources":["../../../src/api/open-api/red-package.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 微信红包\nexport const showRedPackage = temporarilyNotSupport('showRedPackage')\n"],"names":[],"mappings":";;AAEA;MACa,cAAc,GAAG,qBAAqB,CAAC,gBAAgB;;;;"}
1
+ {"version":3,"file":"red-package.js","sources":["../../../src/api/open-api/red-package.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 微信红包\nexport const showRedPackage = /* @__PURE__ */ temporarilyNotSupport('showRedPackage')\n"],"names":[],"mappings":";;AAEA;AACa,MAAA,cAAc,mBAAmB,qBAAqB,CAAC,gBAAgB;;;;"}
@@ -1,8 +1,8 @@
1
1
  import { temporarilyNotSupport } from '../../utils/index.js';
2
2
 
3
3
  // 设置
4
- const openSetting = temporarilyNotSupport('openSetting');
5
- const getSetting = temporarilyNotSupport('getSetting');
4
+ const openSetting = /* @__PURE__ */ temporarilyNotSupport('openSetting');
5
+ const getSetting = /* @__PURE__ */ temporarilyNotSupport('getSetting');
6
6
 
7
7
  export { getSetting, openSetting };
8
8
  //# sourceMappingURL=settings.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"settings.js","sources":["../../../src/api/open-api/settings.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 设置\nexport const openSetting = temporarilyNotSupport('openSetting')\nexport const getSetting = temporarilyNotSupport('getSetting')\n"],"names":[],"mappings":";;AAEA;MACa,WAAW,GAAG,qBAAqB,CAAC,aAAa,EAAC;MAClD,UAAU,GAAG,qBAAqB,CAAC,YAAY;;;;"}
1
+ {"version":3,"file":"settings.js","sources":["../../../src/api/open-api/settings.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 设置\nexport const openSetting = /* @__PURE__ */ temporarilyNotSupport('openSetting')\nexport const getSetting = /* @__PURE__ */ temporarilyNotSupport('getSetting')\n"],"names":[],"mappings":";;AAEA;AACa,MAAA,WAAW,mBAAmB,qBAAqB,CAAC,aAAa,EAAC;AAClE,MAAA,UAAU,mBAAmB,qBAAqB,CAAC,YAAY;;;;"}
@@ -1,9 +1,9 @@
1
1
  import { temporarilyNotSupport } from '../../utils/index.js';
2
2
 
3
3
  // 生物认证
4
- const startSoterAuthentication = temporarilyNotSupport('startSoterAuthentication');
5
- const checkIsSupportSoterAuthentication = temporarilyNotSupport('checkIsSupportSoterAuthentication');
6
- const checkIsSoterEnrolledInDevice = temporarilyNotSupport('checkIsSoterEnrolledInDevice');
4
+ const startSoterAuthentication = /* @__PURE__ */ temporarilyNotSupport('startSoterAuthentication');
5
+ const checkIsSupportSoterAuthentication = /* @__PURE__ */ temporarilyNotSupport('checkIsSupportSoterAuthentication');
6
+ const checkIsSoterEnrolledInDevice = /* @__PURE__ */ temporarilyNotSupport('checkIsSoterEnrolledInDevice');
7
7
 
8
8
  export { checkIsSoterEnrolledInDevice, checkIsSupportSoterAuthentication, startSoterAuthentication };
9
9
  //# sourceMappingURL=soter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"soter.js","sources":["../../../src/api/open-api/soter.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 生物认证\nexport const startSoterAuthentication = temporarilyNotSupport('startSoterAuthentication')\nexport const checkIsSupportSoterAuthentication = temporarilyNotSupport('checkIsSupportSoterAuthentication')\nexport const checkIsSoterEnrolledInDevice = temporarilyNotSupport('checkIsSoterEnrolledInDevice')\n"],"names":[],"mappings":";;AAEA;MACa,wBAAwB,GAAG,qBAAqB,CAAC,0BAA0B,EAAC;MAC5E,iCAAiC,GAAG,qBAAqB,CAAC,mCAAmC,EAAC;MAC9F,4BAA4B,GAAG,qBAAqB,CAAC,8BAA8B;;;;"}
1
+ {"version":3,"file":"soter.js","sources":["../../../src/api/open-api/soter.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 生物认证\nexport const startSoterAuthentication = /* @__PURE__ */ temporarilyNotSupport('startSoterAuthentication')\nexport const checkIsSupportSoterAuthentication = /* @__PURE__ */ temporarilyNotSupport('checkIsSupportSoterAuthentication')\nexport const checkIsSoterEnrolledInDevice = /* @__PURE__ */ temporarilyNotSupport('checkIsSoterEnrolledInDevice')\n"],"names":[],"mappings":";;AAEA;AACa,MAAA,wBAAwB,mBAAmB,qBAAqB,CAAC,0BAA0B,EAAC;AAC5F,MAAA,iCAAiC,mBAAmB,qBAAqB,CAAC,mCAAmC,EAAC;AAC9G,MAAA,4BAA4B,mBAAmB,qBAAqB,CAAC,8BAA8B;;;;"}
@@ -1,2 +1,3 @@
1
1
  declare const requestSubscribeMessage: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
- export { requestSubscribeMessage };
2
+ declare const requestSubscribeDeviceMessage: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
3
+ export { requestSubscribeMessage, requestSubscribeDeviceMessage };
@@ -1,7 +1,9 @@
1
1
  import { temporarilyNotSupport } from '../../utils/index.js';
2
2
 
3
3
  // 订阅消息
4
- const requestSubscribeMessage = temporarilyNotSupport('requestSubscribeMessage');
4
+ const requestSubscribeMessage = /* @__PURE__ */ temporarilyNotSupport('requestSubscribeMessage');
5
+ // 订阅设备消息
6
+ const requestSubscribeDeviceMessage = /* @__PURE__ */ temporarilyNotSupport('requestSubscribeDeviceMessage');
5
7
 
6
- export { requestSubscribeMessage };
8
+ export { requestSubscribeDeviceMessage, requestSubscribeMessage };
7
9
  //# sourceMappingURL=subscribe-message.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"subscribe-message.js","sources":["../../../src/api/open-api/subscribe-message.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 订阅消息\nexport const requestSubscribeMessage = temporarilyNotSupport('requestSubscribeMessage')\n"],"names":[],"mappings":";;AAEA;MACa,uBAAuB,GAAG,qBAAqB,CAAC,yBAAyB;;;;"}
1
+ {"version":3,"file":"subscribe-message.js","sources":["../../../src/api/open-api/subscribe-message.ts"],"sourcesContent":["import { temporarilyNotSupport } from '../../utils'\n\n// 订阅消息\nexport const requestSubscribeMessage = /* @__PURE__ */ temporarilyNotSupport('requestSubscribeMessage')\n// 订阅设备消息\nexport const requestSubscribeDeviceMessage = /* @__PURE__ */ temporarilyNotSupport('requestSubscribeDeviceMessage')\n"],"names":[],"mappings":";;AAEA;AACa,MAAA,uBAAuB,mBAAmB,qBAAqB,CAAC,yBAAyB,EAAC;AACvG;AACa,MAAA,6BAA6B,mBAAmB,qBAAqB,CAAC,+BAA+B;;;;"}