@fgv/ts-bcp47 5.1.0-16 → 5.1.0-18
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/packlets/bcp47/languageTag.js +1 -1
- package/dist/packlets/iana/common/converters.js +2 -2
- package/dist/packlets/iana/jar/jarConverters.js +2 -2
- package/dist/ts-bcp47.d.ts +5 -5
- package/lib/packlets/bcp47/languageTag.d.ts +1 -1
- package/lib/packlets/bcp47/languageTag.js +1 -1
- package/lib/packlets/iana/common/converters.d.ts +2 -2
- package/lib/packlets/iana/common/converters.js +2 -2
- package/lib/packlets/iana/jar/jarConverters.d.ts +2 -2
- package/lib/packlets/iana/jar/jarConverters.js +2 -2
- package/package.json +10 -10
|
@@ -201,7 +201,7 @@ export class LanguageTag {
|
|
|
201
201
|
* Creates a new {@link Bcp47.LanguageTag | language tag} from a supplied
|
|
202
202
|
* {@link Bcp47.Subtags | subtags} using optional configuration,
|
|
203
203
|
* if supplied.
|
|
204
|
-
* @param
|
|
204
|
+
* @param subtags - The {@link Bcp47.Subtags | subtags} from which the
|
|
205
205
|
* {@link Bcp47.LanguageTag | language tag} is te be constructed.
|
|
206
206
|
* @param options - (optional) set of {@link Bcp47.ILanguageTagInitOptions | init options}
|
|
207
207
|
* to guide the validation and normalization of this tag.
|
|
@@ -43,10 +43,10 @@ export const isoAlpha3RegionCode = Validate.isoAlpha3RegionCode.converter;
|
|
|
43
43
|
*/
|
|
44
44
|
export const unM49RegionCode = Validate.unM49RegionCode.converter;
|
|
45
45
|
/**
|
|
46
|
-
* Helper function which creates a converter that returns a validated {@
|
|
46
|
+
* Helper function which creates a converter that returns a validated {@link Iana.Model.IDatedRegistry | DatedRegistry}
|
|
47
47
|
* containing entries of supplied template type `T`.
|
|
48
48
|
* @param entryConverter - A `Converter<T>` to validate each entry
|
|
49
|
-
* @returns A new validating `Converter` which yields {@
|
|
49
|
+
* @returns A new validating `Converter` which yields {@link Iana.Model.IDatedRegistry | DatedRegistry<T>}
|
|
50
50
|
* @public
|
|
51
51
|
*/
|
|
52
52
|
export function datedRegistry(entryConverter) {
|
|
@@ -30,10 +30,10 @@ export const fileDateEntry = Converters.strictObject({
|
|
|
30
30
|
'File-Date': CommonConverters.yearMonthDaySpec
|
|
31
31
|
});
|
|
32
32
|
/**
|
|
33
|
-
* Helper function which creates a converter that returns a validated {@
|
|
33
|
+
* Helper function which creates a converter that returns a validated {@link Iana.Model.IDatedRegistry | DatedRegistry}
|
|
34
34
|
* containing entries of supplied template type `T`.
|
|
35
35
|
* @param entryConverter - A `Converter<T>` to validate each entry
|
|
36
|
-
* @returns A new validating `Converter` which yields {@
|
|
36
|
+
* @returns A new validating `Converter` which yields {@link Iana.Model.IDatedRegistry | DatedRegistry<T>}
|
|
37
37
|
* @internal
|
|
38
38
|
*/
|
|
39
39
|
export function datedRegistryFromJarRecords(entryConverter) {
|
package/dist/ts-bcp47.d.ts
CHANGED
|
@@ -158,19 +158,19 @@ declare namespace Csv {
|
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
/**
|
|
161
|
-
* Helper function which creates a converter that returns a validated {@
|
|
161
|
+
* Helper function which creates a converter that returns a validated {@link Iana.Model.IDatedRegistry | DatedRegistry}
|
|
162
162
|
* containing entries of supplied template type `T`.
|
|
163
163
|
* @param entryConverter - A `Converter<T>` to validate each entry
|
|
164
|
-
* @returns A new validating `Converter` which yields {@
|
|
164
|
+
* @returns A new validating `Converter` which yields {@link Iana.Model.IDatedRegistry | DatedRegistry<T>}
|
|
165
165
|
* @public
|
|
166
166
|
*/
|
|
167
167
|
declare function datedRegistry<T, TC = unknown>(entryConverter: Converter<T, TC>): Converter<IDatedRegistry<T>, unknown>;
|
|
168
168
|
|
|
169
169
|
/**
|
|
170
|
-
* Helper function which creates a converter that returns a validated {@
|
|
170
|
+
* Helper function which creates a converter that returns a validated {@link Iana.Model.IDatedRegistry | DatedRegistry}
|
|
171
171
|
* containing entries of supplied template type `T`.
|
|
172
172
|
* @param entryConverter - A `Converter<T>` to validate each entry
|
|
173
|
-
* @returns A new validating `Converter` which yields {@
|
|
173
|
+
* @returns A new validating `Converter` which yields {@link Iana.Model.IDatedRegistry | DatedRegistry<T>}
|
|
174
174
|
* @internal
|
|
175
175
|
*/
|
|
176
176
|
declare function datedRegistryFromJarRecords<T, TC = unknown>(entryConverter: Converter<T, TC>): Converter<IDatedRegistry<T>, TC>;
|
|
@@ -1461,7 +1461,7 @@ declare class LanguageTag {
|
|
|
1461
1461
|
* Creates a new {@link Bcp47.LanguageTag | language tag} from a supplied
|
|
1462
1462
|
* {@link Bcp47.Subtags | subtags} using optional configuration,
|
|
1463
1463
|
* if supplied.
|
|
1464
|
-
* @param
|
|
1464
|
+
* @param subtags - The {@link Bcp47.Subtags | subtags} from which the
|
|
1465
1465
|
* {@link Bcp47.LanguageTag | language tag} is te be constructed.
|
|
1466
1466
|
* @param options - (optional) set of {@link Bcp47.ILanguageTagInitOptions | init options}
|
|
1467
1467
|
* to guide the validation and normalization of this tag.
|
|
@@ -139,7 +139,7 @@ export declare class LanguageTag {
|
|
|
139
139
|
* Creates a new {@link Bcp47.LanguageTag | language tag} from a supplied
|
|
140
140
|
* {@link Bcp47.Subtags | subtags} using optional configuration,
|
|
141
141
|
* if supplied.
|
|
142
|
-
* @param
|
|
142
|
+
* @param subtags - The {@link Bcp47.Subtags | subtags} from which the
|
|
143
143
|
* {@link Bcp47.LanguageTag | language tag} is te be constructed.
|
|
144
144
|
* @param options - (optional) set of {@link Bcp47.ILanguageTagInitOptions | init options}
|
|
145
145
|
* to guide the validation and normalization of this tag.
|
|
@@ -237,7 +237,7 @@ class LanguageTag {
|
|
|
237
237
|
* Creates a new {@link Bcp47.LanguageTag | language tag} from a supplied
|
|
238
238
|
* {@link Bcp47.Subtags | subtags} using optional configuration,
|
|
239
239
|
* if supplied.
|
|
240
|
-
* @param
|
|
240
|
+
* @param subtags - The {@link Bcp47.Subtags | subtags} from which the
|
|
241
241
|
* {@link Bcp47.LanguageTag | language tag} is te be constructed.
|
|
242
242
|
* @param options - (optional) set of {@link Bcp47.ILanguageTagInitOptions | init options}
|
|
243
243
|
* to guide the validation and normalization of this tag.
|
|
@@ -21,10 +21,10 @@ export declare const isoAlpha3RegionCode: Converter<import("./model").IsoAlpha3R
|
|
|
21
21
|
*/
|
|
22
22
|
export declare const unM49RegionCode: Converter<import("./model").UnM49RegionCode, unknown>;
|
|
23
23
|
/**
|
|
24
|
-
* Helper function which creates a converter that returns a validated {@
|
|
24
|
+
* Helper function which creates a converter that returns a validated {@link Iana.Model.IDatedRegistry | DatedRegistry}
|
|
25
25
|
* containing entries of supplied template type `T`.
|
|
26
26
|
* @param entryConverter - A `Converter<T>` to validate each entry
|
|
27
|
-
* @returns A new validating `Converter` which yields {@
|
|
27
|
+
* @returns A new validating `Converter` which yields {@link Iana.Model.IDatedRegistry | DatedRegistry<T>}
|
|
28
28
|
* @public
|
|
29
29
|
*/
|
|
30
30
|
export declare function datedRegistry<T, TC = unknown>(entryConverter: Converter<T, TC>): Converter<IDatedRegistry<T>, unknown>;
|
|
@@ -80,10 +80,10 @@ exports.isoAlpha3RegionCode = Validate.isoAlpha3RegionCode.converter;
|
|
|
80
80
|
*/
|
|
81
81
|
exports.unM49RegionCode = Validate.unM49RegionCode.converter;
|
|
82
82
|
/**
|
|
83
|
-
* Helper function which creates a converter that returns a validated {@
|
|
83
|
+
* Helper function which creates a converter that returns a validated {@link Iana.Model.IDatedRegistry | DatedRegistry}
|
|
84
84
|
* containing entries of supplied template type `T`.
|
|
85
85
|
* @param entryConverter - A `Converter<T>` to validate each entry
|
|
86
|
-
* @returns A new validating `Converter` which yields {@
|
|
86
|
+
* @returns A new validating `Converter` which yields {@link Iana.Model.IDatedRegistry | DatedRegistry<T>}
|
|
87
87
|
* @public
|
|
88
88
|
*/
|
|
89
89
|
function datedRegistry(entryConverter) {
|
|
@@ -7,10 +7,10 @@ import { IFileDateEntry } from './jarModel';
|
|
|
7
7
|
*/
|
|
8
8
|
export declare const fileDateEntry: Conversion.ObjectConverter<IFileDateEntry, unknown>;
|
|
9
9
|
/**
|
|
10
|
-
* Helper function which creates a converter that returns a validated {@
|
|
10
|
+
* Helper function which creates a converter that returns a validated {@link Iana.Model.IDatedRegistry | DatedRegistry}
|
|
11
11
|
* containing entries of supplied template type `T`.
|
|
12
12
|
* @param entryConverter - A `Converter<T>` to validate each entry
|
|
13
|
-
* @returns A new validating `Converter` which yields {@
|
|
13
|
+
* @returns A new validating `Converter` which yields {@link Iana.Model.IDatedRegistry | DatedRegistry<T>}
|
|
14
14
|
* @internal
|
|
15
15
|
*/
|
|
16
16
|
export declare function datedRegistryFromJarRecords<T, TC = unknown>(entryConverter: Converter<T, TC>): Converter<IDatedRegistry<T>, TC>;
|
|
@@ -67,10 +67,10 @@ exports.fileDateEntry = ts_utils_1.Converters.strictObject({
|
|
|
67
67
|
'File-Date': CommonConverters.yearMonthDaySpec
|
|
68
68
|
});
|
|
69
69
|
/**
|
|
70
|
-
* Helper function which creates a converter that returns a validated {@
|
|
70
|
+
* Helper function which creates a converter that returns a validated {@link Iana.Model.IDatedRegistry | DatedRegistry}
|
|
71
71
|
* containing entries of supplied template type `T`.
|
|
72
72
|
* @param entryConverter - A `Converter<T>` to validate each entry
|
|
73
|
-
* @returns A new validating `Converter` which yields {@
|
|
73
|
+
* @returns A new validating `Converter` which yields {@link Iana.Model.IDatedRegistry | DatedRegistry<T>}
|
|
74
74
|
* @internal
|
|
75
75
|
*/
|
|
76
76
|
function datedRegistryFromJarRecords(entryConverter) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fgv/ts-bcp47",
|
|
3
|
-
"version": "5.1.0-
|
|
3
|
+
"version": "5.1.0-18",
|
|
4
4
|
"description": "BCP-47 Tag Utilities",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -61,20 +61,20 @@
|
|
|
61
61
|
"@types/heft-jest": "1.0.6",
|
|
62
62
|
"eslint-plugin-tsdoc": "~0.5.2",
|
|
63
63
|
"typedoc": "~0.28.16",
|
|
64
|
-
"@fgv/typedoc-compact-theme": "5.1.0-
|
|
65
|
-
"@fgv/ts-
|
|
66
|
-
"@fgv/ts-
|
|
67
|
-
"@fgv/
|
|
68
|
-
"@fgv/
|
|
69
|
-
"@fgv/ts-utils": "5.1.0-
|
|
64
|
+
"@fgv/typedoc-compact-theme": "5.1.0-18",
|
|
65
|
+
"@fgv/ts-extras": "5.1.0-18",
|
|
66
|
+
"@fgv/ts-utils-jest": "5.1.0-18",
|
|
67
|
+
"@fgv/heft-dual-rig": "5.1.0-18",
|
|
68
|
+
"@fgv/ts-json-base": "5.1.0-18",
|
|
69
|
+
"@fgv/ts-utils": "5.1.0-18"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
72
|
"luxon": "^3.7.2"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
|
-
"@fgv/ts-utils": "5.1.0-
|
|
76
|
-
"@fgv/ts-
|
|
77
|
-
"@fgv/ts-
|
|
75
|
+
"@fgv/ts-utils": "5.1.0-18",
|
|
76
|
+
"@fgv/ts-json-base": "5.1.0-18",
|
|
77
|
+
"@fgv/ts-extras": "5.1.0-18"
|
|
78
78
|
},
|
|
79
79
|
"repository": {
|
|
80
80
|
"type": "git",
|