From 067fd345193d624a856b9f017b6b7526826f7a29 Mon Sep 17 00:00:00 2001 From: cswimr Date: Sun, 9 Feb 2025 13:31:40 -0600 Subject: [PATCH] add missing `await` --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 723f547..27c0c0a 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ See the [documentation](./docs) for more information. ```ts > import { parsePackwiz } from "packwizjs"; -> const packwizFile = parsePackwiz("./packwiz/pack.toml") +> const packwizFile = await parsePackwiz("./packwiz/pack.toml") Packwiz { location: Resource { path: './packwiz/pack.toml' }, index: { // The index file is automatically parsed alongside the pack.toml file @@ -42,7 +42,7 @@ Packwiz { liteloader: undefined } } -> packwizFile.index.files[2].parse() +> await packwizFile.index.files[2].parse() { name: 'Fabric API', filename: 'fabric-api-0.115.1+1.21.4.jar', @@ -61,4 +61,3 @@ Packwiz { description: undefined } ``` -