"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = fetch;
// 第三方依赖
const isFunction_1 = __importDefault(require("lodash/isFunction"));
const cn_ui_common_1 = require("@cainiaofe/cn-ui-common");
const constants_1 = require("../constants");
function fetch(opts) {
    return ((0, isFunction_1.default)(constants_1.globalConfig.request) ? constants_1.globalConfig.request : cn_ui_common_1.packRequest)(opts);
}
