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

to
2.0.22

16

package.json
{
"name": "hapi-locale-17",
"version": "2.0.21",
"version": "2.0.22",
"description": "Locale and language detection for Hapi v17",

@@ -30,14 +30,14 @@ "main": "src/index.js",

"devDependencies": {
"@hapi/hapi": "^18.3.1",
"@hapi/hapi": "^18.3.2",
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
"coveralls": "^3.0.4",
"eslint": "^6.0.1",
"eslint-config-airbnb-base": "^13.2.0",
"eslint-plugin-import": "^2.18.0",
"coveralls": "^3.0.6",
"eslint": "^6.2.0",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-should-promised": "^2.0.0",
"mocha": "^6.1.4",
"mocha": "^6.2.0",
"nyc": "^14.1.1",
"sinon": "^7.3.2",
"sinon": "^7.4.1",
"sinon-chai": "^3.3.0"

@@ -44,0 +44,0 @@ },

@@ -65,3 +65,3 @@ const Hapi = require('@hapi/hapi');

.should.be.fulfilled
.then(response => expect(response.request.getLocale()).to.be.equal('de')));
.then((response) => expect(response.request.getLocale()).to.be.equal('de')));

@@ -76,3 +76,3 @@ it('should provide `request.getLocale()` with supported `de` / query param', () => server

.should.be.fulfilled
.then(response => expect(response.request.getLocale()).to.be.equal('de')));
.then((response) => expect(response.request.getLocale()).to.be.equal('de')));

@@ -87,3 +87,3 @@ it('should provide `request.getLocale()` with supported `de` / path param', () => server

.should.be.fulfilled
.then(response => expect(response.request.getLocale()).to.be.equal('de')));
.then((response) => expect(response.request.getLocale()).to.be.equal('de')));

@@ -98,3 +98,3 @@ it('should provide `request.getLocale()` with default `es` / query param with unsupported locale', () => server

.should.be.fulfilled
.then(response => expect(response.request.getLocale()).to.be.equal('es')));
.then((response) => expect(response.request.getLocale()).to.be.equal('es')));

@@ -109,3 +109,3 @@ it('should provide `request.getLocale()` with default `es` / path param with unsupported locale', () => server

.should.be.fulfilled
.then(response => expect(response.request.getLocale()).to.be.equal('es')));
.then((response) => expect(response.request.getLocale()).to.be.equal('es')));

@@ -117,3 +117,3 @@ it('should provide `request.getLocale()` with default `es` / no indocation', () => server

.should.be.fulfilled
.then(response => expect(response.request.getLocale()).to.be.equal('es')));
.then((response) => expect(response.request.getLocale()).to.be.equal('es')));

@@ -128,3 +128,3 @@ it('should provide `request.getLocale()` with default `es` / invalid header', () => server

.should.be.fulfilled
.then(response => expect(response.request.getLocale()).to.be.equal('es')));
.then((response) => expect(response.request.getLocale()).to.be.equal('es')));
});

@@ -154,3 +154,3 @@

.should.be.fulfilled
.then(response => expect(response.request.getLang()).to.be.equal('en')));
.then((response) => expect(response.request.getLang()).to.be.equal('en')));
});

@@ -182,3 +182,3 @@

.should.be.fulfilled
.then(response => expect(response.request.getLang()).to.be.equal('de')));
.then((response) => expect(response.request.getLang()).to.be.equal('de')));
});

@@ -210,3 +210,3 @@

.should.be.fulfilled
.then(response => expect(response.request.getLang()).to.be.equal('de')));
.then((response) => expect(response.request.getLang()).to.be.equal('de')));
});

@@ -235,3 +235,3 @@

.should.be.fulfilled
.then(response => expect(response.request.getLocale()).to.be.equal('en-US')));
.then((response) => expect(response.request.getLocale()).to.be.equal('en-US')));

@@ -246,3 +246,3 @@ it('should accept locale `en-US` / query param', () => server

.should.be.fulfilled
.then(response => expect(response.request.getLocale()).to.be.equal('en-US')));
.then((response) => expect(response.request.getLocale()).to.be.equal('en-US')));
});

@@ -273,3 +273,3 @@

.should.be.fulfilled
.then(response => expect(response.request.getLocale()).to.be.equal('en')));
.then((response) => expect(response.request.getLocale()).to.be.equal('en')));
});