angular-captcha
Advanced tools
Comparing version 1.1.0 to 1.2.0
{ | ||
"name": "angular-captcha", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "BotDetect Captcha Angular Module (TypeScript / Angular 2+)", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -67,3 +67,3 @@ "use strict"; | ||
// build BotDetect client-side script include url | ||
var url = this.captchaHelper.buildUrl(this.captchaService.handlerUrl, { | ||
var url = this.captchaHelper.buildUrl(this.captchaService.captchaEndpoint, { | ||
get: 'script-include' | ||
@@ -87,3 +87,3 @@ }); | ||
// build BotDetect init script include url. | ||
var initScriptIncludeUrl = this.captchaHelper.buildUrl(this.captchaService.handlerUrl, { | ||
var initScriptIncludeUrl = this.captchaHelper.buildUrl(this.captchaService.captchaEndpoint, { | ||
get: 'init-script-include', | ||
@@ -90,0 +90,0 @@ c: this.styleName, |
@@ -17,3 +17,3 @@ import { Http } from '@angular/http'; | ||
*/ | ||
readonly handlerUrl: string; | ||
readonly captchaEndpoint: string; | ||
/** | ||
@@ -20,0 +20,0 @@ * Get BotDetect instance, which is provided by BotDetect script. |
@@ -26,3 +26,3 @@ "use strict"; | ||
}); | ||
Object.defineProperty(CaptchaService.prototype, "handlerUrl", { | ||
Object.defineProperty(CaptchaService.prototype, "captchaEndpoint", { | ||
/** | ||
@@ -54,3 +54,3 @@ * The captcha handler url for BotDetect requests. | ||
CaptchaService.prototype.getHtml = function () { | ||
var url = this.captchaHelper.buildUrl(this.handlerUrl, { | ||
var url = this.captchaHelper.buildUrl(this.captchaEndpoint, { | ||
get: 'html', | ||
@@ -57,0 +57,0 @@ c: this.styleName |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
49827