hapi-locale-17
Advanced tools
Comparing version 2.0.33 to 2.1.0
{ | ||
"name": "hapi-locale-17", | ||
"version": "2.0.33", | ||
"version": "2.1.0", | ||
"description": "Locale and language detection for Hapi v17", | ||
@@ -26,19 +26,18 @@ "main": "src/index.js", | ||
"engines": { | ||
"node": ">=12.x.x" | ||
"node": ">=22.x.x" | ||
}, | ||
"devDependencies": { | ||
"@hapi/hapi": "^21.3.3", | ||
"@hapi/hapi": "^21.3.12", | ||
"@types/hapi__hapi": "^21.0.0", | ||
"ansi-regex": "^6.0.1", | ||
"ansi-regex": "^6.1.0", | ||
"coveralls": "^3.1.1", | ||
"eslint": "^8.57.0", | ||
"eslint-config-airbnb-base": "^15.0.0", | ||
"eslint-plugin-import": "^2.29.1", | ||
"eslint-plugin-promise": "^6.1.1", | ||
"eslint-plugin-import": "^2.31.0", | ||
"eslint-plugin-promise": "^7.2.1", | ||
"eslint-plugin-should-promised": "^2.0.0", | ||
"hapi18": "npm:@hapi/hapi@^18.4.0", | ||
"hapi19": "npm:@hapi/hapi@^19.2.0", | ||
"hapi20": "npm:@hapi/hapi@^20.0.3", | ||
"hapi21": "npm:@hapi/hapi@^21.3.12", | ||
"jest": "^29.7.0", | ||
"semver": "^7.6.0", | ||
"semver": "^7.6.3", | ||
"tmpl": "^1.0.5" | ||
@@ -45,0 +44,0 @@ }, |
@@ -27,4 +27,3 @@ # hapi-locale-17 | ||
* Hapi 18/19/20 on Node 12/14/15 | ||
* Hapi 18 on Node 10 | ||
* Hapi 20/21 on Node 22 | ||
@@ -31,0 +30,0 @@ ## Install |
const parser = require('accept-language-parser'); // to be mocked | ||
const semver = require('semver'); | ||
const locale = require('..'); | ||
const nodeVersion = process.version; | ||
const hapiVersions = semver.satisfies(nodeVersion, '>=12.x.x') | ||
? ['hapi18', 'hapi19', 'hapi20'] | ||
: ['hapi18']; | ||
const hapiVersions = ['hapi20', 'hapi21']; | ||
@@ -10,0 +6,0 @@ hapiVersions.forEach((hapiVersion) => { |
Sorry, the diff of this file is not supported yet
14
14223
298
83