UNPKG

dots-wrapper

Version:

Digital Ocean v2 api wrapper - javascript - typescript - nodejs

11 lines 423 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.rebuildDroplet = void 0; const rebuildDroplet = ({ httpClient, }) => ({ droplet_id, image, }) => { const url = `/droplets/${droplet_id}/actions`; const type = 'rebuild'; const body = { image, type }; return httpClient.post(url, body); }; exports.rebuildDroplet = rebuildDroplet; //# sourceMappingURL=rebuild-droplet.js.map