Skip to content

Commit

Permalink
Fix toPath imported from unicorn-magic is not exported
Browse files Browse the repository at this point in the history
  • Loading branch information
boxexchanger committed Nov 27, 2023
1 parent 67bb2fd commit eafa35a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions default.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
import {fileURLToPath} from 'node:url';

export function toPath(urlOrPath) {
return urlOrPath instanceof URL ? fileURLToPath(urlOrPath) : urlOrPath;
}

export async function delay({seconds, milliseconds} = {}) {
let duration;
if (typeof seconds === 'number') {
Expand Down

0 comments on commit eafa35a

Please sign in to comment.