@mailwoman/normalize 5.8.0 → 5.10.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/out/abbreviations.d.ts +1 -1
- package/out/compute.d.ts +1 -1
- package/out/index.d.ts +8 -8
- package/package.json +12 -2
package/out/abbreviations.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* augmentation). Both sides should eventually share dictionaries; for v1 this dict is duplicated
|
|
11
11
|
* intentionally — refactoring sharing is a separate task.
|
|
12
12
|
*/
|
|
13
|
-
import type { SpanRange } from "./types.
|
|
13
|
+
import type { SpanRange } from "./types.ts";
|
|
14
14
|
export interface AbbreviationEntry {
|
|
15
15
|
from: string;
|
|
16
16
|
to: string;
|
package/out/compute.d.ts
CHANGED
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
* `normalize(raw, opts)` — the Stage 1 entry point. Composes NFC + punctuation + whitespace
|
|
7
7
|
* (always) with case-fold + abbreviation expansion (opt-in).
|
|
8
8
|
*/
|
|
9
|
-
import type { NormalizedInput, NormalizeOpts } from "./types.
|
|
9
|
+
import type { NormalizedInput, NormalizeOpts } from "./types.ts";
|
|
10
10
|
export declare function normalize(raw: string, opts?: NormalizeOpts): NormalizedInput;
|
|
11
11
|
//# sourceMappingURL=compute.d.ts.map
|
package/out/index.d.ts
CHANGED
|
@@ -12,12 +12,12 @@
|
|
|
12
12
|
*
|
|
13
13
|
* See `docs/articles/plan/reference/STAGES.md` § Stage 1 for the contract.
|
|
14
14
|
*/
|
|
15
|
-
export { type AbbreviationEntry, abbreviationDictionary, expandAbbreviations } from "./abbreviations.
|
|
16
|
-
export { applyCjkNormalization, type CjkResult } from "./cjk.
|
|
17
|
-
export { normalize } from "./compute.
|
|
18
|
-
export { applyNFC } from "./nfc.
|
|
19
|
-
export { composeMaps, identityMap } from "./offset-map.
|
|
20
|
-
export { applyPunctuation } from "./punctuation.
|
|
21
|
-
export type { NormalizationTransform, NormalizeOpts, NormalizedInput, SpanRange } from "./types.
|
|
22
|
-
export { collapseWhitespace } from "./whitespace.
|
|
15
|
+
export { type AbbreviationEntry, abbreviationDictionary, expandAbbreviations } from "./abbreviations.ts";
|
|
16
|
+
export { applyCjkNormalization, type CjkResult } from "./cjk.ts";
|
|
17
|
+
export { normalize } from "./compute.ts";
|
|
18
|
+
export { applyNFC } from "./nfc.ts";
|
|
19
|
+
export { composeMaps, identityMap } from "./offset-map.ts";
|
|
20
|
+
export { applyPunctuation } from "./punctuation.ts";
|
|
21
|
+
export type { NormalizationTransform, NormalizeOpts, NormalizedInput, SpanRange } from "./types.ts";
|
|
22
|
+
export { collapseWhitespace } from "./whitespace.ts";
|
|
23
23
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mailwoman/normalize",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.10.0",
|
|
4
4
|
"description": "Stage 1 of the runtime pipeline — deterministic input preprocessing (Unicode NFC, punctuation, whitespace, abbreviation). Pure functions, no ML.",
|
|
5
5
|
"license": "AGPL-3.0-only OR LicenseRef-Commercial",
|
|
6
6
|
"repository": {
|
|
@@ -17,9 +17,19 @@
|
|
|
17
17
|
"type": "module",
|
|
18
18
|
"exports": {
|
|
19
19
|
"./package.json": "./package.json",
|
|
20
|
-
".":
|
|
20
|
+
".": {
|
|
21
|
+
"types": "./out/index.d.ts",
|
|
22
|
+
"default": "./out/index.js"
|
|
23
|
+
}
|
|
21
24
|
},
|
|
22
25
|
"publishConfig": {
|
|
26
|
+
"exports": {
|
|
27
|
+
"./package.json": "./package.json",
|
|
28
|
+
".": {
|
|
29
|
+
"types": "./out/index.d.ts",
|
|
30
|
+
"default": "./out/index.js"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
23
33
|
"access": "public"
|
|
24
34
|
}
|
|
25
35
|
}
|