@mailwoman/core 10.4.0 → 10.6.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/lib/api/ckan.ts +1 -1
- package/lib/decoder/serialize/json.ts +1 -1
- package/lib/env/env-file.ts +71 -0
- package/lib/env.ts +15 -9
- package/lib/fs/readers/stat.ts +16 -1
- package/lib/fs/readers.ts +15 -0
- package/lib/geocode/result.ts +46 -0
- package/lib/git.ts +357 -55
- package/lib/layers/manifest.ts +31 -0
- package/lib/layers/schema.ts +14 -0
- package/lib/license/docs-site.ts +1 -1
- package/lib/module/compiled-freshness.ts +5 -1
- package/lib/process.ts +320 -0
- package/lib/resources/git.ts +9 -5
- package/lib/types/classifier.ts +1 -1
- package/lib/utils/events.ts +23 -0
- package/out/api/ckan.d.ts +1 -1
- package/out/decoder/serialize/json.js +1 -1
- package/out/env/env-file.d.ts +26 -0
- package/out/env/env-file.d.ts.map +1 -0
- package/out/env/env-file.js +60 -0
- package/out/env/env-file.js.map +1 -0
- package/out/env.d.ts.map +1 -1
- package/out/env.js +15 -10
- package/out/env.js.map +1 -1
- package/out/fs/readers/stat.d.ts +9 -1
- package/out/fs/readers/stat.d.ts.map +1 -1
- package/out/fs/readers/stat.js +16 -0
- package/out/fs/readers/stat.js.map +1 -1
- package/out/fs/readers.d.ts +11 -0
- package/out/fs/readers.d.ts.map +1 -1
- package/out/fs/readers.js +14 -0
- package/out/fs/readers.js.map +1 -1
- package/out/geocode/result.d.ts +25 -0
- package/out/geocode/result.d.ts.map +1 -1
- package/out/geocode/result.js +40 -0
- package/out/geocode/result.js.map +1 -1
- package/out/git.d.ts +180 -4
- package/out/git.d.ts.map +1 -1
- package/out/git.js +227 -37
- package/out/git.js.map +1 -1
- package/out/layers/manifest.d.ts +19 -0
- package/out/layers/manifest.d.ts.map +1 -1
- package/out/layers/manifest.js +12 -0
- package/out/layers/manifest.js.map +1 -1
- package/out/layers/schema.d.ts +10 -0
- package/out/layers/schema.d.ts.map +1 -1
- package/out/layers/schema.js +4 -0
- package/out/layers/schema.js.map +1 -1
- package/out/license/docs-site.d.ts +1 -1
- package/out/license/docs-site.js +1 -1
- package/out/module/compiled-freshness.d.ts.map +1 -1
- package/out/module/compiled-freshness.js +5 -1
- package/out/module/compiled-freshness.js.map +1 -1
- package/out/process.d.ts +146 -0
- package/out/process.d.ts.map +1 -1
- package/out/process.js +158 -0
- package/out/process.js.map +1 -1
- package/out/resources/git.d.ts +5 -1
- package/out/resources/git.d.ts.map +1 -1
- package/out/resources/git.js +8 -5
- package/out/resources/git.js.map +1 -1
- package/out/tools/coarse-placer/paths.d.ts +2 -2
- package/out/tools/coarse-placer/paths.js +2 -2
- package/out/tools/download/libpostal-resources.d.ts +2 -2
- package/out/tools/download/libpostal-resources.d.ts.map +1 -1
- package/out/tools/download/libpostal-resources.js +4 -4
- package/out/tools/download/libpostal-resources.js.map +1 -1
- package/out/types/classifier.d.ts +1 -1
- package/out/utils/events.d.ts +13 -0
- package/out/utils/events.d.ts.map +1 -1
- package/out/utils/events.js +19 -0
- package/out/utils/events.js.map +1 -1
- package/package.json +7 -7
- package/tools/coarse-placer/paths.ts +2 -2
- package/tools/download/libpostal-resources.ts +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mailwoman/core",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.6.0",
|
|
4
4
|
"description": "Mailwoman core: tokenization, decoder, formatter, resources, filters, utils.",
|
|
5
5
|
"license": "AGPL-3.0-only OR LicenseRef-Commercial",
|
|
6
6
|
"repository": {
|
|
@@ -1256,11 +1256,11 @@
|
|
|
1256
1256
|
}
|
|
1257
1257
|
},
|
|
1258
1258
|
"dependencies": {
|
|
1259
|
-
"@mailwoman/annotations": "10.
|
|
1260
|
-
"@mailwoman/codex": "10.
|
|
1261
|
-
"@mailwoman/evidence": "10.
|
|
1262
|
-
"@mailwoman/query-shape": "10.
|
|
1263
|
-
"@mailwoman/sqlite": "10.
|
|
1259
|
+
"@mailwoman/annotations": "10.6.0",
|
|
1260
|
+
"@mailwoman/codex": "10.6.0",
|
|
1261
|
+
"@mailwoman/evidence": "10.6.0",
|
|
1262
|
+
"@mailwoman/query-shape": "10.6.0",
|
|
1263
|
+
"@mailwoman/sqlite": "10.6.0",
|
|
1264
1264
|
"adm-zip": "^0.6.1",
|
|
1265
1265
|
"async-init": "^1.0.0",
|
|
1266
1266
|
"axios": "^1.20.0",
|
|
@@ -1289,7 +1289,7 @@
|
|
|
1289
1289
|
},
|
|
1290
1290
|
"devDependencies": {
|
|
1291
1291
|
"@duckdb/node-api": "1.5.6-r.1",
|
|
1292
|
-
"@mailwoman/spatial": "10.
|
|
1292
|
+
"@mailwoman/spatial": "10.6.0",
|
|
1293
1293
|
"@types/d3-color": "^3.1.3",
|
|
1294
1294
|
"@types/d3-scale-chromatic": "^3.1.0",
|
|
1295
1295
|
"@types/trusted-types": "^2.0.7",
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*
|
|
6
|
-
* The default artifact and dataset locations the coarse-placer tools share.
|
|
7
|
-
* a relocated artifact is a one-line change rather than a sweep of every tool's option default.
|
|
6
|
+
* The default artifact and dataset locations the coarse-placer tools share. Each location has one
|
|
7
|
+
* spelling, so a relocated artifact is a one-line change rather than a sweep of every tool's option default.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { type PathBuilder, type PathBuilderLike, resolvePath } from "path-ts"
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* The script shallow-clones {@link https://github.com/openvenues/libpostal openvenues/libpostal}.
|
|
10
10
|
* It sorts each dictionary file in place and copies the `dictionaries/` tree beside this script.
|
|
11
11
|
*
|
|
12
|
-
* Replaces the bash `resources-download.sh`. `git clone` runs through
|
|
13
|
-
*
|
|
12
|
+
* Replaces the bash `resources-download.sh`. `git clone` runs through `GitClient`.
|
|
13
|
+
* Everything else is `@mailwoman/core/fs`. The script sorts in-process with a plain
|
|
14
14
|
* code-point `Array.sort()`, which matches `LC_ALL=C sort` byte order — deterministic and free of
|
|
15
15
|
* the shell `sort`'s locale dependency (the original relied on the ambient locale).
|
|
16
16
|
*
|
|
@@ -32,6 +32,7 @@ import { readLocalTextFile } from "#fs/readers"
|
|
|
32
32
|
import { isDirectory } from "#fs/readers/stat"
|
|
33
33
|
import { temporaryDirectory } from "#fs/temporary"
|
|
34
34
|
import { copyPath, removePathIfPresent, writeLocalTextFile } from "#fs/writers"
|
|
35
|
+
import { GitClient } from "#git"
|
|
35
36
|
import { resourceDictionaryPath } from "#paths"
|
|
36
37
|
import { CommandError } from "#scripting/command"
|
|
37
38
|
|
|
@@ -81,11 +82,10 @@ export async function downloadLibpostalResources(
|
|
|
81
82
|
}
|
|
82
83
|
}
|
|
83
84
|
|
|
84
|
-
const { $ } = await import("zx")
|
|
85
85
|
await using tempDir = await temporaryDirectory("libpostal-")
|
|
86
86
|
|
|
87
87
|
const cloneDir = tempDir.path("libpostal")
|
|
88
|
-
await
|
|
88
|
+
await new GitClient({ cwd: tempDir.path }).clone(REPO_URL, cloneDir, { depth: 1 })
|
|
89
89
|
|
|
90
90
|
const sourceDicts = cloneDir("resources", "dictionaries")
|
|
91
91
|
|