@fmal/http-service
Version:
A HTTP service - orignally @cerebral/http
23 lines (18 loc) • 542 B
JavaScript
;
exports.__esModule = true;
exports.default = void 0;
var _utils = require("../utils");
function httpPatchFactory(url, body, options) {
if (body === void 0) {
body = {};
}
return function httpPatch(_ref) {
var http = _ref.http,
path = _ref.path,
resolve = _ref.resolve;
return (0, _utils.processResponse)(http.patch(resolve.value(url), resolve.value(body), resolve.value(options)), path);
};
}
var _default = httpPatchFactory;
exports.default = _default;
module.exports = exports.default;