@tollwyn/baukasten 1.3.2 → 1.3.4

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.
@@ -38,7 +38,9 @@ const GRAPHQL = z.object({
38
38
  const SHOP_INFO = z.object({
39
39
  shop: z.object({
40
40
  id: z.string().startsWith('gid://shopify/Shop/'),
41
- email: z.string(),
41
+ // The mail about the data of a customer goes here, and the mailer would send it to every
42
+ // address it reads out of a list.
43
+ email: z.email(),
42
44
  plan: z.object({ partnerDevelopment: z.boolean() })
43
45
  }),
44
46
  currentAppInstallation: z.object({
@@ -200,8 +202,11 @@ export function shopifyApi(config, options) {
200
202
  throw new ShopifyFailed(`the Admin API refused: ${answer.errors.map((error) => error.code ?? error.message).join(', ')}`);
201
203
  case 'data': {
202
204
  const info = SHOP_INFO.safeParse(answer.data);
203
- if (!info.success)
204
- throw new ShopifyFailed('the shop came in an unknown form');
205
+ if (!info.success) {
206
+ // The fields name what did not hold; their values stay out of the log.
207
+ const fields = info.error.issues.map((issue) => issue.path.join('.') || 'the answer');
208
+ throw new ShopifyFailed(`the shop came in an unknown form: ${fields.join(', ')}`);
209
+ }
205
210
  return {
206
211
  shopId: info.data.shop.id,
207
212
  appId: info.data.currentAppInstallation.app.id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tollwyn/baukasten",
3
- "version": "1.3.2",
3
+ "version": "1.3.4",
4
4
  "description": "What every product built on this kit shares: configuration, log and server, database with two-layer migrations, health, accounts with sessions and API keys, limits, mail, payment through Stripe, the numbers for sales, the frame and pages, the stubs that hang them into a product and the check of a product, and the tools to test one, its connection test among them; and for a Shopify app its installation with tokens, the frame of the admin, its webhooks, its plan through the Partner API and its privacy text.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -60,35 +60,35 @@
60
60
  "svelte": "^5.57.0"
61
61
  },
62
62
  "dependencies": {
63
- "nodemailer": "10.0.16",
63
+ "nodemailer": "10.1.4",
64
64
  "pg": "8.23.1",
65
- "smol-toml": "1.9.0",
65
+ "smol-toml": "1.9.1",
66
66
  "stripe": "22.6.2",
67
- "zod": "4.6.5"
67
+ "zod": "4.6.7"
68
68
  },
69
69
  "devDependencies": {
70
- "@eslint-community/eslint-plugin-eslint-comments": "4.7.2",
70
+ "@eslint-community/eslint-plugin-eslint-comments": "4.8.1",
71
71
  "@eslint/js": "10.0.1",
72
- "@playwright/test": "1.62.1",
72
+ "@playwright/test": "1.64.1",
73
73
  "@sveltejs/kit": "2.70.3",
74
74
  "@sveltejs/package": "2.5.8",
75
- "@sveltejs/vite-plugin-svelte": "7.3.0",
76
- "@types/node": "24.19.1",
75
+ "@sveltejs/vite-plugin-svelte": "7.3.1",
76
+ "@types/node": "24.19.2",
77
77
  "@types/pg": "8.23.1",
78
78
  "@types/smtp-server": "3.5.13",
79
- "eslint": "10.9.1",
79
+ "eslint": "10.12.0",
80
80
  "eslint-config-prettier": "10.1.8",
81
- "eslint-plugin-svelte": "3.23.0",
82
- "globals": "17.12.0",
83
- "prettier": "3.9.6",
81
+ "eslint-plugin-svelte": "3.23.1",
82
+ "globals": "17.13.0",
83
+ "prettier": "3.9.10",
84
84
  "prettier-plugin-svelte": "4.1.1",
85
- "smtp-server": "3.19.17",
85
+ "smtp-server": "3.19.24",
86
86
  "svelte": "5.57.2",
87
87
  "svelte-check": "4.7.6",
88
88
  "typescript": "6.0.3",
89
- "typescript-eslint": "8.69.0",
90
- "vite": "8.2.4",
91
- "vitest": "5.0.3"
89
+ "typescript-eslint": "8.71.2",
90
+ "vite": "8.3.4",
91
+ "vitest": "5.0.4"
92
92
  },
93
93
  "overrides": {
94
94
  "cookie": "0.7.0"