@mpxjs/api-proxy 2.8.1 → 2.8.8
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 +2 -2
- package/src/mini/platform/wxToAli.js +12 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mpxjs/api-proxy",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.8",
|
|
4
4
|
"description": "convert miniprogram API at each end",
|
|
5
5
|
"module": "src/index.js",
|
|
6
6
|
"types": "@types/index.d.ts",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"axios": "^0.21.1"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "23a729d198962e2b1d7a5d5672066d39e7271949"
|
|
43
43
|
}
|
|
@@ -95,6 +95,10 @@ const getWxToAliApi = ({ optimize = false }) => {
|
|
|
95
95
|
confirmText: 'buttonText'
|
|
96
96
|
})
|
|
97
97
|
|
|
98
|
+
handleSuccess(opts, res => {
|
|
99
|
+
return changeOpts(res, undefined, { cancel: false, confirm: true })
|
|
100
|
+
})
|
|
101
|
+
|
|
98
102
|
ALI_OBJ.alert(opts)
|
|
99
103
|
}
|
|
100
104
|
},
|
|
@@ -657,6 +661,14 @@ const getWxToAliApi = ({ optimize = false }) => {
|
|
|
657
661
|
|
|
658
662
|
createBLEConnection (options = {}) {
|
|
659
663
|
ALI_OBJ.connectBLEDevice(options)
|
|
664
|
+
},
|
|
665
|
+
|
|
666
|
+
onBLEConnectionStateChange (callback) {
|
|
667
|
+
ALI_OBJ.onBLEConnectionStateChanged(callback)
|
|
668
|
+
},
|
|
669
|
+
|
|
670
|
+
offBLEConnectionStateChange (callback) {
|
|
671
|
+
ALI_OBJ.offBLEConnectionStateChanged(callback)
|
|
660
672
|
}
|
|
661
673
|
}
|
|
662
674
|
}
|