polytypo 1.24.0 → 1.25.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-PXXHTL3K.cjs → chunk-2WVKV756.cjs} +23 -23
- package/dist/{chunk-PXXHTL3K.cjs.map → chunk-2WVKV756.cjs.map} +1 -1
- package/dist/{chunk-RW32MNW5.js → chunk-4IIUWRN3.js} +2 -2
- package/dist/{chunk-44PLJMOX.js → chunk-4MM34PXT.js} +2 -2
- package/dist/{chunk-4GNJWMXI.cjs → chunk-BADHFMDP.cjs} +3 -1
- package/dist/chunk-BADHFMDP.cjs.map +1 -0
- package/dist/{chunk-BRUSFT2Q.cjs → chunk-BCZZLKYF.cjs} +6 -6
- package/dist/{chunk-BRUSFT2Q.cjs.map → chunk-BCZZLKYF.cjs.map} +1 -1
- package/dist/{chunk-W24ZJOMS.js → chunk-FE7YMHQU.js} +2 -2
- package/dist/{chunk-MLCRELTI.js → chunk-HV73VY4T.js} +2 -2
- package/dist/{chunk-L3J52D7B.js → chunk-HWVGXO5H.js} +3 -3
- package/dist/{chunk-D57NGDLG.js → chunk-NXEVUYTW.js} +4 -4
- package/dist/{chunk-UPOI5JM4.js → chunk-OUVKOYI7.js} +3 -1
- package/dist/chunk-OUVKOYI7.js.map +1 -0
- package/dist/{chunk-3GKRQ3XO.cjs → chunk-PHGV7KQI.cjs} +3 -3
- package/dist/{chunk-3GKRQ3XO.cjs.map → chunk-PHGV7KQI.cjs.map} +1 -1
- package/dist/chunk-Q6DV2BRC.cjs +38 -0
- package/dist/{chunk-RQTVK2RX.cjs.map → chunk-Q6DV2BRC.cjs.map} +1 -1
- package/dist/chunk-QWOHGE6N.cjs +34 -0
- package/dist/{chunk-6XJG3XEK.cjs.map → chunk-QWOHGE6N.cjs.map} +1 -1
- package/dist/{chunk-6BZSWQLS.js → chunk-SZZNBSBH.js} +3 -3
- package/dist/chunk-UJMW63TZ.cjs +36 -0
- package/dist/{chunk-J3EZK5OW.cjs.map → chunk-UJMW63TZ.cjs.map} +1 -1
- package/dist/{chunk-XHTWS33U.cjs → chunk-WQHYXBRQ.cjs} +4 -4
- package/dist/{chunk-XHTWS33U.cjs.map → chunk-WQHYXBRQ.cjs.map} +1 -1
- 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-4GNJWMXI.cjs.map +0 -1
- package/dist/chunk-6XJG3XEK.cjs +0 -34
- package/dist/chunk-J3EZK5OW.cjs +0 -36
- package/dist/chunk-RQTVK2RX.cjs +0 -38
- package/dist/chunk-UPOI5JM4.js.map +0 -1
- /package/dist/{chunk-RW32MNW5.js.map → chunk-4IIUWRN3.js.map} +0 -0
- /package/dist/{chunk-44PLJMOX.js.map → chunk-4MM34PXT.js.map} +0 -0
- /package/dist/{chunk-W24ZJOMS.js.map → chunk-FE7YMHQU.js.map} +0 -0
- /package/dist/{chunk-MLCRELTI.js.map → chunk-HV73VY4T.js.map} +0 -0
- /package/dist/{chunk-L3J52D7B.js.map → chunk-HWVGXO5H.js.map} +0 -0
- /package/dist/{chunk-D57NGDLG.js.map → chunk-NXEVUYTW.js.map} +0 -0
- /package/dist/{chunk-6BZSWQLS.js.map → chunk-SZZNBSBH.js.map} +0 -0
package/dist/chunk-6XJG3XEK.cjs
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
var _chunkXHTWS33Ucjs = require('./chunk-XHTWS33U.cjs');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var _chunk4GNJWMXIcjs = require('./chunk-4GNJWMXI.cjs');
|
|
12
|
-
|
|
13
|
-
// src/engine/html-pipeline.ts
|
|
14
|
-
function runHtmlPipeline(input, options) {
|
|
15
|
-
const narrowTarget = _chunk4GNJWMXIcjs.resolveNarrowTarget.call(void 0, options.narrowNbsp);
|
|
16
|
-
const planned = _chunk4GNJWMXIcjs.planRules.call(void 0, options.rules);
|
|
17
|
-
const locale = _chunk4GNJWMXIcjs.getLocaleData.call(void 0, options.locale);
|
|
18
|
-
_chunk4GNJWMXIcjs.assertNoProtect.call(void 0, options.protect, "html");
|
|
19
|
-
const spans = _chunkXHTWS33Ucjs.htmlSpans.call(void 0, input);
|
|
20
|
-
return _chunk4GNJWMXIcjs.runOverSpans.call(void 0, input, spans, planned, locale, "html", narrowTarget);
|
|
21
|
-
}
|
|
22
|
-
function analyzeHtmlPipeline(input, options) {
|
|
23
|
-
const narrowTarget = _chunk4GNJWMXIcjs.resolveNarrowTarget.call(void 0, options.narrowNbsp);
|
|
24
|
-
const planned = _chunk4GNJWMXIcjs.planRules.call(void 0, options.rules);
|
|
25
|
-
const locale = _chunk4GNJWMXIcjs.getLocaleData.call(void 0, options.locale);
|
|
26
|
-
_chunk4GNJWMXIcjs.assertNoProtect.call(void 0, options.protect, "html");
|
|
27
|
-
return _chunk4GNJWMXIcjs.analyzeOverSpans.call(void 0, input, _chunkXHTWS33Ucjs.htmlSpans.call(void 0, input), planned, locale, "html", narrowTarget);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
exports.runHtmlPipeline = runHtmlPipeline; exports.analyzeHtmlPipeline = analyzeHtmlPipeline;
|
|
34
|
-
//# sourceMappingURL=chunk-6XJG3XEK.cjs.map
|
package/dist/chunk-J3EZK5OW.cjs
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var _chunkBRUSFT2Qcjs = require('./chunk-BRUSFT2Q.cjs');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var _chunk4GNJWMXIcjs = require('./chunk-4GNJWMXI.cjs');
|
|
13
|
-
|
|
14
|
-
// src/engine/yaml-pipeline.ts
|
|
15
|
-
function runYamlPipeline(input, options) {
|
|
16
|
-
const narrowTarget = _chunk4GNJWMXIcjs.resolveNarrowTarget.call(void 0, options.narrowNbsp);
|
|
17
|
-
const planned = _chunk4GNJWMXIcjs.planRules.call(void 0, options.rules);
|
|
18
|
-
const locale = _chunk4GNJWMXIcjs.getLocaleData.call(void 0, options.locale);
|
|
19
|
-
const keys = _chunkBRUSFT2Qcjs.resolveYamlKeys.call(void 0, options.keys);
|
|
20
|
-
_chunk4GNJWMXIcjs.assertNoProtect.call(void 0, options.protect, "yaml");
|
|
21
|
-
return _chunk4GNJWMXIcjs.runOverSpans.call(void 0, input, _chunkBRUSFT2Qcjs.yamlSpans.call(void 0, input, keys), planned, locale, "yaml", narrowTarget);
|
|
22
|
-
}
|
|
23
|
-
function analyzeYamlPipeline(input, options) {
|
|
24
|
-
const narrowTarget = _chunk4GNJWMXIcjs.resolveNarrowTarget.call(void 0, options.narrowNbsp);
|
|
25
|
-
const planned = _chunk4GNJWMXIcjs.planRules.call(void 0, options.rules);
|
|
26
|
-
const locale = _chunk4GNJWMXIcjs.getLocaleData.call(void 0, options.locale);
|
|
27
|
-
const keys = _chunkBRUSFT2Qcjs.resolveYamlKeys.call(void 0, options.keys);
|
|
28
|
-
_chunk4GNJWMXIcjs.assertNoProtect.call(void 0, options.protect, "yaml");
|
|
29
|
-
return _chunk4GNJWMXIcjs.analyzeOverSpans.call(void 0, input, _chunkBRUSFT2Qcjs.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-J3EZK5OW.cjs.map
|
package/dist/chunk-RQTVK2RX.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 _chunk4GNJWMXIcjs = require('./chunk-4GNJWMXI.cjs');
|
|
13
|
-
|
|
14
|
-
// src/engine/text-pipeline.ts
|
|
15
|
-
function runTextPipeline(input, options) {
|
|
16
|
-
const narrowTarget = _chunk4GNJWMXIcjs.resolveNarrowTarget.call(void 0, options.narrowNbsp);
|
|
17
|
-
const planned = _chunk4GNJWMXIcjs.planRules.call(void 0, options.rules);
|
|
18
|
-
const locale = _chunk4GNJWMXIcjs.getLocaleData.call(void 0, options.locale);
|
|
19
|
-
const holes = _chunk4GNJWMXIcjs.resolveProtect.call(void 0, options.protect, _chunk4GNJWMXIcjs.toCodePoints.call(void 0, input).length);
|
|
20
|
-
if (holes.length > 0) return _chunk4GNJWMXIcjs.runProtected.call(void 0, input, holes, planned, locale, narrowTarget);
|
|
21
|
-
return _chunk4GNJWMXIcjs.fromCodePoints.call(void 0, _chunk4GNJWMXIcjs.runRules.call(void 0, _chunk4GNJWMXIcjs.toCodePoints.call(void 0, input), planned, locale, "text", narrowTarget));
|
|
22
|
-
}
|
|
23
|
-
function analyzeTextPipeline(input, options) {
|
|
24
|
-
const narrowTarget = _chunk4GNJWMXIcjs.resolveNarrowTarget.call(void 0, options.narrowNbsp);
|
|
25
|
-
const planned = _chunk4GNJWMXIcjs.planRules.call(void 0, options.rules);
|
|
26
|
-
const locale = _chunk4GNJWMXIcjs.getLocaleData.call(void 0, options.locale);
|
|
27
|
-
const cp = _chunk4GNJWMXIcjs.toCodePoints.call(void 0, input);
|
|
28
|
-
const holes = _chunk4GNJWMXIcjs.resolveProtect.call(void 0, options.protect, cp.length);
|
|
29
|
-
if (holes.length > 0) return _chunk4GNJWMXIcjs.analyzeProtected.call(void 0, input, holes, planned, locale, narrowTarget);
|
|
30
|
-
const origin = cp.map((_value, index) => index);
|
|
31
|
-
return _chunk4GNJWMXIcjs.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-RQTVK2RX.cjs.map
|