@treeviz/gedcom-parser 1.0.21 → 1.0.22
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/dist/classes/index.js
CHANGED
|
@@ -4435,18 +4435,20 @@ var Indi = class extends Common {
|
|
|
4435
4435
|
if (!tree) {
|
|
4436
4436
|
return;
|
|
4437
4437
|
}
|
|
4438
|
-
const
|
|
4439
|
-
const
|
|
4440
|
-
const
|
|
4441
|
-
|
|
4438
|
+
const objeList = this.get("OBJE")?.toList();
|
|
4439
|
+
const birthObj = this.get("BIRT.OBJE")?.toList();
|
|
4440
|
+
const deathObj = this.get("DEAT.OBJE")?.toList();
|
|
4441
|
+
(this.get("FAMS")?.toValueList().values() ?? []).concat(this.get("FAMC")?.toValueList().values() ?? []).forEach((fam) => {
|
|
4442
|
+
objeList?.merge(birthObj).merge(deathObj).merge(fam?.get("MARR.OBJE"));
|
|
4442
4443
|
});
|
|
4443
|
-
|
|
4444
|
+
objeList?.forEach((o, index) => {
|
|
4444
4445
|
if (!o) {
|
|
4445
4446
|
return;
|
|
4446
4447
|
}
|
|
4447
4448
|
const obje = o;
|
|
4448
4449
|
const key = `@O${index}@`;
|
|
4449
4450
|
obje.standardizeMedia();
|
|
4451
|
+
const isPrimary = obje?.get("_PRIM")?.toValue() === "Y";
|
|
4450
4452
|
const url = obje?.get("FILE")?.toValue();
|
|
4451
4453
|
const title = obje?.get("NOTE")?.toValue() ?? "";
|
|
4452
4454
|
const type = obje?.get("FORM")?.toValue() ?? "raw";
|
|
@@ -4454,7 +4456,7 @@ var Indi = class extends Common {
|
|
|
4454
4456
|
if (url && imgId) {
|
|
4455
4457
|
const id = `${tree}-${this.id}-${imgId}`;
|
|
4456
4458
|
list[id] = {
|
|
4457
|
-
isPrimary
|
|
4459
|
+
isPrimary,
|
|
4458
4460
|
key,
|
|
4459
4461
|
id,
|
|
4460
4462
|
tree,
|
|
@@ -5883,7 +5885,7 @@ var createIndi = (gedcom, id, main, parent) => {
|
|
|
5883
5885
|
|
|
5884
5886
|
// package.json
|
|
5885
5887
|
var package_default = {
|
|
5886
|
-
version: "1.0.
|
|
5888
|
+
version: "1.0.22"};
|
|
5887
5889
|
|
|
5888
5890
|
// src/utils/get-product-details.ts
|
|
5889
5891
|
var getVersion = () => package_default.version;
|
package/dist/cli/index.js
CHANGED
|
@@ -2001,18 +2001,20 @@ var Indi = class extends Common {
|
|
|
2001
2001
|
if (!tree) {
|
|
2002
2002
|
return;
|
|
2003
2003
|
}
|
|
2004
|
-
const
|
|
2005
|
-
const
|
|
2006
|
-
const
|
|
2007
|
-
|
|
2004
|
+
const objeList = this.get("OBJE")?.toList();
|
|
2005
|
+
const birthObj = this.get("BIRT.OBJE")?.toList();
|
|
2006
|
+
const deathObj = this.get("DEAT.OBJE")?.toList();
|
|
2007
|
+
(this.get("FAMS")?.toValueList().values() ?? []).concat(this.get("FAMC")?.toValueList().values() ?? []).forEach((fam) => {
|
|
2008
|
+
objeList?.merge(birthObj).merge(deathObj).merge(fam?.get("MARR.OBJE"));
|
|
2008
2009
|
});
|
|
2009
|
-
|
|
2010
|
+
objeList?.forEach((o, index) => {
|
|
2010
2011
|
if (!o) {
|
|
2011
2012
|
return;
|
|
2012
2013
|
}
|
|
2013
2014
|
const obje = o;
|
|
2014
2015
|
const key = `@O${index}@`;
|
|
2015
2016
|
obje.standardizeMedia();
|
|
2017
|
+
const isPrimary = obje?.get("_PRIM")?.toValue() === "Y";
|
|
2016
2018
|
const url = obje?.get("FILE")?.toValue();
|
|
2017
2019
|
const title = obje?.get("NOTE")?.toValue() ?? "";
|
|
2018
2020
|
const type = obje?.get("FORM")?.toValue() ?? "raw";
|
|
@@ -2020,7 +2022,7 @@ var Indi = class extends Common {
|
|
|
2020
2022
|
if (url && imgId) {
|
|
2021
2023
|
const id = `${tree}-${this.id}-${imgId}`;
|
|
2022
2024
|
list[id] = {
|
|
2023
|
-
isPrimary
|
|
2025
|
+
isPrimary,
|
|
2024
2026
|
key,
|
|
2025
2027
|
id,
|
|
2026
2028
|
tree,
|
|
@@ -5876,7 +5878,7 @@ var Families = class _Families extends List {
|
|
|
5876
5878
|
|
|
5877
5879
|
// package.json
|
|
5878
5880
|
var package_default = {
|
|
5879
|
-
version: "1.0.
|
|
5881
|
+
version: "1.0.22"};
|
|
5880
5882
|
|
|
5881
5883
|
// src/utils/get-product-details.ts
|
|
5882
5884
|
var isDevelopment = () => {
|
package/dist/constants/index.js
CHANGED
|
@@ -2596,18 +2596,20 @@ var Indi = class extends Common {
|
|
|
2596
2596
|
if (!tree) {
|
|
2597
2597
|
return;
|
|
2598
2598
|
}
|
|
2599
|
-
const
|
|
2600
|
-
const
|
|
2601
|
-
const
|
|
2602
|
-
|
|
2599
|
+
const objeList = this.get("OBJE")?.toList();
|
|
2600
|
+
const birthObj = this.get("BIRT.OBJE")?.toList();
|
|
2601
|
+
const deathObj = this.get("DEAT.OBJE")?.toList();
|
|
2602
|
+
(this.get("FAMS")?.toValueList().values() ?? []).concat(this.get("FAMC")?.toValueList().values() ?? []).forEach((fam) => {
|
|
2603
|
+
objeList?.merge(birthObj).merge(deathObj).merge(fam?.get("MARR.OBJE"));
|
|
2603
2604
|
});
|
|
2604
|
-
|
|
2605
|
+
objeList?.forEach((o, index) => {
|
|
2605
2606
|
if (!o) {
|
|
2606
2607
|
return;
|
|
2607
2608
|
}
|
|
2608
2609
|
const obje = o;
|
|
2609
2610
|
const key = `@O${index}@`;
|
|
2610
2611
|
obje.standardizeMedia();
|
|
2612
|
+
const isPrimary = obje?.get("_PRIM")?.toValue() === "Y";
|
|
2611
2613
|
const url = obje?.get("FILE")?.toValue();
|
|
2612
2614
|
const title = obje?.get("NOTE")?.toValue() ?? "";
|
|
2613
2615
|
const type = obje?.get("FORM")?.toValue() ?? "raw";
|
|
@@ -2615,7 +2617,7 @@ var Indi = class extends Common {
|
|
|
2615
2617
|
if (url && imgId) {
|
|
2616
2618
|
const id = `${tree}-${this.id}-${imgId}`;
|
|
2617
2619
|
list[id] = {
|
|
2618
|
-
isPrimary
|
|
2620
|
+
isPrimary,
|
|
2619
2621
|
key,
|
|
2620
2622
|
id,
|
|
2621
2623
|
tree,
|
package/dist/factories/index.js
CHANGED
|
@@ -3023,18 +3023,20 @@ var Indi = class extends Common {
|
|
|
3023
3023
|
if (!tree) {
|
|
3024
3024
|
return;
|
|
3025
3025
|
}
|
|
3026
|
-
const
|
|
3027
|
-
const
|
|
3028
|
-
const
|
|
3029
|
-
|
|
3026
|
+
const objeList = this.get("OBJE")?.toList();
|
|
3027
|
+
const birthObj = this.get("BIRT.OBJE")?.toList();
|
|
3028
|
+
const deathObj = this.get("DEAT.OBJE")?.toList();
|
|
3029
|
+
(this.get("FAMS")?.toValueList().values() ?? []).concat(this.get("FAMC")?.toValueList().values() ?? []).forEach((fam) => {
|
|
3030
|
+
objeList?.merge(birthObj).merge(deathObj).merge(fam?.get("MARR.OBJE"));
|
|
3030
3031
|
});
|
|
3031
|
-
|
|
3032
|
+
objeList?.forEach((o, index) => {
|
|
3032
3033
|
if (!o) {
|
|
3033
3034
|
return;
|
|
3034
3035
|
}
|
|
3035
3036
|
const obje = o;
|
|
3036
3037
|
const key = `@O${index}@`;
|
|
3037
3038
|
obje.standardizeMedia();
|
|
3039
|
+
const isPrimary = obje?.get("_PRIM")?.toValue() === "Y";
|
|
3038
3040
|
const url = obje?.get("FILE")?.toValue();
|
|
3039
3041
|
const title = obje?.get("NOTE")?.toValue() ?? "";
|
|
3040
3042
|
const type = obje?.get("FORM")?.toValue() ?? "raw";
|
|
@@ -3042,7 +3044,7 @@ var Indi = class extends Common {
|
|
|
3042
3044
|
if (url && imgId) {
|
|
3043
3045
|
const id = `${tree}-${this.id}-${imgId}`;
|
|
3044
3046
|
list[id] = {
|
|
3045
|
-
isPrimary
|
|
3047
|
+
isPrimary,
|
|
3046
3048
|
key,
|
|
3047
3049
|
id,
|
|
3048
3050
|
tree,
|
package/dist/index.js
CHANGED
|
@@ -2101,18 +2101,20 @@ var Indi = class extends Common {
|
|
|
2101
2101
|
if (!tree) {
|
|
2102
2102
|
return;
|
|
2103
2103
|
}
|
|
2104
|
-
const
|
|
2105
|
-
const
|
|
2106
|
-
const
|
|
2107
|
-
|
|
2104
|
+
const objeList = this.get("OBJE")?.toList();
|
|
2105
|
+
const birthObj = this.get("BIRT.OBJE")?.toList();
|
|
2106
|
+
const deathObj = this.get("DEAT.OBJE")?.toList();
|
|
2107
|
+
(this.get("FAMS")?.toValueList().values() ?? []).concat(this.get("FAMC")?.toValueList().values() ?? []).forEach((fam) => {
|
|
2108
|
+
objeList?.merge(birthObj).merge(deathObj).merge(fam?.get("MARR.OBJE"));
|
|
2108
2109
|
});
|
|
2109
|
-
|
|
2110
|
+
objeList?.forEach((o, index) => {
|
|
2110
2111
|
if (!o) {
|
|
2111
2112
|
return;
|
|
2112
2113
|
}
|
|
2113
2114
|
const obje = o;
|
|
2114
2115
|
const key = `@O${index}@`;
|
|
2115
2116
|
obje.standardizeMedia();
|
|
2117
|
+
const isPrimary = obje?.get("_PRIM")?.toValue() === "Y";
|
|
2116
2118
|
const url = obje?.get("FILE")?.toValue();
|
|
2117
2119
|
const title = obje?.get("NOTE")?.toValue() ?? "";
|
|
2118
2120
|
const type = obje?.get("FORM")?.toValue() ?? "raw";
|
|
@@ -2120,7 +2122,7 @@ var Indi = class extends Common {
|
|
|
2120
2122
|
if (url && imgId) {
|
|
2121
2123
|
const id = `${tree}-${this.id}-${imgId}`;
|
|
2122
2124
|
list[id] = {
|
|
2123
|
-
isPrimary
|
|
2125
|
+
isPrimary,
|
|
2124
2126
|
key,
|
|
2125
2127
|
id,
|
|
2126
2128
|
tree,
|
|
@@ -6269,7 +6271,7 @@ var Families = class _Families extends List {
|
|
|
6269
6271
|
// package.json
|
|
6270
6272
|
var package_default = {
|
|
6271
6273
|
name: "@treeviz/gedcom-parser",
|
|
6272
|
-
version: "1.0.
|
|
6274
|
+
version: "1.0.22"};
|
|
6273
6275
|
|
|
6274
6276
|
// src/utils/get-product-details.ts
|
|
6275
6277
|
var isDevelopment = () => {
|
|
@@ -4187,18 +4187,20 @@ var Indi = class extends Common {
|
|
|
4187
4187
|
if (!tree) {
|
|
4188
4188
|
return;
|
|
4189
4189
|
}
|
|
4190
|
-
const
|
|
4191
|
-
const
|
|
4192
|
-
const
|
|
4193
|
-
|
|
4190
|
+
const objeList = this.get("OBJE")?.toList();
|
|
4191
|
+
const birthObj = this.get("BIRT.OBJE")?.toList();
|
|
4192
|
+
const deathObj = this.get("DEAT.OBJE")?.toList();
|
|
4193
|
+
(this.get("FAMS")?.toValueList().values() ?? []).concat(this.get("FAMC")?.toValueList().values() ?? []).forEach((fam) => {
|
|
4194
|
+
objeList?.merge(birthObj).merge(deathObj).merge(fam?.get("MARR.OBJE"));
|
|
4194
4195
|
});
|
|
4195
|
-
|
|
4196
|
+
objeList?.forEach((o, index) => {
|
|
4196
4197
|
if (!o) {
|
|
4197
4198
|
return;
|
|
4198
4199
|
}
|
|
4199
4200
|
const obje = o;
|
|
4200
4201
|
const key = `@O${index}@`;
|
|
4201
4202
|
obje.standardizeMedia();
|
|
4203
|
+
const isPrimary = obje?.get("_PRIM")?.toValue() === "Y";
|
|
4202
4204
|
const url = obje?.get("FILE")?.toValue();
|
|
4203
4205
|
const title = obje?.get("NOTE")?.toValue() ?? "";
|
|
4204
4206
|
const type = obje?.get("FORM")?.toValue() ?? "raw";
|
|
@@ -4206,7 +4208,7 @@ var Indi = class extends Common {
|
|
|
4206
4208
|
if (url && imgId) {
|
|
4207
4209
|
const id = `${tree}-${this.id}-${imgId}`;
|
|
4208
4210
|
list[id] = {
|
|
4209
|
-
isPrimary
|
|
4211
|
+
isPrimary,
|
|
4210
4212
|
key,
|
|
4211
4213
|
id,
|
|
4212
4214
|
tree,
|
package/dist/utils/index.js
CHANGED
|
@@ -2813,18 +2813,20 @@ var Indi = class extends Common {
|
|
|
2813
2813
|
if (!tree) {
|
|
2814
2814
|
return;
|
|
2815
2815
|
}
|
|
2816
|
-
const
|
|
2817
|
-
const
|
|
2818
|
-
const
|
|
2819
|
-
|
|
2816
|
+
const objeList = this.get("OBJE")?.toList();
|
|
2817
|
+
const birthObj = this.get("BIRT.OBJE")?.toList();
|
|
2818
|
+
const deathObj = this.get("DEAT.OBJE")?.toList();
|
|
2819
|
+
(this.get("FAMS")?.toValueList().values() ?? []).concat(this.get("FAMC")?.toValueList().values() ?? []).forEach((fam) => {
|
|
2820
|
+
objeList?.merge(birthObj).merge(deathObj).merge(fam?.get("MARR.OBJE"));
|
|
2820
2821
|
});
|
|
2821
|
-
|
|
2822
|
+
objeList?.forEach((o, index) => {
|
|
2822
2823
|
if (!o) {
|
|
2823
2824
|
return;
|
|
2824
2825
|
}
|
|
2825
2826
|
const obje = o;
|
|
2826
2827
|
const key = `@O${index}@`;
|
|
2827
2828
|
obje.standardizeMedia();
|
|
2829
|
+
const isPrimary = obje?.get("_PRIM")?.toValue() === "Y";
|
|
2828
2830
|
const url = obje?.get("FILE")?.toValue();
|
|
2829
2831
|
const title = obje?.get("NOTE")?.toValue() ?? "";
|
|
2830
2832
|
const type = obje?.get("FORM")?.toValue() ?? "raw";
|
|
@@ -2832,7 +2834,7 @@ var Indi = class extends Common {
|
|
|
2832
2834
|
if (url && imgId) {
|
|
2833
2835
|
const id = `${tree}-${this.id}-${imgId}`;
|
|
2834
2836
|
list[id] = {
|
|
2835
|
-
isPrimary
|
|
2837
|
+
isPrimary,
|
|
2836
2838
|
key,
|
|
2837
2839
|
id,
|
|
2838
2840
|
tree,
|
|
@@ -6105,7 +6107,7 @@ var isCommonDate = (value) => {
|
|
|
6105
6107
|
// package.json
|
|
6106
6108
|
var package_default = {
|
|
6107
6109
|
name: "@treeviz/gedcom-parser",
|
|
6108
|
-
version: "1.0.
|
|
6110
|
+
version: "1.0.22"};
|
|
6109
6111
|
|
|
6110
6112
|
// src/utils/get-product-details.ts
|
|
6111
6113
|
var isDevelopment = () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@treeviz/gedcom-parser",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.22",
|
|
4
4
|
"description": "Lightweight, pluggable GEDCOM parser for JavaScript/TypeScript with optional caching and place matching. Zero browser dependencies.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|