@pokt-network/pocket-js
Version:
Pocket-js core package with the main functionalities to interact with the Pocket Network.
12 lines • 396 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.validateServiceURL = void 0;
/**
* Validates wheter or not a Service URL is valid
* @param serviceURL
*/
function validateServiceURL(serviceURL) {
return serviceURL.protocol === "https:" && !!serviceURL.hostname === true;
}
exports.validateServiceURL = validateServiceURL;
//# sourceMappingURL=url.js.map