solid-ui 2.4.19-fbe4b548 → 2.4.20-8af353df
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/dist/main.js +586 -263
- package/dist/main.js.map +1 -1
- package/lib/versionInfo.js +3 -3
- package/lib/versionInfo.js.map +1 -1
- package/lib/widgets/dragAndDrop.js +1 -1
- package/lib/widgets/dragAndDrop.js.map +1 -1
- package/package.json +18 -18
package/dist/main.js
CHANGED
|
@@ -15167,10 +15167,10 @@ Object.defineProperty(exports, "__esModule", ({
|
|
|
15167
15167
|
}));
|
|
15168
15168
|
exports.versionInfo = void 0;
|
|
15169
15169
|
var versionInfo = {
|
|
15170
|
-
buildTime: '2022-03-
|
|
15171
|
-
commit: '
|
|
15170
|
+
buildTime: '2022-03-31T14:26:03Z',
|
|
15171
|
+
commit: '8af353df5e826d7795123d61f2adc8ab29238fbb',
|
|
15172
15172
|
npmInfo: {
|
|
15173
|
-
'solid-ui': '2.4.
|
|
15173
|
+
'solid-ui': '2.4.20',
|
|
15174
15174
|
npm: '6.14.16',
|
|
15175
15175
|
ares: '1.18.1',
|
|
15176
15176
|
brotli: '1.0.9',
|
|
@@ -16987,7 +16987,7 @@ function uploadFiles(fetcher, files, fileBase, imageBase, successHandler) {
|
|
|
16987
16987
|
} else {
|
|
16988
16988
|
var extension = mime.extension(theFile.type); // Note not simple: eg .mp3 => audio/mpeg; .mpga => audio/mpeg; audio/mp3 => .mp3
|
|
16989
16989
|
|
|
16990
|
-
if (extension && !theFile.name.endsWith('.' + extension) && // Not already has preferred extension? and ...
|
|
16990
|
+
if (extension && extension !== 'false' && !theFile.name.endsWith('.' + extension) && // Not already has preferred extension? and ...
|
|
16991
16991
|
theFile.type !== mime.lookup(theFile.name)) {
|
|
16992
16992
|
// the mime type of this ext is not the right one?
|
|
16993
16993
|
suffix = '_.' + extension; // console.log('MIME TYPE MISMATCH: ' + mime.lookup(theFile.name) + ': adding extension: ' + suffix)
|
|
@@ -43592,12 +43592,6 @@ class Term {
|
|
|
43592
43592
|
return this.id;
|
|
43593
43593
|
}
|
|
43594
43594
|
|
|
43595
|
-
// ### Implement hashCode for Immutable.js, since we implement `equals`
|
|
43596
|
-
// https://immutable-js.com/docs/v4.0.0/ValueObject/#hashCode()
|
|
43597
|
-
get hashCode() {
|
|
43598
|
-
return 0;
|
|
43599
|
-
}
|
|
43600
|
-
|
|
43601
43595
|
// ### Returns whether this object represents the same term as the other
|
|
43602
43596
|
equals(other) {
|
|
43603
43597
|
// If both terms were created by this library,
|
|
@@ -43609,6 +43603,12 @@ class Term {
|
|
|
43609
43603
|
this.value === other.value;
|
|
43610
43604
|
}
|
|
43611
43605
|
|
|
43606
|
+
// ### Implement hashCode for Immutable.js, since we implement `equals`
|
|
43607
|
+
// https://immutable-js.com/docs/v4.0.0/ValueObject/#hashCode()
|
|
43608
|
+
hashCode() {
|
|
43609
|
+
return 0;
|
|
43610
|
+
}
|
|
43611
|
+
|
|
43612
43612
|
// ### Returns a plain object representation of this term
|
|
43613
43613
|
toJSON() {
|
|
43614
43614
|
return {
|
|
@@ -44034,16 +44034,17 @@ class N3Lexer {
|
|
|
44034
44034
|
_tokenizeToEnd(callback, inputFinished) {
|
|
44035
44035
|
// Continue parsing as far as possible; the loop will return eventually
|
|
44036
44036
|
let input = this._input;
|
|
44037
|
-
|
|
44037
|
+
let currentLineLength = input.length;
|
|
44038
44038
|
while (true) {
|
|
44039
44039
|
// Count and skip whitespace lines
|
|
44040
44040
|
let whiteSpaceMatch, comment;
|
|
44041
44041
|
while (whiteSpaceMatch = this._newline.exec(input)) {
|
|
44042
44042
|
// Try to find a comment
|
|
44043
|
-
if (
|
|
44044
|
-
|
|
44043
|
+
if (this._comments && (comment = this._comment.exec(whiteSpaceMatch[0])))
|
|
44044
|
+
emitToken('comment', comment[1], '', this._line, whiteSpaceMatch[0].length);
|
|
44045
44045
|
// Advance the input
|
|
44046
44046
|
input = input.substr(whiteSpaceMatch[0].length, input.length);
|
|
44047
|
+
currentLineLength = input.length;
|
|
44047
44048
|
this._line++;
|
|
44048
44049
|
}
|
|
44049
44050
|
// Skip whitespace on current line
|
|
@@ -44055,9 +44056,10 @@ class N3Lexer {
|
|
|
44055
44056
|
// If the input is finished, emit EOF
|
|
44056
44057
|
if (inputFinished) {
|
|
44057
44058
|
// Try to find a final comment
|
|
44058
|
-
if (
|
|
44059
|
-
|
|
44060
|
-
|
|
44059
|
+
if (this._comments && (comment = this._comment.exec(input)))
|
|
44060
|
+
emitToken('comment', comment[1], '', this._line, input.length);
|
|
44061
|
+
input = null;
|
|
44062
|
+
emitToken('eof', '', '', this._line, 0);
|
|
44061
44063
|
}
|
|
44062
44064
|
return this._input = input;
|
|
44063
44065
|
}
|
|
@@ -44301,14 +44303,23 @@ class N3Lexer {
|
|
|
44301
44303
|
}
|
|
44302
44304
|
|
|
44303
44305
|
// Emit the parsed token
|
|
44304
|
-
const
|
|
44305
|
-
|
|
44306
|
+
const length = matchLength || match[0].length;
|
|
44307
|
+
const token = emitToken(type, value, prefix, line, length);
|
|
44306
44308
|
this.previousToken = token;
|
|
44307
44309
|
this._previousMarker = type;
|
|
44310
|
+
|
|
44308
44311
|
// Advance to next part to tokenize
|
|
44309
|
-
input = input.substr(
|
|
44312
|
+
input = input.substr(length, input.length);
|
|
44310
44313
|
}
|
|
44311
44314
|
|
|
44315
|
+
// Emits the token through the callback
|
|
44316
|
+
function emitToken(type, value, prefix, line, length) {
|
|
44317
|
+
const start = input ? currentLineLength - input.length : currentLineLength;
|
|
44318
|
+
const end = start + length;
|
|
44319
|
+
const token = { type, value, prefix, line, start, end };
|
|
44320
|
+
callback(null, token);
|
|
44321
|
+
return token;
|
|
44322
|
+
}
|
|
44312
44323
|
// Signals the syntax error through the callback
|
|
44313
44324
|
function reportSyntaxError(self) { callback(self._syntaxError(/^\S*/.exec(input)[0])); }
|
|
44314
44325
|
}
|
|
@@ -45580,7 +45591,7 @@ function inDefaultGraph(quad) {
|
|
|
45580
45591
|
|
|
45581
45592
|
// Creates a function that prepends the given IRI to a local name
|
|
45582
45593
|
function prefix(iri, factory) {
|
|
45583
|
-
return prefixes({ '': iri }, factory)('');
|
|
45594
|
+
return prefixes({ '': iri.value || iri }, factory)('');
|
|
45584
45595
|
}
|
|
45585
45596
|
|
|
45586
45597
|
// Creates a function that allows registering and expanding prefixes
|
|
@@ -48963,9 +48974,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
48963
48974
|
|
|
48964
48975
|
var _supports;
|
|
48965
48976
|
|
|
48966
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
48977
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
48967
48978
|
|
|
48968
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
48979
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
48969
48980
|
|
|
48970
48981
|
|
|
48971
48982
|
|
|
@@ -49066,9 +49077,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
49066
49077
|
/* harmony import */ var _extended_term_factory__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./extended-term-factory */ "./node_modules/rdflib/esm/factories/extended-term-factory.js");
|
|
49067
49078
|
|
|
49068
49079
|
|
|
49069
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
49080
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
49070
49081
|
|
|
49071
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
49082
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
49072
49083
|
|
|
49073
49084
|
|
|
49074
49085
|
|
|
@@ -49134,10 +49145,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
49134
49145
|
/* harmony export */ "default": () => (/* binding */ Fetcher)
|
|
49135
49146
|
/* harmony export */ });
|
|
49136
49147
|
/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");
|
|
49137
|
-
/* harmony import */ var
|
|
49138
|
-
/* harmony import */ var
|
|
49139
|
-
/* harmony import */ var
|
|
49140
|
-
/* harmony import */ var
|
|
49148
|
+
/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js");
|
|
49149
|
+
/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js");
|
|
49150
|
+
/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js");
|
|
49151
|
+
/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
|
|
49141
49152
|
/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
|
|
49142
49153
|
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
|
49143
49154
|
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js");
|
|
@@ -49168,7 +49179,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
49168
49179
|
|
|
49169
49180
|
|
|
49170
49181
|
|
|
49171
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0,
|
|
49182
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0,_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__["default"])(this, result); }; }
|
|
49172
49183
|
|
|
49173
49184
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
49174
49185
|
|
|
@@ -49255,7 +49266,7 @@ var getNS = function getNS(factory) {
|
|
|
49255
49266
|
|
|
49256
49267
|
var ns = getNS();
|
|
49257
49268
|
|
|
49258
|
-
var Handler = // TODO: Document, type
|
|
49269
|
+
var Handler = /*#__PURE__*/(0,_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4__["default"])( // TODO: Document, type
|
|
49259
49270
|
// TODO: Document, type
|
|
49260
49271
|
function Handler(response, dom) {
|
|
49261
49272
|
(0,_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_5__["default"])(this, Handler);
|
|
@@ -49267,12 +49278,12 @@ function Handler(response, dom) {
|
|
|
49267
49278
|
this.response = response; // The type assertion operator here might need to be removed.
|
|
49268
49279
|
|
|
49269
49280
|
this.dom = dom;
|
|
49270
|
-
};
|
|
49281
|
+
});
|
|
49271
49282
|
|
|
49272
49283
|
(0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__["default"])(Handler, "pattern", void 0);
|
|
49273
49284
|
|
|
49274
49285
|
var RDFXMLHandler = /*#__PURE__*/function (_Handler) {
|
|
49275
|
-
(0,
|
|
49286
|
+
(0,_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_1__["default"])(RDFXMLHandler, _Handler);
|
|
49276
49287
|
|
|
49277
49288
|
var _super = _createSuper(RDFXMLHandler);
|
|
49278
49289
|
|
|
@@ -49282,7 +49293,7 @@ var RDFXMLHandler = /*#__PURE__*/function (_Handler) {
|
|
|
49282
49293
|
return _super.apply(this, arguments);
|
|
49283
49294
|
}
|
|
49284
49295
|
|
|
49285
|
-
(0,
|
|
49296
|
+
(0,_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4__["default"])(RDFXMLHandler, [{
|
|
49286
49297
|
key: "parse",
|
|
49287
49298
|
value: function parse(fetcher,
|
|
49288
49299
|
/** An XML String */
|
|
@@ -49337,7 +49348,7 @@ var RDFXMLHandler = /*#__PURE__*/function (_Handler) {
|
|
|
49337
49348
|
RDFXMLHandler.pattern = new RegExp('application/rdf\\+xml');
|
|
49338
49349
|
|
|
49339
49350
|
var XHTMLHandler = /*#__PURE__*/function (_Handler2) {
|
|
49340
|
-
(0,
|
|
49351
|
+
(0,_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_1__["default"])(XHTMLHandler, _Handler2);
|
|
49341
49352
|
|
|
49342
49353
|
var _super2 = _createSuper(XHTMLHandler);
|
|
49343
49354
|
|
|
@@ -49347,7 +49358,7 @@ var XHTMLHandler = /*#__PURE__*/function (_Handler2) {
|
|
|
49347
49358
|
return _super2.apply(this, arguments);
|
|
49348
49359
|
}
|
|
49349
49360
|
|
|
49350
|
-
(0,
|
|
49361
|
+
(0,_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4__["default"])(XHTMLHandler, [{
|
|
49351
49362
|
key: "parse",
|
|
49352
49363
|
value: function parse(fetcher, responseText, options) {
|
|
49353
49364
|
var relation, reverse;
|
|
@@ -49431,7 +49442,7 @@ var XHTMLHandler = /*#__PURE__*/function (_Handler2) {
|
|
|
49431
49442
|
XHTMLHandler.pattern = new RegExp('application/xhtml');
|
|
49432
49443
|
|
|
49433
49444
|
var XMLHandler = /*#__PURE__*/function (_Handler3) {
|
|
49434
|
-
(0,
|
|
49445
|
+
(0,_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_1__["default"])(XMLHandler, _Handler3);
|
|
49435
49446
|
|
|
49436
49447
|
var _super3 = _createSuper(XMLHandler);
|
|
49437
49448
|
|
|
@@ -49441,7 +49452,7 @@ var XMLHandler = /*#__PURE__*/function (_Handler3) {
|
|
|
49441
49452
|
return _super3.apply(this, arguments);
|
|
49442
49453
|
}
|
|
49443
49454
|
|
|
49444
|
-
(0,
|
|
49455
|
+
(0,_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4__["default"])(XMLHandler, [{
|
|
49445
49456
|
key: "parse",
|
|
49446
49457
|
value: function parse(fetcher, responseText, options) {
|
|
49447
49458
|
var dom = _utils_js__WEBPACK_IMPORTED_MODULE_11__.parseXML(responseText); // XML Semantics defined by root element namespace
|
|
@@ -49525,7 +49536,7 @@ var XMLHandler = /*#__PURE__*/function (_Handler3) {
|
|
|
49525
49536
|
XMLHandler.pattern = new RegExp('(text|application)/(.*)xml');
|
|
49526
49537
|
|
|
49527
49538
|
var HTMLHandler = /*#__PURE__*/function (_Handler4) {
|
|
49528
|
-
(0,
|
|
49539
|
+
(0,_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_1__["default"])(HTMLHandler, _Handler4);
|
|
49529
49540
|
|
|
49530
49541
|
var _super4 = _createSuper(HTMLHandler);
|
|
49531
49542
|
|
|
@@ -49535,7 +49546,7 @@ var HTMLHandler = /*#__PURE__*/function (_Handler4) {
|
|
|
49535
49546
|
return _super4.apply(this, arguments);
|
|
49536
49547
|
}
|
|
49537
49548
|
|
|
49538
|
-
(0,
|
|
49549
|
+
(0,_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4__["default"])(HTMLHandler, [{
|
|
49539
49550
|
key: "parse",
|
|
49540
49551
|
value: function parse(fetcher, responseText, options) {
|
|
49541
49552
|
var kb = fetcher.store; // We only handle XHTML so we have to figure out if this is XML
|
|
@@ -49597,7 +49608,7 @@ var HTMLHandler = /*#__PURE__*/function (_Handler4) {
|
|
|
49597
49608
|
HTMLHandler.pattern = new RegExp('text/html');
|
|
49598
49609
|
|
|
49599
49610
|
var JsonLdHandler = /*#__PURE__*/function (_Handler5) {
|
|
49600
|
-
(0,
|
|
49611
|
+
(0,_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_1__["default"])(JsonLdHandler, _Handler5);
|
|
49601
49612
|
|
|
49602
49613
|
var _super5 = _createSuper(JsonLdHandler);
|
|
49603
49614
|
|
|
@@ -49607,7 +49618,7 @@ var JsonLdHandler = /*#__PURE__*/function (_Handler5) {
|
|
|
49607
49618
|
return _super5.apply(this, arguments);
|
|
49608
49619
|
}
|
|
49609
49620
|
|
|
49610
|
-
(0,
|
|
49621
|
+
(0,_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4__["default"])(JsonLdHandler, [{
|
|
49611
49622
|
key: "parse",
|
|
49612
49623
|
value: function parse(fetcher, responseText, options, response) {
|
|
49613
49624
|
var kb = fetcher.store;
|
|
@@ -49643,7 +49654,7 @@ var JsonLdHandler = /*#__PURE__*/function (_Handler5) {
|
|
|
49643
49654
|
JsonLdHandler.pattern = /application\/ld\+json/;
|
|
49644
49655
|
|
|
49645
49656
|
var TextHandler = /*#__PURE__*/function (_Handler6) {
|
|
49646
|
-
(0,
|
|
49657
|
+
(0,_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_1__["default"])(TextHandler, _Handler6);
|
|
49647
49658
|
|
|
49648
49659
|
var _super6 = _createSuper(TextHandler);
|
|
49649
49660
|
|
|
@@ -49653,7 +49664,7 @@ var TextHandler = /*#__PURE__*/function (_Handler6) {
|
|
|
49653
49664
|
return _super6.apply(this, arguments);
|
|
49654
49665
|
}
|
|
49655
49666
|
|
|
49656
|
-
(0,
|
|
49667
|
+
(0,_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4__["default"])(TextHandler, [{
|
|
49657
49668
|
key: "parse",
|
|
49658
49669
|
value: function parse(fetcher, responseText, options) {
|
|
49659
49670
|
// We only speak dialects of XML right now. Is this XML?
|
|
@@ -49697,7 +49708,7 @@ var TextHandler = /*#__PURE__*/function (_Handler6) {
|
|
|
49697
49708
|
TextHandler.pattern = new RegExp('text/plain');
|
|
49698
49709
|
|
|
49699
49710
|
var N3Handler = /*#__PURE__*/function (_Handler7) {
|
|
49700
|
-
(0,
|
|
49711
|
+
(0,_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_1__["default"])(N3Handler, _Handler7);
|
|
49701
49712
|
|
|
49702
49713
|
var _super7 = _createSuper(N3Handler);
|
|
49703
49714
|
|
|
@@ -49707,7 +49718,7 @@ var N3Handler = /*#__PURE__*/function (_Handler7) {
|
|
|
49707
49718
|
return _super7.apply(this, arguments);
|
|
49708
49719
|
}
|
|
49709
49720
|
|
|
49710
|
-
(0,
|
|
49721
|
+
(0,_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4__["default"])(N3Handler, [{
|
|
49711
49722
|
key: "parse",
|
|
49712
49723
|
value: function parse(fetcher, responseText, options, response) {
|
|
49713
49724
|
// Parse the text of this N3 file
|
|
@@ -49896,7 +49907,7 @@ var Fetcher = /*#__PURE__*/function () {
|
|
|
49896
49907
|
});
|
|
49897
49908
|
}
|
|
49898
49909
|
|
|
49899
|
-
(0,
|
|
49910
|
+
(0,_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4__["default"])(Fetcher, [{
|
|
49900
49911
|
key: "load",
|
|
49901
49912
|
value:
|
|
49902
49913
|
/**
|
|
@@ -52352,109 +52363,110 @@ var Formula = /*#__PURE__*/function (_Node) {
|
|
|
52352
52363
|
"use strict";
|
|
52353
52364
|
__webpack_require__.r(__webpack_exports__);
|
|
52354
52365
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
52355
|
-
/* harmony export */ "BlankNode": () => (/* reexport safe */
|
|
52356
|
-
/* harmony export */ "Collection": () => (/* reexport safe */
|
|
52366
|
+
/* harmony export */ "BlankNode": () => (/* reexport safe */ _blank_node__WEBPACK_IMPORTED_MODULE_10__["default"]),
|
|
52367
|
+
/* harmony export */ "Collection": () => (/* reexport safe */ _collection__WEBPACK_IMPORTED_MODULE_12__["default"]),
|
|
52357
52368
|
/* harmony export */ "ConnectedStore": () => (/* binding */ ConnectedStore),
|
|
52358
|
-
/* harmony export */ "DataFactory": () => (/* reexport safe */
|
|
52359
|
-
/* harmony export */ "Empty": () => (/* reexport safe */
|
|
52360
|
-
/* harmony export */ "Fetcher": () => (/* reexport safe */
|
|
52361
|
-
/* harmony export */ "Formula": () => (/* reexport safe */
|
|
52362
|
-
/* harmony export */ "IndexedFormula": () => (/* reexport safe */
|
|
52363
|
-
/* harmony export */ "Literal": () => (/* reexport safe */
|
|
52369
|
+
/* harmony export */ "DataFactory": () => (/* reexport safe */ _factories_rdflib_data_factory__WEBPACK_IMPORTED_MODULE_7__["default"]),
|
|
52370
|
+
/* harmony export */ "Empty": () => (/* reexport safe */ _empty__WEBPACK_IMPORTED_MODULE_14__["default"]),
|
|
52371
|
+
/* harmony export */ "Fetcher": () => (/* reexport safe */ _fetcher__WEBPACK_IMPORTED_MODULE_15__["default"]),
|
|
52372
|
+
/* harmony export */ "Formula": () => (/* reexport safe */ _formula__WEBPACK_IMPORTED_MODULE_8__["default"]),
|
|
52373
|
+
/* harmony export */ "IndexedFormula": () => (/* reexport safe */ _store__WEBPACK_IMPORTED_MODULE_16__["default"]),
|
|
52374
|
+
/* harmony export */ "Literal": () => (/* reexport safe */ _literal__WEBPACK_IMPORTED_MODULE_18__["default"]),
|
|
52364
52375
|
/* harmony export */ "LiveStore": () => (/* binding */ LiveStore),
|
|
52365
|
-
/* harmony export */ "N3Parser": () => (/* reexport safe */
|
|
52366
|
-
/* harmony export */ "NamedNode": () => (/* reexport safe */
|
|
52367
|
-
/* harmony export */ "Namespace": () => (/* reexport safe */
|
|
52376
|
+
/* harmony export */ "N3Parser": () => (/* reexport safe */ _n3parser__WEBPACK_IMPORTED_MODULE_20__["default"]),
|
|
52377
|
+
/* harmony export */ "NamedNode": () => (/* reexport safe */ _named_node__WEBPACK_IMPORTED_MODULE_21__["default"]),
|
|
52378
|
+
/* harmony export */ "Namespace": () => (/* reexport safe */ _namespace__WEBPACK_IMPORTED_MODULE_22__["default"]),
|
|
52368
52379
|
/* harmony export */ "NextId": () => (/* binding */ NextId),
|
|
52369
|
-
/* harmony export */ "Node": () => (/* reexport safe */
|
|
52370
|
-
/* harmony export */ "Query": () => (/* reexport safe */
|
|
52371
|
-
/* harmony export */ "RDFParser": () => (/* reexport safe */
|
|
52372
|
-
/* harmony export */ "RDFaProcessor": () => (/* reexport safe */
|
|
52373
|
-
/* harmony export */ "SPARQLToQuery": () => (/* reexport safe */
|
|
52374
|
-
/* harmony export */ "Serializer": () => (/* reexport safe */
|
|
52375
|
-
/* harmony export */ "Statement": () => (/* reexport safe */
|
|
52376
|
-
/* harmony export */ "Store": () => (/* reexport safe */
|
|
52377
|
-
/* harmony export */ "UpdateManager": () => (/* reexport safe */
|
|
52378
|
-
/* harmony export */ "UpdatesSocket": () => (/* reexport safe */
|
|
52379
|
-
/* harmony export */ "UpdatesVia": () => (/* reexport safe */
|
|
52380
|
-
/* harmony export */ "Util": () => (/* reexport module object */
|
|
52381
|
-
/* harmony export */ "Variable": () => (/* reexport safe */
|
|
52380
|
+
/* harmony export */ "Node": () => (/* reexport safe */ _node__WEBPACK_IMPORTED_MODULE_9__["default"]),
|
|
52381
|
+
/* harmony export */ "Query": () => (/* reexport safe */ _query__WEBPACK_IMPORTED_MODULE_24__.Query),
|
|
52382
|
+
/* harmony export */ "RDFParser": () => (/* reexport safe */ _rdfxmlparser__WEBPACK_IMPORTED_MODULE_27__["default"]),
|
|
52383
|
+
/* harmony export */ "RDFaProcessor": () => (/* reexport safe */ _rdfaparser__WEBPACK_IMPORTED_MODULE_26__["default"]),
|
|
52384
|
+
/* harmony export */ "SPARQLToQuery": () => (/* reexport safe */ _sparql_to_query__WEBPACK_IMPORTED_MODULE_30__["default"]),
|
|
52385
|
+
/* harmony export */ "Serializer": () => (/* reexport safe */ _serializer__WEBPACK_IMPORTED_MODULE_29__["default"]),
|
|
52386
|
+
/* harmony export */ "Statement": () => (/* reexport safe */ _statement__WEBPACK_IMPORTED_MODULE_32__["default"]),
|
|
52387
|
+
/* harmony export */ "Store": () => (/* reexport safe */ _store__WEBPACK_IMPORTED_MODULE_16__["default"]),
|
|
52388
|
+
/* harmony export */ "UpdateManager": () => (/* reexport safe */ _update_manager__WEBPACK_IMPORTED_MODULE_33__["default"]),
|
|
52389
|
+
/* harmony export */ "UpdatesSocket": () => (/* reexport safe */ _updates_via__WEBPACK_IMPORTED_MODULE_34__.UpdatesSocket),
|
|
52390
|
+
/* harmony export */ "UpdatesVia": () => (/* reexport safe */ _updates_via__WEBPACK_IMPORTED_MODULE_34__.UpdatesVia),
|
|
52391
|
+
/* harmony export */ "Util": () => (/* reexport module object */ _utils_js__WEBPACK_IMPORTED_MODULE_36__),
|
|
52392
|
+
/* harmony export */ "Variable": () => (/* reexport safe */ _variable__WEBPACK_IMPORTED_MODULE_37__["default"]),
|
|
52382
52393
|
/* harmony export */ "blankNode": () => (/* binding */ blankNode),
|
|
52383
|
-
/* harmony export */ "convert": () => (/* reexport module object */
|
|
52394
|
+
/* harmony export */ "convert": () => (/* reexport module object */ _convert__WEBPACK_IMPORTED_MODULE_13__),
|
|
52384
52395
|
/* harmony export */ "defaultGraph": () => (/* binding */ defaultGraph),
|
|
52385
52396
|
/* harmony export */ "fetcher": () => (/* binding */ fetcher),
|
|
52386
52397
|
/* harmony export */ "fromNT": () => (/* binding */ fromNT),
|
|
52387
52398
|
/* harmony export */ "graph": () => (/* binding */ graph),
|
|
52388
|
-
/* harmony export */ "isBlankNode": () => (/* reexport safe */
|
|
52389
|
-
/* harmony export */ "isCollection": () => (/* reexport safe */
|
|
52390
|
-
/* harmony export */ "isGraph": () => (/* reexport safe */
|
|
52391
|
-
/* harmony export */ "isLiteral": () => (/* reexport safe */
|
|
52392
|
-
/* harmony export */ "isNamedNode": () => (/* reexport safe */
|
|
52393
|
-
/* harmony export */ "isPredicate": () => (/* reexport safe */
|
|
52394
|
-
/* harmony export */ "isQuad": () => (/* reexport safe */
|
|
52395
|
-
/* harmony export */ "isRDFObject": () => (/* reexport safe */
|
|
52396
|
-
/* harmony export */ "isRDFlibObject": () => (/* reexport safe */
|
|
52397
|
-
/* harmony export */ "isStatement": () => (/* reexport safe */
|
|
52398
|
-
/* harmony export */ "isStore": () => (/* reexport safe */
|
|
52399
|
-
/* harmony export */ "isSubject": () => (/* reexport safe */
|
|
52400
|
-
/* harmony export */ "isTerm": () => (/* reexport safe */
|
|
52401
|
-
/* harmony export */ "isVariable": () => (/* reexport safe */
|
|
52402
|
-
/* harmony export */ "jsonParser": () => (/* reexport safe */
|
|
52399
|
+
/* harmony export */ "isBlankNode": () => (/* reexport safe */ _utils_terms__WEBPACK_IMPORTED_MODULE_11__.isBlankNode),
|
|
52400
|
+
/* harmony export */ "isCollection": () => (/* reexport safe */ _utils_terms__WEBPACK_IMPORTED_MODULE_11__.isCollection),
|
|
52401
|
+
/* harmony export */ "isGraph": () => (/* reexport safe */ _utils_terms__WEBPACK_IMPORTED_MODULE_11__.isGraph),
|
|
52402
|
+
/* harmony export */ "isLiteral": () => (/* reexport safe */ _utils_terms__WEBPACK_IMPORTED_MODULE_11__.isLiteral),
|
|
52403
|
+
/* harmony export */ "isNamedNode": () => (/* reexport safe */ _utils_terms__WEBPACK_IMPORTED_MODULE_11__.isNamedNode),
|
|
52404
|
+
/* harmony export */ "isPredicate": () => (/* reexport safe */ _utils_terms__WEBPACK_IMPORTED_MODULE_11__.isPredicate),
|
|
52405
|
+
/* harmony export */ "isQuad": () => (/* reexport safe */ _utils_terms__WEBPACK_IMPORTED_MODULE_11__.isQuad),
|
|
52406
|
+
/* harmony export */ "isRDFObject": () => (/* reexport safe */ _utils_terms__WEBPACK_IMPORTED_MODULE_11__.isRDFObject),
|
|
52407
|
+
/* harmony export */ "isRDFlibObject": () => (/* reexport safe */ _utils_terms__WEBPACK_IMPORTED_MODULE_11__.isRDFlibObject),
|
|
52408
|
+
/* harmony export */ "isStatement": () => (/* reexport safe */ _utils_terms__WEBPACK_IMPORTED_MODULE_11__.isStatement),
|
|
52409
|
+
/* harmony export */ "isStore": () => (/* reexport safe */ _utils_terms__WEBPACK_IMPORTED_MODULE_11__.isStore),
|
|
52410
|
+
/* harmony export */ "isSubject": () => (/* reexport safe */ _utils_terms__WEBPACK_IMPORTED_MODULE_11__.isSubject),
|
|
52411
|
+
/* harmony export */ "isTerm": () => (/* reexport safe */ _utils_terms__WEBPACK_IMPORTED_MODULE_11__.isTerm),
|
|
52412
|
+
/* harmony export */ "isVariable": () => (/* reexport safe */ _utils_terms__WEBPACK_IMPORTED_MODULE_11__.isVariable),
|
|
52413
|
+
/* harmony export */ "jsonParser": () => (/* reexport safe */ _jsonparser__WEBPACK_IMPORTED_MODULE_17__["default"]),
|
|
52403
52414
|
/* harmony export */ "lit": () => (/* binding */ lit),
|
|
52404
52415
|
/* harmony export */ "literal": () => (/* binding */ literal),
|
|
52405
|
-
/* harmony export */ "log": () => (/* reexport safe */
|
|
52416
|
+
/* harmony export */ "log": () => (/* reexport safe */ _log__WEBPACK_IMPORTED_MODULE_19__["default"]),
|
|
52406
52417
|
/* harmony export */ "namedNode": () => (/* binding */ namedNode),
|
|
52407
|
-
/* harmony export */ "parse": () => (/* reexport safe */
|
|
52418
|
+
/* harmony export */ "parse": () => (/* reexport safe */ _parse__WEBPACK_IMPORTED_MODULE_23__["default"]),
|
|
52408
52419
|
/* harmony export */ "quad": () => (/* binding */ quad),
|
|
52409
|
-
/* harmony export */ "queryToSPARQL": () => (/* reexport safe */
|
|
52410
|
-
/* harmony export */ "serialize": () => (/* reexport safe */
|
|
52411
|
-
/* harmony export */ "sparqlUpdateParser": () => (/* reexport safe */
|
|
52420
|
+
/* harmony export */ "queryToSPARQL": () => (/* reexport safe */ _query_to_sparql__WEBPACK_IMPORTED_MODULE_25__["default"]),
|
|
52421
|
+
/* harmony export */ "serialize": () => (/* reexport safe */ _serialize__WEBPACK_IMPORTED_MODULE_28__["default"]),
|
|
52422
|
+
/* harmony export */ "sparqlUpdateParser": () => (/* reexport safe */ _patch_parser__WEBPACK_IMPORTED_MODULE_31__["default"]),
|
|
52412
52423
|
/* harmony export */ "st": () => (/* binding */ st),
|
|
52413
52424
|
/* harmony export */ "sym": () => (/* binding */ namedNode),
|
|
52414
52425
|
/* harmony export */ "term": () => (/* binding */ term),
|
|
52415
|
-
/* harmony export */ "termValue": () => (/* reexport safe */
|
|
52426
|
+
/* harmony export */ "termValue": () => (/* reexport safe */ _utils_termValue__WEBPACK_IMPORTED_MODULE_38__.termValue),
|
|
52416
52427
|
/* harmony export */ "triple": () => (/* binding */ triple),
|
|
52417
|
-
/* harmony export */ "uri": () => (/* reexport module object */
|
|
52428
|
+
/* harmony export */ "uri": () => (/* reexport module object */ _uri__WEBPACK_IMPORTED_MODULE_35__),
|
|
52418
52429
|
/* harmony export */ "variable": () => (/* binding */ variable)
|
|
52419
52430
|
/* harmony export */ });
|
|
52420
|
-
/* harmony import */ var
|
|
52421
|
-
/* harmony import */ var
|
|
52422
|
-
/* harmony import */ var
|
|
52423
|
-
/* harmony import */ var
|
|
52424
|
-
/* harmony import */ var
|
|
52425
|
-
/* harmony import */ var
|
|
52426
|
-
/* harmony import */ var
|
|
52427
|
-
/* harmony import */ var
|
|
52428
|
-
/* harmony import */ var
|
|
52429
|
-
/* harmony import */ var
|
|
52430
|
-
/* harmony import */ var
|
|
52431
|
-
/* harmony import */ var
|
|
52432
|
-
/* harmony import */ var
|
|
52433
|
-
/* harmony import */ var
|
|
52434
|
-
/* harmony import */ var
|
|
52435
|
-
/* harmony import */ var
|
|
52436
|
-
/* harmony import */ var
|
|
52437
|
-
/* harmony import */ var
|
|
52438
|
-
/* harmony import */ var
|
|
52439
|
-
/* harmony import */ var
|
|
52440
|
-
/* harmony import */ var
|
|
52441
|
-
/* harmony import */ var
|
|
52442
|
-
/* harmony import */ var
|
|
52443
|
-
/* harmony import */ var
|
|
52444
|
-
/* harmony import */ var
|
|
52445
|
-
/* harmony import */ var
|
|
52446
|
-
/* harmony import */ var
|
|
52447
|
-
/* harmony import */ var
|
|
52448
|
-
/* harmony import */ var
|
|
52449
|
-
/* harmony import */ var
|
|
52450
|
-
/* harmony import */ var
|
|
52451
|
-
/* harmony import */ var
|
|
52452
|
-
/* harmony import */ var
|
|
52453
|
-
/* harmony import */ var
|
|
52454
|
-
/* harmony import */ var
|
|
52455
|
-
/* harmony import */ var
|
|
52456
|
-
/* harmony import */ var
|
|
52457
|
-
/* harmony import */ var
|
|
52431
|
+
/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
|
|
52432
|
+
/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
|
|
52433
|
+
/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");
|
|
52434
|
+
/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js");
|
|
52435
|
+
/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js");
|
|
52436
|
+
/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js");
|
|
52437
|
+
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
|
52438
|
+
/* harmony import */ var _blank_node__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./blank-node */ "./node_modules/rdflib/esm/blank-node.js");
|
|
52439
|
+
/* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./collection */ "./node_modules/rdflib/esm/collection.js");
|
|
52440
|
+
/* harmony import */ var _convert__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./convert */ "./node_modules/rdflib/esm/convert.js");
|
|
52441
|
+
/* harmony import */ var _empty__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./empty */ "./node_modules/rdflib/esm/empty.js");
|
|
52442
|
+
/* harmony import */ var _fetcher__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./fetcher */ "./node_modules/rdflib/esm/fetcher.js");
|
|
52443
|
+
/* harmony import */ var _formula__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./formula */ "./node_modules/rdflib/esm/formula.js");
|
|
52444
|
+
/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./store */ "./node_modules/rdflib/esm/store.js");
|
|
52445
|
+
/* harmony import */ var _jsonparser__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./jsonparser */ "./node_modules/rdflib/esm/jsonparser.js");
|
|
52446
|
+
/* harmony import */ var _literal__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./literal */ "./node_modules/rdflib/esm/literal.js");
|
|
52447
|
+
/* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./log */ "./node_modules/rdflib/esm/log.js");
|
|
52448
|
+
/* harmony import */ var _n3parser__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./n3parser */ "./node_modules/rdflib/esm/n3parser.js");
|
|
52449
|
+
/* harmony import */ var _named_node__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./named-node */ "./node_modules/rdflib/esm/named-node.js");
|
|
52450
|
+
/* harmony import */ var _namespace__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./namespace */ "./node_modules/rdflib/esm/namespace.js");
|
|
52451
|
+
/* harmony import */ var _node__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./node */ "./node_modules/rdflib/esm/node.js");
|
|
52452
|
+
/* harmony import */ var _parse__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./parse */ "./node_modules/rdflib/esm/parse.js");
|
|
52453
|
+
/* harmony import */ var _query__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./query */ "./node_modules/rdflib/esm/query.js");
|
|
52454
|
+
/* harmony import */ var _query_to_sparql__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./query-to-sparql */ "./node_modules/rdflib/esm/query-to-sparql.js");
|
|
52455
|
+
/* harmony import */ var _rdfaparser__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./rdfaparser */ "./node_modules/rdflib/esm/rdfaparser.js");
|
|
52456
|
+
/* harmony import */ var _rdfxmlparser__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./rdfxmlparser */ "./node_modules/rdflib/esm/rdfxmlparser.js");
|
|
52457
|
+
/* harmony import */ var _serialize__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./serialize */ "./node_modules/rdflib/esm/serialize.js");
|
|
52458
|
+
/* harmony import */ var _serializer__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./serializer */ "./node_modules/rdflib/esm/serializer.js");
|
|
52459
|
+
/* harmony import */ var _sparql_to_query__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./sparql-to-query */ "./node_modules/rdflib/esm/sparql-to-query.js");
|
|
52460
|
+
/* harmony import */ var _patch_parser__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./patch-parser */ "./node_modules/rdflib/esm/patch-parser.js");
|
|
52461
|
+
/* harmony import */ var _statement__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./statement */ "./node_modules/rdflib/esm/statement.js");
|
|
52462
|
+
/* harmony import */ var _update_manager__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./update-manager */ "./node_modules/rdflib/esm/update-manager.js");
|
|
52463
|
+
/* harmony import */ var _updates_via__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./updates-via */ "./node_modules/rdflib/esm/updates-via.js");
|
|
52464
|
+
/* harmony import */ var _uri__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./uri */ "./node_modules/rdflib/esm/uri.js");
|
|
52465
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./utils-js */ "./node_modules/rdflib/esm/utils-js.js");
|
|
52466
|
+
/* harmony import */ var _variable__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./variable */ "./node_modules/rdflib/esm/variable.js");
|
|
52467
|
+
/* harmony import */ var _factories_rdflib_data_factory__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./factories/rdflib-data-factory */ "./node_modules/rdflib/esm/factories/rdflib-data-factory.js");
|
|
52468
|
+
/* harmony import */ var _utils_terms__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./utils/terms */ "./node_modules/rdflib/esm/utils/terms.js");
|
|
52469
|
+
/* harmony import */ var _utils_termValue__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./utils/termValue */ "./node_modules/rdflib/esm/utils/termValue.js");
|
|
52458
52470
|
|
|
52459
52471
|
|
|
52460
52472
|
|
|
@@ -52462,7 +52474,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
52462
52474
|
|
|
52463
52475
|
|
|
52464
52476
|
|
|
52465
|
-
|
|
52477
|
+
|
|
52478
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0,_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__["default"])(this, result); }; }
|
|
52466
52479
|
|
|
52467
52480
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
52468
52481
|
|
|
@@ -52500,8 +52513,8 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
52500
52513
|
|
|
52501
52514
|
var boundDataFactory = {};
|
|
52502
52515
|
|
|
52503
|
-
for (var name in
|
|
52504
|
-
if (typeof
|
|
52516
|
+
for (var name in _factories_rdflib_data_factory__WEBPACK_IMPORTED_MODULE_7__["default"]) {
|
|
52517
|
+
if (typeof _factories_rdflib_data_factory__WEBPACK_IMPORTED_MODULE_7__["default"][name] === 'function') boundDataFactory[name] = _factories_rdflib_data_factory__WEBPACK_IMPORTED_MODULE_7__["default"][name].bind(_factories_rdflib_data_factory__WEBPACK_IMPORTED_MODULE_7__["default"]);
|
|
52505
52518
|
}
|
|
52506
52519
|
|
|
52507
52520
|
var fetcher = boundDataFactory.fetcher,
|
|
@@ -52515,58 +52528,58 @@ var fetcher = boundDataFactory.fetcher,
|
|
|
52515
52528
|
literal = boundDataFactory.literal,
|
|
52516
52529
|
quad = boundDataFactory.quad,
|
|
52517
52530
|
triple = boundDataFactory.triple;
|
|
52518
|
-
var formula = new
|
|
52531
|
+
var formula = new _formula__WEBPACK_IMPORTED_MODULE_8__["default"]();
|
|
52519
52532
|
|
|
52520
52533
|
var fromNT = function fromNT(str) {
|
|
52521
52534
|
return formula.fromNT(str);
|
|
52522
52535
|
};
|
|
52523
52536
|
|
|
52524
|
-
var term =
|
|
52537
|
+
var term = _node__WEBPACK_IMPORTED_MODULE_9__["default"].fromValue; // TODO: this export is broken;
|
|
52525
52538
|
// it exports the _current_ value of nextId, which is always 0
|
|
52526
52539
|
|
|
52527
|
-
var NextId =
|
|
52540
|
+
var NextId = _blank_node__WEBPACK_IMPORTED_MODULE_10__["default"].nextId;
|
|
52528
52541
|
|
|
52529
52542
|
|
|
52530
52543
|
|
|
52531
52544
|
var ConnectedStore = /*#__PURE__*/function (_Store) {
|
|
52532
|
-
(0,
|
|
52545
|
+
(0,_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__["default"])(ConnectedStore, _Store);
|
|
52533
52546
|
|
|
52534
52547
|
var _super = _createSuper(ConnectedStore);
|
|
52535
52548
|
|
|
52536
52549
|
function ConnectedStore(features) {
|
|
52537
52550
|
var _this;
|
|
52538
52551
|
|
|
52539
|
-
(0,
|
|
52552
|
+
(0,_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__["default"])(this, ConnectedStore);
|
|
52540
52553
|
|
|
52541
52554
|
_this = _super.call(this, features);
|
|
52542
52555
|
|
|
52543
|
-
(0,
|
|
52556
|
+
(0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__["default"])((0,_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__["default"])(_this), "fetcher", void 0);
|
|
52544
52557
|
|
|
52545
|
-
_this.fetcher = new
|
|
52558
|
+
_this.fetcher = new _fetcher__WEBPACK_IMPORTED_MODULE_15__["default"]((0,_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__["default"])(_this), {});
|
|
52546
52559
|
return _this;
|
|
52547
52560
|
}
|
|
52548
52561
|
|
|
52549
|
-
return ConnectedStore;
|
|
52550
|
-
}(
|
|
52562
|
+
return (0,_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__["default"])(ConnectedStore);
|
|
52563
|
+
}(_store__WEBPACK_IMPORTED_MODULE_16__["default"]);
|
|
52551
52564
|
var LiveStore = /*#__PURE__*/function (_ConnectedStore) {
|
|
52552
|
-
(0,
|
|
52565
|
+
(0,_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__["default"])(LiveStore, _ConnectedStore);
|
|
52553
52566
|
|
|
52554
52567
|
var _super2 = _createSuper(LiveStore);
|
|
52555
52568
|
|
|
52556
52569
|
function LiveStore(features) {
|
|
52557
52570
|
var _this2;
|
|
52558
52571
|
|
|
52559
|
-
(0,
|
|
52572
|
+
(0,_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__["default"])(this, LiveStore);
|
|
52560
52573
|
|
|
52561
52574
|
_this2 = _super2.call(this, features);
|
|
52562
52575
|
|
|
52563
|
-
(0,
|
|
52576
|
+
(0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__["default"])((0,_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__["default"])(_this2), "updater", void 0);
|
|
52564
52577
|
|
|
52565
|
-
_this2.updater = new
|
|
52578
|
+
_this2.updater = new _update_manager__WEBPACK_IMPORTED_MODULE_33__["default"]((0,_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__["default"])(_this2));
|
|
52566
52579
|
return _this2;
|
|
52567
52580
|
}
|
|
52568
52581
|
|
|
52569
|
-
return LiveStore;
|
|
52582
|
+
return (0,_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__["default"])(LiveStore);
|
|
52570
52583
|
}(ConnectedStore);
|
|
52571
52584
|
|
|
52572
52585
|
/***/ }),
|
|
@@ -55807,11 +55820,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
55807
55820
|
/* harmony export */ "Query": () => (/* binding */ Query),
|
|
55808
55821
|
/* harmony export */ "indexedFormulaQuery": () => (/* binding */ indexedFormulaQuery)
|
|
55809
55822
|
/* harmony export */ });
|
|
55810
|
-
/* harmony import */ var
|
|
55811
|
-
/* harmony import */ var
|
|
55812
|
-
/* harmony import */ var
|
|
55813
|
-
/* harmony import */ var
|
|
55814
|
-
/* harmony import */ var
|
|
55823
|
+
/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
|
|
55824
|
+
/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
|
|
55825
|
+
/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./store */ "./node_modules/rdflib/esm/store.js");
|
|
55826
|
+
/* harmony import */ var _utils_default_graph_uri__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils/default-graph-uri */ "./node_modules/rdflib/esm/utils/default-graph-uri.js");
|
|
55827
|
+
/* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./log */ "./node_modules/rdflib/esm/log.js");
|
|
55828
|
+
/* harmony import */ var _uri__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./uri */ "./node_modules/rdflib/esm/uri.js");
|
|
55829
|
+
|
|
55815
55830
|
|
|
55816
55831
|
// Matching a formula against another formula
|
|
55817
55832
|
// Assync as well as Synchronously
|
|
@@ -55840,17 +55855,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
55840
55855
|
* Query class, for tracking queries the user has in the UI.
|
|
55841
55856
|
*/
|
|
55842
55857
|
|
|
55843
|
-
var Query = function Query(name, id) {
|
|
55844
|
-
(0,
|
|
55858
|
+
var Query = /*#__PURE__*/(0,_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__["default"])(function Query(name, id) {
|
|
55859
|
+
(0,_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__["default"])(this, Query);
|
|
55845
55860
|
|
|
55846
|
-
this.pat = new
|
|
55861
|
+
this.pat = new _store__WEBPACK_IMPORTED_MODULE_2__["default"](); // The pattern to search for
|
|
55847
55862
|
|
|
55848
55863
|
this.vars = []; // Used by UI code but not in query.js
|
|
55849
55864
|
// this.orderBy = [] // Not used yet
|
|
55850
55865
|
|
|
55851
55866
|
this.name = name;
|
|
55852
55867
|
this.id = id;
|
|
55853
|
-
};
|
|
55868
|
+
});
|
|
55854
55869
|
/**
|
|
55855
55870
|
* This function will match a pattern to the current Store
|
|
55856
55871
|
*
|
|
@@ -55927,7 +55942,7 @@ function indexedFormulaQuery(myQuery, callback, fetcher, onDone) {
|
|
|
55927
55942
|
other = formula.redirections[other];
|
|
55928
55943
|
}
|
|
55929
55944
|
|
|
55930
|
-
if (actual.equals(other) || actual.uri && actual.uri ===
|
|
55945
|
+
if (actual.equals(other) || actual.uri && actual.uri === _utils_default_graph_uri__WEBPACK_IMPORTED_MODULE_3__.defaultGraphURI) {
|
|
55931
55946
|
// Used to mean 'any graph' in a query
|
|
55932
55947
|
return [[[], null]];
|
|
55933
55948
|
}
|
|
@@ -56071,7 +56086,7 @@ function indexedFormulaQuery(myQuery, callback, fetcher, onDone) {
|
|
|
56071
56086
|
}
|
|
56072
56087
|
}
|
|
56073
56088
|
|
|
56074
|
-
|
|
56089
|
+
_log__WEBPACK_IMPORTED_MODULE_4__["default"].debug('OPTIONAL BIDNINGS ALL DONE:');
|
|
56075
56090
|
this.doCallBacks(this.branches.length - 1, this.trunkBindings);
|
|
56076
56091
|
}; // Recrursively generate the cross product of the bindings
|
|
56077
56092
|
|
|
@@ -56111,7 +56126,7 @@ function indexedFormulaQuery(myQuery, callback, fetcher, onDone) {
|
|
|
56111
56126
|
|
|
56112
56127
|
MandatoryBranch.prototype.reportDone = function () {
|
|
56113
56128
|
this.done = true;
|
|
56114
|
-
|
|
56129
|
+
_log__WEBPACK_IMPORTED_MODULE_4__["default"].info('Mandatory query branch finished.***');
|
|
56115
56130
|
|
|
56116
56131
|
if (this.onDone !== undefined) {
|
|
56117
56132
|
this.onDone();
|
|
@@ -56133,13 +56148,13 @@ function indexedFormulaQuery(myQuery, callback, fetcher, onDone) {
|
|
|
56133
56148
|
};
|
|
56134
56149
|
|
|
56135
56150
|
OptionalBranch.prototype.reportDone = function () {
|
|
56136
|
-
|
|
56151
|
+
_log__WEBPACK_IMPORTED_MODULE_4__["default"].debug('Optional branch finished - results.length = ' + this.results.length);
|
|
56137
56152
|
|
|
56138
56153
|
if (this.results.length === 0) {
|
|
56139
56154
|
// This is what optional means: if no hits,
|
|
56140
56155
|
this.results.push({}); // mimic success, but with no bindings
|
|
56141
56156
|
|
|
56142
|
-
|
|
56157
|
+
_log__WEBPACK_IMPORTED_MODULE_4__["default"].debug("Optional branch FAILED - that's OK.");
|
|
56143
56158
|
}
|
|
56144
56159
|
|
|
56145
56160
|
this.done = true;
|
|
@@ -56166,7 +56181,7 @@ function indexedFormulaQuery(myQuery, callback, fetcher, onDone) {
|
|
|
56166
56181
|
for (i = 0; i < 4; i++) {
|
|
56167
56182
|
var t = terms[i]; // console.log(" Prepare (" + t + ") "+(t in bindings))
|
|
56168
56183
|
|
|
56169
|
-
if (t.uri && t.uri ===
|
|
56184
|
+
if (t.uri && t.uri === _utils_default_graph_uri__WEBPACK_IMPORTED_MODULE_3__.defaultGraphURI) {// chrome:session
|
|
56170
56185
|
// console.log(' query: Ignoring slot ' + i)
|
|
56171
56186
|
} else if (t.isVar && !(bindings[t] !== undefined)) {
|
|
56172
56187
|
item.nvars++;
|
|
@@ -56229,18 +56244,18 @@ function indexedFormulaQuery(myQuery, callback, fetcher, onDone) {
|
|
|
56229
56244
|
***/
|
|
56230
56245
|
|
|
56231
56246
|
var match = function match(f, g, bindingsSoFar, level, fetcher, localCallback, branch) {
|
|
56232
|
-
|
|
56247
|
+
_log__WEBPACK_IMPORTED_MODULE_4__["default"].debug('Match begins, Branch count now: ' + branch.count + ' for ' + branch.pattern_debug); // log.debug("match: f has "+f.statements.length+", g has "+g.statements.length)
|
|
56233
56248
|
|
|
56234
56249
|
var pattern = g.statements;
|
|
56235
56250
|
|
|
56236
56251
|
if (pattern.length === 0) {
|
|
56237
56252
|
// when it's satisfied all the pattern triples
|
|
56238
|
-
|
|
56253
|
+
_log__WEBPACK_IMPORTED_MODULE_4__["default"].debug('FOUND MATCH WITH BINDINGS:' + bindingDebug(bindingsSoFar));
|
|
56239
56254
|
|
|
56240
56255
|
if (g.optional.length === 0) {
|
|
56241
56256
|
branch.reportMatch(bindingsSoFar);
|
|
56242
56257
|
} else {
|
|
56243
|
-
|
|
56258
|
+
_log__WEBPACK_IMPORTED_MODULE_4__["default"].debug('OPTIONAL: ' + g.optional);
|
|
56244
56259
|
var junction = new OptionalBranchJunction(callback, bindingsSoFar); // @@ won't work with nested optionals? nest callbacks
|
|
56245
56260
|
|
|
56246
56261
|
var br = [];
|
|
@@ -56260,7 +56275,7 @@ function indexedFormulaQuery(myQuery, callback, fetcher, onDone) {
|
|
|
56260
56275
|
}
|
|
56261
56276
|
|
|
56262
56277
|
branch.count--;
|
|
56263
|
-
|
|
56278
|
+
_log__WEBPACK_IMPORTED_MODULE_4__["default"].debug('Match ends -- success , Branch count now: ' + branch.count + ' for ' + branch.pattern_debug);
|
|
56264
56279
|
return; // Success
|
|
56265
56280
|
}
|
|
56266
56281
|
|
|
@@ -56288,13 +56303,13 @@ function indexedFormulaQuery(myQuery, callback, fetcher, onDone) {
|
|
|
56288
56303
|
for (i = 0; i < n; i++) {
|
|
56289
56304
|
item = pattern[i]; // for each of the triples in the query
|
|
56290
56305
|
|
|
56291
|
-
if (bindingsSoFar[item.subject] !== undefined && bindingsSoFar[item.subject].uri && fetcher && fetcher.getState((0,
|
|
56306
|
+
if (bindingsSoFar[item.subject] !== undefined && bindingsSoFar[item.subject].uri && fetcher && fetcher.getState((0,_uri__WEBPACK_IMPORTED_MODULE_5__.docpart)(bindingsSoFar[item.subject].uri)) === 'unrequested') {
|
|
56292
56307
|
// fetch the subject info and return to id
|
|
56293
56308
|
fetchResource(bindingsSoFar[item.subject], id);
|
|
56294
56309
|
return; // only look up one per line this time, but we will come back again though match
|
|
56295
56310
|
}
|
|
56296
56311
|
|
|
56297
|
-
if (bindingsSoFar[item.object] !== undefined && bindingsSoFar[item.object].uri && fetcher && fetcher.getState((0,
|
|
56312
|
+
if (bindingsSoFar[item.object] !== undefined && bindingsSoFar[item.object].uri && fetcher && fetcher.getState((0,_uri__WEBPACK_IMPORTED_MODULE_5__.docpart)(bindingsSoFar[item.object].uri)) === 'unrequested') {
|
|
56298
56313
|
fetchResource(bindingsSoFar[item.object], id);
|
|
56299
56314
|
return;
|
|
56300
56315
|
}
|
|
@@ -56355,7 +56370,7 @@ function indexedFormulaQuery(myQuery, callback, fetcher, onDone) {
|
|
|
56355
56370
|
rest.constraints = g.constraints;
|
|
56356
56371
|
rest.statements = pattern.slice(1); // No indexes: we will not query g.
|
|
56357
56372
|
|
|
56358
|
-
|
|
56373
|
+
_log__WEBPACK_IMPORTED_MODULE_4__["default"].debug(level + 'match2 searching ' + item.index.length + ' for ' + item + '; bindings so far=' + bindingDebug(bindingsSoFar)); // var results = []
|
|
56359
56374
|
|
|
56360
56375
|
var c;
|
|
56361
56376
|
var nc = item.index.length;
|
|
@@ -56368,7 +56383,7 @@ function indexedFormulaQuery(myQuery, callback, fetcher, onDone) {
|
|
|
56368
56383
|
st = item.index[c]; // for each statement in the item's index, spawn a new match with that binding
|
|
56369
56384
|
|
|
56370
56385
|
nbs1 = unifyContents([item.subject, item.predicate, item.object, item.why], [st.subject, st.predicate, st.object, st.why], bindingsSoFar, f);
|
|
56371
|
-
|
|
56386
|
+
_log__WEBPACK_IMPORTED_MODULE_4__["default"].info(level + ' From first: ' + nbs1.length + ': ' + bindingsDebug(nbs1));
|
|
56372
56387
|
nk = nbs1.length; // branch.count += nk
|
|
56373
56388
|
// log.debug("Branch count bumped "+nk+" to: "+branch.count)
|
|
56374
56389
|
|
|
@@ -56379,7 +56394,7 @@ function indexedFormulaQuery(myQuery, callback, fetcher, onDone) {
|
|
|
56379
56394
|
|
|
56380
56395
|
if (!constraintsSatisfied(newBindings1, g.constraints)) {
|
|
56381
56396
|
// branch.count--
|
|
56382
|
-
|
|
56397
|
+
_log__WEBPACK_IMPORTED_MODULE_4__["default"].debug('Branch count CS: ' + branch.count);
|
|
56383
56398
|
} else {
|
|
56384
56399
|
for (v in newBindings1) {
|
|
56385
56400
|
if (newBindings1.hasOwnProperty(v)) {
|
|
@@ -56404,13 +56419,13 @@ function indexedFormulaQuery(myQuery, callback, fetcher, onDone) {
|
|
|
56404
56419
|
branch.count--;
|
|
56405
56420
|
|
|
56406
56421
|
if (onward === 0) {
|
|
56407
|
-
|
|
56422
|
+
_log__WEBPACK_IMPORTED_MODULE_4__["default"].debug('Match2 fails completely on ' + item);
|
|
56408
56423
|
}
|
|
56409
56424
|
|
|
56410
|
-
|
|
56425
|
+
_log__WEBPACK_IMPORTED_MODULE_4__["default"].debug('Match2 ends, Branch count: ' + branch.count + ' for ' + branch.pattern_debug);
|
|
56411
56426
|
|
|
56412
56427
|
if (branch.count === 0) {
|
|
56413
|
-
|
|
56428
|
+
_log__WEBPACK_IMPORTED_MODULE_4__["default"].debug('Branch finished.');
|
|
56414
56429
|
branch.reportDone();
|
|
56415
56430
|
}
|
|
56416
56431
|
}; // match2
|
|
@@ -56418,7 +56433,7 @@ function indexedFormulaQuery(myQuery, callback, fetcher, onDone) {
|
|
|
56418
56433
|
|
|
56419
56434
|
|
|
56420
56435
|
var f = this;
|
|
56421
|
-
|
|
56436
|
+
_log__WEBPACK_IMPORTED_MODULE_4__["default"].debug('Query on ' + this.statements.length);
|
|
56422
56437
|
var trunck = new MandatoryBranch(callback, onDone);
|
|
56423
56438
|
trunck.count++; // count one branch to complete at the moment
|
|
56424
56439
|
|
|
@@ -60392,9 +60407,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
60392
60407
|
|
|
60393
60408
|
|
|
60394
60409
|
|
|
60395
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
60410
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
60396
60411
|
|
|
60397
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
60412
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
60398
60413
|
|
|
60399
60414
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
60400
60415
|
|
|
@@ -65348,7 +65363,11 @@ try {
|
|
|
65348
65363
|
*/
|
|
65349
65364
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
65350
65365
|
if (k2 === undefined) k2 = k;
|
|
65351
|
-
Object.
|
|
65366
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
65367
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
65368
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
65369
|
+
}
|
|
65370
|
+
Object.defineProperty(o, k2, desc);
|
|
65352
65371
|
}) : (function(o, m, k, k2) {
|
|
65353
65372
|
if (k2 === undefined) k2 = k;
|
|
65354
65373
|
o[k2] = m[k];
|
|
@@ -65495,7 +65514,11 @@ exports.authSession = new solid_client_authn_browser_1.Session({
|
|
|
65495
65514
|
|
|
65496
65515
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
65497
65516
|
if (k2 === undefined) k2 = k;
|
|
65498
|
-
Object.
|
|
65517
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
65518
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
65519
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
65520
|
+
}
|
|
65521
|
+
Object.defineProperty(o, k2, desc);
|
|
65499
65522
|
}) : (function(o, m, k, k2) {
|
|
65500
65523
|
if (k2 === undefined) k2 = k;
|
|
65501
65524
|
o[k2] = m[k];
|
|
@@ -65686,7 +65709,11 @@ exports.SolidAuthnLogic = SolidAuthnLogic;
|
|
|
65686
65709
|
|
|
65687
65710
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
65688
65711
|
if (k2 === undefined) k2 = k;
|
|
65689
|
-
Object.
|
|
65712
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
65713
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
65714
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
65715
|
+
}
|
|
65716
|
+
Object.defineProperty(o, k2, desc);
|
|
65690
65717
|
}) : (function(o, m, k, k2) {
|
|
65691
65718
|
if (k2 === undefined) k2 = k;
|
|
65692
65719
|
o[k2] = m[k];
|
|
@@ -66083,6 +66110,219 @@ exports.determineChatContainer = determineChatContainer;
|
|
|
66083
66110
|
|
|
66084
66111
|
/***/ }),
|
|
66085
66112
|
|
|
66113
|
+
/***/ "./node_modules/solid-logic/lib/discovery/discoveryLogic.js":
|
|
66114
|
+
/*!******************************************************************!*\
|
|
66115
|
+
!*** ./node_modules/solid-logic/lib/discovery/discoveryLogic.js ***!
|
|
66116
|
+
\******************************************************************/
|
|
66117
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
66118
|
+
|
|
66119
|
+
"use strict";
|
|
66120
|
+
|
|
66121
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
66122
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
66123
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
66124
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
66125
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
66126
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
66127
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
66128
|
+
});
|
|
66129
|
+
};
|
|
66130
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
66131
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
66132
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
66133
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
66134
|
+
function step(op) {
|
|
66135
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
66136
|
+
while (_) try {
|
|
66137
|
+
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;
|
|
66138
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
66139
|
+
switch (op[0]) {
|
|
66140
|
+
case 0: case 1: t = op; break;
|
|
66141
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
66142
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
66143
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
66144
|
+
default:
|
|
66145
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
66146
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
66147
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
66148
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
66149
|
+
if (t[2]) _.ops.pop();
|
|
66150
|
+
_.trys.pop(); continue;
|
|
66151
|
+
}
|
|
66152
|
+
op = body.call(thisArg, _);
|
|
66153
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
66154
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
66155
|
+
}
|
|
66156
|
+
};
|
|
66157
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
66158
|
+
exports.loadAllTypeIndexes = exports.loadCommunityTypeIndexes = exports.loadTypeIndexesFor = exports.loadPreferences = exports.loadProfile = void 0;
|
|
66159
|
+
var rdflib_1 = __webpack_require__(/*! rdflib */ "./node_modules/rdflib/esm/index.js");
|
|
66160
|
+
var ns = {
|
|
66161
|
+
solid: (0, rdflib_1.Namespace)('http://www.w3.org/ns/solid/terms#'),
|
|
66162
|
+
space: (0, rdflib_1.Namespace)('http://www.w3.org/ns/pim/space#')
|
|
66163
|
+
};
|
|
66164
|
+
function loadProfile(store, user) {
|
|
66165
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
66166
|
+
var err_1;
|
|
66167
|
+
return __generator(this, function (_a) {
|
|
66168
|
+
switch (_a.label) {
|
|
66169
|
+
case 0:
|
|
66170
|
+
if (!user) {
|
|
66171
|
+
throw new Error("loadProfile: no user given.");
|
|
66172
|
+
}
|
|
66173
|
+
_a.label = 1;
|
|
66174
|
+
case 1:
|
|
66175
|
+
_a.trys.push([1, 3, , 4]);
|
|
66176
|
+
return [4 /*yield*/, store.fetcher.load(user.doc())];
|
|
66177
|
+
case 2:
|
|
66178
|
+
_a.sent();
|
|
66179
|
+
return [3 /*break*/, 4];
|
|
66180
|
+
case 3:
|
|
66181
|
+
err_1 = _a.sent();
|
|
66182
|
+
throw new Error("Unable to load profile of user <".concat(user, ">: ").concat(err_1));
|
|
66183
|
+
case 4: return [2 /*return*/, user.doc()];
|
|
66184
|
+
}
|
|
66185
|
+
});
|
|
66186
|
+
});
|
|
66187
|
+
}
|
|
66188
|
+
exports.loadProfile = loadProfile;
|
|
66189
|
+
function loadPreferences(store, user) {
|
|
66190
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
66191
|
+
var profile, preferencesFile;
|
|
66192
|
+
return __generator(this, function (_a) {
|
|
66193
|
+
switch (_a.label) {
|
|
66194
|
+
case 0: return [4 /*yield*/, loadProfile(store, user)];
|
|
66195
|
+
case 1:
|
|
66196
|
+
profile = _a.sent();
|
|
66197
|
+
preferencesFile = store.any(user, ns.space('preferencesFile'), undefined, profile);
|
|
66198
|
+
if (!preferencesFile) {
|
|
66199
|
+
// throw new Error(`USer ${user} has no pointer in profile to preferences file.`)
|
|
66200
|
+
return [2 /*return*/, undefined];
|
|
66201
|
+
}
|
|
66202
|
+
try {
|
|
66203
|
+
store.fetcher.load(preferencesFile);
|
|
66204
|
+
}
|
|
66205
|
+
catch (err) { // Mabeb a permission propblem or origin problem
|
|
66206
|
+
return [2 /*return*/, undefined
|
|
66207
|
+
// throw new Error(`Unable to load preferences file ${preferencesFile} of user <${user}>: ${err}`)
|
|
66208
|
+
];
|
|
66209
|
+
// throw new Error(`Unable to load preferences file ${preferencesFile} of user <${user}>: ${err}`)
|
|
66210
|
+
}
|
|
66211
|
+
return [2 /*return*/, preferencesFile];
|
|
66212
|
+
}
|
|
66213
|
+
});
|
|
66214
|
+
});
|
|
66215
|
+
}
|
|
66216
|
+
exports.loadPreferences = loadPreferences;
|
|
66217
|
+
function loadTypeIndexesFor(store, user) {
|
|
66218
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
66219
|
+
var profile, publicTypeIndex, _a, pub, preferencesFile, privateTypeIndexes, priv;
|
|
66220
|
+
return __generator(this, function (_b) {
|
|
66221
|
+
switch (_b.label) {
|
|
66222
|
+
case 0:
|
|
66223
|
+
if (!user)
|
|
66224
|
+
throw new Error("loadTypeIndexesFor: No user given");
|
|
66225
|
+
return [4 /*yield*/, loadProfile(store, user)];
|
|
66226
|
+
case 1:
|
|
66227
|
+
profile = _b.sent();
|
|
66228
|
+
publicTypeIndex = store.any(user, ns.solid('publicTypeIndex'), undefined, profile);
|
|
66229
|
+
if (!publicTypeIndex) return [3 /*break*/, 5];
|
|
66230
|
+
_b.label = 2;
|
|
66231
|
+
case 2:
|
|
66232
|
+
_b.trys.push([2, 4, , 5]);
|
|
66233
|
+
return [4 /*yield*/, store.fetcher.load(publicTypeIndex)];
|
|
66234
|
+
case 3:
|
|
66235
|
+
_b.sent();
|
|
66236
|
+
return [3 /*break*/, 5];
|
|
66237
|
+
case 4:
|
|
66238
|
+
_a = _b.sent();
|
|
66239
|
+
return [3 /*break*/, 5];
|
|
66240
|
+
case 5:
|
|
66241
|
+
pub = publicTypeIndex ? [{ label: 'public', index: publicTypeIndex, agent: user }] : [];
|
|
66242
|
+
return [4 /*yield*/, loadPreferences(store, user)];
|
|
66243
|
+
case 6:
|
|
66244
|
+
preferencesFile = _b.sent();
|
|
66245
|
+
if (preferencesFile) { // watch out - can be in either as spec was not clear
|
|
66246
|
+
privateTypeIndexes = store.each(user, ns.solid('privateTypeIndex'), undefined, preferencesFile)
|
|
66247
|
+
.concat(store.each(user, ns.solid('privateTypeIndex'), undefined, profile));
|
|
66248
|
+
priv = privateTypeIndexes.length > 0 ? [{ label: 'priSo @@@@@vate', index: privateTypeIndexes[0], agent: user }] : [];
|
|
66249
|
+
return [2 /*return*/, pub.concat(priv)];
|
|
66250
|
+
}
|
|
66251
|
+
return [2 /*return*/, pub];
|
|
66252
|
+
}
|
|
66253
|
+
});
|
|
66254
|
+
});
|
|
66255
|
+
}
|
|
66256
|
+
exports.loadTypeIndexesFor = loadTypeIndexesFor;
|
|
66257
|
+
function loadCommunityTypeIndexes(store, user) {
|
|
66258
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
66259
|
+
var preferencesFile, communities, communityTypeIndexesPromise, result1;
|
|
66260
|
+
var _this = this;
|
|
66261
|
+
return __generator(this, function (_a) {
|
|
66262
|
+
switch (_a.label) {
|
|
66263
|
+
case 0: return [4 /*yield*/, loadPreferences(store, user)];
|
|
66264
|
+
case 1:
|
|
66265
|
+
preferencesFile = _a.sent();
|
|
66266
|
+
if (preferencesFile) {
|
|
66267
|
+
communities = store.each(user, ns.solid('community'), undefined, preferencesFile);
|
|
66268
|
+
communityTypeIndexesPromise = communities.map(function (community) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
66269
|
+
switch (_a.label) {
|
|
66270
|
+
case 0: return [4 /*yield*/, loadTypeIndexesFor(store, community)];
|
|
66271
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
66272
|
+
}
|
|
66273
|
+
}); }); });
|
|
66274
|
+
result1 = Promise.all(communityTypeIndexesPromise);
|
|
66275
|
+
// const result2 = Promise.all(result1)
|
|
66276
|
+
// const flat = result2.flat()
|
|
66277
|
+
return [2 /*return*/, result1
|
|
66278
|
+
// const communityTypeIndexes = await Promise.all(communityTypeIndexesPromise)
|
|
66279
|
+
/*
|
|
66280
|
+
let result = [] as TypeIndex[]
|
|
66281
|
+
for(const community of communities) {
|
|
66282
|
+
result = result.concat(await loadTypeIndexesFor(store, community as NamedNode)) as TypeIndex[] // @@ how oto make functional with async?
|
|
66283
|
+
}
|
|
66284
|
+
*/
|
|
66285
|
+
// return communityTypeIndexesPromise.resolve()
|
|
66286
|
+
];
|
|
66287
|
+
// const communityTypeIndexes = await Promise.all(communityTypeIndexesPromise)
|
|
66288
|
+
/*
|
|
66289
|
+
let result = [] as TypeIndex[]
|
|
66290
|
+
for(const community of communities) {
|
|
66291
|
+
result = result.concat(await loadTypeIndexesFor(store, community as NamedNode)) as TypeIndex[] // @@ how oto make functional with async?
|
|
66292
|
+
}
|
|
66293
|
+
*/
|
|
66294
|
+
// return communityTypeIndexesPromise.resolve()
|
|
66295
|
+
}
|
|
66296
|
+
return [2 /*return*/, []];
|
|
66297
|
+
}
|
|
66298
|
+
});
|
|
66299
|
+
});
|
|
66300
|
+
}
|
|
66301
|
+
exports.loadCommunityTypeIndexes = loadCommunityTypeIndexes;
|
|
66302
|
+
function loadAllTypeIndexes(store, user) {
|
|
66303
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
66304
|
+
var _a, _b;
|
|
66305
|
+
return __generator(this, function (_c) {
|
|
66306
|
+
switch (_c.label) {
|
|
66307
|
+
case 0: return [4 /*yield*/, loadTypeIndexesFor(store, user)];
|
|
66308
|
+
case 1:
|
|
66309
|
+
_b = (_a = (_c.sent())).concat;
|
|
66310
|
+
return [4 /*yield*/, loadCommunityTypeIndexes(store, user)];
|
|
66311
|
+
case 2: return [2 /*return*/, _b.apply(_a, [(_c.sent()).flat()])];
|
|
66312
|
+
}
|
|
66313
|
+
});
|
|
66314
|
+
});
|
|
66315
|
+
}
|
|
66316
|
+
exports.loadAllTypeIndexes = loadAllTypeIndexes;
|
|
66317
|
+
/*
|
|
66318
|
+
export async function getAppInstances (store:LiveStore, klass: NamedNode) {
|
|
66319
|
+
|
|
66320
|
+
}
|
|
66321
|
+
*/
|
|
66322
|
+
//# sourceMappingURL=discoveryLogic.js.map
|
|
66323
|
+
|
|
66324
|
+
/***/ }),
|
|
66325
|
+
|
|
66086
66326
|
/***/ "./node_modules/solid-logic/lib/index.js":
|
|
66087
66327
|
/*!***********************************************!*\
|
|
66088
66328
|
!*** ./node_modules/solid-logic/lib/index.js ***!
|
|
@@ -66092,7 +66332,7 @@ exports.determineChatContainer = determineChatContainer;
|
|
|
66092
66332
|
"use strict";
|
|
66093
66333
|
|
|
66094
66334
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
66095
|
-
exports.profile = exports.chat = exports.store = exports.authSession = exports.authn = exports.FetchError = exports.NotFoundError = exports.SameOriginForbiddenError = exports.CrossOriginForbiddenError = exports.UnauthorizedError = exports.solidLogicSingleton = exports.getSuggestedIssuers = exports.ACL_LINK = exports.appContext = exports.offlineTestID = exports.SolidLogic = exports.loadIndex = exports.registerInTypeIndex = exports.loadTypeIndexes = exports.ensureTypeIndexes = exports.genACLText = exports.setACLUserPublic = void 0;
|
|
66335
|
+
exports.profile = exports.chat = exports.store = exports.authSession = exports.authn = exports.FetchError = exports.NotFoundError = exports.SameOriginForbiddenError = exports.CrossOriginForbiddenError = exports.UnauthorizedError = exports.solidLogicSingleton = exports.getSuggestedIssuers = exports.ACL_LINK = exports.appContext = exports.offlineTestID = exports.SolidLogic = exports.loadAllTypeIndexes = exports.loadCommunityTypeIndexes = exports.loadTypeIndexesFor = exports.loadPreferences = exports.loadProfile = exports.loadIndex = exports.registerInTypeIndex = exports.loadTypeIndexes = exports.ensureTypeIndexes = exports.genACLText = exports.setACLUserPublic = void 0;
|
|
66096
66336
|
// Make these variables directly accessible as it is what you need most of the time
|
|
66097
66337
|
// This also makes these variable globaly accesible in mashlib
|
|
66098
66338
|
var solidLogicSingleton_1 = __webpack_require__(/*! ./logic/solidLogicSingleton */ "./node_modules/solid-logic/lib/logic/solidLogicSingleton.js");
|
|
@@ -66114,6 +66354,12 @@ Object.defineProperty(exports, "ensureTypeIndexes", ({ enumerable: true, get: fu
|
|
|
66114
66354
|
Object.defineProperty(exports, "loadTypeIndexes", ({ enumerable: true, get: function () { return typeIndexLogic_1.loadTypeIndexes; } }));
|
|
66115
66355
|
Object.defineProperty(exports, "registerInTypeIndex", ({ enumerable: true, get: function () { return typeIndexLogic_1.registerInTypeIndex; } }));
|
|
66116
66356
|
Object.defineProperty(exports, "loadIndex", ({ enumerable: true, get: function () { return typeIndexLogic_1.loadIndex; } }));
|
|
66357
|
+
var discoveryLogic_1 = __webpack_require__(/*! ./discovery/discoveryLogic */ "./node_modules/solid-logic/lib/discovery/discoveryLogic.js");
|
|
66358
|
+
Object.defineProperty(exports, "loadProfile", ({ enumerable: true, get: function () { return discoveryLogic_1.loadProfile; } }));
|
|
66359
|
+
Object.defineProperty(exports, "loadPreferences", ({ enumerable: true, get: function () { return discoveryLogic_1.loadPreferences; } }));
|
|
66360
|
+
Object.defineProperty(exports, "loadTypeIndexesFor", ({ enumerable: true, get: function () { return discoveryLogic_1.loadTypeIndexesFor; } }));
|
|
66361
|
+
Object.defineProperty(exports, "loadCommunityTypeIndexes", ({ enumerable: true, get: function () { return discoveryLogic_1.loadCommunityTypeIndexes; } }));
|
|
66362
|
+
Object.defineProperty(exports, "loadAllTypeIndexes", ({ enumerable: true, get: function () { return discoveryLogic_1.loadAllTypeIndexes; } }));
|
|
66117
66363
|
var SolidLogic_1 = __webpack_require__(/*! ./logic/SolidLogic */ "./node_modules/solid-logic/lib/logic/SolidLogic.js");
|
|
66118
66364
|
Object.defineProperty(exports, "SolidLogic", ({ enumerable: true, get: function () { return SolidLogic_1.SolidLogic; } }));
|
|
66119
66365
|
var authUtil_1 = __webpack_require__(/*! ./authn/authUtil */ "./node_modules/solid-logic/lib/authn/authUtil.js");
|
|
@@ -66292,7 +66538,11 @@ exports.FetchError = FetchError;
|
|
|
66292
66538
|
|
|
66293
66539
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
66294
66540
|
if (k2 === undefined) k2 = k;
|
|
66295
|
-
Object.
|
|
66541
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
66542
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
66543
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
66544
|
+
}
|
|
66545
|
+
Object.defineProperty(o, k2, desc);
|
|
66296
66546
|
}) : (function(o, m, k, k2) {
|
|
66297
66547
|
if (k2 === undefined) k2 = k;
|
|
66298
66548
|
o[k2] = m[k];
|
|
@@ -66358,51 +66608,61 @@ var ProfileLogic_1 = __webpack_require__(/*! ../profile/ProfileLogic */ "./node_
|
|
|
66358
66608
|
var debug = __importStar(__webpack_require__(/*! ../util/debug */ "./node_modules/solid-logic/lib/util/debug.js"));
|
|
66359
66609
|
var UtilityLogic_1 = __webpack_require__(/*! ../util/UtilityLogic */ "./node_modules/solid-logic/lib/util/UtilityLogic.js");
|
|
66360
66610
|
var CustomError_1 = __webpack_require__(/*! ./CustomError */ "./node_modules/solid-logic/lib/logic/CustomError.js");
|
|
66611
|
+
/*
|
|
66612
|
+
** It is important to distinquish `fetch`, a function provided by the browser
|
|
66613
|
+
** and `Fetcher`, a helper object for the rdflib Store which turns it
|
|
66614
|
+
** into a `ConnectedStore` or a `LiveStore`. A Fetcher object is
|
|
66615
|
+
** available at store.fetcher, and `fetch` function at `store.fetcher._fetch`,
|
|
66616
|
+
*/
|
|
66361
66617
|
var ns = (0, solid_namespace_1.default)(rdf);
|
|
66362
66618
|
var SolidLogic = /** @class */ (function () {
|
|
66363
|
-
function SolidLogic(
|
|
66619
|
+
function SolidLogic(specialFetch, session) {
|
|
66620
|
+
// would xpect to be able to do it this way: but get TypeError: Failed to execute 'fetch' on 'Window': Illegal invocation status: 999
|
|
66621
|
+
// this.store = new rdf.LiveStore({})
|
|
66622
|
+
// this.store.fetcher._fetch = fetch
|
|
66623
|
+
console.log("SolidLogic: Unique instance created. There should only be one of these.");
|
|
66364
66624
|
this.store = rdf.graph(); // Make a Quad store
|
|
66365
|
-
rdf.fetcher(this.store,
|
|
66625
|
+
rdf.fetcher(this.store, { fetch: specialFetch.fetch }); // Attach a web I/O module, store.fetcher
|
|
66366
66626
|
this.store.updater = new rdf.UpdateManager(this.store); // Add real-time live updates store.updater
|
|
66367
66627
|
this.store.features = []; // disable automatic node merging on store load
|
|
66368
66628
|
this.cache = {
|
|
66369
66629
|
profileDocument: {},
|
|
66370
66630
|
preferencesFile: {},
|
|
66371
66631
|
};
|
|
66372
|
-
this.
|
|
66632
|
+
this.underlyingFetch = { fetch: fetch }; // Note global one not the one passed
|
|
66373
66633
|
this.authn = new SolidAuthnLogic_1.SolidAuthnLogic(session);
|
|
66374
66634
|
debug.log('SolidAuthnLogic initialized');
|
|
66375
66635
|
this.profile = new ProfileLogic_1.ProfileLogic(this.store, ns, this.authn);
|
|
66376
66636
|
this.chat = new ChatLogic_1.ChatLogic(this.store, ns, this.profile);
|
|
66377
|
-
this.util = new UtilityLogic_1.UtilityLogic(this.store, ns, this.
|
|
66637
|
+
this.util = new UtilityLogic_1.UtilityLogic(this.store, ns, this.underlyingFetch);
|
|
66378
66638
|
}
|
|
66379
66639
|
SolidLogic.prototype.findAclDocUrl = function (url) {
|
|
66380
66640
|
return this.util.findAclDocUrl(url);
|
|
66381
66641
|
};
|
|
66382
|
-
SolidLogic.prototype.loadDoc = function (doc) {
|
|
66383
|
-
return this.util.loadDoc(doc);
|
|
66384
|
-
};
|
|
66385
66642
|
SolidLogic.prototype.loadProfile = function (me) {
|
|
66386
66643
|
return __awaiter(this, void 0, void 0, function () {
|
|
66387
66644
|
var profileDocument, err_1, message;
|
|
66388
66645
|
return __generator(this, function (_a) {
|
|
66389
66646
|
switch (_a.label) {
|
|
66390
66647
|
case 0:
|
|
66391
|
-
|
|
66648
|
+
/*
|
|
66649
|
+
// console.log('loadProfile cache ', this.cache)
|
|
66392
66650
|
if (this.cache.profileDocument[me.value]) {
|
|
66393
|
-
|
|
66394
|
-
|
|
66651
|
+
return this.cache.profileDocument[me.value];
|
|
66652
|
+
} @@ just use the cache in the store
|
|
66653
|
+
*/
|
|
66654
|
+
console.log('loadProfile me ', me);
|
|
66655
|
+
profileDocument = me.doc();
|
|
66395
66656
|
_a.label = 1;
|
|
66396
66657
|
case 1:
|
|
66397
66658
|
_a.trys.push([1, 3, , 4]);
|
|
66398
|
-
|
|
66399
|
-
return [4 /*yield*/, this.loadDoc(profileDocument)];
|
|
66659
|
+
return [4 /*yield*/, this.store.fetcher.load(profileDocument)];
|
|
66400
66660
|
case 2:
|
|
66401
66661
|
_a.sent();
|
|
66402
66662
|
return [2 /*return*/, profileDocument];
|
|
66403
66663
|
case 3:
|
|
66404
66664
|
err_1 = _a.sent();
|
|
66405
|
-
message = "
|
|
66665
|
+
message = "Cannot load profile ".concat(profileDocument, " : ").concat(err_1);
|
|
66406
66666
|
throw new Error(message);
|
|
66407
66667
|
case 4: return [2 /*return*/];
|
|
66408
66668
|
}
|
|
@@ -66426,27 +66686,27 @@ var SolidLogic = /** @class */ (function () {
|
|
|
66426
66686
|
return __generator(this, function (_a) {
|
|
66427
66687
|
switch (_a.label) {
|
|
66428
66688
|
case 0:
|
|
66429
|
-
|
|
66689
|
+
console.log('loadPreferences cache ', this.cache);
|
|
66430
66690
|
if (this.cache.preferencesFile[me.value]) {
|
|
66431
66691
|
return [2 /*return*/, this.cache.preferencesFile[me.value]];
|
|
66432
66692
|
}
|
|
66433
|
-
|
|
66693
|
+
return [4 /*yield*/, this.loadProfile(me)]; // Load pointer to pref file
|
|
66694
|
+
case 1:
|
|
66695
|
+
_a.sent(); // Load pointer to pref file
|
|
66696
|
+
preferencesFile = this.store.any(me, ns.space('preferencesFile'), null, me.doc());
|
|
66434
66697
|
if (!preferencesFile) {
|
|
66435
66698
|
throw new Error("Can't find a preference file pointer in profile ".concat(me.doc()));
|
|
66436
66699
|
}
|
|
66437
|
-
|
|
66438
|
-
|
|
66439
|
-
|
|
66440
|
-
_a.label = 1;
|
|
66441
|
-
case 1:
|
|
66442
|
-
_a.trys.push([1, 3, , 4]);
|
|
66700
|
+
_a.label = 2;
|
|
66701
|
+
case 2:
|
|
66702
|
+
_a.trys.push([2, 4, , 5]);
|
|
66443
66703
|
return [4 /*yield*/, this.store.fetcher.load(preferencesFile, {
|
|
66444
66704
|
withCredentials: true,
|
|
66445
66705
|
})];
|
|
66446
|
-
case 2:
|
|
66447
|
-
_a.sent();
|
|
66448
|
-
return [3 /*break*/, 4];
|
|
66449
66706
|
case 3:
|
|
66707
|
+
_a.sent();
|
|
66708
|
+
return [3 /*break*/, 5];
|
|
66709
|
+
case 4:
|
|
66450
66710
|
err_2 = _a.sent();
|
|
66451
66711
|
status_1 = err_2.status;
|
|
66452
66712
|
debug.log("HTTP status ".concat(status_1, " for preference file ").concat(preferencesFile));
|
|
@@ -66463,7 +66723,7 @@ var SolidLogic = /** @class */ (function () {
|
|
|
66463
66723
|
throw new CustomError_1.NotFoundError(preferencesFile.value);
|
|
66464
66724
|
}
|
|
66465
66725
|
throw new CustomError_1.FetchError(err_2.status, err_2.message);
|
|
66466
|
-
case
|
|
66726
|
+
case 5: return [2 /*return*/, preferencesFile];
|
|
66467
66727
|
}
|
|
66468
66728
|
});
|
|
66469
66729
|
});
|
|
@@ -66481,9 +66741,6 @@ var SolidLogic = /** @class */ (function () {
|
|
|
66481
66741
|
});
|
|
66482
66742
|
};
|
|
66483
66743
|
SolidLogic.prototype.load = function (doc) {
|
|
66484
|
-
if (!this.store.fetcher) {
|
|
66485
|
-
throw new Error("Cannot load doc(s), have no fetcher");
|
|
66486
|
-
}
|
|
66487
66744
|
return this.store.fetcher.load(doc);
|
|
66488
66745
|
};
|
|
66489
66746
|
SolidLogic.prototype.loadIndexes = function (me, publicProfile, preferencesFile, onWarning) {
|
|
@@ -66543,14 +66800,10 @@ var SolidLogic = /** @class */ (function () {
|
|
|
66543
66800
|
return __awaiter(this, void 0, void 0, function () {
|
|
66544
66801
|
return __generator(this, function (_a) {
|
|
66545
66802
|
switch (_a.label) {
|
|
66546
|
-
case 0:
|
|
66547
|
-
|
|
66548
|
-
|
|
66549
|
-
}
|
|
66550
|
-
return [4 /*yield*/, this.store.fetcher.webOperation("PUT", doc.uri, {
|
|
66551
|
-
data: "# ".concat(new Date(), " ").concat(comment, "\n "),
|
|
66552
|
-
contentType: "text/turtle",
|
|
66553
|
-
})];
|
|
66803
|
+
case 0: return [4 /*yield*/, this.store.fetcher.webOperation("PUT", doc.uri, {
|
|
66804
|
+
data: "# ".concat(new Date(), " ").concat(comment, "\n "),
|
|
66805
|
+
contentType: "text/turtle",
|
|
66806
|
+
})];
|
|
66554
66807
|
case 1:
|
|
66555
66808
|
_a.sent();
|
|
66556
66809
|
return [2 /*return*/];
|
|
@@ -66563,9 +66816,6 @@ var SolidLogic = /** @class */ (function () {
|
|
|
66563
66816
|
var _this = this;
|
|
66564
66817
|
if (ins === void 0) { ins = []; }
|
|
66565
66818
|
return new Promise(function (resolve, reject) {
|
|
66566
|
-
if (!_this.store.updater) {
|
|
66567
|
-
throw new Error("Cannot updatePromise, have no updater");
|
|
66568
|
-
}
|
|
66569
66819
|
_this.store.updater.update(del, ins, function (_uri, ok, errorBody) {
|
|
66570
66820
|
if (!ok) {
|
|
66571
66821
|
reject(new Error(errorBody));
|
|
@@ -66598,7 +66848,7 @@ var SolidLogic = /** @class */ (function () {
|
|
|
66598
66848
|
SolidLogic.prototype.fetch = function (url, options) {
|
|
66599
66849
|
return __awaiter(this, void 0, void 0, function () {
|
|
66600
66850
|
return __generator(this, function (_a) {
|
|
66601
|
-
return [2 /*return*/, this.
|
|
66851
|
+
return [2 /*return*/, this.underlyingFetch.fetch(url, options)];
|
|
66602
66852
|
});
|
|
66603
66853
|
});
|
|
66604
66854
|
};
|
|
@@ -66619,7 +66869,11 @@ exports.SolidLogic = SolidLogic;
|
|
|
66619
66869
|
|
|
66620
66870
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
66621
66871
|
if (k2 === undefined) k2 = k;
|
|
66622
|
-
Object.
|
|
66872
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
66873
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
66874
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
66875
|
+
}
|
|
66876
|
+
Object.defineProperty(o, k2, desc);
|
|
66623
66877
|
}) : (function(o, m, k, k2) {
|
|
66624
66878
|
if (k2 === undefined) k2 = k;
|
|
66625
66879
|
o[k2] = m[k];
|
|
@@ -66678,8 +66932,11 @@ var debug = __importStar(__webpack_require__(/*! ../util/debug */ "./node_module
|
|
|
66678
66932
|
var authSession_1 = __webpack_require__(/*! ../authSession/authSession */ "./node_modules/solid-logic/lib/authSession/authSession.js");
|
|
66679
66933
|
var SolidLogic_1 = __webpack_require__(/*! ./SolidLogic */ "./node_modules/solid-logic/lib/logic/SolidLogic.js");
|
|
66680
66934
|
var _fetch = function (url, requestInit) { return __awaiter(void 0, void 0, void 0, function () {
|
|
66935
|
+
var omitCreds;
|
|
66681
66936
|
return __generator(this, function (_a) {
|
|
66682
|
-
|
|
66937
|
+
omitCreds = requestInit && requestInit.credentials && requestInit.credentials == 'omit';
|
|
66938
|
+
if (authSession_1.authSession.info.webId && !omitCreds) { // see https://github.com/solid/solidos/issues/114
|
|
66939
|
+
// In fact ftech should respect crentials omit itself
|
|
66683
66940
|
return [2 /*return*/, authSession_1.authSession.fetch(url, requestInit)];
|
|
66684
66941
|
}
|
|
66685
66942
|
else {
|
|
@@ -66812,7 +67069,11 @@ exports.ProfileLogic = ProfileLogic;
|
|
|
66812
67069
|
|
|
66813
67070
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
66814
67071
|
if (k2 === undefined) k2 = k;
|
|
66815
|
-
Object.
|
|
67072
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
67073
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
67074
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
67075
|
+
}
|
|
67076
|
+
Object.defineProperty(o, k2, desc);
|
|
66816
67077
|
}) : (function(o, m, k, k2) {
|
|
66817
67078
|
if (k2 === undefined) k2 = k;
|
|
66818
67079
|
o[k2] = m[k];
|
|
@@ -66876,11 +67137,35 @@ var solid_namespace_1 = __importDefault(__webpack_require__(/*! solid-namespace
|
|
|
66876
67137
|
var $rdf = __importStar(__webpack_require__(/*! rdflib */ "./node_modules/rdflib/esm/index.js"));
|
|
66877
67138
|
var uri_1 = __webpack_require__(/*! ../util/uri */ "./node_modules/solid-logic/lib/util/uri.js");
|
|
66878
67139
|
var solidLogicSingleton_1 = __webpack_require__(/*! ../logic/solidLogicSingleton */ "./node_modules/solid-logic/lib/logic/solidLogicSingleton.js");
|
|
67140
|
+
// import { ensureLoadedPreferences } from '../logic/logic'
|
|
67141
|
+
var discoveryLogic_1 = __webpack_require__(/*! ../discovery/discoveryLogic */ "./node_modules/solid-logic/lib/discovery/discoveryLogic.js");
|
|
66879
67142
|
exports.ns = (0, solid_namespace_1.default)($rdf);
|
|
67143
|
+
var store = solidLogicSingleton_1.solidLogicSingleton.store;
|
|
67144
|
+
function ensureLoadedPreferences(context) {
|
|
67145
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
67146
|
+
var _a, _b;
|
|
67147
|
+
return __generator(this, function (_c) {
|
|
67148
|
+
switch (_c.label) {
|
|
67149
|
+
case 0:
|
|
67150
|
+
if (!context.me)
|
|
67151
|
+
throw new Error('@@ ensureLoadedPreferences: no user specified');
|
|
67152
|
+
_a = context;
|
|
67153
|
+
return [4 /*yield*/, (0, discoveryLogic_1.loadProfile)(store, context.me)];
|
|
67154
|
+
case 1:
|
|
67155
|
+
_a.publicProfile = _c.sent();
|
|
67156
|
+
_b = context;
|
|
67157
|
+
return [4 /*yield*/, (0, discoveryLogic_1.loadPreferences)(store, context.me)];
|
|
67158
|
+
case 2:
|
|
67159
|
+
_b.preferencesFile = _c.sent();
|
|
67160
|
+
return [2 /*return*/, context];
|
|
67161
|
+
}
|
|
67162
|
+
});
|
|
67163
|
+
});
|
|
67164
|
+
}
|
|
66880
67165
|
/**
|
|
66881
67166
|
* Resolves with the same context, outputting
|
|
66882
67167
|
* output: index.public, index.private
|
|
66883
|
-
*
|
|
67168
|
+
* @@ This is a very bizare function
|
|
66884
67169
|
* @see https://github.com/solid/solid/blob/main/proposals/data-discovery.md#discoverability
|
|
66885
67170
|
*/
|
|
66886
67171
|
function loadIndex(context, isPublic) {
|
|
@@ -66897,8 +67182,8 @@ function loadIndex(context, isPublic) {
|
|
|
66897
67182
|
case 1:
|
|
66898
67183
|
indexes = _a.sent();
|
|
66899
67184
|
context.index = context.index || {};
|
|
66900
|
-
context.index.private = indexes.private
|
|
66901
|
-
context.index.public = indexes.public
|
|
67185
|
+
context.index.private = indexes.private.concat(context.index.private || []); // otherwise concat will wrongly add 'undefined' as a private index
|
|
67186
|
+
context.index.public = indexes.public.concat(context.index.public || []); // otherwise concat will wrongly add 'undefined' as a public index
|
|
66902
67187
|
return [2 /*return*/, context];
|
|
66903
67188
|
}
|
|
66904
67189
|
});
|
|
@@ -66907,21 +67192,36 @@ function loadIndex(context, isPublic) {
|
|
|
66907
67192
|
exports.loadIndex = loadIndex;
|
|
66908
67193
|
function loadTypeIndexes(context) {
|
|
66909
67194
|
return __awaiter(this, void 0, void 0, function () {
|
|
66910
|
-
var indexes;
|
|
67195
|
+
var error_1, indexes, error_2;
|
|
66911
67196
|
var _this = this;
|
|
66912
67197
|
return __generator(this, function (_a) {
|
|
66913
67198
|
switch (_a.label) {
|
|
66914
|
-
case 0:
|
|
66915
|
-
|
|
66916
|
-
|
|
66917
|
-
return [2 /*return*/, debug.warn(err.message)];
|
|
66918
|
-
}); }); })];
|
|
67199
|
+
case 0:
|
|
67200
|
+
_a.trys.push([0, 2, , 3]);
|
|
67201
|
+
return [4 /*yield*/, (0, discoveryLogic_1.loadPreferences)(solidLogicSingleton_1.solidLogicSingleton.store, context.me)];
|
|
66919
67202
|
case 1:
|
|
67203
|
+
_a.sent();
|
|
67204
|
+
return [3 /*break*/, 3];
|
|
67205
|
+
case 2:
|
|
67206
|
+
error_1 = _a.sent();
|
|
67207
|
+
debug.warn(error_1.message);
|
|
67208
|
+
return [3 /*break*/, 3];
|
|
67209
|
+
case 3:
|
|
67210
|
+
_a.trys.push([3, 5, , 6]);
|
|
67211
|
+
return [4 /*yield*/, solidLogicSingleton_1.solidLogicSingleton.loadIndexes(context.me, context.publicProfile || null, context.preferencesFile || null)];
|
|
67212
|
+
case 4:
|
|
66920
67213
|
indexes = _a.sent();
|
|
66921
67214
|
context.index = context.index || {};
|
|
66922
67215
|
context.index.private = indexes.private || context.index.private;
|
|
66923
67216
|
context.index.public = indexes.public || context.index.public;
|
|
66924
67217
|
return [2 /*return*/, context];
|
|
67218
|
+
case 5:
|
|
67219
|
+
error_2 = _a.sent();
|
|
67220
|
+
(function (error) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
67221
|
+
return [2 /*return*/, debug.warn(error.message)];
|
|
67222
|
+
}); }); });
|
|
67223
|
+
return [3 /*break*/, 6];
|
|
67224
|
+
case 6: return [2 /*return*/];
|
|
66925
67225
|
}
|
|
66926
67226
|
});
|
|
66927
67227
|
});
|
|
@@ -66931,14 +67231,18 @@ exports.loadTypeIndexes = loadTypeIndexes;
|
|
|
66931
67231
|
* Resolves with the same context, outputting
|
|
66932
67232
|
* @see https://github.com/solid/solid/blob/main/proposals/data-discovery.md#discoverability
|
|
66933
67233
|
*/
|
|
66934
|
-
function ensureTypeIndexes(context) {
|
|
67234
|
+
function ensureTypeIndexes(context, agent) {
|
|
66935
67235
|
return __awaiter(this, void 0, void 0, function () {
|
|
66936
67236
|
return __generator(this, function (_a) {
|
|
66937
67237
|
switch (_a.label) {
|
|
66938
|
-
case 0:
|
|
67238
|
+
case 0:
|
|
67239
|
+
if (!context.me) {
|
|
67240
|
+
throw new Error("ensureTypeIndexes: @@ no user");
|
|
67241
|
+
}
|
|
67242
|
+
return [4 /*yield*/, ensureOneTypeIndex(context, true, agent)];
|
|
66939
67243
|
case 1:
|
|
66940
67244
|
_a.sent();
|
|
66941
|
-
return [4 /*yield*/, ensureOneTypeIndex(context, false)];
|
|
67245
|
+
return [4 /*yield*/, ensureOneTypeIndex(context, false, agent)];
|
|
66942
67246
|
case 2:
|
|
66943
67247
|
_a.sent();
|
|
66944
67248
|
return [2 /*return*/, context];
|
|
@@ -66955,7 +67259,7 @@ exports.ensureTypeIndexes = ensureTypeIndexes;
|
|
|
66955
67259
|
* Adds its output to the context
|
|
66956
67260
|
* @see https://github.com/solid/solid/blob/main/proposals/data-discovery.md#discoverability
|
|
66957
67261
|
*/
|
|
66958
|
-
function ensureOneTypeIndex(context, isPublic) {
|
|
67262
|
+
function ensureOneTypeIndex(context, isPublic, agent) {
|
|
66959
67263
|
return __awaiter(this, void 0, void 0, function () {
|
|
66960
67264
|
function makeIndexIfNecessary(context, isPublic) {
|
|
66961
67265
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -66986,10 +67290,16 @@ function ensureOneTypeIndex(context, isPublic) {
|
|
|
66986
67290
|
switch (_a.label) {
|
|
66987
67291
|
case 0:
|
|
66988
67292
|
relevant = isPublic ? context.publicProfile : context.preferencesFile;
|
|
67293
|
+
if (!relevant)
|
|
67294
|
+
alert('@@@@ relevent null');
|
|
66989
67295
|
visibility = isPublic ? 'public' : 'private';
|
|
66990
67296
|
context.index = context.index || {};
|
|
66991
67297
|
context.index[visibility] = context.index[visibility] || [];
|
|
66992
67298
|
if (!(context.index[visibility].length === 0)) return [3 /*break*/, 6];
|
|
67299
|
+
if (!store.updater.editable(relevant)) {
|
|
67300
|
+
debug.log("Not adding new type index as ".concat(relevant, " is not editable"));
|
|
67301
|
+
return [2 /*return*/];
|
|
67302
|
+
}
|
|
66993
67303
|
newIndex = (0, rdflib_1.sym)("".concat(relevant.dir().uri + visibility, "TypeIndex.ttl"));
|
|
66994
67304
|
debug.log("Linking to new fresh type index ".concat(newIndex));
|
|
66995
67305
|
if (!confirm("OK to create a new empty index file at ".concat(newIndex, ", overwriting anything that is now there?"))) {
|
|
@@ -67038,29 +67348,41 @@ function ensureOneTypeIndex(context, isPublic) {
|
|
|
67038
67348
|
});
|
|
67039
67349
|
});
|
|
67040
67350
|
} // makeIndexIfNecessary
|
|
67041
|
-
var
|
|
67351
|
+
var context2, relevant, pp, error_3;
|
|
67042
67352
|
return __generator(this, function (_a) {
|
|
67043
67353
|
switch (_a.label) {
|
|
67044
|
-
case 0:
|
|
67045
|
-
_a.trys.push([0, 2, , 4]);
|
|
67046
|
-
return [4 /*yield*/, loadIndex(context, isPublic)];
|
|
67354
|
+
case 0: return [4 /*yield*/, ensureLoadedPreferences(context)];
|
|
67047
67355
|
case 1:
|
|
67356
|
+
context2 = _a.sent();
|
|
67357
|
+
if (!context2.publicProfile)
|
|
67358
|
+
throw new Error("@@ type index: no publicProfile");
|
|
67359
|
+
if (!context2.preferencesFile)
|
|
67360
|
+
throw new Error("@@ type index: no preferencesFile for profile ".concat(context2.publicProfile));
|
|
67361
|
+
relevant = isPublic ? context2.publicProfile : context2.preferencesFile;
|
|
67362
|
+
_a.label = 2;
|
|
67363
|
+
case 2:
|
|
67364
|
+
_a.trys.push([2, 5, , 7]);
|
|
67365
|
+
return [4 /*yield*/, loadIndex(context2, isPublic)];
|
|
67366
|
+
case 3:
|
|
67048
67367
|
_a.sent();
|
|
67049
|
-
|
|
67050
|
-
|
|
67051
|
-
|
|
67052
|
-
|
|
67368
|
+
pp = isPublic ? 'public' : 'private';
|
|
67369
|
+
if (context2.index && context2.index[pp] && context2.index[pp].length > 0) {
|
|
67370
|
+
debug.log("ensureOneTypeIndex: Type index exists already ".concat(context2.index[pp]));
|
|
67371
|
+
return [2 /*return*/, context2];
|
|
67053
67372
|
}
|
|
67054
|
-
return [
|
|
67055
|
-
case
|
|
67056
|
-
|
|
67057
|
-
return [
|
|
67058
|
-
|
|
67373
|
+
return [4 /*yield*/, makeIndexIfNecessary(context2, isPublic)];
|
|
67374
|
+
case 4:
|
|
67375
|
+
_a.sent();
|
|
67376
|
+
return [3 /*break*/, 7];
|
|
67377
|
+
case 5:
|
|
67378
|
+
error_3 = _a.sent();
|
|
67379
|
+
return [4 /*yield*/, makeIndexIfNecessary(context2, isPublic)
|
|
67380
|
+
// widgets.complain(context2, 'calling loadIndex:' + error)
|
|
67059
67381
|
];
|
|
67060
|
-
case
|
|
67382
|
+
case 6:
|
|
67061
67383
|
_a.sent();
|
|
67062
|
-
return [3 /*break*/,
|
|
67063
|
-
case
|
|
67384
|
+
return [3 /*break*/, 7];
|
|
67385
|
+
case 7: return [2 /*return*/];
|
|
67064
67386
|
}
|
|
67065
67387
|
});
|
|
67066
67388
|
});
|
|
@@ -67069,12 +67391,13 @@ function ensureOneTypeIndex(context, isPublic) {
|
|
|
67069
67391
|
* Register a new app in a type index
|
|
67070
67392
|
* used in chat in bookmark.js (solid-ui)
|
|
67071
67393
|
*/
|
|
67072
|
-
function registerInTypeIndex(context, instance, theClass, isPublic
|
|
67394
|
+
function registerInTypeIndex(context, instance, theClass, isPublic, agent // Defaults to current user
|
|
67395
|
+
) {
|
|
67073
67396
|
return __awaiter(this, void 0, void 0, function () {
|
|
67074
67397
|
var indexes, index, registration, ins, e_2;
|
|
67075
67398
|
return __generator(this, function (_a) {
|
|
67076
67399
|
switch (_a.label) {
|
|
67077
|
-
case 0: return [4 /*yield*/, ensureOneTypeIndex(context, isPublic)];
|
|
67400
|
+
case 0: return [4 /*yield*/, ensureOneTypeIndex(context, isPublic, agent)];
|
|
67078
67401
|
case 1:
|
|
67079
67402
|
_a.sent();
|
|
67080
67403
|
if (!context.index) {
|
|
@@ -67166,10 +67489,10 @@ exports.ACL_LINK = (0, rdflib_1.sym)("http://www.iana.org/assignments/link-relat
|
|
|
67166
67489
|
* Utility-related logic
|
|
67167
67490
|
*/
|
|
67168
67491
|
var UtilityLogic = /** @class */ (function () {
|
|
67169
|
-
function UtilityLogic(store, ns,
|
|
67492
|
+
function UtilityLogic(store, ns, underlyingFetch) {
|
|
67170
67493
|
this.store = store;
|
|
67171
67494
|
this.ns = ns;
|
|
67172
|
-
this.
|
|
67495
|
+
this.underlyingFetch = underlyingFetch;
|
|
67173
67496
|
}
|
|
67174
67497
|
UtilityLogic.prototype.findAclDocUrl = function (url) {
|
|
67175
67498
|
var _a;
|
|
@@ -67228,7 +67551,7 @@ var UtilityLogic = /** @class */ (function () {
|
|
|
67228
67551
|
return [4 /*yield*/, this.findAclDocUrl(options.target)];
|
|
67229
67552
|
case 1:
|
|
67230
67553
|
aclDocUrl = _a.sent();
|
|
67231
|
-
return [2 /*return*/, this.
|
|
67554
|
+
return [2 /*return*/, this.underlyingFetch.fetch(aclDocUrl, {
|
|
67232
67555
|
method: 'PUT',
|
|
67233
67556
|
body: str,
|
|
67234
67557
|
headers: [
|
|
@@ -67274,7 +67597,7 @@ var UtilityLogic = /** @class */ (function () {
|
|
|
67274
67597
|
if (!this.isContainer(url)) {
|
|
67275
67598
|
throw new Error("Not a container URL ".concat(url));
|
|
67276
67599
|
}
|
|
67277
|
-
return [4 /*yield*/, this.
|
|
67600
|
+
return [4 /*yield*/, this.underlyingFetch.fetch(url, {
|
|
67278
67601
|
method: "PUT",
|
|
67279
67602
|
headers: {
|
|
67280
67603
|
"Content-Type": "text/turtle",
|
|
@@ -67327,7 +67650,7 @@ var UtilityLogic = /** @class */ (function () {
|
|
|
67327
67650
|
return [4 /*yield*/, this.findAclDocUrl(url)];
|
|
67328
67651
|
case 1:
|
|
67329
67652
|
aclDocUrl = _a.sent();
|
|
67330
|
-
return [4 /*yield*/, this.
|
|
67653
|
+
return [4 /*yield*/, this.underlyingFetch.fetch(aclDocUrl, { method: "DELETE" })];
|
|
67331
67654
|
case 2:
|
|
67332
67655
|
_a.sent();
|
|
67333
67656
|
return [4 /*yield*/, this.getContainerMembers(url)];
|
|
@@ -67337,7 +67660,7 @@ var UtilityLogic = /** @class */ (function () {
|
|
|
67337
67660
|
case 4:
|
|
67338
67661
|
_a.sent();
|
|
67339
67662
|
_a.label = 5;
|
|
67340
|
-
case 5: return [2 /*return*/, this.
|
|
67663
|
+
case 5: return [2 /*return*/, this.underlyingFetch.fetch(url, { method: "DELETE" })];
|
|
67341
67664
|
case 6:
|
|
67342
67665
|
e_1 = _a.sent();
|
|
67343
67666
|
return [3 /*break*/, 7];
|