diff options
Diffstat (limited to 'includes/fetcher/node_modules/axios/lib/cancel/Cancel.js')
-rw-r--r-- | includes/fetcher/node_modules/axios/lib/cancel/Cancel.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/includes/fetcher/node_modules/axios/lib/cancel/Cancel.js b/includes/fetcher/node_modules/axios/lib/cancel/Cancel.js new file mode 100644 index 0000000..e0de400 --- /dev/null +++ b/includes/fetcher/node_modules/axios/lib/cancel/Cancel.js @@ -0,0 +1,19 @@ +'use strict'; + +/** + * A `Cancel` is an object that is thrown when an operation is canceled. + * + * @class + * @param {string=} message The message. + */ +function Cancel(message) { + this.message = message; +} + +Cancel.prototype.toString = function toString() { + return 'Cancel' + (this.message ? ': ' + this.message : ''); +}; + +Cancel.prototype.__CANCEL__ = true; + +module.exports = Cancel; |