@treeviz/gedcom-parser 1.0.1 → 1.0.3
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/README.md +176 -0
- package/bin/gedcom-parser.js +3 -0
- package/dist/classes/common.js +7 -7
- package/dist/classes/date.js +4 -4
- package/dist/classes/fam.js +3 -3
- package/dist/classes/fams.js +3 -3
- package/dist/classes/gedcom.d.ts +29 -0
- package/dist/classes/gedcom.d.ts.map +1 -1
- package/dist/classes/gedcom.js +180 -4
- package/dist/classes/index.js +18 -18
- package/dist/classes/indi.js +13 -13
- package/dist/classes/indis.d.ts.map +1 -1
- package/dist/classes/indis.js +42 -24
- package/dist/classes/list.js +6 -6
- package/dist/classes/name.js +2 -2
- package/dist/classes/note.js +2 -2
- package/dist/classes/obje.js +1 -1
- package/dist/classes/objes.js +1 -1
- package/dist/classes/repo.js +1 -1
- package/dist/classes/repos.js +1 -1
- package/dist/classes/sour.js +1 -1
- package/dist/classes/sours.js +1 -1
- package/dist/classes/subm.js +1 -1
- package/dist/classes/subms.js +1 -1
- package/dist/cli/commands/convert.d.ts +3 -0
- package/dist/cli/commands/convert.d.ts.map +1 -0
- package/dist/cli/commands/convert.js +83 -0
- package/dist/cli/commands/extract.d.ts +3 -0
- package/dist/cli/commands/extract.d.ts.map +1 -0
- package/dist/cli/commands/extract.js +85 -0
- package/dist/cli/commands/find.d.ts +3 -0
- package/dist/cli/commands/find.d.ts.map +1 -0
- package/dist/cli/commands/find.js +97 -0
- package/dist/cli/commands/info.d.ts +3 -0
- package/dist/cli/commands/info.d.ts.map +1 -0
- package/dist/cli/commands/info.js +80 -0
- package/dist/cli/commands/merge.d.ts +3 -0
- package/dist/cli/commands/merge.d.ts.map +1 -0
- package/dist/cli/commands/merge.js +93 -0
- package/dist/cli/commands/relatives.d.ts +3 -0
- package/dist/cli/commands/relatives.d.ts.map +1 -0
- package/dist/cli/commands/relatives.js +107 -0
- package/dist/cli/commands/show.d.ts +3 -0
- package/dist/cli/commands/show.d.ts.map +1 -0
- package/dist/cli/commands/show.js +176 -0
- package/dist/cli/commands/stats.d.ts +3 -0
- package/dist/cli/commands/stats.d.ts.map +1 -0
- package/dist/cli/commands/stats.js +59 -0
- package/dist/cli/commands/validate.d.ts +3 -0
- package/dist/cli/commands/validate.d.ts.map +1 -0
- package/dist/cli/commands/validate.js +148 -0
- package/dist/cli/index.d.ts +3 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +40 -0
- package/dist/cli/utils/formatters.d.ts +69 -0
- package/dist/cli/utils/formatters.d.ts.map +1 -0
- package/dist/cli/utils/formatters.js +125 -0
- package/dist/cli/utils/helpers.d.ts +21 -0
- package/dist/cli/utils/helpers.d.ts.map +1 -0
- package/dist/cli/utils/helpers.js +58 -0
- package/dist/constants/filters.js +1 -1
- package/dist/constants/index.js +3 -3
- package/dist/constants/orders.js +2 -2
- package/dist/factories/cache-factory.js +1 -1
- package/dist/factories/date-locale-factory.js +1 -1
- package/dist/factories/i18n-factory.js +1 -1
- package/dist/factories/index.js +4 -4
- package/dist/factories/kinship-factory.js +2 -2
- package/dist/factories/place-parser-provider.js +1 -1
- package/dist/factories/place-translator-provider.js +1 -1
- package/dist/index.js +37 -37
- package/dist/kinship-translator/index.js +9 -9
- package/dist/kinship-translator/kinship-translator.de.js +3 -3
- package/dist/kinship-translator/kinship-translator.en.js +4 -4
- package/dist/kinship-translator/kinship-translator.es.js +4 -4
- package/dist/kinship-translator/kinship-translator.fr.js +4 -4
- package/dist/kinship-translator/kinship-translator.hu.js +4 -4
- package/dist/kinship-translator/kinship-translator.js +1 -1
- package/dist/kinship-translator/translators.js +5 -5
- package/dist/types/index.js +3 -3
- package/dist/utils/cache.js +2 -2
- package/dist/utils/common-creator.js +11 -11
- package/dist/utils/date-formatter.js +3 -3
- package/dist/utils/get-places.js +1 -1
- package/dist/utils/get-product-details.js +1 -1
- package/dist/utils/index.js +16 -16
- package/dist/utils/name-formatter.js +2 -2
- package/dist/utils/nested-group.js +3 -3
- package/dist/utils/parser.js +14 -14
- package/package.json +13 -4
package/dist/utils/parser.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { Common, getListTag, isId } from "../classes/common";
|
|
2
|
-
import { Families } from "../classes/fams";
|
|
3
|
-
import { createGedCom } from "../classes/gedcom";
|
|
4
|
-
import { Indi } from "../classes/indi";
|
|
5
|
-
import { Individuals } from "../classes/indis";
|
|
6
|
-
import { List } from "../classes/list";
|
|
7
|
-
import { Objects } from "../classes/objes";
|
|
8
|
-
import { Repositories } from "../classes/repos";
|
|
9
|
-
import { Sources } from "../classes/sours";
|
|
10
|
-
import { Submitters } from "../classes/subms";
|
|
11
|
-
import { LINE_REG, MAX_FILE_SIZE_TO_SYNC, REF_LINE_REG, } from "../constants/constants";
|
|
12
|
-
import { create } from "./common-creator";
|
|
13
|
-
import { isDevelopment } from "./get-product-details";
|
|
14
|
-
import { getRawSize } from "./get-raw-size";
|
|
1
|
+
import { Common, getListTag, isId } from "../classes/common.js";
|
|
2
|
+
import { Families } from "../classes/fams.js";
|
|
3
|
+
import { createGedCom } from "../classes/gedcom.js";
|
|
4
|
+
import { Indi } from "../classes/indi.js";
|
|
5
|
+
import { Individuals } from "../classes/indis.js";
|
|
6
|
+
import { List } from "../classes/list.js";
|
|
7
|
+
import { Objects } from "../classes/objes.js";
|
|
8
|
+
import { Repositories } from "../classes/repos.js";
|
|
9
|
+
import { Sources } from "../classes/sours.js";
|
|
10
|
+
import { Submitters } from "../classes/subms.js";
|
|
11
|
+
import { LINE_REG, MAX_FILE_SIZE_TO_SYNC, REF_LINE_REG, } from "../constants/constants.js";
|
|
12
|
+
import { create } from "./common-creator.js";
|
|
13
|
+
import { isDevelopment } from "./get-product-details.js";
|
|
14
|
+
import { getRawSize } from "./get-raw-size.js";
|
|
15
15
|
const isDev = isDevelopment();
|
|
16
16
|
// let lastTime: number | undefined;
|
|
17
17
|
// interface Props {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@treeviz/gedcom-parser",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
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",
|
|
@@ -91,13 +91,17 @@
|
|
|
91
91
|
"import": "./src/__tests__/test-utils/index.ts"
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
|
+
"bin": {
|
|
95
|
+
"gedcom-parser": "./bin/gedcom-parser.js"
|
|
96
|
+
},
|
|
94
97
|
"files": [
|
|
95
98
|
"dist",
|
|
99
|
+
"bin",
|
|
96
100
|
"README.md",
|
|
97
101
|
"LICENSE"
|
|
98
102
|
],
|
|
99
103
|
"scripts": {
|
|
100
|
-
"build": "tsc -p tsconfig.json",
|
|
104
|
+
"build": "tsc -p tsconfig.json && node scripts/fix-imports.mjs",
|
|
101
105
|
"dev": "tsc -p tsconfig.json --watch",
|
|
102
106
|
"test": "vitest run",
|
|
103
107
|
"test:watch": "vitest",
|
|
@@ -130,7 +134,9 @@
|
|
|
130
134
|
"place-matching",
|
|
131
135
|
"ssr",
|
|
132
136
|
"browser",
|
|
133
|
-
"nodejs"
|
|
137
|
+
"nodejs",
|
|
138
|
+
"cli",
|
|
139
|
+
"command-line"
|
|
134
140
|
],
|
|
135
141
|
"author": {
|
|
136
142
|
"name": "idavidka & @treeviz contributors",
|
|
@@ -138,11 +144,14 @@
|
|
|
138
144
|
},
|
|
139
145
|
"license": "MIT",
|
|
140
146
|
"dependencies": {
|
|
147
|
+
"chalk": "^5.6.2",
|
|
148
|
+
"commander": "^14.0.2",
|
|
141
149
|
"date-fns": "^2.30.0",
|
|
142
|
-
"lodash": "^4.17.
|
|
150
|
+
"lodash-es": "^4.17.22"
|
|
143
151
|
},
|
|
144
152
|
"devDependencies": {
|
|
145
153
|
"@types/lodash": "^4.17.13",
|
|
154
|
+
"@types/lodash-es": "^4.17.12",
|
|
146
155
|
"@types/node": "^20.17.23",
|
|
147
156
|
"typescript": "^5.6.3",
|
|
148
157
|
"vitest": "^3.0.7"
|