Skip to content

Commit

Permalink
update typeindex dep
Browse files Browse the repository at this point in the history
  • Loading branch information
soltanireza65 committed Dec 13, 2023
1 parent 4ce1572 commit 794f9cb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions bookmarks/vanilla/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bookmarks/vanilla/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@inrupt/solid-client-authn-browser": "^1.17.5",
"@inrupt/vocab-common-rdf": "^1.0.5",
"@rdfjs/data-model": "^1.3.4",
"solid-typeindex-support": "^0.0.1"
"solid-typeindex-support": "^0.1.0"
},
"devDependencies": {
"@types/jest": "^29.5.10",
Expand Down
4 changes: 2 additions & 2 deletions bookmarks/vanilla/src/modules/Bookmark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class Bookmark {
* @return {Promise<string[]>} An array of index URLs.
*/
public static async getIndexUrls(session: Session): Promise<string[]> {
const registeries = await TypeIndexHelper.getFromTypeIndex(session.info.webId!, session.fetch, true)
const registeries = await TypeIndexHelper.getFromTypeIndex(session.info.webId!, BOOKMARK.Bookmark, session.fetch, true)

if (!!registeries?.length) {
return registeries
Expand All @@ -78,7 +78,7 @@ export class Bookmark {
await saveSolidDatasetAt(defaultIndexUrl, createSolidDataset(), { fetch: session.fetch });
}

await TypeIndexHelper.registerInTypeIndex(session.info.webId!, session.fetch, defaultIndexUrl, true)
await TypeIndexHelper.registerInTypeIndex(session.info.webId!, "bookmarks_registery", BOOKMARK.Bookmark, session.fetch, defaultIndexUrl, true)

return [defaultIndexUrl];
}
Expand Down

0 comments on commit 794f9cb

Please sign in to comment.