@sushichan044/kg-core 0.10.1 → 0.11.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/README.md +58 -4
- package/dist/describe-cause-SABI_1ex.mjs +9 -0
- package/dist/index.d.mts +89 -60
- package/dist/index.mjs +4 -4
- package/dist/lint.mjs +2 -2
- package/dist/{novel-composer-D_orH6ET.mjs → novel-composer-z0cv8OHb.mjs} +218 -164
- package/dist/plugin.d.mts +1 -1
- package/dist/plugin.mjs +3 -3
- package/dist/{presentation-kind-BwIZFSZS.d.mts → presentation-kind-BCQndPoK.d.mts} +378 -62
- package/dist/{question-or-exclamation-spacing-Cp3eOGlA.mjs → question-or-exclamation-spacing-C5cFLeKr.mjs} +10 -1
- package/package.json +1 -1
- package/dist/describe-cause-BV8mZ3Um.mjs +0 -18
|
@@ -171,6 +171,15 @@ const ValidationIssue = {
|
|
|
171
171
|
*/
|
|
172
172
|
const graphemeSegmenter = new Intl.Segmenter("ja", { granularity: "grapheme" });
|
|
173
173
|
//#endregion
|
|
174
|
+
//#region src/internal/assert-never.ts
|
|
175
|
+
/**
|
|
176
|
+
* Marks a branch the compiler proved unreachable. Reaching it at runtime means a variant was added
|
|
177
|
+
* to a union without updating the switch that produced this call.
|
|
178
|
+
*/
|
|
179
|
+
function assertNever(value) {
|
|
180
|
+
throw new TypeError(`unhandled variant: ${JSON.stringify(value)}`);
|
|
181
|
+
}
|
|
182
|
+
//#endregion
|
|
174
183
|
//#region src/internal/japanese-brackets.ts
|
|
175
184
|
/**
|
|
176
185
|
* Brackets and quotes a Japanese paragraph may open with. Halfwidth forms are included because a
|
|
@@ -259,4 +268,4 @@ function questionOrExclamationSpacings(line) {
|
|
|
259
268
|
return [...line.matchAll(MARKS)].map((marks) => analyzeMatch(line, marks)).filter((spacing) => spacing !== void 0);
|
|
260
269
|
}
|
|
261
270
|
//#endregion
|
|
262
|
-
export {
|
|
271
|
+
export { nonNegativeInteger as _, CLOSING_BRACKETS as a, assertNever as c, ManuscriptResult as d, ManuscriptDiagnostic as f, TextRange as g, ManuscriptRange as h, TATE_CHU_YOKO_MARKS as i, graphemeSegmenter as l, NamespacedId as m, leadingSpaces as n, OPENING_BRACKETS as o, DiagnosticSeverity as p, DIVIDING_PUNCTUATION as r, characterClass as s, questionOrExclamationSpacings as t, ValidationIssue as u, readonlyArray as v, readonlyObject as y };
|
package/package.json
CHANGED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
//#region src/internal/assert-never.ts
|
|
2
|
-
/**
|
|
3
|
-
* Marks a branch the compiler proved unreachable. Reaching it at runtime means a variant was added
|
|
4
|
-
* to a union without updating the switch that produced this call.
|
|
5
|
-
*/
|
|
6
|
-
function assertNever(value) {
|
|
7
|
-
throw new TypeError(`unhandled variant: ${JSON.stringify(value)}`);
|
|
8
|
-
}
|
|
9
|
-
//#endregion
|
|
10
|
-
//#region src/internal/describe-cause.ts
|
|
11
|
-
/**
|
|
12
|
-
* Renders an unknown throwable for display, without assuming it is an Error.
|
|
13
|
-
*/
|
|
14
|
-
function describeCause(cause) {
|
|
15
|
-
return cause instanceof Error ? cause.message : String(cause);
|
|
16
|
-
}
|
|
17
|
-
//#endregion
|
|
18
|
-
export { assertNever as n, describeCause as t };
|