UNPKG

@etherspot/prime-sdk

Version:

Etherspot Prime (Account Abstraction) SDK

17 lines (16 loc) 524 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.isUrl = void 0; const validator_1 = __importDefault(require("validator")); function isUrl(url) { return validator_1.default.isURL(url, { protocols: ['http', 'https'], require_tld: false, require_host: true, require_protocol: true, }); } exports.isUrl = isUrl;