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

@ladjs/i18n

Package Overview
Dependencies
Maintainers
5
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ladjs/i18n - npm Package Compare versions

Comparing version 7.2.6 to 8.0.0

4

index.js
const process = require('process');
const { basename, extname, resolve } = require('path');
const { debuglog } = require('util');

@@ -7,3 +8,2 @@ const { toASCII } = require('punycode/');

const Boom = require('@hapi/boom');
const debug = require('debug')('ladjs:i18n');
const { I18n } = require('i18n');

@@ -19,2 +19,4 @@ const locales = require('i18n-locales');

const debug = debuglog('ladjs:i18n');
const punycodedTlds = tlds.map((tld) => toASCII(tld));

@@ -21,0 +23,0 @@

{
"name": "@ladjs/i18n",
"description": "i18n wrapper and Koa middleware for Lad",
"version": "7.2.6",
"version": "8.0.0",
"author": "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)",
"ava": {
"failFast": true,
"verbose": true,
"serial": true
},
"bugs": {

@@ -15,7 +10,2 @@ "url": "https://github.com/ladjs/i18n/issues",

},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"contributors": [

@@ -26,7 +16,6 @@ "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)",

"dependencies": {
"@hapi/boom": "^9.1.4",
"@ladjs/country-language": "^0.2.1",
"@hapi/boom": "^10.0.0",
"@ladjs/country-language": "^1.0.1",
"boolean": "3.2.0",
"debug": "^4.3.3",
"i18n": "^0.14.1",
"i18n": "^0.15.0",
"i18n-locales": "^0.0.5",

@@ -36,70 +25,44 @@ "lodash": "^4.17.21",

"punycode": "^2.1.1",
"qs": "^6.10.3",
"qs": "^6.11.0",
"titleize": "2",
"tlds": "^1.230.0"
"tlds": "^1.231.0"
},
"devDependencies": {
"@commitlint/cli": "^16.2.1",
"@commitlint/config-conventional": "^16.2.1",
"ava": "^4.0.1",
"codecov": "^3.8.2",
"@commitlint/cli": "^17.0.3",
"@commitlint/config-conventional": "^17.0.3",
"ava": "^4.3.0",
"cross-env": "^7.0.3",
"eslint": "^8.9.0",
"eslint-config-xo-lass": "^1.0.6",
"eslint": "^8.19.0",
"eslint-config-xo-lass": "^2.0.1",
"fixpack": "^4.0.0",
"husky": "^7.0.4",
"husky": "^8.0.1",
"koa": "^2.13.4",
"koa-generic-session": "^2.3.0",
"lint-staged": "^12.3.4",
"lint-staged": "^13.0.3",
"nyc": "^15.1.0",
"remark-cli": "^10.0.1",
"remark-preset-github": "^4.0.1",
"sinon": "^13.0.1",
"supertest": "^6.2.2",
"xo": "^0.48.0"
"remark-cli": "^11.0.0",
"remark-preset-github": "^4.0.4",
"sinon": "^14.0.0",
"supertest": "^6.2.4",
"xo": "^0.50.0"
},
"engines": {
"node": ">=8.3.0"
"node": ">=14"
},
"files": [
"index.js",
"locales"
"index.js"
],
"homepage": "https://github.com/ladjs/i18n",
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"keywords": [
"@ladjs/i18n",
"lass"
"i18n",
"lad",
"lass",
"locale",
"locales",
"localization",
"translate"
],
"license": "MIT",
"lint-staged": {
"*.js": [
"xo --fix",
"git add"
],
"*.md": [
"remark . -qfo",
"git add"
],
"package.json": [
"fixpack",
"git add"
]
},
"main": "index.js",
"prettier": {
"singleQuote": true,
"bracketSpacing": true,
"trailingComma": "none"
},
"remarkConfig": {
"plugins": [
"preset-github"
]
},
"repository": {

@@ -110,20 +73,7 @@ "type": "git",

"scripts": {
"coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
"lint": "xo && remark . -qfo",
"precommit": "lint-staged && npm test",
"test": "npm run lint && npm run test-coverage",
"test-coverage": "cross-env NODE_ENV=test nyc ava"
},
"xo": {
"prettier": true,
"space": true,
"extends": [
"xo-lass"
],
"rules": {
"unicorn/prevent-abbreviations": "off",
"unicorn/prefer-module": "off",
"unicorn/numeric-separators-style": "off"
}
"lint": "xo --fix && remark . -qfo && fixpack",
"prepare": "husky install",
"pretest": "npm run lint",
"test": "cross-env NODE_ENV=test nyc ava"
}
}
# [**@ladjs/i18n**](https://github.com/ladjs/i18n)
[![build status](https://img.shields.io/travis/ladjs/i18n.svg)](https://travis-ci.org/ladjs/i18n)
[![code coverage](https://img.shields.io/codecov/c/github/ladjs/i18n.svg)](https://codecov.io/gh/ladjs/i18n)
[![code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)

@@ -36,9 +35,3 @@ [![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)

[yarn][]:
```sh
yarn add @ladjs/i18n
```
## Usage

@@ -202,4 +195,2 @@

[yarn]: https://yarnpkg.com/
[i18n]: https://github.com/mashpie/i18n-node

@@ -206,0 +197,0 @@

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