axios 1.6.7 → 1.6.8

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.

Potentially problematic release.


This version of axios might be problematic. Click here for more details.

@@ -1,4 +1,4 @@
1
- // Axios v1.6.7 Copyright (c) 2024 Matt Zabriskie and contributors
1
+ // Axios v1.6.8 Copyright (c) 2024 Matt Zabriskie and contributors
2
2
  'use strict';
3
3
 
4
4
  function bind(fn, thisArg) {
@@ -2553,7 +2553,7 @@ function dispatchRequest(config) {
2553
2553
  });
2554
2554
  }
2555
2555
 
2556
- const headersToObject = (thing) => thing instanceof AxiosHeaders$1 ? thing.toJSON() : thing;
2556
+ const headersToObject = (thing) => thing instanceof AxiosHeaders$1 ? { ...thing } : thing;
2557
2557
 
2558
2558
  /**
2559
2559
  * Config-specific merge-function which creates a new config-object
@@ -2655,7 +2655,7 @@ function mergeConfig(config1, config2) {
2655
2655
  return config;
2656
2656
  }
2657
2657
 
2658
- const VERSION = "1.6.7";
2658
+ const VERSION = "1.6.8";
2659
2659
 
2660
2660
  const validators$1 = {};
2661
2661