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

grant

Package Overview
Dependencies
Maintainers
1
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grant - npm Package Compare versions

Comparing version 4.5.1 to 4.5.2

8

build/grant.js

@@ -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'));
};

2

build/package.json
{
"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": [

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