perimeterx-node-core-ts
Advanced tools
Comparing version 1.0.20 to 1.0.21
@@ -30,5 +30,5 @@ "use strict"; | ||
const pxUtils = __importStar(require("./pxutils")); | ||
const templates_1 = require("../templates"); | ||
const index_1 = require("../templates/index"); | ||
const renderPage = (blockData, pxConfig) => { | ||
let htmlTemplate = pxConfig.px_custom_challenge_page || templates_1.CAPTCHA_TEMPLATE; | ||
let htmlTemplate = pxConfig.px_custom_challenge_page || index_1.CAPTCHA_TEMPLATE; | ||
if (!blockData) { | ||
@@ -140,3 +140,3 @@ return htmlTemplate; | ||
status: 429, | ||
body: templates_1.RATE_LIMIT_TEMPLATE, | ||
body: index_1.RATE_LIMIT_TEMPLATE, | ||
headers: { | ||
@@ -143,0 +143,0 @@ 'Content-Type': 'text/html', |
{ | ||
"name": "perimeterx-node-core-ts", | ||
"version": "1.0.20", | ||
"version": "1.0.21", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./dist/cjs/index.js", |
Sorry, the diff of this file is not supported yet