@wise/dynamic-flow-client 3.9.3 → 3.9.4

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/build/main.js CHANGED
@@ -319,16 +319,10 @@ var applyBaseUrl = (input, baseUrl) => typeof input === "string" && isRelativePa
319
319
  var mergeRequestInit = (init, additionalInit) => __spreadProps(__spreadValues(__spreadValues({}, init), additionalInit), {
320
320
  headers: mergeHeaders(init == null ? void 0 : init.headers, additionalInit == null ? void 0 : additionalInit.headers)
321
321
  });
322
- var mergeHeaders = (initHeaders, additionalHeaders) => {
323
- if (!initHeaders && !additionalHeaders) {
324
- return {};
325
- }
326
- const headers2 = new Headers(initHeaders);
327
- for (const [key, value] of Object.entries(additionalHeaders != null ? additionalHeaders : {})) {
328
- headers2.set(key, value);
329
- }
330
- return headers2;
331
- };
322
+ var mergeHeaders = (...headersInits) => headersInits.reduce(
323
+ (acc, headers2) => __spreadValues(__spreadValues({}, acc), Object.fromEntries(new Headers(headers2).entries())),
324
+ {}
325
+ );
332
326
 
333
327
  // src/i18n/de.json
334
328
  var de_default = {
@@ -7783,7 +7777,7 @@ var isPartialLocalValueMatch = (partialValue, component) => {
7783
7777
  const matchingKeys = allKeys.filter(
7784
7778
  (key) => !isNullish(partialValue[key]) && !isNullish(componentValue[key])
7785
7779
  );
7786
- return matchingKeys.every((key) => {
7780
+ return matchingKeys.length > 0 && matchingKeys.every((key) => {
7787
7781
  const componentForKey = getComponentForLocalValueKey(key, component);
7788
7782
  return componentForKey ? isPartialLocalValueMatch(partialValue[key], componentForKey) : false;
7789
7783
  });