polytypo 1.19.0 → 1.20.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.
- package/dist/{chunk-KQL3ZLZC.js → chunk-4V77MJOE.js} +2 -2
- package/dist/chunk-5A3KGYPE.cjs +36 -0
- package/dist/{chunk-DUVPE7JU.cjs.map → chunk-5A3KGYPE.cjs.map} +1 -1
- package/dist/{chunk-DM525EPA.cjs → chunk-66E6VFGJ.cjs} +4 -4
- package/dist/{chunk-DM525EPA.cjs.map → chunk-66E6VFGJ.cjs.map} +1 -1
- package/dist/{chunk-XWGC5HEB.cjs → chunk-6GTMDBHQ.cjs} +23 -23
- package/dist/{chunk-XWGC5HEB.cjs.map → chunk-6GTMDBHQ.cjs.map} +1 -1
- package/dist/{chunk-6JOOUUWE.js → chunk-7BQ34ZVZ.js} +4 -4
- package/dist/chunk-GUTC5F7K.cjs +34 -0
- package/dist/{chunk-YNJX7R2Z.cjs.map → chunk-GUTC5F7K.cjs.map} +1 -1
- package/dist/{chunk-2YXXMDVS.js → chunk-HZNKXY23.js} +3 -3
- package/dist/{chunk-APQVGM4E.js → chunk-J7U6Y6K4.js} +2 -2
- package/dist/chunk-J7U6Y6K4.js.map +1 -0
- package/dist/{chunk-SANA6W2F.js → chunk-MY6V3BBS.js} +2 -2
- package/dist/{chunk-XQKUWSLX.js → chunk-NBINYPGF.js} +3 -3
- package/dist/{chunk-HUSZTEIP.cjs → chunk-OZLT5NZJ.cjs} +2 -2
- package/dist/chunk-OZLT5NZJ.cjs.map +1 -0
- package/dist/chunk-Q4Y2OWQI.cjs +38 -0
- package/dist/{chunk-DTLKN533.cjs.map → chunk-Q4Y2OWQI.cjs.map} +1 -1
- package/dist/{chunk-COCPFNB6.cjs → chunk-TKFAPD4Z.cjs} +6 -6
- package/dist/{chunk-COCPFNB6.cjs.map → chunk-TKFAPD4Z.cjs.map} +1 -1
- package/dist/{chunk-EK2UPPXO.js → chunk-WCGLFL3P.js} +2 -2
- package/dist/{chunk-RTEQUU2F.cjs → chunk-WPF7QNGG.cjs} +3 -3
- package/dist/{chunk-RTEQUU2F.cjs.map → chunk-WPF7QNGG.cjs.map} +1 -1
- package/dist/{chunk-ZVDX3VHY.js → chunk-ZTMVKQCT.js} +2 -2
- package/dist/html.cjs +9 -9
- package/dist/html.js +4 -4
- package/dist/index.cjs +17 -17
- package/dist/index.js +7 -7
- package/dist/markdown.cjs +10 -10
- package/dist/markdown.js +5 -5
- package/dist/text.cjs +8 -8
- package/dist/text.js +3 -3
- package/dist/yaml.cjs +9 -9
- package/dist/yaml.js +4 -4
- package/package.json +1 -1
- package/dist/chunk-APQVGM4E.js.map +0 -1
- package/dist/chunk-DTLKN533.cjs +0 -38
- package/dist/chunk-DUVPE7JU.cjs +0 -36
- package/dist/chunk-HUSZTEIP.cjs.map +0 -1
- package/dist/chunk-YNJX7R2Z.cjs +0 -34
- /package/dist/{chunk-KQL3ZLZC.js.map → chunk-4V77MJOE.js.map} +0 -0
- /package/dist/{chunk-6JOOUUWE.js.map → chunk-7BQ34ZVZ.js.map} +0 -0
- /package/dist/{chunk-2YXXMDVS.js.map → chunk-HZNKXY23.js.map} +0 -0
- /package/dist/{chunk-SANA6W2F.js.map → chunk-MY6V3BBS.js.map} +0 -0
- /package/dist/{chunk-XQKUWSLX.js.map → chunk-NBINYPGF.js.map} +0 -0
- /package/dist/{chunk-EK2UPPXO.js.map → chunk-WCGLFL3P.js.map} +0 -0
- /package/dist/{chunk-ZVDX3VHY.js.map → chunk-ZTMVKQCT.js.map} +0 -0
package/dist/chunk-DTLKN533.cjs
DELETED
|
@@ -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 _chunkHUSZTEIPcjs = require('./chunk-HUSZTEIP.cjs');
|
|
13
|
-
|
|
14
|
-
// src/engine/text-pipeline.ts
|
|
15
|
-
function runTextPipeline(input, options) {
|
|
16
|
-
const narrowTarget = _chunkHUSZTEIPcjs.resolveNarrowTarget.call(void 0, options.narrowNbsp);
|
|
17
|
-
const planned = _chunkHUSZTEIPcjs.planRules.call(void 0, options.rules);
|
|
18
|
-
const locale = _chunkHUSZTEIPcjs.getLocaleData.call(void 0, options.locale);
|
|
19
|
-
const holes = _chunkHUSZTEIPcjs.resolveProtect.call(void 0, options.protect, _chunkHUSZTEIPcjs.toCodePoints.call(void 0, input).length);
|
|
20
|
-
if (holes.length > 0) return _chunkHUSZTEIPcjs.runProtected.call(void 0, input, holes, planned, locale, narrowTarget);
|
|
21
|
-
return _chunkHUSZTEIPcjs.fromCodePoints.call(void 0, _chunkHUSZTEIPcjs.runRules.call(void 0, _chunkHUSZTEIPcjs.toCodePoints.call(void 0, input), planned, locale, "text", narrowTarget));
|
|
22
|
-
}
|
|
23
|
-
function analyzeTextPipeline(input, options) {
|
|
24
|
-
const narrowTarget = _chunkHUSZTEIPcjs.resolveNarrowTarget.call(void 0, options.narrowNbsp);
|
|
25
|
-
const planned = _chunkHUSZTEIPcjs.planRules.call(void 0, options.rules);
|
|
26
|
-
const locale = _chunkHUSZTEIPcjs.getLocaleData.call(void 0, options.locale);
|
|
27
|
-
const cp = _chunkHUSZTEIPcjs.toCodePoints.call(void 0, input);
|
|
28
|
-
const holes = _chunkHUSZTEIPcjs.resolveProtect.call(void 0, options.protect, cp.length);
|
|
29
|
-
if (holes.length > 0) return _chunkHUSZTEIPcjs.analyzeProtected.call(void 0, input, holes, planned, locale, narrowTarget);
|
|
30
|
-
const origin = cp.map((_value, index) => index);
|
|
31
|
-
return _chunkHUSZTEIPcjs.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-DTLKN533.cjs.map
|
package/dist/chunk-DUVPE7JU.cjs
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var _chunkCOCPFNB6cjs = require('./chunk-COCPFNB6.cjs');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var _chunkHUSZTEIPcjs = require('./chunk-HUSZTEIP.cjs');
|
|
13
|
-
|
|
14
|
-
// src/engine/yaml-pipeline.ts
|
|
15
|
-
function runYamlPipeline(input, options) {
|
|
16
|
-
const narrowTarget = _chunkHUSZTEIPcjs.resolveNarrowTarget.call(void 0, options.narrowNbsp);
|
|
17
|
-
const planned = _chunkHUSZTEIPcjs.planRules.call(void 0, options.rules);
|
|
18
|
-
const locale = _chunkHUSZTEIPcjs.getLocaleData.call(void 0, options.locale);
|
|
19
|
-
const keys = _chunkCOCPFNB6cjs.resolveYamlKeys.call(void 0, options.keys);
|
|
20
|
-
_chunkHUSZTEIPcjs.assertNoProtect.call(void 0, options.protect, "yaml");
|
|
21
|
-
return _chunkHUSZTEIPcjs.runOverSpans.call(void 0, input, _chunkCOCPFNB6cjs.yamlSpans.call(void 0, input, keys), planned, locale, "yaml", narrowTarget);
|
|
22
|
-
}
|
|
23
|
-
function analyzeYamlPipeline(input, options) {
|
|
24
|
-
const narrowTarget = _chunkHUSZTEIPcjs.resolveNarrowTarget.call(void 0, options.narrowNbsp);
|
|
25
|
-
const planned = _chunkHUSZTEIPcjs.planRules.call(void 0, options.rules);
|
|
26
|
-
const locale = _chunkHUSZTEIPcjs.getLocaleData.call(void 0, options.locale);
|
|
27
|
-
const keys = _chunkCOCPFNB6cjs.resolveYamlKeys.call(void 0, options.keys);
|
|
28
|
-
_chunkHUSZTEIPcjs.assertNoProtect.call(void 0, options.protect, "yaml");
|
|
29
|
-
return _chunkHUSZTEIPcjs.analyzeOverSpans.call(void 0, input, _chunkCOCPFNB6cjs.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-DUVPE7JU.cjs.map
|