Skip to content

Commit

Permalink
Fix broken property links
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlia committed Apr 4, 2024
1 parent a441986 commit e4264c1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/__snapshots__/jsr.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2848,19 +2848,19 @@ snapshot[`fetchIndex() 2`] = `
kind: "property",
label: "Range.start",
name: "start",
url: "https://jsr.io/@hongminhee/aitertools@0.6.0/doc/~/Range.prototype.start",
url: "https://jsr.io/@hongminhee/aitertools@0.6.0/doc/~/Range.start",
},
"Range.step": {
kind: "property",
label: "Range.step",
name: "step",
url: "https://jsr.io/@hongminhee/aitertools@0.6.0/doc/~/Range.prototype.step",
url: "https://jsr.io/@hongminhee/aitertools@0.6.0/doc/~/Range.step",
},
"Range.stop": {
kind: "property",
label: "Range.stop",
name: "stop",
url: "https://jsr.io/@hongminhee/aitertools@0.6.0/doc/~/Range.prototype.stop",
url: "https://jsr.io/@hongminhee/aitertools@0.6.0/doc/~/Range.stop",
},
"Range.toString()": {
index: 0,
Expand Down Expand Up @@ -3324,19 +3324,19 @@ snapshot[`fetchIndex() 2`] = `
kind: "property",
label: "start",
name: "start",
url: "https://jsr.io/@hongminhee/aitertools@0.6.0/doc/~/Range.prototype.start",
url: "https://jsr.io/@hongminhee/aitertools@0.6.0/doc/~/Range.start",
},
"~Range.step": {
kind: "property",
label: "step",
name: "step",
url: "https://jsr.io/@hongminhee/aitertools@0.6.0/doc/~/Range.prototype.step",
url: "https://jsr.io/@hongminhee/aitertools@0.6.0/doc/~/Range.step",
},
"~Range.stop": {
kind: "property",
label: "stop",
name: "stop",
url: "https://jsr.io/@hongminhee/aitertools@0.6.0/doc/~/Range.prototype.stop",
url: "https://jsr.io/@hongminhee/aitertools@0.6.0/doc/~/Range.stop",
},
"~Range.toString()": {
index: 0,
Expand Down
2 changes: 1 addition & 1 deletion src/jsr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ export async function fetchIndex(
const memberUrl = member.kind === "constructor"
? `${url}#constructor_${member.index}`
: member.kind === "method" && member.static ||
member.kind === "call_signature"
member.kind === "call_signature" || member.kind === "property"
? `${url}.${member.name}`
: `${url}.prototype.${member.name}`;
index[label] = { ...member, label, url: memberUrl };
Expand Down

0 comments on commit e4264c1

Please sign in to comment.