UNPKG

@etherspot/remote-signer

Version:

Etherspot Permissioned Signer SDK - signs the UserOp with SessionKey and sends it to the Bundler

30 lines (28 loc) 624 B
import { isUrl } from "./chunk-3RYDNMDX.mjs"; // src/sdk/dto/validators/is-url.validator.ts import { registerDecorator } from "class-validator"; function IsUrl(validationOptions = {}) { return (object, propertyName) => { registerDecorator({ propertyName, options: { message: `${propertyName} must be url`, ...validationOptions }, name: "isUrl", target: object.constructor, constraints: [], validator: { validate(value) { return isUrl(value); } } }); }; } export { IsUrl }; //# sourceMappingURL=chunk-YAL7IFJI.mjs.map