@portive/client
Version:
Client to connect to and use Portive's cloud services for open source components
13 lines (12 loc) • 502 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.UPLOAD_PATH = exports.DEFAULT_ORIGIN_URL = void 0;
exports.DEFAULT_ORIGIN_URL = "https://api.portive.com";
exports.UPLOAD_PATH = "/api/v1/upload";
/**
* These just protect us from stupid mistakes
*/
if (exports.DEFAULT_ORIGIN_URL.endsWith("/"))
throw new Error(`DEFAULT_ROGIN_URL should not end with a '/'`);
if (!exports.UPLOAD_PATH.startsWith("/"))
throw new Error("UPLOAD_PATH should start with a '/'");