hapi-decorators
Advanced tools
Comparing version 0.3.0 to 0.4.0
14
index.js
@@ -93,2 +93,16 @@ 'use strict' | ||
function cache (cacheConfig) { | ||
return function (target, key, descriptor) { | ||
setRoute(target, key, { | ||
config: { | ||
cache: cacheConfig | ||
} | ||
}) | ||
return descriptor | ||
} | ||
} | ||
exports.cache = cache | ||
function setRoute (target, key, value) { | ||
@@ -95,0 +109,0 @@ if (!target.rawRoutes) { |
{ | ||
"name": "hapi-decorators", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -81,1 +81,5 @@ # hapi-decorators | ||
`config` is an object, with keys for the different types, e.g. `payload`. | ||
### `@cache(cacheConfig)` | ||
Cache settings for the route config object. |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
56050
16
489
85
1