From c7112a7640a2fb97717f0a3a31259e0869c61d40 Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Fri, 12 Jul 2024 01:54:50 -0300 Subject: [PATCH] Reorder args --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 7443517..9df2e90 100644 --- a/src/index.ts +++ b/src/index.ts @@ -32,6 +32,7 @@ export { item }; export default function (...args: Args): Postman { const self = Object.create(null); + const [items, progresscb] = parseArgs(args); const _package: Package = { fonts: [], images: [], @@ -39,7 +40,6 @@ export default function (...args: Args): Postman { scripts: [], json: [], }; - const [items, progresscb] = parseArgs(args); let index = 0; function onProgress(el: T): T {