contacts-pane 2.6.4-4bae80de → 2.6.4-d64d8410

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,9 +15,9 @@ export async function renderGroupMemberships (person, context) {
15
15
  async function removeFromGroup (thing, group) {
16
16
  const pname = kb.any(thing, ns.vcard('fn'))
17
17
  const gname = kb.any(group, ns.vcard('fn'))
18
- // find all webids of thing
18
+ // find all WebIDs of thing
19
19
  const thingwebids = kb.each(null, ns.owl('sameAs'), thing, group.doc())
20
- // webid can be deleted only if not used in a other thing
20
+ // WebID can be deleted only if not used in another thing
21
21
  let webids = []
22
22
  thingwebids.map(webid => {
23
23
  if (kb.any(webid, ns.owl('sameAs'), thing, group.doc()).length = 1 ) webids = webids.concat(webid)
@@ -66,7 +66,7 @@ export async function renderGroupMemberships (person, context) {
66
66
 
67
67
  // find all documents where person ns.vcard('fn')
68
68
  function syncGroupList () {
69
- // to be changed person and or webids
69
+ // person and/or WebIDs to be changed
70
70
  // const groups = kb.each(null, ns.vcard('hasMember'), person)
71
71
  const groups = kb.each(person, ns.vcard('fn'), undefined) // non il faut acceder a la liste des group.doc()
72
72
  utils.syncTableToArray(groupList, groups, newRowForGroup)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contacts-pane",
3
- "version": "2.6.4-4bae80de",
3
+ "version": "2.6.4-d64d8410",
4
4
  "description": "Contacts Pane: Contacts manager for Address Book, Groups, and Individuals.",
5
5
  "main": "./contactsPane.js",
6
6
  "scripts": {
package/webidControl.js CHANGED
@@ -51,14 +51,14 @@ export async function addWebIDToContacts (person, webid, urlType, kb) {
51
51
  $rdf.st(vcardURLThing, ns.rdf('type'), urlType, person.doc()),
52
52
  $rdf.st(vcardURLThing, ns.vcard('value'), webid, person.doc())
53
53
  ]
54
- // insert webID in groups
55
- // replace person with webId in vcard:hasMember (webId may already exist)
54
+ // insert WebID in groups
55
+ // replace person with WebID in vcard:hasMember (WebID may already exist)
56
56
  // insert owl:sameAs
57
57
  const groups = kb.each(null, ns.vcard('hasMember'), person)
58
58
  const deletables = []
59
59
  groups.forEach(group => {
60
60
  deletables.push($rdf.st(group, ns.vcard('hasMember'), person, group.doc()))
61
- insertables.push($rdf.st(group, ns.vcard('hasMember'), kb.sym(webid), group.doc())) // may exist do we need to check ?
61
+ insertables.push($rdf.st(group, ns.vcard('hasMember'), kb.sym(webid), group.doc())) // May exist; do we need to check?
62
62
  insertables.push($rdf.st(person, ns.owl('sameAs'), kb.sym(webid), group.doc()))
63
63
  })
64
64
  try {