Comparing version 4.5.1 to 4.5.2
@@ -13,4 +13,10 @@ 'use strict'; | ||
exports.hapi = function () { | ||
var version = parseInt(require('hapi/package.json').version.split('.')[0]); | ||
var pkg; | ||
try { | ||
pkg = require('hapi/package.json'); | ||
} catch (err) { | ||
pkg = require('@hapi/hapi/package.json'); | ||
} | ||
var version = parseInt(pkg.version.split('.')[0]); | ||
return require('./lib/consumer/hapi' + (version < 17 ? '' : '17')); | ||
}; |
{ | ||
"name": "grant", | ||
"version": "4.5.1", | ||
"version": "4.5.2", | ||
"description": "OAuth Middleware for Express, Koa and Hapi", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
# Change Log | ||
## v4.5.2 (2019/05/19) | ||
- **Fix:** Support for **@hapi/hapi** namespace | ||
## v4.5.1 (2019/04/07) | ||
@@ -5,0 +8,0 @@ - **Fix:** Support for **Hapi >= 18** |
@@ -12,4 +12,11 @@ | ||
exports.hapi = () => { | ||
var version = parseInt(require('hapi/package.json').version.split('.')[0]) | ||
var pkg | ||
try { | ||
pkg = require('hapi/package.json') | ||
} | ||
catch (err) { | ||
pkg = require('@hapi/hapi/package.json') | ||
} | ||
var version = parseInt(pkg.version.split('.')[0]) | ||
return require('./lib/consumer/hapi' + (version < 17 ? '' : '17')) | ||
} |
{ | ||
"name": "grant", | ||
"version": "4.5.1", | ||
"version": "4.5.2", | ||
"description": "OAuth Middleware for Express, Koa and Hapi", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
197700
4457