@treeviz/gedcom-parser 1.0.17 → 1.0.18

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.
@@ -5748,7 +5748,7 @@ var createIndi = (gedcom, id, main, parent) => {
5748
5748
 
5749
5749
  // package.json
5750
5750
  var package_default = {
5751
- version: "1.0.17"};
5751
+ version: "1.0.18"};
5752
5752
 
5753
5753
  // src/utils/get-product-details.ts
5754
5754
  var getVersion = () => package_default.version;
@@ -6176,7 +6176,7 @@ var GedCom = class extends Common {
6176
6176
  });
6177
6177
  const avgLifespan = lifespans.length > 0 ? lifespans.reduce((sum, age) => sum + age, 0) / lifespans.length : null;
6178
6178
  const firstPerson = indis?.getFirstEvent();
6179
- const firstBirth = firstPerson?.BIRT.index(0);
6179
+ const firstBirth = firstPerson?.BIRT?.index(0);
6180
6180
  const firstDeath = firstPerson?.DEAT?.index(0);
6181
6181
  let firstPersonEvent = null;
6182
6182
  const firstBirthDate = firstBirth?.DATE?.rawValue;
package/dist/cli/index.js CHANGED
@@ -5741,7 +5741,7 @@ var Families = class _Families extends List {
5741
5741
 
5742
5742
  // package.json
5743
5743
  var package_default = {
5744
- version: "1.0.17"};
5744
+ version: "1.0.18"};
5745
5745
 
5746
5746
  // src/utils/get-product-details.ts
5747
5747
  var isDevelopment = () => {
@@ -6172,7 +6172,7 @@ var GedCom = class extends Common {
6172
6172
  });
6173
6173
  const avgLifespan = lifespans.length > 0 ? lifespans.reduce((sum, age) => sum + age, 0) / lifespans.length : null;
6174
6174
  const firstPerson = indis?.getFirstEvent();
6175
- const firstBirth = firstPerson?.BIRT.index(0);
6175
+ const firstBirth = firstPerson?.BIRT?.index(0);
6176
6176
  const firstDeath = firstPerson?.DEAT?.index(0);
6177
6177
  let firstPersonEvent = null;
6178
6178
  const firstBirthDate = firstBirth?.DATE?.rawValue;
package/dist/index.js CHANGED
@@ -6134,7 +6134,7 @@ var Families = class _Families extends List {
6134
6134
  // package.json
6135
6135
  var package_default = {
6136
6136
  name: "@treeviz/gedcom-parser",
6137
- version: "1.0.17"};
6137
+ version: "1.0.18"};
6138
6138
 
6139
6139
  // src/utils/get-product-details.ts
6140
6140
  var isDevelopment = () => {
@@ -6566,7 +6566,7 @@ var GedCom = class extends Common {
6566
6566
  });
6567
6567
  const avgLifespan = lifespans.length > 0 ? lifespans.reduce((sum, age) => sum + age, 0) / lifespans.length : null;
6568
6568
  const firstPerson = indis?.getFirstEvent();
6569
- const firstBirth = firstPerson?.BIRT.index(0);
6569
+ const firstBirth = firstPerson?.BIRT?.index(0);
6570
6570
  const firstDeath = firstPerson?.DEAT?.index(0);
6571
6571
  let firstPersonEvent = null;
6572
6572
  const firstBirthDate = firstBirth?.DATE?.rawValue;
@@ -5970,7 +5970,7 @@ var isCommonDate = (value) => {
5970
5970
  // package.json
5971
5971
  var package_default = {
5972
5972
  name: "@treeviz/gedcom-parser",
5973
- version: "1.0.17"};
5973
+ version: "1.0.18"};
5974
5974
 
5975
5975
  // src/utils/get-product-details.ts
5976
5976
  var isDevelopment = () => {
@@ -6402,7 +6402,7 @@ var GedCom = class extends Common {
6402
6402
  });
6403
6403
  const avgLifespan = lifespans.length > 0 ? lifespans.reduce((sum, age) => sum + age, 0) / lifespans.length : null;
6404
6404
  const firstPerson = indis?.getFirstEvent();
6405
- const firstBirth = firstPerson?.BIRT.index(0);
6405
+ const firstBirth = firstPerson?.BIRT?.index(0);
6406
6406
  const firstDeath = firstPerson?.DEAT?.index(0);
6407
6407
  let firstPersonEvent = null;
6408
6408
  const firstBirthDate = firstBirth?.DATE?.rawValue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treeviz/gedcom-parser",
3
- "version": "1.0.17",
3
+ "version": "1.0.18",
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",