Comparing version 1.3.0 to 1.4.0
'use strict'; | ||
var parseMs = require('parse-ms'); | ||
var plur = require('plur'); | ||
var isFinitePonyfill = require('is-finite'); | ||
module.exports = function (ms, opts) { | ||
if (typeof ms !== 'number') { | ||
throw new TypeError('Expected a number'); | ||
if (!isFinitePonyfill(ms)) { | ||
throw new TypeError('Expected a finite number'); | ||
} | ||
@@ -9,0 +10,0 @@ |
{ | ||
"name": "pretty-ms", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "Convert milliseconds to a human readable string: 1337000000 → 15d 11h 23m 20s", | ||
@@ -46,2 +46,3 @@ "license": "MIT", | ||
"get-stdin": "^4.0.1", | ||
"is-finite": "^1.0.1", | ||
"meow": "^3.3.0", | ||
@@ -48,0 +49,0 @@ "parse-ms": "^1.0.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6058
80
5
+ Addedis-finite@^1.0.1