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

hapi-locale-17

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hapi-locale-17 - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

9

package.json
{
"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({

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