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

cjs-gettext

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cjs-gettext - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

10

index.js

@@ -67,3 +67,3 @@ /**

/* eslint id-length: 0 */
var n;
var n, evalResult;

@@ -77,4 +77,10 @@ if ( DEVELOP ) {

if ( data && meta && data[''][msgId] ) {
evalResult = eval('n = ' + value + '; ' + meta.plural);
if ( typeof evalResult === 'boolean' ) {
evalResult = +evalResult;
}
// translation
return data[''][msgId][eval('n = ' + value + '; ' + meta.plural)];
return data[''][msgId][evalResult];
}

@@ -81,0 +87,0 @@

4

package.json
{
"name": "cjs-gettext",
"version": "1.0.4",
"version": "1.0.5",
"description": "Application localization tools.",

@@ -23,3 +23,5 @@ "author": {

"keywords": [
"commonjs",
"cjs",
"sdk",
"cjssdk",

@@ -26,0 +28,0 @@ "framework",

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