polytypo 1.3.0 → 1.3.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-B3I7VL5E.js → chunk-4GYU4TXA.js} +2 -2
- package/dist/{chunk-PNX4XW5I.js → chunk-5NCJ3Y65.js} +4 -4
- package/dist/{chunk-PLWW5KPC.js → chunk-5U3DRTV7.js} +2 -2
- package/dist/{chunk-A3VCFDVL.cjs → chunk-5VNPHCL2.cjs} +13 -13
- package/dist/{chunk-A3VCFDVL.cjs.map → chunk-5VNPHCL2.cjs.map} +1 -1
- package/dist/{chunk-KRY73ZPE.cjs → chunk-AR6FDQAX.cjs} +17 -17
- package/dist/{chunk-KRY73ZPE.cjs.map → chunk-AR6FDQAX.cjs.map} +1 -1
- package/dist/{chunk-W3XMTX7Q.js → chunk-B7WXSXRG.js} +2 -2
- package/dist/{chunk-NT2RADO3.js → chunk-DXWMSR26.js} +2 -2
- package/dist/{chunk-7S5PZ7T5.cjs → chunk-ECYUONLP.cjs} +16 -16
- package/dist/{chunk-7S5PZ7T5.cjs.map → chunk-ECYUONLP.cjs.map} +1 -1
- package/dist/chunk-FK3F3YZT.cjs +33 -0
- package/dist/{chunk-QLV5EWGF.cjs.map → chunk-FK3F3YZT.cjs.map} +1 -1
- package/dist/chunk-QNSBCZU5.cjs +31 -0
- package/dist/{chunk-442V6TKI.cjs.map → chunk-QNSBCZU5.cjs.map} +1 -1
- package/dist/{chunk-72GQS2N7.cjs → chunk-THTCAO3O.cjs} +4 -4
- package/dist/{chunk-72GQS2N7.cjs.map → chunk-THTCAO3O.cjs.map} +1 -1
- package/dist/{chunk-7ZJ7YYTQ.js → chunk-UBEV2AC3.js} +3 -3
- package/dist/{chunk-YX6QTWOV.cjs → chunk-V4EOJ44S.cjs} +1 -1
- package/dist/{chunk-YX6QTWOV.cjs.map → chunk-V4EOJ44S.cjs.map} +1 -1
- package/dist/{chunk-DAUTLRFG.js → chunk-VC5XLP6O.js} +4 -4
- package/dist/{chunk-GLQQOA6T.js → chunk-VKJVMMCI.js} +1 -1
- package/dist/{chunk-GLQQOA6T.js.map → chunk-VKJVMMCI.js.map} +1 -1
- package/dist/{chunk-M7YWQ47K.cjs → chunk-W2T7B2SH.cjs} +3 -3
- package/dist/{chunk-M7YWQ47K.cjs.map → chunk-W2T7B2SH.cjs.map} +1 -1
- 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-442V6TKI.cjs +0 -31
- package/dist/chunk-QLV5EWGF.cjs +0 -33
- /package/dist/{chunk-B3I7VL5E.js.map → chunk-4GYU4TXA.js.map} +0 -0
- /package/dist/{chunk-PNX4XW5I.js.map → chunk-5NCJ3Y65.js.map} +0 -0
- /package/dist/{chunk-PLWW5KPC.js.map → chunk-5U3DRTV7.js.map} +0 -0
- /package/dist/{chunk-W3XMTX7Q.js.map → chunk-B7WXSXRG.js.map} +0 -0
- /package/dist/{chunk-NT2RADO3.js.map → chunk-DXWMSR26.js.map} +0 -0
- /package/dist/{chunk-7ZJ7YYTQ.js.map → chunk-UBEV2AC3.js.map} +0 -0
- /package/dist/{chunk-DAUTLRFG.js.map → chunk-VC5XLP6O.js.map} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkV4EOJ44Scjs = require('./chunk-V4EOJ44S.cjs');
|
|
4
4
|
|
|
5
5
|
// src/engine/assert-fixed-mode.ts
|
|
6
6
|
function assertFixedMode(mode, fixed, entryPoint) {
|
|
7
7
|
if (mode === void 0 || mode === fixed) return;
|
|
8
|
-
throw new (0,
|
|
8
|
+
throw new (0, _chunkV4EOJ44Scjs.PolytypoError)(
|
|
9
9
|
"POLYTYPO_INVALID_MODE",
|
|
10
10
|
`"${entryPoint}" only supports mode "${fixed}". Received "${String(mode)}" \u2014 import from "polytypo" for the other modes, or omit \`mode\` here.`
|
|
11
11
|
);
|
|
@@ -14,4 +14,4 @@ function assertFixedMode(mode, fixed, entryPoint) {
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
exports.assertFixedMode = assertFixedMode;
|
|
17
|
-
//# sourceMappingURL=chunk-
|
|
17
|
+
//# sourceMappingURL=chunk-W2T7B2SH.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/polytypo-js/polytypo-js/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/polytypo-js/polytypo-js/dist/chunk-W2T7B2SH.cjs","../src/engine/assert-fixed-mode.ts"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACA;ACMO,SAAS,eAAA,CAAgB,IAAA,EAAe,KAAA,EAAa,UAAA,EAA0B;AACpF,EAAA,GAAA,CAAI,KAAA,IAAS,KAAA,EAAA,GAAa,KAAA,IAAS,KAAA,EAAO,MAAA;AAC1C,EAAA,MAAM,IAAI,oCAAA;AAAA,IACR,uBAAA;AAAA,IACA,CAAA,CAAA,EAAI,UAAU,CAAA,sBAAA,EAAyB,KAAK,CAAA,aAAA,EAAgB,MAAA,CAAO,IAAI,CAAC,CAAA,2EAAA;AAAA,EAE1E,CAAA;AACF;ADLA;AACA;AACE;AACF,0CAAC","file":"/home/runner/work/polytypo-js/polytypo-js/dist/chunk-W2T7B2SH.cjs","sourcesContent":[null,"import { PolytypoError } from \"../errors.js\";\nimport type { Mode } from \"../types.js\";\n\n/**\n * `polytypo/text`, `polytypo/html` and `polytypo/markdown` each fix `mode` at the type level by\n * omitting it from their Options type (AUDIT_REMEDIATION_AND_RELEASE_PLAN.md 5.1, criterion 6).\n * A plain-JS caller — or a TypeScript caller passing a wider-typed variable, which excess-property\n * checking does not catch — can still supply a conflicting `mode` at runtime. That is rejected\n * explicitly here, never silently ignored or overridden.\n */\nexport function assertFixedMode(mode: unknown, fixed: Mode, entryPoint: string): void {\n if (mode === undefined || mode === fixed) return;\n throw new PolytypoError(\n \"POLYTYPO_INVALID_MODE\",\n `\"${entryPoint}\" only supports mode \"${fixed}\". Received \"${String(mode)}\" — ` +\n `import from \"polytypo\" for the other modes, or omit \\`mode\\` here.`,\n );\n}\n"]}
|
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 _chunkFK3F3YZTcjs = require('./chunk-FK3F3YZT.cjs');
|
|
5
|
+
require('./chunk-THTCAO3O.cjs');
|
|
6
|
+
require('./chunk-ECYUONLP.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkW2T7B2SHcjs = require('./chunk-W2T7B2SH.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkV4EOJ44Scjs = require('./chunk-V4EOJ44S.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
|
+
_chunkW2T7B2SHcjs.assertFixedMode.call(void 0, given.mode, "html", "polytypo/html");
|
|
18
|
+
return _chunkFK3F3YZTcjs.runHtmlPipeline.call(void 0, input, given);
|
|
19
19
|
}
|
|
20
20
|
function analyze(input, options) {
|
|
21
21
|
const given = _nullishCoalesce(options, () => ( {}));
|
|
22
|
-
|
|
23
|
-
return
|
|
22
|
+
_chunkW2T7B2SHcjs.assertFixedMode.call(void 0, given.mode, "html", "polytypo/html");
|
|
23
|
+
return _chunkFK3F3YZTcjs.analyzeHtmlPipeline.call(void 0, input, given);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
exports.PolytypoError =
|
|
29
|
+
exports.PolytypoError = _chunkV4EOJ44Scjs.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-VC5XLP6O.js";
|
|
5
|
+
import "./chunk-DXWMSR26.js";
|
|
6
|
+
import "./chunk-5U3DRTV7.js";
|
|
7
7
|
import {
|
|
8
8
|
assertFixedMode
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4GYU4TXA.js";
|
|
10
10
|
import {
|
|
11
11
|
PolytypoError
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-VKJVMMCI.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 _chunkQNSBCZU5cjs = require('./chunk-QNSBCZU5.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkFK3F3YZTcjs = require('./chunk-FK3F3YZT.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
13
|
-
require('./chunk-
|
|
12
|
+
var _chunkAR6FDQAXcjs = require('./chunk-AR6FDQAX.cjs');
|
|
13
|
+
require('./chunk-THTCAO3O.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
18
|
-
require('./chunk-
|
|
17
|
+
var _chunk5VNPHCL2cjs = require('./chunk-5VNPHCL2.cjs');
|
|
18
|
+
require('./chunk-ECYUONLP.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkV4EOJ44Scjs = require('./chunk-V4EOJ44S.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, _chunkV4EOJ44Scjs.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 _chunkQNSBCZU5cjs.runTextPipeline.call(void 0, input, given);
|
|
36
|
+
if (mode === "html") return _chunkFK3F3YZTcjs.runHtmlPipeline.call(void 0, input, given);
|
|
37
|
+
if (mode === "yaml") return _chunk5VNPHCL2cjs.runYamlPipeline.call(void 0, input, given);
|
|
38
|
+
return _chunkAR6FDQAXcjs.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 _chunkQNSBCZU5cjs.analyzeTextPipeline.call(void 0, input, given);
|
|
44
|
+
if (mode === "html") return _chunkFK3F3YZTcjs.analyzeHtmlPipeline.call(void 0, input, given);
|
|
45
|
+
if (mode === "yaml") return _chunk5VNPHCL2cjs.analyzeYamlPipeline.call(void 0, input, given);
|
|
46
|
+
return _chunkAR6FDQAXcjs.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 = _chunkV4EOJ44Scjs.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-B7WXSXRG.js";
|
|
5
5
|
import {
|
|
6
6
|
analyzeHtmlPipeline,
|
|
7
7
|
runHtmlPipeline
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-VC5XLP6O.js";
|
|
9
9
|
import {
|
|
10
10
|
analyzeMarkdownPipeline,
|
|
11
11
|
runMarkdownPipeline
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-5NCJ3Y65.js";
|
|
13
|
+
import "./chunk-DXWMSR26.js";
|
|
14
14
|
import {
|
|
15
15
|
analyzeYamlPipeline,
|
|
16
16
|
runYamlPipeline
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-UBEV2AC3.js";
|
|
18
|
+
import "./chunk-5U3DRTV7.js";
|
|
19
19
|
import {
|
|
20
20
|
PolytypoError
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-VKJVMMCI.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 _chunkAR6FDQAXcjs = require('./chunk-AR6FDQAX.cjs');
|
|
5
|
+
require('./chunk-THTCAO3O.cjs');
|
|
6
|
+
require('./chunk-ECYUONLP.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkW2T7B2SHcjs = require('./chunk-W2T7B2SH.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkV4EOJ44Scjs = require('./chunk-V4EOJ44S.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
|
+
_chunkW2T7B2SHcjs.assertFixedMode.call(void 0, given.mode, "markdown", "polytypo/markdown");
|
|
18
|
+
return _chunkAR6FDQAXcjs.runMarkdownPipeline.call(void 0, input, given);
|
|
19
19
|
}
|
|
20
20
|
function analyze(input, options) {
|
|
21
21
|
const given = _nullishCoalesce(options, () => ( {}));
|
|
22
|
-
|
|
23
|
-
return
|
|
22
|
+
_chunkW2T7B2SHcjs.assertFixedMode.call(void 0, given.mode, "markdown", "polytypo/markdown");
|
|
23
|
+
return _chunkAR6FDQAXcjs.analyzeMarkdownPipeline.call(void 0, input, given);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
exports.PolytypoError =
|
|
29
|
+
exports.PolytypoError = _chunkV4EOJ44Scjs.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-5NCJ3Y65.js";
|
|
5
|
+
import "./chunk-DXWMSR26.js";
|
|
6
|
+
import "./chunk-5U3DRTV7.js";
|
|
7
7
|
import {
|
|
8
8
|
assertFixedMode
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4GYU4TXA.js";
|
|
10
10
|
import {
|
|
11
11
|
PolytypoError
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-VKJVMMCI.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 _chunkQNSBCZU5cjs = require('./chunk-QNSBCZU5.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkW2T7B2SHcjs = require('./chunk-W2T7B2SH.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkV4EOJ44Scjs = require('./chunk-V4EOJ44S.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
|
+
_chunkW2T7B2SHcjs.assertFixedMode.call(void 0, given.mode, "text", "polytypo/text");
|
|
16
|
+
return _chunkQNSBCZU5cjs.runTextPipeline.call(void 0, input, given);
|
|
17
17
|
}
|
|
18
18
|
function analyze(input, options) {
|
|
19
19
|
const given = _nullishCoalesce(options, () => ( {}));
|
|
20
|
-
|
|
21
|
-
return
|
|
20
|
+
_chunkW2T7B2SHcjs.assertFixedMode.call(void 0, given.mode, "text", "polytypo/text");
|
|
21
|
+
return _chunkQNSBCZU5cjs.analyzeTextPipeline.call(void 0, input, given);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
exports.PolytypoError =
|
|
27
|
+
exports.PolytypoError = _chunkV4EOJ44Scjs.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-B7WXSXRG.js";
|
|
5
5
|
import {
|
|
6
6
|
assertFixedMode
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4GYU4TXA.js";
|
|
8
8
|
import {
|
|
9
9
|
PolytypoError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-VKJVMMCI.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 _chunk5VNPHCL2cjs = require('./chunk-5VNPHCL2.cjs');
|
|
5
|
+
require('./chunk-ECYUONLP.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkW2T7B2SHcjs = require('./chunk-W2T7B2SH.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkV4EOJ44Scjs = require('./chunk-V4EOJ44S.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
|
+
_chunkW2T7B2SHcjs.assertFixedMode.call(void 0, given.mode, "yaml", "polytypo/yaml");
|
|
17
|
+
return _chunk5VNPHCL2cjs.runYamlPipeline.call(void 0, input, given);
|
|
18
18
|
}
|
|
19
19
|
function analyze(input, options) {
|
|
20
20
|
const given = _nullishCoalesce(options, () => ( {}));
|
|
21
|
-
|
|
22
|
-
return
|
|
21
|
+
_chunkW2T7B2SHcjs.assertFixedMode.call(void 0, given.mode, "yaml", "polytypo/yaml");
|
|
22
|
+
return _chunk5VNPHCL2cjs.analyzeYamlPipeline.call(void 0, input, given);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
exports.PolytypoError =
|
|
28
|
+
exports.PolytypoError = _chunkV4EOJ44Scjs.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-UBEV2AC3.js";
|
|
5
|
+
import "./chunk-5U3DRTV7.js";
|
|
6
6
|
import {
|
|
7
7
|
assertFixedMode
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4GYU4TXA.js";
|
|
9
9
|
import {
|
|
10
10
|
PolytypoError
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-VKJVMMCI.js";
|
|
12
12
|
|
|
13
13
|
// src/index.yaml.ts
|
|
14
14
|
function transform(input, options) {
|
package/package.json
CHANGED
package/dist/chunk-442V6TKI.cjs
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var _chunkYX6QTWOVcjs = require('./chunk-YX6QTWOV.cjs');
|
|
10
|
-
|
|
11
|
-
// src/engine/text-pipeline.ts
|
|
12
|
-
function runTextPipeline(input, options) {
|
|
13
|
-
const narrowTarget = _chunkYX6QTWOVcjs.resolveNarrowTarget.call(void 0, options.narrowNbsp);
|
|
14
|
-
const planned = _chunkYX6QTWOVcjs.planRules.call(void 0, options.rules);
|
|
15
|
-
const locale = _chunkYX6QTWOVcjs.getLocaleData.call(void 0, options.locale);
|
|
16
|
-
return _chunkYX6QTWOVcjs.fromCodePoints.call(void 0, _chunkYX6QTWOVcjs.runRules.call(void 0, _chunkYX6QTWOVcjs.toCodePoints.call(void 0, input), planned, locale, "text", narrowTarget));
|
|
17
|
-
}
|
|
18
|
-
function analyzeTextPipeline(input, options) {
|
|
19
|
-
const narrowTarget = _chunkYX6QTWOVcjs.resolveNarrowTarget.call(void 0, options.narrowNbsp);
|
|
20
|
-
const planned = _chunkYX6QTWOVcjs.planRules.call(void 0, options.rules);
|
|
21
|
-
const locale = _chunkYX6QTWOVcjs.getLocaleData.call(void 0, options.locale);
|
|
22
|
-
const cp = _chunkYX6QTWOVcjs.toCodePoints.call(void 0, input);
|
|
23
|
-
const origin = cp.map((_value, index) => index);
|
|
24
|
-
return _chunkYX6QTWOVcjs.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-442V6TKI.cjs.map
|
package/dist/chunk-QLV5EWGF.cjs
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
var _chunk72GQS2N7cjs = require('./chunk-72GQS2N7.cjs');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var _chunk7S5PZ7T5cjs = require('./chunk-7S5PZ7T5.cjs');
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var _chunkYX6QTWOVcjs = require('./chunk-YX6QTWOV.cjs');
|
|
13
|
-
|
|
14
|
-
// src/engine/html-pipeline.ts
|
|
15
|
-
function runHtmlPipeline(input, options) {
|
|
16
|
-
const narrowTarget = _chunkYX6QTWOVcjs.resolveNarrowTarget.call(void 0, options.narrowNbsp);
|
|
17
|
-
const planned = _chunkYX6QTWOVcjs.planRules.call(void 0, options.rules);
|
|
18
|
-
const locale = _chunkYX6QTWOVcjs.getLocaleData.call(void 0, options.locale);
|
|
19
|
-
const spans = _chunk72GQS2N7cjs.htmlSpans.call(void 0, input);
|
|
20
|
-
return _chunk7S5PZ7T5cjs.runOverSpans.call(void 0, input, spans, planned, locale, "html", narrowTarget);
|
|
21
|
-
}
|
|
22
|
-
function analyzeHtmlPipeline(input, options) {
|
|
23
|
-
const narrowTarget = _chunkYX6QTWOVcjs.resolveNarrowTarget.call(void 0, options.narrowNbsp);
|
|
24
|
-
const planned = _chunkYX6QTWOVcjs.planRules.call(void 0, options.rules);
|
|
25
|
-
const locale = _chunkYX6QTWOVcjs.getLocaleData.call(void 0, options.locale);
|
|
26
|
-
return _chunk7S5PZ7T5cjs.analyzeOverSpans.call(void 0, input, _chunk72GQS2N7cjs.htmlSpans.call(void 0, input), planned, locale, "html", narrowTarget);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
exports.runHtmlPipeline = runHtmlPipeline; exports.analyzeHtmlPipeline = analyzeHtmlPipeline;
|
|
33
|
-
//# sourceMappingURL=chunk-QLV5EWGF.cjs.map
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|