vite-plugin-vercel 11.0.0-beta.17 → 11.0.0-beta.19

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/dist/vite.js +4 -4
  2. package/package.json +1 -1
package/dist/vite.js CHANGED
@@ -612,7 +612,7 @@ function loaderPlugin(pluginConfig) {
612
612
  ${getOriginalRequest.toString()}
613
613
 
614
614
  const fn = (...args) => {
615
- Object.assign(args[0], getOriginalRequest(request));
615
+ Object.assign(args[0], getOriginalRequest(args[0]));
616
616
  return mod.fetch(...args);
617
617
  };
618
618
 
@@ -642,7 +642,7 @@ ${getOriginalRequest.toString()}
642
642
  if (mod?.fetch) {
643
643
  const ori = mod.fetch;
644
644
  mod.fetch = (...args) => {
645
- Object.assign(args[0], getOriginalRequest(request));
645
+ Object.assign(args[0], getOriginalRequest(args[0]));
646
646
  return ori(...args);
647
647
  }
648
648
  }
@@ -797,8 +797,8 @@ function getConfig(pluginConfig) {
797
797
  });
798
798
  }
799
799
  function wrapRouteInParentheses(route) {
800
- if (!route.dest || route.dest.match(/^\(.*\)$/) || route.dest.match(/^\^\(.*\)\$$/)) return;
801
- route.dest = `(${route.dest})`;
800
+ if (!route.src || !route.dest || route.src.match(/^\(.*\)$/) || route.src.match(/^\^\(.*\)\$$/)) return;
801
+ route.src = `(${route.src})`;
802
802
  }
803
803
 
804
804
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-vercel",
3
- "version": "11.0.0-beta.17",
3
+ "version": "11.0.0-beta.19",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",