@tarojs/plugin-http 3.7.0-alpha.0 → 3.7.0-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/dist/runtime.js +7 -7
- package/package.json +4 -4
package/dist/runtime.js
CHANGED
|
@@ -353,6 +353,13 @@ const STATUS_TEXT_MAP = {
|
|
|
353
353
|
};
|
|
354
354
|
// https://developer.mozilla.org/zh-CN/docs/Web/API/XMLHttpRequest
|
|
355
355
|
class XMLHttpRequest extends Events {
|
|
356
|
+
// 欺骗一些库让其认为是原生的xhr
|
|
357
|
+
static toString() {
|
|
358
|
+
return 'function XMLHttpRequest() { [native code] }';
|
|
359
|
+
}
|
|
360
|
+
toString() {
|
|
361
|
+
return '[object XMLHttpRequest]';
|
|
362
|
+
}
|
|
356
363
|
constructor() {
|
|
357
364
|
super();
|
|
358
365
|
_XMLHttpRequest_instances.add(this);
|
|
@@ -401,13 +408,6 @@ class XMLHttpRequest extends Events {
|
|
|
401
408
|
__classPrivateFieldSet(this, _XMLHttpRequest_withCredentials, true, "f");
|
|
402
409
|
__classPrivateFieldSet(this, _XMLHttpRequest_requestTask, null, "f");
|
|
403
410
|
}
|
|
404
|
-
// 欺骗一些库让其认为是原生的xhr
|
|
405
|
-
static toString() {
|
|
406
|
-
return 'function XMLHttpRequest() { [native code] }';
|
|
407
|
-
}
|
|
408
|
-
toString() {
|
|
409
|
-
return '[object XMLHttpRequest]';
|
|
410
|
-
}
|
|
411
411
|
addEventListener(event, callback) {
|
|
412
412
|
if (!isString(event))
|
|
413
413
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/plugin-http",
|
|
3
|
-
"version": "3.7.0-alpha.
|
|
3
|
+
"version": "3.7.0-alpha.1",
|
|
4
4
|
"description": "Taro 小程序端支持使用 web 请求 的插件",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"files": [
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
},
|
|
24
24
|
"homepage": "https://github.com/NervJS/taro#readme",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@tarojs/runtime": "3.7.0-alpha.
|
|
27
|
-
"@tarojs/service": "3.7.0-alpha.
|
|
28
|
-
"@tarojs/shared": "3.7.0-alpha.
|
|
26
|
+
"@tarojs/runtime": "3.7.0-alpha.1",
|
|
27
|
+
"@tarojs/service": "3.7.0-alpha.1",
|
|
28
|
+
"@tarojs/shared": "3.7.0-alpha.1"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@rollup/plugin-json": "^4.1.0",
|