@azrico/webobject 1.4.131 → 1.4.133
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.
|
@@ -70,6 +70,13 @@ export declare class WebObject extends SimpleObject {
|
|
|
70
70
|
canDelete(): boolean;
|
|
71
71
|
canArchive(): boolean;
|
|
72
72
|
deltaIsValid(d: any): true | string;
|
|
73
|
+
/**
|
|
74
|
+
* calls the `get_deltaObject` with `allProperties=true` `extraProperties=true`
|
|
75
|
+
*
|
|
76
|
+
* useful in server applications
|
|
77
|
+
* @returns
|
|
78
|
+
*/
|
|
79
|
+
get_fullDeltaObject(p?: deltaParams): Promise<any>;
|
|
73
80
|
/**
|
|
74
81
|
* You will post this to the server for saving
|
|
75
82
|
* automatically removes unchangable fields
|
|
@@ -349,87 +349,119 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
|
|
|
349
349
|
value: function deltaIsValid(d) {
|
|
350
350
|
return true;
|
|
351
351
|
}
|
|
352
|
+
/**
|
|
353
|
+
* calls the `get_deltaObject` with `allProperties=true` `extraProperties=true`
|
|
354
|
+
*
|
|
355
|
+
* useful in server applications
|
|
356
|
+
* @returns
|
|
357
|
+
*/
|
|
358
|
+
}, {
|
|
359
|
+
key: "get_fullDeltaObject",
|
|
360
|
+
value: (function () {
|
|
361
|
+
var _get_fullDeltaObject = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(p) {
|
|
362
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
363
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
364
|
+
case 0:
|
|
365
|
+
_context6.next = 2;
|
|
366
|
+
return this.get_deltaObject({
|
|
367
|
+
allProperties: true,
|
|
368
|
+
extraProperties: true
|
|
369
|
+
});
|
|
370
|
+
case 2:
|
|
371
|
+
return _context6.abrupt("return", _context6.sent);
|
|
372
|
+
case 3:
|
|
373
|
+
case "end":
|
|
374
|
+
return _context6.stop();
|
|
375
|
+
}
|
|
376
|
+
}, _callee6, this);
|
|
377
|
+
}));
|
|
378
|
+
function get_fullDeltaObject(_x3) {
|
|
379
|
+
return _get_fullDeltaObject.apply(this, arguments);
|
|
380
|
+
}
|
|
381
|
+
return get_fullDeltaObject;
|
|
382
|
+
}()
|
|
352
383
|
/**
|
|
353
384
|
* You will post this to the server for saving
|
|
354
385
|
* automatically removes unchangable fields
|
|
355
386
|
* @returns
|
|
356
387
|
*/
|
|
388
|
+
)
|
|
357
389
|
}, {
|
|
358
390
|
key: "get_deltaObject",
|
|
359
391
|
value: (function () {
|
|
360
|
-
var _get_deltaObject = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
392
|
+
var _get_deltaObject = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(p) {
|
|
361
393
|
var _this2 = this;
|
|
362
394
|
var final_object, isChild, useDelta, allProperties, needId, chkChangables, useExtraProps, dlt, allkeys, changableKeys, functionProps, index, fp, parseObj, _parseObj, _iterator, _step, key, tempusers;
|
|
363
|
-
return _regeneratorRuntime().wrap(function
|
|
364
|
-
while (1) switch (
|
|
395
|
+
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
|
396
|
+
while (1) switch (_context9.prev = _context9.next) {
|
|
365
397
|
case 0:
|
|
366
398
|
_parseObj = function _parseObj3() {
|
|
367
|
-
_parseObj = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
399
|
+
_parseObj = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(obj) {
|
|
368
400
|
var newobj_dlt;
|
|
369
|
-
return _regeneratorRuntime().wrap(function
|
|
370
|
-
while (1) switch (
|
|
401
|
+
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
402
|
+
while (1) switch (_context8.prev = _context8.next) {
|
|
371
403
|
case 0:
|
|
372
404
|
if (!(obj == null)) {
|
|
373
|
-
|
|
405
|
+
_context8.next = 2;
|
|
374
406
|
break;
|
|
375
407
|
}
|
|
376
|
-
return
|
|
408
|
+
return _context8.abrupt("return", undefined);
|
|
377
409
|
case 2:
|
|
378
410
|
if (!Array.isArray(obj)) {
|
|
379
|
-
|
|
411
|
+
_context8.next = 6;
|
|
380
412
|
break;
|
|
381
413
|
}
|
|
382
|
-
|
|
414
|
+
_context8.next = 5;
|
|
383
415
|
return Promise.all(obj.map( /*#__PURE__*/function () {
|
|
384
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
385
|
-
return _regeneratorRuntime().wrap(function
|
|
386
|
-
while (1) switch (
|
|
416
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(r) {
|
|
417
|
+
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
418
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
387
419
|
case 0:
|
|
388
|
-
|
|
420
|
+
_context7.next = 2;
|
|
389
421
|
return parseObj(r);
|
|
390
422
|
case 2:
|
|
391
|
-
return
|
|
423
|
+
return _context7.abrupt("return", _context7.sent);
|
|
392
424
|
case 3:
|
|
393
425
|
case "end":
|
|
394
|
-
return
|
|
426
|
+
return _context7.stop();
|
|
395
427
|
}
|
|
396
|
-
},
|
|
428
|
+
}, _callee7);
|
|
397
429
|
}));
|
|
398
|
-
return function (
|
|
430
|
+
return function (_x6) {
|
|
399
431
|
return _ref.apply(this, arguments);
|
|
400
432
|
};
|
|
401
433
|
}()));
|
|
402
434
|
case 5:
|
|
403
|
-
return
|
|
435
|
+
return _context8.abrupt("return", _context8.sent);
|
|
404
436
|
case 6:
|
|
405
437
|
if (!(obj instanceof WebObject && typeof obj.get_deltaObject === "function")) {
|
|
406
|
-
|
|
438
|
+
_context8.next = 15;
|
|
407
439
|
break;
|
|
408
440
|
}
|
|
409
|
-
|
|
441
|
+
_context8.next = 9;
|
|
410
442
|
return obj.get_deltaObject(_objectSpread(_objectSpread({}, p), {}, {
|
|
411
443
|
isChild: true
|
|
412
444
|
}));
|
|
413
445
|
case 9:
|
|
414
|
-
newobj_dlt =
|
|
446
|
+
newobj_dlt = _context8.sent;
|
|
415
447
|
if ((0, _object.object_isEmpty)(newobj_dlt)) {
|
|
416
|
-
|
|
448
|
+
_context8.next = 14;
|
|
417
449
|
break;
|
|
418
450
|
}
|
|
419
|
-
return
|
|
451
|
+
return _context8.abrupt("return", newobj_dlt);
|
|
420
452
|
case 14:
|
|
421
|
-
return
|
|
453
|
+
return _context8.abrupt("return", obj);
|
|
422
454
|
case 15:
|
|
423
|
-
return
|
|
455
|
+
return _context8.abrupt("return", obj);
|
|
424
456
|
case 16:
|
|
425
457
|
case "end":
|
|
426
|
-
return
|
|
458
|
+
return _context8.stop();
|
|
427
459
|
}
|
|
428
|
-
},
|
|
460
|
+
}, _callee8);
|
|
429
461
|
}));
|
|
430
462
|
return _parseObj.apply(this, arguments);
|
|
431
463
|
};
|
|
432
|
-
parseObj = function _parseObj2(
|
|
464
|
+
parseObj = function _parseObj2(_x5) {
|
|
433
465
|
return _parseObj.apply(this, arguments);
|
|
434
466
|
};
|
|
435
467
|
if (!p) p = {};
|
|
@@ -448,7 +480,7 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
|
|
|
448
480
|
ignoreProtected: allProperties
|
|
449
481
|
});
|
|
450
482
|
}) : allkeys;
|
|
451
|
-
|
|
483
|
+
_context9.next = 15;
|
|
452
484
|
return _convert["default"].applyFormats({
|
|
453
485
|
inputobject: dlt,
|
|
454
486
|
formats: (0, _object.object_getStatic)(this, "__formatList"),
|
|
@@ -469,32 +501,32 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
|
|
|
469
501
|
/* parse all changableKeys */
|
|
470
502
|
/* -------------------------------------------------------------------------- */
|
|
471
503
|
_iterator = _createForOfIteratorHelper(changableKeys);
|
|
472
|
-
|
|
504
|
+
_context9.prev = 18;
|
|
473
505
|
_iterator.s();
|
|
474
506
|
case 20:
|
|
475
507
|
if ((_step = _iterator.n()).done) {
|
|
476
|
-
|
|
508
|
+
_context9.next = 27;
|
|
477
509
|
break;
|
|
478
510
|
}
|
|
479
511
|
key = _step.value;
|
|
480
|
-
|
|
512
|
+
_context9.next = 24;
|
|
481
513
|
return parseObj(dlt[key]);
|
|
482
514
|
case 24:
|
|
483
|
-
final_object[key] =
|
|
515
|
+
final_object[key] = _context9.sent;
|
|
484
516
|
case 25:
|
|
485
|
-
|
|
517
|
+
_context9.next = 20;
|
|
486
518
|
break;
|
|
487
519
|
case 27:
|
|
488
|
-
|
|
520
|
+
_context9.next = 32;
|
|
489
521
|
break;
|
|
490
522
|
case 29:
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
_iterator.e(
|
|
523
|
+
_context9.prev = 29;
|
|
524
|
+
_context9.t0 = _context9["catch"](18);
|
|
525
|
+
_iterator.e(_context9.t0);
|
|
494
526
|
case 32:
|
|
495
|
-
|
|
527
|
+
_context9.prev = 32;
|
|
496
528
|
_iterator.f();
|
|
497
|
-
return
|
|
529
|
+
return _context9.finish(32);
|
|
498
530
|
case 35:
|
|
499
531
|
/* -------------------------------------------------------------------------- */
|
|
500
532
|
/* add id properties */
|
|
@@ -519,14 +551,14 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
|
|
|
519
551
|
});
|
|
520
552
|
final_object["_users"] = (0, _object.wrap_array)(tempusers);
|
|
521
553
|
}
|
|
522
|
-
return
|
|
554
|
+
return _context9.abrupt("return", final_object);
|
|
523
555
|
case 39:
|
|
524
556
|
case "end":
|
|
525
|
-
return
|
|
557
|
+
return _context9.stop();
|
|
526
558
|
}
|
|
527
|
-
},
|
|
559
|
+
}, _callee9, this, [[18, 29, 32, 35]]);
|
|
528
560
|
}));
|
|
529
|
-
function get_deltaObject(
|
|
561
|
+
function get_deltaObject(_x4) {
|
|
530
562
|
return _get_deltaObject.apply(this, arguments);
|
|
531
563
|
}
|
|
532
564
|
return get_deltaObject;
|
|
@@ -554,28 +586,28 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
|
|
|
554
586
|
}, {
|
|
555
587
|
key: "onDelete",
|
|
556
588
|
value: ( /* -------------------------------------------------------------------------- */function () {
|
|
557
|
-
var _onDelete = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
589
|
+
var _onDelete = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10() {
|
|
558
590
|
var _this$manager;
|
|
559
591
|
var _len,
|
|
560
592
|
p,
|
|
561
593
|
_key,
|
|
562
|
-
|
|
563
|
-
return _regeneratorRuntime().wrap(function
|
|
564
|
-
while (1) switch (
|
|
594
|
+
_args10 = arguments;
|
|
595
|
+
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
|
596
|
+
while (1) switch (_context10.prev = _context10.next) {
|
|
565
597
|
case 0:
|
|
566
598
|
if (this.isSaved) this.isDeleted = true;
|
|
567
|
-
for (_len =
|
|
568
|
-
p[_key] =
|
|
599
|
+
for (_len = _args10.length, p = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
600
|
+
p[_key] = _args10[_key];
|
|
569
601
|
}
|
|
570
|
-
|
|
602
|
+
_context10.next = 4;
|
|
571
603
|
return (_this$manager = this.manager) === null || _this$manager === void 0 ? void 0 : _this$manager.onDelete.apply(_this$manager, p);
|
|
572
604
|
case 4:
|
|
573
|
-
return
|
|
605
|
+
return _context10.abrupt("return", _context10.sent);
|
|
574
606
|
case 5:
|
|
575
607
|
case "end":
|
|
576
|
-
return
|
|
608
|
+
return _context10.stop();
|
|
577
609
|
}
|
|
578
|
-
},
|
|
610
|
+
}, _callee10, this);
|
|
579
611
|
}));
|
|
580
612
|
function onDelete() {
|
|
581
613
|
return _onDelete.apply(this, arguments);
|
|
@@ -585,28 +617,28 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
|
|
|
585
617
|
}, {
|
|
586
618
|
key: "onArchive",
|
|
587
619
|
value: function () {
|
|
588
|
-
var _onArchive = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
620
|
+
var _onArchive = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11() {
|
|
589
621
|
var _this$manager2;
|
|
590
622
|
var _len2,
|
|
591
623
|
p,
|
|
592
624
|
_key2,
|
|
593
|
-
|
|
594
|
-
return _regeneratorRuntime().wrap(function
|
|
595
|
-
while (1) switch (
|
|
625
|
+
_args11 = arguments;
|
|
626
|
+
return _regeneratorRuntime().wrap(function _callee11$(_context11) {
|
|
627
|
+
while (1) switch (_context11.prev = _context11.next) {
|
|
596
628
|
case 0:
|
|
597
629
|
if (this.isSaved) this.isArchived = true;
|
|
598
|
-
for (_len2 =
|
|
599
|
-
p[_key2] =
|
|
630
|
+
for (_len2 = _args11.length, p = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
631
|
+
p[_key2] = _args11[_key2];
|
|
600
632
|
}
|
|
601
|
-
|
|
633
|
+
_context11.next = 4;
|
|
602
634
|
return (_this$manager2 = this.manager) === null || _this$manager2 === void 0 ? void 0 : _this$manager2.onArchive.apply(_this$manager2, p);
|
|
603
635
|
case 4:
|
|
604
|
-
return
|
|
636
|
+
return _context11.abrupt("return", _context11.sent);
|
|
605
637
|
case 5:
|
|
606
638
|
case "end":
|
|
607
|
-
return
|
|
639
|
+
return _context11.stop();
|
|
608
640
|
}
|
|
609
|
-
},
|
|
641
|
+
}, _callee11, this);
|
|
610
642
|
}));
|
|
611
643
|
function onArchive() {
|
|
612
644
|
return _onArchive.apply(this, arguments);
|
|
@@ -616,28 +648,28 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
|
|
|
616
648
|
}, {
|
|
617
649
|
key: "onUnArchive",
|
|
618
650
|
value: function () {
|
|
619
|
-
var _onUnArchive = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
651
|
+
var _onUnArchive = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12() {
|
|
620
652
|
var _this$manager3;
|
|
621
653
|
var _len3,
|
|
622
654
|
p,
|
|
623
655
|
_key3,
|
|
624
|
-
|
|
625
|
-
return _regeneratorRuntime().wrap(function
|
|
626
|
-
while (1) switch (
|
|
656
|
+
_args12 = arguments;
|
|
657
|
+
return _regeneratorRuntime().wrap(function _callee12$(_context12) {
|
|
658
|
+
while (1) switch (_context12.prev = _context12.next) {
|
|
627
659
|
case 0:
|
|
628
660
|
if (this.isSaved) this.isArchived = false;
|
|
629
|
-
for (_len3 =
|
|
630
|
-
p[_key3] =
|
|
661
|
+
for (_len3 = _args12.length, p = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
662
|
+
p[_key3] = _args12[_key3];
|
|
631
663
|
}
|
|
632
|
-
|
|
664
|
+
_context12.next = 4;
|
|
633
665
|
return (_this$manager3 = this.manager) === null || _this$manager3 === void 0 ? void 0 : _this$manager3.onUnArchive.apply(_this$manager3, p);
|
|
634
666
|
case 4:
|
|
635
|
-
return
|
|
667
|
+
return _context12.abrupt("return", _context12.sent);
|
|
636
668
|
case 5:
|
|
637
669
|
case "end":
|
|
638
|
-
return
|
|
670
|
+
return _context12.stop();
|
|
639
671
|
}
|
|
640
|
-
},
|
|
672
|
+
}, _callee12, this);
|
|
641
673
|
}));
|
|
642
674
|
function onUnArchive() {
|
|
643
675
|
return _onUnArchive.apply(this, arguments);
|
|
@@ -647,28 +679,28 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
|
|
|
647
679
|
}, {
|
|
648
680
|
key: "onLoad",
|
|
649
681
|
value: function () {
|
|
650
|
-
var _onLoad = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
682
|
+
var _onLoad = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13() {
|
|
651
683
|
var _this$manager4;
|
|
652
684
|
var _len4,
|
|
653
685
|
p,
|
|
654
686
|
_key4,
|
|
655
|
-
|
|
656
|
-
return _regeneratorRuntime().wrap(function
|
|
657
|
-
while (1) switch (
|
|
687
|
+
_args13 = arguments;
|
|
688
|
+
return _regeneratorRuntime().wrap(function _callee13$(_context13) {
|
|
689
|
+
while (1) switch (_context13.prev = _context13.next) {
|
|
658
690
|
case 0:
|
|
659
691
|
this.isDeleted = false;
|
|
660
|
-
for (_len4 =
|
|
661
|
-
p[_key4] =
|
|
692
|
+
for (_len4 = _args13.length, p = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
|
693
|
+
p[_key4] = _args13[_key4];
|
|
662
694
|
}
|
|
663
|
-
|
|
695
|
+
_context13.next = 4;
|
|
664
696
|
return (_this$manager4 = this.manager) === null || _this$manager4 === void 0 ? void 0 : _this$manager4.onLoad.apply(_this$manager4, p);
|
|
665
697
|
case 4:
|
|
666
|
-
return
|
|
698
|
+
return _context13.abrupt("return", _context13.sent);
|
|
667
699
|
case 5:
|
|
668
700
|
case "end":
|
|
669
|
-
return
|
|
701
|
+
return _context13.stop();
|
|
670
702
|
}
|
|
671
|
-
},
|
|
703
|
+
}, _callee13, this);
|
|
672
704
|
}));
|
|
673
705
|
function onLoad() {
|
|
674
706
|
return _onLoad.apply(this, arguments);
|
|
@@ -678,47 +710,47 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
|
|
|
678
710
|
}, {
|
|
679
711
|
key: "onSave",
|
|
680
712
|
value: function () {
|
|
681
|
-
var _onSave = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
713
|
+
var _onSave = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14() {
|
|
682
714
|
var _this$manager6;
|
|
683
715
|
var srObject,
|
|
684
716
|
_this$manager5,
|
|
685
717
|
_len5,
|
|
686
718
|
p,
|
|
687
719
|
_key5,
|
|
688
|
-
|
|
689
|
-
return _regeneratorRuntime().wrap(function
|
|
690
|
-
while (1) switch (
|
|
720
|
+
_args14 = arguments;
|
|
721
|
+
return _regeneratorRuntime().wrap(function _callee14$(_context14) {
|
|
722
|
+
while (1) switch (_context14.prev = _context14.next) {
|
|
691
723
|
case 0:
|
|
692
724
|
if (!this.isSaved) {
|
|
693
|
-
|
|
725
|
+
_context14.next = 7;
|
|
694
726
|
break;
|
|
695
727
|
}
|
|
696
728
|
this.apply_changes();
|
|
697
729
|
srObject = this.getSaveResult(true);
|
|
698
730
|
if (!this.saveResultHasID(srObject)) {
|
|
699
|
-
|
|
731
|
+
_context14.next = 7;
|
|
700
732
|
break;
|
|
701
733
|
}
|
|
702
734
|
/* -------------------------------------------------------------------------- */
|
|
703
735
|
WebObject.LoadIdsFromSaveResult(this, srObject);
|
|
704
|
-
|
|
736
|
+
_context14.next = 7;
|
|
705
737
|
return (_this$manager5 = this.manager) === null || _this$manager5 === void 0 ? void 0 : _this$manager5.event_run("on_id_change");
|
|
706
738
|
case 7:
|
|
707
|
-
for (_len5 =
|
|
708
|
-
p[_key5] =
|
|
739
|
+
for (_len5 = _args14.length, p = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
|
|
740
|
+
p[_key5] = _args14[_key5];
|
|
709
741
|
}
|
|
710
|
-
|
|
742
|
+
_context14.next = 10;
|
|
711
743
|
return (_this$manager6 = this.manager) === null || _this$manager6 === void 0 ? void 0 : _this$manager6.onSave.apply(_this$manager6, p);
|
|
712
744
|
case 10:
|
|
713
|
-
|
|
745
|
+
_context14.next = 12;
|
|
714
746
|
return this.onAfterSave();
|
|
715
747
|
case 12:
|
|
716
|
-
return
|
|
748
|
+
return _context14.abrupt("return", true);
|
|
717
749
|
case 13:
|
|
718
750
|
case "end":
|
|
719
|
-
return
|
|
751
|
+
return _context14.stop();
|
|
720
752
|
}
|
|
721
|
-
},
|
|
753
|
+
}, _callee14, this);
|
|
722
754
|
}));
|
|
723
755
|
function onSave() {
|
|
724
756
|
return _onSave.apply(this, arguments);
|
|
@@ -728,27 +760,27 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
|
|
|
728
760
|
}, {
|
|
729
761
|
key: "onAfterSave",
|
|
730
762
|
value: function () {
|
|
731
|
-
var _onAfterSave = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
763
|
+
var _onAfterSave = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15() {
|
|
732
764
|
var _this$manager7;
|
|
733
765
|
var _len6,
|
|
734
766
|
p,
|
|
735
767
|
_key6,
|
|
736
|
-
|
|
737
|
-
return _regeneratorRuntime().wrap(function
|
|
738
|
-
while (1) switch (
|
|
768
|
+
_args15 = arguments;
|
|
769
|
+
return _regeneratorRuntime().wrap(function _callee15$(_context15) {
|
|
770
|
+
while (1) switch (_context15.prev = _context15.next) {
|
|
739
771
|
case 0:
|
|
740
|
-
for (_len6 =
|
|
741
|
-
p[_key6] =
|
|
772
|
+
for (_len6 = _args15.length, p = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
|
|
773
|
+
p[_key6] = _args15[_key6];
|
|
742
774
|
}
|
|
743
|
-
|
|
775
|
+
_context15.next = 3;
|
|
744
776
|
return (_this$manager7 = this.manager) === null || _this$manager7 === void 0 ? void 0 : _this$manager7.onAfterSave.apply(_this$manager7, p);
|
|
745
777
|
case 3:
|
|
746
|
-
return
|
|
778
|
+
return _context15.abrupt("return", true);
|
|
747
779
|
case 4:
|
|
748
780
|
case "end":
|
|
749
|
-
return
|
|
781
|
+
return _context15.stop();
|
|
750
782
|
}
|
|
751
|
-
},
|
|
783
|
+
}, _callee15, this);
|
|
752
784
|
}));
|
|
753
785
|
function onAfterSave() {
|
|
754
786
|
return _onAfterSave.apply(this, arguments);
|
|
@@ -773,27 +805,27 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
|
|
|
773
805
|
}, {
|
|
774
806
|
key: "onNew",
|
|
775
807
|
value: function () {
|
|
776
|
-
var _onNew = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
808
|
+
var _onNew = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16() {
|
|
777
809
|
var _this$manager8;
|
|
778
810
|
var _len7,
|
|
779
811
|
p,
|
|
780
812
|
_key7,
|
|
781
|
-
|
|
782
|
-
return _regeneratorRuntime().wrap(function
|
|
783
|
-
while (1) switch (
|
|
813
|
+
_args16 = arguments;
|
|
814
|
+
return _regeneratorRuntime().wrap(function _callee16$(_context16) {
|
|
815
|
+
while (1) switch (_context16.prev = _context16.next) {
|
|
784
816
|
case 0:
|
|
785
|
-
for (_len7 =
|
|
786
|
-
p[_key7] =
|
|
817
|
+
for (_len7 = _args16.length, p = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
|
|
818
|
+
p[_key7] = _args16[_key7];
|
|
787
819
|
}
|
|
788
|
-
|
|
820
|
+
_context16.next = 3;
|
|
789
821
|
return (_this$manager8 = this.manager) === null || _this$manager8 === void 0 ? void 0 : _this$manager8.onNew.apply(_this$manager8, p);
|
|
790
822
|
case 3:
|
|
791
|
-
return
|
|
823
|
+
return _context16.abrupt("return", _context16.sent);
|
|
792
824
|
case 4:
|
|
793
825
|
case "end":
|
|
794
|
-
return
|
|
826
|
+
return _context16.stop();
|
|
795
827
|
}
|
|
796
|
-
},
|
|
828
|
+
}, _callee16, this);
|
|
797
829
|
}));
|
|
798
830
|
function onNew() {
|
|
799
831
|
return _onNew.apply(this, arguments);
|
|
@@ -849,7 +881,7 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
|
|
|
849
881
|
}, {
|
|
850
882
|
key: "saveList",
|
|
851
883
|
value: function () {
|
|
852
|
-
var _saveList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
884
|
+
var _saveList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(itemList) {
|
|
853
885
|
var _extraOptions$chunksi;
|
|
854
886
|
var extraOptions,
|
|
855
887
|
chunks,
|
|
@@ -866,11 +898,11 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
|
|
|
866
898
|
_item,
|
|
867
899
|
_index2,
|
|
868
900
|
_item2,
|
|
869
|
-
|
|
870
|
-
return _regeneratorRuntime().wrap(function
|
|
871
|
-
while (1) switch (
|
|
901
|
+
_args17 = arguments;
|
|
902
|
+
return _regeneratorRuntime().wrap(function _callee17$(_context17) {
|
|
903
|
+
while (1) switch (_context17.prev = _context17.next) {
|
|
872
904
|
case 0:
|
|
873
|
-
extraOptions =
|
|
905
|
+
extraOptions = _args17.length > 1 && _args17[1] !== undefined ? _args17[1] : {};
|
|
874
906
|
if (!extraOptions) extraOptions = {};
|
|
875
907
|
chunks = (0, _object.array_chunks)(itemList, (_extraOptions$chunksi = extraOptions.chunksize) !== null && _extraOptions$chunksi !== void 0 ? _extraOptions$chunksi : 50);
|
|
876
908
|
delete extraOptions.chunksize;
|
|
@@ -878,7 +910,7 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
|
|
|
878
910
|
index = 0;
|
|
879
911
|
case 6:
|
|
880
912
|
if (!(index < chunks.length)) {
|
|
881
|
-
|
|
913
|
+
_context17.next = 36;
|
|
882
914
|
break;
|
|
883
915
|
}
|
|
884
916
|
items_to_save = chunks[index];
|
|
@@ -886,83 +918,83 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
|
|
|
886
918
|
k = 0;
|
|
887
919
|
case 10:
|
|
888
920
|
if (!(k < items_to_save.length)) {
|
|
889
|
-
|
|
921
|
+
_context17.next = 19;
|
|
890
922
|
break;
|
|
891
923
|
}
|
|
892
924
|
item = items_to_save[k];
|
|
893
|
-
|
|
925
|
+
_context17.next = 14;
|
|
894
926
|
return item.get_deltaObject();
|
|
895
927
|
case 14:
|
|
896
|
-
dlt =
|
|
928
|
+
dlt = _context17.sent;
|
|
897
929
|
save_array.push(item.isNew ? _objectSpread({}, dlt) : _objectSpread({
|
|
898
930
|
_id: item.getID()
|
|
899
931
|
}, dlt));
|
|
900
932
|
case 16:
|
|
901
933
|
k++;
|
|
902
|
-
|
|
934
|
+
_context17.next = 10;
|
|
903
935
|
break;
|
|
904
936
|
case 19:
|
|
905
|
-
|
|
937
|
+
_context17.next = 21;
|
|
906
938
|
return _global.gfunc.run_action("post", putAddress, _objectSpread({
|
|
907
939
|
__save_list: WebObject.zipSaveList(save_array)
|
|
908
940
|
}, extraOptions));
|
|
909
941
|
case 21:
|
|
910
|
-
resultObject =
|
|
942
|
+
resultObject = _context17.sent;
|
|
911
943
|
if (!Array.isArray(resultObject)) {
|
|
912
|
-
|
|
944
|
+
_context17.next = 33;
|
|
913
945
|
break;
|
|
914
946
|
}
|
|
915
947
|
_index = 0;
|
|
916
948
|
case 24:
|
|
917
949
|
if (!(_index < Math.min(resultObject.length, items_to_save.length))) {
|
|
918
|
-
|
|
950
|
+
_context17.next = 33;
|
|
919
951
|
break;
|
|
920
952
|
}
|
|
921
953
|
res = resultObject[_index];
|
|
922
954
|
_item = items_to_save[_index];
|
|
923
955
|
_item.setSaveResult(res);
|
|
924
|
-
|
|
956
|
+
_context17.next = 30;
|
|
925
957
|
return _item.onSave();
|
|
926
958
|
case 30:
|
|
927
959
|
_index++;
|
|
928
|
-
|
|
960
|
+
_context17.next = 24;
|
|
929
961
|
break;
|
|
930
962
|
case 33:
|
|
931
963
|
index++;
|
|
932
|
-
|
|
964
|
+
_context17.next = 6;
|
|
933
965
|
break;
|
|
934
966
|
case 36:
|
|
935
967
|
_index2 = 0;
|
|
936
968
|
case 37:
|
|
937
969
|
if (!(_index2 < itemList.length)) {
|
|
938
|
-
|
|
970
|
+
_context17.next = 46;
|
|
939
971
|
break;
|
|
940
972
|
}
|
|
941
973
|
_item2 = itemList[_index2];
|
|
942
974
|
if (_item2.isSaved) {
|
|
943
|
-
|
|
975
|
+
_context17.next = 41;
|
|
944
976
|
break;
|
|
945
977
|
}
|
|
946
|
-
return
|
|
978
|
+
return _context17.abrupt("return", false);
|
|
947
979
|
case 41:
|
|
948
980
|
if (!(_item2.getSaveResultType() != "normal")) {
|
|
949
|
-
|
|
981
|
+
_context17.next = 43;
|
|
950
982
|
break;
|
|
951
983
|
}
|
|
952
|
-
return
|
|
984
|
+
return _context17.abrupt("return", false);
|
|
953
985
|
case 43:
|
|
954
986
|
_index2++;
|
|
955
|
-
|
|
987
|
+
_context17.next = 37;
|
|
956
988
|
break;
|
|
957
989
|
case 46:
|
|
958
|
-
return
|
|
990
|
+
return _context17.abrupt("return", true);
|
|
959
991
|
case 47:
|
|
960
992
|
case "end":
|
|
961
|
-
return
|
|
993
|
+
return _context17.stop();
|
|
962
994
|
}
|
|
963
|
-
},
|
|
995
|
+
}, _callee17, this);
|
|
964
996
|
}));
|
|
965
|
-
function saveList(
|
|
997
|
+
function saveList(_x7) {
|
|
966
998
|
return _saveList.apply(this, arguments);
|
|
967
999
|
}
|
|
968
1000
|
return saveList;
|
|
@@ -1010,7 +1042,7 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
|
|
|
1010
1042
|
}, {
|
|
1011
1043
|
key: "get_single",
|
|
1012
1044
|
value: (function () {
|
|
1013
|
-
var _get_single = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
1045
|
+
var _get_single = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18() {
|
|
1014
1046
|
var _len8,
|
|
1015
1047
|
p,
|
|
1016
1048
|
_key8,
|
|
@@ -1019,55 +1051,55 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
|
|
|
1019
1051
|
fetchID,
|
|
1020
1052
|
res,
|
|
1021
1053
|
params,
|
|
1022
|
-
|
|
1023
|
-
return _regeneratorRuntime().wrap(function
|
|
1024
|
-
while (1) switch (
|
|
1054
|
+
_args18 = arguments;
|
|
1055
|
+
return _regeneratorRuntime().wrap(function _callee18$(_context18) {
|
|
1056
|
+
while (1) switch (_context18.prev = _context18.next) {
|
|
1025
1057
|
case 0:
|
|
1026
|
-
for (_len8 =
|
|
1027
|
-
p[_key8] =
|
|
1058
|
+
for (_len8 = _args18.length, p = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
|
|
1059
|
+
p[_key8] = _args18[_key8];
|
|
1028
1060
|
}
|
|
1029
1061
|
search = p.shift();
|
|
1030
1062
|
readonly = p.shift();
|
|
1031
1063
|
fetchID = p.shift();
|
|
1032
1064
|
if (!(0, _object.object_isEmpty)(search)) {
|
|
1033
|
-
|
|
1065
|
+
_context18.next = 6;
|
|
1034
1066
|
break;
|
|
1035
1067
|
}
|
|
1036
|
-
return
|
|
1068
|
+
return _context18.abrupt("return", undefined);
|
|
1037
1069
|
case 6:
|
|
1038
1070
|
params = {};
|
|
1039
1071
|
params.context = readonly ? "view" : "edit";
|
|
1040
|
-
|
|
1041
|
-
|
|
1072
|
+
_context18.t0 = _typeof(search);
|
|
1073
|
+
_context18.next = _context18.t0 === "string" ? 11 : _context18.t0 === "number" ? 11 : _context18.t0 === "object" ? 19 : 19;
|
|
1042
1074
|
break;
|
|
1043
1075
|
case 11:
|
|
1044
1076
|
search = String(search);
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1077
|
+
_context18.t1 = this;
|
|
1078
|
+
_context18.t2 = this;
|
|
1079
|
+
_context18.next = 16;
|
|
1048
1080
|
return _global.gfunc.run_action("get", this.__web_path + "/" + search, params, {
|
|
1049
1081
|
fetchID: fetchID
|
|
1050
1082
|
});
|
|
1051
1083
|
case 16:
|
|
1052
|
-
|
|
1053
|
-
res =
|
|
1054
|
-
return
|
|
1084
|
+
_context18.t3 = _context18.sent;
|
|
1085
|
+
res = _context18.t1.ensure.call(_context18.t1, _context18.t2, _context18.t3);
|
|
1086
|
+
return _context18.abrupt("break", 25);
|
|
1055
1087
|
case 19:
|
|
1056
|
-
|
|
1057
|
-
|
|
1088
|
+
_context18.t4 = _object.object_first;
|
|
1089
|
+
_context18.next = 22;
|
|
1058
1090
|
return this.get_list(search, readonly, fetchID);
|
|
1059
1091
|
case 22:
|
|
1060
|
-
|
|
1061
|
-
res = (0,
|
|
1062
|
-
return
|
|
1092
|
+
_context18.t5 = _context18.sent;
|
|
1093
|
+
res = (0, _context18.t4)(_context18.t5);
|
|
1094
|
+
return _context18.abrupt("break", 25);
|
|
1063
1095
|
case 25:
|
|
1064
1096
|
WebObject.setReadonly(res, readonly);
|
|
1065
|
-
return
|
|
1097
|
+
return _context18.abrupt("return", res);
|
|
1066
1098
|
case 27:
|
|
1067
1099
|
case "end":
|
|
1068
|
-
return
|
|
1100
|
+
return _context18.stop();
|
|
1069
1101
|
}
|
|
1070
|
-
},
|
|
1102
|
+
}, _callee18, this);
|
|
1071
1103
|
}));
|
|
1072
1104
|
function get_single() {
|
|
1073
1105
|
return _get_single.apply(this, arguments);
|
|
@@ -1082,7 +1114,7 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
|
|
|
1082
1114
|
}, {
|
|
1083
1115
|
key: "get_list",
|
|
1084
1116
|
value: (function () {
|
|
1085
|
-
var _get_list = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
1117
|
+
var _get_list = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19() {
|
|
1086
1118
|
var _len9,
|
|
1087
1119
|
p,
|
|
1088
1120
|
_key9,
|
|
@@ -1091,33 +1123,33 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
|
|
|
1091
1123
|
fetchID,
|
|
1092
1124
|
result_items,
|
|
1093
1125
|
res,
|
|
1094
|
-
|
|
1095
|
-
return _regeneratorRuntime().wrap(function
|
|
1096
|
-
while (1) switch (
|
|
1126
|
+
_args19 = arguments;
|
|
1127
|
+
return _regeneratorRuntime().wrap(function _callee19$(_context19) {
|
|
1128
|
+
while (1) switch (_context19.prev = _context19.next) {
|
|
1097
1129
|
case 0:
|
|
1098
|
-
for (_len9 =
|
|
1099
|
-
p[_key9] =
|
|
1130
|
+
for (_len9 = _args19.length, p = new Array(_len9), _key9 = 0; _key9 < _len9; _key9++) {
|
|
1131
|
+
p[_key9] = _args19[_key9];
|
|
1100
1132
|
}
|
|
1101
1133
|
search = p.shift();
|
|
1102
1134
|
readonly = p.shift();
|
|
1103
1135
|
fetchID = p.shift();
|
|
1104
1136
|
if (!search) search = {};
|
|
1105
|
-
|
|
1137
|
+
_context19.next = 7;
|
|
1106
1138
|
return _global.gfunc.run_action("get", this.get_webname(), search, {
|
|
1107
1139
|
fetchID: fetchID
|
|
1108
1140
|
});
|
|
1109
1141
|
case 7:
|
|
1110
|
-
result_items =
|
|
1142
|
+
result_items = _context19.sent;
|
|
1111
1143
|
// const selftype = (this.constructor ||
|
|
1112
1144
|
// Object.getPrototypeOf(this)) as any;
|
|
1113
1145
|
res = WebObject.map_rowindex(WebObject.mapto(this, result_items, readonly));
|
|
1114
1146
|
WebObject.setReadonly(res, readonly);
|
|
1115
|
-
return
|
|
1147
|
+
return _context19.abrupt("return", res);
|
|
1116
1148
|
case 11:
|
|
1117
1149
|
case "end":
|
|
1118
|
-
return
|
|
1150
|
+
return _context19.stop();
|
|
1119
1151
|
}
|
|
1120
|
-
},
|
|
1152
|
+
}, _callee19, this);
|
|
1121
1153
|
}));
|
|
1122
1154
|
function get_list() {
|
|
1123
1155
|
return _get_list.apply(this, arguments);
|
|
@@ -154,7 +154,7 @@ var SimpleObject = exports.SimpleObject = /*#__PURE__*/function (_MapableObject)
|
|
|
154
154
|
_context.next = 6;
|
|
155
155
|
break;
|
|
156
156
|
}
|
|
157
|
-
throw Error("Cant use setValue when on readonly mode");
|
|
157
|
+
throw Error("Cant use setValue (".concat(String(key), ") when on readonly mode"));
|
|
158
158
|
case 6:
|
|
159
159
|
return _context.abrupt("return", false);
|
|
160
160
|
case 7:
|
|
@@ -440,7 +440,7 @@ var SimpleObject = exports.SimpleObject = /*#__PURE__*/function (_MapableObject)
|
|
|
440
440
|
_context8.next = 6;
|
|
441
441
|
break;
|
|
442
442
|
}
|
|
443
|
-
throw Error("Cant use
|
|
443
|
+
throw Error("Cant use setSubValue (".concat(String(key), ") when on readonly mode"));
|
|
444
444
|
case 6:
|
|
445
445
|
return _context8.abrupt("return", false);
|
|
446
446
|
case 7:
|
|
@@ -544,7 +544,7 @@ var SimpleObject = exports.SimpleObject = /*#__PURE__*/function (_MapableObject)
|
|
|
544
544
|
_context10.next = 8;
|
|
545
545
|
break;
|
|
546
546
|
}
|
|
547
|
-
throw Error("Cant use pushValues when on readonly mode");
|
|
547
|
+
throw Error("Cant use pushValues (".concat(String(key), ") when on readonly mode"));
|
|
548
548
|
case 8:
|
|
549
549
|
return _context10.abrupt("return", false);
|
|
550
550
|
case 9:
|
|
@@ -558,7 +558,7 @@ var SimpleObject = exports.SimpleObject = /*#__PURE__*/function (_MapableObject)
|
|
|
558
558
|
_context10.next = 16;
|
|
559
559
|
break;
|
|
560
560
|
}
|
|
561
|
-
throw Error("Cant use pushValues on non Array keys");
|
|
561
|
+
throw Error("Cant use pushValues (".concat(String(key), ") on non Array keys"));
|
|
562
562
|
case 16:
|
|
563
563
|
return _context10.abrupt("return", false);
|
|
564
564
|
case 17:
|
|
@@ -943,7 +943,7 @@ var SimpleObject = exports.SimpleObject = /*#__PURE__*/function (_MapableObject)
|
|
|
943
943
|
_context14.next = 3;
|
|
944
944
|
break;
|
|
945
945
|
}
|
|
946
|
-
if (this.__showErrors === true) console.error("you cant use events if your object has no manager");
|
|
946
|
+
if (this.__showErrors === true) console.error("you cant use events (".concat(eventName, ") if your object has no manager"));
|
|
947
947
|
return _context14.abrupt("return");
|
|
948
948
|
case 3:
|
|
949
949
|
for (_len2 = _args14.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
@@ -970,7 +970,7 @@ var SimpleObject = exports.SimpleObject = /*#__PURE__*/function (_MapableObject)
|
|
|
970
970
|
var onlyOn = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
971
971
|
var runOnce = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
|
972
972
|
if (!this.manager) {
|
|
973
|
-
if (this.__showErrors === true) console.error("you cant use events if your object has no manager");
|
|
973
|
+
if (this.__showErrors === true) console.error("you cant use events (".concat(name, ") if your object has no manager"));
|
|
974
974
|
return;
|
|
975
975
|
}
|
|
976
976
|
return this.manager.event_use(name, runEvent, onlyOn, runOnce);
|
|
@@ -979,7 +979,7 @@ var SimpleObject = exports.SimpleObject = /*#__PURE__*/function (_MapableObject)
|
|
|
979
979
|
key: "event_remove",
|
|
980
980
|
value: function event_remove(name, uname) {
|
|
981
981
|
if (!this.manager) {
|
|
982
|
-
if (this.__showErrors === true) console.error("you cant use events if your object has no manager");
|
|
982
|
+
if (this.__showErrors === true) console.error("you cant use events (".concat(name, ") if your object has no manager"));
|
|
983
983
|
return;
|
|
984
984
|
}
|
|
985
985
|
return this.manager.event_remove(name, uname);
|
|
@@ -1000,7 +1000,7 @@ var SimpleObject = exports.SimpleObject = /*#__PURE__*/function (_MapableObject)
|
|
|
1000
1000
|
_context15.next = 5;
|
|
1001
1001
|
break;
|
|
1002
1002
|
}
|
|
1003
|
-
if (this.__showErrors === true) console.error("you cant use events if your object has no manager");
|
|
1003
|
+
if (this.__showErrors === true) console.error("you cant use events (".concat(name, ") if your object has no manager"));
|
|
1004
1004
|
return _context15.abrupt("return");
|
|
1005
1005
|
case 5:
|
|
1006
1006
|
_context15.next = 7;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azrico/webobject",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.133",
|
|
4
4
|
"description": "Stateful object",
|
|
5
5
|
"author": "Azrideus",
|
|
6
6
|
"license": "MIT",
|
|
@@ -47,8 +47,6 @@
|
|
|
47
47
|
"gh-pages": "^2.2.0",
|
|
48
48
|
"husky": "^8.0.1",
|
|
49
49
|
"jest": "^27.0.5",
|
|
50
|
-
"microbundle-crl": "^0.13.10",
|
|
51
|
-
"npm-run-all": "^4.1.5",
|
|
52
50
|
"prettier": "^2.0.4",
|
|
53
51
|
"prop-types": "^15.7.2",
|
|
54
52
|
"react": "^16.13.1",
|