@json-to-office/core-docx 0.9.0 → 0.12.0

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.
@@ -6260,9 +6260,10 @@ async function generateChart(config, servicesConfig) {
6260
6260
  b64: true,
6261
6261
  scale: config.scale
6262
6262
  };
6263
+ const resolvedHeaders = typeof servicesConfig?.headers === "function" ? await servicesConfig.headers(requestBody) : servicesConfig?.headers;
6263
6264
  const headers = {
6264
6265
  "Content-Type": "application/json",
6265
- ...servicesConfig?.headers
6266
+ ...resolvedHeaders
6266
6267
  };
6267
6268
  const response = await fetch(`${serverUrl}/export`, {
6268
6269
  method: "POST",