Skip to content

Commit

Permalink
Merge pull request #57 from PerimeterX/dev
Browse files Browse the repository at this point in the history
Release 1.4.1
  • Loading branch information
Yaron Schwimmer authored Jul 29, 2018
2 parents aa18f65 + bd547bc commit 9dee2a0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
4 changes: 2 additions & 2 deletions lib/pxapi.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit 9dee2a0

Please sign in to comment.