We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a583120 commit c816c9dCopy full SHA for c816c9d
1 file changed
dist/index.js
@@ -56,7 +56,7 @@ export function encodeTime(now, len) {
56
if (now < 0) {
57
throw createError("time must be positive");
58
}
59
- if (Number.isInteger(now) === false) {
+ if (Number.isInteger(Number(now)) === false) {
60
throw createError("time must be an integer");
61
62
let mod;
0 commit comments