@orkestrel/guide 0.0.18 → 0.0.19
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/src/core/index.cjs +3 -2
- package/dist/src/core/index.cjs.map +1 -1
- package/dist/src/core/index.d.cts +2 -1
- package/dist/src/core/index.d.ts +2 -1
- package/dist/src/core/index.js +3 -2
- package/dist/src/core/index.js.map +1 -1
- package/dist/src/server/index.cjs +3 -2
- package/dist/src/server/index.cjs.map +1 -1
- package/dist/src/server/index.js +3 -2
- package/dist/src/server/index.js.map +1 -1
- package/package.json +5 -5
package/dist/src/server/index.js
CHANGED
|
@@ -2044,7 +2044,8 @@ function extractBodyLines(lines) {
|
|
|
2044
2044
|
* and {@link locateComment} matches a caller's key against the whole map. A change to the head
|
|
2045
2045
|
* shape or to the member shape reaches every one of them at once.
|
|
2046
2046
|
*
|
|
2047
|
-
* An owner opens at a column-zero `export class` or `export interface`
|
|
2047
|
+
* An owner opens at a column-zero `export class`, `export abstract class`, or `export interface`
|
|
2048
|
+
* head and closes at the
|
|
2048
2049
|
* first column-zero `}`, so a member declared past that brace keys nothing. A column-zero `export` declaration carrying any other keyword closes the owner it follows,
|
|
2049
2050
|
* because a member belongs to the head enclosing it. Reading runs over {@link extractSourceLines}'s
|
|
2050
2051
|
* projection, so a head or
|
|
@@ -2063,7 +2064,7 @@ function collectKeys(lines) {
|
|
|
2063
2064
|
const keys = /* @__PURE__ */ new Map();
|
|
2064
2065
|
let owner;
|
|
2065
2066
|
for (const line of lines) {
|
|
2066
|
-
const head = /^export (?:async )?(function\*?|class|const|interface|type) (\w+)/.exec(line.code);
|
|
2067
|
+
const head = /^export (?:async )?(?:abstract )?(function\*?|class|const|interface|type) (\w+)/.exec(line.code);
|
|
2067
2068
|
const keyword = head?.[1]?.replace(/\*$/, "");
|
|
2068
2069
|
const name = head?.[2];
|
|
2069
2070
|
if (isNonEmptyString(keyword) && isNonEmptyString(name) && isExportKeyword(keyword)) {
|