solid-ui 2.4.27-34729709 → 2.4.27-3576458f
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/solid-ui.js +44 -20
- package/dist/solid-ui.js.map +1 -1
- package/dist/solid-ui.min.js +1 -1
- package/dist/solid-ui.min.js.map +1 -1
- package/lib/chat/keys.js +3 -3
- package/lib/chat/keys.js.map +1 -1
- package/lib/utils/keyHelpers/accessData.d.ts +1 -1
- package/lib/utils/keyHelpers/accessData.d.ts.map +1 -1
- package/lib/utils/keyHelpers/accessData.js +23 -14
- package/lib/utils/keyHelpers/accessData.js.map +1 -1
- package/lib/versionInfo.js +2 -2
- package/lib/versionInfo.js.map +1 -1
- package/package.json +1 -1
package/dist/solid-ui.js
CHANGED
|
@@ -4176,7 +4176,7 @@ function _getPrivateKey() {
|
|
|
4176
4176
|
}));
|
|
4177
4177
|
return _getPrivateKey.apply(this, arguments);
|
|
4178
4178
|
}
|
|
4179
|
-
var
|
|
4179
|
+
var deleteKeyAcl = /*#__PURE__*/function () {
|
|
4180
4180
|
var _ref = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(keyDoc) {
|
|
4181
4181
|
var keyAclDoc, response;
|
|
4182
4182
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
@@ -4215,7 +4215,7 @@ var deleteKey = /*#__PURE__*/function () {
|
|
|
4215
4215
|
}
|
|
4216
4216
|
}, _callee, null, [[4, 11]]);
|
|
4217
4217
|
}));
|
|
4218
|
-
return function
|
|
4218
|
+
return function deleteKeyAcl(_x3) {
|
|
4219
4219
|
return _ref.apply(this, arguments);
|
|
4220
4220
|
};
|
|
4221
4221
|
}();
|
|
@@ -4237,7 +4237,7 @@ function _saveKey() {
|
|
|
4237
4237
|
while (1) switch (_context4.prev = _context4.next) {
|
|
4238
4238
|
case 0:
|
|
4239
4239
|
_context4.next = 2;
|
|
4240
|
-
return
|
|
4240
|
+
return deleteKeyAcl(keyDoc);
|
|
4241
4241
|
case 2:
|
|
4242
4242
|
_context4.next = 4;
|
|
4243
4243
|
return _solidLogic.store.updater.updateMany(del, add);
|
|
@@ -13266,7 +13266,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
13266
13266
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
13267
13267
|
var getPodRoot = /*#__PURE__*/function () {
|
|
13268
13268
|
var _ref = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(webId) {
|
|
13269
|
-
var _podRoot;
|
|
13270
13269
|
var webIdURL, storages, podRoot, path, _res$headers$get, res;
|
|
13271
13270
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
13272
13271
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -13312,7 +13311,7 @@ var getPodRoot = /*#__PURE__*/function () {
|
|
|
13312
13311
|
});
|
|
13313
13312
|
if (!podRoot) podRoot = storages[0];
|
|
13314
13313
|
case 21:
|
|
13315
|
-
return _context.abrupt("return",
|
|
13314
|
+
return _context.abrupt("return", podRoot);
|
|
13316
13315
|
case 22:
|
|
13317
13316
|
case "end":
|
|
13318
13317
|
return _context.stop();
|
|
@@ -13333,7 +13332,7 @@ var pubKeyUrl = /*#__PURE__*/function () {
|
|
|
13333
13332
|
_context2.next = 3;
|
|
13334
13333
|
return getPodRoot(webId);
|
|
13335
13334
|
case 3:
|
|
13336
|
-
_context2.t0 = _context2.sent;
|
|
13335
|
+
_context2.t0 = _context2.sent.value;
|
|
13337
13336
|
return _context2.abrupt("return", _context2.t0 + 'profile/keys/publicKey.ttl');
|
|
13338
13337
|
case 7:
|
|
13339
13338
|
_context2.prev = 7;
|
|
@@ -13372,24 +13371,34 @@ function _getExistingPublicKey() {
|
|
|
13372
13371
|
}
|
|
13373
13372
|
var privKeyUrl = /*#__PURE__*/function () {
|
|
13374
13373
|
var _ref3 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(webId) {
|
|
13374
|
+
var _store$any, _settings;
|
|
13375
|
+
var settings, _settings2, podRoot;
|
|
13375
13376
|
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
13376
13377
|
while (1) switch (_context3.prev = _context3.next) {
|
|
13377
13378
|
case 0:
|
|
13378
|
-
|
|
13379
|
-
|
|
13379
|
+
settings = (_store$any = _solidLogic.store.any(webId, ns.space('preferencesFile'), null, webId.doc())) === null || _store$any === void 0 ? void 0 : _store$any.value;
|
|
13380
|
+
settings = (_settings = settings) === null || _settings === void 0 ? void 0 : _settings.split('/').slice(0, -1).join('/');
|
|
13381
|
+
_context3.prev = 2;
|
|
13382
|
+
_context3.next = 5;
|
|
13380
13383
|
return getPodRoot(webId);
|
|
13381
|
-
case
|
|
13382
|
-
|
|
13383
|
-
|
|
13384
|
-
|
|
13385
|
-
|
|
13386
|
-
|
|
13387
|
-
throw new Error(
|
|
13388
|
-
case
|
|
13384
|
+
case 5:
|
|
13385
|
+
podRoot = _context3.sent;
|
|
13386
|
+
if ((_settings2 = settings) !== null && _settings2 !== void 0 && _settings2.startsWith(podRoot.value)) {
|
|
13387
|
+
_context3.next = 8;
|
|
13388
|
+
break;
|
|
13389
|
+
}
|
|
13390
|
+
throw new Error("/settings/ is expected to be in ".concat(podRoot.value));
|
|
13391
|
+
case 8:
|
|
13392
|
+
return _context3.abrupt("return", "".concat(settings, "/keys/privateKey.ttl"));
|
|
13393
|
+
case 11:
|
|
13394
|
+
_context3.prev = 11;
|
|
13395
|
+
_context3.t0 = _context3["catch"](2);
|
|
13396
|
+
throw new Error(_context3.t0);
|
|
13397
|
+
case 14:
|
|
13389
13398
|
case "end":
|
|
13390
13399
|
return _context3.stop();
|
|
13391
13400
|
}
|
|
13392
|
-
}, _callee3, null, [[
|
|
13401
|
+
}, _callee3, null, [[2, 11]]);
|
|
13393
13402
|
}));
|
|
13394
13403
|
return function privKeyUrl(_x5) {
|
|
13395
13404
|
return _ref3.apply(this, arguments);
|
|
@@ -13705,8 +13714,8 @@ Object.defineProperty(exports, "__esModule", ({
|
|
|
13705
13714
|
}));
|
|
13706
13715
|
exports.versionInfo = void 0;
|
|
13707
13716
|
var versionInfo = {
|
|
13708
|
-
buildTime: '2023-05-
|
|
13709
|
-
commit: '
|
|
13717
|
+
buildTime: '2023-05-20T09:53:13Z',
|
|
13718
|
+
commit: '3576458f7be53012dc4085b5ae7caee1a511773e',
|
|
13710
13719
|
npmInfo: {
|
|
13711
13720
|
'solid-ui': '2.4.27',
|
|
13712
13721
|
npm: '8.19.4',
|
|
@@ -66522,7 +66531,22 @@ module.exports = JSON.parse('{"application/1d-interleaved-parityfec":{"source":"
|
|
|
66522
66531
|
/******/
|
|
66523
66532
|
/******/ /* webpack/runtime/publicPath */
|
|
66524
66533
|
/******/ (() => {
|
|
66525
|
-
/******/
|
|
66534
|
+
/******/ var scriptUrl;
|
|
66535
|
+
/******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + "";
|
|
66536
|
+
/******/ var document = __webpack_require__.g.document;
|
|
66537
|
+
/******/ if (!scriptUrl && document) {
|
|
66538
|
+
/******/ if (document.currentScript)
|
|
66539
|
+
/******/ scriptUrl = document.currentScript.src;
|
|
66540
|
+
/******/ if (!scriptUrl) {
|
|
66541
|
+
/******/ var scripts = document.getElementsByTagName("script");
|
|
66542
|
+
/******/ if(scripts.length) scriptUrl = scripts[scripts.length - 1].src
|
|
66543
|
+
/******/ }
|
|
66544
|
+
/******/ }
|
|
66545
|
+
/******/ // When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration
|
|
66546
|
+
/******/ // or pass an empty string ("") and set the __webpack_public_path__ variable from your code to use your own logic.
|
|
66547
|
+
/******/ if (!scriptUrl) throw new Error("Automatic publicPath is not supported in this browser");
|
|
66548
|
+
/******/ scriptUrl = scriptUrl.replace(/#.*$/, "").replace(/\?.*$/, "").replace(/\/[^\/]+$/, "/");
|
|
66549
|
+
/******/ __webpack_require__.p = scriptUrl;
|
|
66526
66550
|
/******/ })();
|
|
66527
66551
|
/******/
|
|
66528
66552
|
/******/ /* webpack/runtime/jsonp chunk loading */
|