@azrico/webobject 1.4.56 → 1.4.57
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/src/WebObjects/WebObject.js +32 -31
- package/package.json +1 -1
|
@@ -206,7 +206,7 @@ var WebObject = /*#__PURE__*/function (_SimpleObject) {
|
|
|
206
206
|
value: function () {
|
|
207
207
|
var _get_deltaObject = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(p) {
|
|
208
208
|
var _this2 = this;
|
|
209
|
-
var final_object, isChild, useDelta, allProperties, chkChangables, useExtraProps, dlt, allkeys, changableKeys, functionProps, index, fp, formats, simpleProps, _loop, formatname, parseObj, _parseObj, _iterator, _step, key, tempusers;
|
|
209
|
+
var final_object, isChild, useDelta, allProperties, chkChangables, useExtraProps, dlt, allkeys, changableKeys, functionProps, index, fp, formats, use_formats, simpleProps, _loop, formatname, parseObj, _parseObj, _iterator, _step, key, tempusers;
|
|
210
210
|
return _regeneratorRuntime().wrap(function _callee5$(_context6) {
|
|
211
211
|
while (1) switch (_context6.prev = _context6.next) {
|
|
212
212
|
case 0:
|
|
@@ -309,17 +309,18 @@ var WebObject = /*#__PURE__*/function (_SimpleObject) {
|
|
|
309
309
|
/* -------------------------------------------------------------------------- */
|
|
310
310
|
formats = (0, _object.object_getStatic)(this, "__formatList");
|
|
311
311
|
if (!formats) {
|
|
312
|
-
_context6.next =
|
|
312
|
+
_context6.next = 27;
|
|
313
313
|
break;
|
|
314
314
|
}
|
|
315
|
-
|
|
316
|
-
|
|
315
|
+
use_formats = _objectSpread({}, formats);
|
|
316
|
+
simpleProps = (0, _object.wrap_array)(use_formats.simple);
|
|
317
|
+
delete use_formats.simple;
|
|
317
318
|
_loop = /*#__PURE__*/_regeneratorRuntime().mark(function _loop(formatname) {
|
|
318
319
|
var formatKeys;
|
|
319
320
|
return _regeneratorRuntime().wrap(function _loop$(_context3) {
|
|
320
321
|
while (1) switch (_context3.prev = _context3.next) {
|
|
321
322
|
case 0:
|
|
322
|
-
formatKeys =
|
|
323
|
+
formatKeys = use_formats[formatname];
|
|
323
324
|
if (Array.isArray(formatKeys)) {
|
|
324
325
|
formatKeys.forEach(function (fk) {
|
|
325
326
|
if (typeof dlt[fk] !== "string") return;
|
|
@@ -332,18 +333,18 @@ var WebObject = /*#__PURE__*/function (_SimpleObject) {
|
|
|
332
333
|
}
|
|
333
334
|
}, _loop);
|
|
334
335
|
});
|
|
335
|
-
_context6.t0 = _regeneratorRuntime().keys(
|
|
336
|
-
case
|
|
336
|
+
_context6.t0 = _regeneratorRuntime().keys(use_formats);
|
|
337
|
+
case 21:
|
|
337
338
|
if ((_context6.t1 = _context6.t0()).done) {
|
|
338
|
-
_context6.next =
|
|
339
|
+
_context6.next = 26;
|
|
339
340
|
break;
|
|
340
341
|
}
|
|
341
342
|
formatname = _context6.t1.value;
|
|
342
|
-
return _context6.delegateYield(_loop(formatname), "t2",
|
|
343
|
-
case
|
|
344
|
-
_context6.next =
|
|
343
|
+
return _context6.delegateYield(_loop(formatname), "t2", 24);
|
|
344
|
+
case 24:
|
|
345
|
+
_context6.next = 21;
|
|
345
346
|
break;
|
|
346
|
-
case
|
|
347
|
+
case 26:
|
|
347
348
|
/* -------------------------------------------------------------------------- */
|
|
348
349
|
/* __simpleProperties */
|
|
349
350
|
/* -------------------------------------------------------------------------- */
|
|
@@ -358,35 +359,35 @@ var WebObject = /*#__PURE__*/function (_SimpleObject) {
|
|
|
358
359
|
changableKeys.push(newKey);
|
|
359
360
|
});
|
|
360
361
|
}
|
|
361
|
-
case
|
|
362
|
+
case 27:
|
|
362
363
|
_iterator = _createForOfIteratorHelper(changableKeys);
|
|
363
|
-
_context6.prev =
|
|
364
|
+
_context6.prev = 28;
|
|
364
365
|
_iterator.s();
|
|
365
|
-
case
|
|
366
|
+
case 30:
|
|
366
367
|
if ((_step = _iterator.n()).done) {
|
|
367
|
-
_context6.next =
|
|
368
|
+
_context6.next = 37;
|
|
368
369
|
break;
|
|
369
370
|
}
|
|
370
371
|
key = _step.value;
|
|
371
|
-
_context6.next =
|
|
372
|
+
_context6.next = 34;
|
|
372
373
|
return parseObj(dlt[key]);
|
|
373
|
-
case 33:
|
|
374
|
-
final_object[key] = _context6.sent;
|
|
375
374
|
case 34:
|
|
376
|
-
|
|
375
|
+
final_object[key] = _context6.sent;
|
|
376
|
+
case 35:
|
|
377
|
+
_context6.next = 30;
|
|
377
378
|
break;
|
|
378
|
-
case
|
|
379
|
-
_context6.next =
|
|
379
|
+
case 37:
|
|
380
|
+
_context6.next = 42;
|
|
380
381
|
break;
|
|
381
|
-
case
|
|
382
|
-
_context6.prev =
|
|
383
|
-
_context6.t3 = _context6["catch"](
|
|
382
|
+
case 39:
|
|
383
|
+
_context6.prev = 39;
|
|
384
|
+
_context6.t3 = _context6["catch"](28);
|
|
384
385
|
_iterator.e(_context6.t3);
|
|
385
|
-
case
|
|
386
|
-
_context6.prev =
|
|
386
|
+
case 42:
|
|
387
|
+
_context6.prev = 42;
|
|
387
388
|
_iterator.f();
|
|
388
|
-
return _context6.finish(
|
|
389
|
-
case
|
|
389
|
+
return _context6.finish(42);
|
|
390
|
+
case 45:
|
|
390
391
|
/* -------------------------------------------------------------------------- */
|
|
391
392
|
/* add id properties */
|
|
392
393
|
/* -------------------------------------------------------------------------- */
|
|
@@ -407,11 +408,11 @@ var WebObject = /*#__PURE__*/function (_SimpleObject) {
|
|
|
407
408
|
final_object["_users"] = (0, _object.wrap_array)(tempusers);
|
|
408
409
|
}
|
|
409
410
|
return _context6.abrupt("return", final_object);
|
|
410
|
-
case
|
|
411
|
+
case 48:
|
|
411
412
|
case "end":
|
|
412
413
|
return _context6.stop();
|
|
413
414
|
}
|
|
414
|
-
}, _callee5, this, [[
|
|
415
|
+
}, _callee5, this, [[28, 39, 42, 45]]);
|
|
415
416
|
}));
|
|
416
417
|
function get_deltaObject(_x) {
|
|
417
418
|
return _get_deltaObject.apply(this, arguments);
|