solid-logic 1.3.17-9d25ceb7 → 1.3.17-a27c1702
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.
- package/lib/acl/aclLogic.d.ts +12 -30
- package/lib/acl/aclLogic.d.ts.map +1 -1
- package/lib/acl/aclLogic.js +152 -119
- package/lib/acl/aclLogic.js.map +1 -1
- package/lib/authn/SolidAuthnLogic.d.ts.map +1 -1
- package/lib/authn/SolidAuthnLogic.js +2 -2
- package/lib/authn/SolidAuthnLogic.js.map +1 -1
- package/lib/chat/chatLogic.d.ts +16 -0
- package/lib/chat/chatLogic.d.ts.map +1 -0
- package/lib/chat/{ChatLogic.js → chatLogic.js} +82 -87
- package/lib/chat/chatLogic.js.map +1 -0
- package/lib/inbox/inboxLogic.d.ts +7 -0
- package/lib/inbox/inboxLogic.d.ts.map +1 -0
- package/lib/inbox/{InboxLogic.js → inboxLogic.js} +58 -64
- package/lib/inbox/inboxLogic.js.map +1 -0
- package/lib/index.d.ts +18 -9
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +86 -22
- package/lib/index.js.map +1 -1
- package/lib/logic/CustomError.d.ts +4 -0
- package/lib/logic/CustomError.d.ts.map +1 -1
- package/lib/logic/CustomError.js +17 -1
- package/lib/logic/CustomError.js.map +1 -1
- package/lib/logic/SolidLogic.d.ts +8 -34
- package/lib/logic/SolidLogic.d.ts.map +1 -1
- package/lib/logic/SolidLogic.js +16 -250
- package/lib/logic/SolidLogic.js.map +1 -1
- package/lib/logic/solidLogicSingleton.js +1 -1
- package/lib/logic/solidLogicSingleton.js.map +1 -1
- package/lib/logic/solidLogicSingletonNew.d.ts +80 -0
- package/lib/logic/solidLogicSingletonNew.d.ts.map +1 -0
- package/lib/logic/solidLogicSingletonNew.js +238 -0
- package/lib/logic/solidLogicSingletonNew.js.map +1 -0
- package/lib/profile/profileLogic.d.ts +13 -0
- package/lib/profile/profileLogic.d.ts.map +1 -0
- package/lib/profile/profileLogic.js +268 -0
- package/lib/profile/profileLogic.js.map +1 -0
- package/lib/typeIndex/typeIndexLogic.d.ts +31 -21
- package/lib/typeIndex/typeIndexLogic.d.ts.map +1 -1
- package/lib/typeIndex/typeIndexLogic.js +650 -295
- package/lib/typeIndex/typeIndexLogic.js.map +1 -1
- package/lib/types.d.ts +17 -0
- package/lib/types.d.ts.map +1 -1
- package/lib/util/containerLogic.d.ts +11 -0
- package/lib/util/containerLogic.d.ts.map +1 -0
- package/lib/{profile/ProfileLogic.js → util/containerLogic.js} +53 -44
- package/lib/util/containerLogic.js.map +1 -0
- package/lib/util/ns.d.ts +2 -0
- package/lib/util/ns.d.ts.map +1 -0
- package/lib/util/ns.js +34 -0
- package/lib/util/ns.js.map +1 -0
- package/lib/util/utilityLogic.d.ts +15 -0
- package/lib/util/utilityLogic.d.ts.map +1 -0
- package/lib/util/utilityLogic.js +272 -0
- package/lib/util/utilityLogic.js.map +1 -0
- package/lib/util/utils.d.ts +8 -0
- package/lib/util/utils.d.ts.map +1 -0
- package/lib/util/utils.js +48 -0
- package/lib/util/utils.js.map +1 -0
- package/package.json +3 -1
- package/src/acl/aclLogic.ts +136 -118
- package/src/authn/SolidAuthnLogic.ts +3 -2
- package/src/chat/chatLogic.ts +225 -0
- package/src/inbox/inboxLogic.ts +57 -0
- package/src/index.ts +142 -18
- package/src/logic/CustomError.ts +5 -1
- package/src/logic/SolidLogic.ts +30 -211
- package/src/logic/solidLogicSingleton.ts +1 -1
- package/src/logic/solidLogicSingletonNew.ts +239 -0
- package/src/profile/profileLogic.ts +134 -0
- package/src/typeIndex/typeIndexLogic.ts +417 -153
- package/src/types.ts +7 -3
- package/src/util/containerLogic.ts +54 -0
- package/src/util/ns.ts +5 -0
- package/src/util/utilityLogic.ts +155 -0
- package/src/util/utils.ts +52 -0
- package/test/aclLogic.test.ts +13 -4
- package/test/chatLogic.test.ts +70 -71
- package/test/container.test.ts +56 -0
- package/test/helpers/dataSetup.ts +134 -0
- package/test/helpers/setup.ts +4 -0
- package/test/inboxLogic.test.ts +39 -38
- package/test/logic.test.ts +10 -9
- package/test/profileLogic.test.ts +246 -0
- package/test/typeIndexLogic.test.ts +49 -22
- package/test/typeIndexLogicPart2.test.ts +485 -0
- package/test/utilityLogic.test.ts +172 -126
- package/test/utils.test.ts +32 -0
- package/lib/chat/ChatLogic.d.ts +0 -26
- package/lib/chat/ChatLogic.d.ts.map +0 -1
- package/lib/chat/ChatLogic.js.map +0 -1
- package/lib/chat/determineChatContainer.d.ts +0 -3
- package/lib/chat/determineChatContainer.d.ts.map +0 -1
- package/lib/chat/determineChatContainer.js +0 -12
- package/lib/chat/determineChatContainer.js.map +0 -1
- package/lib/discovery/discoveryLogic.d.ts +0 -37
- package/lib/discovery/discoveryLogic.d.ts.map +0 -1
- package/lib/discovery/discoveryLogic.js +0 -507
- package/lib/discovery/discoveryLogic.js.map +0 -1
- package/lib/inbox/InboxLogic.d.ts +0 -18
- package/lib/inbox/InboxLogic.d.ts.map +0 -1
- package/lib/inbox/InboxLogic.js.map +0 -1
- package/lib/profile/ProfileLogic.d.ts +0 -13
- package/lib/profile/ProfileLogic.d.ts.map +0 -1
- package/lib/profile/ProfileLogic.js.map +0 -1
- package/lib/util/UtilityLogic.d.ts +0 -33
- package/lib/util/UtilityLogic.d.ts.map +0 -1
- package/lib/util/UtilityLogic.js +0 -240
- package/lib/util/UtilityLogic.js.map +0 -1
- package/lib/util/uri.d.ts +0 -3
- package/lib/util/uri.d.ts.map +0 -1
- package/lib/util/uri.js +0 -9
- package/lib/util/uri.js.map +0 -1
- package/src/chat/ChatLogic.ts +0 -244
- package/src/chat/determineChatContainer.ts +0 -14
- package/src/discovery/discoveryLogic.ts +0 -288
- package/src/inbox/InboxLogic.ts +0 -66
- package/src/profile/ProfileLogic.ts +0 -44
- package/src/util/UtilityLogic.ts +0 -161
- package/src/util/uri.ts +0 -5
- package/test/discoveryLogic.test.ts +0 -712
package/lib/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.createChatThing = exports.findChat = exports.addToPrivateTypeIndex = exports.setAcl = exports.getScopedAppsFromIndex = exports.deleteTypeIndexRegistration = exports.registerInstanceInTypeIndex = exports.suggestPrivateTypeIndex = exports.suggestPublicTypeIndex = exports.getAppInstances = exports.getScopedAppInstances = exports.loadAllTypeIndexes = exports.loadCommunityTypeIndexes = exports.loadTypeIndexesFor = exports.getRegistrations = exports.getTypeIndex = exports.loadIndexes = exports.makeIndexIfNecessary = exports.putIndex = exports.ensureOneTypeIndex = exports.loadIndex = exports.registerInTypeIndex = exports.loadTypeIndexes = exports.ensureTypeIndexes = exports.genACLText = exports.setACLUserPublic = exports.findAclDocUrl = exports.chatLogic = exports.typeIndexLogic = exports.inboxLogic = exports.profileLogic = exports.containerLogic = exports.utilityLogic = exports.aclLogic = exports.authSession = exports.authn = exports.store = exports.WebOperationError = exports.NotEditableError = exports.FetchError = exports.NotFoundError = exports.SameOriginForbiddenError = exports.CrossOriginForbiddenError = exports.UnauthorizedError = exports.solidLogicSingleton = exports.SolidLogic = exports.getSuggestedIssuers = exports.appContext = exports.offlineTestID = exports.ACL_LINK = void 0;
|
|
4
|
+
exports.getContainerMembers = exports.getContainerElements = exports.createContainer = exports.isContainer = exports.silencedLoadPreferences = exports.loadProfile = exports.loadPreferences = exports.findStorage = exports.getMainInbox = exports.getPodRoot = exports.loadMe = exports.ensureLoadedPreferences = exports.loadOrCreateIfNotExists = exports.followOrCreateLink = exports.createEmptyRdfDoc = exports.setSinglePeerAccess = exports.recursiveDelete = exports.markAsRead = exports.getNewMessages = exports.createInboxFor = exports.mintNew = exports.sendInvite = exports.getChat = void 0;
|
|
4
5
|
// Make these variables directly accessible as it is what you need most of the time
|
|
5
6
|
// This also makes these variable globaly accesible in mashlib
|
|
6
7
|
var solidLogicSingleton_1 = require("./logic/solidLogicSingleton");
|
|
@@ -10,33 +11,94 @@ var authSession = solidLogicSingleton_1.solidLogicSingleton.authn.authSession;
|
|
|
10
11
|
exports.authSession = authSession;
|
|
11
12
|
var store = solidLogicSingleton_1.solidLogicSingleton.store;
|
|
12
13
|
exports.store = store;
|
|
13
|
-
var
|
|
14
|
-
exports.
|
|
15
|
-
var
|
|
16
|
-
exports.
|
|
14
|
+
var aclLogic = solidLogicSingleton_1.solidLogicSingleton.aclLogic;
|
|
15
|
+
exports.aclLogic = aclLogic;
|
|
16
|
+
var utilityLogic = solidLogicSingleton_1.solidLogicSingleton.utilityLogic;
|
|
17
|
+
exports.utilityLogic = utilityLogic;
|
|
18
|
+
var containerLogic = solidLogicSingleton_1.solidLogicSingleton.containerLogic;
|
|
19
|
+
exports.containerLogic = containerLogic;
|
|
20
|
+
var profileLogic = solidLogicSingleton_1.solidLogicSingleton.profileLogic;
|
|
21
|
+
exports.profileLogic = profileLogic;
|
|
22
|
+
var inboxLogic = solidLogicSingleton_1.solidLogicSingleton.inboxLogic;
|
|
23
|
+
exports.inboxLogic = inboxLogic;
|
|
24
|
+
var typeIndexLogic = solidLogicSingleton_1.solidLogicSingleton.typeIndexLogic;
|
|
25
|
+
exports.typeIndexLogic = typeIndexLogic;
|
|
26
|
+
var chatLogic = solidLogicSingleton_1.solidLogicSingleton.chatLogic;
|
|
27
|
+
exports.chatLogic = chatLogic;
|
|
28
|
+
var findAclDocUrl = aclLogic.findAclDocUrl, setACLUserPublic = aclLogic.setACLUserPublic, genACLText = aclLogic.genACLText;
|
|
29
|
+
exports.findAclDocUrl = findAclDocUrl;
|
|
30
|
+
exports.setACLUserPublic = setACLUserPublic;
|
|
31
|
+
exports.genACLText = genACLText;
|
|
32
|
+
var ensureTypeIndexes = typeIndexLogic.ensureTypeIndexes, loadTypeIndexes = typeIndexLogic.loadTypeIndexes, registerInTypeIndex = typeIndexLogic.registerInTypeIndex, loadIndex = typeIndexLogic.loadIndex, ensureOneTypeIndex = typeIndexLogic.ensureOneTypeIndex, putIndex = typeIndexLogic.putIndex, makeIndexIfNecessary = typeIndexLogic.makeIndexIfNecessary, loadIndexes = typeIndexLogic.loadIndexes, getTypeIndex = typeIndexLogic.getTypeIndex, getRegistrations = typeIndexLogic.getRegistrations,
|
|
33
|
+
//NEW function for discovery
|
|
34
|
+
loadTypeIndexesFor = typeIndexLogic.loadTypeIndexesFor, loadCommunityTypeIndexes = typeIndexLogic.loadCommunityTypeIndexes, loadAllTypeIndexes = typeIndexLogic.loadAllTypeIndexes, getScopedAppInstances = typeIndexLogic.getScopedAppInstances, getAppInstances = typeIndexLogic.getAppInstances, suggestPublicTypeIndex = typeIndexLogic.suggestPublicTypeIndex, suggestPrivateTypeIndex = typeIndexLogic.suggestPrivateTypeIndex, registerInstanceInTypeIndex = typeIndexLogic.registerInstanceInTypeIndex, deleteTypeIndexRegistration = typeIndexLogic.deleteTypeIndexRegistration, getScopedAppsFromIndex = typeIndexLogic.getScopedAppsFromIndex;
|
|
35
|
+
exports.ensureTypeIndexes = ensureTypeIndexes;
|
|
36
|
+
exports.loadTypeIndexes = loadTypeIndexes;
|
|
37
|
+
exports.registerInTypeIndex = registerInTypeIndex;
|
|
38
|
+
exports.loadIndex = loadIndex;
|
|
39
|
+
exports.ensureOneTypeIndex = ensureOneTypeIndex;
|
|
40
|
+
exports.putIndex = putIndex;
|
|
41
|
+
exports.makeIndexIfNecessary = makeIndexIfNecessary;
|
|
42
|
+
exports.loadIndexes = loadIndexes;
|
|
43
|
+
exports.getTypeIndex = getTypeIndex;
|
|
44
|
+
exports.getRegistrations = getRegistrations;
|
|
45
|
+
exports.loadTypeIndexesFor = loadTypeIndexesFor;
|
|
46
|
+
exports.loadCommunityTypeIndexes = loadCommunityTypeIndexes;
|
|
47
|
+
exports.loadAllTypeIndexes = loadAllTypeIndexes;
|
|
48
|
+
exports.getScopedAppInstances = getScopedAppInstances;
|
|
49
|
+
exports.getAppInstances = getAppInstances;
|
|
50
|
+
exports.suggestPublicTypeIndex = suggestPublicTypeIndex;
|
|
51
|
+
exports.suggestPrivateTypeIndex = suggestPrivateTypeIndex;
|
|
52
|
+
exports.registerInstanceInTypeIndex = registerInstanceInTypeIndex;
|
|
53
|
+
exports.deleteTypeIndexRegistration = deleteTypeIndexRegistration;
|
|
54
|
+
exports.getScopedAppsFromIndex = getScopedAppsFromIndex;
|
|
55
|
+
var setAcl = chatLogic.setAcl, addToPrivateTypeIndex = chatLogic.addToPrivateTypeIndex, findChat = chatLogic.findChat, createChatThing = chatLogic.createChatThing, getChat = chatLogic.getChat, sendInvite = chatLogic.sendInvite, mintNew = chatLogic.mintNew;
|
|
56
|
+
exports.setAcl = setAcl;
|
|
57
|
+
exports.addToPrivateTypeIndex = addToPrivateTypeIndex;
|
|
58
|
+
exports.findChat = findChat;
|
|
59
|
+
exports.createChatThing = createChatThing;
|
|
60
|
+
exports.getChat = getChat;
|
|
61
|
+
exports.sendInvite = sendInvite;
|
|
62
|
+
exports.mintNew = mintNew;
|
|
63
|
+
var createInboxFor = inboxLogic.createInboxFor, getNewMessages = inboxLogic.getNewMessages, markAsRead = inboxLogic.markAsRead;
|
|
64
|
+
exports.createInboxFor = createInboxFor;
|
|
65
|
+
exports.getNewMessages = getNewMessages;
|
|
66
|
+
exports.markAsRead = markAsRead;
|
|
67
|
+
var recursiveDelete = utilityLogic.recursiveDelete, setSinglePeerAccess = utilityLogic.setSinglePeerAccess, createEmptyRdfDoc = utilityLogic.createEmptyRdfDoc,
|
|
68
|
+
//NEW function for discovery
|
|
69
|
+
followOrCreateLink = utilityLogic.followOrCreateLink, loadOrCreateIfNotExists = utilityLogic.loadOrCreateIfNotExists;
|
|
70
|
+
exports.recursiveDelete = recursiveDelete;
|
|
71
|
+
exports.setSinglePeerAccess = setSinglePeerAccess;
|
|
72
|
+
exports.createEmptyRdfDoc = createEmptyRdfDoc;
|
|
73
|
+
exports.followOrCreateLink = followOrCreateLink;
|
|
74
|
+
exports.loadOrCreateIfNotExists = loadOrCreateIfNotExists;
|
|
75
|
+
var ensureLoadedPreferences = profileLogic.ensureLoadedPreferences, loadMe = profileLogic.loadMe, getPodRoot = profileLogic.getPodRoot, getMainInbox = profileLogic.getMainInbox, findStorage = profileLogic.findStorage,
|
|
76
|
+
//NEW content from discovery
|
|
77
|
+
loadPreferences = profileLogic.loadPreferences, loadProfile = profileLogic.loadProfile,
|
|
78
|
+
//NEW function for discovery
|
|
79
|
+
silencedLoadPreferences = profileLogic.silencedLoadPreferences;
|
|
80
|
+
exports.ensureLoadedPreferences = ensureLoadedPreferences;
|
|
81
|
+
exports.loadMe = loadMe;
|
|
82
|
+
exports.getPodRoot = getPodRoot;
|
|
83
|
+
exports.getMainInbox = getMainInbox;
|
|
84
|
+
exports.findStorage = findStorage;
|
|
85
|
+
exports.loadPreferences = loadPreferences;
|
|
86
|
+
exports.loadProfile = loadProfile;
|
|
87
|
+
exports.silencedLoadPreferences = silencedLoadPreferences;
|
|
88
|
+
var isContainer = containerLogic.isContainer, createContainer = containerLogic.createContainer, getContainerElements = containerLogic.getContainerElements, getContainerMembers = containerLogic.getContainerMembers;
|
|
89
|
+
exports.isContainer = isContainer;
|
|
90
|
+
exports.createContainer = createContainer;
|
|
91
|
+
exports.getContainerElements = getContainerElements;
|
|
92
|
+
exports.getContainerMembers = getContainerMembers;
|
|
17
93
|
var aclLogic_1 = require("./acl/aclLogic");
|
|
18
|
-
Object.defineProperty(exports, "
|
|
19
|
-
Object.defineProperty(exports, "genACLText", { enumerable: true, get: function () { return aclLogic_1.genACLText; } });
|
|
20
|
-
var typeIndexLogic_1 = require("./typeIndex/typeIndexLogic");
|
|
21
|
-
Object.defineProperty(exports, "ensureTypeIndexes", { enumerable: true, get: function () { return typeIndexLogic_1.ensureTypeIndexes; } });
|
|
22
|
-
Object.defineProperty(exports, "loadTypeIndexes", { enumerable: true, get: function () { return typeIndexLogic_1.loadTypeIndexes; } });
|
|
23
|
-
Object.defineProperty(exports, "registerInTypeIndex", { enumerable: true, get: function () { return typeIndexLogic_1.registerInTypeIndex; } });
|
|
24
|
-
Object.defineProperty(exports, "loadIndex", { enumerable: true, get: function () { return typeIndexLogic_1.loadIndex; } });
|
|
25
|
-
var discoveryLogic_1 = require("./discovery/discoveryLogic");
|
|
26
|
-
Object.defineProperty(exports, "loadProfile", { enumerable: true, get: function () { return discoveryLogic_1.loadProfile; } });
|
|
27
|
-
Object.defineProperty(exports, "loadPreferences", { enumerable: true, get: function () { return discoveryLogic_1.loadPreferences; } });
|
|
28
|
-
Object.defineProperty(exports, "loadTypeIndexesFor", { enumerable: true, get: function () { return discoveryLogic_1.loadTypeIndexesFor; } });
|
|
29
|
-
Object.defineProperty(exports, "loadCommunityTypeIndexes", { enumerable: true, get: function () { return discoveryLogic_1.loadCommunityTypeIndexes; } });
|
|
30
|
-
Object.defineProperty(exports, "loadAllTypeIndexes", { enumerable: true, get: function () { return discoveryLogic_1.loadAllTypeIndexes; } });
|
|
31
|
-
var SolidLogic_1 = require("./logic/SolidLogic");
|
|
32
|
-
Object.defineProperty(exports, "SolidLogic", { enumerable: true, get: function () { return SolidLogic_1.SolidLogic; } });
|
|
94
|
+
Object.defineProperty(exports, "ACL_LINK", { enumerable: true, get: function () { return aclLogic_1.ACL_LINK; } });
|
|
33
95
|
var authUtil_1 = require("./authn/authUtil");
|
|
34
96
|
Object.defineProperty(exports, "offlineTestID", { enumerable: true, get: function () { return authUtil_1.offlineTestID; } });
|
|
35
97
|
Object.defineProperty(exports, "appContext", { enumerable: true, get: function () { return authUtil_1.appContext; } });
|
|
36
|
-
var UtilityLogic_1 = require("./util/UtilityLogic");
|
|
37
|
-
Object.defineProperty(exports, "ACL_LINK", { enumerable: true, get: function () { return UtilityLogic_1.ACL_LINK; } });
|
|
38
98
|
var issuerLogic_1 = require("./issuer/issuerLogic");
|
|
39
99
|
Object.defineProperty(exports, "getSuggestedIssuers", { enumerable: true, get: function () { return issuerLogic_1.getSuggestedIssuers; } });
|
|
100
|
+
var SolidLogic_1 = require("./logic/SolidLogic");
|
|
101
|
+
Object.defineProperty(exports, "SolidLogic", { enumerable: true, get: function () { return SolidLogic_1.SolidLogic; } });
|
|
40
102
|
// solidLogicSingleton is exported entirely because it is used in solid-panes
|
|
41
103
|
var solidLogicSingleton_2 = require("./logic/solidLogicSingleton");
|
|
42
104
|
Object.defineProperty(exports, "solidLogicSingleton", { enumerable: true, get: function () { return solidLogicSingleton_2.solidLogicSingleton; } });
|
|
@@ -46,4 +108,6 @@ Object.defineProperty(exports, "CrossOriginForbiddenError", { enumerable: true,
|
|
|
46
108
|
Object.defineProperty(exports, "SameOriginForbiddenError", { enumerable: true, get: function () { return CustomError_1.SameOriginForbiddenError; } });
|
|
47
109
|
Object.defineProperty(exports, "NotFoundError", { enumerable: true, get: function () { return CustomError_1.NotFoundError; } });
|
|
48
110
|
Object.defineProperty(exports, "FetchError", { enumerable: true, get: function () { return CustomError_1.FetchError; } });
|
|
111
|
+
Object.defineProperty(exports, "NotEditableError", { enumerable: true, get: function () { return CustomError_1.NotEditableError; } });
|
|
112
|
+
Object.defineProperty(exports, "WebOperationError", { enumerable: true, get: function () { return CustomError_1.WebOperationError; } });
|
|
49
113
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,mFAAmF;AACnF,8DAA8D;AAC9D,mEAAiE;AAEjE,IAAM,KAAK,GAAG,yCAAmB,CAAC,KAAK,CAAA;AA6FrC,sBAAK;AA5FP,IAAM,WAAW,GAAG,yCAAmB,CAAC,KAAK,CAAC,WAAW,CAAA;AA6FvD,kCAAW;AA5Fb,IAAM,KAAK,GAAG,yCAAmB,CAAC,KAAK,CAAA;AA0FrC,sBAAK;AAxFP,IAAM,QAAQ,GAAG,yCAAmB,CAAC,QAAQ,CAAA;AA2F3C,4BAAQ;AA1FV,IAAM,YAA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GT,YAAY,YAHH;AACX,4BAA4B;AAC5B,uBAAuB,GACrB,YAAY,wBADS,CACT;AAwEd,0DAAuB;AACvB,wBAAM;AACN,gCAAU;AACV,oCAAY;AACZ,kCAAW;AACX,0CAAe;AACf,kCAAW;AACX,0DAAuB;AA5EvB,IAAA,WAAW,GAIT,cAAc,YAJL,EACX,eAAe,GAGb,cAAc,gBAHD,EACf,oBAAoB,GAElB,cAAc,qBAFI,EACpB,mBAAmB,GACjB,cAAc,oBADG,CACH;AA0EhB,kCAAW;AACX,0CAAe;AACf,oDAAoB;AACpB,kDAAmB;AA3ErB,2CAAyC;AAAhC,oGAAA,QAAQ,OAAA;AACjB,6CAA4D;AAAnD,yGAAA,aAAa,OAAA;AAAE,sGAAA,UAAU,OAAA;AAClC,oDAA0D;AAAjD,kHAAA,mBAAmB,OAAA;AAC5B,iDAA+C;AAAtC,wGAAA,UAAU,OAAA;AAEnB,6EAA6E;AAC7E,mEAAiE;AAAxD,0HAAA,mBAAmB,OAAA;AAC5B,mDAA4K;AAAnK,gHAAA,iBAAiB,OAAA;AAAE,wHAAA,yBAAyB,OAAA;AAAE,uHAAA,wBAAwB,OAAA;AAAE,4GAAA,aAAa,OAAA;AAAE,yGAAA,UAAU,OAAA;AAAE,+GAAA,gBAAgB,OAAA;AAAE,gHAAA,iBAAiB,OAAA"}
|
|
@@ -9,6 +9,10 @@ export declare class SameOriginForbiddenError extends CustomError {
|
|
|
9
9
|
}
|
|
10
10
|
export declare class NotFoundError extends CustomError {
|
|
11
11
|
}
|
|
12
|
+
export declare class NotEditableError extends CustomError {
|
|
13
|
+
}
|
|
14
|
+
export declare class WebOperationError extends CustomError {
|
|
15
|
+
}
|
|
12
16
|
export declare class FetchError extends CustomError {
|
|
13
17
|
status: number;
|
|
14
18
|
constructor(status: number, message?: string);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomError.d.ts","sourceRoot":"","sources":["../../src/logic/CustomError.ts"],"names":[],"mappings":"AAAA,cAAM,WAAY,SAAQ,KAAK;gBACf,OAAO,CAAC,EAAE,MAAM;CAM/B;AAED,qBAAa,iBAAkB,SAAQ,WAAW;CAAG;AAErD,qBAAa,yBAA0B,SAAQ,WAAW;CAAG;AAE7D,qBAAa,wBAAyB,SAAQ,WAAW;CAAG;AAE5D,qBAAa,aAAc,SAAQ,WAAW;CAAG;AAEjD,qBAAa,UAAW,SAAQ,WAAW;IACvC,MAAM,EAAE,MAAM,CAAC;gBAEH,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM;CAI/C"}
|
|
1
|
+
{"version":3,"file":"CustomError.d.ts","sourceRoot":"","sources":["../../src/logic/CustomError.ts"],"names":[],"mappings":"AAAA,cAAM,WAAY,SAAQ,KAAK;gBACf,OAAO,CAAC,EAAE,MAAM;CAM/B;AAED,qBAAa,iBAAkB,SAAQ,WAAW;CAAG;AAErD,qBAAa,yBAA0B,SAAQ,WAAW;CAAG;AAE7D,qBAAa,wBAAyB,SAAQ,WAAW;CAAG;AAE5D,qBAAa,aAAc,SAAQ,WAAW;CAAG;AAEjD,qBAAa,gBAAiB,SAAQ,WAAW;CAAI;AAErD,qBAAa,iBAAkB,SAAQ,WAAW;CAAG;AAErD,qBAAa,UAAW,SAAQ,WAAW;IACvC,MAAM,EAAE,MAAM,CAAC;gBAEH,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM;CAI/C"}
|
package/lib/logic/CustomError.js
CHANGED
|
@@ -15,7 +15,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
15
15
|
};
|
|
16
16
|
})();
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.FetchError = exports.NotFoundError = exports.SameOriginForbiddenError = exports.CrossOriginForbiddenError = exports.UnauthorizedError = void 0;
|
|
18
|
+
exports.FetchError = exports.WebOperationError = exports.NotEditableError = exports.NotFoundError = exports.SameOriginForbiddenError = exports.CrossOriginForbiddenError = exports.UnauthorizedError = void 0;
|
|
19
19
|
var CustomError = /** @class */ (function (_super) {
|
|
20
20
|
__extends(CustomError, _super);
|
|
21
21
|
function CustomError(message) {
|
|
@@ -60,6 +60,22 @@ var NotFoundError = /** @class */ (function (_super) {
|
|
|
60
60
|
return NotFoundError;
|
|
61
61
|
}(CustomError));
|
|
62
62
|
exports.NotFoundError = NotFoundError;
|
|
63
|
+
var NotEditableError = /** @class */ (function (_super) {
|
|
64
|
+
__extends(NotEditableError, _super);
|
|
65
|
+
function NotEditableError() {
|
|
66
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
67
|
+
}
|
|
68
|
+
return NotEditableError;
|
|
69
|
+
}(CustomError));
|
|
70
|
+
exports.NotEditableError = NotEditableError;
|
|
71
|
+
var WebOperationError = /** @class */ (function (_super) {
|
|
72
|
+
__extends(WebOperationError, _super);
|
|
73
|
+
function WebOperationError() {
|
|
74
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
75
|
+
}
|
|
76
|
+
return WebOperationError;
|
|
77
|
+
}(CustomError));
|
|
78
|
+
exports.WebOperationError = WebOperationError;
|
|
63
79
|
var FetchError = /** @class */ (function (_super) {
|
|
64
80
|
__extends(FetchError, _super);
|
|
65
81
|
function FetchError(status, message) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomError.js","sourceRoot":"","sources":["../../src/logic/CustomError.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;IAA0B,+BAAK;IAC3B,qBAAY,OAAgB;;QAA5B,YACI,kBAAM,OAAO,CAAC,SAIjB;QAHG,0EAA0E;QAC1E,MAAM,CAAC,cAAc,CAAC,KAAI,EAAE,WAAW,SAAS,CAAC,CAAC,CAAC,0BAA0B;QAC7E,KAAI,CAAC,IAAI,GAAG,WAAW,IAAI,CAAC,CAAC,qCAAqC;;IACtE,CAAC;IACL,kBAAC;AAAD,CAAC,AAPD,CAA0B,KAAK,GAO9B;AAED;IAAuC,qCAAW;IAAlD;;IAAoD,CAAC;IA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AEtC;IAA8C,4CAAW;IAAzD;;IAA2D,CAAC;IAAD,+BAAC;AAAD,CAAC,AAA5D,CAA8C,WAAW,GAAG;AAA/C,4DAAwB;AAErC;IAAmC,iCAAW;IAA9C;;IAAgD,CAAC;IAAD,oBAAC;AAAD,CAAC,AAAjD,CAAmC,WAAW,GAAG;AAApC,sCAAa;AAE1B;IAAsC,oCAAW;IAAjD;;IAAoD,CAAC;IAAD,uBAAC;AAAD,CAAC,AAArD,CAAsC,WAAW,GAAI;AAAxC,4CAAgB;AAE7B;IAAuC,qCAAW;IAAlD;;IAAoD,CAAC;IAAD,wBAAC;AAAD,CAAC,AAArD,CAAuC,WAAW,GAAG;AAAxC,8CAAiB;AAE9B;IAAgC,8BAAW;IAGvC,oBAAY,MAAc,EAAE,OAAgB;QAA5C,YACI,kBAAM,OAAO,CAAC,SAEjB;QADG,KAAI,CAAC,MAAM,GAAG,MAAM,CAAC;;IACzB,CAAC;IACL,iBAAC;AAAD,CAAC,AAPD,CAAgC,WAAW,GAO1C;AAPY,gCAAU"}
|
|
@@ -1,48 +1,22 @@
|
|
|
1
1
|
import { Session } from "@inrupt/solid-client-authn-browser";
|
|
2
|
-
import
|
|
3
|
-
import { NamedNode, Statement, LiveStore } from "rdflib";
|
|
4
|
-
import { ChatLogic } from "../chat/ChatLogic";
|
|
5
|
-
import { ProfileLogic } from "../profile/ProfileLogic";
|
|
2
|
+
import { LiveStore, NamedNode, Statement } from "rdflib";
|
|
6
3
|
import { AuthnLogic } from "../types";
|
|
7
|
-
import { UtilityLogic } from "../util/UtilityLogic";
|
|
8
4
|
export declare class SolidLogic {
|
|
9
|
-
cache: {
|
|
10
|
-
profileDocument: {
|
|
11
|
-
[WebID: string]: NamedNode;
|
|
12
|
-
};
|
|
13
|
-
preferencesFile: {
|
|
14
|
-
[WebID: string]: NamedNode;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
5
|
store: LiveStore;
|
|
18
6
|
me: string | undefined;
|
|
19
|
-
underlyingFetch: {
|
|
20
|
-
fetch: (url: string, options?: any) => any;
|
|
21
|
-
};
|
|
22
|
-
chat: ChatLogic;
|
|
23
|
-
profile: ProfileLogic;
|
|
24
7
|
authn: AuthnLogic;
|
|
25
|
-
|
|
8
|
+
aclLogic: any;
|
|
9
|
+
utilityLogic: any;
|
|
10
|
+
containerLogic: any;
|
|
11
|
+
profileLogic: any;
|
|
12
|
+
inboxLogic: any;
|
|
13
|
+
typeIndexLogic: any;
|
|
14
|
+
chatLogic: any;
|
|
26
15
|
constructor(specialFetch: {
|
|
27
16
|
fetch: (url: any, requestInit: any) => any;
|
|
28
17
|
}, session: Session);
|
|
29
|
-
findAclDocUrl(url: string): Promise<string>;
|
|
30
|
-
loadProfile(me: NamedNode): Promise<NamedNode>;
|
|
31
|
-
loadPreferences(me: NamedNode): Promise<NamedNode>;
|
|
32
|
-
getTypeIndex(me: NamedNode | string, preferencesFile: NamedNode | string, isPublic: boolean): NamedNode[];
|
|
33
|
-
getRegistrations(instance: any, theClass: any): rdf.Node[];
|
|
34
18
|
load(doc: NamedNode | NamedNode[] | string): Promise<Response> | Promise<Response[]>;
|
|
35
|
-
loadIndexes(me: NamedNode | string, publicProfile: NamedNode | string | null, preferencesFile: NamedNode | string | null, onWarning?: (_err: Error) => Promise<undefined>): Promise<{
|
|
36
|
-
private: any;
|
|
37
|
-
public: any;
|
|
38
|
-
}>;
|
|
39
|
-
createEmptyRdfDoc(doc: NamedNode, comment: string): Promise<void>;
|
|
40
19
|
updatePromise(del: Array<Statement>, ins?: Array<Statement>): Promise<void>;
|
|
41
|
-
isContainer(url: string): boolean;
|
|
42
|
-
getContainerElements(containerNode: NamedNode): NamedNode[];
|
|
43
|
-
getContainerMembers(containerUrl: string): Promise<string[]>;
|
|
44
|
-
recursiveDelete(url: string): Promise<any>;
|
|
45
20
|
clearStore(): void;
|
|
46
|
-
fetch(url: string, options?: any): Promise<any>;
|
|
47
21
|
}
|
|
48
22
|
//# sourceMappingURL=SolidLogic.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SolidLogic.d.ts","sourceRoot":"","sources":["../../src/logic/SolidLogic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"SolidLogic.d.ts","sourceRoot":"","sources":["../../src/logic/SolidLogic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAC;AAE7D,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AASzD,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAQtC,qBAAa,UAAU;IAEnB,KAAK,EAAE,SAAS,CAAC;IACjB,EAAE,EAAE,MAAM,GAAG,SAAS,CAAC;IACvB,KAAK,EAAE,UAAU,CAAC;IAElB,QAAQ,MAAA;IACR,YAAY,MAAA;IACZ,cAAc,MAAA;IACd,YAAY,MAAA;IACZ,UAAU,MAAA;IACV,cAAc,MAAA;IACd,SAAS,MAAA;gBAGG,YAAY,EAAE;QAAE,KAAK,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,KAAK,GAAG,CAAA;KAAE,EAAE,OAAO,EAAE,OAAO;IAuB1F,IAAI,CAAC,GAAG,EAAE,SAAS,GAAG,SAAS,EAAE,GAAG,MAAM;IAK1C,aAAa,CACT,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,EACrB,GAAG,GAAE,KAAK,CAAC,SAAS,CAAM,GAC3B,OAAO,CAAC,IAAI,CAAC;IAYhB,UAAU;CAGb"}
|
package/lib/logic/SolidLogic.js
CHANGED
|
@@ -22,258 +22,47 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
22
22
|
__setModuleDefault(result, mod);
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
29
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
30
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
31
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
35
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
36
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
37
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
38
|
-
function step(op) {
|
|
39
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
40
|
-
while (_) try {
|
|
41
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
42
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
43
|
-
switch (op[0]) {
|
|
44
|
-
case 0: case 1: t = op; break;
|
|
45
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
46
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
47
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
48
|
-
default:
|
|
49
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
50
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
51
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
52
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
53
|
-
if (t[2]) _.ops.pop();
|
|
54
|
-
_.trys.pop(); continue;
|
|
55
|
-
}
|
|
56
|
-
op = body.call(thisArg, _);
|
|
57
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
58
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
62
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
63
|
-
};
|
|
64
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
65
26
|
exports.SolidLogic = void 0;
|
|
66
27
|
var rdf = __importStar(require("rdflib"));
|
|
67
|
-
var
|
|
28
|
+
var aclLogic_1 = require("../acl/aclLogic");
|
|
68
29
|
var SolidAuthnLogic_1 = require("../authn/SolidAuthnLogic");
|
|
69
|
-
var
|
|
70
|
-
var
|
|
30
|
+
var chatLogic_1 = require("../chat/chatLogic");
|
|
31
|
+
var inboxLogic_1 = require("../inbox/inboxLogic");
|
|
32
|
+
var profileLogic_1 = require("../profile/profileLogic");
|
|
33
|
+
var typeIndexLogic_1 = require("../typeIndex/typeIndexLogic");
|
|
34
|
+
var containerLogic_1 = require("../util/containerLogic");
|
|
35
|
+
var utilityLogic_1 = require("../util/utilityLogic");
|
|
71
36
|
var debug = __importStar(require("../util/debug"));
|
|
72
|
-
var UtilityLogic_1 = require("../util/UtilityLogic");
|
|
73
|
-
var CustomError_1 = require("./CustomError");
|
|
74
37
|
/*
|
|
75
38
|
** It is important to distinquish `fetch`, a function provided by the browser
|
|
76
39
|
** and `Fetcher`, a helper object for the rdflib Store which turns it
|
|
77
40
|
** into a `ConnectedStore` or a `LiveStore`. A Fetcher object is
|
|
78
41
|
** available at store.fetcher, and `fetch` function at `store.fetcher._fetch`,
|
|
79
42
|
*/
|
|
80
|
-
var ns = (0, solid_namespace_1.default)(rdf);
|
|
81
43
|
var SolidLogic = /** @class */ (function () {
|
|
82
44
|
function SolidLogic(specialFetch, session) {
|
|
83
45
|
// would xpect to be able to do it this way: but get TypeError: Failed to execute 'fetch' on 'Window': Illegal invocation status: 999
|
|
84
46
|
// this.store = new rdf.LiveStore({})
|
|
85
47
|
// this.store.fetcher._fetch = fetch
|
|
86
|
-
|
|
48
|
+
debug.log("SolidLogic: Unique instance created. There should only be one of these.");
|
|
87
49
|
this.store = rdf.graph(); // Make a Quad store
|
|
88
50
|
rdf.fetcher(this.store, { fetch: specialFetch.fetch }); // Attach a web I/O module, store.fetcher
|
|
89
51
|
this.store.updater = new rdf.UpdateManager(this.store); // Add real-time live updates store.updater
|
|
90
52
|
this.store.features = []; // disable automatic node merging on store load
|
|
91
|
-
this.cache = {
|
|
92
|
-
profileDocument: {},
|
|
93
|
-
preferencesFile: {},
|
|
94
|
-
};
|
|
95
|
-
this.underlyingFetch = { fetch: fetch }; // Note global one not the one passed
|
|
96
53
|
this.authn = new SolidAuthnLogic_1.SolidAuthnLogic(session);
|
|
97
54
|
debug.log('SolidAuthnLogic initialized');
|
|
98
|
-
this.
|
|
99
|
-
this.
|
|
100
|
-
this.
|
|
55
|
+
this.aclLogic = (0, aclLogic_1.createAclLogic)(this.store);
|
|
56
|
+
this.containerLogic = (0, containerLogic_1.createContainerLogic)(this.store);
|
|
57
|
+
this.utilityLogic = (0, utilityLogic_1.createUtilityLogic)(this.store, this.aclLogic, this.containerLogic);
|
|
58
|
+
this.profileLogic = (0, profileLogic_1.createProfileLogic)(this.store, this.authn, this.utilityLogic);
|
|
59
|
+
this.chatLogic = (0, chatLogic_1.createChatLogic)(this.store, this.profileLogic);
|
|
60
|
+
this.inboxLogic = (0, inboxLogic_1.createInboxLogic)(this.store, this.profileLogic, this.utilityLogic, this.containerLogic, this.aclLogic);
|
|
61
|
+
this.typeIndexLogic = (0, typeIndexLogic_1.createTypeIndexLogic)(this.store, this.authn, this.profileLogic, this.utilityLogic);
|
|
101
62
|
}
|
|
102
|
-
SolidLogic.prototype.findAclDocUrl = function (url) {
|
|
103
|
-
return this.util.findAclDocUrl(url);
|
|
104
|
-
};
|
|
105
|
-
SolidLogic.prototype.loadProfile = function (me) {
|
|
106
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
107
|
-
var profileDocument, err_1, message;
|
|
108
|
-
return __generator(this, function (_a) {
|
|
109
|
-
switch (_a.label) {
|
|
110
|
-
case 0:
|
|
111
|
-
/*
|
|
112
|
-
// console.log('loadProfile cache ', this.cache)
|
|
113
|
-
if (this.cache.profileDocument[me.value]) {
|
|
114
|
-
return this.cache.profileDocument[me.value];
|
|
115
|
-
} @@ just use the cache in the store
|
|
116
|
-
*/
|
|
117
|
-
console.log('loadProfile me ', me);
|
|
118
|
-
profileDocument = me.doc();
|
|
119
|
-
_a.label = 1;
|
|
120
|
-
case 1:
|
|
121
|
-
_a.trys.push([1, 3, , 4]);
|
|
122
|
-
return [4 /*yield*/, this.store.fetcher.load(profileDocument)];
|
|
123
|
-
case 2:
|
|
124
|
-
_a.sent();
|
|
125
|
-
return [2 /*return*/, profileDocument];
|
|
126
|
-
case 3:
|
|
127
|
-
err_1 = _a.sent();
|
|
128
|
-
message = "Cannot load profile ".concat(profileDocument, " : ").concat(err_1);
|
|
129
|
-
throw new Error(message);
|
|
130
|
-
case 4: return [2 /*return*/];
|
|
131
|
-
}
|
|
132
|
-
});
|
|
133
|
-
});
|
|
134
|
-
};
|
|
135
|
-
SolidLogic.prototype.loadPreferences = function (me) {
|
|
136
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
137
|
-
// console.log('this.store.any()', this.store.any())
|
|
138
|
-
/**
|
|
139
|
-
* Are we working cross-origin?
|
|
140
|
-
* Returns True if we are in a webapp at an origin, and the file origin is different
|
|
141
|
-
*/
|
|
142
|
-
function differentOrigin() {
|
|
143
|
-
if (!preferencesFile) {
|
|
144
|
-
return true;
|
|
145
|
-
}
|
|
146
|
-
return ("".concat(window.location.origin, "/") !== new URL(preferencesFile.value).origin);
|
|
147
|
-
}
|
|
148
|
-
var preferencesFile, err_2, status_1;
|
|
149
|
-
return __generator(this, function (_a) {
|
|
150
|
-
switch (_a.label) {
|
|
151
|
-
case 0:
|
|
152
|
-
console.log('loadPreferences cache ', this.cache);
|
|
153
|
-
if (this.cache.preferencesFile[me.value]) {
|
|
154
|
-
return [2 /*return*/, this.cache.preferencesFile[me.value]];
|
|
155
|
-
}
|
|
156
|
-
return [4 /*yield*/, this.loadProfile(me)]; // Load pointer to pref file
|
|
157
|
-
case 1:
|
|
158
|
-
_a.sent(); // Load pointer to pref file
|
|
159
|
-
preferencesFile = this.store.any(me, ns.space('preferencesFile'), null, me.doc());
|
|
160
|
-
if (!preferencesFile) {
|
|
161
|
-
throw new Error("Can't find a preference file pointer in profile ".concat(me.doc()));
|
|
162
|
-
}
|
|
163
|
-
_a.label = 2;
|
|
164
|
-
case 2:
|
|
165
|
-
_a.trys.push([2, 4, , 5]);
|
|
166
|
-
return [4 /*yield*/, this.store.fetcher.load(preferencesFile, {
|
|
167
|
-
withCredentials: true,
|
|
168
|
-
})];
|
|
169
|
-
case 3:
|
|
170
|
-
_a.sent();
|
|
171
|
-
return [3 /*break*/, 5];
|
|
172
|
-
case 4:
|
|
173
|
-
err_2 = _a.sent();
|
|
174
|
-
status_1 = err_2.status;
|
|
175
|
-
debug.log("HTTP status ".concat(status_1, " for preference file ").concat(preferencesFile));
|
|
176
|
-
if (status_1 === 401) {
|
|
177
|
-
throw new CustomError_1.UnauthorizedError();
|
|
178
|
-
}
|
|
179
|
-
if (status_1 === 403) {
|
|
180
|
-
if (differentOrigin()) {
|
|
181
|
-
throw new CustomError_1.CrossOriginForbiddenError();
|
|
182
|
-
}
|
|
183
|
-
throw new CustomError_1.SameOriginForbiddenError();
|
|
184
|
-
}
|
|
185
|
-
if (status_1 === 404) {
|
|
186
|
-
throw new CustomError_1.NotFoundError(preferencesFile.value);
|
|
187
|
-
}
|
|
188
|
-
throw new CustomError_1.FetchError(err_2.status, err_2.message);
|
|
189
|
-
case 5: return [2 /*return*/, preferencesFile];
|
|
190
|
-
}
|
|
191
|
-
});
|
|
192
|
-
});
|
|
193
|
-
};
|
|
194
|
-
SolidLogic.prototype.getTypeIndex = function (me, preferencesFile, isPublic) {
|
|
195
|
-
// console.log('getTypeIndex', this.store.each(me, undefined, undefined, preferencesFile), isPublic, preferencesFile)
|
|
196
|
-
return this.store.each(me, isPublic ? ns.solid("publicTypeIndex") : ns.solid("privateTypeIndex"), undefined, preferencesFile);
|
|
197
|
-
};
|
|
198
|
-
SolidLogic.prototype.getRegistrations = function (instance, theClass) {
|
|
199
|
-
var _this = this;
|
|
200
|
-
return this.store
|
|
201
|
-
.each(undefined, ns.solid("instance"), instance)
|
|
202
|
-
.filter(function (r) {
|
|
203
|
-
return _this.store.holds(r, ns.solid("forClass"), theClass);
|
|
204
|
-
});
|
|
205
|
-
};
|
|
206
63
|
SolidLogic.prototype.load = function (doc) {
|
|
207
64
|
return this.store.fetcher.load(doc);
|
|
208
65
|
};
|
|
209
|
-
SolidLogic.prototype.loadIndexes = function (me, publicProfile, preferencesFile, onWarning) {
|
|
210
|
-
var _this = this;
|
|
211
|
-
if (onWarning === void 0) { onWarning = function (_err) { return __awaiter(_this, void 0, void 0, function () {
|
|
212
|
-
return __generator(this, function (_a) {
|
|
213
|
-
return [2 /*return*/, undefined];
|
|
214
|
-
});
|
|
215
|
-
}); }; }
|
|
216
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
217
|
-
var privateIndexes, publicIndexes, err_3, err_4;
|
|
218
|
-
return __generator(this, function (_a) {
|
|
219
|
-
switch (_a.label) {
|
|
220
|
-
case 0:
|
|
221
|
-
privateIndexes = [];
|
|
222
|
-
publicIndexes = [];
|
|
223
|
-
if (!publicProfile) return [3 /*break*/, 4];
|
|
224
|
-
publicIndexes = this.getTypeIndex(me, publicProfile, true);
|
|
225
|
-
_a.label = 1;
|
|
226
|
-
case 1:
|
|
227
|
-
_a.trys.push([1, 3, , 4]);
|
|
228
|
-
return [4 /*yield*/, this.load(publicIndexes)];
|
|
229
|
-
case 2:
|
|
230
|
-
_a.sent();
|
|
231
|
-
return [3 /*break*/, 4];
|
|
232
|
-
case 3:
|
|
233
|
-
err_3 = _a.sent();
|
|
234
|
-
onWarning(new Error("loadIndex: loading public type index(es) ".concat(err_3)));
|
|
235
|
-
return [3 /*break*/, 4];
|
|
236
|
-
case 4:
|
|
237
|
-
if (!preferencesFile) return [3 /*break*/, 9];
|
|
238
|
-
privateIndexes = this.getTypeIndex(me, preferencesFile, false);
|
|
239
|
-
if (!(privateIndexes.length === 0)) return [3 /*break*/, 6];
|
|
240
|
-
return [4 /*yield*/, onWarning(new Error("Your preference file ".concat(preferencesFile, " does not point to a private type index.")))];
|
|
241
|
-
case 5:
|
|
242
|
-
_a.sent();
|
|
243
|
-
return [3 /*break*/, 9];
|
|
244
|
-
case 6:
|
|
245
|
-
_a.trys.push([6, 8, , 9]);
|
|
246
|
-
return [4 /*yield*/, this.load(privateIndexes)];
|
|
247
|
-
case 7:
|
|
248
|
-
_a.sent();
|
|
249
|
-
return [3 /*break*/, 9];
|
|
250
|
-
case 8:
|
|
251
|
-
err_4 = _a.sent();
|
|
252
|
-
onWarning(new Error("loadIndex: loading private type index(es) ".concat(err_4)));
|
|
253
|
-
return [3 /*break*/, 9];
|
|
254
|
-
case 9: return [2 /*return*/, {
|
|
255
|
-
private: privateIndexes,
|
|
256
|
-
public: publicIndexes,
|
|
257
|
-
}];
|
|
258
|
-
}
|
|
259
|
-
});
|
|
260
|
-
});
|
|
261
|
-
};
|
|
262
|
-
SolidLogic.prototype.createEmptyRdfDoc = function (doc, comment) {
|
|
263
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
264
|
-
return __generator(this, function (_a) {
|
|
265
|
-
switch (_a.label) {
|
|
266
|
-
case 0: return [4 /*yield*/, this.store.fetcher.webOperation("PUT", doc.uri, {
|
|
267
|
-
data: "# ".concat(new Date(), " ").concat(comment, "\n "),
|
|
268
|
-
contentType: "text/turtle",
|
|
269
|
-
})];
|
|
270
|
-
case 1:
|
|
271
|
-
_a.sent();
|
|
272
|
-
return [2 /*return*/];
|
|
273
|
-
}
|
|
274
|
-
});
|
|
275
|
-
});
|
|
276
|
-
};
|
|
277
66
|
// @@@@ use the one in rdflib.js when it is available and delete this
|
|
278
67
|
SolidLogic.prototype.updatePromise = function (del, ins) {
|
|
279
68
|
var _this = this;
|
|
@@ -289,31 +78,8 @@ var SolidLogic = /** @class */ (function () {
|
|
|
289
78
|
}); // callback
|
|
290
79
|
}); // promise
|
|
291
80
|
};
|
|
292
|
-
SolidLogic.prototype.isContainer = function (url) {
|
|
293
|
-
return this.util.isContainer(url);
|
|
294
|
-
};
|
|
295
|
-
SolidLogic.prototype.getContainerElements = function (containerNode) {
|
|
296
|
-
return this.util.getContainerElements(containerNode);
|
|
297
|
-
};
|
|
298
|
-
SolidLogic.prototype.getContainerMembers = function (containerUrl) {
|
|
299
|
-
return this.util.getContainerMembers(containerUrl);
|
|
300
|
-
};
|
|
301
|
-
SolidLogic.prototype.recursiveDelete = function (url) {
|
|
302
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
303
|
-
return __generator(this, function (_a) {
|
|
304
|
-
return [2 /*return*/, this.util.recursiveDelete(url)];
|
|
305
|
-
});
|
|
306
|
-
});
|
|
307
|
-
};
|
|
308
81
|
SolidLogic.prototype.clearStore = function () {
|
|
309
|
-
|
|
310
|
-
};
|
|
311
|
-
SolidLogic.prototype.fetch = function (url, options) {
|
|
312
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
313
|
-
return __generator(this, function (_a) {
|
|
314
|
-
return [2 /*return*/, this.underlyingFetch.fetch(url, options)];
|
|
315
|
-
});
|
|
316
|
-
});
|
|
82
|
+
this.store.statements.slice().forEach(this.store.remove.bind(this.store));
|
|
317
83
|
};
|
|
318
84
|
return SolidLogic;
|
|
319
85
|
}());
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SolidLogic.js","sourceRoot":"","sources":["../../src/logic/SolidLogic.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SolidLogic.js","sourceRoot":"","sources":["../../src/logic/SolidLogic.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,0CAA8B;AAE9B,4CAAiD;AACjD,4DAA2D;AAC3D,+CAAoD;AACpD,kDAAuD;AACvD,wDAA6D;AAC7D,8DAAmE;AACnE,yDAA8D;AAC9D,qDAA0D;AAE1D,mDAAuC;AACvC;;;;;EAKE;AACF;IAeI,oBAAY,YAA4D,EAAE,OAAgB;QAC5F,sIAAsI;QAChI,qCAAqC;QACrC,oCAAoC;QACpC,KAAK,CAAC,GAAG,CAAC,0EAA0E,CAAC,CAAA;QACrF,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC,KAAK,EAAe,CAAC,CAAC,oBAAoB;QAC3D,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,YAAY,CAAC,KAAK,EAAC,CAAC,CAAC,CAAC,yCAAyC;QAChG,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,IAAI,GAAG,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,2CAA2C;QACnG,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,EAAE,CAAA,CAAC,+CAA+C;QAExE,IAAI,CAAC,KAAK,GAAG,IAAI,iCAAe,CAAC,OAAO,CAAC,CAAA;QAEzC,KAAK,CAAC,GAAG,CAAC,6BAA6B,CAAC,CAAA;QAExC,IAAI,CAAC,QAAQ,GAAG,IAAA,yBAAc,EAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QAC1C,IAAI,CAAC,cAAc,GAAG,IAAA,qCAAoB,EAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QACtD,IAAI,CAAC,YAAY,GAAG,IAAA,iC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;QACf,CAAC,CAAC,CAAC,CAAC,UAAU;IAClB,CAAC;IAED,+BAAU,GAAV;QACI,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IAC9E,CAAC;IACL,iBAAC;AAAD,CAAC,AA7DD,IA6DC;AA7DY,gCAAU"}
|
|
@@ -68,7 +68,7 @@ var _fetch = function (url, requestInit) { return __awaiter(void 0, void 0, void
|
|
|
68
68
|
return __generator(this, function (_a) {
|
|
69
69
|
omitCreds = requestInit && requestInit.credentials && requestInit.credentials == 'omit';
|
|
70
70
|
if (authSession_1.authSession.info.webId && !omitCreds) { // see https://github.com/solidos/solidos/issues/114
|
|
71
|
-
// In fact
|
|
71
|
+
// In fact fetch should respect credentials omit itself
|
|
72
72
|
return [2 /*return*/, authSession_1.authSession.fetch(url, requestInit)];
|
|
73
73
|
}
|
|
74
74
|
else {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"solidLogicSingleton.js","sourceRoot":"","sources":["../../src/logic/solidLogicSingleton.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAAsC;AACtC,0DAAwD;AACxD,2CAAyC;AAEzC,IAAM,MAAM,GAAG,UAAO,GAAG,EAAE,WAAW;;;QAC5B,SAAS,GAAG,WAAW,IAAI,WAAW,CAAC,WAAW,IAAI,WAAW,CAAC,WAAW,IAAI,MAAM,CAAA;QAC7F,IAAI,yBAAW,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,SAAS,EAAE,EAAE,oDAAoD;YAC5F,
|
|
1
|
+
{"version":3,"file":"solidLogicSingleton.js","sourceRoot":"","sources":["../../src/logic/solidLogicSingleton.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAAsC;AACtC,0DAAwD;AACxD,2CAAyC;AAEzC,IAAM,MAAM,GAAG,UAAO,GAAG,EAAE,WAAW;;;QAC5B,SAAS,GAAG,WAAW,IAAI,WAAW,CAAC,WAAW,IAAI,WAAW,CAAC,WAAW,IAAI,MAAM,CAAA;QAC7F,IAAI,yBAAW,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,SAAS,EAAE,EAAE,oDAAoD;YAC5F,uDAAuD;YACvD,sBAAO,yBAAW,CAAC,KAAK,CAAC,GAAG,EAAE,WAAW,CAAC,EAAA;SAC7C;aAAM;YACH,sBAAO,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,WAAW,CAAC,EAAA;SACxC;;;KACJ,CAAA;AAED,mEAAmE;AACnE,IAAM,mBAAmB,GAAG,IAAI,uBAAU,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,yBAAW,CAAC,CAAA;AAIjE,kDAAmB;AAF5B,KAAK,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAA"}
|