@treeviz/gedcom-parser 1.0.22 → 1.0.23
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.d.ts +1 -1
- package/dist/classes/index.js +5 -2
- package/dist/cli/index.js +5 -2
- package/dist/constants/index.d.ts +1 -1
- package/dist/constants/index.js +4 -1
- package/dist/factories/index.d.ts +2 -2
- package/dist/factories/index.js +4 -1
- package/dist/{index-BPEVN_DY.d.ts → index-CSjQRlxq.d.ts} +2 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.js +5 -2
- package/dist/interfaces/index.d.ts +1 -1
- package/dist/kinship-translator/index.d.ts +2 -2
- package/dist/kinship-translator/index.js +4 -1
- package/dist/{place-parser-CM0TJFj8.d.ts → place-parser-Dl5iva3h.d.ts} +2 -2
- package/dist/{place-translator-CRiaOO9v.d.ts → place-translator-BYX8180A.d.ts} +2 -2
- package/dist/structures/index.d.ts +2 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/utils/index.d.ts +3 -3
- package/dist/utils/index.js +5 -2
- package/package.json +1 -1
package/dist/classes/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { a as Common, b as CommonDate, c as CommonName, d as CommonNote, h as CustomTags, E as Existed, F as Fam, j as FamType, k as Families, l as FamilySearchMatch, m as FamilySearchSource, G as GedCom, p as GedComType, q as GenealogyMember, s as GenerationIndiType, t as GenerationSpouseType, a8 as Indi, a9 as IndiGenealogy, aa as IndiGenealogyGenerations, ab as IndiGenealogyResult, ad as IndiMarker, ae as IndiTree, af as IndiType, ag as Individuals, ak as List, am as MemberMain, an as MemberSide, ar as NonNullIndiGenealogyResult, at as Obje, av as ObjeType, aw as Objects, aB as Path, aC as PathItem, aH as ProfilePicture, aI as ProxyOriginal, aJ as Queue, aK as QueueItem, aN as ReducedPath, aP as Repo, aR as RepoType, aS as Repositories, aV as Sour, aX as SourType, aY as Sources, a_ as Subm, b0 as SubmType, b1 as Submitters, b4 as TreeMember, b6 as createCommon, b7 as createCommonDate, b8 as createCommonName, b9 as createCommonNote, ba as createFam, bb as createGedCom, bc as createIndi, bd as createObje, be as createProxy, bf as createRepo, bg as createSour, bh as createSubm, bn as getListTag, bp as getValidKey, bq as getValidKeys, br as getValidTag, bs as idGetter, bu as isCommonDate, bv as isGedcomString, bw as isId, by as isOnlyMainProp, bA as isValidKey, bB as mergeGedcoms, bF as validateGedcomContent } from '../index-CSjQRlxq.js';
|
|
2
2
|
import 'date-fns';
|
package/dist/classes/index.js
CHANGED
|
@@ -4566,7 +4566,7 @@ var Indi = class extends Common {
|
|
|
4566
4566
|
}
|
|
4567
4567
|
return void 0;
|
|
4568
4568
|
}
|
|
4569
|
-
async getProfilePicture(namespace) {
|
|
4569
|
+
async getProfilePicture(namespace, onlyPrimary = true) {
|
|
4570
4570
|
const mediaList = await this.multimedia(namespace);
|
|
4571
4571
|
if (!mediaList) {
|
|
4572
4572
|
return void 0;
|
|
@@ -4583,6 +4583,9 @@ var Indi = class extends Common {
|
|
|
4583
4583
|
isPrimary: true
|
|
4584
4584
|
};
|
|
4585
4585
|
}
|
|
4586
|
+
if (!onlyPrimary) {
|
|
4587
|
+
return void 0;
|
|
4588
|
+
}
|
|
4586
4589
|
const secondaryMedia = mediaArray.find(
|
|
4587
4590
|
(media) => isImageFormat(media.contentType || getFileExtension(media.url))
|
|
4588
4591
|
);
|
|
@@ -5885,7 +5888,7 @@ var createIndi = (gedcom, id, main, parent) => {
|
|
|
5885
5888
|
|
|
5886
5889
|
// package.json
|
|
5887
5890
|
var package_default = {
|
|
5888
|
-
version: "1.0.
|
|
5891
|
+
version: "1.0.23"};
|
|
5889
5892
|
|
|
5890
5893
|
// src/utils/get-product-details.ts
|
|
5891
5894
|
var getVersion = () => package_default.version;
|
package/dist/cli/index.js
CHANGED
|
@@ -2132,7 +2132,7 @@ var Indi = class extends Common {
|
|
|
2132
2132
|
}
|
|
2133
2133
|
return void 0;
|
|
2134
2134
|
}
|
|
2135
|
-
async getProfilePicture(namespace) {
|
|
2135
|
+
async getProfilePicture(namespace, onlyPrimary = true) {
|
|
2136
2136
|
const mediaList = await this.multimedia(namespace);
|
|
2137
2137
|
if (!mediaList) {
|
|
2138
2138
|
return void 0;
|
|
@@ -2149,6 +2149,9 @@ var Indi = class extends Common {
|
|
|
2149
2149
|
isPrimary: true
|
|
2150
2150
|
};
|
|
2151
2151
|
}
|
|
2152
|
+
if (!onlyPrimary) {
|
|
2153
|
+
return void 0;
|
|
2154
|
+
}
|
|
2152
2155
|
const secondaryMedia = mediaArray.find(
|
|
2153
2156
|
(media) => isImageFormat(media.contentType || getFileExtension(media.url))
|
|
2154
2157
|
);
|
|
@@ -5878,7 +5881,7 @@ var Families = class _Families extends List {
|
|
|
5878
5881
|
|
|
5879
5882
|
// package.json
|
|
5880
5883
|
var package_default = {
|
|
5881
|
-
version: "1.0.
|
|
5884
|
+
version: "1.0.23"};
|
|
5882
5885
|
|
|
5883
5886
|
// src/utils/get-product-details.ts
|
|
5884
5887
|
var isDevelopment = () => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aT as RequiredFilter, aO as RelationType, n as Filter, aA as PartnerType, ax as Order, az as OrderIterator, af as IndiType, ac as IndiKey, ap as NameOrder } from '../index-CSjQRlxq.js';
|
|
2
2
|
import 'date-fns';
|
|
3
3
|
|
|
4
4
|
/**
|
package/dist/constants/index.js
CHANGED
|
@@ -2727,7 +2727,7 @@ var Indi = class extends Common {
|
|
|
2727
2727
|
}
|
|
2728
2728
|
return void 0;
|
|
2729
2729
|
}
|
|
2730
|
-
async getProfilePicture(namespace) {
|
|
2730
|
+
async getProfilePicture(namespace, onlyPrimary = true) {
|
|
2731
2731
|
const mediaList = await this.multimedia(namespace);
|
|
2732
2732
|
if (!mediaList) {
|
|
2733
2733
|
return void 0;
|
|
@@ -2744,6 +2744,9 @@ var Indi = class extends Common {
|
|
|
2744
2744
|
isPrimary: true
|
|
2745
2745
|
};
|
|
2746
2746
|
}
|
|
2747
|
+
if (!onlyPrimary) {
|
|
2748
|
+
return void 0;
|
|
2749
|
+
}
|
|
2747
2750
|
const secondaryMedia = mediaArray.find(
|
|
2748
2751
|
(media) => isImageFormat(media.contentType || getFileExtension(media.url))
|
|
2749
2752
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { I as ICacheManager, P as PlaceParts } from '../place-parser-
|
|
1
|
+
import { I as ICacheManager, P as PlaceParts } from '../place-parser-Dl5iva3h.js';
|
|
2
2
|
import { Locale } from 'date-fns';
|
|
3
|
-
import {
|
|
3
|
+
import { af as IndiType, ac as IndiKey, ai as Language } from '../index-CSjQRlxq.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Factory function type for creating cache manager instances.
|
package/dist/factories/index.js
CHANGED
|
@@ -3154,7 +3154,7 @@ var Indi = class extends Common {
|
|
|
3154
3154
|
}
|
|
3155
3155
|
return void 0;
|
|
3156
3156
|
}
|
|
3157
|
-
async getProfilePicture(namespace) {
|
|
3157
|
+
async getProfilePicture(namespace, onlyPrimary = true) {
|
|
3158
3158
|
const mediaList = await this.multimedia(namespace);
|
|
3159
3159
|
if (!mediaList) {
|
|
3160
3160
|
return void 0;
|
|
@@ -3171,6 +3171,9 @@ var Indi = class extends Common {
|
|
|
3171
3171
|
isPrimary: true
|
|
3172
3172
|
};
|
|
3173
3173
|
}
|
|
3174
|
+
if (!onlyPrimary) {
|
|
3175
|
+
return void 0;
|
|
3176
|
+
}
|
|
3174
3177
|
const secondaryMedia = mediaArray.find(
|
|
3175
3178
|
(media) => isImageFormat(media.contentType || getFileExtension(media.url))
|
|
3176
3179
|
);
|
|
@@ -856,7 +856,7 @@ declare class Indi extends Common<string, IndiKey> implements IIndi {
|
|
|
856
856
|
hasFamilySearchSources(): boolean;
|
|
857
857
|
getFamilySearchSources(): FamilySearchSource[];
|
|
858
858
|
multimedia(namespace?: string | number): Promise<MediaList | undefined>;
|
|
859
|
-
getProfilePicture(namespace?: string | number): Promise<ProfilePicture | undefined>;
|
|
859
|
+
getProfilePicture(namespace?: string | number, onlyPrimary?: boolean): Promise<ProfilePicture | undefined>;
|
|
860
860
|
link(poolId?: number): string;
|
|
861
861
|
toFamilies(list?: List): Families;
|
|
862
862
|
getFamilies(type: "FAMC" | "FAMS"): Families;
|
|
@@ -1672,4 +1672,4 @@ declare const getValidKey: (tag: string, id: string) => string;
|
|
|
1672
1672
|
declare const isId: (string: string) => string is IdType;
|
|
1673
1673
|
declare const idGetter: <T extends IdType>(id?: T) => T;
|
|
1674
1674
|
|
|
1675
|
-
export { type
|
|
1675
|
+
export { type IPlaceStructure as $, type ICommon as A, type ICreationDateStructure as B, type Cases as C, type IDateStructure as D, Existed as E, Fam as F, GedCom as G, type IEventDetailStructure as H, type IAddressStructure as I, type IFam as J, type IFamilies as K, type IFamilyStructure as L, type IGedcom as M, type IGedComStructure as N, type IIndi as O, type IIndividualStructure as P, type IIndividualEventStructure as Q, type IIndividualEventDetailStructure as R, type IIndividuals as S, type ILdsOrdinanceDetailStructure as T, type ILdsSpouseSealingStructure as U, type IList as V, type IMarriageDateStructure as W, type IMultimediaLinkStructure as X, type INonEventStructure as Y, type INoteStructure as Z, type IObje as _, Common as a, type SubmKey as a$, type IRepo as a0, type IRepositoryStructure as a1, type ISour as a2, type ISourceStructure as a3, type ISourceCitationStructure as a4, type ISourceRepositoryCitationStructure as a5, type ISubm as a6, type IdType as a7, Indi as a8, type IndiGenealogy as a9, PartnerType as aA, type Path as aB, type PathItem as aC, type Place as aD, type PlaceOrder as aE, PlaceType as aF, type PrimitiveRange as aG, type ProfilePicture as aH, type ProxyOriginal as aI, type Queue as aJ, type QueueItem as aK, Range as aL, type Range$1 as aM, type ReducedPath as aN, RelationType as aO, Repo as aP, type RepoKey as aQ, type RepoType as aR, Repositories as aS, type RequiredFilter as aT, type Settings as aU, Sour as aV, type SourKey as aW, type SourType as aX, Sources as aY, type SplitResult as aZ, Subm as a_, type IndiGenealogyGenerations as aa, type IndiGenealogyResult as ab, type IndiKey as ac, type IndiMarker as ad, type IndiTree as ae, type IndiType as af, Individuals as ag, type IKinshipTranslator as ah, type Language as ai, type LinkedPersons as aj, List as ak, type ListTag as al, type MemberMain as am, type MemberSide as an, type MultiTag as ao, type NameOrder as ap, type NestedGroup as aq, type NonNullIndiGenealogyResult as ar, type NonStandard as as, Obje as at, type ObjeKey as au, type ObjeType as av, Objects as aw, type Order as ax, type OrderDefinition as ay, type OrderIterator as az, CommonDate as b, type SubmType as b0, Submitters as b1, type Tag as b2, type TagKey as b3, type TreeMember as b4, type UnknownKey as b5, createCommon as b6, createCommonDate as b7, createCommonName as b8, createCommonNote as b9, isValidKey as bA, mergeGedcoms as bB, parseRangeBounds as bC, splitOverlappingRanges as bD, splitRange as bE, validateGedcomContent as bF, createFam as ba, createGedCom as bb, createIndi as bc, createObje as bd, createProxy as be, createRepo as bf, createSour as bg, createSubm as bh, extractSeparationYears as bi, extractSplitPoints as bj, findMatchingRangeForSplitRange as bk, fromTuple as bl, generateSplitRanges as bm, getListTag as bn, getPlaces as bo, getValidKey as bp, getValidKeys as bq, getValidTag as br, idGetter as bs, inRange as bt, isCommonDate as bu, isGedcomString as bv, isId as bw, isIntersectedRange as bx, isOnlyMainProp as by, isRangeContained as bz, CommonName as c, CommonNote as d, type ConvertType as e, type CrossCase as f, type CrossCases as g, CustomTags as h, type FamKey as i, type FamType as j, Families as k, type FamilySearchMatch as l, type FamilySearchSource as m, type Filter as n, type FilterIterator as o, type GedComType as p, type GenealogyMember as q, type GeneratedIndiMethods as r, type GenerationIndiType as s, type GenerationSpouseType as t, type Group as u, type GroupDefinition as v, type GroupIterator as w, type GroupMarker as x, type IAssociationStructure as y, type IChangeDateStructure as z };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { A as ACCEPTED_DATE_FORMATS, a as ACCEPTED_DATE_FORMATS_REGEX, G as GedcomTree,
|
|
1
|
+
export { A as ACCEPTED_DATE_FORMATS, a as ACCEPTED_DATE_FORMATS_REGEX, G as GedcomTree, c as commonDateFormatter, b as create, d as dateFormatter, G as default, g as getAllProp, e as getFamilyWith, f as getName, h as getRawSize, i as getVersion, j as hungarianOrdinalize, k as implemented, l as isDevelopment, m as marriageDateFormatter, n as nameFormatter, o as notImplemented, p as noteDateFormatter, q as ordinalize, r as placeTranslator, s as setNestedGroup } from './place-translator-BYX8180A.js';
|
|
2
2
|
export { CacheManagerFactory, DateLocaleProvider, I18nProvider, KinshipTranslatorConstructor, PlaceParserFunction, PlaceTranslatorFunction, getCacheManagerFactory, getDateLocale, getI18n, getKinshipTranslatorClass, getPlaceParserProvider, getPlaceTranslatorProvider, i18n, resetCacheManagerFactory, resetDateLocaleProvider, resetI18nProvider, resetKinshipTranslatorClass, resetPlaceParserProvider, resetPlaceTranslatorProvider, setCacheManagerFactory, setDateLocaleProvider, setI18nProvider, setKinshipTranslatorClass, setPlaceParserProvider, setPlaceTranslatorProvider } from './factories/index.js';
|
|
3
|
-
export { C as CacheRelatives, I as ICacheManager, P as PlaceParts, g as getPlaceParts, p as pathCache,
|
|
3
|
+
export { C as CacheRelatives, I as ICacheManager, P as PlaceParts, g as getPlaceParts, p as pathCache, r as relativesCache, a as resetRelativesCache } from './place-parser-Dl5iva3h.js';
|
|
4
4
|
export { KinshipTranslator, KinshipTranslatorBasic, KinshipTranslatorDE, KinshipTranslatorEN, KinshipTranslatorES, KinshipTranslatorFR, KinshipTranslatorHU, translators } from './kinship-translator/index.js';
|
|
5
|
-
export { C as Cases,
|
|
5
|
+
export { C as Cases, a as Common, b as CommonDate, c as CommonName, d as CommonNote, e as ConvertType, f as CrossCase, g as CrossCases, h as CustomTags, E as Existed, F as Fam, i as FamKey, j as FamType, k as Families, l as FamilySearchMatch, m as FamilySearchSource, n as Filter, o as FilterIterator, G as GedCom, p as GedComType, q as GenealogyMember, r as GeneratedIndiMethods, s as GenerationIndiType, t as GenerationSpouseType, u as Group, v as GroupDefinition, w as GroupIterator, x as GroupMarker, I as IAddress, y as IAssociation, z as IChangeDate, A as ICommon, B as ICreationDate, D as IDate, H as IEventDetail, H as IEventDetailStructure, J as IFam, K as IFamilies, L as IFamily, M as IGedCom, N as IGedcomStructure, O as IIndi, P as IIndividual, Q as IIndividualEvent, R as IIndividualEventDetail, P as IIndividualStructure, S as IIndividuals, T as ILdsOrdinanceDetail, U as ILdsSpouseSealing, V as IList, W as IMarriageDate, X as IMultimediaLink, Y as INonEvent, Z as INote, _ as IObje, $ as IPlace, a0 as IRepo, a1 as IRepository, a2 as ISour, a3 as ISource, a4 as ISourceCitation, a5 as ISourceRepositoryCitation, a6 as ISubm, a7 as IdType, a8 as Indi, a9 as IndiGenealogy, aa as IndiGenealogyGenerations, ab as IndiGenealogyResult, ac as IndiKey, ad as IndiMarker, ae as IndiTree, af as IndiType, ag as Individuals, ah as KinshipTranslatorInterface, ai as Language, aj as LinkedPersons, ak as List, al as ListTag, am as MemberMain, an as MemberSide, ao as MultiTag, ap as NameOrder, aq as NestedGroup, ar as NonNullIndiGenealogyResult, as as NonStandard, at as Obje, au as ObjeKey, av as ObjeType, aw as Objects, ax as Order, ay as OrderDefinition, az as OrderIterator, aA as PartnerType, aB as Path, aC as PathItem, aD as Place, aE as PlaceOrder, aF as PlaceType, aG as PrimitiveRange, aH as ProfilePicture, aI as ProxyOriginal, aJ as Queue, aK as QueueItem, aL as Range, aM as RangeType, aN as ReducedPath, aO as RelationType, aP as Repo, aQ as RepoKey, aR as RepoType, aS as Repositories, aT as RequiredFilter, aU as Settings, aV as Sour, aW as SourKey, aX as SourType, aY as Sources, aZ as SplitResult, a_ as Subm, a$ as SubmKey, b0 as SubmType, b1 as Submitters, b2 as Tag, b3 as TagKey, b4 as TreeMember, b5 as UnknownKey, b6 as createCommon, b7 as createCommonDate, b8 as createCommonName, b9 as createCommonNote, ba as createFam, bb as createGedCom, bc as createIndi, bd as createObje, be as createProxy, bf as createRepo, bg as createSour, bh as createSubm, bi as extractSeparationYears, bj as extractSplitPoints, bk as findMatchingRangeForSplitRange, bl as fromTuple, bm as generateSplitRanges, bn as getListTag, bo as getPlaces, bp as getValidKey, bq as getValidKeys, br as getValidTag, bs as idGetter, bt as inRange, bu as isCommonDate, bv as isGedcomString, bw as isId, bx as isIntersectedRange, by as isOnlyMainProp, bz as isRangeContained, bA as isValidKey, bB as mergeGedcoms, bC as parseRangeBounds, bD as splitOverlappingRanges, bE as splitRange, bF as validateGedcomContent } from './index-CSjQRlxq.js';
|
|
6
6
|
export { AncestryMedia } from './types/index.js';
|
|
7
7
|
export { ADOPTED, BIOLOGICAL, BIRTH, BIRTH_ASC, BIRTH_DESC, DATE_ASC, DATE_DESC, DEATH_ASC, DEATH_DESC, DEFAULT, EVERY, FEMALE, FOSTER, FRIEND, ID_GETTER_REG, ID_REG, ID_SPLIT_REG, LINE_REG, MALE, MAX_FILE_SIZE_TO_SYNC, OTHER, PARTNER, REF_LINE_REG, SEALING, SINGLE, SPOUSE, STEP, UNKOWN, getBirthAsc, getMarriageAsc, getMarriageAscAndBirth, getMarriageAscAndChildBirth, getNameAsc, getNameAscAndBirth, getNameDesc } from './constants/index.js';
|
|
8
8
|
export { IPersonalName, IPersonalNamePieces } from './structures/index.js';
|
package/dist/index.js
CHANGED
|
@@ -2232,7 +2232,7 @@ var Indi = class extends Common {
|
|
|
2232
2232
|
}
|
|
2233
2233
|
return void 0;
|
|
2234
2234
|
}
|
|
2235
|
-
async getProfilePicture(namespace) {
|
|
2235
|
+
async getProfilePicture(namespace, onlyPrimary = true) {
|
|
2236
2236
|
const mediaList = await this.multimedia(namespace);
|
|
2237
2237
|
if (!mediaList) {
|
|
2238
2238
|
return void 0;
|
|
@@ -2249,6 +2249,9 @@ var Indi = class extends Common {
|
|
|
2249
2249
|
isPrimary: true
|
|
2250
2250
|
};
|
|
2251
2251
|
}
|
|
2252
|
+
if (!onlyPrimary) {
|
|
2253
|
+
return void 0;
|
|
2254
|
+
}
|
|
2252
2255
|
const secondaryMedia = mediaArray.find(
|
|
2253
2256
|
(media) => isImageFormat(media.contentType || getFileExtension(media.url))
|
|
2254
2257
|
);
|
|
@@ -6271,7 +6274,7 @@ var Families = class _Families extends List {
|
|
|
6271
6274
|
// package.json
|
|
6272
6275
|
var package_default = {
|
|
6273
6276
|
name: "@treeviz/gedcom-parser",
|
|
6274
|
-
version: "1.0.
|
|
6277
|
+
version: "1.0.23"};
|
|
6275
6278
|
|
|
6276
6279
|
// src/utils/get-product-details.ts
|
|
6277
6280
|
var isDevelopment = () => {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { r as GeneratedIndiMethods, A as ICommon, J as IFam, K as IFamilies, M as IGedCom, O as IIndi, S as IIndividuals, V as IList, _ as IObje, a0 as IRepo, a2 as ISour, a6 as ISubm } from '../index-CSjQRlxq.js';
|
|
2
2
|
import 'date-fns';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { C as Cases,
|
|
1
|
+
import { ah as IKinshipTranslator, aB as Path, aC as PathItem, af as IndiType, ac as IndiKey, ai as Language } from '../index-CSjQRlxq.js';
|
|
2
|
+
export { C as Cases, f as CrossCase, g as CrossCases } from '../index-CSjQRlxq.js';
|
|
3
3
|
import 'date-fns';
|
|
4
4
|
|
|
5
5
|
declare class KinshipTranslatorBasic implements IKinshipTranslator {
|
|
@@ -4318,7 +4318,7 @@ var Indi = class extends Common {
|
|
|
4318
4318
|
}
|
|
4319
4319
|
return void 0;
|
|
4320
4320
|
}
|
|
4321
|
-
async getProfilePicture(namespace) {
|
|
4321
|
+
async getProfilePicture(namespace, onlyPrimary = true) {
|
|
4322
4322
|
const mediaList = await this.multimedia(namespace);
|
|
4323
4323
|
if (!mediaList) {
|
|
4324
4324
|
return void 0;
|
|
@@ -4335,6 +4335,9 @@ var Indi = class extends Common {
|
|
|
4335
4335
|
isPrimary: true
|
|
4336
4336
|
};
|
|
4337
4337
|
}
|
|
4338
|
+
if (!onlyPrimary) {
|
|
4339
|
+
return void 0;
|
|
4340
|
+
}
|
|
4338
4341
|
const secondaryMedia = mediaArray.find(
|
|
4339
4342
|
(media) => isImageFormat(media.contentType || getFileExtension(media.url))
|
|
4340
4343
|
);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ac as IndiKey, aB as Path, ag as Individuals } from './index-CSjQRlxq.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Cache manager interface for pluggable cache implementations.
|
|
@@ -34,4 +34,4 @@ interface PlaceParts {
|
|
|
34
34
|
*/
|
|
35
35
|
declare const getPlaceParts: (place?: string | (string | undefined)[]) => PlaceParts[];
|
|
36
36
|
|
|
37
|
-
export { type CacheRelatives as C, type ICacheManager as I, type PlaceParts as P,
|
|
37
|
+
export { type CacheRelatives as C, type ICacheManager as I, type PlaceParts as P, resetRelativesCache as a, getPlaceParts as g, pathCache as p, relativesCache as r };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aU as Settings, p as GedComType, ao as MultiTag, a as Common, a7 as IdType, D as IDateStructure, af as IndiType, ac as IndiKey, j as FamType, b as CommonDate, aq as NestedGroup, ag as Individuals } from './index-CSjQRlxq.js';
|
|
2
2
|
|
|
3
3
|
declare const GedcomTree: {
|
|
4
4
|
parse: (content: string, options?: {
|
|
@@ -85,4 +85,4 @@ declare const hungarianOrdinalize: (n: number) => string;
|
|
|
85
85
|
*/
|
|
86
86
|
declare const placeTranslator: (place: string | string[]) => string;
|
|
87
87
|
|
|
88
|
-
export { ACCEPTED_DATE_FORMATS as A, GedcomTree as G, ACCEPTED_DATE_FORMATS_REGEX as a,
|
|
88
|
+
export { ACCEPTED_DATE_FORMATS as A, GedcomTree as G, ACCEPTED_DATE_FORMATS_REGEX as a, create as b, commonDateFormatter as c, dateFormatter as d, getFamilyWith as e, getName as f, getAllProp as g, getRawSize as h, getVersion as i, hungarianOrdinalize as j, implemented as k, isDevelopment as l, marriageDateFormatter as m, nameFormatter as n, notImplemented as o, noteDateFormatter as p, ordinalize as q, placeTranslator as r, setNestedGroup as s };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { a as Common, Z as INoteStructure, a4 as ISourceCitationStructure } from '../index-CSjQRlxq.js';
|
|
2
|
+
export { I as IAddress, y as IAssociation, z as IChangeDate, B as ICreationDate, D as IDate, H as IEventDetail, H as IEventDetailStructure, L as IFamily, N as IGedcomStructure, P as IIndividual, Q as IIndividualEvent, R as IIndividualEventDetail, P as IIndividualStructure, T as ILdsOrdinanceDetail, U as ILdsSpouseSealing, W as IMarriageDate, X as IMultimediaLink, Y as INonEvent, $ as IPlace, a1 as IRepository, a3 as ISource, a5 as ISourceRepositoryCitation } from '../index-CSjQRlxq.js';
|
|
3
3
|
import 'date-fns';
|
|
4
4
|
|
|
5
5
|
interface IPersonalNamePiecesStructure extends Common {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { e as ConvertType, i as FamKey, n as Filter, o as FilterIterator, u as Group, v as GroupDefinition, w as GroupIterator, x as GroupMarker, a7 as IdType, ac as IndiKey, aj as LinkedPersons, al as ListTag, ao as MultiTag, ap as NameOrder, aq as NestedGroup, as as NonStandard, au as ObjeKey, ax as Order, ay as OrderDefinition, az as OrderIterator, aA as PartnerType, aE as PlaceOrder, aL as Range, aO as RelationType, aQ as RepoKey, aT as RequiredFilter, aU as Settings, aW as SourKey, a$ as SubmKey, b2 as Tag, b3 as TagKey, b5 as UnknownKey } from '../index-CSjQRlxq.js';
|
|
2
2
|
import 'date-fns';
|
|
3
3
|
|
|
4
4
|
interface AncestryMedia {
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { C as CacheRelatives, I as ICacheManager, P as PlaceParts, g as getPlaceParts, p as pathCache,
|
|
2
|
-
export { A as ACCEPTED_DATE_FORMATS, a as ACCEPTED_DATE_FORMATS_REGEX, G as GedcomTree,
|
|
3
|
-
export {
|
|
1
|
+
export { C as CacheRelatives, I as ICacheManager, P as PlaceParts, g as getPlaceParts, p as pathCache, r as relativesCache, a as resetRelativesCache } from '../place-parser-Dl5iva3h.js';
|
|
2
|
+
export { A as ACCEPTED_DATE_FORMATS, a as ACCEPTED_DATE_FORMATS_REGEX, G as GedcomTree, c as commonDateFormatter, b as create, d as dateFormatter, g as getAllProp, e as getFamilyWith, f as getName, h as getRawSize, i as getVersion, j as hungarianOrdinalize, k as implemented, l as isDevelopment, m as marriageDateFormatter, n as nameFormatter, o as notImplemented, p as noteDateFormatter, q as ordinalize, r as placeTranslator, s as setNestedGroup } from '../place-translator-BYX8180A.js';
|
|
3
|
+
export { aD as Place, aF as PlaceType, aG as PrimitiveRange, aM as Range, aZ as SplitResult, bi as extractSeparationYears, bj as extractSplitPoints, bk as findMatchingRangeForSplitRange, bl as fromTuple, bm as generateSplitRanges, bo as getPlaces, bt as inRange, bx as isIntersectedRange, bz as isRangeContained, bC as parseRangeBounds, bD as splitOverlappingRanges, bE as splitRange } from '../index-CSjQRlxq.js';
|
|
4
4
|
import 'date-fns';
|
|
5
5
|
|
|
6
6
|
/**
|
package/dist/utils/index.js
CHANGED
|
@@ -2944,7 +2944,7 @@ var Indi = class extends Common {
|
|
|
2944
2944
|
}
|
|
2945
2945
|
return void 0;
|
|
2946
2946
|
}
|
|
2947
|
-
async getProfilePicture(namespace) {
|
|
2947
|
+
async getProfilePicture(namespace, onlyPrimary = true) {
|
|
2948
2948
|
const mediaList = await this.multimedia(namespace);
|
|
2949
2949
|
if (!mediaList) {
|
|
2950
2950
|
return void 0;
|
|
@@ -2961,6 +2961,9 @@ var Indi = class extends Common {
|
|
|
2961
2961
|
isPrimary: true
|
|
2962
2962
|
};
|
|
2963
2963
|
}
|
|
2964
|
+
if (!onlyPrimary) {
|
|
2965
|
+
return void 0;
|
|
2966
|
+
}
|
|
2964
2967
|
const secondaryMedia = mediaArray.find(
|
|
2965
2968
|
(media) => isImageFormat(media.contentType || getFileExtension(media.url))
|
|
2966
2969
|
);
|
|
@@ -6107,7 +6110,7 @@ var isCommonDate = (value) => {
|
|
|
6107
6110
|
// package.json
|
|
6108
6111
|
var package_default = {
|
|
6109
6112
|
name: "@treeviz/gedcom-parser",
|
|
6110
|
-
version: "1.0.
|
|
6113
|
+
version: "1.0.23"};
|
|
6111
6114
|
|
|
6112
6115
|
// src/utils/get-product-details.ts
|
|
6113
6116
|
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.23",
|
|
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",
|