solid-logic 3.1.1-dbb83f7 → 3.1.1-e3eba68

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 (153) hide show
  1. package/README.md +2 -105
  2. package/eslint.config.js +29 -0
  3. package/jest.config.js +10 -0
  4. package/lib/acl/aclLogic.d.ts +5 -0
  5. package/{dist → lib}/acl/aclLogic.d.ts.map +1 -1
  6. package/lib/acl/aclLogic.js +168 -0
  7. package/lib/acl/aclLogic.js.map +1 -0
  8. package/{dist → lib}/authSession/authSession.js +1 -1
  9. package/{dist → lib}/authSession/authSession.js.map +1 -1
  10. package/{dist → lib}/authn/SolidAuthnLogic.d.ts +3 -3
  11. package/{dist → lib}/authn/SolidAuthnLogic.d.ts.map +1 -1
  12. package/lib/authn/SolidAuthnLogic.js +193 -0
  13. package/lib/authn/SolidAuthnLogic.js.map +1 -0
  14. package/{dist → lib}/authn/authUtil.d.ts +1 -1
  15. package/{dist → lib}/authn/authUtil.js +12 -12
  16. package/lib/authn/authUtil.js.map +1 -0
  17. package/{dist → lib}/chat/chatLogic.d.ts +1 -1
  18. package/lib/chat/chatLogic.js +272 -0
  19. package/lib/chat/chatLogic.js.map +1 -0
  20. package/{dist → lib}/inbox/inboxLogic.d.ts +1 -1
  21. package/{dist → lib}/inbox/inboxLogic.d.ts.map +1 -1
  22. package/lib/inbox/inboxLogic.js +139 -0
  23. package/lib/inbox/inboxLogic.js.map +1 -0
  24. package/{dist → lib}/index.d.ts +1 -1
  25. package/{dist → lib}/index.d.ts.map +1 -1
  26. package/{dist → lib}/index.js +4 -4
  27. package/{dist → lib}/index.js.map +1 -1
  28. package/lib/issuer/issuerLogic.js +52 -0
  29. package/lib/issuer/issuerLogic.js.map +1 -0
  30. package/{dist → lib}/logic/CustomError.d.ts.map +1 -1
  31. package/lib/logic/CustomError.js +89 -0
  32. package/lib/logic/CustomError.js.map +1 -0
  33. package/lib/logic/solidLogic.d.ts +6 -0
  34. package/{dist → lib}/logic/solidLogic.d.ts.map +1 -1
  35. package/{dist → lib}/logic/solidLogic.js +33 -32
  36. package/lib/logic/solidLogic.js.map +1 -0
  37. package/lib/logic/solidLogicSingleton.js +94 -0
  38. package/lib/logic/solidLogicSingleton.js.map +1 -0
  39. package/{dist → lib}/profile/profileLogic.d.ts +1 -1
  40. package/lib/profile/profileLogic.js +259 -0
  41. package/lib/profile/profileLogic.js.map +1 -0
  42. package/lib/typeIndex/typeIndexLogic.js +399 -0
  43. package/lib/typeIndex/typeIndexLogic.js.map +1 -0
  44. package/{dist → lib}/types.d.ts +2 -2
  45. package/{dist → lib}/util/containerLogic.d.ts +1 -1
  46. package/{dist → lib}/util/containerLogic.d.ts.map +1 -1
  47. package/lib/util/containerLogic.js +102 -0
  48. package/lib/util/containerLogic.js.map +1 -0
  49. package/lib/util/debug.d.ts.map +1 -0
  50. package/lib/util/debug.js +40 -0
  51. package/lib/util/debug.js.map +1 -0
  52. package/{dist → lib}/util/ns.js +2 -2
  53. package/{dist → lib}/util/ns.js.map +1 -1
  54. package/{dist → lib}/util/utilityLogic.d.ts +1 -1
  55. package/{dist → lib}/util/utilityLogic.d.ts.map +1 -1
  56. package/lib/util/utilityLogic.js +284 -0
  57. package/lib/util/utilityLogic.js.map +1 -0
  58. package/{dist → lib}/util/utils.d.ts +1 -1
  59. package/{dist → lib}/util/utils.d.ts.map +1 -1
  60. package/lib/util/utils.js +47 -0
  61. package/lib/util/utils.js.map +1 -0
  62. package/package.json +22 -50
  63. package/src/acl/aclLogic.ts +156 -0
  64. package/src/authSession/authSession.ts +7 -0
  65. package/src/authn/SolidAuthnLogic.ts +127 -0
  66. package/src/authn/authUtil.ts +70 -0
  67. package/src/chat/chatLogic.ts +226 -0
  68. package/src/inbox/inboxLogic.ts +59 -0
  69. package/src/index.ts +22 -0
  70. package/src/issuer/issuerLogic.ts +40 -0
  71. package/src/logic/CustomError.ts +29 -0
  72. package/src/logic/solidLogic.ts +76 -0
  73. package/src/logic/solidLogicSingleton.ts +20 -0
  74. package/src/profile/profileLogic.ts +125 -0
  75. package/src/typeIndex/typeIndexLogic.ts +198 -0
  76. package/src/types.ts +122 -0
  77. package/{dist/util/containerLogic.js → src/util/containerLogic.ts} +25 -20
  78. package/src/util/debug.ts +20 -0
  79. package/src/util/ns.ts +5 -0
  80. package/src/util/utilityLogic.ts +156 -0
  81. package/src/util/utils.ts +52 -0
  82. package/test/aclLogic.test.ts +24 -0
  83. package/test/authUtil.test.ts +23 -0
  84. package/test/chatLogic.test.ts +316 -0
  85. package/test/container.test.ts +58 -0
  86. package/test/helpers/dataSetup.ts +134 -0
  87. package/test/helpers/setup.ts +17 -0
  88. package/test/inboxLogic.test.ts +218 -0
  89. package/test/logic.test.ts +29 -0
  90. package/test/profileLogic.test.ts +246 -0
  91. package/test/solidAuthLogic.test.ts +49 -0
  92. package/test/typeIndexLogic.test.ts +255 -0
  93. package/test/utilityLogic.test.ts +179 -0
  94. package/test/utils.test.ts +32 -0
  95. package/tsconfig.json +75 -0
  96. package/dist/acl/aclLogic.d.ts +0 -5
  97. package/dist/acl/aclLogic.js +0 -122
  98. package/dist/acl/aclLogic.js.map +0 -1
  99. package/dist/authn/SolidAuthnLogic.js +0 -147
  100. package/dist/authn/SolidAuthnLogic.js.map +0 -1
  101. package/dist/authn/authUtil.js.map +0 -1
  102. package/dist/chat/chatLogic.js +0 -160
  103. package/dist/chat/chatLogic.js.map +0 -1
  104. package/dist/inbox/inboxLogic.js +0 -55
  105. package/dist/inbox/inboxLogic.js.map +0 -1
  106. package/dist/issuer/issuerLogic.js +0 -40
  107. package/dist/issuer/issuerLogic.js.map +0 -1
  108. package/dist/logic/CustomError.js +0 -38
  109. package/dist/logic/CustomError.js.map +0 -1
  110. package/dist/logic/solidLogic.d.ts +0 -6
  111. package/dist/logic/solidLogic.js.map +0 -1
  112. package/dist/logic/solidLogicSingleton.js +0 -54
  113. package/dist/logic/solidLogicSingleton.js.map +0 -1
  114. package/dist/profile/profileLogic.js +0 -165
  115. package/dist/profile/profileLogic.js.map +0 -1
  116. package/dist/solid-logic.esm.external.js +0 -12725
  117. package/dist/solid-logic.esm.external.js.map +0 -1
  118. package/dist/solid-logic.esm.external.min.js +0 -32
  119. package/dist/solid-logic.esm.external.min.js.map +0 -1
  120. package/dist/solid-logic.js +0 -12802
  121. package/dist/solid-logic.js.map +0 -1
  122. package/dist/solid-logic.min.js +0 -32
  123. package/dist/solid-logic.min.js.map +0 -1
  124. package/dist/typeIndex/typeIndexLogic.js +0 -222
  125. package/dist/typeIndex/typeIndexLogic.js.map +0 -1
  126. package/dist/util/containerLogic.js.map +0 -1
  127. package/dist/util/debug.d.ts.map +0 -1
  128. package/dist/util/debug.js +0 -20
  129. package/dist/util/debug.js.map +0 -1
  130. package/dist/util/utilityLogic.js +0 -180
  131. package/dist/util/utilityLogic.js.map +0 -1
  132. package/dist/util/utils.js +0 -47
  133. package/dist/util/utils.js.map +0 -1
  134. package/dist/versionInfo.js +0 -33
  135. package/dist/versionInfo.js.map +0 -1
  136. /package/{dist → lib}/authSession/authSession.d.ts +0 -0
  137. /package/{dist → lib}/authSession/authSession.d.ts.map +0 -0
  138. /package/{dist → lib}/authn/authUtil.d.ts.map +0 -0
  139. /package/{dist → lib}/chat/chatLogic.d.ts.map +0 -0
  140. /package/{dist → lib}/issuer/issuerLogic.d.ts +0 -0
  141. /package/{dist → lib}/issuer/issuerLogic.d.ts.map +0 -0
  142. /package/{dist → lib}/logic/CustomError.d.ts +0 -0
  143. /package/{dist → lib}/logic/solidLogicSingleton.d.ts +0 -0
  144. /package/{dist → lib}/logic/solidLogicSingleton.d.ts.map +0 -0
  145. /package/{dist → lib}/profile/profileLogic.d.ts.map +0 -0
  146. /package/{dist → lib}/typeIndex/typeIndexLogic.d.ts +0 -0
  147. /package/{dist → lib}/typeIndex/typeIndexLogic.d.ts.map +0 -0
  148. /package/{dist → lib}/types.d.ts.map +0 -0
  149. /package/{dist → lib}/types.js +0 -0
  150. /package/{dist → lib}/types.js.map +0 -0
  151. /package/{dist → lib}/util/debug.d.ts +0 -0
  152. /package/{dist → lib}/util/ns.d.ts +0 -0
  153. /package/{dist → lib}/util/ns.d.ts.map +0 -0
@@ -1,54 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.solidLogicSingleton = void 0;
37
- const debug = __importStar(require("../util/debug"));
38
- const authSession_1 = require("../authSession/authSession");
39
- const solidLogic_1 = require("./solidLogic");
40
- const _fetch = async (url, requestInit) => {
41
- const omitCreds = requestInit && requestInit.credentials && requestInit.credentials == 'omit';
42
- if (authSession_1.authSession.info.webId && !omitCreds) { // see https://github.com/solidos/solidos/issues/114
43
- // In fact fetch should respect credentials omit itself
44
- return authSession_1.authSession.fetch(url, requestInit);
45
- }
46
- else {
47
- return window.fetch(url, requestInit);
48
- }
49
- };
50
- //this const makes solidLogicSingleton global accessible in mashlib
51
- const solidLogicSingleton = (0, solidLogic_1.createSolidLogic)({ fetch: _fetch }, authSession_1.authSession);
52
- exports.solidLogicSingleton = solidLogicSingleton;
53
- debug.log('Unique quadstore initialized.');
54
- //# sourceMappingURL=solidLogicSingleton.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"solidLogicSingleton.js","sourceRoot":"","sources":["../../src/logic/solidLogicSingleton.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qDAAsC;AACtC,4DAAwD;AACxD,6CAA+C;AAE/C,MAAM,MAAM,GAAG,KAAK,EAAE,GAAG,EAAE,WAAW,EAAE,EAAE;IACtC,MAAM,SAAS,GAAG,WAAW,IAAI,WAAW,CAAC,WAAW,IAAI,WAAW,CAAC,WAAW,IAAI,MAAM,CAAA;IAC7F,IAAI,yBAAW,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC,oDAAoD;QAC5F,uDAAuD;QACvD,OAAO,yBAAW,CAAC,KAAK,CAAC,GAAG,EAAE,WAAW,CAAC,CAAA;IAC9C,CAAC;SAAM,CAAC;QACJ,OAAO,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,WAAW,CAAC,CAAA;IACzC,CAAC;AACL,CAAC,CAAA;AAED,mEAAmE;AACnE,MAAM,mBAAmB,GAAG,IAAA,6BAAgB,EAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,yBAAW,CAAC,CAAA;AAInE,kDAAmB;AAF5B,KAAK,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAA"}
@@ -1,165 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.createProfileLogic = createProfileLogic;
37
- const CustomError_1 = require("../logic/CustomError");
38
- const debug = __importStar(require("../util/debug"));
39
- const ns_1 = require("../util/ns");
40
- const utils_1 = require("../util/utils");
41
- function createProfileLogic(store, authn, utilityLogic) {
42
- const ns = ns_1.ns;
43
- /**
44
- * loads the preference without throwing errors - if it can create it it does so.
45
- * remark: it still throws error if it cannot load profile.
46
- * @param user
47
- * @returns undefined if preferenceFile cannot be returned or NamedNode if it can find it or create it
48
- */
49
- async function silencedLoadPreferences(user) {
50
- try {
51
- return await loadPreferences(user);
52
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
53
- }
54
- catch (err) {
55
- return undefined;
56
- }
57
- }
58
- /**
59
- * loads the preference without returning different errors if it cannot create or load it.
60
- * remark: it also throws error if it cannot load profile.
61
- * @param user
62
- * @returns undefined if preferenceFile cannot be an Error or NamedNode if it can find it or create it
63
- */
64
- async function loadPreferences(user) {
65
- await loadProfile(user);
66
- const possiblePreferencesFile = (0, utils_1.suggestPreferencesFile)(user);
67
- let preferencesFile;
68
- try {
69
- preferencesFile = await utilityLogic.followOrCreateLink(user, ns.space('preferencesFile'), possiblePreferencesFile, user.doc());
70
- }
71
- catch (err) {
72
- const message = `User ${user} has no pointer in profile to preferences file.`;
73
- debug.warn(message);
74
- // we are listing the possible errors
75
- if (err instanceof CustomError_1.NotEditableError) {
76
- throw err;
77
- }
78
- if (err instanceof CustomError_1.WebOperationError) {
79
- throw err;
80
- }
81
- if (err instanceof CustomError_1.UnauthorizedError) {
82
- throw err;
83
- }
84
- if (err instanceof CustomError_1.CrossOriginForbiddenError) {
85
- throw err;
86
- }
87
- if (err instanceof CustomError_1.SameOriginForbiddenError) {
88
- throw err;
89
- }
90
- if (err instanceof CustomError_1.FetchError) {
91
- throw err;
92
- }
93
- throw err;
94
- }
95
- try {
96
- await store.fetcher.load(preferencesFile);
97
- }
98
- catch (err) { // Maybe a permission problem or origin problem
99
- const msg = `Unable to load preference of user ${user}: ${err}`;
100
- debug.warn(msg);
101
- if (err.response.status === 401) {
102
- throw new CustomError_1.UnauthorizedError();
103
- }
104
- if (err.response.status === 403) {
105
- if ((0, utils_1.differentOrigin)(preferencesFile)) {
106
- throw new CustomError_1.CrossOriginForbiddenError();
107
- }
108
- throw new CustomError_1.SameOriginForbiddenError();
109
- }
110
- /*if (err.response.status === 404) {
111
- throw new NotFoundError();
112
- }*/
113
- throw new Error(msg);
114
- }
115
- return preferencesFile;
116
- }
117
- async function loadProfile(user) {
118
- if (!user) {
119
- throw new Error('loadProfile: no user given.');
120
- }
121
- try {
122
- await store.fetcher.load(user.doc());
123
- }
124
- catch (err) {
125
- throw new Error(`Unable to load profile of user ${user}: ${err}`);
126
- }
127
- return user.doc();
128
- }
129
- async function loadMe() {
130
- const me = authn.currentUser();
131
- if (me === null) {
132
- throw new Error('Current user not found! Not logged in?');
133
- }
134
- await store.fetcher.load(me.doc());
135
- return me;
136
- }
137
- function getPodRoot(user) {
138
- const podRoot = findStorage(user);
139
- if (!podRoot) {
140
- throw new Error('User pod root not found!');
141
- }
142
- return podRoot;
143
- }
144
- async function getMainInbox(user) {
145
- await store.fetcher.load(user);
146
- const mainInbox = store.any(user, ns.ldp('inbox'), undefined, user.doc());
147
- if (!mainInbox) {
148
- throw new Error('User main inbox not found!');
149
- }
150
- return mainInbox;
151
- }
152
- function findStorage(me) {
153
- return store.any(me, ns.space('storage'), undefined, me.doc());
154
- }
155
- return {
156
- loadMe,
157
- getPodRoot,
158
- getMainInbox,
159
- findStorage,
160
- loadPreferences,
161
- loadProfile,
162
- silencedLoadPreferences
163
- };
164
- }
165
- //# sourceMappingURL=profileLogic.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"profileLogic.js","sourceRoot":"","sources":["../../src/profile/profileLogic.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,gDAqHC;AA3HD,sDAA8J;AAC9J,qDAAsC;AACtC,mCAA4C;AAC5C,yCAAuE;AAGvE,SAAgB,kBAAkB,CAAC,KAAK,EAAE,KAAK,EAAE,YAAY;IACzD,MAAM,EAAE,GAAG,OAAS,CAAA;IAEpB;;;;;OAKG;IACH,KAAK,UAAU,uBAAuB,CAAC,IAAe;QAClD,IAAI,CAAC;YACD,OAAO,MAAM,eAAe,CAAC,IAAI,CAAC,CAAA;YACtC,6DAA6D;QAC7D,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACX,OAAO,SAAS,CAAA;QACpB,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,UAAU,eAAe,CAAE,IAAe;QAC3C,MAAM,WAAW,CAAC,IAAI,CAAC,CAAA;QAEvB,MAAM,uBAAuB,GAAG,IAAA,8BAAsB,EAAC,IAAI,CAAC,CAAA;QAC5D,IAAI,eAAe,CAAA;QACnB,IAAI,CAAC;YACD,e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