@fourlights/strapi-plugin-deep-populate 1.12.0 → 1.13.0-rc.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.
@@ -18508,7 +18508,7 @@ const register = async ({ strapi: strapi2 }) => {
18508
18508
  return result;
18509
18509
  });
18510
18510
  };
18511
- const version = "1.12.0";
18511
+ const version = "1.13.0-rc.0";
18512
18512
  const name = "@fourlights/strapi-plugin-deep-populate";
18513
18513
  const error = (msg, context = void 0) => strapi.log.error(`[${name}] ${msg}`, context);
18514
18514
  const warn = (msg, context = void 0) => strapi.log.warn(`[${name}] ${msg}`, context);
@@ -18681,7 +18681,14 @@ async function _populateDynamicZone({
18681
18681
  ...params
18682
18682
  });
18683
18683
  const currentPopulate = get__default.default(resolvedPopulate, [component]);
18684
- const mergedComponentPopulate = !currentPopulate && componentPopulate === true ? componentPopulate : merge__default.default({}, currentPopulate, sanitizeObject(componentPopulate));
18684
+ let mergedComponentPopulate;
18685
+ if (currentPopulate === void 0) {
18686
+ mergedComponentPopulate = typeof componentPopulate === "boolean" ? componentPopulate : sanitizeObject(componentPopulate);
18687
+ } else if (typeof currentPopulate === "boolean") {
18688
+ mergedComponentPopulate = typeof componentPopulate === "boolean" ? currentPopulate || componentPopulate : currentPopulate;
18689
+ } else if (typeof currentPopulate === "object") {
18690
+ mergedComponentPopulate = typeof componentPopulate === "object" ? merge__default.default(currentPopulate, sanitizeObject(componentPopulate)) : currentPopulate;
18691
+ }
18685
18692
  set__default.default(resolvedPopulate, [component], mergedComponentPopulate);
18686
18693
  }
18687
18694
  if (isEmpty(resolvedPopulate)) return void 0;
@@ -18480,7 +18480,7 @@ const register = async ({ strapi: strapi2 }) => {
18480
18480
  return result;
18481
18481
  });
18482
18482
  };
18483
- const version = "1.12.0";
18483
+ const version = "1.13.0-rc.0";
18484
18484
  const name = "@fourlights/strapi-plugin-deep-populate";
18485
18485
  const error = (msg, context = void 0) => strapi.log.error(`[${name}] ${msg}`, context);
18486
18486
  const warn = (msg, context = void 0) => strapi.log.warn(`[${name}] ${msg}`, context);
@@ -18653,7 +18653,14 @@ async function _populateDynamicZone({
18653
18653
  ...params
18654
18654
  });
18655
18655
  const currentPopulate = get$2(resolvedPopulate, [component]);
18656
- const mergedComponentPopulate = !currentPopulate && componentPopulate === true ? componentPopulate : merge$2({}, currentPopulate, sanitizeObject(componentPopulate));
18656
+ let mergedComponentPopulate;
18657
+ if (currentPopulate === void 0) {
18658
+ mergedComponentPopulate = typeof componentPopulate === "boolean" ? componentPopulate : sanitizeObject(componentPopulate);
18659
+ } else if (typeof currentPopulate === "boolean") {
18660
+ mergedComponentPopulate = typeof componentPopulate === "boolean" ? currentPopulate || componentPopulate : currentPopulate;
18661
+ } else if (typeof currentPopulate === "object") {
18662
+ mergedComponentPopulate = typeof componentPopulate === "object" ? merge$2(currentPopulate, sanitizeObject(componentPopulate)) : currentPopulate;
18663
+ }
18657
18664
  set$2(resolvedPopulate, [component], mergedComponentPopulate);
18658
18665
  }
18659
18666
  if (isEmpty(resolvedPopulate)) return void 0;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.12.0",
2
+ "version": "1.13.0-rc.0",
3
3
  "keywords": [
4
4
  "strapi",
5
5
  "strapi-plugin",