@tarojs/taro 3.6.35 → 3.6.36-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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/taro",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.36-alpha.1",
|
|
4
4
|
"description": "Taro framework",
|
|
5
5
|
"homepage": "https://github.com/nervjs/taro/tree/master/packages/taro#readme",
|
|
6
6
|
"main": "index.js",
|
|
@@ -21,15 +21,15 @@
|
|
|
21
21
|
"author": "O2Team",
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@tarojs/api": "3.6.
|
|
24
|
+
"@tarojs/api": "3.6.36-alpha.1"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@tarojs/
|
|
28
|
-
"@tarojs/
|
|
27
|
+
"@tarojs/helper": "3.6.36-alpha.1",
|
|
28
|
+
"@tarojs/runtime": "3.6.36-alpha.1"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@tarojs/helper": "~3.6.
|
|
32
|
-
"@tarojs/runtime": "~3.6.
|
|
31
|
+
"@tarojs/helper": "~3.6.36-alpha.1",
|
|
32
|
+
"@tarojs/runtime": "~3.6.36-alpha.1"
|
|
33
33
|
},
|
|
34
34
|
"peerDependenciesMeta": {
|
|
35
35
|
"@types/react": {
|
|
@@ -420,6 +420,9 @@ declare module '../../index' {
|
|
|
420
420
|
): void
|
|
421
421
|
|
|
422
422
|
/** 建立本地作为蓝牙低功耗外围设备的服务端,可创建多个
|
|
423
|
+
*
|
|
424
|
+
* > [用户授权](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/authorize.html):需要 `scope.bluetooth`
|
|
425
|
+
*
|
|
423
426
|
* @supported weapp, jd
|
|
424
427
|
* @see https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-peripheral/wx.createBLEPeripheralServer.html
|
|
425
428
|
*/
|
|
@@ -287,6 +287,8 @@ declare module '../../index' {
|
|
|
287
287
|
): Promise<startBluetoothDevicesDiscovery.Promised>
|
|
288
288
|
|
|
289
289
|
/** 初始化蓝牙模块
|
|
290
|
+
*
|
|
291
|
+
* > [用户授权](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/authorize.html):需要 `scope.bluetooth`
|
|
290
292
|
*
|
|
291
293
|
* **注意**
|
|
292
294
|
* - 其他蓝牙相关 API 必须在 Taro.openBluetoothAdapter 调用之后使用。否则 API 会返回错误(errCode=10000)。
|
|
@@ -359,7 +361,7 @@ declare module '../../index' {
|
|
|
359
361
|
/** 寻找到新设备的事件的回调函数 */
|
|
360
362
|
callback: onBluetoothDeviceFound.Callback,
|
|
361
363
|
): void
|
|
362
|
-
|
|
364
|
+
|
|
363
365
|
/** 取消监听蓝牙适配器状态变化事件
|
|
364
366
|
* @supported weapp, alipay
|
|
365
367
|
* @see https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth/wx.offBluetoothAdapterStateChange.html
|
|
@@ -368,15 +370,15 @@ declare module '../../index' {
|
|
|
368
370
|
/** 蓝牙适配器状态变化事件的回调函数 */
|
|
369
371
|
callback: onBluetoothAdapterStateChange.Callback,
|
|
370
372
|
): void
|
|
371
|
-
|
|
373
|
+
|
|
372
374
|
/** 蓝牙配对接口,仅安卓支持
|
|
373
|
-
*
|
|
375
|
+
*
|
|
374
376
|
* 通常情况下(需要指定 pin 码或者密码时)系统会接管配对流程,直接调用 [Taro.createBLEConnection](/docs/apis/device/bluetooth-ble/createBLEConnection) 即可。该接口只应当在开发者不想让用户手动输入 pin 码且真机验证确认可以正常生效情况下用。
|
|
375
377
|
* @supported weapp
|
|
376
378
|
* @see https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth/wx.makeBluetoothPair.html
|
|
377
379
|
*/
|
|
378
380
|
makeBluetoothPair(option: makeBluetoothPair.Option): Promise<TaroGeneral.CallbackResult>
|
|
379
|
-
|
|
381
|
+
|
|
380
382
|
/** 查询蓝牙设备是否配对,仅安卓支持
|
|
381
383
|
* @supported weapp
|
|
382
384
|
* @see https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth/wx.isBluetoothDevicePaired.html
|
|
@@ -76,6 +76,8 @@ declare module '../../index' {
|
|
|
76
76
|
'scope.camera'?: boolean
|
|
77
77
|
/** 是否授权小程序在后台运行蓝牙,对应接口 [Taro.openBluetoothAdapterBackground](https://developers.weixin.qq.com/miniprogram/dev/api/open-api/setting/(wx.openBluetoothAdapterBackground).html) */
|
|
78
78
|
'scope.bluetoothBackground'?: boolean
|
|
79
|
+
/** 是否授权蓝牙功能,对应接口 [Taro.openBluetoothAdapter](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth/wx.openBluetoothAdapter.html), [Taro.createBLEPeripheralServer](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-peripheral/wx.createBLEPeripheralServer.html) */
|
|
80
|
+
'scope.bluetooth'?: boolean
|
|
79
81
|
}
|
|
80
82
|
|
|
81
83
|
/** 订阅消息设置
|