repo-util 1.23.2 → 1.24.2
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/package.json +2 -2
- package/src/repo-util-cli.mjs +4 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "repo-util",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.24.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"aggregation-repository-provider": "^5.2.36",
|
|
25
25
|
"bitbucket-repository-provider": "^4.2.10",
|
|
26
26
|
"commander": "^9.3.0",
|
|
27
|
-
"etag-cache-leveldb": "^1.2.
|
|
27
|
+
"etag-cache-leveldb": "^1.2.2",
|
|
28
28
|
"gitea-repository-provider": "^2.2.11",
|
|
29
29
|
"github-repository-provider": "^7.30.12",
|
|
30
30
|
"leveldown": "^6.1.1",
|
package/src/repo-util-cli.mjs
CHANGED
|
@@ -82,9 +82,10 @@ for (const o of [
|
|
|
82
82
|
.option("--trace", "log level trace")
|
|
83
83
|
.option("--debug", "log level debug")
|
|
84
84
|
.option("--no-cache", "cache requests")
|
|
85
|
-
.option("--statistics", "cache statistics")
|
|
85
|
+
.option("--statistics", "show cache statistics")
|
|
86
86
|
.option("--json", "output as json")
|
|
87
|
-
.option("--no-identifier", "do not output identifier, show
|
|
87
|
+
.option("--no-identifier", "do not output identifier, show attribute values only")
|
|
88
|
+
.option("--no-undefined", "do not output undefined attribute values")
|
|
88
89
|
.option("-a, --attribute <attributes>", "list attribute", a =>
|
|
89
90
|
a.split(",")
|
|
90
91
|
);
|
|
@@ -140,6 +141,7 @@ function listAttributes(object, attributes, options) {
|
|
|
140
141
|
} else if (value instanceof Set) {
|
|
141
142
|
value = [...value].join(" ");
|
|
142
143
|
} else if (value === undefined) {
|
|
144
|
+
if(options["undefined"])
|
|
143
145
|
value = "";
|
|
144
146
|
}
|
|
145
147
|
|