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

onix-core

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

onix-core - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

2

dist/fn/date/formatTimer.js

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

if (isNaN(timestamp)) {
return i18n_1._("timer", "time_empty");
return i18n_1._("timer", "empty");
}

@@ -11,0 +11,0 @@ const category = short ? "timer" : "datetime";

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

let result = key;
if (this.strings[locale] && this.strings[locale][category]) {
if (this.strings[locale] && this.strings[locale][category] && this.strings[locale][category][key]) {
result = this.strings[locale][category][key];

@@ -34,0 +34,0 @@ }

{
"name": "onix-core",
"version": "3.0.0",
"version": "3.0.1",
"description": "Onix library core",

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

@@ -7,3 +7,3 @@ import padStart from 'lodash-es/padStart';

if (isNaN(timestamp)) {
return _("timer", "time_empty");
return _("timer", "empty");
}

@@ -10,0 +10,0 @@

@@ -42,3 +42,3 @@ import { IntlMessageFormat } from 'intl-messageformat';

let result: string = key;
if (this.strings[locale] && this.strings[locale][category]) {
if (this.strings[locale] && this.strings[locale][category] && this.strings[locale][category][key]) {
result = <string>this.strings[locale][category][key];

@@ -45,0 +45,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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