@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.
@@ -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.js";
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.js";
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.js";
16
- export { applyCjkNormalization, type CjkResult } from "./cjk.js";
17
- export { normalize } from "./compute.js";
18
- export { applyNFC } from "./nfc.js";
19
- export { composeMaps, identityMap } from "./offset-map.js";
20
- export { applyPunctuation } from "./punctuation.js";
21
- export type { NormalizationTransform, NormalizeOpts, NormalizedInput, SpanRange } from "./types.js";
22
- export { collapseWhitespace } from "./whitespace.js";
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.8.0",
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
- ".": "./out/index.js"
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
  }