Add cancel method to fetch mixin.

This commit is contained in:
2025-12-30 23:38:32 +01:00
parent cbc87f72bf
commit cf7fa50e82
2 changed files with 5 additions and 1 deletions

View File

@@ -5,6 +5,10 @@ export const fetchMixin = function(superClass) {
this.__abortControllers = new Map();
}
cancel(method, url) {
return this.__cancelRunningRequest(method, url);
}
get(url, overwrite = true) {
return this.do('GET', url, null, overwrite);
}

View File

@@ -1,6 +1,6 @@
{
"name": "@tp/helpers",
"version": "2.10.2",
"version": "2.10.3",
"description": "",
"main": "closest.js",
"scripts": {