polytypo 1.7.0 → 1.8.1

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.
Files changed (54) hide show
  1. package/dist/{chunk-DAIPI5CX.js → chunk-2DNTZH4F.js} +2 -2
  2. package/dist/{chunk-I2QPXPHX.cjs → chunk-3HJSBQ3V.cjs} +3 -3
  3. package/dist/{chunk-I2QPXPHX.cjs.map → chunk-3HJSBQ3V.cjs.map} +1 -1
  4. package/dist/{chunk-VDLHT5CW.cjs → chunk-46OPZEOJ.cjs} +16 -16
  5. package/dist/{chunk-VDLHT5CW.cjs.map → chunk-46OPZEOJ.cjs.map} +1 -1
  6. package/dist/{chunk-JE2MK4CC.js → chunk-4RLNGRZY.js} +101 -40
  7. package/dist/chunk-4RLNGRZY.js.map +1 -0
  8. package/dist/{chunk-GUTUSN4K.js → chunk-7D6OKNF7.js} +4 -4
  9. package/dist/{chunk-ITDTGCLJ.js → chunk-C7IOLTT5.js} +2 -2
  10. package/dist/{chunk-54TSHDNC.cjs → chunk-DRSERRP3.cjs} +115 -54
  11. package/dist/chunk-DRSERRP3.cjs.map +1 -0
  12. package/dist/{chunk-MMXKQUAS.cjs → chunk-GFU64ZPK.cjs} +4 -4
  13. package/dist/{chunk-MMXKQUAS.cjs.map → chunk-GFU64ZPK.cjs.map} +1 -1
  14. package/dist/{chunk-U5Y7C2L4.js → chunk-GSH2742L.js} +2 -2
  15. package/dist/{chunk-25XZKUNP.js → chunk-LO2IGWUX.js} +2 -2
  16. package/dist/chunk-LO2IGWUX.js.map +1 -0
  17. package/dist/{chunk-IQHYZG2K.cjs → chunk-LQOZ3W4B.cjs} +6 -6
  18. package/dist/{chunk-IQHYZG2K.cjs.map → chunk-LQOZ3W4B.cjs.map} +1 -1
  19. package/dist/{chunk-74I62TZ2.js → chunk-NCYZYIOG.js} +4 -4
  20. package/dist/{chunk-FMU74VA6.cjs → chunk-QZIVTU25.cjs} +2 -2
  21. package/dist/chunk-QZIVTU25.cjs.map +1 -0
  22. package/dist/{chunk-HBIIWBB5.js → chunk-U2POYXTP.js} +2 -2
  23. package/dist/chunk-W7NXX74B.cjs +33 -0
  24. package/dist/{chunk-33SLJJSZ.cjs.map → chunk-W7NXX74B.cjs.map} +1 -1
  25. package/dist/chunk-Y7GDDTZ4.cjs +35 -0
  26. package/dist/{chunk-X6CI7GWV.cjs.map → chunk-Y7GDDTZ4.cjs.map} +1 -1
  27. package/dist/{chunk-JVBK3LG3.js → chunk-YLIX3M2X.js} +2 -2
  28. package/dist/chunk-YRAXUXVB.cjs +31 -0
  29. package/dist/{chunk-HTCGXDEG.cjs.map → chunk-YRAXUXVB.cjs.map} +1 -1
  30. package/dist/html.cjs +10 -10
  31. package/dist/html.js +5 -5
  32. package/dist/index.cjs +18 -18
  33. package/dist/index.js +8 -8
  34. package/dist/markdown.cjs +11 -11
  35. package/dist/markdown.js +6 -6
  36. package/dist/text.cjs +8 -8
  37. package/dist/text.js +3 -3
  38. package/dist/yaml.cjs +10 -10
  39. package/dist/yaml.js +5 -5
  40. package/package.json +1 -1
  41. package/dist/chunk-25XZKUNP.js.map +0 -1
  42. package/dist/chunk-33SLJJSZ.cjs +0 -33
  43. package/dist/chunk-54TSHDNC.cjs.map +0 -1
  44. package/dist/chunk-FMU74VA6.cjs.map +0 -1
  45. package/dist/chunk-HTCGXDEG.cjs +0 -31
  46. package/dist/chunk-JE2MK4CC.js.map +0 -1
  47. package/dist/chunk-X6CI7GWV.cjs +0 -35
  48. /package/dist/{chunk-DAIPI5CX.js.map → chunk-2DNTZH4F.js.map} +0 -0
  49. /package/dist/{chunk-GUTUSN4K.js.map → chunk-7D6OKNF7.js.map} +0 -0
  50. /package/dist/{chunk-ITDTGCLJ.js.map → chunk-C7IOLTT5.js.map} +0 -0
  51. /package/dist/{chunk-U5Y7C2L4.js.map → chunk-GSH2742L.js.map} +0 -0
  52. /package/dist/{chunk-74I62TZ2.js.map → chunk-NCYZYIOG.js.map} +0 -0
  53. /package/dist/{chunk-HBIIWBB5.js.map → chunk-U2POYXTP.js.map} +0 -0
  54. /package/dist/{chunk-JVBK3LG3.js.map → chunk-YLIX3M2X.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  PolytypoError
3
- } from "./chunk-25XZKUNP.js";
3
+ } from "./chunk-LO2IGWUX.js";
4
4
 
5
5
  // src/modes/yaml.ts
6
6
  var TAB = 9;
@@ -257,4 +257,4 @@ export {
257
257
  resolveYamlKeys,
258
258
  resolveFrontmatterKeys
259
259
  };
260
- //# sourceMappingURL=chunk-HBIIWBB5.js.map
260
+ //# sourceMappingURL=chunk-U2POYXTP.js.map
@@ -0,0 +1,33 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkGFU64ZPKcjs = require('./chunk-GFU64ZPK.cjs');
4
+
5
+
6
+
7
+ var _chunk46OPZEOJcjs = require('./chunk-46OPZEOJ.cjs');
8
+
9
+
10
+
11
+
12
+ var _chunkQZIVTU25cjs = require('./chunk-QZIVTU25.cjs');
13
+
14
+ // src/engine/html-pipeline.ts
15
+ function runHtmlPipeline(input, options) {
16
+ const narrowTarget = _chunkQZIVTU25cjs.resolveNarrowTarget.call(void 0, options.narrowNbsp);
17
+ const planned = _chunkQZIVTU25cjs.planRules.call(void 0, options.rules);
18
+ const locale = _chunkQZIVTU25cjs.getLocaleData.call(void 0, options.locale);
19
+ const spans = _chunkGFU64ZPKcjs.htmlSpans.call(void 0, input);
20
+ return _chunk46OPZEOJcjs.runOverSpans.call(void 0, input, spans, planned, locale, "html", narrowTarget);
21
+ }
22
+ function analyzeHtmlPipeline(input, options) {
23
+ const narrowTarget = _chunkQZIVTU25cjs.resolveNarrowTarget.call(void 0, options.narrowNbsp);
24
+ const planned = _chunkQZIVTU25cjs.planRules.call(void 0, options.rules);
25
+ const locale = _chunkQZIVTU25cjs.getLocaleData.call(void 0, options.locale);
26
+ return _chunk46OPZEOJcjs.analyzeOverSpans.call(void 0, input, _chunkGFU64ZPKcjs.htmlSpans.call(void 0, input), planned, locale, "html", narrowTarget);
27
+ }
28
+
29
+
30
+
31
+
32
+ exports.runHtmlPipeline = runHtmlPipeline; exports.analyzeHtmlPipeline = analyzeHtmlPipeline;
33
+ //# sourceMappingURL=chunk-W7NXX74B.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/polytypo-js/polytypo-js/dist/chunk-33SLJJSZ.cjs","../src/engine/html-pipeline.ts"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;ACIO,SAAS,eAAA,CAAgB,KAAA,EAAe,OAAA,EAAmC;AAChF,EAAA,MAAM,aAAA,EAAe,mDAAA,OAAoB,CAAQ,UAAU,CAAA;AAC3D,EAAA,MAAM,QAAA,EAAU,yCAAA,OAAU,CAAQ,KAAK,CAAA;AACvC,EAAA,MAAM,OAAA,EAAS,6CAAA,OAAc,CAAQ,MAAM,CAAA;AAC3C,EAAA,MAAM,MAAA,EAAQ,yCAAA,KAAe,CAAA;AAC7B,EAAA,OAAO,4CAAA,KAAa,EAAO,KAAA,EAAO,OAAA,EAAS,MAAA,EAAQ,MAAA,EAAQ,YAAY,CAAA;AACzE;AAGO,SAAS,mBAAA,CAAoB,KAAA,EAAe,OAAA,EAAqC;AACtF,EAAA,MAAM,aAAA,EAAe,mDAAA,OAAoB,CAAQ,UAAU,CAAA;AAC3D,EAAA,MAAM,QAAA,EAAU,yCAAA,OAAU,CAAQ,KAAK,CAAA;AACvC,EAAA,MAAM,OAAA,EAAS,6CAAA,OAAc,CAAQ,MAAM,CAAA;AAC3C,EAAA,OAAO,gDAAA,KAAiB,EAAO,yCAAA,KAAe,CAAA,EAAG,OAAA,EAAS,MAAA,EAAQ,MAAA,EAAQ,YAAY,CAAA;AACxF;ADJA;AACA;AACE;AACA;AACF,6FAAC","file":"/home/runner/work/polytypo-js/polytypo-js/dist/chunk-33SLJJSZ.cjs","sourcesContent":[null,"import { htmlSpans } from \"../modes/html.js\";\nimport type { Options } from \"../types.js\";\nimport { getLocaleData } from \"./locale.js\";\nimport { resolveNarrowTarget } from \"./narrow-target.js\";\nimport { planRules } from \"./rule-runner.js\";\nimport { analyzeOverSpans, runOverSpans } from \"./span-runner.js\";\nimport type { Change } from \"./origin.js\";\n\n/**\n * `html` mode only. Imports `parse5` (via `../modes/html.js`) and nothing from\n * `../modes/markdown.js` or the Micromark/MDX stack — this is what makes `polytypo/html`'s\n * module graph exclude the Markdown parser (AUDIT_REMEDIATION_AND_RELEASE_PLAN.md 5.1).\n *\n * Validation order — `planRules` before `getLocaleData` before parsing — mirrors the pre-Stage-5\n * aggregate `runPipeline` exactly (an unknown-rule error must win over an unknown-locale error,\n * and both must win over a parse failure, since that is public, tested behaviour).\n */\nexport function runHtmlPipeline(input: string, options: Partial<Options>): string {\n const narrowTarget = resolveNarrowTarget(options.narrowNbsp);\n const planned = planRules(options.rules);\n const locale = getLocaleData(options.locale);\n const spans = htmlSpans(input);\n return runOverSpans(input, spans, planned, locale, \"html\", narrowTarget);\n}\n\n/** analyze.md §1, `html` mode: offsets are into the document, not into a span (analyze.md §6). */\nexport function analyzeHtmlPipeline(input: string, options: Partial<Options>): Change[] {\n const narrowTarget = resolveNarrowTarget(options.narrowNbsp);\n const planned = planRules(options.rules);\n const locale = getLocaleData(options.locale);\n return analyzeOverSpans(input, htmlSpans(input), planned, locale, \"html\", narrowTarget);\n}\n"]}
1
+ {"version":3,"sources":["/home/runner/work/polytypo-js/polytypo-js/dist/chunk-W7NXX74B.cjs","../src/engine/html-pipeline.ts"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;ACIO,SAAS,eAAA,CAAgB,KAAA,EAAe,OAAA,EAAmC;AAChF,EAAA,MAAM,aAAA,EAAe,mDAAA,OAAoB,CAAQ,UAAU,CAAA;AAC3D,EAAA,MAAM,QAAA,EAAU,yCAAA,OAAU,CAAQ,KAAK,CAAA;AACvC,EAAA,MAAM,OAAA,EAAS,6CAAA,OAAc,CAAQ,MAAM,CAAA;AAC3C,EAAA,MAAM,MAAA,EAAQ,yCAAA,KAAe,CAAA;AAC7B,EAAA,OAAO,4CAAA,KAAa,EAAO,KAAA,EAAO,OAAA,EAAS,MAAA,EAAQ,MAAA,EAAQ,YAAY,CAAA;AACzE;AAGO,SAAS,mBAAA,CAAoB,KAAA,EAAe,OAAA,EAAqC;AACtF,EAAA,MAAM,aAAA,EAAe,mDAAA,OAAoB,CAAQ,UAAU,CAAA;AAC3D,EAAA,MAAM,QAAA,EAAU,yCAAA,OAAU,CAAQ,KAAK,CAAA;AACvC,EAAA,MAAM,OAAA,EAAS,6CAAA,OAAc,CAAQ,MAAM,CAAA;AAC3C,EAAA,OAAO,gDAAA,KAAiB,EAAO,yCAAA,KAAe,CAAA,EAAG,OAAA,EAAS,MAAA,EAAQ,MAAA,EAAQ,YAAY,CAAA;AACxF;ADJA;AACA;AACE;AACA;AACF,6FAAC","file":"/home/runner/work/polytypo-js/polytypo-js/dist/chunk-W7NXX74B.cjs","sourcesContent":[null,"import { htmlSpans } from \"../modes/html.js\";\nimport type { Options } from \"../types.js\";\nimport { getLocaleData } from \"./locale.js\";\nimport { resolveNarrowTarget } from \"./narrow-target.js\";\nimport { planRules } from \"./rule-runner.js\";\nimport { analyzeOverSpans, runOverSpans } from \"./span-runner.js\";\nimport type { Change } from \"./origin.js\";\n\n/**\n * `html` mode only. Imports `parse5` (via `../modes/html.js`) and nothing from\n * `../modes/markdown.js` or the Micromark/MDX stack — this is what makes `polytypo/html`'s\n * module graph exclude the Markdown parser (AUDIT_REMEDIATION_AND_RELEASE_PLAN.md 5.1).\n *\n * Validation order — `planRules` before `getLocaleData` before parsing — mirrors the pre-Stage-5\n * aggregate `runPipeline` exactly (an unknown-rule error must win over an unknown-locale error,\n * and both must win over a parse failure, since that is public, tested behaviour).\n */\nexport function runHtmlPipeline(input: string, options: Partial<Options>): string {\n const narrowTarget = resolveNarrowTarget(options.narrowNbsp);\n const planned = planRules(options.rules);\n const locale = getLocaleData(options.locale);\n const spans = htmlSpans(input);\n return runOverSpans(input, spans, planned, locale, \"html\", narrowTarget);\n}\n\n/** analyze.md §1, `html` mode: offsets are into the document, not into a span (analyze.md §6). */\nexport function analyzeHtmlPipeline(input: string, options: Partial<Options>): Change[] {\n const narrowTarget = resolveNarrowTarget(options.narrowNbsp);\n const planned = planRules(options.rules);\n const locale = getLocaleData(options.locale);\n return analyzeOverSpans(input, htmlSpans(input), planned, locale, \"html\", narrowTarget);\n}\n"]}
@@ -0,0 +1,35 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+ var _chunkLQOZ3W4Bcjs = require('./chunk-LQOZ3W4B.cjs');
5
+
6
+
7
+
8
+ var _chunk46OPZEOJcjs = require('./chunk-46OPZEOJ.cjs');
9
+
10
+
11
+
12
+
13
+ var _chunkQZIVTU25cjs = require('./chunk-QZIVTU25.cjs');
14
+
15
+ // src/engine/yaml-pipeline.ts
16
+ function runYamlPipeline(input, options) {
17
+ const narrowTarget = _chunkQZIVTU25cjs.resolveNarrowTarget.call(void 0, options.narrowNbsp);
18
+ const planned = _chunkQZIVTU25cjs.planRules.call(void 0, options.rules);
19
+ const locale = _chunkQZIVTU25cjs.getLocaleData.call(void 0, options.locale);
20
+ const keys = _chunkLQOZ3W4Bcjs.resolveYamlKeys.call(void 0, options.keys);
21
+ return _chunk46OPZEOJcjs.runOverSpans.call(void 0, input, _chunkLQOZ3W4Bcjs.yamlSpans.call(void 0, input, keys), planned, locale, "yaml", narrowTarget);
22
+ }
23
+ function analyzeYamlPipeline(input, options) {
24
+ const narrowTarget = _chunkQZIVTU25cjs.resolveNarrowTarget.call(void 0, options.narrowNbsp);
25
+ const planned = _chunkQZIVTU25cjs.planRules.call(void 0, options.rules);
26
+ const locale = _chunkQZIVTU25cjs.getLocaleData.call(void 0, options.locale);
27
+ const keys = _chunkLQOZ3W4Bcjs.resolveYamlKeys.call(void 0, options.keys);
28
+ return _chunk46OPZEOJcjs.analyzeOverSpans.call(void 0, input, _chunkLQOZ3W4Bcjs.yamlSpans.call(void 0, input, keys), planned, locale, "yaml", narrowTarget);
29
+ }
30
+
31
+
32
+
33
+
34
+ exports.runYamlPipeline = runYamlPipeline; exports.analyzeYamlPipeline = analyzeYamlPipeline;
35
+ //# sourceMappingURL=chunk-Y7GDDTZ4.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/polytypo-js/polytypo-js/dist/chunk-X6CI7GWV.cjs","../src/engine/yaml-pipeline.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;ACEO,SAAS,eAAA,CAAgB,KAAA,EAAe,OAAA,EAAmC;AAChF,EAAA,MAAM,aAAA,EAAe,mDAAA,OAAoB,CAAQ,UAAU,CAAA;AAC3D,EAAA,MAAM,QAAA,EAAU,yCAAA,OAAU,CAAQ,KAAK,CAAA;AACvC,EAAA,MAAM,OAAA,EAAS,6CAAA,OAAc,CAAQ,MAAM,CAAA;AAC3C,EAAA,MAAM,KAAA,EAAO,+CAAA,OAAgB,CAAQ,IAAI,CAAA;AACzC,EAAA,OAAO,4CAAA,KAAa,EAAO,yCAAA,KAAU,EAAO,IAAI,CAAA,EAAG,OAAA,EAAS,MAAA,EAAQ,MAAA,EAAQ,YAAY,CAAA;AAC1F;AAGO,SAAS,mBAAA,CAAoB,KAAA,EAAe,OAAA,EAAqC;AACtF,EAAA,MAAM,aAAA,EAAe,mDAAA,OAAoB,CAAQ,UAAU,CAAA;AAC3D,EAAA,MAAM,QAAA,EAAU,yCAAA,OAAU,CAAQ,KAAK,CAAA;AACvC,EAAA,MAAM,OAAA,EAAS,6CAAA,OAAc,CAAQ,MAAM,CAAA;AAC3C,EAAA,MAAM,KAAA,EAAO,+CAAA,OAAgB,CAAQ,IAAI,CAAA;AACzC,EAAA,OAAO,gDAAA,KAAiB,EAAO,yCAAA,KAAU,EAAO,IAAI,CAAA,EAAG,OAAA,EAAS,MAAA,EAAQ,MAAA,EAAQ,YAAY,CAAA;AAC9F;ADFA;AACA;AACE;AACA;AACF,6FAAC","file":"/home/runner/work/polytypo-js/polytypo-js/dist/chunk-X6CI7GWV.cjs","sourcesContent":[null,"import { yamlSpans } from \"../modes/yaml.js\";\nimport type { Options } from \"../types.js\";\nimport { getLocaleData } from \"./locale.js\";\nimport { resolveNarrowTarget } from \"./narrow-target.js\";\nimport { resolveYamlKeys } from \"./yaml-keys.js\";\nimport { planRules } from \"./rule-runner.js\";\nimport { analyzeOverSpans, runOverSpans } from \"./span-runner.js\";\nimport type { Change } from \"./origin.js\";\n\n/**\n * `yaml` mode only, and the only mode pipeline with **no parser dependency at all** — span\n * selection is the specified scan of modes.md 3.8, not a library. There is likewise no\n * `POLYTYPO_MALFORMED_INPUT` counterpart here: with no declared grammar to violate, a file that\n * is not YAML yields few spans or none and comes back byte for byte (modes.md 3.8.3). The only\n * throw this mode adds is `keys`, which is about the call and not the input.\n */\nexport function runYamlPipeline(input: string, options: Partial<Options>): string {\n const narrowTarget = resolveNarrowTarget(options.narrowNbsp);\n const planned = planRules(options.rules);\n const locale = getLocaleData(options.locale);\n const keys = resolveYamlKeys(options.keys);\n return runOverSpans(input, yamlSpans(input, keys), planned, locale, \"yaml\", narrowTarget);\n}\n\n/** analyze.md §1, `yaml` mode: offsets are into the document, not into a span (analyze.md §6). */\nexport function analyzeYamlPipeline(input: string, options: Partial<Options>): Change[] {\n const narrowTarget = resolveNarrowTarget(options.narrowNbsp);\n const planned = planRules(options.rules);\n const locale = getLocaleData(options.locale);\n const keys = resolveYamlKeys(options.keys);\n return analyzeOverSpans(input, yamlSpans(input, keys), planned, locale, \"yaml\", narrowTarget);\n}\n"]}
1
+ {"version":3,"sources":["/home/runner/work/polytypo-js/polytypo-js/dist/chunk-Y7GDDTZ4.cjs","../src/engine/yaml-pipeline.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;ACEO,SAAS,eAAA,CAAgB,KAAA,EAAe,OAAA,EAAmC;AAChF,EAAA,MAAM,aAAA,EAAe,mDAAA,OAAoB,CAAQ,UAAU,CAAA;AAC3D,EAAA,MAAM,QAAA,EAAU,yCAAA,OAAU,CAAQ,KAAK,CAAA;AACvC,EAAA,MAAM,OAAA,EAAS,6CAAA,OAAc,CAAQ,MAAM,CAAA;AAC3C,EAAA,MAAM,KAAA,EAAO,+CAAA,OAAgB,CAAQ,IAAI,CAAA;AACzC,EAAA,OAAO,4CAAA,KAAa,EAAO,yCAAA,KAAU,EAAO,IAAI,CAAA,EAAG,OAAA,EAAS,MAAA,EAAQ,MAAA,EAAQ,YAAY,CAAA;AAC1F;AAGO,SAAS,mBAAA,CAAoB,KAAA,EAAe,OAAA,EAAqC;AACtF,EAAA,MAAM,aAAA,EAAe,mDAAA,OAAoB,CAAQ,UAAU,CAAA;AAC3D,EAAA,MAAM,QAAA,EAAU,yCAAA,OAAU,CAAQ,KAAK,CAAA;AACvC,EAAA,MAAM,OAAA,EAAS,6CAAA,OAAc,CAAQ,MAAM,CAAA;AAC3C,EAAA,MAAM,KAAA,EAAO,+CAAA,OAAgB,CAAQ,IAAI,CAAA;AACzC,EAAA,OAAO,gDAAA,KAAiB,EAAO,yCAAA,KAAU,EAAO,IAAI,CAAA,EAAG,OAAA,EAAS,MAAA,EAAQ,MAAA,EAAQ,YAAY,CAAA;AAC9F;ADFA;AACA;AACE;AACA;AACF,6FAAC","file":"/home/runner/work/polytypo-js/polytypo-js/dist/chunk-Y7GDDTZ4.cjs","sourcesContent":[null,"import { yamlSpans } from \"../modes/yaml.js\";\nimport type { Options } from \"../types.js\";\nimport { getLocaleData } from \"./locale.js\";\nimport { resolveNarrowTarget } from \"./narrow-target.js\";\nimport { resolveYamlKeys } from \"./yaml-keys.js\";\nimport { planRules } from \"./rule-runner.js\";\nimport { analyzeOverSpans, runOverSpans } from \"./span-runner.js\";\nimport type { Change } from \"./origin.js\";\n\n/**\n * `yaml` mode only, and the only mode pipeline with **no parser dependency at all** — span\n * selection is the specified scan of modes.md 3.8, not a library. There is likewise no\n * `POLYTYPO_MALFORMED_INPUT` counterpart here: with no declared grammar to violate, a file that\n * is not YAML yields few spans or none and comes back byte for byte (modes.md 3.8.3). The only\n * throw this mode adds is `keys`, which is about the call and not the input.\n */\nexport function runYamlPipeline(input: string, options: Partial<Options>): string {\n const narrowTarget = resolveNarrowTarget(options.narrowNbsp);\n const planned = planRules(options.rules);\n const locale = getLocaleData(options.locale);\n const keys = resolveYamlKeys(options.keys);\n return runOverSpans(input, yamlSpans(input, keys), planned, locale, \"yaml\", narrowTarget);\n}\n\n/** analyze.md §1, `yaml` mode: offsets are into the document, not into a span (analyze.md §6). */\nexport function analyzeYamlPipeline(input: string, options: Partial<Options>): Change[] {\n const narrowTarget = resolveNarrowTarget(options.narrowNbsp);\n const planned = planRules(options.rules);\n const locale = getLocaleData(options.locale);\n const keys = resolveYamlKeys(options.keys);\n return analyzeOverSpans(input, yamlSpans(input, keys), planned, locale, \"yaml\", narrowTarget);\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  PolytypoError
3
- } from "./chunk-25XZKUNP.js";
3
+ } from "./chunk-LO2IGWUX.js";
4
4
 
5
5
  // src/engine/assert-fixed-mode.ts
6
6
  function assertFixedMode(mode, fixed, entryPoint) {
@@ -14,4 +14,4 @@ function assertFixedMode(mode, fixed, entryPoint) {
14
14
  export {
15
15
  assertFixedMode
16
16
  };
17
- //# sourceMappingURL=chunk-JVBK3LG3.js.map
17
+ //# sourceMappingURL=chunk-YLIX3M2X.js.map
@@ -0,0 +1,31 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+ var _chunkQZIVTU25cjs = require('./chunk-QZIVTU25.cjs');
10
+
11
+ // src/engine/text-pipeline.ts
12
+ function runTextPipeline(input, options) {
13
+ const narrowTarget = _chunkQZIVTU25cjs.resolveNarrowTarget.call(void 0, options.narrowNbsp);
14
+ const planned = _chunkQZIVTU25cjs.planRules.call(void 0, options.rules);
15
+ const locale = _chunkQZIVTU25cjs.getLocaleData.call(void 0, options.locale);
16
+ return _chunkQZIVTU25cjs.fromCodePoints.call(void 0, _chunkQZIVTU25cjs.runRules.call(void 0, _chunkQZIVTU25cjs.toCodePoints.call(void 0, input), planned, locale, "text", narrowTarget));
17
+ }
18
+ function analyzeTextPipeline(input, options) {
19
+ const narrowTarget = _chunkQZIVTU25cjs.resolveNarrowTarget.call(void 0, options.narrowNbsp);
20
+ const planned = _chunkQZIVTU25cjs.planRules.call(void 0, options.rules);
21
+ const locale = _chunkQZIVTU25cjs.getLocaleData.call(void 0, options.locale);
22
+ const cp = _chunkQZIVTU25cjs.toCodePoints.call(void 0, input);
23
+ const origin = cp.map((_value, index) => index);
24
+ return _chunkQZIVTU25cjs.runRulesRecording.call(void 0, cp, planned, locale, "text", narrowTarget, origin, cp.length);
25
+ }
26
+
27
+
28
+
29
+
30
+ exports.runTextPipeline = runTextPipeline; exports.analyzeTextPipeline = analyzeTextPipeline;
31
+ //# sourceMappingURL=chunk-YRAXUXVB.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/polytypo-js/polytypo-js/dist/chunk-HTCGXDEG.cjs","../src/engine/text-pipeline.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;ACQO,SAAS,eAAA,CAAgB,KAAA,EAAe,OAAA,EAAmC;AAChF,EAAA,MAAM,aAAA,EAAe,mDAAA,OAAoB,CAAQ,UAAU,CAAA;AAC3D,EAAA,MAAM,QAAA,EAAU,yCAAA,OAAU,CAAQ,KAAK,CAAA;AACvC,EAAA,MAAM,OAAA,EAAS,6CAAA,OAAc,CAAQ,MAAM,CAAA;AAC3C,EAAA,OAAO,8CAAA,wCAAe,4CAAS,KAAkB,CAAA,EAAG,OAAA,EAAS,MAAA,EAAQ,MAAA,EAAQ,YAAY,CAAC,CAAA;AAC5F;AAGO,SAAS,mBAAA,CAAoB,KAAA,EAAe,OAAA,EAAqC;AACtF,EAAA,MAAM,aAAA,EAAe,mDAAA,OAAoB,CAAQ,UAAU,CAAA;AAC3D,EAAA,MAAM,QAAA,EAAU,yCAAA,OAAU,CAAQ,KAAK,CAAA;AACvC,EAAA,MAAM,OAAA,EAAS,6CAAA,OAAc,CAAQ,MAAM,CAAA;AAC3C,EAAA,MAAM,GAAA,EAAK,4CAAA,KAAkB,CAAA;AAC7B,EAAA,MAAM,OAAA,EAAS,EAAA,CAAG,GAAA,CAAI,CAAC,MAAA,EAAQ,KAAA,EAAA,GAAU,KAAK,CAAA;AAC9C,EAAA,OAAO,iDAAA,EAAkB,EAAI,OAAA,EAAS,MAAA,EAAQ,MAAA,EAAQ,YAAA,EAAc,MAAA,EAAQ,EAAA,CAAG,MAAM,CAAA;AACvF;ADRA;AACA;AACE;AACA;AACF,6FAAC","file":"/home/runner/work/polytypo-js/polytypo-js/dist/chunk-HTCGXDEG.cjs","sourcesContent":[null,"import type { Options } from \"../types.js\";\nimport { fromCodePoints, toCodePoints } from \"./codepoints.js\";\nimport type { Change } from \"./origin.js\";\nimport { getLocaleData } from \"./locale.js\";\nimport { resolveNarrowTarget } from \"./narrow-target.js\";\nimport { planRules, runRules, runRulesRecording } from \"./rule-runner.js\";\n\n/**\n * `text` mode only. Deliberately imports nothing from `../modes/html.js` or\n * `../modes/markdown.js` (or their parser dependencies) — this is what makes `polytypo/text`'s\n * module graph exclude `parse5` and the Micromark stack (AUDIT_REMEDIATION_AND_RELEASE_PLAN.md\n * 5.1).\n *\n * Validation order — `planRules` before `getLocaleData` — mirrors the pre-Stage-5 aggregate\n * `runPipeline` exactly (an unknown-rule error must win over an unknown-locale error when both\n * are present, since that is public, tested behaviour, not an implementation detail this\n * refactor was authorised to change).\n */\nexport function runTextPipeline(input: string, options: Partial<Options>): string {\n const narrowTarget = resolveNarrowTarget(options.narrowNbsp);\n const planned = planRules(options.rules);\n const locale = getLocaleData(options.locale);\n return fromCodePoints(runRules(toCodePoints(input), planned, locale, \"text\", narrowTarget));\n}\n\n/** analyze.md §1: the same pipeline as `runTextPipeline`, reporting instead of applying. */\nexport function analyzeTextPipeline(input: string, options: Partial<Options>): Change[] {\n const narrowTarget = resolveNarrowTarget(options.narrowNbsp);\n const planned = planRules(options.rules);\n const locale = getLocaleData(options.locale);\n const cp = toCodePoints(input);\n const origin = cp.map((_value, index) => index);\n return runRulesRecording(cp, planned, locale, \"text\", narrowTarget, origin, cp.length);\n}\n"]}
1
+ {"version":3,"sources":["/home/runner/work/polytypo-js/polytypo-js/dist/chunk-YRAXUXVB.cjs","../src/engine/text-pipeline.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;ACQO,SAAS,eAAA,CAAgB,KAAA,EAAe,OAAA,EAAmC;AAChF,EAAA,MAAM,aAAA,EAAe,mDAAA,OAAoB,CAAQ,UAAU,CAAA;AAC3D,EAAA,MAAM,QAAA,EAAU,yCAAA,OAAU,CAAQ,KAAK,CAAA;AACvC,EAAA,MAAM,OAAA,EAAS,6CAAA,OAAc,CAAQ,MAAM,CAAA;AAC3C,EAAA,OAAO,8CAAA,wCAAe,4CAAS,KAAkB,CAAA,EAAG,OAAA,EAAS,MAAA,EAAQ,MAAA,EAAQ,YAAY,CAAC,CAAA;AAC5F;AAGO,SAAS,mBAAA,CAAoB,KAAA,EAAe,OAAA,EAAqC;AACtF,EAAA,MAAM,aAAA,EAAe,mDAAA,OAAoB,CAAQ,UAAU,CAAA;AAC3D,EAAA,MAAM,QAAA,EAAU,yCAAA,OAAU,CAAQ,KAAK,CAAA;AACvC,EAAA,MAAM,OAAA,EAAS,6CAAA,OAAc,CAAQ,MAAM,CAAA;AAC3C,EAAA,MAAM,GAAA,EAAK,4CAAA,KAAkB,CAAA;AAC7B,EAAA,MAAM,OAAA,EAAS,EAAA,CAAG,GAAA,CAAI,CAAC,MAAA,EAAQ,KAAA,EAAA,GAAU,KAAK,CAAA;AAC9C,EAAA,OAAO,iDAAA,EAAkB,EAAI,OAAA,EAAS,MAAA,EAAQ,MAAA,EAAQ,YAAA,EAAc,MAAA,EAAQ,EAAA,CAAG,MAAM,CAAA;AACvF;ADRA;AACA;AACE;AACA;AACF,6FAAC","file":"/home/runner/work/polytypo-js/polytypo-js/dist/chunk-YRAXUXVB.cjs","sourcesContent":[null,"import type { Options } from \"../types.js\";\nimport { fromCodePoints, toCodePoints } from \"./codepoints.js\";\nimport type { Change } from \"./origin.js\";\nimport { getLocaleData } from \"./locale.js\";\nimport { resolveNarrowTarget } from \"./narrow-target.js\";\nimport { planRules, runRules, runRulesRecording } from \"./rule-runner.js\";\n\n/**\n * `text` mode only. Deliberately imports nothing from `../modes/html.js` or\n * `../modes/markdown.js` (or their parser dependencies) — this is what makes `polytypo/text`'s\n * module graph exclude `parse5` and the Micromark stack (AUDIT_REMEDIATION_AND_RELEASE_PLAN.md\n * 5.1).\n *\n * Validation order — `planRules` before `getLocaleData` — mirrors the pre-Stage-5 aggregate\n * `runPipeline` exactly (an unknown-rule error must win over an unknown-locale error when both\n * are present, since that is public, tested behaviour, not an implementation detail this\n * refactor was authorised to change).\n */\nexport function runTextPipeline(input: string, options: Partial<Options>): string {\n const narrowTarget = resolveNarrowTarget(options.narrowNbsp);\n const planned = planRules(options.rules);\n const locale = getLocaleData(options.locale);\n return fromCodePoints(runRules(toCodePoints(input), planned, locale, \"text\", narrowTarget));\n}\n\n/** analyze.md §1: the same pipeline as `runTextPipeline`, reporting instead of applying. */\nexport function analyzeTextPipeline(input: string, options: Partial<Options>): Change[] {\n const narrowTarget = resolveNarrowTarget(options.narrowNbsp);\n const planned = planRules(options.rules);\n const locale = getLocaleData(options.locale);\n const cp = toCodePoints(input);\n const origin = cp.map((_value, index) => index);\n return runRulesRecording(cp, planned, locale, \"text\", narrowTarget, origin, cp.length);\n}\n"]}
package/dist/html.cjs CHANGED
@@ -1,30 +1,30 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
3
 
4
- var _chunk33SLJJSZcjs = require('./chunk-33SLJJSZ.cjs');
5
- require('./chunk-MMXKQUAS.cjs');
6
- require('./chunk-VDLHT5CW.cjs');
4
+ var _chunkW7NXX74Bcjs = require('./chunk-W7NXX74B.cjs');
5
+ require('./chunk-GFU64ZPK.cjs');
6
+ require('./chunk-46OPZEOJ.cjs');
7
7
 
8
8
 
9
- var _chunkI2QPXPHXcjs = require('./chunk-I2QPXPHX.cjs');
9
+ var _chunk3HJSBQ3Vcjs = require('./chunk-3HJSBQ3V.cjs');
10
10
 
11
11
 
12
- var _chunkFMU74VA6cjs = require('./chunk-FMU74VA6.cjs');
12
+ var _chunkQZIVTU25cjs = require('./chunk-QZIVTU25.cjs');
13
13
 
14
14
  // src/index.html.ts
15
15
  function transform(input, options) {
16
16
  const given = _nullishCoalesce(options, () => ( {}));
17
- _chunkI2QPXPHXcjs.assertFixedMode.call(void 0, given.mode, "html", "polytypo/html");
18
- return _chunk33SLJJSZcjs.runHtmlPipeline.call(void 0, input, given);
17
+ _chunk3HJSBQ3Vcjs.assertFixedMode.call(void 0, given.mode, "html", "polytypo/html");
18
+ return _chunkW7NXX74Bcjs.runHtmlPipeline.call(void 0, input, given);
19
19
  }
20
20
  function analyze(input, options) {
21
21
  const given = _nullishCoalesce(options, () => ( {}));
22
- _chunkI2QPXPHXcjs.assertFixedMode.call(void 0, given.mode, "html", "polytypo/html");
23
- return _chunk33SLJJSZcjs.analyzeHtmlPipeline.call(void 0, input, given);
22
+ _chunk3HJSBQ3Vcjs.assertFixedMode.call(void 0, given.mode, "html", "polytypo/html");
23
+ return _chunkW7NXX74Bcjs.analyzeHtmlPipeline.call(void 0, input, given);
24
24
  }
25
25
 
26
26
 
27
27
 
28
28
 
29
- exports.PolytypoError = _chunkFMU74VA6cjs.PolytypoError; exports.analyze = analyze; exports.transform = transform;
29
+ exports.PolytypoError = _chunkQZIVTU25cjs.PolytypoError; exports.analyze = analyze; exports.transform = transform;
30
30
  //# sourceMappingURL=html.cjs.map
package/dist/html.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  analyzeHtmlPipeline,
3
3
  runHtmlPipeline
4
- } from "./chunk-GUTUSN4K.js";
5
- import "./chunk-ITDTGCLJ.js";
6
- import "./chunk-U5Y7C2L4.js";
4
+ } from "./chunk-7D6OKNF7.js";
5
+ import "./chunk-C7IOLTT5.js";
6
+ import "./chunk-GSH2742L.js";
7
7
  import {
8
8
  assertFixedMode
9
- } from "./chunk-JVBK3LG3.js";
9
+ } from "./chunk-YLIX3M2X.js";
10
10
  import {
11
11
  PolytypoError
12
- } from "./chunk-25XZKUNP.js";
12
+ } from "./chunk-LO2IGWUX.js";
13
13
 
14
14
  // src/index.html.ts
15
15
  function transform(input, options) {
package/dist/index.cjs CHANGED
@@ -1,31 +1,31 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
3
 
4
- var _chunkHTCGXDEGcjs = require('./chunk-HTCGXDEG.cjs');
4
+ var _chunkYRAXUXVBcjs = require('./chunk-YRAXUXVB.cjs');
5
5
 
6
6
 
7
7
 
8
- var _chunk33SLJJSZcjs = require('./chunk-33SLJJSZ.cjs');
8
+ var _chunkW7NXX74Bcjs = require('./chunk-W7NXX74B.cjs');
9
9
 
10
10
 
11
11
 
12
- var _chunk54TSHDNCcjs = require('./chunk-54TSHDNC.cjs');
13
- require('./chunk-MMXKQUAS.cjs');
12
+ var _chunkDRSERRP3cjs = require('./chunk-DRSERRP3.cjs');
13
+ require('./chunk-GFU64ZPK.cjs');
14
14
 
15
15
 
16
16
 
17
- var _chunkX6CI7GWVcjs = require('./chunk-X6CI7GWV.cjs');
18
- require('./chunk-IQHYZG2K.cjs');
19
- require('./chunk-VDLHT5CW.cjs');
17
+ var _chunkY7GDDTZ4cjs = require('./chunk-Y7GDDTZ4.cjs');
18
+ require('./chunk-LQOZ3W4B.cjs');
19
+ require('./chunk-46OPZEOJ.cjs');
20
20
 
21
21
 
22
- var _chunkFMU74VA6cjs = require('./chunk-FMU74VA6.cjs');
22
+ var _chunkQZIVTU25cjs = require('./chunk-QZIVTU25.cjs');
23
23
 
24
24
  // src/engine/pipeline.ts
25
25
  function resolveMode(mode) {
26
26
  if (mode === void 0 || mode === "text") return "text";
27
27
  if (mode === "html" || mode === "markdown" || mode === "yaml") return mode;
28
- throw new (0, _chunkFMU74VA6cjs.PolytypoError)(
28
+ throw new (0, _chunkQZIVTU25cjs.PolytypoError)(
29
29
  "POLYTYPO_INVALID_MODE",
30
30
  `Unknown mode "${String(mode)}". Expected "text", "html", "markdown" or "yaml".`
31
31
  );
@@ -33,18 +33,18 @@ function resolveMode(mode) {
33
33
  function runPipeline(input, options) {
34
34
  const given = _nullishCoalesce(options, () => ( {}));
35
35
  const mode = resolveMode(given.mode);
36
- if (mode === "text") return _chunkHTCGXDEGcjs.runTextPipeline.call(void 0, input, given);
37
- if (mode === "html") return _chunk33SLJJSZcjs.runHtmlPipeline.call(void 0, input, given);
38
- if (mode === "yaml") return _chunkX6CI7GWVcjs.runYamlPipeline.call(void 0, input, given);
39
- return _chunk54TSHDNCcjs.runMarkdownPipeline.call(void 0, input, given);
36
+ if (mode === "text") return _chunkYRAXUXVBcjs.runTextPipeline.call(void 0, input, given);
37
+ if (mode === "html") return _chunkW7NXX74Bcjs.runHtmlPipeline.call(void 0, input, given);
38
+ if (mode === "yaml") return _chunkY7GDDTZ4cjs.runYamlPipeline.call(void 0, input, given);
39
+ return _chunkDRSERRP3cjs.runMarkdownPipeline.call(void 0, input, given);
40
40
  }
41
41
  function runAnalyze(input, options) {
42
42
  const given = _nullishCoalesce(options, () => ( {}));
43
43
  const mode = resolveMode(given.mode);
44
- if (mode === "text") return _chunkHTCGXDEGcjs.analyzeTextPipeline.call(void 0, input, given);
45
- if (mode === "html") return _chunk33SLJJSZcjs.analyzeHtmlPipeline.call(void 0, input, given);
46
- if (mode === "yaml") return _chunkX6CI7GWVcjs.analyzeYamlPipeline.call(void 0, input, given);
47
- return _chunk54TSHDNCcjs.analyzeMarkdownPipeline.call(void 0, input, given);
44
+ if (mode === "text") return _chunkYRAXUXVBcjs.analyzeTextPipeline.call(void 0, input, given);
45
+ if (mode === "html") return _chunkW7NXX74Bcjs.analyzeHtmlPipeline.call(void 0, input, given);
46
+ if (mode === "yaml") return _chunkY7GDDTZ4cjs.analyzeYamlPipeline.call(void 0, input, given);
47
+ return _chunkDRSERRP3cjs.analyzeMarkdownPipeline.call(void 0, input, given);
48
48
  }
49
49
 
50
50
  // src/index.ts
@@ -58,5 +58,5 @@ function analyze(input, options) {
58
58
 
59
59
 
60
60
 
61
- exports.PolytypoError = _chunkFMU74VA6cjs.PolytypoError; exports.analyze = analyze; exports.transform = transform;
61
+ exports.PolytypoError = _chunkQZIVTU25cjs.PolytypoError; exports.analyze = analyze; exports.transform = transform;
62
62
  //# sourceMappingURL=index.cjs.map
package/dist/index.js CHANGED
@@ -1,25 +1,25 @@
1
1
  import {
2
2
  analyzeTextPipeline,
3
3
  runTextPipeline
4
- } from "./chunk-DAIPI5CX.js";
4
+ } from "./chunk-2DNTZH4F.js";
5
5
  import {
6
6
  analyzeHtmlPipeline,
7
7
  runHtmlPipeline
8
- } from "./chunk-GUTUSN4K.js";
8
+ } from "./chunk-7D6OKNF7.js";
9
9
  import {
10
10
  analyzeMarkdownPipeline,
11
11
  runMarkdownPipeline
12
- } from "./chunk-JE2MK4CC.js";
13
- import "./chunk-ITDTGCLJ.js";
12
+ } from "./chunk-4RLNGRZY.js";
13
+ import "./chunk-C7IOLTT5.js";
14
14
  import {
15
15
  analyzeYamlPipeline,
16
16
  runYamlPipeline
17
- } from "./chunk-74I62TZ2.js";
18
- import "./chunk-HBIIWBB5.js";
19
- import "./chunk-U5Y7C2L4.js";
17
+ } from "./chunk-NCYZYIOG.js";
18
+ import "./chunk-U2POYXTP.js";
19
+ import "./chunk-GSH2742L.js";
20
20
  import {
21
21
  PolytypoError
22
- } from "./chunk-25XZKUNP.js";
22
+ } from "./chunk-LO2IGWUX.js";
23
23
 
24
24
  // src/engine/pipeline.ts
25
25
  function resolveMode(mode) {
package/dist/markdown.cjs CHANGED
@@ -1,31 +1,31 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
3
 
4
- var _chunk54TSHDNCcjs = require('./chunk-54TSHDNC.cjs');
5
- require('./chunk-MMXKQUAS.cjs');
6
- require('./chunk-IQHYZG2K.cjs');
7
- require('./chunk-VDLHT5CW.cjs');
4
+ var _chunkDRSERRP3cjs = require('./chunk-DRSERRP3.cjs');
5
+ require('./chunk-GFU64ZPK.cjs');
6
+ require('./chunk-LQOZ3W4B.cjs');
7
+ require('./chunk-46OPZEOJ.cjs');
8
8
 
9
9
 
10
- var _chunkI2QPXPHXcjs = require('./chunk-I2QPXPHX.cjs');
10
+ var _chunk3HJSBQ3Vcjs = require('./chunk-3HJSBQ3V.cjs');
11
11
 
12
12
 
13
- var _chunkFMU74VA6cjs = require('./chunk-FMU74VA6.cjs');
13
+ var _chunkQZIVTU25cjs = require('./chunk-QZIVTU25.cjs');
14
14
 
15
15
  // src/index.markdown.ts
16
16
  function transform(input, options) {
17
17
  const given = _nullishCoalesce(options, () => ( {}));
18
- _chunkI2QPXPHXcjs.assertFixedMode.call(void 0, given.mode, "markdown", "polytypo/markdown");
19
- return _chunk54TSHDNCcjs.runMarkdownPipeline.call(void 0, input, given);
18
+ _chunk3HJSBQ3Vcjs.assertFixedMode.call(void 0, given.mode, "markdown", "polytypo/markdown");
19
+ return _chunkDRSERRP3cjs.runMarkdownPipeline.call(void 0, input, given);
20
20
  }
21
21
  function analyze(input, options) {
22
22
  const given = _nullishCoalesce(options, () => ( {}));
23
- _chunkI2QPXPHXcjs.assertFixedMode.call(void 0, given.mode, "markdown", "polytypo/markdown");
24
- return _chunk54TSHDNCcjs.analyzeMarkdownPipeline.call(void 0, input, given);
23
+ _chunk3HJSBQ3Vcjs.assertFixedMode.call(void 0, given.mode, "markdown", "polytypo/markdown");
24
+ return _chunkDRSERRP3cjs.analyzeMarkdownPipeline.call(void 0, input, given);
25
25
  }
26
26
 
27
27
 
28
28
 
29
29
 
30
- exports.PolytypoError = _chunkFMU74VA6cjs.PolytypoError; exports.analyze = analyze; exports.transform = transform;
30
+ exports.PolytypoError = _chunkQZIVTU25cjs.PolytypoError; exports.analyze = analyze; exports.transform = transform;
31
31
  //# sourceMappingURL=markdown.cjs.map
package/dist/markdown.js CHANGED
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  analyzeMarkdownPipeline,
3
3
  runMarkdownPipeline
4
- } from "./chunk-JE2MK4CC.js";
5
- import "./chunk-ITDTGCLJ.js";
6
- import "./chunk-HBIIWBB5.js";
7
- import "./chunk-U5Y7C2L4.js";
4
+ } from "./chunk-4RLNGRZY.js";
5
+ import "./chunk-C7IOLTT5.js";
6
+ import "./chunk-U2POYXTP.js";
7
+ import "./chunk-GSH2742L.js";
8
8
  import {
9
9
  assertFixedMode
10
- } from "./chunk-JVBK3LG3.js";
10
+ } from "./chunk-YLIX3M2X.js";
11
11
  import {
12
12
  PolytypoError
13
- } from "./chunk-25XZKUNP.js";
13
+ } from "./chunk-LO2IGWUX.js";
14
14
 
15
15
  // src/index.markdown.ts
16
16
  function transform(input, options) {
package/dist/text.cjs CHANGED
@@ -1,28 +1,28 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
3
 
4
- var _chunkHTCGXDEGcjs = require('./chunk-HTCGXDEG.cjs');
4
+ var _chunkYRAXUXVBcjs = require('./chunk-YRAXUXVB.cjs');
5
5
 
6
6
 
7
- var _chunkI2QPXPHXcjs = require('./chunk-I2QPXPHX.cjs');
7
+ var _chunk3HJSBQ3Vcjs = require('./chunk-3HJSBQ3V.cjs');
8
8
 
9
9
 
10
- var _chunkFMU74VA6cjs = require('./chunk-FMU74VA6.cjs');
10
+ var _chunkQZIVTU25cjs = require('./chunk-QZIVTU25.cjs');
11
11
 
12
12
  // src/index.text.ts
13
13
  function transform(input, options) {
14
14
  const given = _nullishCoalesce(options, () => ( {}));
15
- _chunkI2QPXPHXcjs.assertFixedMode.call(void 0, given.mode, "text", "polytypo/text");
16
- return _chunkHTCGXDEGcjs.runTextPipeline.call(void 0, input, given);
15
+ _chunk3HJSBQ3Vcjs.assertFixedMode.call(void 0, given.mode, "text", "polytypo/text");
16
+ return _chunkYRAXUXVBcjs.runTextPipeline.call(void 0, input, given);
17
17
  }
18
18
  function analyze(input, options) {
19
19
  const given = _nullishCoalesce(options, () => ( {}));
20
- _chunkI2QPXPHXcjs.assertFixedMode.call(void 0, given.mode, "text", "polytypo/text");
21
- return _chunkHTCGXDEGcjs.analyzeTextPipeline.call(void 0, input, given);
20
+ _chunk3HJSBQ3Vcjs.assertFixedMode.call(void 0, given.mode, "text", "polytypo/text");
21
+ return _chunkYRAXUXVBcjs.analyzeTextPipeline.call(void 0, input, given);
22
22
  }
23
23
 
24
24
 
25
25
 
26
26
 
27
- exports.PolytypoError = _chunkFMU74VA6cjs.PolytypoError; exports.analyze = analyze; exports.transform = transform;
27
+ exports.PolytypoError = _chunkQZIVTU25cjs.PolytypoError; exports.analyze = analyze; exports.transform = transform;
28
28
  //# sourceMappingURL=text.cjs.map
package/dist/text.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  analyzeTextPipeline,
3
3
  runTextPipeline
4
- } from "./chunk-DAIPI5CX.js";
4
+ } from "./chunk-2DNTZH4F.js";
5
5
  import {
6
6
  assertFixedMode
7
- } from "./chunk-JVBK3LG3.js";
7
+ } from "./chunk-YLIX3M2X.js";
8
8
  import {
9
9
  PolytypoError
10
- } from "./chunk-25XZKUNP.js";
10
+ } from "./chunk-LO2IGWUX.js";
11
11
 
12
12
  // src/index.text.ts
13
13
  function transform(input, options) {
package/dist/yaml.cjs CHANGED
@@ -1,30 +1,30 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
3
 
4
- var _chunkX6CI7GWVcjs = require('./chunk-X6CI7GWV.cjs');
5
- require('./chunk-IQHYZG2K.cjs');
6
- require('./chunk-VDLHT5CW.cjs');
4
+ var _chunkY7GDDTZ4cjs = require('./chunk-Y7GDDTZ4.cjs');
5
+ require('./chunk-LQOZ3W4B.cjs');
6
+ require('./chunk-46OPZEOJ.cjs');
7
7
 
8
8
 
9
- var _chunkI2QPXPHXcjs = require('./chunk-I2QPXPHX.cjs');
9
+ var _chunk3HJSBQ3Vcjs = require('./chunk-3HJSBQ3V.cjs');
10
10
 
11
11
 
12
- var _chunkFMU74VA6cjs = require('./chunk-FMU74VA6.cjs');
12
+ var _chunkQZIVTU25cjs = require('./chunk-QZIVTU25.cjs');
13
13
 
14
14
  // src/index.yaml.ts
15
15
  function transform(input, options) {
16
16
  const given = _nullishCoalesce(options, () => ( {}));
17
- _chunkI2QPXPHXcjs.assertFixedMode.call(void 0, given.mode, "yaml", "polytypo/yaml");
18
- return _chunkX6CI7GWVcjs.runYamlPipeline.call(void 0, input, given);
17
+ _chunk3HJSBQ3Vcjs.assertFixedMode.call(void 0, given.mode, "yaml", "polytypo/yaml");
18
+ return _chunkY7GDDTZ4cjs.runYamlPipeline.call(void 0, input, given);
19
19
  }
20
20
  function analyze(input, options) {
21
21
  const given = _nullishCoalesce(options, () => ( {}));
22
- _chunkI2QPXPHXcjs.assertFixedMode.call(void 0, given.mode, "yaml", "polytypo/yaml");
23
- return _chunkX6CI7GWVcjs.analyzeYamlPipeline.call(void 0, input, given);
22
+ _chunk3HJSBQ3Vcjs.assertFixedMode.call(void 0, given.mode, "yaml", "polytypo/yaml");
23
+ return _chunkY7GDDTZ4cjs.analyzeYamlPipeline.call(void 0, input, given);
24
24
  }
25
25
 
26
26
 
27
27
 
28
28
 
29
- exports.PolytypoError = _chunkFMU74VA6cjs.PolytypoError; exports.analyze = analyze; exports.transform = transform;
29
+ exports.PolytypoError = _chunkQZIVTU25cjs.PolytypoError; exports.analyze = analyze; exports.transform = transform;
30
30
  //# sourceMappingURL=yaml.cjs.map
package/dist/yaml.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  analyzeYamlPipeline,
3
3
  runYamlPipeline
4
- } from "./chunk-74I62TZ2.js";
5
- import "./chunk-HBIIWBB5.js";
6
- import "./chunk-U5Y7C2L4.js";
4
+ } from "./chunk-NCYZYIOG.js";
5
+ import "./chunk-U2POYXTP.js";
6
+ import "./chunk-GSH2742L.js";
7
7
  import {
8
8
  assertFixedMode
9
- } from "./chunk-JVBK3LG3.js";
9
+ } from "./chunk-YLIX3M2X.js";
10
10
  import {
11
11
  PolytypoError
12
- } from "./chunk-25XZKUNP.js";
12
+ } from "./chunk-LO2IGWUX.js";
13
13
 
14
14
  // src/index.yaml.ts
15
15
  function transform(input, options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polytypo",
3
- "version": "1.7.0",
3
+ "version": "1.8.1",
4
4
  "description": "Normalize typography across languages: locale-correct quotes, dashes, ellipses and no-break spaces.",
5
5
  "keywords": [
6
6
  "typography",