polytypo 1.26.0 → 1.28.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.
- package/dist/{chunk-BXKUA5GP.js → chunk-6T6NVRNM.js} +2 -2
- package/dist/{chunk-KWXTSOIH.js → chunk-6UZQ5ZZJ.js} +4 -4
- package/dist/{chunk-E2E36U6A.js → chunk-BFL7S4HC.js} +2 -2
- package/dist/chunk-BKW4AJZO.cjs +38 -0
- package/dist/{chunk-QD3P5HZV.cjs.map → chunk-BKW4AJZO.cjs.map} +1 -1
- package/dist/{chunk-6P4F3YOR.js → chunk-D6PN6Q4M.js} +6 -1
- package/dist/chunk-D6PN6Q4M.js.map +1 -0
- package/dist/{chunk-V6EGWED5.cjs → chunk-G3O5HW3V.cjs} +4 -4
- package/dist/{chunk-V6EGWED5.cjs.map → chunk-G3O5HW3V.cjs.map} +1 -1
- package/dist/{chunk-Y6GIAYA4.js → chunk-GM5SALQC.js} +2 -2
- package/dist/chunk-H7HEFRC2.cjs +34 -0
- package/dist/{chunk-I256PAWQ.cjs.map → chunk-H7HEFRC2.cjs.map} +1 -1
- package/dist/chunk-KCH6MUBU.cjs +36 -0
- package/dist/{chunk-4L3HIHZT.cjs.map → chunk-KCH6MUBU.cjs.map} +1 -1
- package/dist/{chunk-UJ4W3CPI.js → chunk-KZYQGRHP.js} +2 -2
- package/dist/{chunk-SEO7SHTQ.cjs → chunk-LO256TEM.cjs} +3 -3
- package/dist/{chunk-SEO7SHTQ.cjs.map → chunk-LO256TEM.cjs.map} +1 -1
- package/dist/{chunk-UFJ3OXGT.js → chunk-MXAVM7XR.js} +3 -3
- package/dist/{chunk-GBT2MDOB.cjs → chunk-PPRYHZUP.cjs} +23 -23
- package/dist/{chunk-GBT2MDOB.cjs.map → chunk-PPRYHZUP.cjs.map} +1 -1
- package/dist/{chunk-UYUYS46S.cjs → chunk-R237DJ7C.cjs} +6 -6
- package/dist/{chunk-UYUYS46S.cjs.map → chunk-R237DJ7C.cjs.map} +1 -1
- package/dist/{chunk-YC5PR4PR.cjs → chunk-W547XYZL.cjs} +6 -1
- package/dist/chunk-W547XYZL.cjs.map +1 -0
- package/dist/{chunk-55725NLR.js → chunk-ZLPKCCD2.js} +3 -3
- 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-4L3HIHZT.cjs +0 -36
- package/dist/chunk-6P4F3YOR.js.map +0 -1
- package/dist/chunk-I256PAWQ.cjs +0 -34
- package/dist/chunk-QD3P5HZV.cjs +0 -38
- package/dist/chunk-YC5PR4PR.cjs.map +0 -1
- /package/dist/{chunk-BXKUA5GP.js.map → chunk-6T6NVRNM.js.map} +0 -0
- /package/dist/{chunk-KWXTSOIH.js.map → chunk-6UZQ5ZZJ.js.map} +0 -0
- /package/dist/{chunk-E2E36U6A.js.map → chunk-BFL7S4HC.js.map} +0 -0
- /package/dist/{chunk-Y6GIAYA4.js.map → chunk-GM5SALQC.js.map} +0 -0
- /package/dist/{chunk-UJ4W3CPI.js.map → chunk-KZYQGRHP.js.map} +0 -0
- /package/dist/{chunk-UFJ3OXGT.js.map → chunk-MXAVM7XR.js.map} +0 -0
- /package/dist/{chunk-55725NLR.js.map → chunk-ZLPKCCD2.js.map} +0 -0
package/dist/chunk-I256PAWQ.cjs
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
var _chunkV6EGWED5cjs = require('./chunk-V6EGWED5.cjs');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var _chunkYC5PR4PRcjs = require('./chunk-YC5PR4PR.cjs');
|
|
12
|
-
|
|
13
|
-
// src/engine/html-pipeline.ts
|
|
14
|
-
function runHtmlPipeline(input, options) {
|
|
15
|
-
const narrowTarget = _chunkYC5PR4PRcjs.resolveNarrowTarget.call(void 0, options.narrowNbsp);
|
|
16
|
-
const planned = _chunkYC5PR4PRcjs.planRules.call(void 0, options.rules);
|
|
17
|
-
const locale = _chunkYC5PR4PRcjs.getLocaleData.call(void 0, options.locale);
|
|
18
|
-
_chunkYC5PR4PRcjs.assertNoProtect.call(void 0, options.protect, "html");
|
|
19
|
-
const spans = _chunkV6EGWED5cjs.htmlSpans.call(void 0, input);
|
|
20
|
-
return _chunkYC5PR4PRcjs.runOverSpans.call(void 0, input, spans, planned, locale, "html", narrowTarget);
|
|
21
|
-
}
|
|
22
|
-
function analyzeHtmlPipeline(input, options) {
|
|
23
|
-
const narrowTarget = _chunkYC5PR4PRcjs.resolveNarrowTarget.call(void 0, options.narrowNbsp);
|
|
24
|
-
const planned = _chunkYC5PR4PRcjs.planRules.call(void 0, options.rules);
|
|
25
|
-
const locale = _chunkYC5PR4PRcjs.getLocaleData.call(void 0, options.locale);
|
|
26
|
-
_chunkYC5PR4PRcjs.assertNoProtect.call(void 0, options.protect, "html");
|
|
27
|
-
return _chunkYC5PR4PRcjs.analyzeOverSpans.call(void 0, input, _chunkV6EGWED5cjs.htmlSpans.call(void 0, input), planned, locale, "html", narrowTarget);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
exports.runHtmlPipeline = runHtmlPipeline; exports.analyzeHtmlPipeline = analyzeHtmlPipeline;
|
|
34
|
-
//# sourceMappingURL=chunk-I256PAWQ.cjs.map
|
package/dist/chunk-QD3P5HZV.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 _chunkYC5PR4PRcjs = require('./chunk-YC5PR4PR.cjs');
|
|
13
|
-
|
|
14
|
-
// src/engine/text-pipeline.ts
|
|
15
|
-
function runTextPipeline(input, options) {
|
|
16
|
-
const narrowTarget = _chunkYC5PR4PRcjs.resolveNarrowTarget.call(void 0, options.narrowNbsp);
|
|
17
|
-
const planned = _chunkYC5PR4PRcjs.planRules.call(void 0, options.rules);
|
|
18
|
-
const locale = _chunkYC5PR4PRcjs.getLocaleData.call(void 0, options.locale);
|
|
19
|
-
const holes = _chunkYC5PR4PRcjs.resolveProtect.call(void 0, options.protect, _chunkYC5PR4PRcjs.toCodePoints.call(void 0, input).length);
|
|
20
|
-
if (holes.length > 0) return _chunkYC5PR4PRcjs.runProtected.call(void 0, input, holes, planned, locale, narrowTarget);
|
|
21
|
-
return _chunkYC5PR4PRcjs.fromCodePoints.call(void 0, _chunkYC5PR4PRcjs.runRules.call(void 0, _chunkYC5PR4PRcjs.toCodePoints.call(void 0, input), planned, locale, "text", narrowTarget));
|
|
22
|
-
}
|
|
23
|
-
function analyzeTextPipeline(input, options) {
|
|
24
|
-
const narrowTarget = _chunkYC5PR4PRcjs.resolveNarrowTarget.call(void 0, options.narrowNbsp);
|
|
25
|
-
const planned = _chunkYC5PR4PRcjs.planRules.call(void 0, options.rules);
|
|
26
|
-
const locale = _chunkYC5PR4PRcjs.getLocaleData.call(void 0, options.locale);
|
|
27
|
-
const cp = _chunkYC5PR4PRcjs.toCodePoints.call(void 0, input);
|
|
28
|
-
const holes = _chunkYC5PR4PRcjs.resolveProtect.call(void 0, options.protect, cp.length);
|
|
29
|
-
if (holes.length > 0) return _chunkYC5PR4PRcjs.analyzeProtected.call(void 0, input, holes, planned, locale, narrowTarget);
|
|
30
|
-
const origin = cp.map((_value, index) => index);
|
|
31
|
-
return _chunkYC5PR4PRcjs.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-QD3P5HZV.cjs.map
|