solid-logic 1.3.14-f606b313 → 1.3.15-41ec298b

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.
Files changed (44) hide show
  1. package/.github/workflows/ci.yml +0 -1
  2. package/.nvmrc +1 -0
  3. package/lib/acl/aclLogic.js +5 -1
  4. package/lib/acl/aclLogic.js.map +1 -1
  5. package/lib/authn/SolidAuthnLogic.js +5 -1
  6. package/lib/authn/SolidAuthnLogic.js.map +1 -1
  7. package/lib/authn/authUtil.js +5 -1
  8. package/lib/authn/authUtil.js.map +1 -1
  9. package/lib/discovery/discoveryLogic.d.ts +13 -0
  10. package/lib/discovery/discoveryLogic.d.ts.map +1 -0
  11. package/lib/discovery/discoveryLogic.js +203 -0
  12. package/lib/discovery/discoveryLogic.js.map +1 -0
  13. package/lib/inbox/InboxLogic.js +2 -2
  14. package/lib/inbox/InboxLogic.js.map +1 -1
  15. package/lib/index.d.ts +1 -0
  16. package/lib/index.d.ts.map +1 -1
  17. package/lib/index.js +7 -1
  18. package/lib/index.js.map +1 -1
  19. package/lib/logic/SolidLogic.d.ts +2 -3
  20. package/lib/logic/SolidLogic.d.ts.map +1 -1
  21. package/lib/logic/SolidLogic.js +45 -41
  22. package/lib/logic/SolidLogic.js.map +1 -1
  23. package/lib/logic/solidLogicSingleton.d.ts.map +1 -1
  24. package/lib/logic/solidLogicSingleton.js +9 -2
  25. package/lib/logic/solidLogicSingleton.js.map +1 -1
  26. package/lib/typeIndex/typeIndexLogic.d.ts +4 -4
  27. package/lib/typeIndex/typeIndexLogic.d.ts.map +1 -1
  28. package/lib/typeIndex/typeIndexLogic.js +98 -32
  29. package/lib/typeIndex/typeIndexLogic.js.map +1 -1
  30. package/lib/util/UtilityLogic.d.ts +2 -2
  31. package/lib/util/UtilityLogic.d.ts.map +1 -1
  32. package/lib/util/UtilityLogic.js +6 -6
  33. package/lib/util/UtilityLogic.js.map +1 -1
  34. package/package.json +15 -18
  35. package/src/discovery/discoveryLogic.ts +90 -0
  36. package/src/inbox/InboxLogic.ts +2 -2
  37. package/src/index.ts +10 -0
  38. package/src/logic/SolidLogic.ts +29 -32
  39. package/src/logic/solidLogicSingleton.ts +3 -1
  40. package/src/typeIndex/typeIndexLogic.ts +92 -61
  41. package/src/util/UtilityLogic.ts +8 -8
  42. package/test/chatLogic.test.ts +1 -1
  43. package/test/typeIndexLogic.test.ts +18 -3
  44. package/renovate.json +0 -5
@@ -2,6 +2,20 @@ import { sym } from 'rdflib'
2
2
  import { AuthenticationContext } from '../src/types'
3
3
  import * as typeIndexLogic from '../src/typeIndex/typeIndexLogic'
4
4
 
5
+ it('loadIndex', async () => {
6
+ const context = {
7
+ index: {}
8
+ }
9
+
10
+ const result = await typeIndexLogic.loadIndex(context, true)
11
+ expect(result).toEqual({
12
+ index: {
13
+ private: [],
14
+ public: []
15
+ },
16
+ })
17
+ })
18
+
5
19
  describe('loadTypeIndexes', () => {
6
20
  it('exists', () => {
7
21
  expect(typeIndexLogic.loadTypeIndexes).toBeInstanceOf(Function)
@@ -15,12 +29,13 @@ describe('registerInTypeIndex', () => {
15
29
  it('exists', () => {
16
30
  expect(typeIndexLogic.registerInTypeIndex).toBeInstanceOf(Function)
17
31
  })
18
- it.skip('runs', async () => {
19
- expect(await typeIndexLogic.registerInTypeIndex(
32
+ it('throws error', async () => {
33
+ expect(typeIndexLogic.registerInTypeIndex(
20
34
  {} as AuthenticationContext,
21
35
  sym('https://test.test#'),
22
36
  sym('https://test.test#'),
23
37
  false
24
- )).toEqual(undefined)
38
+ )).rejects
39
+ .toThrow('@@ ensureLoadedPreferences: no user specified')
25
40
  })
26
41
  })
package/renovate.json DELETED
@@ -1,5 +0,0 @@
1
- {
2
- "extends": [
3
- "config:base"
4
- ]
5
- }