solid-ui 2.4.24-36d16078 → 2.4.24-686a5c1c

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 CHANGED
@@ -2988,14 +2988,14 @@ var DateFolder = /*#__PURE__*/function () {
2988
2988
  case 0:
2989
2989
  _previousPeriod = function _previousPeriod3() {
2990
2990
  _previousPeriod = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(file, level) {
2991
- var younger, suitable, lastNonEmpty, _lastNonEmpty, parent, siblings, folder, uncle, cousins, result;
2991
+ var younger, suitable, lastNonEmpty, _lastNonEmpty, parent, siblings, _folder, uncle, cousins, result;
2992
2992
  return _regenerator["default"].wrap(function _callee2$(_context2) {
2993
2993
  while (1) {
2994
2994
  switch (_context2.prev = _context2.next) {
2995
2995
  case 0:
2996
2996
  _lastNonEmpty = function _lastNonEmpty3() {
2997
2997
  _lastNonEmpty = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(siblings) {
2998
- var _folder, leafDocument;
2998
+ var _folder2, leafDocument;
2999
2999
  return _regenerator["default"].wrap(function _callee$(_context) {
3000
3000
  while (1) {
3001
3001
  switch (_context.prev = _context.next) {
@@ -3013,8 +3013,8 @@ var DateFolder = /*#__PURE__*/function () {
3013
3013
  _context.next = 14;
3014
3014
  break;
3015
3015
  }
3016
- _folder = siblings.pop();
3017
- leafDocument = _solidLogic.store.sym(_folder.uri + thisDateFolder.leafFileName);
3016
+ _folder2 = siblings.pop();
3017
+ leafDocument = _solidLogic.store.sym(_folder2.uri + thisDateFolder.leafFileName);
3018
3018
  _context.next = 10;
3019
3019
  return _solidLogic.store.fetcher.load(leafDocument);
3020
3020
  case 10:
@@ -3022,7 +3022,7 @@ var DateFolder = /*#__PURE__*/function () {
3022
3022
  _context.next = 12;
3023
3023
  break;
3024
3024
  }
3025
- return _context.abrupt("return", _folder);
3025
+ return _context.abrupt("return", _folder2);
3026
3026
  case 12:
3027
3027
  _context.next = 5;
3028
3028
  break;
@@ -3051,52 +3051,70 @@ var DateFolder = /*#__PURE__*/function () {
3051
3051
  };
3052
3052
  // debug.log(' previousPeriod level' + level + ' file ' + file)
3053
3053
  parent = file.dir();
3054
- _context2.next = 7;
3054
+ _context2.prev = 5;
3055
+ _context2.next = 8;
3055
3056
  return _solidLogic.store.fetcher.load(parent);
3056
- case 7:
3057
+ case 8:
3057
3058
  siblings = _solidLogic.store.each(parent, ns.ldp('contains'));
3058
3059
  siblings = siblings.filter(younger);
3059
- _context2.next = 11;
3060
+ _context2.next = 12;
3060
3061
  return lastNonEmpty(siblings);
3061
- case 11:
3062
- folder = _context2.sent;
3063
- if (!folder) {
3064
- _context2.next = 14;
3062
+ case 12:
3063
+ _folder = _context2.sent;
3064
+ if (!_folder) {
3065
+ _context2.next = 15;
3066
+ break;
3067
+ }
3068
+ return _context2.abrupt("return", _folder);
3069
+ case 15:
3070
+ _context2.next = 25;
3071
+ break;
3072
+ case 17:
3073
+ _context2.prev = 17;
3074
+ _context2.t0 = _context2["catch"](5);
3075
+ if (!(_context2.t0.response && _context2.t0.response.status && _context2.t0.response.status === 404)) {
3076
+ _context2.next = 23;
3065
3077
  break;
3066
3078
  }
3067
- return _context2.abrupt("return", folder);
3068
- case 14:
3079
+ debug.log('Error 404 for chat parent file ' + parent);
3080
+ _context2.next = 25;
3081
+ break;
3082
+ case 23:
3083
+ debug.log('*** Error NON 404 for chat parent file ' + parent);
3084
+ // statusTR.appendChild(widgets.errorMessageBlock(dom, err, 'pink'))
3085
+ throw new Error("*** ".concat(_context2.t0.message, " for chat folder ").concat(parent));
3086
+ case 25:
3069
3087
  if (!(level === 0)) {
3070
- _context2.next = 16;
3088
+ _context2.next = 27;
3071
3089
  break;
3072
3090
  }
3073
3091
  return _context2.abrupt("return", null);
3074
- case 16:
3075
- _context2.next = 18;
3092
+ case 27:
3093
+ _context2.next = 29;
3076
3094
  return previousPeriod(parent, level - 1);
3077
- case 18:
3095
+ case 29:
3078
3096
  uncle = _context2.sent;
3079
3097
  if (uncle) {
3080
- _context2.next = 21;
3098
+ _context2.next = 32;
3081
3099
  break;
3082
3100
  }
3083
3101
  return _context2.abrupt("return", null);
3084
- case 21:
3085
- _context2.next = 23;
3102
+ case 32:
3103
+ _context2.next = 34;
3086
3104
  return _solidLogic.store.fetcher.load(uncle);
3087
- case 23:
3105
+ case 34:
3088
3106
  cousins = _solidLogic.store.each(uncle, ns.ldp('contains'));
3089
- _context2.next = 26;
3107
+ _context2.next = 37;
3090
3108
  return lastNonEmpty(cousins);
3091
- case 26:
3109
+ case 37:
3092
3110
  result = _context2.sent;
3093
3111
  return _context2.abrupt("return", result);
3094
- case 28:
3112
+ case 39:
3095
3113
  case "end":
3096
3114
  return _context2.stop();
3097
3115
  }
3098
3116
  }
3099
- }, _callee2);
3117
+ }, _callee2, null, [[5, 17]]);
3100
3118
  }));
3101
3119
  return _previousPeriod.apply(this, arguments);
3102
3120
  };
@@ -13227,12 +13245,12 @@ Object.defineProperty(exports, "__esModule", ({
13227
13245
  }));
13228
13246
  exports.versionInfo = void 0;
13229
13247
  var versionInfo = {
13230
- buildTime: '2022-11-17T16:58:04Z',
13231
- commit: '36d160782e1dc52931b0f4713a455b4e3c87f313',
13248
+ buildTime: '2022-12-24T09:44:52Z',
13249
+ commit: '686a5c1cdad9c4420e60d55ddef75c65f86fabd9',
13232
13250
  npmInfo: {
13233
13251
  'solid-ui': '2.4.24',
13234
13252
  npm: '8.19.3',
13235
- node: '14.20.1',
13253
+ node: '14.21.1',
13236
13254
  v8: '8.4.371.23-node.87',
13237
13255
  uv: '1.42.0',
13238
13256
  zlib: '1.2.11',
@@ -13245,7 +13263,7 @@ var versionInfo = {
13245
13263
  openssl: '1.1.1q',
13246
13264
  cldr: '40.0',
13247
13265
  icu: '70.1',
13248
- tz: '2021a3',
13266
+ tz: '2022e',
13249
13267
  unicode: '14.0'
13250
13268
  }
13251
13269
  };