pmcf 6.41.4 → 6.41.5

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.
Files changed (2) hide show
  1. package/bin/pmcf-info +11 -2
  2. package/package.json +1 -1
package/bin/pmcf-info CHANGED
@@ -1,5 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { extendingAttributeIterator } from "pacc";
3
+ import { AggregatedMap } from "aggregated-map";
4
+
3
5
  import { prepare } from "../src/cli.mjs";
4
6
 
5
7
  const { root, args, options } = await prepare({
@@ -34,6 +36,13 @@ function show(value, indent, options) {
34
36
  return;
35
37
  }
36
38
 
39
+ if (value instanceof AggregatedMap || value instanceof Map) {
40
+ for (const v of value.values()) {
41
+ show(v, indent + 1, options);
42
+ }
43
+ return;
44
+ }
45
+
37
46
  if (value instanceof Iterator || Array.isArray(value)) {
38
47
  for (const v of value) {
39
48
  show(v, indent + 1, options);
@@ -114,8 +123,8 @@ function show(value, indent, options) {
114
123
  } else {
115
124
  if (typeof v.get === "function") {
116
125
  console.log(name(attribute));
117
- for(const [k,o] of v) {
118
- show(o,indent + 2, options);
126
+ for (const [k, o] of v) {
127
+ show(o, indent + 2, options);
119
128
  }
120
129
  } else {
121
130
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "6.41.4",
3
+ "version": "6.41.5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },