@eluvio/elv-client-js 4.2.18 → 4.2.20
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 +1 -1
- package/src/client/ContentAccess.js +10 -3
package/package.json
CHANGED
|
@@ -711,13 +711,18 @@ exports.ProduceMetadataLinks = async function({
|
|
|
711
711
|
path="/",
|
|
712
712
|
metadata,
|
|
713
713
|
authorizationToken,
|
|
714
|
-
noAuth
|
|
714
|
+
noAuth,
|
|
715
|
+
log=false
|
|
715
716
|
}) {
|
|
716
717
|
path = UrlJoin(path || "").replace(/^\//, "").replace(/\/$/, "");
|
|
717
718
|
|
|
718
719
|
const Traverse = async (currentPath="") => {
|
|
719
720
|
const currentMetadata = !currentPath ? metadata : LodashGet(metadata, currentPath.split("/"));
|
|
720
721
|
|
|
722
|
+
if(log) {
|
|
723
|
+
console.log(path, currentPath, currentMetadata)
|
|
724
|
+
}
|
|
725
|
+
|
|
721
726
|
// Primitive
|
|
722
727
|
if(!currentMetadata || typeof currentMetadata !== "object") {
|
|
723
728
|
return;
|
|
@@ -747,7 +752,7 @@ exports.ProduceMetadataLinks = async function({
|
|
|
747
752
|
}
|
|
748
753
|
}
|
|
749
754
|
|
|
750
|
-
Traverse();
|
|
755
|
+
await Traverse();
|
|
751
756
|
|
|
752
757
|
return metadata;
|
|
753
758
|
};
|
|
@@ -868,6 +873,7 @@ exports.ContentObjectMetadata = async function({
|
|
|
868
873
|
resolveIgnoreErrors=false,
|
|
869
874
|
linkDepthLimit=1,
|
|
870
875
|
produceLinkUrls=false,
|
|
876
|
+
log=false
|
|
871
877
|
}) {
|
|
872
878
|
ValidateParameters({libraryId, objectId, versionHash});
|
|
873
879
|
|
|
@@ -938,7 +944,8 @@ exports.ContentObjectMetadata = async function({
|
|
|
938
944
|
path: metadataSubtree,
|
|
939
945
|
metadata,
|
|
940
946
|
authorizationToken,
|
|
941
|
-
noAuth
|
|
947
|
+
noAuth,
|
|
948
|
+
log
|
|
942
949
|
});
|
|
943
950
|
}
|
|
944
951
|
|