polytypo 1.6.0 → 1.6.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-GDZCWLM3.cjs → chunk-DKUR763G.cjs} +16 -16
- package/dist/{chunk-GDZCWLM3.cjs.map → chunk-DKUR763G.cjs.map} +1 -1
- package/dist/{chunk-ZHF6GNJ4.js → chunk-FICUT4OU.js} +2 -2
- package/dist/{chunk-TDIDDBNH.js → chunk-IN32R4AX.js} +4 -4
- package/dist/{chunk-242RX2X7.js → chunk-LDXWXCGL.js} +2 -2
- package/dist/{chunk-V3EGRWOR.cjs → chunk-M4PJNXRU.cjs} +13 -13
- package/dist/{chunk-V3EGRWOR.cjs.map → chunk-M4PJNXRU.cjs.map} +1 -1
- package/dist/chunk-MDESZMU2.cjs +33 -0
- package/dist/{chunk-3HRK4WOC.cjs.map → chunk-MDESZMU2.cjs.map} +1 -1
- package/dist/{chunk-A4CH2EQC.cjs → chunk-P6IBHZL6.cjs} +3 -3
- package/dist/{chunk-A4CH2EQC.cjs.map → chunk-P6IBHZL6.cjs.map} +1 -1
- package/dist/{chunk-JWODP74P.cjs → chunk-PGHLZCGV.cjs} +17 -17
- package/dist/{chunk-JWODP74P.cjs.map → chunk-PGHLZCGV.cjs.map} +1 -1
- package/dist/{chunk-IMWES4GY.js → chunk-URE2U73R.js} +3 -3
- package/dist/{chunk-P47H3TPN.cjs → chunk-V6SSSZLP.cjs} +4 -4
- package/dist/{chunk-P47H3TPN.cjs.map → chunk-V6SSSZLP.cjs.map} +1 -1
- package/dist/{chunk-2OERMYTV.js → chunk-VBZAV63L.js} +2 -2
- package/dist/{chunk-GAIX76FT.cjs → chunk-VCD45VZH.cjs} +1 -1
- package/dist/{chunk-GAIX76FT.cjs.map → chunk-VCD45VZH.cjs.map} +1 -1
- package/dist/chunk-VSONV4W4.cjs +31 -0
- package/dist/{chunk-3JF6P2GI.cjs.map → chunk-VSONV4W4.cjs.map} +1 -1
- package/dist/{chunk-C2KW4GOY.js → chunk-VST7L77N.js} +2 -2
- package/dist/{chunk-MOAEMPFT.js → chunk-W77K6K6G.js} +1 -1
- package/dist/{chunk-MOAEMPFT.js.map → chunk-W77K6K6G.js.map} +1 -1
- package/dist/{chunk-CVYDGAIH.js → chunk-YD5JMNLT.js} +4 -4
- package/dist/html.cjs +10 -10
- package/dist/html.js +5 -5
- 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-3HRK4WOC.cjs +0 -33
- package/dist/chunk-3JF6P2GI.cjs +0 -31
- /package/dist/{chunk-ZHF6GNJ4.js.map → chunk-FICUT4OU.js.map} +0 -0
- /package/dist/{chunk-TDIDDBNH.js.map → chunk-IN32R4AX.js.map} +0 -0
- /package/dist/{chunk-242RX2X7.js.map → chunk-LDXWXCGL.js.map} +0 -0
- /package/dist/{chunk-IMWES4GY.js.map → chunk-URE2U73R.js.map} +0 -0
- /package/dist/{chunk-2OERMYTV.js.map → chunk-VBZAV63L.js.map} +0 -0
- /package/dist/{chunk-C2KW4GOY.js.map → chunk-VST7L77N.js.map} +0 -0
- /package/dist/{chunk-CVYDGAIH.js.map → chunk-YD5JMNLT.js.map} +0 -0
|
@@ -2,17 +2,17 @@ import {
|
|
|
2
2
|
htmlFragmentSpans,
|
|
3
3
|
isSkippedElement,
|
|
4
4
|
wrapParserErrors
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VST7L77N.js";
|
|
6
6
|
import {
|
|
7
7
|
analyzeOverSpans,
|
|
8
8
|
runOverSpans
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LDXWXCGL.js";
|
|
10
10
|
import {
|
|
11
11
|
PolytypoError,
|
|
12
12
|
getLocaleData,
|
|
13
13
|
planRules,
|
|
14
14
|
resolveNarrowTarget
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-W77K6K6G.js";
|
|
16
16
|
|
|
17
17
|
// src/modes/markdown.ts
|
|
18
18
|
import { parse, postprocess, preprocess } from "micromark";
|
|
@@ -184,4 +184,4 @@ export {
|
|
|
184
184
|
runMarkdownPipeline,
|
|
185
185
|
analyzeMarkdownPipeline
|
|
186
186
|
};
|
|
187
|
-
//# sourceMappingURL=chunk-
|
|
187
|
+
//# sourceMappingURL=chunk-YD5JMNLT.js.map
|
package/dist/html.cjs
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
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-
|
|
6
|
-
require('./chunk-
|
|
4
|
+
var _chunkMDESZMU2cjs = require('./chunk-MDESZMU2.cjs');
|
|
5
|
+
require('./chunk-V6SSSZLP.cjs');
|
|
6
|
+
require('./chunk-DKUR763G.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkP6IBHZL6cjs = require('./chunk-P6IBHZL6.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkVCD45VZHcjs = require('./chunk-VCD45VZH.cjs');
|
|
13
13
|
|
|
14
14
|
// src/index.html.ts
|
|
15
15
|
function transform(input, options) {
|
|
16
16
|
const given = _nullishCoalesce(options, () => ( {}));
|
|
17
|
-
|
|
18
|
-
return
|
|
17
|
+
_chunkP6IBHZL6cjs.assertFixedMode.call(void 0, given.mode, "html", "polytypo/html");
|
|
18
|
+
return _chunkMDESZMU2cjs.runHtmlPipeline.call(void 0, input, given);
|
|
19
19
|
}
|
|
20
20
|
function analyze(input, options) {
|
|
21
21
|
const given = _nullishCoalesce(options, () => ( {}));
|
|
22
|
-
|
|
23
|
-
return
|
|
22
|
+
_chunkP6IBHZL6cjs.assertFixedMode.call(void 0, given.mode, "html", "polytypo/html");
|
|
23
|
+
return _chunkMDESZMU2cjs.analyzeHtmlPipeline.call(void 0, input, given);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
exports.PolytypoError =
|
|
29
|
+
exports.PolytypoError = _chunkVCD45VZHcjs.PolytypoError; exports.analyze = analyze; exports.transform = transform;
|
|
30
30
|
//# sourceMappingURL=html.cjs.map
|
package/dist/html.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
analyzeHtmlPipeline,
|
|
3
3
|
runHtmlPipeline
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-IN32R4AX.js";
|
|
5
|
+
import "./chunk-VST7L77N.js";
|
|
6
|
+
import "./chunk-LDXWXCGL.js";
|
|
7
7
|
import {
|
|
8
8
|
assertFixedMode
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FICUT4OU.js";
|
|
10
10
|
import {
|
|
11
11
|
PolytypoError
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-W77K6K6G.js";
|
|
13
13
|
|
|
14
14
|
// src/index.html.ts
|
|
15
15
|
function transform(input, options) {
|
package/dist/index.cjs
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
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
|
|
4
|
+
var _chunkVSONV4W4cjs = require('./chunk-VSONV4W4.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkMDESZMU2cjs = require('./chunk-MDESZMU2.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
13
|
-
require('./chunk-
|
|
12
|
+
var _chunkPGHLZCGVcjs = require('./chunk-PGHLZCGV.cjs');
|
|
13
|
+
require('./chunk-V6SSSZLP.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
18
|
-
require('./chunk-
|
|
17
|
+
var _chunkM4PJNXRUcjs = require('./chunk-M4PJNXRU.cjs');
|
|
18
|
+
require('./chunk-DKUR763G.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkVCD45VZHcjs = require('./chunk-VCD45VZH.cjs');
|
|
22
22
|
|
|
23
23
|
// src/engine/pipeline.ts
|
|
24
24
|
function resolveMode(mode) {
|
|
25
25
|
if (mode === void 0 || mode === "text") return "text";
|
|
26
26
|
if (mode === "html" || mode === "markdown" || mode === "yaml") return mode;
|
|
27
|
-
throw new (0,
|
|
27
|
+
throw new (0, _chunkVCD45VZHcjs.PolytypoError)(
|
|
28
28
|
"POLYTYPO_INVALID_MODE",
|
|
29
29
|
`Unknown mode "${String(mode)}". Expected "text", "html", "markdown" or "yaml".`
|
|
30
30
|
);
|
|
@@ -32,18 +32,18 @@ function resolveMode(mode) {
|
|
|
32
32
|
function runPipeline(input, options) {
|
|
33
33
|
const given = _nullishCoalesce(options, () => ( {}));
|
|
34
34
|
const mode = resolveMode(given.mode);
|
|
35
|
-
if (mode === "text") return
|
|
36
|
-
if (mode === "html") return
|
|
37
|
-
if (mode === "yaml") return
|
|
38
|
-
return
|
|
35
|
+
if (mode === "text") return _chunkVSONV4W4cjs.runTextPipeline.call(void 0, input, given);
|
|
36
|
+
if (mode === "html") return _chunkMDESZMU2cjs.runHtmlPipeline.call(void 0, input, given);
|
|
37
|
+
if (mode === "yaml") return _chunkM4PJNXRUcjs.runYamlPipeline.call(void 0, input, given);
|
|
38
|
+
return _chunkPGHLZCGVcjs.runMarkdownPipeline.call(void 0, input, given);
|
|
39
39
|
}
|
|
40
40
|
function runAnalyze(input, options) {
|
|
41
41
|
const given = _nullishCoalesce(options, () => ( {}));
|
|
42
42
|
const mode = resolveMode(given.mode);
|
|
43
|
-
if (mode === "text") return
|
|
44
|
-
if (mode === "html") return
|
|
45
|
-
if (mode === "yaml") return
|
|
46
|
-
return
|
|
43
|
+
if (mode === "text") return _chunkVSONV4W4cjs.analyzeTextPipeline.call(void 0, input, given);
|
|
44
|
+
if (mode === "html") return _chunkMDESZMU2cjs.analyzeHtmlPipeline.call(void 0, input, given);
|
|
45
|
+
if (mode === "yaml") return _chunkM4PJNXRUcjs.analyzeYamlPipeline.call(void 0, input, given);
|
|
46
|
+
return _chunkPGHLZCGVcjs.analyzeMarkdownPipeline.call(void 0, input, given);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
// src/index.ts
|
|
@@ -57,5 +57,5 @@ function analyze(input, options) {
|
|
|
57
57
|
|
|
58
58
|
|
|
59
59
|
|
|
60
|
-
exports.PolytypoError =
|
|
60
|
+
exports.PolytypoError = _chunkVCD45VZHcjs.PolytypoError; exports.analyze = analyze; exports.transform = transform;
|
|
61
61
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
analyzeTextPipeline,
|
|
3
3
|
runTextPipeline
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-VBZAV63L.js";
|
|
5
5
|
import {
|
|
6
6
|
analyzeHtmlPipeline,
|
|
7
7
|
runHtmlPipeline
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-IN32R4AX.js";
|
|
9
9
|
import {
|
|
10
10
|
analyzeMarkdownPipeline,
|
|
11
11
|
runMarkdownPipeline
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-YD5JMNLT.js";
|
|
13
|
+
import "./chunk-VST7L77N.js";
|
|
14
14
|
import {
|
|
15
15
|
analyzeYamlPipeline,
|
|
16
16
|
runYamlPipeline
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-URE2U73R.js";
|
|
18
|
+
import "./chunk-LDXWXCGL.js";
|
|
19
19
|
import {
|
|
20
20
|
PolytypoError
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-W77K6K6G.js";
|
|
22
22
|
|
|
23
23
|
// src/engine/pipeline.ts
|
|
24
24
|
function resolveMode(mode) {
|
package/dist/markdown.cjs
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
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-
|
|
6
|
-
require('./chunk-
|
|
4
|
+
var _chunkPGHLZCGVcjs = require('./chunk-PGHLZCGV.cjs');
|
|
5
|
+
require('./chunk-V6SSSZLP.cjs');
|
|
6
|
+
require('./chunk-DKUR763G.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkP6IBHZL6cjs = require('./chunk-P6IBHZL6.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkVCD45VZHcjs = require('./chunk-VCD45VZH.cjs');
|
|
13
13
|
|
|
14
14
|
// src/index.markdown.ts
|
|
15
15
|
function transform(input, options) {
|
|
16
16
|
const given = _nullishCoalesce(options, () => ( {}));
|
|
17
|
-
|
|
18
|
-
return
|
|
17
|
+
_chunkP6IBHZL6cjs.assertFixedMode.call(void 0, given.mode, "markdown", "polytypo/markdown");
|
|
18
|
+
return _chunkPGHLZCGVcjs.runMarkdownPipeline.call(void 0, input, given);
|
|
19
19
|
}
|
|
20
20
|
function analyze(input, options) {
|
|
21
21
|
const given = _nullishCoalesce(options, () => ( {}));
|
|
22
|
-
|
|
23
|
-
return
|
|
22
|
+
_chunkP6IBHZL6cjs.assertFixedMode.call(void 0, given.mode, "markdown", "polytypo/markdown");
|
|
23
|
+
return _chunkPGHLZCGVcjs.analyzeMarkdownPipeline.call(void 0, input, given);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
exports.PolytypoError =
|
|
29
|
+
exports.PolytypoError = _chunkVCD45VZHcjs.PolytypoError; exports.analyze = analyze; exports.transform = transform;
|
|
30
30
|
//# sourceMappingURL=markdown.cjs.map
|
package/dist/markdown.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
analyzeMarkdownPipeline,
|
|
3
3
|
runMarkdownPipeline
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-YD5JMNLT.js";
|
|
5
|
+
import "./chunk-VST7L77N.js";
|
|
6
|
+
import "./chunk-LDXWXCGL.js";
|
|
7
7
|
import {
|
|
8
8
|
assertFixedMode
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FICUT4OU.js";
|
|
10
10
|
import {
|
|
11
11
|
PolytypoError
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-W77K6K6G.js";
|
|
13
13
|
|
|
14
14
|
// src/index.markdown.ts
|
|
15
15
|
function transform(input, options) {
|
package/dist/text.cjs
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
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
|
|
4
|
+
var _chunkVSONV4W4cjs = require('./chunk-VSONV4W4.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkP6IBHZL6cjs = require('./chunk-P6IBHZL6.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkVCD45VZHcjs = require('./chunk-VCD45VZH.cjs');
|
|
11
11
|
|
|
12
12
|
// src/index.text.ts
|
|
13
13
|
function transform(input, options) {
|
|
14
14
|
const given = _nullishCoalesce(options, () => ( {}));
|
|
15
|
-
|
|
16
|
-
return
|
|
15
|
+
_chunkP6IBHZL6cjs.assertFixedMode.call(void 0, given.mode, "text", "polytypo/text");
|
|
16
|
+
return _chunkVSONV4W4cjs.runTextPipeline.call(void 0, input, given);
|
|
17
17
|
}
|
|
18
18
|
function analyze(input, options) {
|
|
19
19
|
const given = _nullishCoalesce(options, () => ( {}));
|
|
20
|
-
|
|
21
|
-
return
|
|
20
|
+
_chunkP6IBHZL6cjs.assertFixedMode.call(void 0, given.mode, "text", "polytypo/text");
|
|
21
|
+
return _chunkVSONV4W4cjs.analyzeTextPipeline.call(void 0, input, given);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
exports.PolytypoError =
|
|
27
|
+
exports.PolytypoError = _chunkVCD45VZHcjs.PolytypoError; exports.analyze = analyze; exports.transform = transform;
|
|
28
28
|
//# sourceMappingURL=text.cjs.map
|
package/dist/text.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
analyzeTextPipeline,
|
|
3
3
|
runTextPipeline
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-VBZAV63L.js";
|
|
5
5
|
import {
|
|
6
6
|
assertFixedMode
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FICUT4OU.js";
|
|
8
8
|
import {
|
|
9
9
|
PolytypoError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-W77K6K6G.js";
|
|
11
11
|
|
|
12
12
|
// src/index.text.ts
|
|
13
13
|
function transform(input, options) {
|
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 _chunkM4PJNXRUcjs = require('./chunk-M4PJNXRU.cjs');
|
|
5
|
+
require('./chunk-DKUR763G.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkP6IBHZL6cjs = require('./chunk-P6IBHZL6.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkVCD45VZHcjs = require('./chunk-VCD45VZH.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
|
+
_chunkP6IBHZL6cjs.assertFixedMode.call(void 0, given.mode, "yaml", "polytypo/yaml");
|
|
17
|
+
return _chunkM4PJNXRUcjs.runYamlPipeline.call(void 0, input, given);
|
|
18
18
|
}
|
|
19
19
|
function analyze(input, options) {
|
|
20
20
|
const given = _nullishCoalesce(options, () => ( {}));
|
|
21
|
-
|
|
22
|
-
return
|
|
21
|
+
_chunkP6IBHZL6cjs.assertFixedMode.call(void 0, given.mode, "yaml", "polytypo/yaml");
|
|
22
|
+
return _chunkM4PJNXRUcjs.analyzeYamlPipeline.call(void 0, input, given);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
exports.PolytypoError =
|
|
28
|
+
exports.PolytypoError = _chunkVCD45VZHcjs.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-URE2U73R.js";
|
|
5
|
+
import "./chunk-LDXWXCGL.js";
|
|
6
6
|
import {
|
|
7
7
|
assertFixedMode
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-FICUT4OU.js";
|
|
9
9
|
import {
|
|
10
10
|
PolytypoError
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-W77K6K6G.js";
|
|
12
12
|
|
|
13
13
|
// src/index.yaml.ts
|
|
14
14
|
function transform(input, options) {
|
package/package.json
CHANGED
package/dist/chunk-3HRK4WOC.cjs
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
var _chunkP47H3TPNcjs = require('./chunk-P47H3TPN.cjs');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var _chunkGDZCWLM3cjs = require('./chunk-GDZCWLM3.cjs');
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var _chunkGAIX76FTcjs = require('./chunk-GAIX76FT.cjs');
|
|
13
|
-
|
|
14
|
-
// src/engine/html-pipeline.ts
|
|
15
|
-
function runHtmlPipeline(input, options) {
|
|
16
|
-
const narrowTarget = _chunkGAIX76FTcjs.resolveNarrowTarget.call(void 0, options.narrowNbsp);
|
|
17
|
-
const planned = _chunkGAIX76FTcjs.planRules.call(void 0, options.rules);
|
|
18
|
-
const locale = _chunkGAIX76FTcjs.getLocaleData.call(void 0, options.locale);
|
|
19
|
-
const spans = _chunkP47H3TPNcjs.htmlSpans.call(void 0, input);
|
|
20
|
-
return _chunkGDZCWLM3cjs.runOverSpans.call(void 0, input, spans, planned, locale, "html", narrowTarget);
|
|
21
|
-
}
|
|
22
|
-
function analyzeHtmlPipeline(input, options) {
|
|
23
|
-
const narrowTarget = _chunkGAIX76FTcjs.resolveNarrowTarget.call(void 0, options.narrowNbsp);
|
|
24
|
-
const planned = _chunkGAIX76FTcjs.planRules.call(void 0, options.rules);
|
|
25
|
-
const locale = _chunkGAIX76FTcjs.getLocaleData.call(void 0, options.locale);
|
|
26
|
-
return _chunkGDZCWLM3cjs.analyzeOverSpans.call(void 0, input, _chunkP47H3TPNcjs.htmlSpans.call(void 0, input), planned, locale, "html", narrowTarget);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
exports.runHtmlPipeline = runHtmlPipeline; exports.analyzeHtmlPipeline = analyzeHtmlPipeline;
|
|
33
|
-
//# sourceMappingURL=chunk-3HRK4WOC.cjs.map
|
package/dist/chunk-3JF6P2GI.cjs
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var _chunkGAIX76FTcjs = require('./chunk-GAIX76FT.cjs');
|
|
10
|
-
|
|
11
|
-
// src/engine/text-pipeline.ts
|
|
12
|
-
function runTextPipeline(input, options) {
|
|
13
|
-
const narrowTarget = _chunkGAIX76FTcjs.resolveNarrowTarget.call(void 0, options.narrowNbsp);
|
|
14
|
-
const planned = _chunkGAIX76FTcjs.planRules.call(void 0, options.rules);
|
|
15
|
-
const locale = _chunkGAIX76FTcjs.getLocaleData.call(void 0, options.locale);
|
|
16
|
-
return _chunkGAIX76FTcjs.fromCodePoints.call(void 0, _chunkGAIX76FTcjs.runRules.call(void 0, _chunkGAIX76FTcjs.toCodePoints.call(void 0, input), planned, locale, "text", narrowTarget));
|
|
17
|
-
}
|
|
18
|
-
function analyzeTextPipeline(input, options) {
|
|
19
|
-
const narrowTarget = _chunkGAIX76FTcjs.resolveNarrowTarget.call(void 0, options.narrowNbsp);
|
|
20
|
-
const planned = _chunkGAIX76FTcjs.planRules.call(void 0, options.rules);
|
|
21
|
-
const locale = _chunkGAIX76FTcjs.getLocaleData.call(void 0, options.locale);
|
|
22
|
-
const cp = _chunkGAIX76FTcjs.toCodePoints.call(void 0, input);
|
|
23
|
-
const origin = cp.map((_value, index) => index);
|
|
24
|
-
return _chunkGAIX76FTcjs.runRulesRecording.call(void 0, cp, planned, locale, "text", narrowTarget, origin, cp.length);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
exports.runTextPipeline = runTextPipeline; exports.analyzeTextPipeline = analyzeTextPipeline;
|
|
31
|
-
//# sourceMappingURL=chunk-3JF6P2GI.cjs.map
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|