@docmana/sdk 0.39.0 → 0.40.0
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 +4 -0
- package/README.md +1 -1
- package/dist/cli.mjs +14 -1
- package/dist/cli.mjs.map +1 -1
- package/dist/errors.d.ts +3 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +14 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -1
- package/dist/index.mjs.map +1 -1
- package/dist/reviews.d.ts +7 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -654,10 +654,23 @@ 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 firstName = text(actor.firstName, 200);
|
|
658
|
+
const lastName = text(actor.lastName, 200);
|
|
659
|
+
const email = text(actor.email, 200);
|
|
657
660
|
const source = actor.source === "integrator" || actor.source === "token" ? actor.source : null;
|
|
658
|
-
const decidedBy =
|
|
661
|
+
const decidedBy = [
|
|
662
|
+
id,
|
|
663
|
+
name,
|
|
664
|
+
firstName,
|
|
665
|
+
lastName,
|
|
666
|
+
email,
|
|
667
|
+
source
|
|
668
|
+
].some((part) => part !== null) ? {
|
|
659
669
|
...id !== null ? { id } : {},
|
|
660
670
|
...name !== null ? { name } : {},
|
|
671
|
+
...firstName !== null ? { firstName } : {},
|
|
672
|
+
...lastName !== null ? { lastName } : {},
|
|
673
|
+
...email !== null ? { email } : {},
|
|
661
674
|
...source ? { source } : {}
|
|
662
675
|
} : null;
|
|
663
676
|
const currentVersion = version(raw.currentVersion) ?? version(raw.version);
|