@sveltejs/kit 1.30.1 → 1.30.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltejs/kit",
3
- "version": "1.30.1",
3
+ "version": "1.30.2",
4
4
  "description": "The fastest way to build Svelte apps",
5
5
  "repository": {
6
6
  "type": "git",
@@ -216,12 +216,11 @@ async function call_action(event, actions) {
216
216
 
217
217
  const action = actions[name];
218
218
  if (!action) {
219
- throw error(404, `No action with name '${name}' found`);
219
+ throw new Error(`No action with name '${name}' found`);
220
220
  }
221
221
 
222
222
  if (!is_form_content_type(event.request)) {
223
- throw error(
224
- 415,
223
+ throw new Error(
225
224
  `Actions expect form-encoded data (received ${event.request.headers.get('content-type')})`
226
225
  );
227
226
  }
package/src/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  // generated during release, do not modify
2
2
 
3
3
  /** @type {string} */
4
- export const VERSION = '1.30.1';
4
+ export const VERSION = '1.30.2';