@finbheara/domain 0.37.0 → 0.39.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/dist/age.js +5 -1
- package/dist/chunks/{place-8kvsn5wp.js → place-k6y6fe1y.js} +32 -2
- package/dist/chunks/{place-3w1mr2vh.js → place-mpeps8tn.js} +6 -1
- package/dist/chunks/{place-36esw9p7.js → place-y66f4138.js} +1 -1
- package/dist/geocode.js +76 -63
- package/dist/place.js +5 -1
- package/dist/schedule.js +2 -2
- package/dist/school.js +1 -1
- package/dist/title.js +2 -2
- package/dist/types/age-title.d.ts +2 -0
- package/dist/types/age.d.ts +1 -1
- package/dist/types/place.d.ts +3 -0
- package/package.json +1 -1
package/dist/place.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
+
GENERIC_WORDS2,
|
|
3
|
+
genericKey2,
|
|
2
4
|
DEFAULT_PLACE_CAPACITY2,
|
|
3
5
|
createPlaceReader2,
|
|
4
6
|
DEFAULT_PLACE_READER2,
|
|
@@ -17,14 +19,16 @@ import {
|
|
|
17
19
|
placesRelation2,
|
|
18
20
|
probablySamePlace2,
|
|
19
21
|
sameReading2
|
|
20
|
-
} from "./chunks/place-
|
|
22
|
+
} from "./chunks/place-k6y6fe1y.js";
|
|
21
23
|
import"./chunks/place-tcgfvemw.js";
|
|
22
24
|
export {
|
|
23
25
|
DEFAULT_PLACE_CAPACITY2 as DEFAULT_PLACE_CAPACITY,
|
|
24
26
|
DEFAULT_PLACE_READER2 as DEFAULT_PLACE_READER,
|
|
27
|
+
GENERIC_WORDS2 as GENERIC_WORDS,
|
|
25
28
|
areAllPlaceTokens2 as areAllPlaceTokens,
|
|
26
29
|
countryCodeOf2 as countryCodeOf,
|
|
27
30
|
createPlaceReader2 as createPlaceReader,
|
|
31
|
+
genericKey2 as genericKey,
|
|
28
32
|
isPlaceToken2 as isPlaceToken,
|
|
29
33
|
oireachtasOfRegion2 as oireachtasOfRegion,
|
|
30
34
|
place2 as place,
|
package/dist/schedule.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import"./chunks/place-
|
|
1
|
+
import"./chunks/place-mpeps8tn.js";
|
|
2
2
|
import {
|
|
3
3
|
compTitle2,
|
|
4
4
|
matchTitle2
|
|
5
|
-
} from "./chunks/place-
|
|
5
|
+
} from "./chunks/place-y66f4138.js";
|
|
6
6
|
|
|
7
7
|
function hallKey(hall) {
|
|
8
8
|
return hall.normalize("NFKD").replace(/\p{M}/gu, "").toLowerCase().replace(/[^a-z0-9]+/g, " ").trim();
|
package/dist/school.js
CHANGED
package/dist/title.js
CHANGED
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
titleRelation2,
|
|
7
7
|
ladderOf2,
|
|
8
8
|
matchTitle2
|
|
9
|
-
} from "./chunks/place-
|
|
10
|
-
import"./chunks/place-
|
|
9
|
+
} from "./chunks/place-y66f4138.js";
|
|
10
|
+
import"./chunks/place-mpeps8tn.js";
|
|
11
11
|
export {
|
|
12
12
|
compTitle2 as compTitle,
|
|
13
13
|
ladderOf2 as ladderOf,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const printsUnderOpen: (print: string) => boolean;
|
|
2
|
+
export declare const printsAdultCode: (phrase: string) => boolean;
|
|
2
3
|
export declare const TITLE_RANGE_MIN = 3;
|
|
3
4
|
export declare const TITLE_RANGE_MAX = 40;
|
|
4
5
|
export interface AgeTitleSpan {
|
|
@@ -11,4 +12,5 @@ export interface AgeTitleToken {
|
|
|
11
12
|
readonly span: AgeTitleSpan | null;
|
|
12
13
|
}
|
|
13
14
|
export declare function ageTitleToken(title: string): AgeTitleToken;
|
|
15
|
+
export declare function readsSeniorAdult(title: string, span: AgeTitleSpan): boolean;
|
|
14
16
|
export declare function adultBeside(band: string): string | undefined;
|
package/dist/types/age.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type AgeTitleSpan } from "./age-title.ts";
|
|
2
2
|
import type { AgeArm, AgeClause, AgeComparison, AgeContext, AgeInterval, AgeKind, AgeLadder, AgeMisuse, AgeRefusal, AgeRelation, AgeRelationReason, AgeSource, AgeSpan, BirthYears, YOBContext, YoungFloorVerdict } from "./age-types.ts";
|
|
3
3
|
import { type EmptyReason, type Validated } from "./validated.ts";
|
|
4
|
-
export { type AgeTitleSpan, type AgeTitleToken, TITLE_RANGE_MAX, TITLE_RANGE_MIN, adultBeside, ageTitleToken, printsUnderOpen, } from "./age-title.ts";
|
|
4
|
+
export { type AgeTitleSpan, type AgeTitleToken, TITLE_RANGE_MAX, TITLE_RANGE_MIN, adultBeside, ageTitleToken, printsAdultCode, printsUnderOpen, readsSeniorAdult, } from "./age-title.ts";
|
|
5
5
|
export type { AgeArm, AgeClause, AgeComparison, AgeContext, AgeInterval, AgeKind, AgeLadder, AgeMisuse, AgeRefusal, AgeRelation, AgeRelationReason, AgeSource, AgeSpan, BirthYears, EmptyReason, Validated, YOBContext, YoungFloorVerdict, };
|
|
6
6
|
export declare const YOUNGEST_FLOOR = 0;
|
|
7
7
|
export declare const ADULT_FLOOR = 18;
|
package/dist/types/place.d.ts
CHANGED
|
@@ -62,7 +62,10 @@ export interface PlaceReaderOptions {
|
|
|
62
62
|
readonly refusals?: PlaceRefusals | ReadonlyMap<string, PlaceRefusal>;
|
|
63
63
|
readonly capacity?: number;
|
|
64
64
|
readonly within?: Readonly<Record<string, PlaceWithin>>;
|
|
65
|
+
readonly generic?: boolean;
|
|
65
66
|
}
|
|
67
|
+
export declare const GENERIC_WORDS: Readonly<Record<string, string>>;
|
|
68
|
+
export declare function genericKey(folded: string): string | undefined;
|
|
66
69
|
export declare const DEFAULT_PLACE_CAPACITY = 8192;
|
|
67
70
|
export declare function createPlaceReader(options?: PlaceReaderOptions): {
|
|
68
71
|
place: (print: string, ctx?: string | PlaceContext) => Place;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finbheara/domain",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.39.0",
|
|
4
4
|
"description": "Places, CLRG regions, school names, ages, dances, competition titles and schedules, and a person's print in its role, as they are printed: read, compared and told apart",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"places",
|