Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hapi-decorators

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hapi-decorators - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

coverage/coverage.json

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) {

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc