Comparing version 1.3.0 to 1.4.0
@@ -21,3 +21,4 @@ | ||
} | ||
num = Math.floor(+num || 1) | ||
num = Math.abs(Math.floor(+num || 1)) | ||
num = Math.min(num, quotes.length) | ||
opts = Object(opts) | ||
@@ -38,3 +39,7 @@ if (num === 1) return formatter(getAQuote(), opts) | ||
if (opts.debug) { | ||
console.log('Getting daily', {now: now, bOfDay: beginningOfDay, outOf: quotes.length}) | ||
} | ||
return formatter(getAQuote(beginningOfDay % quotes.length), opts) | ||
} |
{ | ||
"name": "barth", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "Helpful Karl Barth quotes.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
18649
209