@moonbase.sh/storefront-api 0.2.21 → 0.2.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -1
- package/dist/index.d.cts +940 -940
- package/dist/index.d.ts +940 -940
- package/dist/index.js +2 -1
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -242,7 +242,8 @@ async function handleResponseProblem(response) {
|
|
|
242
242
|
try {
|
|
243
243
|
const json = await response.json();
|
|
244
244
|
problemDetails = problemDetailsSchema.parse(json);
|
|
245
|
-
} catch (
|
|
245
|
+
} catch (err) {
|
|
246
|
+
console.error("Could not handle response", err);
|
|
246
247
|
throw new Error("An unknown problem occurred");
|
|
247
248
|
}
|
|
248
249
|
throw new MoonbaseError(
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moonbase.sh/storefront-api",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.22",
|
|
5
5
|
"description": "Package to let you build storefronts with Moonbase.sh as payment and delivery provider",
|
|
6
6
|
"author": "Tobias Lønnerød Madsen <m@dsen.tv>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -13,14 +13,14 @@
|
|
|
13
13
|
"dist/**"
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"cross-fetch": "^
|
|
17
|
-
"zod": "^3.
|
|
16
|
+
"cross-fetch": "^4.0.0",
|
|
17
|
+
"zod": "^3.23.8"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@types/node": "^
|
|
21
|
-
"rimraf": "^
|
|
22
|
-
"tsup": "^
|
|
23
|
-
"typescript": "~5.
|
|
20
|
+
"@types/node": "^22.5.2",
|
|
21
|
+
"rimraf": "^6.0.1",
|
|
22
|
+
"tsup": "^8.2.4",
|
|
23
|
+
"typescript": "~5.5.4"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
26
|
"build": "tsup src/index.ts --format esm,cjs --dts",
|