Skip to content

Commit 43b1c88

Browse files
author
Tim Berners-Lee
committed
runs tests. Includes fresh package-lock.json
2 parents 2b94efa + b8027e2 commit 43b1c88

19 files changed

Lines changed: 477 additions & 273 deletions

package-lock.json

Lines changed: 283 additions & 76 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@
5858
"jss-preset-default": "^10.0.3",
5959
"mime-types": "^2.1.24",
6060
"node-uuid": "^1.4.7",
61-
"pane-registry": "^2.0.0",
62-
"rdflib": "^1.0.6",
61+
"pane-registry": "^2.0.1",
62+
"rdflib": "^1.2.1",
6363
"solid-auth-client": "^2.3.1",
6464
"solid-auth-tls": "^0.1.2",
6565
"solid-namespace": "^0.3.0",

src/acl/access-groups.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@
44
* @packageDocumentation
55
*/
66

7-
import { IndexedFormula, NamedNode, sym } from 'rdflib'
7+
import { fetcher, IndexedFormula, NamedNode, sym, UpdateManager } from 'rdflib'
88
import { ACLbyCombination, readACL } from './acl'
99
import widgets from '../widgets'
1010
import ns from '../ns'
1111
import { AccessController } from './access-controller'
1212
import { AgentMapMap, ComboList, PartialAgentTriple } from './types'
1313
import { AddAgentButtons } from './add-agent-buttons'
1414
import * as debug from '../debug'
15+
import { LiveStore } from 'pane-registry'
1516

1617
const ACL = ns.acl
1718

@@ -58,7 +59,7 @@ export class AccessGroups {
5859
public aclMap: AgentMapMap
5960
private readonly addAgentButton: AddAgentButtons
6061
private readonly rootElement: HTMLElement
61-
private _store: IndexedFormula
62+
private _store: LiveStore
6263

6364
constructor (
6465
private doc: NamedNode,
@@ -68,7 +69,9 @@ export class AccessGroups {
6869
private options: AccessGroupsOptions = {}
6970
) {
7071
this.defaults = options.defaults || false
71-
this._store = store
72+
fetcher(store, {})
73+
store.updater = new UpdateManager(store)
74+
this._store = store as LiveStore // TODO hacky, find a better solution
7275
this.aclMap = readACL(doc, aclDoc, store, this.defaults)
7376
this.byCombo = ACLbyCombination(this.aclMap)
7477
this.addAgentButton = new AddAgentButtons(this)
@@ -178,7 +181,7 @@ export class AccessGroups {
178181
if (!agent && !secondAttempt) {
179182
debug.log(` Not obvious: looking up dropped thing ${thing}`)
180183
try {
181-
await (this.store as any).fetcher.load(thing.doc())
184+
await this._store.fetcher.load(thing.doc())
182185
} catch (error) {
183186
const message = `Ignore error looking up dropped thing: ${error}`
184187
debug.error(message)

0 commit comments

Comments
 (0)