UNPKG

@nestlab/google-recaptcha

Version:
31 lines (30 loc) 762 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RecaptchaConfigRef = void 0; class RecaptchaConfigRef { get valueOf() { return this.value; } constructor(value) { this.value = value; } setSecretKey(secretKey) { this.value.secretKey = secretKey; this.value.enterprise = undefined; return this; } setEnterpriseOptions(options) { this.value.secretKey = undefined; this.value.enterprise = options; return this; } setScore(score) { this.value.score = score; return this; } setSkipIf(skipIf) { this.value.skipIf = skipIf; return this; } } exports.RecaptchaConfigRef = RecaptchaConfigRef;