@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/core/index.cjs
CHANGED
|
@@ -2049,7 +2049,8 @@ function extractBodyLines(lines) {
|
|
|
2049
2049
|
* and {@link locateComment} matches a caller's key against the whole map. A change to the head
|
|
2050
2050
|
* shape or to the member shape reaches every one of them at once.
|
|
2051
2051
|
*
|
|
2052
|
-
* An owner opens at a column-zero `export class` or `export interface`
|
|
2052
|
+
* An owner opens at a column-zero `export class`, `export abstract class`, or `export interface`
|
|
2053
|
+
* head and closes at the
|
|
2053
2054
|
* 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,
|
|
2054
2055
|
* because a member belongs to the head enclosing it. Reading runs over {@link extractSourceLines}'s
|
|
2055
2056
|
* projection, so a head or
|
|
@@ -2068,7 +2069,7 @@ function collectKeys(lines) {
|
|
|
2068
2069
|
const keys = /* @__PURE__ */ new Map();
|
|
2069
2070
|
let owner;
|
|
2070
2071
|
for (const line of lines) {
|
|
2071
|
-
const head = /^export (?:async )?(function\*?|class|const|interface|type) (\w+)/.exec(line.code);
|
|
2072
|
+
const head = /^export (?:async )?(?:abstract )?(function\*?|class|const|interface|type) (\w+)/.exec(line.code);
|
|
2072
2073
|
const keyword = head?.[1]?.replace(/\*$/, "");
|
|
2073
2074
|
const name = head?.[2];
|
|
2074
2075
|
if ((0, _orkestrel_contract.isNonEmptyString)(keyword) && (0, _orkestrel_contract.isNonEmptyString)(name) && isExportKeyword(keyword)) {
|