@sveltejs/adapter-vercel 3.0.0 → 3.0.1

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.
Files changed (2) hide show
  1. package/index.js +4 -8
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -224,7 +224,7 @@ const plugin = function (defaults = {}) {
224
224
 
225
225
  if (ignored_isr.size) {
226
226
  builder.log.warn(
227
- `\nWarning: The following routes have an ISR config which is ignored because the route is prerendered:`
227
+ '\nWarning: The following routes have an ISR config which is ignored because the route is prerendered:'
228
228
  );
229
229
 
230
230
  for (const ignored of ignored_isr) {
@@ -575,18 +575,14 @@ function validate_vercel_json(builder, vercel_config) {
575
575
  continue;
576
576
  }
577
577
 
578
- for (const route of valid_routes) {
579
- if (route.pattern.test(path)) {
580
- continue;
581
- }
578
+ if (!valid_routes.some((route) => route.pattern.test(path))) {
579
+ unmatched_paths.push(path);
582
580
  }
583
-
584
- unmatched_paths.push(path);
585
581
  }
586
582
 
587
583
  if (unmatched_paths.length) {
588
584
  builder.log.warn(
589
- `\nWarning: vercel.json defines cron tasks that use paths that do not correspond to an API route with a GET handler (ignore this if the request is handled in your \`handle\` hook):`
585
+ '\nWarning: vercel.json defines cron tasks that use paths that do not correspond to an API route with a GET handler (ignore this if the request is handled in your `handle` hook):'
590
586
  );
591
587
 
592
588
  for (const path of unmatched_paths) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltejs/adapter-vercel",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "A SvelteKit adapter that creates a Vercel app",
5
5
  "repository": {
6
6
  "type": "git",
@@ -32,7 +32,7 @@
32
32
  "@types/node": "^16.18.6",
33
33
  "typescript": "^4.9.4",
34
34
  "vitest": "^0.31.0",
35
- "@sveltejs/kit": "^1.17.0"
35
+ "@sveltejs/kit": "^1.20.1"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "@sveltejs/kit": "^1.5.0"