zzz-pc-view 0.0.33 → 0.0.34
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
|
@@ -65,4 +65,4 @@ export declare const getByPrototype: <T extends object>(target: T) => undefined
|
|
|
65
65
|
propertyKey: 'name'
|
|
66
66
|
}
|
|
67
67
|
*/
|
|
68
|
-
export declare const getByClass: (Class:
|
|
68
|
+
export declare const getByClass: <T extends ClassType>(Class: T) => undefined | Config<InstanceType<T>>;
|
package/src/index.es.js
CHANGED
|
@@ -1776,7 +1776,16 @@ const useHttpRequestInterval = (request, ms) => {
|
|
|
1776
1776
|
let httpRequestPromise;
|
|
1777
1777
|
const callback = () => {
|
|
1778
1778
|
httpRequestPromise = request();
|
|
1779
|
-
|
|
1779
|
+
let isAbort = false;
|
|
1780
|
+
httpRequestPromise.catch((error) => {
|
|
1781
|
+
if (error.code === ABORTED_CODE) {
|
|
1782
|
+
isAbort = true;
|
|
1783
|
+
}
|
|
1784
|
+
return Promise.reject(error);
|
|
1785
|
+
}).finally(() => {
|
|
1786
|
+
if (isAbort) {
|
|
1787
|
+
return;
|
|
1788
|
+
}
|
|
1780
1789
|
httpRequestPromise = void 0;
|
|
1781
1790
|
});
|
|
1782
1791
|
return httpRequestPromise;
|