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

humanize-duration

Package Overview
Dependencies
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

humanize-duration - npm Package Compare versions

Comparing version 3.15.2 to 3.15.3

5

HISTORY.md

@@ -0,1 +1,6 @@

3.15.3 / 2018-09-18
===================
* fix: Greek should be `el`, not `gr`
3.15.2 / 2018-09-12

@@ -2,0 +7,0 @@ ===================

31

humanize-duration.js
// HumanizeDuration.js - https://git.io/j0HgmQ
;(function () {
// This has to be defined separately because of a bug: we want to alias
// `gr` and `el` for backwards-compatiblity. In a breaking change, we can
// remove `gr` entirely.
// See https://github.com/EvanHahn/HumanizeDuration.js/issues/143 for more.
var greek = {
y: function (c) { return c === 1 ? 'χρόνος' : 'χρόνια' },
mo: function (c) { return c === 1 ? 'μήνας' : 'μήνες' },
w: function (c) { return c === 1 ? 'εβδομάδα' : 'εβδομάδες' },
d: function (c) { return c === 1 ? 'μέρα' : 'μέρες' },
h: function (c) { return c === 1 ? 'ώρα' : 'ώρες' },
m: function (c) { return c === 1 ? 'λεπτό' : 'λεπτά' },
s: function (c) { return c === 1 ? 'δευτερόλεπτο' : 'δευτερόλεπτα' },
ms: function (c) { return c === 1 ? 'χιλιοστό του δευτερολέπτου' : 'χιλιοστά του δευτερολέπτου' },
decimal: ','
}
var languages = {

@@ -73,2 +89,3 @@ ar: {

},
el: greek,
en: {

@@ -129,13 +146,3 @@ y: function (c) { return 'year' + (c === 1 ? '' : 's') },

},
gr: {
y: function (c) { return c === 1 ? 'χρόνος' : 'χρόνια' },
mo: function (c) { return c === 1 ? 'μήνας' : 'μήνες' },
w: function (c) { return c === 1 ? 'εβδομάδα' : 'εβδομάδες' },
d: function (c) { return c === 1 ? 'μέρα' : 'μέρες' },
h: function (c) { return c === 1 ? 'ώρα' : 'ώρες' },
m: function (c) { return c === 1 ? 'λεπτό' : 'λεπτά' },
s: function (c) { return c === 1 ? 'δευτερόλεπτο' : 'δευτερόλεπτα' },
ms: function (c) { return c === 1 ? 'χιλιοστό του δευτερολέπτου' : 'χιλιοστά του δευτερολέπτου' },
decimal: ','
},
gr: greek,
hr: {

@@ -658,3 +665,3 @@ y: function (c) {

for (var language in languages) {
if (languages.hasOwnProperty(language)) {
if (languages.hasOwnProperty(language) && language !== 'gr') {
result.push(language)

@@ -661,0 +668,0 @@ }

@@ -28,3 +28,3 @@ {

],
"version": "3.15.2",
"version": "3.15.3",
"description": "Convert millisecond durations to English and many other languages.",

@@ -31,0 +31,0 @@ "homepage": "https://github.com/EvanHahn/HumanizeDuration.js",

@@ -219,3 +219,3 @@ Humanize Duration

| German | `de` |
| Greek | `gr` |
| Greek | `el` |
| Hungarian | `hu` |

@@ -222,0 +222,0 @@ | Icelandic | `is` |

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