New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hapi-field-auth

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hapi-field-auth - npm Package Compare versions

Comparing version 1.0.0-beta.4 to 1.0.0-beta.5

8

package.json
{
"name": "hapi-field-auth",
"version": "1.0.0-beta.4",
"version": "1.0.0-beta.5",
"description": "Hapi plug-in for field-level authorization",

@@ -36,6 +36,6 @@ "main": "src/index.js",

"coveralls": "^3.0.2",
"eslint": "^5.3.0",
"eslint": "^5.4.0",
"eslint-config-airbnb-base": "^13.1.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-promise": "^3.8.0",
"eslint-plugin-promise": "^4.0.0",
"eslint-plugin-should-promised": "^2.0.0",

@@ -51,4 +51,4 @@ "hapi": "^17.5.3",

"boom": "^7.2.0",
"mustache": "^2.3.1"
"mustache": "^2.3.2"
}
}

@@ -63,4 +63,4 @@ # hapi-field-auth

auth: {
access: {
scope: ['write', 'write.extended'], // allow both scopes
access: { // route-level auth -> HTTP 401/403
scope: ['write', 'write.extended'], // multiple scopes on route-level
},

@@ -74,3 +74,3 @@ },

fields: ['myProtectedField'], // request payload properties
scope: ['write.extended'], // restrict to scope
scope: ['write.extended'], // restricted scopes on field-level
}],

@@ -77,0 +77,0 @@ },

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