@orkestrel/guide 0.0.18 → 0.0.20

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.
@@ -731,7 +731,7 @@ function hasCanonicalSegments(key) {
731
731
  function normalizeDirectories(module) {
732
732
  const directories = [];
733
733
  const seen = /* @__PURE__ */ new Set();
734
- for (const value of typeof module === "string" ? [module] : module) {
734
+ for (const value of (0, _orkestrel_contract.isString)(module) ? [module] : module) {
735
735
  const directory = resolvePath(".", value);
736
736
  if (seen.has(directory)) continue;
737
737
  seen.add(directory);
@@ -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` head and closes at the
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)) {