Skip to content

Commit

Permalink
Merge pull request #17 from TREEcg/feat/fetch
Browse files Browse the repository at this point in the history
add fetch option
  • Loading branch information
pietercolpaert authored Feb 22, 2024
2 parents 1e0a7e5 + ccbc8d5 commit ff08c2d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/CBDShapeExtractor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class DereferenceNeeded {

type CBDShapeExtractorOptions = {
cbdDefaultGraph: boolean;
fetch?: typeof fetch;
};

/**
Expand Down Expand Up @@ -140,7 +141,7 @@ export class CBDShapeExtractor {
dereferenced.push(target);
await this.loadQuadStreamInStore(
store,
(await this.dereferencer.dereference(target)).data,
(await this.dereferencer.dereference(target, {fetch: this.options.fetch})).data,
);

return await tryExtract();
Expand Down

0 comments on commit ff08c2d

Please sign in to comment.