@deploybaseline/microsoft 0.14.0 → 0.14.1

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.
@@ -38,4 +38,4 @@ var manifest = {
38
38
  export {
39
39
  manifest
40
40
  };
41
- //# sourceMappingURL=chunk-MKHMZLMO.js.map
41
+ //# sourceMappingURL=chunk-PBJS3RQA.js.map
package/dist/index.js CHANGED
@@ -32,7 +32,7 @@ import {
32
32
  } from "./chunk-G7326MH2.js";
33
33
  import {
34
34
  manifest
35
- } from "./chunk-MKHMZLMO.js";
35
+ } from "./chunk-PBJS3RQA.js";
36
36
  import {
37
37
  ATTENDEE_EMPTY_BODY,
38
38
  CALENDAR_COLORS,
@@ -54787,7 +54787,7 @@ function entityOf(ctx, node) {
54787
54787
  case "site":
54788
54788
  return siteEntity(ctx);
54789
54789
  case "list":
54790
- return listEntity(ctx, node.list);
54790
+ return expandList2(ctx, node.list, listEntity(ctx, node.list));
54791
54791
  case "item":
54792
54792
  return expandItem(
54793
54793
  ctx,
@@ -54839,6 +54839,23 @@ function entityOf(ctx, node) {
54839
54839
  function expandSet(ctx) {
54840
54840
  return new Set(expandOf(ctx).map((x) => x.split("/")[0].toLowerCase()));
54841
54841
  }
54842
+ function expandList2(ctx, list2, e) {
54843
+ const ex = expandSet(ctx);
54844
+ if (!ex.size) {
54845
+ return e;
54846
+ }
54847
+ e.expanded = {};
54848
+ if (ex.has("fields")) {
54849
+ e.expanded.Fields = list2.fields.map((f) => fieldEntity(ctx, f, list2));
54850
+ }
54851
+ if (ex.has("contenttypes")) {
54852
+ e.expanded.ContentTypes = list2.contentTypes.map((c) => contentTypeEntity(ctx, c, list2));
54853
+ }
54854
+ if (ex.has("rootfolder")) {
54855
+ e.expanded.RootFolder = folderEntity(ctx, list2, "root");
54856
+ }
54857
+ return e;
54858
+ }
54842
54859
  function expandItem(ctx, list2, item, e) {
54843
54860
  const ex = expandOf(ctx);
54844
54861
  if (!ex.length) {