polytypo 1.23.1 → 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-ZAYI4P5G.cjs → chunk-2WVKV756.cjs} +23 -23
- package/dist/{chunk-ZAYI4P5G.cjs.map → chunk-2WVKV756.cjs.map} +1 -1
- package/dist/{chunk-SLAQTVNN.js → chunk-4IIUWRN3.js} +2 -2
- package/dist/{chunk-QTUPLKGX.js → chunk-4MM34PXT.js} +2 -2
- package/dist/{chunk-QDLVXAHK.cjs → chunk-BADHFMDP.cjs} +5 -1
- package/dist/chunk-BADHFMDP.cjs.map +1 -0
- package/dist/{chunk-GL273L36.cjs → chunk-BCZZLKYF.cjs} +6 -6
- package/dist/{chunk-GL273L36.cjs.map → chunk-BCZZLKYF.cjs.map} +1 -1
- package/dist/{chunk-FLLMLWN5.js → chunk-FE7YMHQU.js} +2 -2
- package/dist/{chunk-6242RKS3.js → chunk-HV73VY4T.js} +2 -2
- package/dist/{chunk-75YYV3FW.js → chunk-HWVGXO5H.js} +3 -3
- package/dist/{chunk-6Q3KRZQ5.js → chunk-NXEVUYTW.js} +4 -4
- package/dist/{chunk-YXUADCFN.js → chunk-OUVKOYI7.js} +5 -1
- package/dist/chunk-OUVKOYI7.js.map +1 -0
- package/dist/{chunk-JTYWNFN4.cjs → chunk-PHGV7KQI.cjs} +3 -3
- package/dist/{chunk-JTYWNFN4.cjs.map → chunk-PHGV7KQI.cjs.map} +1 -1
- package/dist/chunk-Q6DV2BRC.cjs +38 -0
- package/dist/{chunk-2XOMOXCW.cjs.map → chunk-Q6DV2BRC.cjs.map} +1 -1
- package/dist/chunk-QWOHGE6N.cjs +34 -0
- package/dist/{chunk-244KRDWN.cjs.map → chunk-QWOHGE6N.cjs.map} +1 -1
- package/dist/{chunk-4ZRAFD6S.js → chunk-SZZNBSBH.js} +3 -3
- package/dist/chunk-UJMW63TZ.cjs +36 -0
- package/dist/{chunk-CVJVASBB.cjs.map → chunk-UJMW63TZ.cjs.map} +1 -1
- package/dist/{chunk-6MZWJX7B.cjs → chunk-WQHYXBRQ.cjs} +4 -4
- package/dist/{chunk-6MZWJX7B.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-244KRDWN.cjs +0 -34
- package/dist/chunk-2XOMOXCW.cjs +0 -38
- package/dist/chunk-CVJVASBB.cjs +0 -36
- package/dist/chunk-QDLVXAHK.cjs.map +0 -1
- package/dist/chunk-YXUADCFN.js.map +0 -1
- /package/dist/{chunk-SLAQTVNN.js.map → chunk-4IIUWRN3.js.map} +0 -0
- /package/dist/{chunk-QTUPLKGX.js.map → chunk-4MM34PXT.js.map} +0 -0
- /package/dist/{chunk-FLLMLWN5.js.map → chunk-FE7YMHQU.js.map} +0 -0
- /package/dist/{chunk-6242RKS3.js.map → chunk-HV73VY4T.js.map} +0 -0
- /package/dist/{chunk-75YYV3FW.js.map → chunk-HWVGXO5H.js.map} +0 -0
- /package/dist/{chunk-6Q3KRZQ5.js.map → chunk-NXEVUYTW.js.map} +0 -0
- /package/dist/{chunk-4ZRAFD6S.js.map → chunk-SZZNBSBH.js.map} +0 -0
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
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var _chunkUJMW63TZcjs = require('./chunk-UJMW63TZ.cjs');
|
|
5
|
+
require('./chunk-BCZZLKYF.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkPHGV7KQIcjs = require('./chunk-PHGV7KQI.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkBADHFMDPcjs = require('./chunk-BADHFMDP.cjs');
|
|
12
12
|
|
|
13
13
|
// src/index.yaml.ts
|
|
14
14
|
function transform(input, options) {
|
|
15
15
|
const given = _nullishCoalesce(options, () => ( {}));
|
|
16
|
-
|
|
17
|
-
return
|
|
16
|
+
_chunkPHGV7KQIcjs.assertFixedMode.call(void 0, given.mode, "yaml", "polytypo/yaml");
|
|
17
|
+
return _chunkUJMW63TZcjs.runYamlPipeline.call(void 0, input, given);
|
|
18
18
|
}
|
|
19
19
|
function analyze(input, options) {
|
|
20
20
|
const given = _nullishCoalesce(options, () => ( {}));
|
|
21
|
-
|
|
22
|
-
return
|
|
21
|
+
_chunkPHGV7KQIcjs.assertFixedMode.call(void 0, given.mode, "yaml", "polytypo/yaml");
|
|
22
|
+
return _chunkUJMW63TZcjs.analyzeYamlPipeline.call(void 0, input, given);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
exports.PolytypoError =
|
|
28
|
+
exports.PolytypoError = _chunkBADHFMDPcjs.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-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-SZZNBSBH.js";
|
|
5
|
+
import "./chunk-4IIUWRN3.js";
|
|
6
6
|
import {
|
|
7
7
|
assertFixedMode
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-FE7YMHQU.js";
|
|
9
9
|
import {
|
|
10
10
|
PolytypoError
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-OUVKOYI7.js";
|
|
12
12
|
|
|
13
13
|
// src/index.yaml.ts
|
|
14
14
|
function transform(input, options) {
|
package/package.json
CHANGED
package/dist/chunk-244KRDWN.cjs
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
var _chunk6MZWJX7Bcjs = require('./chunk-6MZWJX7B.cjs');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var _chunkQDLVXAHKcjs = require('./chunk-QDLVXAHK.cjs');
|
|
12
|
-
|
|
13
|
-
// src/engine/html-pipeline.ts
|
|
14
|
-
function runHtmlPipeline(input, options) {
|
|
15
|
-
const narrowTarget = _chunkQDLVXAHKcjs.resolveNarrowTarget.call(void 0, options.narrowNbsp);
|
|
16
|
-
const planned = _chunkQDLVXAHKcjs.planRules.call(void 0, options.rules);
|
|
17
|
-
const locale = _chunkQDLVXAHKcjs.getLocaleData.call(void 0, options.locale);
|
|
18
|
-
_chunkQDLVXAHKcjs.assertNoProtect.call(void 0, options.protect, "html");
|
|
19
|
-
const spans = _chunk6MZWJX7Bcjs.htmlSpans.call(void 0, input);
|
|
20
|
-
return _chunkQDLVXAHKcjs.runOverSpans.call(void 0, input, spans, planned, locale, "html", narrowTarget);
|
|
21
|
-
}
|
|
22
|
-
function analyzeHtmlPipeline(input, options) {
|
|
23
|
-
const narrowTarget = _chunkQDLVXAHKcjs.resolveNarrowTarget.call(void 0, options.narrowNbsp);
|
|
24
|
-
const planned = _chunkQDLVXAHKcjs.planRules.call(void 0, options.rules);
|
|
25
|
-
const locale = _chunkQDLVXAHKcjs.getLocaleData.call(void 0, options.locale);
|
|
26
|
-
_chunkQDLVXAHKcjs.assertNoProtect.call(void 0, options.protect, "html");
|
|
27
|
-
return _chunkQDLVXAHKcjs.analyzeOverSpans.call(void 0, input, _chunk6MZWJX7Bcjs.htmlSpans.call(void 0, input), planned, locale, "html", narrowTarget);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
exports.runHtmlPipeline = runHtmlPipeline; exports.analyzeHtmlPipeline = analyzeHtmlPipeline;
|
|
34
|
-
//# sourceMappingURL=chunk-244KRDWN.cjs.map
|
package/dist/chunk-2XOMOXCW.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 _chunkQDLVXAHKcjs = require('./chunk-QDLVXAHK.cjs');
|
|
13
|
-
|
|
14
|
-
// src/engine/text-pipeline.ts
|
|
15
|
-
function runTextPipeline(input, options) {
|
|
16
|
-
const narrowTarget = _chunkQDLVXAHKcjs.resolveNarrowTarget.call(void 0, options.narrowNbsp);
|
|
17
|
-
const planned = _chunkQDLVXAHKcjs.planRules.call(void 0, options.rules);
|
|
18
|
-
const locale = _chunkQDLVXAHKcjs.getLocaleData.call(void 0, options.locale);
|
|
19
|
-
const holes = _chunkQDLVXAHKcjs.resolveProtect.call(void 0, options.protect, _chunkQDLVXAHKcjs.toCodePoints.call(void 0, input).length);
|
|
20
|
-
if (holes.length > 0) return _chunkQDLVXAHKcjs.runProtected.call(void 0, input, holes, planned, locale, narrowTarget);
|
|
21
|
-
return _chunkQDLVXAHKcjs.fromCodePoints.call(void 0, _chunkQDLVXAHKcjs.runRules.call(void 0, _chunkQDLVXAHKcjs.toCodePoints.call(void 0, input), planned, locale, "text", narrowTarget));
|
|
22
|
-
}
|
|
23
|
-
function analyzeTextPipeline(input, options) {
|
|
24
|
-
const narrowTarget = _chunkQDLVXAHKcjs.resolveNarrowTarget.call(void 0, options.narrowNbsp);
|
|
25
|
-
const planned = _chunkQDLVXAHKcjs.planRules.call(void 0, options.rules);
|
|
26
|
-
const locale = _chunkQDLVXAHKcjs.getLocaleData.call(void 0, options.locale);
|
|
27
|
-
const cp = _chunkQDLVXAHKcjs.toCodePoints.call(void 0, input);
|
|
28
|
-
const holes = _chunkQDLVXAHKcjs.resolveProtect.call(void 0, options.protect, cp.length);
|
|
29
|
-
if (holes.length > 0) return _chunkQDLVXAHKcjs.analyzeProtected.call(void 0, input, holes, planned, locale, narrowTarget);
|
|
30
|
-
const origin = cp.map((_value, index) => index);
|
|
31
|
-
return _chunkQDLVXAHKcjs.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-2XOMOXCW.cjs.map
|
package/dist/chunk-CVJVASBB.cjs
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var _chunkGL273L36cjs = require('./chunk-GL273L36.cjs');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var _chunkQDLVXAHKcjs = require('./chunk-QDLVXAHK.cjs');
|
|
13
|
-
|
|
14
|
-
// src/engine/yaml-pipeline.ts
|
|
15
|
-
function runYamlPipeline(input, options) {
|
|
16
|
-
const narrowTarget = _chunkQDLVXAHKcjs.resolveNarrowTarget.call(void 0, options.narrowNbsp);
|
|
17
|
-
const planned = _chunkQDLVXAHKcjs.planRules.call(void 0, options.rules);
|
|
18
|
-
const locale = _chunkQDLVXAHKcjs.getLocaleData.call(void 0, options.locale);
|
|
19
|
-
const keys = _chunkGL273L36cjs.resolveYamlKeys.call(void 0, options.keys);
|
|
20
|
-
_chunkQDLVXAHKcjs.assertNoProtect.call(void 0, options.protect, "yaml");
|
|
21
|
-
return _chunkQDLVXAHKcjs.runOverSpans.call(void 0, input, _chunkGL273L36cjs.yamlSpans.call(void 0, input, keys), planned, locale, "yaml", narrowTarget);
|
|
22
|
-
}
|
|
23
|
-
function analyzeYamlPipeline(input, options) {
|
|
24
|
-
const narrowTarget = _chunkQDLVXAHKcjs.resolveNarrowTarget.call(void 0, options.narrowNbsp);
|
|
25
|
-
const planned = _chunkQDLVXAHKcjs.planRules.call(void 0, options.rules);
|
|
26
|
-
const locale = _chunkQDLVXAHKcjs.getLocaleData.call(void 0, options.locale);
|
|
27
|
-
const keys = _chunkGL273L36cjs.resolveYamlKeys.call(void 0, options.keys);
|
|
28
|
-
_chunkQDLVXAHKcjs.assertNoProtect.call(void 0, options.protect, "yaml");
|
|
29
|
-
return _chunkQDLVXAHKcjs.analyzeOverSpans.call(void 0, input, _chunkGL273L36cjs.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-CVJVASBB.cjs.map
|