hapi-locale-17
Advanced tools
Comparing version 2.0.1 to 2.0.2
{ | ||
"name": "hapi-locale-17", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Locale and language detection for Hapi v17", | ||
@@ -33,3 +33,3 @@ "main": "src/index.js", | ||
"coveralls": "^3.0.0", | ||
"eslint": "^4.13.1", | ||
"eslint": "^4.14.0", | ||
"eslint-config-airbnb-base": "^12.1.0", | ||
@@ -39,3 +39,3 @@ "eslint-plugin-import": "^2.8.0", | ||
"eslint-plugin-should-promised": "^2.0.0", | ||
"hapi": "^17.1.1", | ||
"hapi": "^17.2.0", | ||
"istanbul": "^0.4.5", | ||
@@ -47,2 +47,5 @@ "mocha": "^4.0.1", | ||
}, | ||
"peerDependencies": { | ||
"hapi": ">=17.x.x" | ||
}, | ||
"dependencies": { | ||
@@ -49,0 +52,0 @@ "accept-language-parser": "^1.4.1", |
@@ -8,2 +8,3 @@ # hapi-locale-17 | ||
[![dependencies Status](https://david-dm.org/frankthelen/hapi-locale-17/status.svg)](https://david-dm.org/frankthelen/hapi-locale-17) | ||
[![Greenkeeper badge](https://badges.greenkeeper.io/frankthelen/hapi-locale-17.svg)](https://greenkeeper.io/) | ||
[![node](https://img.shields.io/node/v/hapi-locale-17.svg)]() | ||
@@ -10,0 +11,0 @@ [![License Status](http://img.shields.io/npm/l/hapi-locale-17.svg)]() |
@@ -27,4 +27,4 @@ const parser = require('accept-language-parser'); | ||
} | ||
} catch (err) { | ||
request.log(['err', 'error'], err); | ||
} catch (error) { | ||
request.log(['error'], error); | ||
} | ||
@@ -31,0 +31,0 @@ return fallback; |
@@ -250,3 +250,3 @@ const Hapi = require('hapi'); | ||
describe('hapi-locale-17 with error in dependency', async () => { | ||
describe('hapi-locale-17 with error thrown by `accept-language-parser`', async () => { | ||
let server; | ||
@@ -266,3 +266,3 @@ | ||
it('should catch error and return default locale', () => | ||
it('should not fail and return default locale', () => | ||
server | ||
@@ -269,0 +269,0 @@ .inject({ |
12397
78
3