From 16da8f48c7328c334a5c0d863078fd00257ae6b4 Mon Sep 17 00:00:00 2001 From: Minteck Date: Sun, 8 May 2022 13:18:04 +0200 Subject: Initial commit --- .../node_modules/axios/lib/cancel/CanceledError.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 fetcher/node_modules/axios/lib/cancel/CanceledError.js (limited to 'fetcher/node_modules/axios/lib/cancel/CanceledError.js') diff --git a/fetcher/node_modules/axios/lib/cancel/CanceledError.js b/fetcher/node_modules/axios/lib/cancel/CanceledError.js new file mode 100644 index 0000000..b7ceb02 --- /dev/null +++ b/fetcher/node_modules/axios/lib/cancel/CanceledError.js @@ -0,0 +1,22 @@ +'use strict'; + +var AxiosError = require('../core/AxiosError'); +var utils = require('../utils'); + +/** + * A `CanceledError` is an object that is thrown when an operation is canceled. + * + * @class + * @param {string=} message The message. + */ +function CanceledError(message) { + // eslint-disable-next-line no-eq-null,eqeqeq + AxiosError.call(this, message == null ? 'canceled' : message, AxiosError.ERR_CANCELED); + this.name = 'CanceledError'; +} + +utils.inherits(CanceledError, AxiosError, { + __CANCEL__: true +}); + +module.exports = CanceledError; -- cgit