UNPKG

foundry-rpc

Version:
14 lines (13 loc) 363 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var node_fetch_1 = require("node-fetch"); function request(node, body) { return node_fetch_1.default(node, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(body) }); } exports.default = request;