@coding-blocks/jsonapi-server
Advanced tools
Comparing version 5.1.1 to 5.1.2
@@ -8,2 +8,13 @@ - 2017-12-18 - v5.1.1 | ||
- 2017-11-03 - use node >= 8 | ||
- 2017-12-11 - v4.1.2 | ||
- 2017-12-11 - Fix broken response test resource to enable integration with data store handlers. | ||
- 2017-11-15 - v4.1.1 | ||
- 2017-11-15 - Downgrade Joi to a version supported by Node.js v6. | ||
- 2017-11-15 - Force `engine-strict=true` when running npm. | ||
- 2017-11-14 - v4.1.0 | ||
- 2017-11-14 - New configuration option to disable automatic id generation. | ||
- 2017-11-14 - Update GraphQL dependencies to latest versions. | ||
- 2017-11-14 - Remove yarn lockfile. | ||
- 2017-11-03 - v4.0.0 | ||
- 2017-11-03 - Return error when a response item does not validate. | ||
- 2017-11-03 - v4.1.1 | ||
@@ -10,0 +21,0 @@ - 2017-11-03 - use latest graphql and joi |
@@ -57,5 +57,5 @@ ### Suggested Project Structure | ||
attributes: { | ||
title: jsonApi.Joi.string() | ||
url: jsonApi.Joi.string().uri() | ||
height: jsonApi.Joi.number().min(1).max(10000).precision(0) | ||
title: jsonApi.Joi.string(), | ||
url: jsonApi.Joi.string().uri(), | ||
height: jsonApi.Joi.number().min(1).max(10000).precision(0), | ||
width: jsonApi.Joi.number().min(1).max(10000).precision(0) | ||
@@ -62,0 +62,0 @@ } |
@@ -5,2 +5,10 @@ 'use strict' | ||
module.exports = new jsonApi.MemoryHandler() | ||
const brokenResponseHandler = new jsonApi.ChainHandler() | ||
brokenResponseHandler.afterFind = (request, result, callback) => { | ||
result.boolean = Number(result.boolean) | ||
result.number = String(result.number) | ||
return callback(null, result) | ||
} | ||
module.exports = brokenResponseHandler.chain(new jsonApi.MemoryHandler()) |
@@ -20,6 +20,6 @@ 'use strict' | ||
type: 'brokenResponse', | ||
boolean: 1, | ||
number: '3' | ||
boolean: true, | ||
number: 3 | ||
} | ||
] | ||
}) |
{ | ||
"name": "@coding-blocks/jsonapi-server", | ||
"version": "5.1.1", | ||
"version": "5.1.2", | ||
"description": "A config driven NodeJS framework implementing json:api", | ||
@@ -30,3 +30,3 @@ "keywords": [ | ||
"dependencies": { | ||
"async": "2.5.0", | ||
"async": "2.6.0", | ||
"body-parser": "1.18.2", | ||
@@ -38,3 +38,3 @@ "cookie-parser": "1.4.3", | ||
"graphql": "0.11.7", | ||
"joi": "13.0.1", | ||
"joi": "12.0.0", | ||
"lodash.assign": "4.2.0", | ||
@@ -53,3 +53,3 @@ "lodash.isequal": "4.5.0", | ||
"coveralls": "3.0.0", | ||
"eslint": "4.10.0", | ||
"eslint": "4.13.1", | ||
"eslint-config-standard": "10.2.1", | ||
@@ -60,3 +60,3 @@ "eslint-plugin-import": "2.8.0", | ||
"eslint-plugin-standard": "3.0.1", | ||
"jscpd": "0.6.15", | ||
"jscpd": "0.6.17", | ||
"lokka": "1.7.0", | ||
@@ -66,4 +66,4 @@ "lokka-transport-http": "1.6.1", | ||
"mocha-performance": "0.1.1", | ||
"nyc": "11.2.1", | ||
"swagger-tools": "0.9.11", | ||
"nyc": "11.3.0", | ||
"swagger-tools": "0.10.3", | ||
"v8-profiler": "5.7.0" | ||
@@ -70,0 +70,0 @@ }, |
7096
302071
107
+ Addedasync@2.6.0(transitive)
+ Addedjoi@12.0.0(transitive)
+ Addedtopo@2.1.1(transitive)
- Removedasync@2.5.0(transitive)
- Removedhoek@5.0.46.1.3(transitive)
- Removedjoi@13.0.1(transitive)
- Removedtopo@3.0.3(transitive)
Updatedasync@2.6.0
Updatedjoi@12.0.0