@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.
@@ -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 { readonlyArray as _, CLOSING_BRACKETS as a, graphemeSegmenter as c, ManuscriptDiagnostic as d, DiagnosticSeverity as f, nonNegativeInteger as g, TextRange as h, TATE_CHU_YOKO_MARKS as i, ValidationIssue as l, ManuscriptRange as m, leadingSpaces as n, OPENING_BRACKETS as o, NamespacedId as p, DIVIDING_PUNCTUATION as r, characterClass as s, questionOrExclamationSpacings as t, ManuscriptResult as u, readonlyObject as v };
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@sushichan044/kg-core",
3
- "version": "0.10.1",
3
+ "version": "0.11.0",
4
4
  "description": "Framework-independent parsing, composition, and proofreading for Japanese manuscripts",
5
5
  "keywords": [
6
6
  "japanese",
@@ -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 };