cerebral-http-bugfix-1210
Version:
HTTP provider for Cerebral 2
25 lines (18 loc) • 588 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
var _utils = require('../utils');
function httpPatchFactory(url) {
var body = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var options = arguments[2];
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), options), path);
}
return httpPatch;
}
exports.default = httpPatchFactory;
//# sourceMappingURL=httpPatch.js.map