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

nestjs-i18n

Package Overview
Dependencies
Maintainers
1
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nestjs-i18n - npm Package Compare versions

Comparing version 2.2.1 to 2.2.2

4

dist/services/i18n.service.d.ts

@@ -11,3 +11,5 @@ import { Logger } from '@nestjs/common';

[k: string]: any;
} | string>): any;
} | string> | {
[k: string]: any;
}): any;
}

@@ -24,3 +24,3 @@ "use strict";

}
translate(lang, key, args = []) {
translate(lang, key, args) {
let translation = this.translations[lang][key];

@@ -39,4 +39,4 @@ if (translation === undefined || translation === null) {

}
if (args && args.length > 0) {
translation = format(translation, ...(args || []));
if (args || (args instanceof Array && args.length > 0)) {
translation = format(translation, ...(args instanceof Array ? args || [] : [args]));
}

@@ -43,0 +43,0 @@ return translation;

{
"name": "nestjs-i18n",
"version": "2.2.1",
"version": "2.2.2",
"description": "",

@@ -32,3 +32,3 @@ "author": "Toon van Strijp",

"jest": "^24.8.0",
"lint-staged": "9.0.0",
"lint-staged": "9.0.2",
"prettier": "1.18.2",

@@ -35,0 +35,0 @@ "reflect-metadata": "^0.1.13",

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