Skip to content

Commit

Permalink
fix: patch sparql client types
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Dec 31, 2024
1 parent e73ff6a commit 8b08425
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apis/shared-dimensions/lib/store/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default class implements SharedDimensionsStore {

async delete(id: NamedNode): Promise<void> {
const shape = await this.getShape(id)
await (await this.deleteQuery(shape, id)).execute(this.client)
await this.client.query.update(await this.deleteQuery(shape, id))

Check warning on line 63 in apis/shared-dimensions/lib/store/index.ts

View check run for this annotation

Codecov / codecov/patch

apis/shared-dimensions/lib/store/index.ts#L63

Added line #L63 was not covered by tests
}

private async deleteQuery(shape: GraphPointer, focusNode: NamedNode) {
Expand Down
12 changes: 12 additions & 0 deletions patches/@types+sparql-http-client+2.2.8.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/node_modules/@types/sparql-http-client/StreamClient.d.ts b/node_modules/@types/sparql-http-client/StreamClient.d.ts
index e4e1e60..9d9e621 100755
--- a/node_modules/@types/sparql-http-client/StreamClient.d.ts
+++ b/node_modules/@types/sparql-http-client/StreamClient.d.ts
@@ -13,6 +13,7 @@ declare namespace StreamClient {
interface QueryOptions {
headers?: HeadersInit | undefined;
operation?: 'get' | 'postUrlencoded' | 'postDirect' | undefined;
+ defaultGraphUri?: Array<NamedNode> | undefined;
}

interface QueryInit {

0 comments on commit 8b08425

Please sign in to comment.