@astrojs/db 0.1.23 → 0.2.0

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.
@@ -157,6 +157,9 @@ async function prepareMigrateQuery({
157
157
  }),
158
158
  body: JSON.stringify(requestBody)
159
159
  });
160
+ if (result.status >= 400) {
161
+ throw new Error(await result.text());
162
+ }
160
163
  return await result.json();
161
164
  }
162
165
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrojs/db",
3
- "version": "0.1.23",
3
+ "version": "0.2.0",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -64,8 +64,8 @@
64
64
  "mocha": "^10.2.0",
65
65
  "typescript": "^5.2.2",
66
66
  "vite": "^4.4.11",
67
- "astro-scripts": "0.0.14",
68
- "astro": "4.2.4"
67
+ "astro": "4.2.4",
68
+ "astro-scripts": "0.0.14"
69
69
  },
70
70
  "scripts": {
71
71
  "build": "astro-scripts build \"src/**/*.ts\" && tsc",