@azrico/webobject 1.4.56 → 1.4.58
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 +33 -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,19 +309,21 @@ 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) {
|
|
326
|
+
if (typeof dlt[fk] === "number") dlt[fk] = String(dlt[fk]);
|
|
325
327
|
if (typeof dlt[fk] !== "string") return;
|
|
326
328
|
dlt[fk] = (0, _string.string_do)(formatname, dlt[fk]);
|
|
327
329
|
});
|
|
@@ -332,18 +334,18 @@ var WebObject = /*#__PURE__*/function (_SimpleObject) {
|
|
|
332
334
|
}
|
|
333
335
|
}, _loop);
|
|
334
336
|
});
|
|
335
|
-
_context6.t0 = _regeneratorRuntime().keys(
|
|
336
|
-
case
|
|
337
|
+
_context6.t0 = _regeneratorRuntime().keys(use_formats);
|
|
338
|
+
case 21:
|
|
337
339
|
if ((_context6.t1 = _context6.t0()).done) {
|
|
338
|
-
_context6.next =
|
|
340
|
+
_context6.next = 26;
|
|
339
341
|
break;
|
|
340
342
|
}
|
|
341
343
|
formatname = _context6.t1.value;
|
|
342
|
-
return _context6.delegateYield(_loop(formatname), "t2",
|
|
343
|
-
case
|
|
344
|
-
_context6.next =
|
|
344
|
+
return _context6.delegateYield(_loop(formatname), "t2", 24);
|
|
345
|
+
case 24:
|
|
346
|
+
_context6.next = 21;
|
|
345
347
|
break;
|
|
346
|
-
case
|
|
348
|
+
case 26:
|
|
347
349
|
/* -------------------------------------------------------------------------- */
|
|
348
350
|
/* __simpleProperties */
|
|
349
351
|
/* -------------------------------------------------------------------------- */
|
|
@@ -358,35 +360,35 @@ var WebObject = /*#__PURE__*/function (_SimpleObject) {
|
|
|
358
360
|
changableKeys.push(newKey);
|
|
359
361
|
});
|
|
360
362
|
}
|
|
361
|
-
case
|
|
363
|
+
case 27:
|
|
362
364
|
_iterator = _createForOfIteratorHelper(changableKeys);
|
|
363
|
-
_context6.prev =
|
|
365
|
+
_context6.prev = 28;
|
|
364
366
|
_iterator.s();
|
|
365
|
-
case
|
|
367
|
+
case 30:
|
|
366
368
|
if ((_step = _iterator.n()).done) {
|
|
367
|
-
_context6.next =
|
|
369
|
+
_context6.next = 37;
|
|
368
370
|
break;
|
|
369
371
|
}
|
|
370
372
|
key = _step.value;
|
|
371
|
-
_context6.next =
|
|
373
|
+
_context6.next = 34;
|
|
372
374
|
return parseObj(dlt[key]);
|
|
373
|
-
case 33:
|
|
374
|
-
final_object[key] = _context6.sent;
|
|
375
375
|
case 34:
|
|
376
|
-
|
|
376
|
+
final_object[key] = _context6.sent;
|
|
377
|
+
case 35:
|
|
378
|
+
_context6.next = 30;
|
|
377
379
|
break;
|
|
378
|
-
case
|
|
379
|
-
_context6.next =
|
|
380
|
+
case 37:
|
|
381
|
+
_context6.next = 42;
|
|
380
382
|
break;
|
|
381
|
-
case
|
|
382
|
-
_context6.prev =
|
|
383
|
-
_context6.t3 = _context6["catch"](
|
|
383
|
+
case 39:
|
|
384
|
+
_context6.prev = 39;
|
|
385
|
+
_context6.t3 = _context6["catch"](28);
|
|
384
386
|
_iterator.e(_context6.t3);
|
|
385
|
-
case
|
|
386
|
-
_context6.prev =
|
|
387
|
+
case 42:
|
|
388
|
+
_context6.prev = 42;
|
|
387
389
|
_iterator.f();
|
|
388
|
-
return _context6.finish(
|
|
389
|
-
case
|
|
390
|
+
return _context6.finish(42);
|
|
391
|
+
case 45:
|
|
390
392
|
/* -------------------------------------------------------------------------- */
|
|
391
393
|
/* add id properties */
|
|
392
394
|
/* -------------------------------------------------------------------------- */
|
|
@@ -407,11 +409,11 @@ var WebObject = /*#__PURE__*/function (_SimpleObject) {
|
|
|
407
409
|
final_object["_users"] = (0, _object.wrap_array)(tempusers);
|
|
408
410
|
}
|
|
409
411
|
return _context6.abrupt("return", final_object);
|
|
410
|
-
case
|
|
412
|
+
case 48:
|
|
411
413
|
case "end":
|
|
412
414
|
return _context6.stop();
|
|
413
415
|
}
|
|
414
|
-
}, _callee5, this, [[
|
|
416
|
+
}, _callee5, this, [[28, 39, 42, 45]]);
|
|
415
417
|
}));
|
|
416
418
|
function get_deltaObject(_x) {
|
|
417
419
|
return _get_deltaObject.apply(this, arguments);
|