Skip to content

Commit

Permalink
Bump version to 1.3.1 and fix API error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
n2o committed Nov 29, 2024
1 parent 8660b69 commit 0e89865
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@schnaq/strapi4-utils",
"version": "1.3.0",
"version": "1.3.1",
"description": "Utility functions for working with Strapi v4",
"main": "dist/index.js",
"module": "dist/index.mjs",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ export async function queryAPI<T>([
}
} else {
console.warn("API request failed. Status code:", result.status)
const json = await result?.json()
console.warn(result)
const json = await result?.json()
console.warn(json)
return json
}
Expand Down

0 comments on commit 0e89865

Please sign in to comment.