@docmana/sdk 0.39.0 → 0.40.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.
- package/CHANGELOG.md +9 -0
- package/README.md +6 -1
- package/dist/cli.mjs +17 -1
- package/dist/cli.mjs.map +1 -1
- package/dist/errors.d.ts +4 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +17 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -1
- package/dist/index.mjs.map +1 -1
- package/dist/reviews.d.ts +11 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -654,12 +654,28 @@ function reviewConflictDetails(raw) {
|
|
|
654
654
|
const actor = isRecord(raw.decidedBy) ? raw.decidedBy : {};
|
|
655
655
|
const id = text(actor.id, 200);
|
|
656
656
|
const name = text(actor.name, 200);
|
|
657
|
+
const profile = {
|
|
658
|
+
firstName: text(actor.firstName, 200),
|
|
659
|
+
lastName: text(actor.lastName, 200),
|
|
660
|
+
email: text(actor.email, 200)
|
|
661
|
+
};
|
|
657
662
|
const source = actor.source === "integrator" || actor.source === "token" ? actor.source : null;
|
|
658
|
-
const decidedBy =
|
|
663
|
+
const decidedBy = [
|
|
664
|
+
id,
|
|
665
|
+
name,
|
|
666
|
+
...Object.values(profile),
|
|
667
|
+
source
|
|
668
|
+
].some((part) => part !== null) ? {
|
|
659
669
|
...id !== null ? { id } : {},
|
|
660
670
|
...name !== null ? { name } : {},
|
|
661
671
|
...source ? { source } : {}
|
|
662
672
|
} : null;
|
|
673
|
+
if (decidedBy) {
|
|
674
|
+
for (const [key, value] of Object.entries(profile)) {
|
|
675
|
+
if (value !== null)
|
|
676
|
+
Object.defineProperty(decidedBy, key, { value, writable: true, configurable: true });
|
|
677
|
+
}
|
|
678
|
+
}
|
|
663
679
|
const currentVersion = version(raw.currentVersion) ?? version(raw.version);
|
|
664
680
|
const decidedAt = text(raw.decidedAt, 40) ?? text(raw.submittedAt, 40);
|
|
665
681
|
return {
|