UNPKG

@xiaohuohumax/x-fetch

Version:
26 lines (20 loc) 707 B
/*! * @xiaohuohumax/x-fetch v0.2.0 * Copyright (c) 2024 xiaohuohumax * MIT License. */ 'use strict'; var xFetchCore = require('@xiaohuohumax/x-fetch-core'); var xFetchPluginRetry = require('@xiaohuohumax/x-fetch-plugin-retry'); var xFetchError = require('@xiaohuohumax/x-fetch-error'); var version = "0.2.0"; const VERSION = version; const XFetch = xFetchCore.XFetch.plugin(xFetchPluginRetry.retryPlugin); exports.VERSION = VERSION; exports.XFetch = XFetch; Object.keys(xFetchError).forEach(function (k) { if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, { enumerable: true, get: function () { return xFetchError[k]; } }); });