We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a583120 + c816c9d commit 09127c1Copy full SHA for 09127c1
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