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

react-i18nify

Package Overview
Dependencies
Maintainers
2
Versions
131
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-i18nify - npm Package Compare versions

Comparing version 1.11.10 to 1.11.11

11

build/lib/I18n.js

@@ -137,5 +137,10 @@ 'use strict';

if (moduleAvailable('moment')) {
var moment = require('moment');
require('moment/min/locales');
return moment(value, options.parseFormat, this._locale, Boolean(options.strictParse)).format(this.t(options.dateFormat));
try {
var moment = require('moment');
require('moment/min/locales');
return moment(value, options.parseFormat, this._locale, Boolean(options.strictParse)).format(this.t(options.dateFormat));
} catch (e) {
console.error('Date formatting with moment.js failed', e);
return '';
}
}

@@ -142,0 +147,0 @@ console.error('Date formatting failed, please install moment.js');

{
"name": "react-i18nify",
"version": "1.11.10",
"version": "1.11.11",
"description": "Simple i18n translation and localization components and helpers for React applications.",

@@ -5,0 +5,0 @@ "main": "./build/index.js",

@@ -125,10 +125,15 @@ /* eslint global-require: "off" */

if (moduleAvailable('moment')) {
const moment = require('moment');
require('moment/min/locales');
return moment(
value,
options.parseFormat,
this._locale,
Boolean(options.strictParse),
).format(this.t(options.dateFormat));
try {
const moment = require('moment');
require('moment/min/locales');
return moment(
value,
options.parseFormat,
this._locale,
Boolean(options.strictParse),
).format(this.t(options.dateFormat));
} catch (e) {
console.error('Date formatting with moment.js failed', e);
return '';
}
}

@@ -135,0 +140,0 @@ console.error('Date formatting failed, please install moment.js');

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