Skip to content
This repository has been archived by the owner on Jun 9, 2021. It is now read-only.

Commit

Permalink
Include statusCode
Browse files Browse the repository at this point in the history
  • Loading branch information
bmancini55 committed Dec 18, 2016
1 parent ef9dc5f commit fa59acc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ function createResult(error, response) {
let flash = getFlash(response);
let validationErrors = getValidationErrors(response);
let result = body;
let statusCode = response.statusCode;
if(result && paging) {
result.paging = paging;
}
Expand All @@ -30,7 +31,9 @@ function createResult(error, response) {
body,
paging,
result,
error
error,
response,
statusCode,
};
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-service-utils",
"version": "1.0.1",
"version": "1.0.2",
"description": "React service utilies to create uniform responses for Flux or Redux",
"main": "dist/index.js",
"scripts": {
Expand Down

0 comments on commit fa59acc

Please sign in to comment.