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

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 -6
  2. package/package.json +1 -1
package/dist/vite.js CHANGED
@@ -611,9 +611,8 @@ function loaderPlugin(pluginConfig) {
611
611
 
612
612
  ${getOriginalRequest.toString()}
613
613
 
614
- const fn = (...args) => {
615
- Object.assign(args[0], getOriginalRequest(args[0]));
616
- return mod.fetch(...args);
614
+ const fn = (r) => {
615
+ return mod.fetch(getOriginalRequest(r));
617
616
  };
618
617
 
619
618
  export default fn`;
@@ -641,9 +640,8 @@ ${getOriginalRequest.toString()}
641
640
 
642
641
  if (mod?.fetch) {
643
642
  const ori = mod.fetch;
644
- mod.fetch = (...args) => {
645
- Object.assign(args[0], getOriginalRequest(args[0]));
646
- return ori(...args);
643
+ mod.fetch = (r) => {
644
+ return ori(getOriginalRequest(r));
647
645
  }
648
646
  }
649
647
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-vercel",
3
- "version": "11.0.0-beta.19",
3
+ "version": "11.0.0-beta.20",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",