@whitesev/utils 1.4.7 → 1.4.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/dist/index.amd.js +2 -2
- package/dist/index.amd.js.map +1 -1
- package/dist/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +2 -2
- package/dist/index.iife.js.map +1 -1
- package/dist/index.system.js +2 -2
- package/dist/index.system.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/Httpx.ts +2 -2
package/dist/index.amd.js
CHANGED
|
@@ -2125,8 +2125,8 @@ define((function () { 'use strict';
|
|
|
2125
2125
|
if (typeof __xmlHttpRequest__ !== "function") {
|
|
2126
2126
|
console.warn("Httpx未传入GM_xmlhttpRequest函数或传入的GM_xmlhttpRequest不是Function,强制使用window.fetch");
|
|
2127
2127
|
}
|
|
2128
|
-
this.interceptors.request = this;
|
|
2129
|
-
this.interceptors.response = this;
|
|
2128
|
+
this.interceptors.request.context = this;
|
|
2129
|
+
this.interceptors.response.context = this;
|
|
2130
2130
|
this.GM_Api.xmlHttpRequest = __xmlHttpRequest__;
|
|
2131
2131
|
}
|
|
2132
2132
|
/**
|