connect-rest
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -18,3 +18,3 @@ let Route = require('../util/Route') | ||
let complex = result && result.result && result.options | ||
return { contentType: config.contentType, result: complex ? result.result : result, resOptions: complex ? result.options : {} } | ||
return { contentType: complex ? result.contentType || config.contentType : config.contentType, result: complex ? result.result : result, resOptions: complex ? result.options : {} } | ||
} | ||
@@ -21,0 +21,0 @@ ) ) |
{ | ||
"name": "connect-rest", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "Exceptionally featureful RESTful web services middleware for Connect.", | ||
@@ -30,3 +30,3 @@ "keywords": [ | ||
"isa.js": "^2.0.0", | ||
"pino": "^4.7.1", | ||
"pino": "^4.7.2", | ||
"proback.js": "^2.1.3", | ||
@@ -36,4 +36,4 @@ "semver": "^5.4.1" | ||
"devDependencies": { | ||
"body-parser": "^1.17.2", | ||
"chai": "^4.1.1", | ||
"body-parser": "^1.18.1", | ||
"chai": "^4.1.2", | ||
"compression": "^1.7.0", | ||
@@ -40,0 +40,0 @@ "connect": "~3", |
@@ -869,58 +869,1 @@ CONNECT-REST - Exceptionally featureful Restful web services middleware for connect / node.js | ||
See <https://github.com/imrefazekas/connect-rest/issues>. | ||
## Changelog | ||
- 3.0.0: Moved to Node8 | ||
- 2.0.0: Moved to Node4 and ES6 | ||
- 1.8.0: OPTIONS method supported | ||
- 1.6.0: REST services can possess own API key set | ||
- 1.5.0: remove rest function | ||
- 1.4.0: logging rewritten | ||
- 1.3.0: range-based mapping added | ||
- 1.2.x: fixes... | ||
- 1.2.0: Stream, Buffer and Function can be set as return object | ||
- 1.1.0: Proxies added | ||
- 1.0.0: Switch to connect v3! | ||
- 0.9.x: fixes... | ||
- 0.9.0: context specification at REST function level is allowed. | ||
- 0.8.x: fixes... | ||
- 0.8.0: protector introduced | ||
- 0.7.7: check function added. Now you can test if a given call would/allowed to take place. | ||
- 0.7.x: fixes... | ||
- 0.6.x: fixes... | ||
- 0.6.0: dispatchers added | ||
- 0.5.0: minifying services added | ||
- 0.0.48: An rest service can now be unprotected | ||
- 0.0.43-47: Various fixes/improvements | ||
- 0.0.42: Incoming request count monitoring added | ||
- 0.0.41: listener for populated measurements can be set | ||
- 0.0.40: monitoring services (bus) added | ||
- 0.0.3X: minor fixes, refined documentation | ||
- 0.0.28.29: a case when mandatory parameter follows optional(s) has been fixed | ||
- 0.0.26-27: async request fix | ||
- 0.0.23-25: small fix for content type management | ||
- 0.0.22: response header customization added | ||
- 0.0.21: | ||
- async rest calling allowed by passing a http parameter: callbackURL | ||
- and some logging fixes | ||
- 0.0.20: callback/next function passed to the services methods can receive third parameter: statusCode setting the http status of the response | ||
- 0.0.19: assign function introduced for bulk http-method assignments for a given rest function | ||
- 0.0.18: fixes | ||
- 0.0.16: | ||
- better optional parameter handling allowing to use optional parameter chain like: /set/?department/?room | ||
- rewritten assing services. instead of passing a single validator, one has to pass on optional object: { contentType: '', validator: ...} which allows one to define validator and answer return content mime-type as well. | ||
- 0.0.15 : Great changes from Joel Grenon, thank you! Standard callbacks introduced, better optional parameter handling and respecting error status code if exists | ||
- 0.0.14 : Adding grunt project files | ||
- 0.0.13 : Validator function can be also passed | ||
- 0.0.12 : Domain (introduced in Node 0.8.0) support added | ||
- 0.0.11 : First request parameter now has a callback for async rest calls | ||
- 0.0.10 : Prototyping added | ||
- 0.0.9 : General path matcher added, optional now marked with '?' | ||
- 0.0.8 : Other body parsing middlewares are respected | ||
- 0.0.6 : logging added | ||
- 0.0.5 : optional parameter added | ||
- 0.0.4 : API_KEY management added | ||
- 0.0.3 : discovery managemenet added | ||
- 0.0.2 : named parameters added | ||
- 0.0.1 : initial release |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4
3
72767
19
1044
869
Updatedpino@^4.7.2