solid-ui 3.0.4-d5a80ae → 3.0.4-dbba0c5
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/login/login.d.ts.map +1 -1
- package/dist/login/login.js +6 -35
- package/dist/login/login.js.map +1 -1
- package/dist/solid-ui.esm.js +11 -39
- package/dist/solid-ui.esm.js.map +1 -1
- package/dist/solid-ui.esm.min.js +1 -1
- package/dist/solid-ui.esm.min.js.map +1 -1
- package/dist/solid-ui.js +11 -39
- 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/dist/versionInfo.js +22 -16
- package/dist/versionInfo.js.map +1 -1
- package/package.json +1 -1
package/dist/solid-ui.js
CHANGED
|
@@ -9577,7 +9577,7 @@ function ensureLoadedPreferences(_x) {
|
|
|
9577
9577
|
// used to be logInLoadProfile
|
|
9578
9578
|
function _ensureLoadedPreferences() {
|
|
9579
9579
|
_ensureLoadedPreferences = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee4(context) {
|
|
9580
|
-
var progressDisplay, preferencesFile, m2,
|
|
9580
|
+
var progressDisplay, preferencesFile, m2, _t4;
|
|
9581
9581
|
return regenerator_default().wrap(function (_context4) {
|
|
9582
9582
|
while (1) switch (_context4.prev = _context4.next) {
|
|
9583
9583
|
case 0:
|
|
@@ -9605,15 +9605,14 @@ function _ensureLoadedPreferences() {
|
|
|
9605
9605
|
case 4:
|
|
9606
9606
|
_context4.prev = 4;
|
|
9607
9607
|
_t4 = _context4["catch"](1);
|
|
9608
|
-
|
|
9609
|
-
if (!(_t4 instanceof external_SolidLogic_.UnauthorizedError || /status:\s*401|unauthorized/i.test(errorMessage))) {
|
|
9608
|
+
if (!(_t4 instanceof external_SolidLogic_.UnauthorizedError)) {
|
|
9610
9609
|
_context4.next = 5;
|
|
9611
9610
|
break;
|
|
9612
9611
|
}
|
|
9613
|
-
m2 = '
|
|
9614
|
-
|
|
9615
|
-
|
|
9616
|
-
|
|
9612
|
+
m2 = 'Oops — you are not authenticated (properly logged in), so SolidOS cannot read your preferences file. Try logging out and then logging back in.';
|
|
9613
|
+
log_alert(m2);
|
|
9614
|
+
_context4.next = 11;
|
|
9615
|
+
break;
|
|
9617
9616
|
case 5:
|
|
9618
9617
|
if (!(_t4 instanceof external_SolidLogic_.CrossOriginForbiddenError)) {
|
|
9619
9618
|
_context4.next = 6;
|
|
@@ -9679,7 +9678,7 @@ function ensureLoadedProfile(_x2) {
|
|
|
9679
9678
|
*/
|
|
9680
9679
|
function _ensureLoadedProfile() {
|
|
9681
9680
|
_ensureLoadedProfile = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee5(context) {
|
|
9682
|
-
var logInContext,
|
|
9681
|
+
var logInContext, _t5;
|
|
9683
9682
|
return regenerator_default().wrap(function (_context5) {
|
|
9684
9683
|
while (1) switch (_context5.prev = _context5.next) {
|
|
9685
9684
|
case 0:
|
|
@@ -9698,51 +9697,24 @@ function _ensureLoadedProfile() {
|
|
|
9698
9697
|
_context5.next = 3;
|
|
9699
9698
|
break;
|
|
9700
9699
|
}
|
|
9701
|
-
|
|
9702
|
-
src_debug/* log */.Rm(notLoggedInMessage);
|
|
9703
|
-
if (context.div && context.dom) {
|
|
9704
|
-
context.div.appendChild(errorMessageBlock(context.dom, notLoggedInMessage));
|
|
9705
|
-
}
|
|
9706
|
-
return _context5.abrupt("return", context);
|
|
9700
|
+
throw new Error('Could not log in');
|
|
9707
9701
|
case 3:
|
|
9708
9702
|
_context5.next = 4;
|
|
9709
9703
|
return loadProfile(logInContext.me);
|
|
9710
9704
|
case 4:
|
|
9711
9705
|
context.publicProfile = _context5.sent;
|
|
9712
|
-
_context5.next =
|
|
9706
|
+
_context5.next = 6;
|
|
9713
9707
|
break;
|
|
9714
9708
|
case 5:
|
|
9715
9709
|
_context5.prev = 5;
|
|
9716
9710
|
_t5 = _context5["catch"](1);
|
|
9717
|
-
message = _t5 instanceof Error ? _t5.message : "".concat(_t5);
|
|
9718
|
-
if (!/status:\s*401|unauthorized/i.test(message)) {
|
|
9719
|
-
_context5.next = 6;
|
|
9720
|
-
break;
|
|
9721
|
-
}
|
|
9722
|
-
_notLoggedInMessage = 'Not logged in, so profile was not loaded.';
|
|
9723
|
-
src_debug/* warn */.R8(_notLoggedInMessage);
|
|
9724
9711
|
if (context.div && context.dom) {
|
|
9725
|
-
context.div.appendChild(errorMessageBlock(context.dom,
|
|
9712
|
+
context.div.appendChild(errorMessageBlock(context.dom, _t5.message));
|
|
9726
9713
|
}
|
|
9727
|
-
|
|
9714
|
+
throw new Error("Can't log in: ".concat(_t5));
|
|
9728
9715
|
case 6:
|
|
9729
|
-
loggedInUser = logInContext && logInContext.me;
|
|
9730
|
-
isNonFatalProfileSideLoadFailure = !!loggedInUser && (_t5 instanceof external_SolidLogic_.CrossOriginForbiddenError || _t5 instanceof external_SolidLogic_.SameOriginForbiddenError || /status:\s*403|forbidden/i.test(message) || /cancel/i.test(message));
|
|
9731
|
-
if (!isNonFatalProfileSideLoadFailure) {
|
|
9732
|
-
_context5.next = 7;
|
|
9733
|
-
break;
|
|
9734
|
-
}
|
|
9735
|
-
src_debug/* warn */.R8("Unable to load all profile-linked resources; continuing as logged in user: ".concat(message));
|
|
9736
|
-
context.publicProfile = loggedInUser.doc();
|
|
9737
9716
|
return _context5.abrupt("return", context);
|
|
9738
9717
|
case 7:
|
|
9739
|
-
if (context.div && context.dom) {
|
|
9740
|
-
context.div.appendChild(errorMessageBlock(context.dom, message));
|
|
9741
|
-
}
|
|
9742
|
-
throw new Error("Can't log in: ".concat(_t5));
|
|
9743
|
-
case 8:
|
|
9744
|
-
return _context5.abrupt("return", context);
|
|
9745
|
-
case 9:
|
|
9746
9718
|
case "end":
|
|
9747
9719
|
return _context5.stop();
|
|
9748
9720
|
}
|