Skip to content

Commit 1b1ebc4

Browse files
fix: update timespan.ts to use ES module import syntax
Replace CommonJS require with ES module import for the 'ms' package
1 parent 9e9e5bb commit 1b1ebc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/timespan.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const ms = require('ms');
1+
import ms from 'ms';
22

33
export function timespan(time: string | number, iat?: number): number {
44
const timestamp = iat || Math.floor(Date.now() / 1000);

0 commit comments

Comments
 (0)