@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.
@@ -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 = 26;
312
+ _context6.next = 27;
313
313
  break;
314
314
  }
315
- simpleProps = (0, _object.wrap_array)(formats.simple);
316
- delete formats.simple;
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 = formats[formatname];
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(formats);
336
- case 20:
337
+ _context6.t0 = _regeneratorRuntime().keys(use_formats);
338
+ case 21:
337
339
  if ((_context6.t1 = _context6.t0()).done) {
338
- _context6.next = 25;
340
+ _context6.next = 26;
339
341
  break;
340
342
  }
341
343
  formatname = _context6.t1.value;
342
- return _context6.delegateYield(_loop(formatname), "t2", 23);
343
- case 23:
344
- _context6.next = 20;
344
+ return _context6.delegateYield(_loop(formatname), "t2", 24);
345
+ case 24:
346
+ _context6.next = 21;
345
347
  break;
346
- case 25:
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 26:
363
+ case 27:
362
364
  _iterator = _createForOfIteratorHelper(changableKeys);
363
- _context6.prev = 27;
365
+ _context6.prev = 28;
364
366
  _iterator.s();
365
- case 29:
367
+ case 30:
366
368
  if ((_step = _iterator.n()).done) {
367
- _context6.next = 36;
369
+ _context6.next = 37;
368
370
  break;
369
371
  }
370
372
  key = _step.value;
371
- _context6.next = 33;
373
+ _context6.next = 34;
372
374
  return parseObj(dlt[key]);
373
- case 33:
374
- final_object[key] = _context6.sent;
375
375
  case 34:
376
- _context6.next = 29;
376
+ final_object[key] = _context6.sent;
377
+ case 35:
378
+ _context6.next = 30;
377
379
  break;
378
- case 36:
379
- _context6.next = 41;
380
+ case 37:
381
+ _context6.next = 42;
380
382
  break;
381
- case 38:
382
- _context6.prev = 38;
383
- _context6.t3 = _context6["catch"](27);
383
+ case 39:
384
+ _context6.prev = 39;
385
+ _context6.t3 = _context6["catch"](28);
384
386
  _iterator.e(_context6.t3);
385
- case 41:
386
- _context6.prev = 41;
387
+ case 42:
388
+ _context6.prev = 42;
387
389
  _iterator.f();
388
- return _context6.finish(41);
389
- case 44:
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 47:
412
+ case 48:
411
413
  case "end":
412
414
  return _context6.stop();
413
415
  }
414
- }, _callee5, this, [[27, 38, 41, 44]]);
416
+ }, _callee5, this, [[28, 39, 42, 45]]);
415
417
  }));
416
418
  function get_deltaObject(_x) {
417
419
  return _get_deltaObject.apply(this, arguments);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azrico/webobject",
3
- "version": "1.4.56",
3
+ "version": "1.4.58",
4
4
  "description": "Stateful object",
5
5
  "author": "Azrideus",
6
6
  "license": "MIT",