polytypo 1.20.0 → 1.21.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 (60) hide show
  1. package/dist/{chunk-OHVSJCJP.cjs → chunk-3L5KLKLP.cjs} +23 -23
  2. package/dist/{chunk-OHVSJCJP.cjs.map → chunk-3L5KLKLP.cjs.map} +1 -1
  3. package/dist/{chunk-77SI66RF.cjs → chunk-3WYVUARI.cjs} +6 -6
  4. package/dist/{chunk-77SI66RF.cjs.map → chunk-3WYVUARI.cjs.map} +1 -1
  5. package/dist/{chunk-E6YPYCBO.js → chunk-55LL24PJ.js} +3 -3
  6. package/dist/{chunk-2NY4ZQY2.cjs → chunk-5AEJFYWK.cjs} +3 -3
  7. package/dist/{chunk-2NY4ZQY2.cjs.map → chunk-5AEJFYWK.cjs.map} +1 -1
  8. package/dist/{chunk-BZKXSJJT.js → chunk-5AQIJOPD.js} +4 -4
  9. package/dist/{chunk-HUUDUGW3.cjs → chunk-75BQY5RY.cjs} +153 -98
  10. package/dist/chunk-75BQY5RY.cjs.map +1 -0
  11. package/dist/chunk-AUKI3EXL.cjs +38 -0
  12. package/dist/{chunk-CS2KLHYJ.cjs.map → chunk-AUKI3EXL.cjs.map} +1 -1
  13. package/dist/{chunk-M73SBGHP.cjs → chunk-DHKVVUYY.cjs} +4 -4
  14. package/dist/{chunk-M73SBGHP.cjs.map → chunk-DHKVVUYY.cjs.map} +1 -1
  15. package/dist/chunk-F2CNG4TF.cjs +36 -0
  16. package/dist/{chunk-TBQ7GKSG.cjs.map → chunk-F2CNG4TF.cjs.map} +1 -1
  17. package/dist/{chunk-AGRRKEIV.js → chunk-FEVHV3ED.js} +2 -2
  18. package/dist/{chunk-U53ZPYEE.js → chunk-FV4S3LDM.js} +2 -2
  19. package/dist/{chunk-YMQNFAQG.js → chunk-IBN7DIS5.js} +3 -3
  20. package/dist/{chunk-P3K3WNJD.js → chunk-KY6R54DA.js} +2 -2
  21. package/dist/{chunk-NPGGVNKR.js → chunk-NJXVMN4M.js} +2 -2
  22. package/dist/chunk-QIUGMSFQ.cjs +34 -0
  23. package/dist/{chunk-3PAZ6SRZ.cjs.map → chunk-QIUGMSFQ.cjs.map} +1 -1
  24. package/dist/{chunk-SSRGDNN2.js → chunk-QXUC42OO.js} +153 -98
  25. package/dist/chunk-QXUC42OO.js.map +1 -0
  26. package/dist/{errors-CQz5lyjD.d.ts → errors-CjpOoBlm.d.cts} +10 -4
  27. package/dist/{errors-CQz5lyjD.d.cts → errors-CjpOoBlm.d.ts} +10 -4
  28. package/dist/html.cjs +9 -9
  29. package/dist/html.d.cts +2 -2
  30. package/dist/html.d.ts +2 -2
  31. package/dist/html.js +4 -4
  32. package/dist/index.cjs +17 -17
  33. package/dist/index.d.cts +2 -2
  34. package/dist/index.d.ts +2 -2
  35. package/dist/index.js +7 -7
  36. package/dist/markdown.cjs +10 -10
  37. package/dist/markdown.d.cts +2 -2
  38. package/dist/markdown.d.ts +2 -2
  39. package/dist/markdown.js +5 -5
  40. package/dist/text.cjs +8 -8
  41. package/dist/text.d.cts +2 -2
  42. package/dist/text.d.ts +2 -2
  43. package/dist/text.js +3 -3
  44. package/dist/yaml.cjs +9 -9
  45. package/dist/yaml.d.cts +2 -2
  46. package/dist/yaml.d.ts +2 -2
  47. package/dist/yaml.js +4 -4
  48. package/package.json +1 -1
  49. package/dist/chunk-3PAZ6SRZ.cjs +0 -34
  50. package/dist/chunk-CS2KLHYJ.cjs +0 -38
  51. package/dist/chunk-HUUDUGW3.cjs.map +0 -1
  52. package/dist/chunk-SSRGDNN2.js.map +0 -1
  53. package/dist/chunk-TBQ7GKSG.cjs +0 -36
  54. /package/dist/{chunk-E6YPYCBO.js.map → chunk-55LL24PJ.js.map} +0 -0
  55. /package/dist/{chunk-BZKXSJJT.js.map → chunk-5AQIJOPD.js.map} +0 -0
  56. /package/dist/{chunk-AGRRKEIV.js.map → chunk-FEVHV3ED.js.map} +0 -0
  57. /package/dist/{chunk-U53ZPYEE.js.map → chunk-FV4S3LDM.js.map} +0 -0
  58. /package/dist/{chunk-YMQNFAQG.js.map → chunk-IBN7DIS5.js.map} +0 -0
  59. /package/dist/{chunk-P3K3WNJD.js.map → chunk-KY6R54DA.js.map} +0 -0
  60. /package/dist/{chunk-NPGGVNKR.js.map → chunk-NJXVMN4M.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  htmlSpans
3
- } from "./chunk-P3K3WNJD.js";
3
+ } from "./chunk-KY6R54DA.js";
4
4
  import {
5
5
  analyzeOverSpans,
6
6
  assertNoProtect,
@@ -8,7 +8,7 @@ import {
8
8
  planRules,
9
9
  resolveNarrowTarget,
10
10
  runOverSpans
11
- } from "./chunk-SSRGDNN2.js";
11
+ } from "./chunk-QXUC42OO.js";
12
12
 
13
13
  // src/engine/html-pipeline.ts
14
14
  function runHtmlPipeline(input, options) {
@@ -31,4 +31,4 @@ export {
31
31
  runHtmlPipeline,
32
32
  analyzeHtmlPipeline
33
33
  };
34
- //# sourceMappingURL=chunk-E6YPYCBO.js.map
34
+ //# sourceMappingURL=chunk-55LL24PJ.js.map
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkHUUDUGW3cjs = require('./chunk-HUUDUGW3.cjs');
3
+ var _chunk75BQY5RYcjs = require('./chunk-75BQY5RY.cjs');
4
4
 
5
5
  // src/engine/assert-fixed-mode.ts
6
6
  function assertFixedMode(mode, fixed, entryPoint) {
7
7
  if (mode === void 0 || mode === fixed) return;
8
- throw new (0, _chunkHUUDUGW3cjs.PolytypoError)(
8
+ throw new (0, _chunk75BQY5RYcjs.PolytypoError)(
9
9
  "POLYTYPO_INVALID_MODE",
10
10
  `"${entryPoint}" only supports mode "${fixed}". Received "${String(mode)}" \u2014 import from "polytypo" for the other modes, or omit \`mode\` here.`
11
11
  );
@@ -14,4 +14,4 @@ function assertFixedMode(mode, fixed, entryPoint) {
14
14
 
15
15
 
16
16
  exports.assertFixedMode = assertFixedMode;
17
- //# sourceMappingURL=chunk-2NY4ZQY2.cjs.map
17
+ //# sourceMappingURL=chunk-5AEJFYWK.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/polytypo-js/polytypo-js/dist/chunk-2NY4ZQY2.cjs","../src/engine/assert-fixed-mode.ts"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACA;ACMO,SAAS,eAAA,CAAgB,IAAA,EAAe,KAAA,EAAa,UAAA,EAA0B;AACpF,EAAA,GAAA,CAAI,KAAA,IAAS,KAAA,EAAA,GAAa,KAAA,IAAS,KAAA,EAAO,MAAA;AAC1C,EAAA,MAAM,IAAI,oCAAA;AAAA,IACR,uBAAA;AAAA,IACA,CAAA,CAAA,EAAI,UAAU,CAAA,sBAAA,EAAyB,KAAK,CAAA,aAAA,EAAgB,MAAA,CAAO,IAAI,CAAC,CAAA,2EAAA;AAAA,EAE1E,CAAA;AACF;ADLA;AACA;AACE;AACF,0CAAC","file":"/home/runner/work/polytypo-js/polytypo-js/dist/chunk-2NY4ZQY2.cjs","sourcesContent":[null,"import { PolytypoError } from \"../errors.js\";\nimport type { Mode } from \"../types.js\";\n\n/**\n * `polytypo/text`, `polytypo/html` and `polytypo/markdown` each fix `mode` at the type level by\n * omitting it from their Options type (AUDIT_REMEDIATION_AND_RELEASE_PLAN.md 5.1, criterion 6).\n * A plain-JS caller — or a TypeScript caller passing a wider-typed variable, which excess-property\n * checking does not catch — can still supply a conflicting `mode` at runtime. That is rejected\n * explicitly here, never silently ignored or overridden.\n */\nexport function assertFixedMode(mode: unknown, fixed: Mode, entryPoint: string): void {\n if (mode === undefined || mode === fixed) return;\n throw new PolytypoError(\n \"POLYTYPO_INVALID_MODE\",\n `\"${entryPoint}\" only supports mode \"${fixed}\". Received \"${String(mode)}\" — ` +\n `import from \"polytypo\" for the other modes, or omit \\`mode\\` here.`,\n );\n}\n"]}
1
+ {"version":3,"sources":["/home/runner/work/polytypo-js/polytypo-js/dist/chunk-5AEJFYWK.cjs","../src/engine/assert-fixed-mode.ts"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACA;ACMO,SAAS,eAAA,CAAgB,IAAA,EAAe,KAAA,EAAa,UAAA,EAA0B;AACpF,EAAA,GAAA,CAAI,KAAA,IAAS,KAAA,EAAA,GAAa,KAAA,IAAS,KAAA,EAAO,MAAA;AAC1C,EAAA,MAAM,IAAI,oCAAA;AAAA,IACR,uBAAA;AAAA,IACA,CAAA,CAAA,EAAI,UAAU,CAAA,sBAAA,EAAyB,KAAK,CAAA,aAAA,EAAgB,MAAA,CAAO,IAAI,CAAC,CAAA,2EAAA;AAAA,EAE1E,CAAA;AACF;ADLA;AACA;AACE;AACF,0CAAC","file":"/home/runner/work/polytypo-js/polytypo-js/dist/chunk-5AEJFYWK.cjs","sourcesContent":[null,"import { PolytypoError } from \"../errors.js\";\nimport type { Mode } from \"../types.js\";\n\n/**\n * `polytypo/text`, `polytypo/html` and `polytypo/markdown` each fix `mode` at the type level by\n * omitting it from their Options type (AUDIT_REMEDIATION_AND_RELEASE_PLAN.md 5.1, criterion 6).\n * A plain-JS caller — or a TypeScript caller passing a wider-typed variable, which excess-property\n * checking does not catch — can still supply a conflicting `mode` at runtime. That is rejected\n * explicitly here, never silently ignored or overridden.\n */\nexport function assertFixedMode(mode: unknown, fixed: Mode, entryPoint: string): void {\n if (mode === undefined || mode === fixed) return;\n throw new PolytypoError(\n \"POLYTYPO_INVALID_MODE\",\n `\"${entryPoint}\" only supports mode \"${fixed}\". Received \"${String(mode)}\" — ` +\n `import from \"polytypo\" for the other modes, or omit \\`mode\\` here.`,\n );\n}\n"]}
@@ -2,11 +2,11 @@ import {
2
2
  htmlFragmentSpans,
3
3
  isSkippedElement,
4
4
  wrapParserErrors
5
- } from "./chunk-P3K3WNJD.js";
5
+ } from "./chunk-KY6R54DA.js";
6
6
  import {
7
7
  resolveFrontmatterKeys,
8
8
  yamlSpans
9
- } from "./chunk-U53ZPYEE.js";
9
+ } from "./chunk-FV4S3LDM.js";
10
10
  import {
11
11
  PolytypoError,
12
12
  analyzeOverUnits,
@@ -16,7 +16,7 @@ import {
16
16
  planRules,
17
17
  resolveNarrowTarget,
18
18
  runOverUnits
19
- } from "./chunk-SSRGDNN2.js";
19
+ } from "./chunk-QXUC42OO.js";
20
20
 
21
21
  // src/modes/markdown.ts
22
22
  import { parse, postprocess, preprocess } from "micromark";
@@ -394,4 +394,4 @@ export {
394
394
  runMarkdownPipeline,
395
395
  analyzeMarkdownPipeline
396
396
  };
397
- //# sourceMappingURL=chunk-BZKXSJJT.js.map
397
+ //# sourceMappingURL=chunk-5AQIJOPD.js.map