diff --git a/fetch-mixin.js b/fetch-mixin.js index b3d75e9..c581bb2 100644 --- a/fetch-mixin.js +++ b/fetch-mixin.js @@ -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); } diff --git a/package.json b/package.json index f81b149..9b3c964 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tp/helpers", - "version": "2.10.2", + "version": "2.10.3", "description": "", "main": "closest.js", "scripts": {