From e26bdaeee421a99d44c9bbd8f13a86da9b310a7b Mon Sep 17 00:00:00 2001 From: Johnny Tordgeman Date: Sun, 29 Jul 2018 15:11:34 +0300 Subject: [PATCH 1/2] various fixes (#56) --- lib/pxapi.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pxapi.js b/lib/pxapi.js index 030889ed..5641cd9d 100644 --- a/lib/pxapi.js +++ b/lib/pxapi.js @@ -167,15 +167,15 @@ function isBadRiskScore(res, pxCtx) { } let score = res.score; pxCtx.score = score; + pxCtx.uuid = res.uuid; if (score >= pxConfig.conf.BLOCKING_SCORE) { pxCtx.blockAction = res.action; - pxCtx.uuid = res.uuid; if (res.action === 'j' && res.action_data && res.action_data.body) { pxCtx.blockActionData = res.action_data.body; } return 0; } else { - pxCtx.passReaon = pxConfig.conf.PASS_REASON.S2S; + pxCtx.passReason = pxConfig.conf.PASS_REASON.S2S; return 1; } } From bd547bcf78bcf69f689436cae8dc5d87b167d0d1 Mon Sep 17 00:00:00 2001 From: Johnny Tordgeman Date: Sun, 29 Jul 2018 16:38:46 +0300 Subject: [PATCH 2/2] Version 1.4.1 --- CHANGELOG.md | 4 ++++ README.md | 2 +- package.json | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9575e9cc..c6781e6b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [1.4.1] - 2018-07-29 +### Fixed +- Various fixes regarding page_requested and pass_reason + ## [1.4.0] - 2018-07-11 ### Added - Refactored request module to use Phin.js diff --git a/README.md b/README.md index d07850a3..fd405342 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ [PerimeterX](http://www.perimeterx.com) Shared base for NodeJS enforcers ============================================================= -> Latest stable version: [v1.4.0](https://www.npmjs.com/package/perimeterx-node-core) +> Latest stable version: [v1.4.1](https://www.npmjs.com/package/perimeterx-node-core) This is a shared base implementation for PerimeterX Express enforcer and future NodeJS enforcers. For a fully functioning implementation example, see the [Node-Express enforcer](https://github.com/PerimeterX/perimeterx-node-express/) implementation. diff --git a/package.json b/package.json index 023fac69..20cc8b13 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "perimeterx-node-core", - "version": "1.4.0", + "version": "1.4.1", "description": "PerimeterX NodeJS shared core for various applications to monitor and block traffic according to PerimeterX risk score", "main": "index.js", "scripts": {