@mailwoman/registry 11.0.0 → 11.2.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/README.md +21 -6
- package/data/manifests/artifacts.json +35 -0
- package/data/manifests/coverage.json +63 -0
- package/data/manifests/sources.lock.json +12 -0
- package/data/normalized/language-subtags.json +18518 -0
- package/docs/data-policy.md +5 -5
- package/docs/performance.md +1 -1
- package/docs/rgy1.md +5 -5
- package/lib/artifacts/bcp47/extlang.fixture.json +260 -0
- package/lib/artifacts/bcp47/extlang.ts +32 -0
- package/lib/artifacts/bcp47/grandfathered.fixture.json +28 -0
- package/lib/artifacts/bcp47/grandfathered.ts +32 -0
- package/lib/artifacts/bcp47/language.fixture.json +8278 -0
- package/lib/artifacts/bcp47/language.ts +32 -0
- package/lib/artifacts/bcp47/redundant.fixture.json +69 -0
- package/lib/artifacts/bcp47/redundant.ts +32 -0
- package/lib/artifacts/bcp47/region.fixture.json +307 -0
- package/lib/artifacts/bcp47/region.ts +32 -0
- package/lib/artifacts/bcp47/script.fixture.json +227 -0
- package/lib/artifacts/bcp47/script.ts +32 -0
- package/lib/artifacts/bcp47/variant.fixture.json +141 -0
- package/lib/artifacts/bcp47/variant.ts +32 -0
- package/lib/artifacts/country-airport-collision.ts +7 -5
- package/lib/artifacts/iata-airport/membership.ts +7 -5
- package/lib/artifacts/iata-airport/records.ts +7 -5
- package/lib/artifacts/iso3166-1/alpha2-membership.ts +7 -5
- package/lib/artifacts/iso3166-1/alpha3-membership.ts +7 -5
- package/lib/artifacts/iso3166-1/records.ts +7 -5
- package/lib/bcp47/subtag-index.ts +65 -0
- package/lib/bcp47/tag.ts +301 -0
- package/lib/errors.ts +22 -9
- package/lib/iata/airports/records.ts +3 -4
- package/lib/iata/airports/validate.ts +6 -5
- package/lib/index.ts +18 -8
- package/lib/inspect.ts +5 -5
- package/lib/iso15924/codes.ts +169 -0
- package/lib/iso15924/unicode-script.ts +124 -0
- package/lib/iso3166/alpha2.ts +5 -5
- package/lib/iso3166/alpha3.ts +6 -6
- package/lib/iso3166/records.ts +9 -8
- package/lib/iso3166/relations.ts +5 -5
- package/lib/iso639/languages.ts +88 -0
- package/lib/key.ts +9 -7
- package/lib/normalize.ts +12 -8
- package/lib/overlap/country-airport.ts +14 -12
- package/lib/rgy1/base64.ts +3 -4
- package/lib/rgy1/reader.ts +8 -7
- package/lib/rgy1/sections.generated.ts +6 -5
- package/lib/rgy1/views.ts +5 -6
- package/lib/types.ts +66 -7
- package/lib/wasm.ts +11 -9
- package/out/artifacts/bcp47/extlang.d.ts +21 -0
- package/out/artifacts/bcp47/extlang.d.ts.map +1 -0
- package/out/artifacts/bcp47/extlang.fixture.json +260 -0
- package/out/artifacts/bcp47/extlang.js +17 -0
- package/out/artifacts/bcp47/extlang.js.map +1 -0
- package/out/artifacts/bcp47/grandfathered.d.ts +21 -0
- package/out/artifacts/bcp47/grandfathered.d.ts.map +1 -0
- package/out/artifacts/bcp47/grandfathered.fixture.json +28 -0
- package/out/artifacts/bcp47/grandfathered.js +17 -0
- package/out/artifacts/bcp47/grandfathered.js.map +1 -0
- package/out/artifacts/bcp47/language.d.ts +21 -0
- package/out/artifacts/bcp47/language.d.ts.map +1 -0
- package/out/artifacts/bcp47/language.fixture.json +8278 -0
- package/out/artifacts/bcp47/language.js +17 -0
- package/out/artifacts/bcp47/language.js.map +1 -0
- package/out/artifacts/bcp47/redundant.d.ts +21 -0
- package/out/artifacts/bcp47/redundant.d.ts.map +1 -0
- package/out/artifacts/bcp47/redundant.fixture.json +69 -0
- package/out/artifacts/bcp47/redundant.js +17 -0
- package/out/artifacts/bcp47/redundant.js.map +1 -0
- package/out/artifacts/bcp47/region.d.ts +21 -0
- package/out/artifacts/bcp47/region.d.ts.map +1 -0
- package/out/artifacts/bcp47/region.fixture.json +307 -0
- package/out/artifacts/bcp47/region.js +17 -0
- package/out/artifacts/bcp47/region.js.map +1 -0
- package/out/artifacts/bcp47/script.d.ts +21 -0
- package/out/artifacts/bcp47/script.d.ts.map +1 -0
- package/out/artifacts/bcp47/script.fixture.json +227 -0
- package/out/artifacts/bcp47/script.js +17 -0
- package/out/artifacts/bcp47/script.js.map +1 -0
- package/out/artifacts/bcp47/variant.d.ts +21 -0
- package/out/artifacts/bcp47/variant.d.ts.map +1 -0
- package/out/artifacts/bcp47/variant.fixture.json +141 -0
- package/out/artifacts/bcp47/variant.js +17 -0
- package/out/artifacts/bcp47/variant.js.map +1 -0
- package/out/artifacts/country-airport-collision.d.ts +0 -8
- package/out/artifacts/country-airport-collision.d.ts.map +1 -1
- package/out/artifacts/country-airport-collision.js +6 -5
- package/out/artifacts/country-airport-collision.js.map +1 -1
- package/out/artifacts/iata-airport/membership.d.ts +0 -8
- package/out/artifacts/iata-airport/membership.d.ts.map +1 -1
- package/out/artifacts/iata-airport/membership.js +6 -5
- package/out/artifacts/iata-airport/membership.js.map +1 -1
- package/out/artifacts/iata-airport/records.d.ts +0 -8
- package/out/artifacts/iata-airport/records.d.ts.map +1 -1
- package/out/artifacts/iata-airport/records.js +6 -5
- package/out/artifacts/iata-airport/records.js.map +1 -1
- package/out/artifacts/iso3166-1/alpha2-membership.d.ts +0 -8
- package/out/artifacts/iso3166-1/alpha2-membership.d.ts.map +1 -1
- package/out/artifacts/iso3166-1/alpha2-membership.js +6 -5
- package/out/artifacts/iso3166-1/alpha2-membership.js.map +1 -1
- package/out/artifacts/iso3166-1/alpha3-membership.d.ts +0 -8
- package/out/artifacts/iso3166-1/alpha3-membership.d.ts.map +1 -1
- package/out/artifacts/iso3166-1/alpha3-membership.js +6 -5
- package/out/artifacts/iso3166-1/alpha3-membership.js.map +1 -1
- package/out/artifacts/iso3166-1/records.d.ts +0 -8
- package/out/artifacts/iso3166-1/records.d.ts.map +1 -1
- package/out/artifacts/iso3166-1/records.js +6 -5
- package/out/artifacts/iso3166-1/records.js.map +1 -1
- package/out/bcp47/subtag-index.d.ts +22 -0
- package/out/bcp47/subtag-index.d.ts.map +1 -0
- package/out/bcp47/subtag-index.js +43 -0
- package/out/bcp47/subtag-index.js.map +1 -0
- package/out/bcp47/tag.d.ts +47 -0
- package/out/bcp47/tag.d.ts.map +1 -0
- package/out/bcp47/tag.js +218 -0
- package/out/bcp47/tag.js.map +1 -0
- package/out/errors.d.ts +12 -8
- package/out/errors.d.ts.map +1 -1
- package/out/errors.js +10 -8
- package/out/errors.js.map +1 -1
- package/out/iata/airports/records.d.ts +0 -7
- package/out/iata/airports/records.d.ts.map +1 -1
- package/out/iata/airports/records.js +2 -4
- package/out/iata/airports/records.js.map +1 -1
- package/out/iata/airports/validate.d.ts +0 -8
- package/out/iata/airports/validate.d.ts.map +1 -1
- package/out/iata/airports/validate.js +5 -5
- package/out/iata/airports/validate.js.map +1 -1
- package/out/index.d.ts +13 -8
- package/out/index.d.ts.map +1 -1
- package/out/index.js +6 -12
- package/out/index.js.map +1 -1
- package/out/inspect.d.ts +2 -5
- package/out/inspect.d.ts.map +1 -1
- package/out/inspect.js +4 -5
- package/out/inspect.js.map +1 -1
- package/out/iso15924/codes.d.ts +57 -0
- package/out/iso15924/codes.d.ts.map +1 -0
- package/out/iso15924/codes.js +133 -0
- package/out/iso15924/codes.js.map +1 -0
- package/out/iso15924/unicode-script.d.ts +10 -0
- package/out/iso15924/unicode-script.d.ts.map +1 -0
- package/out/iso15924/unicode-script.js +103 -0
- package/out/iso15924/unicode-script.js.map +1 -0
- package/out/iso3166/alpha2.d.ts +0 -8
- package/out/iso3166/alpha2.d.ts.map +1 -1
- package/out/iso3166/alpha2.js +4 -5
- package/out/iso3166/alpha2.js.map +1 -1
- package/out/iso3166/alpha3.d.ts +1 -9
- package/out/iso3166/alpha3.d.ts.map +1 -1
- package/out/iso3166/alpha3.js +5 -6
- package/out/iso3166/alpha3.js.map +1 -1
- package/out/iso3166/records.d.ts +0 -11
- package/out/iso3166/records.d.ts.map +1 -1
- package/out/iso3166/records.js +8 -8
- package/out/iso3166/records.js.map +1 -1
- package/out/iso3166/relations.d.ts +0 -7
- package/out/iso3166/relations.d.ts.map +1 -1
- package/out/iso3166/relations.js +4 -5
- package/out/iso3166/relations.js.map +1 -1
- package/out/iso639/languages.d.ts +40 -0
- package/out/iso639/languages.d.ts.map +1 -0
- package/out/iso639/languages.js +54 -0
- package/out/iso639/languages.js.map +1 -0
- package/out/key.d.ts +6 -7
- package/out/key.d.ts.map +1 -1
- package/out/key.js +8 -7
- package/out/key.js.map +1 -1
- package/out/normalize.d.ts +9 -8
- package/out/normalize.d.ts.map +1 -1
- package/out/normalize.js +2 -12
- package/out/normalize.js.map +1 -1
- package/out/overlap/country-airport.d.ts +2 -16
- package/out/overlap/country-airport.d.ts.map +1 -1
- package/out/overlap/country-airport.js +13 -12
- package/out/overlap/country-airport.js.map +1 -1
- package/out/rgy1/base64.d.ts +0 -4
- package/out/rgy1/base64.d.ts.map +1 -1
- package/out/rgy1/base64.js +2 -4
- package/out/rgy1/base64.js.map +1 -1
- package/out/rgy1/reader.d.ts +0 -11
- package/out/rgy1/reader.d.ts.map +1 -1
- package/out/rgy1/reader.js +7 -7
- package/out/rgy1/reader.js.map +1 -1
- package/out/rgy1/sections.generated.d.ts +3 -5
- package/out/rgy1/sections.generated.d.ts.map +1 -1
- package/out/rgy1/sections.generated.js +5 -5
- package/out/rgy1/sections.generated.js.map +1 -1
- package/out/rgy1/views.d.ts +2 -9
- package/out/rgy1/views.d.ts.map +1 -1
- package/out/rgy1/views.js +4 -6
- package/out/rgy1/views.js.map +1 -1
- package/out/sdk/fetch.d.ts +6 -6
- package/out/sdk/fetch.d.ts.map +1 -1
- package/out/sdk/fetch.js +23 -11
- package/out/sdk/fetch.js.map +1 -1
- package/out/sdk/fetch.run.d.ts +0 -12
- package/out/sdk/fetch.run.d.ts.map +1 -1
- package/out/sdk/fetch.run.js +22 -9
- package/out/sdk/fetch.run.js.map +1 -1
- package/out/sdk/sources.d.ts +7 -16
- package/out/sdk/sources.d.ts.map +1 -1
- package/out/sdk/sources.js +34 -14
- package/out/sdk/sources.js.map +1 -1
- package/out/tools/artifact-path.d.ts +0 -5
- package/out/tools/artifact-path.d.ts.map +1 -1
- package/out/tools/artifact-path.js +2 -5
- package/out/tools/artifact-path.js.map +1 -1
- package/out/tools/bench.run.d.ts +0 -17
- package/out/tools/bench.run.d.ts.map +1 -1
- package/out/tools/bench.run.js +13 -10
- package/out/tools/bench.run.js.map +1 -1
- package/out/tools/build-wasm.run.d.ts +0 -16
- package/out/tools/build-wasm.run.d.ts.map +1 -1
- package/out/tools/build-wasm.run.js +8 -10
- package/out/tools/build-wasm.run.js.map +1 -1
- package/out/tools/generate-sections.run.d.ts +0 -11
- package/out/tools/generate-sections.run.d.ts.map +1 -1
- package/out/tools/generate-sections.run.js +5 -14
- package/out/tools/generate-sections.run.js.map +1 -1
- package/out/tools/generate.run.d.ts +0 -16
- package/out/tools/generate.run.d.ts.map +1 -1
- package/out/tools/generate.run.js +61 -17
- package/out/tools/generate.run.js.map +1 -1
- package/out/tools/language-subtags.d.ts +59 -0
- package/out/tools/language-subtags.d.ts.map +1 -0
- package/out/tools/language-subtags.js +145 -0
- package/out/tools/language-subtags.js.map +1 -0
- package/out/tools/normalize.d.ts +4 -14
- package/out/tools/normalize.d.ts.map +1 -1
- package/out/tools/normalize.js +14 -14
- package/out/tools/normalize.js.map +1 -1
- package/out/tools/normalize.run.d.ts +0 -12
- package/out/tools/normalize.run.d.ts.map +1 -1
- package/out/tools/normalize.run.js +24 -7
- package/out/tools/normalize.run.js.map +1 -1
- package/out/types.d.ts +62 -7
- package/out/types.d.ts.map +1 -1
- package/out/types.js +12 -9
- package/out/types.js.map +1 -1
- package/out/wasm.d.ts +0 -13
- package/out/wasm.d.ts.map +1 -1
- package/out/wasm.js +10 -9
- package/out/wasm.js.map +1 -1
- package/package.json +12 -4
- package/sdk/fetch.run.ts +25 -9
- package/sdk/fetch.ts +32 -12
- package/sdk/sources.ts +36 -14
- package/tools/artifact-path.ts +2 -5
- package/tools/bench.run.ts +19 -10
- package/tools/build-wasm.run.ts +9 -10
- package/tools/generate-sections.run.ts +6 -14
- package/tools/generate.run.ts +68 -17
- package/tools/language-subtags.ts +195 -0
- package/tools/normalize.run.ts +28 -7
- package/tools/normalize.ts +16 -15
package/out/sdk/fetch.run.js
CHANGED
|
@@ -1,19 +1,32 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
1
3
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
4
|
+
* Downloads the open profile's sources into `$MAILWOMAN_CACHE_ROOT/sources/registry/`
|
|
5
|
+
* and checks them against `data/manifests/sources.lock.json`.
|
|
5
6
|
*
|
|
6
|
-
*
|
|
7
|
-
* against `data/manifests/sources.lock.json`.
|
|
7
|
+
* Usage: `node packages/registry/sdk/fetch.run.ts [--repin] [--only <source-id>]...`
|
|
8
8
|
*
|
|
9
|
-
*
|
|
9
|
+
* `--repin` rewrites the lock from the downloaded bytes.
|
|
10
|
+
* Without it, a changed publication fails the run.
|
|
10
11
|
*
|
|
11
|
-
* `--
|
|
12
|
+
* `--only` downloads the sources whose ids it lists and leaves every other locked entry unchanged.
|
|
12
13
|
*/
|
|
13
14
|
import { parseArguments } from "@mailwoman/core/scripting/arguments";
|
|
14
15
|
import { retrieveRegistrySources } from "#sdk/fetch";
|
|
15
|
-
|
|
16
|
-
const
|
|
16
|
+
import { SOURCE_IDS } from "#sdk/sources";
|
|
17
|
+
const { values } = parseArguments({
|
|
18
|
+
options: {
|
|
19
|
+
repin: { type: "boolean", default: false },
|
|
20
|
+
only: { type: "string", multiple: true },
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
const only = values.only?.map((id) => {
|
|
24
|
+
if (!SOURCE_IDS.includes(id)) {
|
|
25
|
+
throw new Error(`--only ${id}: not a source id; the ids are ${SOURCE_IDS.join(", ")}`);
|
|
26
|
+
}
|
|
27
|
+
return id;
|
|
28
|
+
});
|
|
29
|
+
const lock = await retrieveRegistrySources({ repin: values.repin, only });
|
|
17
30
|
for (const [id, entry] of Object.entries(lock.sources)) {
|
|
18
31
|
console.log(`${id}\t${entry.bytes} bytes\tsha256 ${entry.sha256}\tpublication ${entry.publication}`);
|
|
19
32
|
}
|
package/out/sdk/fetch.run.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch.run.js","sourceRoot":"","sources":["../../sdk/fetch.run.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"fetch.run.js","sourceRoot":"","sources":["../../sdk/fetch.run.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE;AAElE;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAA;AAEpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAA;AACpD,OAAO,EAAE,UAAU,EAAiB,MAAM,cAAc,CAAA;AAExD,MAAM,EAAE,MAAM,EAAE,GAAG,cAAc,CAAC;IACjC,OAAO,EAAE;QACR,KAAK,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE;QAC1C,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;KACxC;CACD,CAAC,CAAA;AAEF,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,EAAE,EAAY,EAAE;IAC9C,IAAI,CAAE,UAAgC,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,CAAC;QACrD,MAAM,IAAI,KAAK,CAAC,UAAU,EAAE,kCAAkC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;IACvF,CAAC;IAED,OAAO,EAAc,CAAA;AACtB,CAAC,CAAC,CAAA;AAEF,MAAM,IAAI,GAAG,MAAM,uBAAuB,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC,CAAA;AAEzE,KAAK,MAAM,CAAC,EAAE,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;IACxD,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,KAAK,CAAC,KAAK,kBAAkB,KAAK,CAAC,MAAM,iBAAiB,KAAK,CAAC,WAAW,EAAE,CAAC,CAAA;AACrG,CAAC"}
|
package/out/sdk/sources.d.ts
CHANGED
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
|
-
* The pinned sources of the open profile, and the lock that records the bytes a build read.
|
|
7
|
-
*
|
|
8
|
-
* A source is a published file at one URL. The lock records its SHA-256 and byte count, the publication marker the
|
|
9
|
-
* server stated (`Last-Modified` or `ETag`), and the publisher's statement of terms. A build reads the locked bytes
|
|
10
|
-
* from the data root and refuses bytes whose digest differs, so a moving `latest` never enters an artifact unnoticed.
|
|
11
|
-
*/
|
|
12
1
|
import type { PathBuilder } from "path-ts";
|
|
13
2
|
/**
|
|
14
3
|
* The profile the open sources compile into.
|
|
@@ -47,13 +36,13 @@ export interface SourceDefinition {
|
|
|
47
36
|
/**
|
|
48
37
|
* The identifiers of the open profile's sources, as the lock keys them.
|
|
49
38
|
*/
|
|
50
|
-
export declare const SOURCE_IDS: readonly ["ourairports-airports", "ourairports-countries", "wikidata-iso3166-1"];
|
|
39
|
+
export declare const SOURCE_IDS: readonly ["iana-language-subtags", "ourairports-airports", "ourairports-countries", "wikidata-iso3166-1"];
|
|
51
40
|
export type SourceID = (typeof SOURCE_IDS)[number];
|
|
52
41
|
/**
|
|
53
42
|
* The SPARQL query that reads every item holding an ISO 3166-1 alpha-2, alpha-3 and numeric code.
|
|
54
43
|
*
|
|
55
44
|
* `wdt:` reads the best-rank claim.
|
|
56
|
-
* A state that
|
|
45
|
+
* A state that's ended, such as the German Democratic Republic (`DD`) or the Netherlands Antilles
|
|
57
46
|
* (`AN`), keeps its codes as best-rank claims, so the query also reads the dissolution date (P576)
|
|
58
47
|
* and the normalizer records such an entry as `formerly-used` rather than `officially-assigned`.
|
|
59
48
|
*
|
|
@@ -68,7 +57,7 @@ export declare const WIKIDATA_SPARQL_ENDPOINT = "https://query.wikidata.org/spar
|
|
|
68
57
|
/**
|
|
69
58
|
* The open profile's sources.
|
|
70
59
|
*
|
|
71
|
-
* The UN Statistics Division's M49 crosswalk
|
|
60
|
+
* The UN Statistics Division's M49 crosswalk isn't among them.
|
|
72
61
|
* The UN terms of use (https://www.un.org/en/about-us/terms-of-use, read 2026-11-06)
|
|
73
62
|
* grant "personal, non-commercial use, without any right to resell or redistribute"
|
|
74
63
|
* and exclude the right "to compile or create derivative works therefrom".
|
|
@@ -105,7 +94,9 @@ export interface SourceLock {
|
|
|
105
94
|
}>;
|
|
106
95
|
}
|
|
107
96
|
/**
|
|
108
|
-
* Where the pinned bytes of a source live.
|
|
97
|
+
* Where the pinned bytes of a source live: a current source under the cache root.
|
|
98
|
+
*
|
|
99
|
+
* A fetch checks the bytes against the lock, and fetches them again after the cache root is cleared.
|
|
109
100
|
*/
|
|
110
|
-
export declare function
|
|
101
|
+
export declare function pinnedSourceFile(source: SourceDefinition): PathBuilder;
|
|
111
102
|
//# sourceMappingURL=sources.d.ts.map
|
package/out/sdk/sources.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sources.d.ts","sourceRoot":"","sources":["../../sdk/sources.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sources.d.ts","sourceRoot":"","sources":["../../sdk/sources.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAE1C;;;;;;GAMG;AACH,eAAO,MAAM,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AC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAC3E;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,gBAAgB,GAAG,WAAW,CAEtE"}
|
package/out/sdk/sources.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
1
3
|
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
4
|
* The pinned sources of the open profile, and the lock that records the bytes a build read.
|
|
7
5
|
*
|
|
8
|
-
* A source is a published file at one URL.
|
|
9
|
-
*
|
|
10
|
-
*
|
|
6
|
+
* A source is a published file at one URL.
|
|
7
|
+
* The lock records its SHA-256 and byte count, the publication marker the server stated
|
|
8
|
+
* (`Last-Modified` or `ETag`), and the publisher's statement of terms.
|
|
9
|
+
*
|
|
10
|
+
* A build reads the locked bytes from the data root and refuses bytes whose digest differs,
|
|
11
|
+
* so a moving `latest` never enters an artifact unnoticed.
|
|
11
12
|
*/
|
|
12
|
-
import {
|
|
13
|
+
import { currentSourcePath } from "@mailwoman/core/data-root";
|
|
13
14
|
/**
|
|
14
15
|
* The profile the open sources compile into.
|
|
15
16
|
*
|
|
@@ -21,12 +22,17 @@ export const OPEN_PROFILE = "open-2026-11";
|
|
|
21
22
|
/**
|
|
22
23
|
* The identifiers of the open profile's sources, as the lock keys them.
|
|
23
24
|
*/
|
|
24
|
-
export const SOURCE_IDS = [
|
|
25
|
+
export const SOURCE_IDS = [
|
|
26
|
+
"iana-language-subtags",
|
|
27
|
+
"ourairports-airports",
|
|
28
|
+
"ourairports-countries",
|
|
29
|
+
"wikidata-iso3166-1",
|
|
30
|
+
];
|
|
25
31
|
/**
|
|
26
32
|
* The SPARQL query that reads every item holding an ISO 3166-1 alpha-2, alpha-3 and numeric code.
|
|
27
33
|
*
|
|
28
34
|
* `wdt:` reads the best-rank claim.
|
|
29
|
-
* A state that
|
|
35
|
+
* A state that's ended, such as the German Democratic Republic (`DD`) or the Netherlands Antilles
|
|
30
36
|
* (`AN`), keeps its codes as best-rank claims, so the query also reads the dissolution date (P576)
|
|
31
37
|
* and the normalizer records such an entry as `formerly-used` rather than `officially-assigned`.
|
|
32
38
|
*
|
|
@@ -46,7 +52,7 @@ export const WIKIDATA_SPARQL_ENDPOINT = "https://query.wikidata.org/sparql";
|
|
|
46
52
|
/**
|
|
47
53
|
* The open profile's sources.
|
|
48
54
|
*
|
|
49
|
-
* The UN Statistics Division's M49 crosswalk
|
|
55
|
+
* The UN Statistics Division's M49 crosswalk isn't among them.
|
|
50
56
|
* The UN terms of use (https://www.un.org/en/about-us/terms-of-use, read 2026-11-06)
|
|
51
57
|
* grant "personal, non-commercial use, without any right to resell or redistribute"
|
|
52
58
|
* and exclude the right "to compile or create derivative works therefrom".
|
|
@@ -55,6 +61,18 @@ export const WIKIDATA_SPARQL_ENDPOINT = "https://query.wikidata.org/sparql";
|
|
|
55
61
|
* recorded as not elected rather than pinned.
|
|
56
62
|
*/
|
|
57
63
|
export const SOURCES = [
|
|
64
|
+
{
|
|
65
|
+
id: "iana-language-subtags",
|
|
66
|
+
url: "https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry",
|
|
67
|
+
file: "iana-language-subtag-registry.txt",
|
|
68
|
+
terms: {
|
|
69
|
+
statement: "IANA and IETF intend that the Protocol Registries may be freely used by any party for any purpose. " +
|
|
70
|
+
"Any applicable rights that they may have in the Protocol Registries are subject to the Creative Commons CC0 1.0 dedication.",
|
|
71
|
+
readAt: "https://www.iana.org/help/licensing-terms",
|
|
72
|
+
elected: true,
|
|
73
|
+
},
|
|
74
|
+
feeds: ["bcp47-language", "bcp47-extlang", "iso15924-script", "bcp47-region", "bcp47-variant"],
|
|
75
|
+
},
|
|
58
76
|
{
|
|
59
77
|
id: "ourairports-airports",
|
|
60
78
|
url: "https://davidmegginson.github.io/ourairports-data/airports.csv",
|
|
@@ -90,9 +108,11 @@ export const SOURCES = [
|
|
|
90
108
|
},
|
|
91
109
|
];
|
|
92
110
|
/**
|
|
93
|
-
* Where the pinned bytes of a source live.
|
|
111
|
+
* Where the pinned bytes of a source live: a current source under the cache root.
|
|
112
|
+
*
|
|
113
|
+
* A fetch checks the bytes against the lock, and fetches them again after the cache root is cleared.
|
|
94
114
|
*/
|
|
95
|
-
export function
|
|
96
|
-
return
|
|
115
|
+
export function pinnedSourceFile(source) {
|
|
116
|
+
return currentSourcePath("registry", source.file);
|
|
97
117
|
}
|
|
98
118
|
//# sourceMappingURL=sources.js.map
|
package/out/sdk/sources.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sources.js","sourceRoot":"","sources":["../../sdk/sources.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"sources.js","sourceRoot":"","sources":["../../sdk/sources.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE;AAElE;;;;;;;;;GASG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAG7D;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,cAAc,CAAA;AA6B1C;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG;IACzB,uBAAuB;IACvB,sBAAsB;IACtB,uBAAuB;IACvB,oBAAoB;CACX,CAAA;AAIV;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;;;;;uBAKR,CAAA;AAEvB;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,mCAAmC,CAAA;AAE3E;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,OAAO,GAAgC;IACnD;QACC,EAAE,EAAE,uBAAuB;QAC3B,GAAG,EAAE,oFAAoF;QACzF,IAAI,EAAE,mCAAmC;QACzC,KAAK,EAAE;YACN,SAAS,EACR,qGAAqG;gBACrG,6HAA6H;YAC9H,MAAM,EAAE,2CAA2C;YACnD,OAAO,EAAE,IAAI;SACb;QACD,KAAK,EAAE,CAAC,gBAAgB,EAAE,eAAe,EAAE,iBAAiB,EAAE,cAAc,EAAE,eAAe,CAAC;KAC9F;IACD;QACC,EAAE,EAAE,sBAAsB;QAC1B,GAAG,EAAE,gEAAgE;QACrE,IAAI,EAAE,0BAA0B;QAChC,KAAK,EAAE;YACN,SAAS,EACR,wGAAwG;YACzG,MAAM,EAAE,+BAA+B;YACvC,OAAO,EAAE,IAAI;SACb;QACD,KAAK,EAAE,CAAC,eAAe,EAAE,eAAe,CAAC;KACzC;IACD;QACC,EAAE,EAAE,uBAAuB;QAC3B,GAAG,EAAE,iEAAiE;QACtE,IAAI,EAAE,2BAA2B;QACjC,KAAK,EAAE;YACN,SAAS,EACR,wGAAwG;YACzG,MAAM,EAAE,+BAA+B;YACvC,OAAO,EAAE,IAAI;SACb;QACD,KAAK,EAAE,CAAC,kBAAkB,CAAC;KAC3B;IACD;QACC,EAAE,EAAE,oBAAoB;QACxB,GAAG,EAAE,GAAG,wBAAwB,sBAAsB,kBAAkB,CAAC,eAAe,CAAC,EAAE;QAC3F,IAAI,EAAE,yBAAyB;QAC/B,KAAK,EAAE;YACN,SAAS,EACR,+GAA+G;YAChH,MAAM,EAAE,kDAAkD;YAC1D,OAAO,EAAE,IAAI;SACb;QACD,KAAK,EAAE,CAAC,kBAAkB,EAAE,kBAAkB,EAAE,mBAAmB,CAAC;KACpE;CACD,CAAA;AA2BD;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAAC,MAAwB;IACxD,OAAO,iBAAiB,CAAC,UAAU,EAAE,MAAM,CAAC,IAAI,CAAC,CAAA;AAClD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifact-path.d.ts","sourceRoot":"","sources":["../../tools/artifact-path.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"artifact-path.d.ts","sourceRoot":"","sources":["../../tools/artifact-path.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEvD"}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*/
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
6
3
|
/**
|
|
7
4
|
* Returns the module an artifact's bytes live in under `lib/artifacts/`, grouped by the dataset it reads.
|
|
8
5
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifact-path.js","sourceRoot":"","sources":["../../tools/artifact-path.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"artifact-path.js","sourceRoot":"","sources":["../../tools/artifact-path.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE;AAElE;;GAEG;AACH,MAAM,UAAU,kBAAkB,CAAC,IAAY;IAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,6BAA6B,EAAE,KAAK,CAAC,CAAA;AAC1D,CAAC"}
|
package/out/tools/bench.run.d.ts
CHANGED
|
@@ -1,19 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
|
-
* Measures the readers on this host and prints a Markdown report for `docs/performance.md`.
|
|
7
|
-
*
|
|
8
|
-
* Arms: a JavaScript `Set` of strings as the baseline, the TypeScript bitset reader, and the WebAssembly batch
|
|
9
|
-
* kernels, scalar and simd. Inputs: strings end to end, and packed bytes where an arm takes them. Batch sizes 1, 16,
|
|
10
|
-
* 256, 4,096 and the whole 17,576-key domain. Distributions: hits, misses, and a shuffled sweep of the domain. Startup:
|
|
11
|
-
* module import, artifact decode and validation, wasm compile and instantiate, first query. Every result is consumed
|
|
12
|
-
* so the work is kept.
|
|
13
|
-
*
|
|
14
|
-
* Usage: `node packages/registry/tools/bench.run.ts [--json]`
|
|
15
|
-
*
|
|
16
|
-
* The numbers describe one host and one run. The report records the host, Node and the artifact digests beside them.
|
|
17
|
-
*/
|
|
18
1
|
export {};
|
|
19
2
|
//# sourceMappingURL=bench.run.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bench.run.d.ts","sourceRoot":"","sources":["../../tools/bench.run.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"bench.run.d.ts","sourceRoot":"","sources":["../../tools/bench.run.ts"],"names":[],"mappings":""}
|
package/out/tools/bench.run.js
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
1
3
|
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
4
|
* Measures the readers on this host and prints a Markdown report for `docs/performance.md`.
|
|
7
5
|
*
|
|
8
|
-
* Arms: a JavaScript `Set` of strings as the baseline, the TypeScript bitset reader,
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
6
|
+
* Arms: a JavaScript `Set` of strings as the baseline, the TypeScript bitset reader,
|
|
7
|
+
* and the WebAssembly batch kernels, scalar and simd.
|
|
8
|
+
* Inputs: strings end to end, and packed bytes where an arm takes them.
|
|
9
|
+
*
|
|
10
|
+
* Batch sizes 1, 16, 256, 4,096 and the whole 17,576-key domain.
|
|
11
|
+
* Distributions: hits, misses, and a shuffled sweep of the domain.
|
|
12
|
+
*
|
|
13
|
+
* Startup: module import, artifact decode and validation, wasm compile and instantiate, first query.
|
|
14
|
+
* Every result is consumed so the work is kept.
|
|
13
15
|
*
|
|
14
16
|
* Usage: `node packages/registry/tools/bench.run.ts [--json]`
|
|
15
17
|
*
|
|
16
|
-
* The numbers describe one host and one run.
|
|
18
|
+
* The numbers describe one host and one run.
|
|
19
|
+
* The report records the host, Node and the artifact digests beside them.
|
|
17
20
|
*/
|
|
18
21
|
import { readLocalBuffer, readLocalJSONFile } from "@mailwoman/core/fs/readers";
|
|
19
22
|
import { prettyJSON } from "@mailwoman/core/json";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bench.run.js","sourceRoot":"","sources":["../../tools/bench.run.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"bench.run.js","sourceRoot":"","sources":["../../tools/bench.run.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE;AAElE;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC/E,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AACrD,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAA;AACpE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AAEnF,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAA;AAE3C,MAAM,EAAE,MAAM,EAAE,GAAG,cAAc,CAAC,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAA;AAE7F,MAAM,OAAO,GAAG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K,EAAE,EAAE,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;QACnD,OAAO,CAAC,GAAG,CAAC,KAAK,KAAK,MAAM,CAAC,EAAE,GAAG,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAA;IACxD,CAAC;IAED,OAAO,CAAC,GAAG,CAAC,kGAAkG,CAAC,CAAA;IAE/G,KAAK,MAAM,GAAG,IAAI,OAAO,EAAE,CAAC;QAC3B,OAAO,CAAC,GAAG,CAAC,KAAK,GAAG,CAAC,GAAG,MAAM,GAAG,CAAC,KAAK,MAAM,GAAG,CAAC,YAAY,MAAM,GAAG,CAAC,KAAK,MAAM,GAAG,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAA;IAChH,CAAC;IAED,OAAO,CAAC,GAAG,CAAC,uDAAuD,CAAC,CAAA;IAEpE,KAAK,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC;QACtD,OAAO,CAAC,GAAG,CAAC,KAAK,IAAI,MAAM,KAAK,CAAC,KAAK,MAAM,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,CAAA;IAC5E,CAAC;AACF,CAAC"}
|
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
|
-
* Builds `crates/registry-wasm` for `wasm32-unknown-unknown` twice, once with `simd128` and once without, and
|
|
7
|
-
* writes `wasm/registry-simd.wasm` and `wasm/registry.wasm`.
|
|
8
|
-
*
|
|
9
|
-
* The two builds use separate target directories, because a `RUSTFLAGS` change would otherwise invalidate every
|
|
10
|
-
* crate in the shared target directory.
|
|
11
|
-
*
|
|
12
|
-
* With `--check`, the tool builds without writing and exits non-zero when a build's SHA-256 differs from the
|
|
13
|
-
* committed binary's.
|
|
14
|
-
*
|
|
15
|
-
* Usage: `node packages/registry/tools/build-wasm.run.ts [--check]`
|
|
16
|
-
*/
|
|
17
1
|
export {};
|
|
18
2
|
//# sourceMappingURL=build-wasm.run.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-wasm.run.d.ts","sourceRoot":"","sources":["../../tools/build-wasm.run.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"build-wasm.run.d.ts","sourceRoot":"","sources":["../../tools/build-wasm.run.ts"],"names":[],"mappings":""}
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
1
3
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
4
|
+
* Builds `crates/registry-wasm` for `wasm32-unknown-unknown` twice, once with `simd128`
|
|
5
|
+
* and once without, and writes `wasm/registry-simd.wasm` and `wasm/registry.wasm`.
|
|
5
6
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
7
|
+
* The two builds use separate target directories, because a `RUSTFLAGS` change would
|
|
8
|
+
* otherwise invalidate every crate in the shared target directory.
|
|
8
9
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* With `--check`, the tool builds without writing and exits non-zero when a build's SHA-256 differs from the
|
|
13
|
-
* committed binary's.
|
|
10
|
+
* With `--check`, the tool builds without writing and exits non-zero
|
|
11
|
+
* when a build's SHA-256 differs from the committed binary's.
|
|
14
12
|
*
|
|
15
13
|
* Usage: `node packages/registry/tools/build-wasm.run.ts [--check]`
|
|
16
14
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-wasm.run.js","sourceRoot":"","sources":["../../tools/build-wasm.run.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"build-wasm.run.js","sourceRoot":"","sources":["../../tools/build-wasm.run.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE;AAElE;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAA;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAA;AAEpE,MAAM,EAAE,MAAM,EAAE,GAAG,cAAc,CAAC,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAA;AAE9F,MAAM,SAAS,GAAG,aAAa,CAAC,UAAU,CAAC,CAAA;AAE3C;;;;;GAKG;AACH,MAAM,QAAQ,GAAG;IAChB,EAAE,IAAI,EAAE,eAAe,EAAE,SAAS,EAAE,YAAY,CAAC,QAAQ,EAAE,eAAe,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE;IACzF;QACC,IAAI,EAAE,oBAAoB;QAC1B,SAAS,EAAE,YAAY,CAAC,QAAQ,EAAE,oBAAoB,CAAC;QACvD,MAAM,EAAE,CAAC,UAAU,EAAE,kDAAkD,CAAC;KACxE;CACQ,CAAA;AAEV,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;IAChC,MAAM,OAAO,CACZ,OAAO,EACP;QACC,OAAO;QACP,WAAW;QACX,UAAU;QACV,UAAU;QACV,wBAAwB;QACxB,IAAI;QACJ,eAAe;QACf,cAAc;QACd,OAAO,CAAC,SAAS;QACjB,GAAG,OAAO,CAAC,MAAM;KACjB,EACD,EAAE,GAAG,EAAE,SAAS,EAAE,CAClB,CAAA;IAED,MAAM,KAAK,GAAG,GAAG,OAAO,CAAC,SAAS,oDAAoD,CAAA;IACtF,MAAM,SAAS,GAAG,aAAa,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,CAAA;IACjE,MAAM,WAAW,GAAG,MAAM,UAAU,CAAC,KAAK,CAAC,CAAA;IAC3C,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,QAAQ,CAAC,KAAK,CAAC,CAAA;IAEtC,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;QAClB,MAAM,eAAe,GAAG,MAAM,UAAU,CAAC,SAAS,CAAC,CAAA;QAEnD,IAAI,eAAe,KAAK,WAAW,EAAE,CAAC;YACrC,OAAO,CAAC,GAAG,CAAC,QAAQ,OAAO,CAAC,IAAI,uBAAuB,WAAW,KAAK,IAAI,SAAS,CAAC,CAAA;QACtF,CAAC;aAAM,CAAC;YACP,OAAO,CAAC,KAAK,CAAC,QAAQ,OAAO,CAAC,IAAI,wBAAwB,eAAe,WAAW,WAAW,KAAK,IAAI,SAAS,CAAC,CAAA;YAElH,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAA;QACrB,CAAC;IACF,CAAC;SAAM,CAAC;QACP,MAAM,qBAAqB,CAAC,KAAK,EAAE,SAAS,CAAC,CAAA;QAE7C,OAAO,CAAC,GAAG,CAAC,cAAc,OAAO,CAAC,IAAI,KAAK,WAAW,KAAK,IAAI,SAAS,CAAC,CAAA;IAC1E,CAAC;AACF,CAAC"}
|
|
@@ -1,13 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
|
-
* Writes the section-kind constants TypeScript and Rust share from `definitions/sections.json`.
|
|
7
|
-
*
|
|
8
|
-
* Usage: `node packages/registry/tools/generate-sections.run.ts [--check]`
|
|
9
|
-
*
|
|
10
|
-
* `--check` exits non-zero when either generated file differs from what the definition produces.
|
|
11
|
-
*/
|
|
12
1
|
export {};
|
|
13
2
|
//# sourceMappingURL=generate-sections.run.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-sections.run.d.ts","sourceRoot":"","sources":["../../tools/generate-sections.run.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"generate-sections.run.d.ts","sourceRoot":"","sources":["../../tools/generate-sections.run.ts"],"names":[],"mappings":""}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
1
3
|
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
4
|
* Writes the section-kind constants TypeScript and Rust share from `definitions/sections.json`.
|
|
7
5
|
*
|
|
8
6
|
* Usage: `node packages/registry/tools/generate-sections.run.ts [--check]`
|
|
@@ -14,15 +12,12 @@ import { writeLocalFile } from "@mailwoman/core/fs/writers";
|
|
|
14
12
|
import { stringifyJSON } from "@mailwoman/core/json";
|
|
15
13
|
import { workspacePath } from "@mailwoman/core/paths";
|
|
16
14
|
import { parseArguments } from "@mailwoman/core/scripting/arguments";
|
|
15
|
+
import { SourceHeaderSyntax, spdxHeaderText } from "@mailwoman/core/spdx-header";
|
|
17
16
|
const { values } = parseArguments({ options: { check: { type: "boolean", default: false } } });
|
|
18
17
|
const registry = (...segments) => workspacePath("registry", ...segments);
|
|
19
18
|
const definitions = await readLocalJSONFile(registry("definitions", "sections.json"));
|
|
20
19
|
const constant = (name) => name.toUpperCase().replaceAll("-", "_");
|
|
21
|
-
const typescript =
|
|
22
|
-
* @copyright Sister Software
|
|
23
|
-
* @license AGPL-3.0
|
|
24
|
-
* @author Teffen Ellis, et al.
|
|
25
|
-
*
|
|
20
|
+
const typescript = `${spdxHeaderText(SourceHeaderSyntax.Slash)}/**
|
|
26
21
|
* The RGY1 section kinds. Generated from definitions/sections.json by tools/generate-sections.run.ts. Edit the
|
|
27
22
|
* definition rather than this file.
|
|
28
23
|
*/
|
|
@@ -80,11 +75,7 @@ export const SECTION_NAME: Readonly<Record<SectionKind, string>> = {
|
|
|
80
75
|
${definitions.kinds.map((kind) => `\t[SectionKind.${constant(kind.name)}]: ${stringifyJSON(kind.name)},`).join("\n")}
|
|
81
76
|
}
|
|
82
77
|
`;
|
|
83
|
-
const rust =
|
|
84
|
-
// @license AGPL-3.0
|
|
85
|
-
// @author Teffen Ellis, et al.
|
|
86
|
-
|
|
87
|
-
//! The RGY1 section kinds. Generated from \`definitions/sections.json\` by
|
|
78
|
+
const rust = `${spdxHeaderText(SourceHeaderSyntax.Slash)}//! The RGY1 section kinds. Generated from \`definitions/sections.json\` by
|
|
88
79
|
//! \`tools/generate-sections.run.ts\`. Edit the definition rather than this file.
|
|
89
80
|
|
|
90
81
|
pub const MAGIC: &[u8; 4] = b${stringifyJSON(definitions.envelope.magic)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-sections.run.js","sourceRoot":"","sources":["../../tools/generate-sections.run.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"generate-sections.run.js","sourceRoot":"","sources":["../../tools/generate-sections.run.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE;AAElE;;;;;;GAMG;AAEH,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AACjF,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AACrD,O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IAAI,CAAC,IAAI,CAAC;;;;CAI9G,CAAA;AAED,MAAM,OAAO,GAA4B;IACxC,CAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,uBAAuB,CAAC,EAAE,UAAU,CAAC;IAC9D,CAAC,QAAQ,CAAC,QAAQ,EAAE,eAAe,EAAE,KAAK,EAAE,aAAa,CAAC,EAAE,IAAI,CAAC;CACjE,CAAA;AAED,IAAI,KAAK,GAAG,CAAC,CAAA;AAEb,KAAK,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,OAAO,EAAE,CAAC;IACvC,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;QAClB,MAAM,OAAO,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAA;QAE7D,IAAI,OAAO,KAAK,OAAO,EAAE,CAAC;YACzB,OAAO,CAAC,KAAK,CAAC,GAAG,IAAI,yCAAyC,CAAC,CAAA;YAE/D,KAAK,EAAE,CAAA;QACR,CAAC;IACF,CAAC;SAAM,CAAC;QACP,MAAM,cAAc,CAAC,OAAO,EAAE,IAAI,CAAC,CAAA;QAEnC,OAAO,CAAC,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC,CAAA;IAC7B,CAAC;AACF,CAAC;AAED,IAAI,KAAK,EAAE,CAAC;IACX,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAA;AACrB,CAAC"}
|
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
|
-
* Compiles the normalized data into RGY1 artifacts with `crates/registry-build`, writes each artifact as a
|
|
7
|
-
* TypeScript module under `lib/artifacts/`, and records every artifact's SHA-256 in `data/manifests/artifacts.json`.
|
|
8
|
-
*
|
|
9
|
-
* Each artifact is its own module exporting one lazily decoded getter, so a bundle that imports the collision
|
|
10
|
-
* predicate holds the collision bitset and no airport record. The fixture profile under `test/fixtures/` is compiled
|
|
11
|
-
* too, into `test/fixtures/artifacts/*.rgy1`, so the committed fixtures stay equal to the compiler's output.
|
|
12
|
-
*
|
|
13
|
-
* Usage: `node packages/registry/tools/generate.run.ts [--check]`
|
|
14
|
-
*
|
|
15
|
-
* `--check` compiles without writing and exits non-zero when a generated module or manifest differs.
|
|
16
|
-
*/
|
|
17
1
|
export {};
|
|
18
2
|
//# sourceMappingURL=generate.run.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate.run.d.ts","sourceRoot":"","sources":["../../tools/generate.run.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"generate.run.d.ts","sourceRoot":"","sources":["../../tools/generate.run.ts"],"names":[],"mappings":""}
|