solid-logic 1.3.13-0e650512 → 1.3.13-ef4be651
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/.github/workflows/ci.yml +18 -19
- package/jest.config.js +1 -4
- package/jest.setup.ts +2 -0
- package/lib/authn/NoAuthnLogic.d.ts +9 -0
- package/lib/authn/NoAuthnLogic.d.ts.map +1 -0
- package/lib/authn/NoAuthnLogic.js +17 -0
- package/lib/authn/NoAuthnLogic.js.map +1 -0
- package/lib/authn/SolidAuthnLogic.d.ts +6 -26
- package/lib/authn/SolidAuthnLogic.d.ts.map +1 -1
- package/lib/authn/SolidAuthnLogic.js +5 -161
- package/lib/authn/SolidAuthnLogic.js.map +1 -1
- package/lib/authn/index.d.ts +5 -0
- package/lib/authn/index.d.ts.map +1 -0
- package/lib/{types.js → authn/index.js} +1 -1
- package/lib/authn/index.js.map +1 -0
- package/lib/chat/ChatLogic.d.ts +2 -2
- package/lib/chat/ChatLogic.d.ts.map +1 -1
- package/lib/chat/ChatLogic.js +1 -1
- package/lib/chat/ChatLogic.js.map +1 -1
- package/lib/chat/integration.test.d.ts +2 -0
- package/lib/chat/integration.test.d.ts.map +1 -0
- package/lib/chat/integration.test.js +318 -0
- package/lib/chat/integration.test.js.map +1 -0
- package/lib/{util/debug.d.ts → debug.d.ts} +0 -0
- package/lib/debug.d.ts.map +1 -0
- package/lib/{util/debug.js → debug.js} +0 -0
- package/lib/debug.js.map +1 -0
- package/lib/inbox/InboxLogic.d.ts +2 -2
- package/lib/inbox/InboxLogic.d.ts.map +1 -1
- package/lib/inbox/InboxLogic.js.map +1 -1
- package/lib/inbox/unit.test.d.ts +2 -0
- package/lib/inbox/unit.test.d.ts.map +1 -0
- package/lib/inbox/unit.test.js +264 -0
- package/lib/inbox/unit.test.js.map +1 -0
- package/lib/index.d.ts +67 -9
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +384 -31
- package/lib/index.js.map +1 -1
- package/lib/profile/ProfileLogic.d.ts +3 -2
- package/lib/profile/ProfileLogic.d.ts.map +1 -1
- package/lib/profile/ProfileLogic.js.map +1 -1
- package/lib/{util/uri.d.ts → uri.d.ts} +0 -0
- package/lib/uri.d.ts.map +1 -0
- package/lib/{util/uri.js → uri.js} +0 -0
- package/lib/uri.js.map +1 -0
- package/lib/util/UtilityLogic.d.ts +2 -2
- package/lib/util/UtilityLogic.d.ts.map +1 -1
- package/lib/util/UtilityLogic.js.map +1 -1
- package/lib/util/unit.test.d.ts +2 -0
- package/lib/util/unit.test.d.ts.map +1 -0
- package/lib/util/unit.test.js +200 -0
- package/lib/util/unit.test.js.map +1 -0
- package/package.json +1 -3
- package/src/authn/NoAuthnLogic.ts +16 -0
- package/src/authn/SolidAuthnLogic.ts +10 -112
- package/src/authn/index.ts +5 -0
- package/src/chat/ChatLogic.ts +3 -3
- package/{test/chatLogic.test.ts → src/chat/integration.test.ts} +5 -4
- package/src/{util/debug.ts → debug.ts} +0 -0
- package/src/inbox/InboxLogic.ts +14 -2
- package/{test/inboxLogic.test.ts → src/inbox/unit.test.ts} +6 -5
- package/src/index.ts +308 -18
- package/src/profile/ProfileLogic.ts +3 -2
- package/src/{util/uri.ts → uri.ts} +0 -0
- package/src/util/UtilityLogic.ts +14 -2
- package/{test/utilityLogic.test.ts → src/util/unit.test.ts} +4 -3
- package/lib/acl/aclLogic.d.ts +0 -32
- package/lib/acl/aclLogic.d.ts.map +0 -1
- package/lib/acl/aclLogic.js +0 -132
- package/lib/acl/aclLogic.js.map +0 -1
- package/lib/authSession/authSession.d.ts +0 -4
- package/lib/authSession/authSession.d.ts.map +0 -1
- package/lib/authSession/authSession.js +0 -18
- package/lib/authSession/authSession.js.map +0 -1
- package/lib/authn/authUtil.d.ts +0 -17
- package/lib/authn/authUtil.d.ts.map +0 -1
- package/lib/authn/authUtil.js +0 -88
- package/lib/authn/authUtil.js.map +0 -1
- package/lib/issuer/issuerLogic.d.ts +0 -8
- package/lib/issuer/issuerLogic.d.ts.map +0 -1
- package/lib/issuer/issuerLogic.js +0 -53
- package/lib/issuer/issuerLogic.js.map +0 -1
- package/lib/logic/CustomError.d.ts +0 -17
- package/lib/logic/CustomError.d.ts.map +0 -1
- package/lib/logic/CustomError.js +0 -73
- package/lib/logic/CustomError.js.map +0 -1
- package/lib/logic/SolidLogic.d.ts +0 -49
- package/lib/logic/SolidLogic.d.ts.map +0 -1
- package/lib/logic/SolidLogic.js +0 -316
- package/lib/logic/SolidLogic.js.map +0 -1
- package/lib/logic/solidLogicSingleton.d.ts +0 -8
- package/lib/logic/solidLogicSingleton.d.ts.map +0 -1
- package/lib/logic/solidLogicSingleton.js +0 -88
- package/lib/logic/solidLogicSingleton.js.map +0 -1
- package/lib/typeIndex/typeIndexLogic.d.ts +0 -22
- package/lib/typeIndex/typeIndexLogic.d.ts.map +0 -1
- package/lib/typeIndex/typeIndexLogic.js +0 -302
- package/lib/typeIndex/typeIndexLogic.js.map +0 -1
- package/lib/types.d.ts +0 -29
- package/lib/types.d.ts.map +0 -1
- package/lib/types.js.map +0 -1
- package/lib/util/debug.d.ts.map +0 -1
- package/lib/util/debug.js.map +0 -1
- package/lib/util/uri.d.ts.map +0 -1
- package/lib/util/uri.js.map +0 -1
- package/src/acl/aclLogic.ts +0 -137
- package/src/authSession/authSession.ts +0 -22
- package/src/authn/authUtil.ts +0 -67
- package/src/issuer/issuerLogic.ts +0 -40
- package/src/logic/CustomError.ts +0 -25
- package/src/logic/SolidLogic.ts +0 -264
- package/src/logic/solidLogicSingleton.ts +0 -24
- package/src/typeIndex/typeIndexLogic.ts +0 -170
- package/src/types.ts +0 -41
- package/test/aclLogic.test.ts +0 -15
- package/test/authUtil.test.ts +0 -19
- package/test/helpers/setup.ts +0 -13
- package/test/logic.test.ts +0 -28
- package/test/solidAuthLogic.test.ts +0 -45
- package/test/typeIndexLogic.test.ts +0 -26
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unit.test.js","sourceRoot":"","sources":["../../src/inbox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EAAE,aAAa,EAAE;SAC3C,CACF,CAAC;IACJ,CAAC;IAED,SAAS,8BAA8B;QACrC,yBAAS,CAAC,UAAU,CAClB,wBAAwB,EACxB,iEAAiE,EACjE;YACE,OAAO,EAAE,EAAE,cAAc,EAAE,aAAa,EAAE;SAC3C,CACF,CAAC;IACJ,CAAC;IAED,SAAS,eAAe;QACtB,yBAAS,CAAC,UAAU,CAClB,gCAAgC,EAChC,4BAA4B,EAC5B;YACE,OAAO,EAAE,EAAE,cAAc,EAAE,aAAa,EAAE;SAC3C,CACF,CAAC;IACJ,CAAC;AACH,CAAC,CAAC,CAAC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,11 +1,69 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { Session } from "@inrupt/solid-client-authn-browser";
|
|
2
|
+
import * as rdf from "rdflib";
|
|
3
|
+
import { NamedNode, Statement } from "rdflib";
|
|
4
|
+
import { AuthnLogic } from "./authn";
|
|
5
|
+
import { ChatLogic } from "./chat/ChatLogic";
|
|
6
|
+
import { ProfileLogic } from "./profile/ProfileLogic";
|
|
7
|
+
import { UtilityLogic } from "./util/UtilityLogic";
|
|
8
|
+
import { LiveStore } from 'rdflib';
|
|
6
9
|
export { ACL_LINK } from './util/UtilityLogic';
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export
|
|
10
|
+
export interface SolidNamespace {
|
|
11
|
+
[key: string]: (term: string) => NamedNode;
|
|
12
|
+
}
|
|
13
|
+
export declare class SolidLogic {
|
|
14
|
+
cache: {
|
|
15
|
+
profileDocument: {
|
|
16
|
+
[WebID: string]: NamedNode;
|
|
17
|
+
};
|
|
18
|
+
preferencesFile: {
|
|
19
|
+
[WebID: string]: NamedNode;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
store: LiveStore;
|
|
23
|
+
me: string | undefined;
|
|
24
|
+
fetcher: {
|
|
25
|
+
fetch: (url: string, options?: any) => any;
|
|
26
|
+
};
|
|
27
|
+
chat: ChatLogic;
|
|
28
|
+
profile: ProfileLogic;
|
|
29
|
+
authn: AuthnLogic;
|
|
30
|
+
util: UtilityLogic;
|
|
31
|
+
constructor(fetcher: {
|
|
32
|
+
fetch: (url: any, requestInit: any) => any;
|
|
33
|
+
}, solidAuthSession: Session);
|
|
34
|
+
findAclDocUrl(url: string): Promise<string>;
|
|
35
|
+
loadDoc(doc: NamedNode): Promise<void>;
|
|
36
|
+
loadProfile(me: NamedNode): Promise<NamedNode>;
|
|
37
|
+
loadPreferences(me: NamedNode): Promise<NamedNode>;
|
|
38
|
+
getTypeIndex(me: NamedNode | string, preferencesFile: NamedNode | string, isPublic: boolean): NamedNode[];
|
|
39
|
+
getRegistrations(instance: any, theClass: any): rdf.Node[];
|
|
40
|
+
load(doc: NamedNode | NamedNode[] | string): Promise<Response> | Promise<Response[]>;
|
|
41
|
+
loadIndexes(me: NamedNode | string, publicProfile: NamedNode | string | null, preferencesFile: NamedNode | string | null, onWarning?: (_err: Error) => Promise<undefined>): Promise<{
|
|
42
|
+
private: any;
|
|
43
|
+
public: any;
|
|
44
|
+
}>;
|
|
45
|
+
createEmptyRdfDoc(doc: NamedNode, comment: string): Promise<void>;
|
|
46
|
+
updatePromise(del: Array<Statement>, ins?: Array<Statement>): Promise<void>;
|
|
47
|
+
isContainer(url: string): boolean;
|
|
48
|
+
getContainerElements(containerNode: NamedNode): NamedNode[];
|
|
49
|
+
getContainerMembers(containerUrl: string): Promise<string[]>;
|
|
50
|
+
recursiveDelete(url: string): Promise<any>;
|
|
51
|
+
clearStore(): void;
|
|
52
|
+
fetch(url: string, options?: any): Promise<any>;
|
|
53
|
+
}
|
|
54
|
+
declare class CustomError extends Error {
|
|
55
|
+
constructor(message?: string);
|
|
56
|
+
}
|
|
57
|
+
export declare class UnauthorizedError extends CustomError {
|
|
58
|
+
}
|
|
59
|
+
export declare class CrossOriginForbiddenError extends CustomError {
|
|
60
|
+
}
|
|
61
|
+
export declare class SameOriginForbiddenError extends CustomError {
|
|
62
|
+
}
|
|
63
|
+
export declare class NotFoundError extends CustomError {
|
|
64
|
+
}
|
|
65
|
+
export declare class FetchError extends CustomError {
|
|
66
|
+
status: number;
|
|
67
|
+
constructor(status: number, message?: string);
|
|
68
|
+
}
|
|
11
69
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAC;AAC7D,OAAO,KAAK,GAAG,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAW,SAAS,EAAE,SAAS,EAAwB,MAAM,QAAQ,CAAC;AAE7E,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAIrC,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAkB,SAAS,EAAE,MAAM,QAAQ,CAAA;AAElD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAY/C,MAAM,WAAW,cAAc;IAC7B,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,IAAI,EAAE,MAAM,KAAK,SAAS,CAAC;CAC5C;AAED,qBAAa,UAAU;IACrB,KAAK,EAAE;QACL,eAAe,EAAE;YACf,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;SAC5B,CAAC;QACF,eAAe,EAAE;YACf,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;SAC5B,CAAC;KACH,CAAC;IAEF,KAAK,EAAE,S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AAO,EAAE,MAAM;IAYvD,aAAa,CACX,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,EACrB,GAAG,GAAE,KAAK,CAAC,SAAS,CAAM,GACzB,OAAO,CAAC,IAAI,CAAC;IAehB,WAAW,CAAC,GAAG,EAAE,MAAM;IAIvB,oBAAoB,CAAC,aAAa,EAAE,SAAS,GAAG,SAAS,EAAE;IAI3D,mBAAmB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAItD,eAAe,CAAC,GAAG,EAAE,MAAM;IAIjC,UAAU;IAIJ,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG;CAGvC;AAED,cAAM,WAAY,SAAQ,KAAK;gBACjB,OAAO,CAAC,EAAE,MAAM;CAM7B;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;IACzC,MAAM,EAAE,MAAM,CAAC;gBAEH,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM;CAI7C"}
|
package/lib/index.js
CHANGED
|
@@ -1,38 +1,391 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
+
if (mod && mod.__esModule) return mod;
|
|
31
|
+
var result = {};
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
+
__setModuleDefault(result, mod);
|
|
34
|
+
return result;
|
|
35
|
+
};
|
|
36
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
40
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
41
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
42
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
46
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
47
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
48
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
49
|
+
function step(op) {
|
|
50
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
51
|
+
while (_) try {
|
|
52
|
+
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;
|
|
53
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
54
|
+
switch (op[0]) {
|
|
55
|
+
case 0: case 1: t = op; break;
|
|
56
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
57
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
58
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
59
|
+
default:
|
|
60
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
61
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
62
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
63
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
64
|
+
if (t[2]) _.ops.pop();
|
|
65
|
+
_.trys.pop(); continue;
|
|
66
|
+
}
|
|
67
|
+
op = body.call(thisArg, _);
|
|
68
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
69
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
70
|
+
}
|
|
71
|
+
};
|
|
2
72
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
73
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
74
|
};
|
|
5
75
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.FetchError = exports.NotFoundError = exports.SameOriginForbiddenError = exports.CrossOriginForbiddenError = exports.UnauthorizedError = exports.
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
Object.defineProperty(exports, "loadIndex", { enumerable: true, get: function () { return typeIndexLogic_1.loadIndex; } });
|
|
15
|
-
var authSession_1 = require("./authSession/authSession");
|
|
16
|
-
Object.defineProperty(exports, "authSession", { enumerable: true, get: function () { return __importDefault(authSession_1).default; } });
|
|
17
|
-
var SolidLogic_1 = require("./logic/SolidLogic");
|
|
18
|
-
Object.defineProperty(exports, "SolidLogic", { enumerable: true, get: function () { return SolidLogic_1.SolidLogic; } });
|
|
19
|
-
var authUtil_1 = require("./authn/authUtil");
|
|
20
|
-
Object.defineProperty(exports, "offlineTestID", { enumerable: true, get: function () { return authUtil_1.offlineTestID; } });
|
|
21
|
-
Object.defineProperty(exports, "appContext", { enumerable: true, get: function () { return authUtil_1.appContext; } });
|
|
76
|
+
exports.FetchError = exports.NotFoundError = exports.SameOriginForbiddenError = exports.CrossOriginForbiddenError = exports.UnauthorizedError = exports.SolidLogic = exports.ACL_LINK = void 0;
|
|
77
|
+
var rdf = __importStar(require("rdflib"));
|
|
78
|
+
var solid_namespace_1 = __importDefault(require("solid-namespace"));
|
|
79
|
+
var NoAuthnLogic_1 = require("./authn/NoAuthnLogic");
|
|
80
|
+
var SolidAuthnLogic_1 = require("./authn/SolidAuthnLogic");
|
|
81
|
+
var ChatLogic_1 = require("./chat/ChatLogic");
|
|
82
|
+
var debug = __importStar(require("./debug"));
|
|
83
|
+
var ProfileLogic_1 = require("./profile/ProfileLogic");
|
|
22
84
|
var UtilityLogic_1 = require("./util/UtilityLogic");
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
var
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
85
|
+
var UtilityLogic_2 = require("./util/UtilityLogic");
|
|
86
|
+
Object.defineProperty(exports, "ACL_LINK", { enumerable: true, get: function () { return UtilityLogic_2.ACL_LINK; } });
|
|
87
|
+
var ns = (0, solid_namespace_1.default)(rdf);
|
|
88
|
+
var SolidLogic = /** @class */ (function () {
|
|
89
|
+
function SolidLogic(fetcher, solidAuthSession) {
|
|
90
|
+
this.store = rdf.graph(); // Make a Quad store
|
|
91
|
+
rdf.fetcher(this.store, fetcher); // Attach a web I/O module, store.fetcher
|
|
92
|
+
this.store.updater = new rdf.UpdateManager(this.store); // Add real-time live updates store.updater
|
|
93
|
+
this.cache = {
|
|
94
|
+
profileDocument: {},
|
|
95
|
+
preferencesFile: {},
|
|
96
|
+
};
|
|
97
|
+
this.fetcher = fetcher;
|
|
98
|
+
if (solidAuthSession) {
|
|
99
|
+
this.authn = new SolidAuthnLogic_1.SolidAuthnLogic(solidAuthSession);
|
|
100
|
+
}
|
|
101
|
+
else {
|
|
102
|
+
this.authn = new NoAuthnLogic_1.NoAuthnLogic();
|
|
103
|
+
}
|
|
104
|
+
this.profile = new ProfileLogic_1.ProfileLogic(this.store, ns, this.authn);
|
|
105
|
+
this.chat = new ChatLogic_1.ChatLogic(this.store, ns, this.profile);
|
|
106
|
+
this.util = new UtilityLogic_1.UtilityLogic(this.store, ns, this.fetcher);
|
|
107
|
+
}
|
|
108
|
+
SolidLogic.prototype.findAclDocUrl = function (url) {
|
|
109
|
+
return this.util.findAclDocUrl(url);
|
|
110
|
+
};
|
|
111
|
+
SolidLogic.prototype.loadDoc = function (doc) {
|
|
112
|
+
return this.util.loadDoc(doc);
|
|
113
|
+
};
|
|
114
|
+
SolidLogic.prototype.loadProfile = function (me) {
|
|
115
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
116
|
+
var profileDocument, err_1, message;
|
|
117
|
+
return __generator(this, function (_a) {
|
|
118
|
+
switch (_a.label) {
|
|
119
|
+
case 0:
|
|
120
|
+
// console.log('loadProfile', me)
|
|
121
|
+
if (this.cache.profileDocument[me.value]) {
|
|
122
|
+
return [2 /*return*/, this.cache.profileDocument[me.value]];
|
|
123
|
+
}
|
|
124
|
+
_a.label = 1;
|
|
125
|
+
case 1:
|
|
126
|
+
_a.trys.push([1, 3, , 4]);
|
|
127
|
+
profileDocument = me.doc();
|
|
128
|
+
return [4 /*yield*/, this.loadDoc(profileDocument)];
|
|
129
|
+
case 2:
|
|
130
|
+
_a.sent();
|
|
131
|
+
return [2 /*return*/, profileDocument];
|
|
132
|
+
case 3:
|
|
133
|
+
err_1 = _a.sent();
|
|
134
|
+
message = "Logged in but cannot load profile ".concat(profileDocument, " : ").concat(err_1);
|
|
135
|
+
throw new Error(message);
|
|
136
|
+
case 4: return [2 /*return*/];
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
});
|
|
140
|
+
};
|
|
141
|
+
SolidLogic.prototype.loadPreferences = function (me) {
|
|
142
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
143
|
+
// console.log('this.store.any()', this.store.any())
|
|
144
|
+
/**
|
|
145
|
+
* Are we working cross-origin?
|
|
146
|
+
* Returns True if we are in a webapp at an origin, and the file origin is different
|
|
147
|
+
*/
|
|
148
|
+
function differentOrigin() {
|
|
149
|
+
if (!preferencesFile) {
|
|
150
|
+
return true;
|
|
151
|
+
}
|
|
152
|
+
return ("".concat(window.location.origin, "/") !== new URL(preferencesFile.value).origin);
|
|
153
|
+
}
|
|
154
|
+
var preferencesFile, err_2, status_1;
|
|
155
|
+
return __generator(this, function (_a) {
|
|
156
|
+
switch (_a.label) {
|
|
157
|
+
case 0:
|
|
158
|
+
// console.log('loadPreferences', me)
|
|
159
|
+
if (this.cache.preferencesFile[me.value]) {
|
|
160
|
+
return [2 /*return*/, this.cache.preferencesFile[me.value]];
|
|
161
|
+
}
|
|
162
|
+
preferencesFile = this.store.any(me, ns.space("preferencesFile"));
|
|
163
|
+
if (!preferencesFile) {
|
|
164
|
+
throw new Error("Can't find a preference file pointer in profile ".concat(me.doc()));
|
|
165
|
+
}
|
|
166
|
+
if (!this.store.fetcher) {
|
|
167
|
+
throw new Error("Cannot load doc, have no fetcher");
|
|
168
|
+
}
|
|
169
|
+
_a.label = 1;
|
|
170
|
+
case 1:
|
|
171
|
+
_a.trys.push([1, 3, , 4]);
|
|
172
|
+
return [4 /*yield*/, this.store.fetcher.load(preferencesFile, {
|
|
173
|
+
withCredentials: true,
|
|
174
|
+
})];
|
|
175
|
+
case 2:
|
|
176
|
+
_a.sent();
|
|
177
|
+
return [3 /*break*/, 4];
|
|
178
|
+
case 3:
|
|
179
|
+
err_2 = _a.sent();
|
|
180
|
+
status_1 = err_2.status;
|
|
181
|
+
debug.log("HTTP status ".concat(status_1, " for preference file ").concat(preferencesFile));
|
|
182
|
+
if (status_1 === 401) {
|
|
183
|
+
throw new UnauthorizedError();
|
|
184
|
+
}
|
|
185
|
+
if (status_1 === 403) {
|
|
186
|
+
if (differentOrigin()) {
|
|
187
|
+
throw new CrossOriginForbiddenError();
|
|
188
|
+
}
|
|
189
|
+
throw new SameOriginForbiddenError();
|
|
190
|
+
}
|
|
191
|
+
if (status_1 === 404) {
|
|
192
|
+
throw new NotFoundError(preferencesFile.value);
|
|
193
|
+
}
|
|
194
|
+
throw new FetchError(err_2.status, err_2.message);
|
|
195
|
+
case 4: return [2 /*return*/, preferencesFile];
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
});
|
|
199
|
+
};
|
|
200
|
+
SolidLogic.prototype.getTypeIndex = function (me, preferencesFile, isPublic) {
|
|
201
|
+
// console.log('getTypeIndex', this.store.each(me, undefined, undefined, preferencesFile), isPublic, preferencesFile)
|
|
202
|
+
return this.store.each(me, isPublic ? ns.solid("publicTypeIndex") : ns.solid("privateTypeIndex"), undefined, preferencesFile);
|
|
203
|
+
};
|
|
204
|
+
SolidLogic.prototype.getRegistrations = function (instance, theClass) {
|
|
205
|
+
var _this = this;
|
|
206
|
+
return this.store
|
|
207
|
+
.each(undefined, ns.solid("instance"), instance)
|
|
208
|
+
.filter(function (r) {
|
|
209
|
+
return _this.store.holds(r, ns.solid("forClass"), theClass);
|
|
210
|
+
});
|
|
211
|
+
};
|
|
212
|
+
SolidLogic.prototype.load = function (doc) {
|
|
213
|
+
if (!this.store.fetcher) {
|
|
214
|
+
throw new Error("Cannot load doc(s), have no fetcher");
|
|
215
|
+
}
|
|
216
|
+
return this.store.fetcher.load(doc);
|
|
217
|
+
};
|
|
218
|
+
SolidLogic.prototype.loadIndexes = function (me, publicProfile, preferencesFile, onWarning) {
|
|
219
|
+
var _this = this;
|
|
220
|
+
if (onWarning === void 0) { onWarning = function (_err) { return __awaiter(_this, void 0, void 0, function () {
|
|
221
|
+
return __generator(this, function (_a) {
|
|
222
|
+
return [2 /*return*/, undefined];
|
|
223
|
+
});
|
|
224
|
+
}); }; }
|
|
225
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
226
|
+
var privateIndexes, publicIndexes, err_3, err_4;
|
|
227
|
+
return __generator(this, function (_a) {
|
|
228
|
+
switch (_a.label) {
|
|
229
|
+
case 0:
|
|
230
|
+
privateIndexes = [];
|
|
231
|
+
publicIndexes = [];
|
|
232
|
+
if (!publicProfile) return [3 /*break*/, 4];
|
|
233
|
+
publicIndexes = this.getTypeIndex(me, publicProfile, true);
|
|
234
|
+
_a.label = 1;
|
|
235
|
+
case 1:
|
|
236
|
+
_a.trys.push([1, 3, , 4]);
|
|
237
|
+
return [4 /*yield*/, this.load(publicIndexes)];
|
|
238
|
+
case 2:
|
|
239
|
+
_a.sent();
|
|
240
|
+
return [3 /*break*/, 4];
|
|
241
|
+
case 3:
|
|
242
|
+
err_3 = _a.sent();
|
|
243
|
+
onWarning(new Error("loadIndex: loading public type index(es) ".concat(err_3)));
|
|
244
|
+
return [3 /*break*/, 4];
|
|
245
|
+
case 4:
|
|
246
|
+
if (!preferencesFile) return [3 /*break*/, 9];
|
|
247
|
+
privateIndexes = this.getTypeIndex(me, preferencesFile, false);
|
|
248
|
+
if (!(privateIndexes.length === 0)) return [3 /*break*/, 6];
|
|
249
|
+
return [4 /*yield*/, onWarning(new Error("Your preference file ".concat(preferencesFile, " does not point to a private type index.")))];
|
|
250
|
+
case 5:
|
|
251
|
+
_a.sent();
|
|
252
|
+
return [3 /*break*/, 9];
|
|
253
|
+
case 6:
|
|
254
|
+
_a.trys.push([6, 8, , 9]);
|
|
255
|
+
return [4 /*yield*/, this.load(privateIndexes)];
|
|
256
|
+
case 7:
|
|
257
|
+
_a.sent();
|
|
258
|
+
return [3 /*break*/, 9];
|
|
259
|
+
case 8:
|
|
260
|
+
err_4 = _a.sent();
|
|
261
|
+
onWarning(new Error("loadIndex: loading private type index(es) ".concat(err_4)));
|
|
262
|
+
return [3 /*break*/, 9];
|
|
263
|
+
case 9: return [2 /*return*/, {
|
|
264
|
+
private: privateIndexes,
|
|
265
|
+
public: publicIndexes,
|
|
266
|
+
}];
|
|
267
|
+
}
|
|
268
|
+
});
|
|
269
|
+
});
|
|
270
|
+
};
|
|
271
|
+
SolidLogic.prototype.createEmptyRdfDoc = function (doc, comment) {
|
|
272
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
273
|
+
return __generator(this, function (_a) {
|
|
274
|
+
switch (_a.label) {
|
|
275
|
+
case 0:
|
|
276
|
+
if (!this.store.fetcher) {
|
|
277
|
+
throw new Error("Cannot create empty rdf doc, have no fetcher");
|
|
278
|
+
}
|
|
279
|
+
return [4 /*yield*/, this.store.fetcher.webOperation("PUT", doc.uri, {
|
|
280
|
+
data: "# ".concat(new Date(), " ").concat(comment, "\n"),
|
|
281
|
+
contentType: "text/turtle",
|
|
282
|
+
})];
|
|
283
|
+
case 1:
|
|
284
|
+
_a.sent();
|
|
285
|
+
return [2 /*return*/];
|
|
286
|
+
}
|
|
287
|
+
});
|
|
288
|
+
});
|
|
289
|
+
};
|
|
290
|
+
// @@@@ use the one in rdflib.js when it is available and delete this
|
|
291
|
+
SolidLogic.prototype.updatePromise = function (del, ins) {
|
|
292
|
+
var _this = this;
|
|
293
|
+
if (ins === void 0) { ins = []; }
|
|
294
|
+
return new Promise(function (resolve, reject) {
|
|
295
|
+
if (!_this.store.updater) {
|
|
296
|
+
throw new Error("Cannot updatePromise, have no updater");
|
|
297
|
+
}
|
|
298
|
+
_this.store.updater.update(del, ins, function (_uri, ok, errorBody) {
|
|
299
|
+
if (!ok) {
|
|
300
|
+
reject(new Error(errorBody));
|
|
301
|
+
}
|
|
302
|
+
else {
|
|
303
|
+
resolve();
|
|
304
|
+
}
|
|
305
|
+
}); // callback
|
|
306
|
+
}); // promise
|
|
307
|
+
};
|
|
308
|
+
SolidLogic.prototype.isContainer = function (url) {
|
|
309
|
+
return this.util.isContainer(url);
|
|
310
|
+
};
|
|
311
|
+
SolidLogic.prototype.getContainerElements = function (containerNode) {
|
|
312
|
+
return this.util.getContainerElements(containerNode);
|
|
313
|
+
};
|
|
314
|
+
SolidLogic.prototype.getContainerMembers = function (containerUrl) {
|
|
315
|
+
return this.util.getContainerMembers(containerUrl);
|
|
316
|
+
};
|
|
317
|
+
SolidLogic.prototype.recursiveDelete = function (url) {
|
|
318
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
319
|
+
return __generator(this, function (_a) {
|
|
320
|
+
return [2 /*return*/, this.util.recursiveDelete(url)];
|
|
321
|
+
});
|
|
322
|
+
});
|
|
323
|
+
};
|
|
324
|
+
SolidLogic.prototype.clearStore = function () {
|
|
325
|
+
return this.util.clearStore();
|
|
326
|
+
};
|
|
327
|
+
SolidLogic.prototype.fetch = function (url, options) {
|
|
328
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
329
|
+
return __generator(this, function (_a) {
|
|
330
|
+
return [2 /*return*/, this.fetcher.fetch(url, options)];
|
|
331
|
+
});
|
|
332
|
+
});
|
|
333
|
+
};
|
|
334
|
+
return SolidLogic;
|
|
335
|
+
}());
|
|
336
|
+
exports.SolidLogic = SolidLogic;
|
|
337
|
+
var CustomError = /** @class */ (function (_super) {
|
|
338
|
+
__extends(CustomError, _super);
|
|
339
|
+
function CustomError(message) {
|
|
340
|
+
var _newTarget = this.constructor;
|
|
341
|
+
var _this = _super.call(this, message) || this;
|
|
342
|
+
// see: typescriptlang.org/docs/handbook/release-notes/typescript-2-2.html
|
|
343
|
+
Object.setPrototypeOf(_this, _newTarget.prototype); // restore prototype chain
|
|
344
|
+
_this.name = _newTarget.name; // stack traces display correctly now
|
|
345
|
+
return _this;
|
|
346
|
+
}
|
|
347
|
+
return CustomError;
|
|
348
|
+
}(Error));
|
|
349
|
+
var UnauthorizedError = /** @class */ (function (_super) {
|
|
350
|
+
__extends(UnauthorizedError, _super);
|
|
351
|
+
function UnauthorizedError() {
|
|
352
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
353
|
+
}
|
|
354
|
+
return UnauthorizedError;
|
|
355
|
+
}(CustomError));
|
|
356
|
+
exports.UnauthorizedError = UnauthorizedError;
|
|
357
|
+
var CrossOriginForbiddenError = /** @class */ (function (_super) {
|
|
358
|
+
__extends(CrossOriginForbiddenError, _super);
|
|
359
|
+
function CrossOriginForbiddenError() {
|
|
360
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
361
|
+
}
|
|
362
|
+
return CrossOriginForbiddenError;
|
|
363
|
+
}(CustomError));
|
|
364
|
+
exports.CrossOriginForbiddenError = CrossOriginForbiddenError;
|
|
365
|
+
var SameOriginForbiddenError = /** @class */ (function (_super) {
|
|
366
|
+
__extends(SameOriginForbiddenError, _super);
|
|
367
|
+
function SameOriginForbiddenError() {
|
|
368
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
369
|
+
}
|
|
370
|
+
return SameOriginForbiddenError;
|
|
371
|
+
}(CustomError));
|
|
372
|
+
exports.SameOriginForbiddenError = SameOriginForbiddenError;
|
|
373
|
+
var NotFoundError = /** @class */ (function (_super) {
|
|
374
|
+
__extends(NotFoundError, _super);
|
|
375
|
+
function NotFoundError() {
|
|
376
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
377
|
+
}
|
|
378
|
+
return NotFoundError;
|
|
379
|
+
}(CustomError));
|
|
380
|
+
exports.NotFoundError = NotFoundError;
|
|
381
|
+
var FetchError = /** @class */ (function (_super) {
|
|
382
|
+
__extends(FetchError, _super);
|
|
383
|
+
function FetchError(status, message) {
|
|
384
|
+
var _this = _super.call(this, message) || this;
|
|
385
|
+
_this.status = status;
|
|
386
|
+
return _this;
|
|
387
|
+
}
|
|
388
|
+
return FetchError;
|
|
389
|
+
}(CustomError));
|
|
390
|
+
exports.FetchError = FetchError;
|
|
38
391
|
//# 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,0CAA8B;AAE9B,oEAA6C;AAE7C,qDAAoD;AACpD,2DAA0D;AAE1D,8CAA6C;AAC7C,6CAAiC;AACjC,uDAAsD;AACtD,oDAAmD;AAGnD,oDAA+C;AAAtC,wGAAA,QAAQ,OAAA;AAEjB,IAAM,EAAE,GAAmB,IAAA,yBAAc,EAAC,GAAG,CAAC,CAAC;AAc/C;IAmBE,oBAAY,OAAuD,EAAE,gBAAyB;QAC5F,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC,KAAK,EAAe,CAAC,CAAC,oBAAoB;QAC3D,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,y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;IAA9C;;IAAgD,CAAC;IAAD,oBAAC;AAAD,CAAC,AAAjD,CAAmC,WAAW,GAAG;AAApC,sCAAa;AAE1B;IAAgC,8BAAW;IAGzC,oBAAY,MAAc,EAAE,OAAgB;QAA5C,YACE,kBAAM,OAAO,CAAC,SAEf;QADC,KAAI,CAAC,MAAM,GAAG,MAAM,CAAC;;IACvB,CAAC;IACH,iBAAC;AAAD,CAAC,AAPD,CAAgC,WAAW,GAO1C;AAPY,gCAAU"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { AuthnLogic
|
|
1
|
+
import { LiveStore, NamedNode } from "rdflib";
|
|
2
|
+
import { AuthnLogic } from "../authn";
|
|
3
|
+
import { SolidNamespace } from "../index";
|
|
3
4
|
export declare class ProfileLogic {
|
|
4
5
|
store: LiveStore;
|
|
5
6
|
ns: SolidNamespace;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProfileLogic.d.ts","sourceRoot":"","sources":["../../src/profile/ProfileLogic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"ProfileLogic.d.ts","sourceRoot":"","sources":["../../src/profile/ProfileLogic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,qBAAa,YAAY;IACvB,KAAK,EAAE,SAAS,CAAC;IACjB,EAAE,EAAE,cAAc,CAAC;IACnB,KAAK,EAAE,UAAU,CAAC;gBAEN,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE,UAAU;IAM7D,MAAM,IAAI,OAAO,CAAC,SAAS,CAAC;IASlC,UAAU,CAAC,IAAI,EAAE,SAAS,GAAG,SAAS;IAQhC,YAAY,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IASvD,OAAO,CAAC,WAAW;CAGpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProfileLogic.js","sourceRoot":"","sources":["../../src/profile/ProfileLogic.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"ProfileLogic.js","sourceRoot":"","sources":["../../src/profile/ProfileLogic.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA;IAKE,sBAAY,KAAgB,EAAE,EAAkB,EAAE,KAAiB;QACjE,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAEK,6BAAM,GAAZ;;;;;;;wBACQ,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC;wBACpC,IAAI,EAAE,KAAK,IAAI,EAAE;4BACf,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;yBAC3D;wBACD,qBAAM,CAAA,MAAA,IAAI,CAAC,KAAK,CAAC,OAAO,0CAAE,IAAI,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,CAAA,EAAA;;wBAAxC,SAAwC,CAAC;wBACzC,sBAAO,EAAE,EAAC;;;;KACX;IAED,iCAAU,GAAV,UAAW,IAAe;QACxB,IAAM,OAAO,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC,OAAO,EAAE;YACZ,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAC;SAC7C;QACD,OAAO,OAAoB,CAAC;IAC9B,CAAC;IAEK,mCAAY,GAAlB,UAAmB,IAAe;;;;;;4BAChC,qBAAM,CAAA,MAAA,IAAI,CAAC,KAAK,CAAC,OAAO,0CAAE,IAAI,CAAC,IAAI,CAAC,CAAA,EAAA;;wBAApC,SAAoC,CAAC;wBAC/B,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;wBACpF,IAAI,CAAC,SAAS,EAAE;4BACd,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAC;yBAC/C;wBACD,sBAAO,SAAsB,EAAC;;;;KAC/B;IAEO,kCAAW,GAAnB,UAAoB,EAAa;QAC/B,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,EAAE,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,SAAS,EAAE,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC;IAC3E,CAAC;IACH,mBAAC;AAAD,CAAC,AAxCD,IAwCC;AAxCY,oCAAY"}
|
|
File without changes
|
package/lib/uri.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uri.d.ts","sourceRoot":"","sources":["../src/uri.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAO,MAAM,QAAQ,CAAC;AAExC,wBAAgB,QAAQ,CAAC,GAAG,EAAE,SAAS,GAAG,SAAS,CAElD"}
|
|
File without changes
|
package/lib/uri.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uri.js","sourceRoot":"","sources":["../src/uri.ts"],"names":[],"mappings":";;;AAAA,iCAAwC;AAExC,SAAgB,QAAQ,CAAC,GAAc;IACrC,OAAO,IAAA,YAAG,EAAC,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG,IAAI,GAAG,CAAC,EAAE,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;AACvD,CAAC;AAFD,4BAEC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UtilityLogic.d.ts","sourceRoot":"","sources":["../../src/util/UtilityLogic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"UtilityLogic.d.ts","sourceRoot":"","sources":["../../src/util/UtilityLogic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAkC,MAAM,QAAQ,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAI1C,eAAO,MAAM,QAAQ,WAEpB,CAAC;AAYF;;GAEG;AACH,qBAAa,YAAY;IACvB,KAAK,EAAE,SAAS,CAAC;IACjB,EAAE,EAAE,cAAc,CAAC;IACnB,OAAO,EAAE;QAAE,KAAK,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,KAAK,GAAG,CAAA;KAAE,CAAC;gBAE5C,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,cAAc,EAAE,OAAO,EAAE;QAAE,KAAK,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,KAAK,GAAG,CAAA;KAAE;IAMnG,aAAa,CAAC,GAAG,EAAE,MAAM;IAWzB,mBAAmB,CAAC,OAAO,EAAE;QACjC,UAAU,EAAE,MAAM,CAAC;QACnB,SAAS,EAAE,MAAM,CAAC;QAClB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,MAAM,EAAE,MAAM,CAAA;KACf;IAsCK,OAAO,CAAC,GAAG,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;IAe5C,WAAW,CAAC,GAAG,EAAE,MAAM;IAIjB,eAAe,CAAC,GAAG,EAAE,MAAM;IAmB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