diff options
author | Florian Dold <florian.dold@gmail.com> | 2018-09-20 02:56:13 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2018-09-20 02:56:13 +0200 |
commit | bbff7403fbf46f9ad92240ac213df8d30ef31b64 (patch) | |
tree | c58400ec5124da1c7d56b01aea83309f80a56c3b /node_modules/pretty-ms | |
parent | 003fb34971cf63466184351b4db5f7c67df4f444 (diff) | |
download | wallet-core-bbff7403fbf46f9ad92240ac213df8d30ef31b64.tar.xz |
update packages
Diffstat (limited to 'node_modules/pretty-ms')
-rw-r--r-- | node_modules/pretty-ms/index.js | 3 | ||||
-rw-r--r-- | node_modules/pretty-ms/package.json | 5 |
2 files changed, 4 insertions, 4 deletions
diff --git a/node_modules/pretty-ms/index.js b/node_modules/pretty-ms/index.js index c406e16f4..5a5f15e5a 100644 --- a/node_modules/pretty-ms/index.js +++ b/node_modules/pretty-ms/index.js @@ -1,6 +1,7 @@ 'use strict'; const parseMs = require('parse-ms'); -const plur = require('plur'); + +const plur = (word, count) => count === 1 ? word : word + 's'; module.exports = (ms, opts) => { if (!Number.isFinite(ms)) { diff --git a/node_modules/pretty-ms/package.json b/node_modules/pretty-ms/package.json index f6a934a4c..4dd01677e 100644 --- a/node_modules/pretty-ms/package.json +++ b/node_modules/pretty-ms/package.json @@ -1,6 +1,6 @@ { "name": "pretty-ms", - "version": "3.1.0", + "version": "3.2.0", "description": "Convert milliseconds to a human readable string: `1337000000` → `15d 11h 23m 20s`", "license": "MIT", "repository": "sindresorhus/pretty-ms", @@ -38,8 +38,7 @@ "hrtime" ], "dependencies": { - "parse-ms": "^1.0.0", - "plur": "^2.1.2" + "parse-ms": "^1.0.0" }, "devDependencies": { "ava": "*", |