Skip to content

Commit

Permalink
fix: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
BelfordZ committed Jul 3, 2020
1 parent f38a026 commit aef5e13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ features:
- minimal dependencies
- simple & fast
- cycle detection/handling
- switchable recusive dereferencing
- handles:
- relative pointer refs
- http/https uris
Expand Down
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@ export class Dereferencer {
const fetched = await this.fetchRef(ref);

if (this.options.recursive === true && ref[0] !== "#") {
const subDereffer = new Dereferencer(fetched, this.options); // might want to reconsider the class interface... lol
// might want to reconsider the class interface... lol
const subDereffer = new Dereferencer(fetched, this.options);
const subFetched = await subDereffer.resolve();
refMap[ref] = subFetched;
} else {
Expand Down

0 comments on commit aef5e13

Please sign in to comment.