hapi-field-auth
Advanced tools
Comparing version 1.0.12 to 1.1.0
{ | ||
"name": "hapi-field-auth", | ||
"version": "1.0.12", | ||
"version": "1.1.0", | ||
"description": "Hapi plug-in for field-level authorization", | ||
@@ -24,3 +24,3 @@ "main": "src/index.js", | ||
"engines": { | ||
"node": ">=12.x.x" | ||
"node": ">=22.x.x" | ||
}, | ||
@@ -32,21 +32,20 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@hapi/basic": "^6.0.0", | ||
"@hapi/basic": "^7.0.2", | ||
"ansi-regex": ">=5.0.1", | ||
"babel-eslint": "^10.0.3", | ||
"chai": "^4.3.6", | ||
"chai-as-promised": "^7.1.1", | ||
"chai": "^5.1.2", | ||
"chai-as-promised": "^8.0.1", | ||
"coveralls": "^3.1.1", | ||
"eslint": "^8.57.0", | ||
"eslint-config-airbnb-base": "^15.0.0", | ||
"eslint-plugin-import": "^2.29.1", | ||
"eslint-plugin-promise": "^6.1.1", | ||
"eslint-plugin-import": "^2.31.0", | ||
"eslint-plugin-promise": "^7.2.1", | ||
"eslint-plugin-should-promised": "^2.0.0", | ||
"hapi18": "npm:@hapi/hapi@^18.4.0", | ||
"hapi19": "npm:@hapi/hapi@^19.2.0", | ||
"hapi20": "npm:@hapi/hapi@^20.0.3", | ||
"joi": "^17.12.2", | ||
"mocha": "^10.3.0", | ||
"nyc": "^15.0.0", | ||
"sinon": "^17.0.1", | ||
"sinon-chai": "^3.7.0" | ||
"hapi21": "npm:@hapi/hapi@^21.3.12", | ||
"joi": "^17.13.3", | ||
"mocha": "^11.0.1", | ||
"nyc": "^17.1.0", | ||
"sinon": "^19.0.2", | ||
"sinon-chai": "^4.0.0" | ||
}, | ||
@@ -53,0 +52,0 @@ "dependencies": { |
@@ -15,4 +15,3 @@ # hapi-field-auth | ||
* Node 14/16, Hapi 18/19/20, Joi 17 | ||
* Node 10, Hapi 18, Joi 16 | ||
* Node 22, Hapi 20/21 | ||
@@ -19,0 +18,0 @@ ## Install |
const Joi = require('joi'); | ||
const hapiAuthBasic = require('@hapi/basic'); | ||
const chai = require('chai'); | ||
const chaiAsPromised = require('chai-as-promised'); | ||
const chaiAsPromised = require('chai-as-promised').default; | ||
const sinon = require('sinon'); | ||
const sinonChai = require('sinon-chai'); | ||
const sinonChai = require('sinon-chai').default; | ||
const hapiFieldAuth = require('..'); // eslint-disable-line import/order | ||
@@ -17,3 +17,3 @@ | ||
const hapiVersions = ['hapi18', 'hapi19', 'hapi20']; | ||
const hapiVersions = ['hapi20', 'hapi21']; | ||
@@ -20,0 +20,0 @@ hapiVersions.forEach((hapiVersion) => { |
Sorry, the diff of this file is not supported yet
18
16554
91