@mpxjs/api-proxy 2.9.26 → 2.9.27
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": "@mpxjs/api-proxy",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.27",
|
|
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": "^1.6.7"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "3939aaaa7d9be0c86e51da16080a6cd8d7863a1a"
|
|
43
43
|
}
|
|
@@ -23,8 +23,12 @@ function createSelectorQuery (options = {}) {
|
|
|
23
23
|
return originalExec.call(this, cb)
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
selectorQuery.in = function () {
|
|
27
|
-
|
|
26
|
+
selectorQuery.in = function (_this) {
|
|
27
|
+
if (typeof _this !== 'object' || typeof _this.createSelectorQuery !== 'function') {
|
|
28
|
+
throw new Error('in 方法中,传入的 this 参数不是组件实例')
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
return _this.createSelectorQuery(options)
|
|
28
32
|
}
|
|
29
33
|
|
|
30
34
|
return selectorQuery
|