polytypo 1.30.0 → 1.31.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.
Files changed (48) hide show
  1. package/dist/{chunk-6NR6365G.js → chunk-2EEO3SUH.js} +3 -3
  2. package/dist/{chunk-5KKFD2HR.js → chunk-2GDHU7YJ.js} +2 -2
  3. package/dist/{chunk-RB7DVXKD.cjs → chunk-4FDTU4LV.cjs} +6 -6
  4. package/dist/{chunk-RB7DVXKD.cjs.map → chunk-4FDTU4LV.cjs.map} +1 -1
  5. package/dist/{chunk-6KMUSOJL.cjs → chunk-4GW2ZMIG.cjs} +4 -4
  6. package/dist/{chunk-6KMUSOJL.cjs.map → chunk-4GW2ZMIG.cjs.map} +1 -1
  7. package/dist/{chunk-4MZ7UTRC.js → chunk-7NSSCTBK.js} +3 -3
  8. package/dist/{chunk-CNJV4SNX.cjs → chunk-BFRFZXOI.cjs} +3 -3
  9. package/dist/{chunk-CNJV4SNX.cjs.map → chunk-BFRFZXOI.cjs.map} +1 -1
  10. package/dist/chunk-CFVUGAEQ.cjs +34 -0
  11. package/dist/{chunk-QDTN65K5.cjs.map → chunk-CFVUGAEQ.cjs.map} +1 -1
  12. package/dist/{chunk-GGUNL3P6.js → chunk-CWHCIX7Q.js} +4 -4
  13. package/dist/{chunk-64QBZU2Z.js → chunk-DNFGA3PK.js} +2 -2
  14. package/dist/{chunk-Y3POOZLN.js → chunk-HY3GXZAZ.js} +3 -1
  15. package/dist/chunk-HY3GXZAZ.js.map +1 -0
  16. package/dist/chunk-JG33G4ZR.cjs +36 -0
  17. package/dist/{chunk-EBIS5RQW.cjs.map → chunk-JG33G4ZR.cjs.map} +1 -1
  18. package/dist/{chunk-ZDTUYVAT.js → chunk-LHDMQYVE.js} +2 -2
  19. package/dist/{chunk-LLPHSREU.cjs → chunk-N5VKLPIT.cjs} +23 -23
  20. package/dist/{chunk-LLPHSREU.cjs.map → chunk-N5VKLPIT.cjs.map} +1 -1
  21. package/dist/chunk-QOW2MY3I.cjs +38 -0
  22. package/dist/{chunk-6PIVYTIT.cjs.map → chunk-QOW2MY3I.cjs.map} +1 -1
  23. package/dist/{chunk-ZFNQ2P2F.cjs → chunk-TWPD6PZY.cjs} +3 -1
  24. package/dist/chunk-TWPD6PZY.cjs.map +1 -0
  25. package/dist/{chunk-LWWSWVTI.js → chunk-YATDFC7V.js} +2 -2
  26. package/dist/html.cjs +9 -9
  27. package/dist/html.js +4 -4
  28. package/dist/index.cjs +17 -17
  29. package/dist/index.js +7 -7
  30. package/dist/markdown.cjs +10 -10
  31. package/dist/markdown.js +5 -5
  32. package/dist/text.cjs +8 -8
  33. package/dist/text.js +3 -3
  34. package/dist/yaml.cjs +9 -9
  35. package/dist/yaml.js +4 -4
  36. package/package.json +1 -1
  37. package/dist/chunk-6PIVYTIT.cjs +0 -38
  38. package/dist/chunk-EBIS5RQW.cjs +0 -36
  39. package/dist/chunk-QDTN65K5.cjs +0 -34
  40. package/dist/chunk-Y3POOZLN.js.map +0 -1
  41. package/dist/chunk-ZFNQ2P2F.cjs.map +0 -1
  42. /package/dist/{chunk-6NR6365G.js.map → chunk-2EEO3SUH.js.map} +0 -0
  43. /package/dist/{chunk-5KKFD2HR.js.map → chunk-2GDHU7YJ.js.map} +0 -0
  44. /package/dist/{chunk-4MZ7UTRC.js.map → chunk-7NSSCTBK.js.map} +0 -0
  45. /package/dist/{chunk-GGUNL3P6.js.map → chunk-CWHCIX7Q.js.map} +0 -0
  46. /package/dist/{chunk-64QBZU2Z.js.map → chunk-DNFGA3PK.js.map} +0 -0
  47. /package/dist/{chunk-ZDTUYVAT.js.map → chunk-LHDMQYVE.js.map} +0 -0
  48. /package/dist/{chunk-LWWSWVTI.js.map → chunk-YATDFC7V.js.map} +0 -0
@@ -9,7 +9,7 @@ import {
9
9
  runRules,
10
10
  runRulesRecording,
11
11
  toCodePoints
12
- } from "./chunk-Y3POOZLN.js";
12
+ } from "./chunk-HY3GXZAZ.js";
13
13
 
14
14
  // src/engine/text-pipeline.ts
15
15
  function runTextPipeline(input, options) {
@@ -35,4 +35,4 @@ export {
35
35
  runTextPipeline,
36
36
  analyzeTextPipeline
37
37
  };
38
- //# sourceMappingURL=chunk-LWWSWVTI.js.map
38
+ //# sourceMappingURL=chunk-YATDFC7V.js.map
package/dist/html.cjs CHANGED
@@ -1,32 +1,32 @@
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 _chunkQDTN65K5cjs = require('./chunk-QDTN65K5.cjs');
4
+ var _chunkCFVUGAEQcjs = require('./chunk-CFVUGAEQ.cjs');
5
5
 
6
6
 
7
- var _chunk6KMUSOJLcjs = require('./chunk-6KMUSOJL.cjs');
7
+ var _chunk4GW2ZMIGcjs = require('./chunk-4GW2ZMIG.cjs');
8
8
 
9
9
 
10
- var _chunkCNJV4SNXcjs = require('./chunk-CNJV4SNX.cjs');
10
+ var _chunkBFRFZXOIcjs = require('./chunk-BFRFZXOI.cjs');
11
11
 
12
12
 
13
- var _chunkZFNQ2P2Fcjs = require('./chunk-ZFNQ2P2F.cjs');
13
+ var _chunkTWPD6PZYcjs = require('./chunk-TWPD6PZY.cjs');
14
14
 
15
15
  // src/index.html.ts
16
16
  function transform(input, options) {
17
17
  const given = _nullishCoalesce(options, () => ( {}));
18
- _chunkCNJV4SNXcjs.assertFixedMode.call(void 0, given.mode, "html", "polytypo/html");
19
- return _chunkQDTN65K5cjs.runHtmlPipeline.call(void 0, input, given);
18
+ _chunkBFRFZXOIcjs.assertFixedMode.call(void 0, given.mode, "html", "polytypo/html");
19
+ return _chunkCFVUGAEQcjs.runHtmlPipeline.call(void 0, input, given);
20
20
  }
21
21
  function analyze(input, options) {
22
22
  const given = _nullishCoalesce(options, () => ( {}));
23
- _chunkCNJV4SNXcjs.assertFixedMode.call(void 0, given.mode, "html", "polytypo/html");
24
- return _chunkQDTN65K5cjs.analyzeHtmlPipeline.call(void 0, input, given);
23
+ _chunkBFRFZXOIcjs.assertFixedMode.call(void 0, given.mode, "html", "polytypo/html");
24
+ return _chunkCFVUGAEQcjs.analyzeHtmlPipeline.call(void 0, input, given);
25
25
  }
26
26
 
27
27
 
28
28
 
29
29
 
30
30
 
31
- exports.PolytypoError = _chunkZFNQ2P2Fcjs.PolytypoError; exports.SKIPPED_ELEMENTS = _chunk6KMUSOJLcjs.SKIPPED_ELEMENTS; exports.analyze = analyze; exports.transform = transform;
31
+ exports.PolytypoError = _chunkTWPD6PZYcjs.PolytypoError; exports.SKIPPED_ELEMENTS = _chunk4GW2ZMIGcjs.SKIPPED_ELEMENTS; exports.analyze = analyze; exports.transform = transform;
32
32
  //# sourceMappingURL=html.cjs.map
package/dist/html.js CHANGED
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  analyzeHtmlPipeline,
3
3
  runHtmlPipeline
4
- } from "./chunk-4MZ7UTRC.js";
4
+ } from "./chunk-7NSSCTBK.js";
5
5
  import {
6
6
  SKIPPED_ELEMENTS
7
- } from "./chunk-ZDTUYVAT.js";
7
+ } from "./chunk-LHDMQYVE.js";
8
8
  import {
9
9
  assertFixedMode
10
- } from "./chunk-64QBZU2Z.js";
10
+ } from "./chunk-DNFGA3PK.js";
11
11
  import {
12
12
  PolytypoError
13
- } from "./chunk-Y3POOZLN.js";
13
+ } from "./chunk-HY3GXZAZ.js";
14
14
 
15
15
  // src/index.html.ts
16
16
  function transform(input, options) {
package/dist/index.cjs CHANGED
@@ -1,32 +1,32 @@
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 _chunk6PIVYTITcjs = require('./chunk-6PIVYTIT.cjs');
4
+ var _chunkQOW2MY3Icjs = require('./chunk-QOW2MY3I.cjs');
5
5
 
6
6
 
7
7
 
8
- var _chunkQDTN65K5cjs = require('./chunk-QDTN65K5.cjs');
8
+ var _chunkCFVUGAEQcjs = require('./chunk-CFVUGAEQ.cjs');
9
9
 
10
10
 
11
11
 
12
- var _chunkLLPHSREUcjs = require('./chunk-LLPHSREU.cjs');
12
+ var _chunkN5VKLPITcjs = require('./chunk-N5VKLPIT.cjs');
13
13
 
14
14
 
15
- var _chunk6KMUSOJLcjs = require('./chunk-6KMUSOJL.cjs');
15
+ var _chunk4GW2ZMIGcjs = require('./chunk-4GW2ZMIG.cjs');
16
16
 
17
17
 
18
18
 
19
- var _chunkEBIS5RQWcjs = require('./chunk-EBIS5RQW.cjs');
20
- require('./chunk-RB7DVXKD.cjs');
19
+ var _chunkJG33G4ZRcjs = require('./chunk-JG33G4ZR.cjs');
20
+ require('./chunk-4FDTU4LV.cjs');
21
21
 
22
22
 
23
- var _chunkZFNQ2P2Fcjs = require('./chunk-ZFNQ2P2F.cjs');
23
+ var _chunkTWPD6PZYcjs = require('./chunk-TWPD6PZY.cjs');
24
24
 
25
25
  // src/engine/pipeline.ts
26
26
  function resolveMode(mode) {
27
27
  if (mode === void 0 || mode === "text") return "text";
28
28
  if (mode === "html" || mode === "markdown" || mode === "yaml") return mode;
29
- throw new (0, _chunkZFNQ2P2Fcjs.PolytypoError)(
29
+ throw new (0, _chunkTWPD6PZYcjs.PolytypoError)(
30
30
  "POLYTYPO_INVALID_MODE",
31
31
  `Unknown mode "${String(mode)}". Expected "text", "html", "markdown" or "yaml".`
32
32
  );
@@ -34,18 +34,18 @@ function resolveMode(mode) {
34
34
  function runPipeline(input, options) {
35
35
  const given = _nullishCoalesce(options, () => ( {}));
36
36
  const mode = resolveMode(given.mode);
37
- if (mode === "text") return _chunk6PIVYTITcjs.runTextPipeline.call(void 0, input, given);
38
- if (mode === "html") return _chunkQDTN65K5cjs.runHtmlPipeline.call(void 0, input, given);
39
- if (mode === "yaml") return _chunkEBIS5RQWcjs.runYamlPipeline.call(void 0, input, given);
40
- return _chunkLLPHSREUcjs.runMarkdownPipeline.call(void 0, input, given);
37
+ if (mode === "text") return _chunkQOW2MY3Icjs.runTextPipeline.call(void 0, input, given);
38
+ if (mode === "html") return _chunkCFVUGAEQcjs.runHtmlPipeline.call(void 0, input, given);
39
+ if (mode === "yaml") return _chunkJG33G4ZRcjs.runYamlPipeline.call(void 0, input, given);
40
+ return _chunkN5VKLPITcjs.runMarkdownPipeline.call(void 0, input, given);
41
41
  }
42
42
  function runAnalyze(input, options) {
43
43
  const given = _nullishCoalesce(options, () => ( {}));
44
44
  const mode = resolveMode(given.mode);
45
- if (mode === "text") return _chunk6PIVYTITcjs.analyzeTextPipeline.call(void 0, input, given);
46
- if (mode === "html") return _chunkQDTN65K5cjs.analyzeHtmlPipeline.call(void 0, input, given);
47
- if (mode === "yaml") return _chunkEBIS5RQWcjs.analyzeYamlPipeline.call(void 0, input, given);
48
- return _chunkLLPHSREUcjs.analyzeMarkdownPipeline.call(void 0, input, given);
45
+ if (mode === "text") return _chunkQOW2MY3Icjs.analyzeTextPipeline.call(void 0, input, given);
46
+ if (mode === "html") return _chunkCFVUGAEQcjs.analyzeHtmlPipeline.call(void 0, input, given);
47
+ if (mode === "yaml") return _chunkJG33G4ZRcjs.analyzeYamlPipeline.call(void 0, input, given);
48
+ return _chunkN5VKLPITcjs.analyzeMarkdownPipeline.call(void 0, input, given);
49
49
  }
50
50
 
51
51
  // src/index.ts
@@ -60,5 +60,5 @@ function analyze(input, options) {
60
60
 
61
61
 
62
62
 
63
- exports.PolytypoError = _chunkZFNQ2P2Fcjs.PolytypoError; exports.SKIPPED_ELEMENTS = _chunk6KMUSOJLcjs.SKIPPED_ELEMENTS; exports.analyze = analyze; exports.transform = transform;
63
+ exports.PolytypoError = _chunkTWPD6PZYcjs.PolytypoError; exports.SKIPPED_ELEMENTS = _chunk4GW2ZMIGcjs.SKIPPED_ELEMENTS; exports.analyze = analyze; exports.transform = transform;
64
64
  //# sourceMappingURL=index.cjs.map
package/dist/index.js CHANGED
@@ -1,26 +1,26 @@
1
1
  import {
2
2
  analyzeTextPipeline,
3
3
  runTextPipeline
4
- } from "./chunk-LWWSWVTI.js";
4
+ } from "./chunk-YATDFC7V.js";
5
5
  import {
6
6
  analyzeHtmlPipeline,
7
7
  runHtmlPipeline
8
- } from "./chunk-4MZ7UTRC.js";
8
+ } from "./chunk-7NSSCTBK.js";
9
9
  import {
10
10
  analyzeMarkdownPipeline,
11
11
  runMarkdownPipeline
12
- } from "./chunk-GGUNL3P6.js";
12
+ } from "./chunk-CWHCIX7Q.js";
13
13
  import {
14
14
  SKIPPED_ELEMENTS
15
- } from "./chunk-ZDTUYVAT.js";
15
+ } from "./chunk-LHDMQYVE.js";
16
16
  import {
17
17
  analyzeYamlPipeline,
18
18
  runYamlPipeline
19
- } from "./chunk-6NR6365G.js";
20
- import "./chunk-5KKFD2HR.js";
19
+ } from "./chunk-2EEO3SUH.js";
20
+ import "./chunk-2GDHU7YJ.js";
21
21
  import {
22
22
  PolytypoError
23
- } from "./chunk-Y3POOZLN.js";
23
+ } from "./chunk-HY3GXZAZ.js";
24
24
 
25
25
  // src/engine/pipeline.ts
26
26
  function resolveMode(mode) {
package/dist/markdown.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 _chunkLLPHSREUcjs = require('./chunk-LLPHSREU.cjs');
5
- require('./chunk-6KMUSOJL.cjs');
6
- require('./chunk-RB7DVXKD.cjs');
4
+ var _chunkN5VKLPITcjs = require('./chunk-N5VKLPIT.cjs');
5
+ require('./chunk-4GW2ZMIG.cjs');
6
+ require('./chunk-4FDTU4LV.cjs');
7
7
 
8
8
 
9
- var _chunkCNJV4SNXcjs = require('./chunk-CNJV4SNX.cjs');
9
+ var _chunkBFRFZXOIcjs = require('./chunk-BFRFZXOI.cjs');
10
10
 
11
11
 
12
- var _chunkZFNQ2P2Fcjs = require('./chunk-ZFNQ2P2F.cjs');
12
+ var _chunkTWPD6PZYcjs = require('./chunk-TWPD6PZY.cjs');
13
13
 
14
14
  // src/index.markdown.ts
15
15
  function transform(input, options) {
16
16
  const given = _nullishCoalesce(options, () => ( {}));
17
- _chunkCNJV4SNXcjs.assertFixedMode.call(void 0, given.mode, "markdown", "polytypo/markdown");
18
- return _chunkLLPHSREUcjs.runMarkdownPipeline.call(void 0, input, given);
17
+ _chunkBFRFZXOIcjs.assertFixedMode.call(void 0, given.mode, "markdown", "polytypo/markdown");
18
+ return _chunkN5VKLPITcjs.runMarkdownPipeline.call(void 0, input, given);
19
19
  }
20
20
  function analyze(input, options) {
21
21
  const given = _nullishCoalesce(options, () => ( {}));
22
- _chunkCNJV4SNXcjs.assertFixedMode.call(void 0, given.mode, "markdown", "polytypo/markdown");
23
- return _chunkLLPHSREUcjs.analyzeMarkdownPipeline.call(void 0, input, given);
22
+ _chunkBFRFZXOIcjs.assertFixedMode.call(void 0, given.mode, "markdown", "polytypo/markdown");
23
+ return _chunkN5VKLPITcjs.analyzeMarkdownPipeline.call(void 0, input, given);
24
24
  }
25
25
 
26
26
 
27
27
 
28
28
 
29
- exports.PolytypoError = _chunkZFNQ2P2Fcjs.PolytypoError; exports.analyze = analyze; exports.transform = transform;
29
+ exports.PolytypoError = _chunkTWPD6PZYcjs.PolytypoError; exports.analyze = analyze; exports.transform = transform;
30
30
  //# sourceMappingURL=markdown.cjs.map
package/dist/markdown.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  analyzeMarkdownPipeline,
3
3
  runMarkdownPipeline
4
- } from "./chunk-GGUNL3P6.js";
5
- import "./chunk-ZDTUYVAT.js";
6
- import "./chunk-5KKFD2HR.js";
4
+ } from "./chunk-CWHCIX7Q.js";
5
+ import "./chunk-LHDMQYVE.js";
6
+ import "./chunk-2GDHU7YJ.js";
7
7
  import {
8
8
  assertFixedMode
9
- } from "./chunk-64QBZU2Z.js";
9
+ } from "./chunk-DNFGA3PK.js";
10
10
  import {
11
11
  PolytypoError
12
- } from "./chunk-Y3POOZLN.js";
12
+ } from "./chunk-HY3GXZAZ.js";
13
13
 
14
14
  // src/index.markdown.ts
15
15
  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 _chunk6PIVYTITcjs = require('./chunk-6PIVYTIT.cjs');
4
+ var _chunkQOW2MY3Icjs = require('./chunk-QOW2MY3I.cjs');
5
5
 
6
6
 
7
- var _chunkCNJV4SNXcjs = require('./chunk-CNJV4SNX.cjs');
7
+ var _chunkBFRFZXOIcjs = require('./chunk-BFRFZXOI.cjs');
8
8
 
9
9
 
10
- var _chunkZFNQ2P2Fcjs = require('./chunk-ZFNQ2P2F.cjs');
10
+ var _chunkTWPD6PZYcjs = require('./chunk-TWPD6PZY.cjs');
11
11
 
12
12
  // src/index.text.ts
13
13
  function transform(input, options) {
14
14
  const given = _nullishCoalesce(options, () => ( {}));
15
- _chunkCNJV4SNXcjs.assertFixedMode.call(void 0, given.mode, "text", "polytypo/text");
16
- return _chunk6PIVYTITcjs.runTextPipeline.call(void 0, input, given);
15
+ _chunkBFRFZXOIcjs.assertFixedMode.call(void 0, given.mode, "text", "polytypo/text");
16
+ return _chunkQOW2MY3Icjs.runTextPipeline.call(void 0, input, given);
17
17
  }
18
18
  function analyze(input, options) {
19
19
  const given = _nullishCoalesce(options, () => ( {}));
20
- _chunkCNJV4SNXcjs.assertFixedMode.call(void 0, given.mode, "text", "polytypo/text");
21
- return _chunk6PIVYTITcjs.analyzeTextPipeline.call(void 0, input, given);
20
+ _chunkBFRFZXOIcjs.assertFixedMode.call(void 0, given.mode, "text", "polytypo/text");
21
+ return _chunkQOW2MY3Icjs.analyzeTextPipeline.call(void 0, input, given);
22
22
  }
23
23
 
24
24
 
25
25
 
26
26
 
27
- exports.PolytypoError = _chunkZFNQ2P2Fcjs.PolytypoError; exports.analyze = analyze; exports.transform = transform;
27
+ exports.PolytypoError = _chunkTWPD6PZYcjs.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-LWWSWVTI.js";
4
+ } from "./chunk-YATDFC7V.js";
5
5
  import {
6
6
  assertFixedMode
7
- } from "./chunk-64QBZU2Z.js";
7
+ } from "./chunk-DNFGA3PK.js";
8
8
  import {
9
9
  PolytypoError
10
- } from "./chunk-Y3POOZLN.js";
10
+ } from "./chunk-HY3GXZAZ.js";
11
11
 
12
12
  // src/index.text.ts
13
13
  function transform(input, options) {
package/dist/yaml.cjs CHANGED
@@ -1,29 +1,29 @@
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 _chunkEBIS5RQWcjs = require('./chunk-EBIS5RQW.cjs');
5
- require('./chunk-RB7DVXKD.cjs');
4
+ var _chunkJG33G4ZRcjs = require('./chunk-JG33G4ZR.cjs');
5
+ require('./chunk-4FDTU4LV.cjs');
6
6
 
7
7
 
8
- var _chunkCNJV4SNXcjs = require('./chunk-CNJV4SNX.cjs');
8
+ var _chunkBFRFZXOIcjs = require('./chunk-BFRFZXOI.cjs');
9
9
 
10
10
 
11
- var _chunkZFNQ2P2Fcjs = require('./chunk-ZFNQ2P2F.cjs');
11
+ var _chunkTWPD6PZYcjs = require('./chunk-TWPD6PZY.cjs');
12
12
 
13
13
  // src/index.yaml.ts
14
14
  function transform(input, options) {
15
15
  const given = _nullishCoalesce(options, () => ( {}));
16
- _chunkCNJV4SNXcjs.assertFixedMode.call(void 0, given.mode, "yaml", "polytypo/yaml");
17
- return _chunkEBIS5RQWcjs.runYamlPipeline.call(void 0, input, given);
16
+ _chunkBFRFZXOIcjs.assertFixedMode.call(void 0, given.mode, "yaml", "polytypo/yaml");
17
+ return _chunkJG33G4ZRcjs.runYamlPipeline.call(void 0, input, given);
18
18
  }
19
19
  function analyze(input, options) {
20
20
  const given = _nullishCoalesce(options, () => ( {}));
21
- _chunkCNJV4SNXcjs.assertFixedMode.call(void 0, given.mode, "yaml", "polytypo/yaml");
22
- return _chunkEBIS5RQWcjs.analyzeYamlPipeline.call(void 0, input, given);
21
+ _chunkBFRFZXOIcjs.assertFixedMode.call(void 0, given.mode, "yaml", "polytypo/yaml");
22
+ return _chunkJG33G4ZRcjs.analyzeYamlPipeline.call(void 0, input, given);
23
23
  }
24
24
 
25
25
 
26
26
 
27
27
 
28
- exports.PolytypoError = _chunkZFNQ2P2Fcjs.PolytypoError; exports.analyze = analyze; exports.transform = transform;
28
+ exports.PolytypoError = _chunkTWPD6PZYcjs.PolytypoError; exports.analyze = analyze; exports.transform = transform;
29
29
  //# sourceMappingURL=yaml.cjs.map
package/dist/yaml.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  analyzeYamlPipeline,
3
3
  runYamlPipeline
4
- } from "./chunk-6NR6365G.js";
5
- import "./chunk-5KKFD2HR.js";
4
+ } from "./chunk-2EEO3SUH.js";
5
+ import "./chunk-2GDHU7YJ.js";
6
6
  import {
7
7
  assertFixedMode
8
- } from "./chunk-64QBZU2Z.js";
8
+ } from "./chunk-DNFGA3PK.js";
9
9
  import {
10
10
  PolytypoError
11
- } from "./chunk-Y3POOZLN.js";
11
+ } from "./chunk-HY3GXZAZ.js";
12
12
 
13
13
  // src/index.yaml.ts
14
14
  function transform(input, options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polytypo",
3
- "version": "1.30.0",
3
+ "version": "1.31.0",
4
4
  "description": "Normalize typography across languages: locale-correct quotes, dashes, ellipses and no-break spaces.",
5
5
  "keywords": [
6
6
  "typography",
@@ -1,38 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
-
11
-
12
- var _chunkZFNQ2P2Fcjs = require('./chunk-ZFNQ2P2F.cjs');
13
-
14
- // src/engine/text-pipeline.ts
15
- function runTextPipeline(input, options) {
16
- const narrowTarget = _chunkZFNQ2P2Fcjs.resolveNarrowTarget.call(void 0, options.narrowNbsp);
17
- const planned = _chunkZFNQ2P2Fcjs.planRules.call(void 0, options.rules);
18
- const locale = _chunkZFNQ2P2Fcjs.getLocaleData.call(void 0, options.locale);
19
- const holes = _chunkZFNQ2P2Fcjs.resolveProtect.call(void 0, options.protect, _chunkZFNQ2P2Fcjs.toCodePoints.call(void 0, input).length);
20
- if (holes.length > 0) return _chunkZFNQ2P2Fcjs.runProtected.call(void 0, input, holes, planned, locale, narrowTarget);
21
- return _chunkZFNQ2P2Fcjs.fromCodePoints.call(void 0, _chunkZFNQ2P2Fcjs.runRules.call(void 0, _chunkZFNQ2P2Fcjs.toCodePoints.call(void 0, input), planned, locale, "text", narrowTarget));
22
- }
23
- function analyzeTextPipeline(input, options) {
24
- const narrowTarget = _chunkZFNQ2P2Fcjs.resolveNarrowTarget.call(void 0, options.narrowNbsp);
25
- const planned = _chunkZFNQ2P2Fcjs.planRules.call(void 0, options.rules);
26
- const locale = _chunkZFNQ2P2Fcjs.getLocaleData.call(void 0, options.locale);
27
- const cp = _chunkZFNQ2P2Fcjs.toCodePoints.call(void 0, input);
28
- const holes = _chunkZFNQ2P2Fcjs.resolveProtect.call(void 0, options.protect, cp.length);
29
- if (holes.length > 0) return _chunkZFNQ2P2Fcjs.analyzeProtected.call(void 0, input, holes, planned, locale, narrowTarget);
30
- const origin = cp.map((_value, index) => index);
31
- return _chunkZFNQ2P2Fcjs.runRulesRecording.call(void 0, cp, planned, locale, "text", narrowTarget, origin, cp.length);
32
- }
33
-
34
-
35
-
36
-
37
- exports.runTextPipeline = runTextPipeline; exports.analyzeTextPipeline = analyzeTextPipeline;
38
- //# sourceMappingURL=chunk-6PIVYTIT.cjs.map
@@ -1,36 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
- var _chunkRB7DVXKDcjs = require('./chunk-RB7DVXKD.cjs');
5
-
6
-
7
-
8
-
9
-
10
-
11
-
12
- var _chunkZFNQ2P2Fcjs = require('./chunk-ZFNQ2P2F.cjs');
13
-
14
- // src/engine/yaml-pipeline.ts
15
- function runYamlPipeline(input, options) {
16
- const narrowTarget = _chunkZFNQ2P2Fcjs.resolveNarrowTarget.call(void 0, options.narrowNbsp);
17
- const planned = _chunkZFNQ2P2Fcjs.planRules.call(void 0, options.rules);
18
- const locale = _chunkZFNQ2P2Fcjs.getLocaleData.call(void 0, options.locale);
19
- const keys = _chunkRB7DVXKDcjs.resolveYamlKeys.call(void 0, options.keys);
20
- _chunkZFNQ2P2Fcjs.assertNoProtect.call(void 0, options.protect, "yaml");
21
- return _chunkZFNQ2P2Fcjs.runOverSpans.call(void 0, input, _chunkRB7DVXKDcjs.yamlSpans.call(void 0, input, keys), planned, locale, "yaml", narrowTarget);
22
- }
23
- function analyzeYamlPipeline(input, options) {
24
- const narrowTarget = _chunkZFNQ2P2Fcjs.resolveNarrowTarget.call(void 0, options.narrowNbsp);
25
- const planned = _chunkZFNQ2P2Fcjs.planRules.call(void 0, options.rules);
26
- const locale = _chunkZFNQ2P2Fcjs.getLocaleData.call(void 0, options.locale);
27
- const keys = _chunkRB7DVXKDcjs.resolveYamlKeys.call(void 0, options.keys);
28
- _chunkZFNQ2P2Fcjs.assertNoProtect.call(void 0, options.protect, "yaml");
29
- return _chunkZFNQ2P2Fcjs.analyzeOverSpans.call(void 0, input, _chunkRB7DVXKDcjs.yamlSpans.call(void 0, input, keys), planned, locale, "yaml", narrowTarget);
30
- }
31
-
32
-
33
-
34
-
35
- exports.runYamlPipeline = runYamlPipeline; exports.analyzeYamlPipeline = analyzeYamlPipeline;
36
- //# sourceMappingURL=chunk-EBIS5RQW.cjs.map
@@ -1,34 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunk6KMUSOJLcjs = require('./chunk-6KMUSOJL.cjs');
4
-
5
-
6
-
7
-
8
-
9
-
10
-
11
- var _chunkZFNQ2P2Fcjs = require('./chunk-ZFNQ2P2F.cjs');
12
-
13
- // src/engine/html-pipeline.ts
14
- function runHtmlPipeline(input, options) {
15
- const narrowTarget = _chunkZFNQ2P2Fcjs.resolveNarrowTarget.call(void 0, options.narrowNbsp);
16
- const planned = _chunkZFNQ2P2Fcjs.planRules.call(void 0, options.rules);
17
- const locale = _chunkZFNQ2P2Fcjs.getLocaleData.call(void 0, options.locale);
18
- _chunkZFNQ2P2Fcjs.assertNoProtect.call(void 0, options.protect, "html");
19
- const spans = _chunk6KMUSOJLcjs.htmlSpans.call(void 0, input);
20
- return _chunkZFNQ2P2Fcjs.runOverSpans.call(void 0, input, spans, planned, locale, "html", narrowTarget);
21
- }
22
- function analyzeHtmlPipeline(input, options) {
23
- const narrowTarget = _chunkZFNQ2P2Fcjs.resolveNarrowTarget.call(void 0, options.narrowNbsp);
24
- const planned = _chunkZFNQ2P2Fcjs.planRules.call(void 0, options.rules);
25
- const locale = _chunkZFNQ2P2Fcjs.getLocaleData.call(void 0, options.locale);
26
- _chunkZFNQ2P2Fcjs.assertNoProtect.call(void 0, options.protect, "html");
27
- return _chunkZFNQ2P2Fcjs.analyzeOverSpans.call(void 0, input, _chunk6KMUSOJLcjs.htmlSpans.call(void 0, input), planned, locale, "html", narrowTarget);
28
- }
29
-
30
-
31
-
32
-
33
- exports.runHtmlPipeline = runHtmlPipeline; exports.analyzeHtmlPipeline = analyzeHtmlPipeline;
34
- //# sourceMappingURL=chunk-QDTN65K5.cjs.map