@fileverse-dev/formulajs 4.4.11-mod-68-patch-8 → 4.4.11-mod-68-patch-9

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/lib/cjs/index.cjs CHANGED
@@ -13246,7 +13246,6 @@ function getUrlAndHeaders({ url, serviceName, headers = {} }) {
13246
13246
  HEADERS: {
13247
13247
  ...headers,
13248
13248
  method: 'GET',
13249
- 'Content-Type': 'application/json'
13250
13249
  }
13251
13250
  };
13252
13251
  }
@@ -18217,8 +18216,9 @@ async function COINGECKO() {
18217
18216
  break
18218
18217
  }
18219
18218
  }
18219
+ const {URL: finalUrl, HEADERS} = getUrlAndHeaders({url, serviceName: 'Coingecko', headers});
18220
18220
 
18221
- const res = await fetch(url, { headers });
18221
+ const res = await fetch(finalUrl, { headers: HEADERS });
18222
18222
  const json = await res.json();
18223
18223
  if (!res.ok) {
18224
18224
  const msg = json?.status?.error_message || '';
package/lib/esm/index.mjs CHANGED
@@ -13244,7 +13244,6 @@ function getUrlAndHeaders({ url, serviceName, headers = {} }) {
13244
13244
  HEADERS: {
13245
13245
  ...headers,
13246
13246
  method: 'GET',
13247
- 'Content-Type': 'application/json'
13248
13247
  }
13249
13248
  };
13250
13249
  }
@@ -18215,8 +18214,9 @@ async function COINGECKO() {
18215
18214
  break
18216
18215
  }
18217
18216
  }
18217
+ const {URL: finalUrl, HEADERS} = getUrlAndHeaders({url, serviceName: 'Coingecko', headers});
18218
18218
 
18219
- const res = await fetch(url, { headers });
18219
+ const res = await fetch(finalUrl, { headers: HEADERS });
18220
18220
  const json = await res.json();
18221
18221
  if (!res.ok) {
18222
18222
  const msg = json?.status?.error_message || '';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/formulajs",
3
- "version": "4.4.11-mod-68-patch-8",
3
+ "version": "4.4.11-mod-68-patch-9",
4
4
  "description": "JavaScript implementation of most Microsoft Excel formula functions",
5
5
  "author": "Formulajs",
6
6
  "publishConfig": {