@wepublish/api
Version:
API core for we.publish.
6 lines • 328 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.createSafeHostUrl = void 0;
const createSafeHostUrl = (hostUrl, path) => new URL(path.replace(/^\/+/, ''), hostUrl.replace(/\/+$/, '')).toString();
exports.createSafeHostUrl = createSafeHostUrl;
//# sourceMappingURL=create-safe-host-url.js.map