data-restructor 3.4.0 → 3.4.1
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/.auto-changelog +9 -0
- package/.auto-changelog-template.hbs +36 -0
- package/CHANGELOG.md +114 -31
- package/Commands.md +1 -0
- package/README.md +5 -0
- package/coverage/coverage-summary.json +3 -3
- package/coverage/datarestructor.js.html +133 -133
- package/coverage/describedfield.js.html +45 -45
- package/coverage/index.html +1 -1
- package/coverage/templateResolver.js.html +26 -26
- package/devdist/datarestructor-ie.js +53 -58
- package/devdist/datarestructor.js +35 -42
- package/devdist/describedfield-ie.js +10 -12
- package/devdist/describedfield.js +8 -10
- package/devdist/templateResolver-ie.js +22 -26
- package/devdist/templateResolver.js +11 -16
- package/dist/datarestructor-ie.js +1 -1
- package/dist/datarestructor-ie.js.map +1 -1
- package/dist/datarestructor.js +1 -1
- package/dist/datarestructor.js.map +1 -1
- package/dist/describedfield-ie.js +1 -1
- package/dist/describedfield-ie.js.map +1 -1
- package/dist/describedfield.js +1 -1
- package/dist/describedfield.js.map +1 -1
- package/dist/templateResolver-ie.js +1 -1
- package/dist/templateResolver-ie.js.map +1 -1
- package/dist/templateResolver.js +1 -1
- package/dist/templateResolver.js.map +1 -1
- package/docs/datarestructor.js.html +1 -1
- package/docs/describedfield.js.html +1 -1
- package/docs/index.html +6 -1
- package/docs/module-datarestructor.DescribedEntryCreator.html +94 -94
- package/docs/module-datarestructor.PropertyStructureDescriptionBuilder.html +1 -1
- package/docs/module-datarestructor.Restructor.html +1 -1
- package/docs/module-datarestructor.Transform.html +605 -605
- package/docs/module-datarestructor.html +959 -995
- package/docs/module-described_field.DescribedDataFieldBuilder.html +1 -1
- package/docs/module-described_field.DescribedDataFieldGroup.html +1 -1
- package/docs/module-described_field.html +1 -37
- package/docs/module-template_resolver.Resolver.html +167 -167
- package/docs/module-template_resolver.html +1 -37
- package/docs/templateResolver.js.html +1 -1
- package/package.json +10 -6
- package/renovate.json +0 -6
|
@@ -397,7 +397,7 @@
|
|
|
397
397
|
<span class="cline-any cline-neutral"> </span>
|
|
398
398
|
<span class="cline-any cline-neutral"> </span>
|
|
399
399
|
<span class="cline-any cline-neutral"> </span>
|
|
400
|
-
<span class="cline-any cline-yes">
|
|
400
|
+
<span class="cline-any cline-yes">46600x</span>
|
|
401
401
|
<span class="cline-any cline-neutral"> </span>
|
|
402
402
|
<span class="cline-any cline-neutral"> </span>
|
|
403
403
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -415,7 +415,7 @@
|
|
|
415
415
|
<span class="cline-any cline-neutral"> </span>
|
|
416
416
|
<span class="cline-any cline-neutral"> </span>
|
|
417
417
|
<span class="cline-any cline-neutral"> </span>
|
|
418
|
-
<span class="cline-any cline-yes">
|
|
418
|
+
<span class="cline-any cline-yes">46600x</span>
|
|
419
419
|
<span class="cline-any cline-yes">8x</span>
|
|
420
420
|
<span class="cline-any cline-yes">8x</span>
|
|
421
421
|
<span class="cline-any cline-yes">8x</span>
|
|
@@ -439,9 +439,9 @@
|
|
|
439
439
|
<span class="cline-any cline-neutral"> </span>
|
|
440
440
|
<span class="cline-any cline-neutral"> </span>
|
|
441
441
|
<span class="cline-any cline-neutral"> </span>
|
|
442
|
-
<span class="cline-any cline-yes">
|
|
443
|
-
<span class="cline-any cline-yes">
|
|
444
|
-
<span class="cline-any cline-yes">
|
|
442
|
+
<span class="cline-any cline-yes">46600x</span>
|
|
443
|
+
<span class="cline-any cline-yes">46573x</span>
|
|
444
|
+
<span class="cline-any cline-yes">46573x</span>
|
|
445
445
|
<span class="cline-any cline-neutral"> </span>
|
|
446
446
|
<span class="cline-any cline-neutral"> </span>
|
|
447
447
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -456,9 +456,9 @@
|
|
|
456
456
|
<span class="cline-any cline-neutral"> </span>
|
|
457
457
|
<span class="cline-any cline-neutral"> </span>
|
|
458
458
|
<span class="cline-any cline-neutral"> </span>
|
|
459
|
-
<span class="cline-any cline-yes">
|
|
460
|
-
<span class="cline-any cline-yes">
|
|
461
|
-
<span class="cline-any cline-yes">
|
|
459
|
+
<span class="cline-any cline-yes">46600x</span>
|
|
460
|
+
<span class="cline-any cline-yes">46537x</span>
|
|
461
|
+
<span class="cline-any cline-yes">46537x</span>
|
|
462
462
|
<span class="cline-any cline-neutral"> </span>
|
|
463
463
|
<span class="cline-any cline-neutral"> </span>
|
|
464
464
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -472,9 +472,9 @@
|
|
|
472
472
|
<span class="cline-any cline-neutral"> </span>
|
|
473
473
|
<span class="cline-any cline-neutral"> </span>
|
|
474
474
|
<span class="cline-any cline-neutral"> </span>
|
|
475
|
-
<span class="cline-any cline-yes">
|
|
476
|
-
<span class="cline-any cline-yes">
|
|
477
|
-
<span class="cline-any cline-yes">
|
|
475
|
+
<span class="cline-any cline-yes">46600x</span>
|
|
476
|
+
<span class="cline-any cline-yes">46536x</span>
|
|
477
|
+
<span class="cline-any cline-yes">46536x</span>
|
|
478
478
|
<span class="cline-any cline-neutral"> </span>
|
|
479
479
|
<span class="cline-any cline-neutral"> </span>
|
|
480
480
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -484,9 +484,9 @@
|
|
|
484
484
|
<span class="cline-any cline-neutral"> </span>
|
|
485
485
|
<span class="cline-any cline-neutral"> </span>
|
|
486
486
|
<span class="cline-any cline-neutral"> </span>
|
|
487
|
-
<span class="cline-any cline-yes">
|
|
488
|
-
<span class="cline-any cline-yes">
|
|
489
|
-
<span class="cline-any cline-yes">
|
|
487
|
+
<span class="cline-any cline-yes">46600x</span>
|
|
488
|
+
<span class="cline-any cline-yes">46536x</span>
|
|
489
|
+
<span class="cline-any cline-yes">46536x</span>
|
|
490
490
|
<span class="cline-any cline-neutral"> </span>
|
|
491
491
|
<span class="cline-any cline-neutral"> </span>
|
|
492
492
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -497,9 +497,9 @@
|
|
|
497
497
|
<span class="cline-any cline-neutral"> </span>
|
|
498
498
|
<span class="cline-any cline-neutral"> </span>
|
|
499
499
|
<span class="cline-any cline-neutral"> </span>
|
|
500
|
-
<span class="cline-any cline-yes">
|
|
501
|
-
<span class="cline-any cline-yes">
|
|
502
|
-
<span class="cline-any cline-yes">
|
|
500
|
+
<span class="cline-any cline-yes">46600x</span>
|
|
501
|
+
<span class="cline-any cline-yes">46537x</span>
|
|
502
|
+
<span class="cline-any cline-yes">46537x</span>
|
|
503
503
|
<span class="cline-any cline-neutral"> </span>
|
|
504
504
|
<span class="cline-any cline-neutral"> </span>
|
|
505
505
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -510,7 +510,7 @@
|
|
|
510
510
|
<span class="cline-any cline-neutral"> </span>
|
|
511
511
|
<span class="cline-any cline-neutral"> </span>
|
|
512
512
|
<span class="cline-any cline-neutral"> </span>
|
|
513
|
-
<span class="cline-any cline-yes">
|
|
513
|
+
<span class="cline-any cline-yes">46600x</span>
|
|
514
514
|
<span class="cline-any cline-yes">11x</span>
|
|
515
515
|
<span class="cline-any cline-yes">11x</span>
|
|
516
516
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -522,9 +522,9 @@
|
|
|
522
522
|
<span class="cline-any cline-neutral"> </span>
|
|
523
523
|
<span class="cline-any cline-neutral"> </span>
|
|
524
524
|
<span class="cline-any cline-neutral"> </span>
|
|
525
|
-
<span class="cline-any cline-yes">
|
|
526
|
-
<span class="cline-any cline-yes">
|
|
527
|
-
<span class="cline-any cline-yes">
|
|
525
|
+
<span class="cline-any cline-yes">46600x</span>
|
|
526
|
+
<span class="cline-any cline-yes">46536x</span>
|
|
527
|
+
<span class="cline-any cline-yes">46536x</span>
|
|
528
528
|
<span class="cline-any cline-neutral"> </span>
|
|
529
529
|
<span class="cline-any cline-neutral"> </span>
|
|
530
530
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -534,9 +534,9 @@
|
|
|
534
534
|
<span class="cline-any cline-neutral"> </span>
|
|
535
535
|
<span class="cline-any cline-neutral"> </span>
|
|
536
536
|
<span class="cline-any cline-neutral"> </span>
|
|
537
|
-
<span class="cline-any cline-yes">
|
|
538
|
-
<span class="cline-any cline-yes">
|
|
539
|
-
<span class="cline-any cline-yes">
|
|
537
|
+
<span class="cline-any cline-yes">46600x</span>
|
|
538
|
+
<span class="cline-any cline-yes">46537x</span>
|
|
539
|
+
<span class="cline-any cline-yes">46537x</span>
|
|
540
540
|
<span class="cline-any cline-neutral"> </span>
|
|
541
541
|
<span class="cline-any cline-neutral"> </span>
|
|
542
542
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -546,9 +546,9 @@
|
|
|
546
546
|
<span class="cline-any cline-neutral"> </span>
|
|
547
547
|
<span class="cline-any cline-neutral"> </span>
|
|
548
548
|
<span class="cline-any cline-neutral"> </span>
|
|
549
|
-
<span class="cline-any cline-yes">
|
|
550
|
-
<span class="cline-any cline-yes">
|
|
551
|
-
<span class="cline-any cline-yes">
|
|
549
|
+
<span class="cline-any cline-yes">46600x</span>
|
|
550
|
+
<span class="cline-any cline-yes">46534x</span>
|
|
551
|
+
<span class="cline-any cline-yes">46534x</span>
|
|
552
552
|
<span class="cline-any cline-neutral"> </span>
|
|
553
553
|
<span class="cline-any cline-neutral"> </span>
|
|
554
554
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -556,21 +556,21 @@
|
|
|
556
556
|
<span class="cline-any cline-neutral"> </span>
|
|
557
557
|
<span class="cline-any cline-neutral"> </span>
|
|
558
558
|
<span class="cline-any cline-neutral"> </span>
|
|
559
|
-
<span class="cline-any cline-yes">
|
|
560
|
-
<span class="cline-any cline-yes">
|
|
559
|
+
<span class="cline-any cline-yes">46600x</span>
|
|
560
|
+
<span class="cline-any cline-yes">46600x</span>
|
|
561
561
|
<span class="cline-any cline-neutral"> </span>
|
|
562
562
|
<span class="cline-any cline-neutral"> </span>
|
|
563
563
|
<span class="cline-any cline-neutral"> </span>
|
|
564
564
|
<span class="cline-any cline-neutral"> </span>
|
|
565
|
-
<span class="cline-any cline-yes">
|
|
565
|
+
<span class="cline-any cline-yes">279255x</span>
|
|
566
566
|
<span class="cline-any cline-neutral"> </span>
|
|
567
567
|
<span class="cline-any cline-neutral"> </span>
|
|
568
568
|
<span class="cline-any cline-neutral"> </span>
|
|
569
|
-
<span class="cline-any cline-yes">
|
|
569
|
+
<span class="cline-any cline-yes">279255x</span>
|
|
570
570
|
<span class="cline-any cline-neutral"> </span>
|
|
571
571
|
<span class="cline-any cline-neutral"> </span>
|
|
572
572
|
<span class="cline-any cline-neutral"> </span>
|
|
573
|
-
<span class="cline-any cline-yes">
|
|
573
|
+
<span class="cline-any cline-yes">46548x</span>
|
|
574
574
|
<span class="cline-any cline-neutral"> </span>
|
|
575
575
|
<span class="cline-any cline-neutral"> </span>
|
|
576
576
|
<span class="cline-any cline-yes">1x</span>
|
|
@@ -597,7 +597,7 @@
|
|
|
597
597
|
<span class="cline-any cline-neutral"> </span>
|
|
598
598
|
<span class="cline-any cline-neutral"> </span>
|
|
599
599
|
<span class="cline-any cline-neutral"> </span>
|
|
600
|
-
<span class="cline-any cline-yes">
|
|
600
|
+
<span class="cline-any cline-yes">44490x</span>
|
|
601
601
|
<span class="cline-any cline-neutral"> </span>
|
|
602
602
|
<span class="cline-any cline-neutral"> </span>
|
|
603
603
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -606,9 +606,9 @@
|
|
|
606
606
|
<span class="cline-any cline-neutral"> </span>
|
|
607
607
|
<span class="cline-any cline-neutral"> </span>
|
|
608
608
|
<span class="cline-any cline-neutral"> </span>
|
|
609
|
-
<span class="cline-any cline-yes">
|
|
610
|
-
<span class="cline-any cline-yes">
|
|
611
|
-
<span class="cline-any cline-yes">
|
|
609
|
+
<span class="cline-any cline-yes">44490x</span>
|
|
610
|
+
<span class="cline-any cline-yes">46406x</span>
|
|
611
|
+
<span class="cline-any cline-yes">46406x</span>
|
|
612
612
|
<span class="cline-any cline-neutral"> </span>
|
|
613
613
|
<span class="cline-any cline-neutral"> </span>
|
|
614
614
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -618,24 +618,24 @@
|
|
|
618
618
|
<span class="cline-any cline-neutral"> </span>
|
|
619
619
|
<span class="cline-any cline-neutral"> </span>
|
|
620
620
|
<span class="cline-any cline-neutral"> </span>
|
|
621
|
-
<span class="cline-any cline-yes">
|
|
622
|
-
<span class="cline-any cline-yes">
|
|
621
|
+
<span class="cline-any cline-yes">44490x</span>
|
|
622
|
+
<span class="cline-any cline-yes">46411x</span>
|
|
623
623
|
<span class="cline-any cline-yes">2x</span>
|
|
624
624
|
<span class="cline-any cline-neutral"> </span>
|
|
625
|
-
<span class="cline-any cline-yes">
|
|
625
|
+
<span class="cline-any cline-yes">46409x</span>
|
|
626
626
|
<span class="cline-any cline-yes">2x</span>
|
|
627
627
|
<span class="cline-any cline-neutral"> </span>
|
|
628
|
-
<span class="cline-any cline-yes">
|
|
628
|
+
<span class="cline-any cline-yes">46407x</span>
|
|
629
629
|
<span class="cline-any cline-yes">890x</span>
|
|
630
630
|
<span class="cline-any cline-yes">890x</span>
|
|
631
631
|
<span class="cline-any cline-neutral"> </span>
|
|
632
632
|
<span class="cline-any cline-neutral"> </span>
|
|
633
633
|
<span class="cline-any cline-neutral"> </span>
|
|
634
|
-
<span class="cline-any cline-yes">
|
|
635
|
-
<span class="cline-any cline-yes">
|
|
636
|
-
<span class="cline-any cline-yes">
|
|
634
|
+
<span class="cline-any cline-yes">46407x</span>
|
|
635
|
+
<span class="cline-any cline-yes">46408x</span>
|
|
636
|
+
<span class="cline-any cline-yes">46408x</span>
|
|
637
637
|
<span class="cline-any cline-neutral"> </span>
|
|
638
|
-
<span class="cline-any cline-yes">
|
|
638
|
+
<span class="cline-any cline-yes">46407x</span>
|
|
639
639
|
<span class="cline-any cline-neutral"> </span>
|
|
640
640
|
<span class="cline-any cline-neutral"> </span>
|
|
641
641
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -940,7 +940,7 @@ described_field.DescribedDataFieldGroup = (function () {
|
|
|
940
940
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
941
941
|
Code coverage generated by
|
|
942
942
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
943
|
-
at
|
|
943
|
+
at Tue Feb 28 2023 21:27:11 GMT+0100 (Central European Standard Time)
|
|
944
944
|
</div>
|
|
945
945
|
</div>
|
|
946
946
|
<script src="prettify.js"></script>
|
package/coverage/index.html
CHANGED
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
126
126
|
Code coverage generated by
|
|
127
127
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
128
|
-
at
|
|
128
|
+
at Tue Feb 28 2023 21:27:11 GMT+0100 (Central European Standard Time)
|
|
129
129
|
</div>
|
|
130
130
|
</div>
|
|
131
131
|
<script src="prettify.js"></script>
|
|
@@ -260,7 +260,7 @@
|
|
|
260
260
|
<span class="cline-any cline-neutral"> </span>
|
|
261
261
|
<span class="cline-any cline-neutral"> </span>
|
|
262
262
|
<span class="cline-any cline-neutral"> </span>
|
|
263
|
-
<span class="cline-any cline-yes">
|
|
263
|
+
<span class="cline-any cline-yes">13480x</span>
|
|
264
264
|
<span class="cline-any cline-neutral"> </span>
|
|
265
265
|
<span class="cline-any cline-neutral"> </span>
|
|
266
266
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -272,7 +272,7 @@
|
|
|
272
272
|
<span class="cline-any cline-neutral"> </span>
|
|
273
273
|
<span class="cline-any cline-neutral"> </span>
|
|
274
274
|
<span class="cline-any cline-neutral"> </span>
|
|
275
|
-
<span class="cline-any cline-yes">
|
|
275
|
+
<span class="cline-any cline-yes">13480x</span>
|
|
276
276
|
<span class="cline-any cline-yes">26x</span>
|
|
277
277
|
<span class="cline-any cline-neutral"> </span>
|
|
278
278
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -289,16 +289,16 @@
|
|
|
289
289
|
<span class="cline-any cline-neutral"> </span>
|
|
290
290
|
<span class="cline-any cline-neutral"> </span>
|
|
291
291
|
<span class="cline-any cline-neutral"> </span>
|
|
292
|
-
<span class="cline-any cline-yes">
|
|
293
|
-
<span class="cline-any cline-yes">
|
|
294
|
-
<span class="cline-any cline-yes">
|
|
295
|
-
<span class="cline-any cline-yes">
|
|
292
|
+
<span class="cline-any cline-yes">13480x</span>
|
|
293
|
+
<span class="cline-any cline-yes">40358x</span>
|
|
294
|
+
<span class="cline-any cline-yes">40358x</span>
|
|
295
|
+
<span class="cline-any cline-yes">1900182x</span>
|
|
296
296
|
<span class="cline-any cline-neutral"> </span>
|
|
297
297
|
<span class="cline-any cline-neutral"> </span>
|
|
298
|
-
<span class="cline-any cline-yes">
|
|
299
|
-
<span class="cline-any cline-yes">
|
|
298
|
+
<span class="cline-any cline-yes">40358x</span>
|
|
299
|
+
<span class="cline-any cline-yes">121022x</span>
|
|
300
300
|
<span class="cline-any cline-neutral"> </span>
|
|
301
|
-
<span class="cline-any cline-yes">
|
|
301
|
+
<span class="cline-any cline-yes">40358x</span>
|
|
302
302
|
<span class="cline-any cline-neutral"> </span>
|
|
303
303
|
<span class="cline-any cline-neutral"> </span>
|
|
304
304
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -308,18 +308,18 @@
|
|
|
308
308
|
<span class="cline-any cline-neutral"> </span>
|
|
309
309
|
<span class="cline-any cline-neutral"> </span>
|
|
310
310
|
<span class="cline-any cline-neutral"> </span>
|
|
311
|
-
<span class="cline-any cline-yes">
|
|
312
|
-
<span class="cline-any cline-yes">
|
|
313
|
-
<span class="cline-any cline-yes">
|
|
314
|
-
<span class="cline-any cline-yes">
|
|
315
|
-
<span class="cline-any cline-yes">
|
|
316
|
-
<span class="cline-any cline-yes">
|
|
317
|
-
<span class="cline-any cline-yes">
|
|
318
|
-
<span class="cline-any cline-yes">
|
|
319
|
-
<span class="cline-any cline-yes">
|
|
320
|
-
<span class="cline-any cline-yes">
|
|
311
|
+
<span class="cline-any cline-yes">13480x</span>
|
|
312
|
+
<span class="cline-any cline-yes">40358x</span>
|
|
313
|
+
<span class="cline-any cline-yes">40358x</span>
|
|
314
|
+
<span class="cline-any cline-yes">40358x</span>
|
|
315
|
+
<span class="cline-any cline-yes">40358x</span>
|
|
316
|
+
<span class="cline-any cline-yes">40358x</span>
|
|
317
|
+
<span class="cline-any cline-yes">40358x</span>
|
|
318
|
+
<span class="cline-any cline-yes">972006x</span>
|
|
319
|
+
<span class="cline-any cline-yes">972006x</span>
|
|
320
|
+
<span class="cline-any cline-yes">972006x</span>
|
|
321
321
|
<span class="cline-any cline-neutral"> </span>
|
|
322
|
-
<span class="cline-any cline-yes">
|
|
322
|
+
<span class="cline-any cline-yes">40358x</span>
|
|
323
323
|
<span class="cline-any cline-neutral"> </span>
|
|
324
324
|
<span class="cline-any cline-neutral"> </span>
|
|
325
325
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -382,13 +382,13 @@
|
|
|
382
382
|
<span class="cline-any cline-neutral"> </span>
|
|
383
383
|
<span class="cline-any cline-neutral"> </span>
|
|
384
384
|
<span class="cline-any cline-neutral"> </span>
|
|
385
|
-
<span class="cline-any cline-yes">
|
|
386
|
-
<span class="cline-any cline-yes">
|
|
387
|
-
<span class="cline-any cline-yes">
|
|
388
|
-
<span class="cline-any cline-yes">
|
|
385
|
+
<span class="cline-any cline-yes">121022x</span>
|
|
386
|
+
<span class="cline-any cline-yes">1900182x</span>
|
|
387
|
+
<span class="cline-any cline-yes">1900182x</span>
|
|
388
|
+
<span class="cline-any cline-yes">1133302x</span>
|
|
389
389
|
<span class="cline-any cline-neutral"> </span>
|
|
390
390
|
<span class="cline-any cline-neutral"> </span>
|
|
391
|
-
<span class="cline-any cline-yes">
|
|
391
|
+
<span class="cline-any cline-yes">121022x</span>
|
|
392
392
|
<span class="cline-any cline-neutral"> </span>
|
|
393
393
|
<span class="cline-any cline-neutral"> </span>
|
|
394
394
|
<span class="cline-any cline-yes">1x</span>
|
|
@@ -568,7 +568,7 @@ template_resolver.Resolver = (function () {
|
|
|
568
568
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
569
569
|
Code coverage generated by
|
|
570
570
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
571
|
-
at
|
|
571
|
+
at Tue Feb 28 2023 21:27:11 GMT+0100 (Central European Standard Time)
|
|
572
572
|
</div>
|
|
573
573
|
</div>
|
|
574
574
|
<script src="prettify.js"></script>
|
|
@@ -142,28 +142,29 @@
|
|
|
142
142
|
this[globalName] = mainExports;
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
|
-
})({"
|
|
145
|
+
})({"enDbA":[function(require,module,exports) {
|
|
146
146
|
"use strict";
|
|
147
|
-
require("
|
|
148
|
-
require("
|
|
149
|
-
require("
|
|
150
|
-
require("
|
|
151
|
-
var datarestructor = require("
|
|
147
|
+
require("e26fd4c295a4a1ee");
|
|
148
|
+
require("a39f2ce9dee386f0");
|
|
149
|
+
require("2cd33fab0a549622");
|
|
150
|
+
require("474031996ceb5a27");
|
|
151
|
+
var datarestructor = require("1a957b883db91c17");
|
|
152
152
|
module.exports = {
|
|
153
153
|
datarestructor: datarestructor
|
|
154
154
|
};
|
|
155
155
|
|
|
156
|
-
},{"
|
|
156
|
+
},{"e26fd4c295a4a1ee":"2XAtx","a39f2ce9dee386f0":"hTxNN","2cd33fab0a549622":"dCgG6","474031996ceb5a27":"8vHia","1a957b883db91c17":"jZ3Ya"}],"2XAtx":[function(require,module,exports) {
|
|
157
157
|
// https://gist.github.com/brianonn/4ef965a06b9e950d80e4e8b8e4c527f9
|
|
158
158
|
// https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray
|
|
159
159
|
if (!Array.isArray) Array.isArray = function(arg) {
|
|
160
|
-
return Object.prototype.toString.call(arg) ===
|
|
160
|
+
return Object.prototype.toString.call(arg) === "[object Array]";
|
|
161
161
|
};
|
|
162
162
|
|
|
163
|
-
},{}],"
|
|
163
|
+
},{}],"hTxNN":[function(require,module,exports) {
|
|
164
164
|
// From https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter#Polyfill
|
|
165
165
|
if (!Array.prototype.filter) Array.prototype.filter = function(func, thisArg) {
|
|
166
|
-
|
|
166
|
+
"use strict";
|
|
167
|
+
if (!((typeof func === "Function" || typeof func === "function") && this)) throw new TypeError();
|
|
167
168
|
var len = this.length >>> 0, res = new Array(len), t = this, c = 0, i = -1;
|
|
168
169
|
var kValue;
|
|
169
170
|
if (thisArg === undefined) {
|
|
@@ -183,12 +184,13 @@ if (!Array.prototype.filter) Array.prototype.filter = function(func, thisArg) {
|
|
|
183
184
|
return res;
|
|
184
185
|
};
|
|
185
186
|
|
|
186
|
-
},{}],"
|
|
187
|
+
},{}],"dCgG6":[function(require,module,exports) {
|
|
187
188
|
//https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf#Polyfill
|
|
188
|
-
if (!Array.prototype.indexOf) Array.prototype.indexOf =
|
|
189
|
+
if (!Array.prototype.indexOf) Array.prototype.indexOf = function(Object1, max, min) {
|
|
190
|
+
"use strict";
|
|
189
191
|
return function indexOf(member, fromIndex) {
|
|
190
192
|
if (this === null || this === undefined) throw TypeError("Array.prototype.indexOf called on null or undefined");
|
|
191
|
-
var that =
|
|
193
|
+
var that = Object1(this), Len = that.length >>> 0, i = min(fromIndex | 0, Len);
|
|
192
194
|
if (i < 0) i = max(0, Len + i);
|
|
193
195
|
else if (i >= Len) return -1;
|
|
194
196
|
if (member === void 0) {
|
|
@@ -198,18 +200,18 @@ if (!Array.prototype.indexOf) Array.prototype.indexOf = (function(Object, max, m
|
|
|
198
200
|
} else for(; i !== Len; ++i)if (that[i] === member) return i; // all else
|
|
199
201
|
return -1; // if the value was not found, then return -1
|
|
200
202
|
};
|
|
201
|
-
}
|
|
203
|
+
}(Object, Math.max, Math.min);
|
|
202
204
|
|
|
203
|
-
},{}],"
|
|
205
|
+
},{}],"8vHia":[function(require,module,exports) {
|
|
204
206
|
//http://tokenposts.blogspot.com/2012/04/javascript-objectkeys-browser.html
|
|
205
207
|
if (!Object.keys) Object.keys = function(o) {
|
|
206
|
-
if (o !== Object(o)) throw new TypeError(
|
|
208
|
+
if (o !== Object(o)) throw new TypeError("Object.keys called on a non-object");
|
|
207
209
|
var k = [], p;
|
|
208
210
|
for(p in o)if (Object.prototype.hasOwnProperty.call(o, p)) k.push(p);
|
|
209
211
|
return k;
|
|
210
212
|
};
|
|
211
213
|
|
|
212
|
-
},{}],"
|
|
214
|
+
},{}],"jZ3Ya":[function(require,module,exports) {
|
|
213
215
|
/**
|
|
214
216
|
* @file datarestructor transforms parsed JSON objects into a uniform data structure
|
|
215
217
|
* @version {@link https://github.com/JohT/data-restructor-js/releases/latest latest version}
|
|
@@ -217,8 +219,7 @@ if (!Object.keys) Object.keys = function(o) {
|
|
|
217
219
|
*/ "use strict";
|
|
218
220
|
var module = datarestructorInternalCreateIfNotExists(module); // Fallback for vanilla js without modules
|
|
219
221
|
function datarestructorInternalCreateIfNotExists(objectToCheck) {
|
|
220
|
-
return objectToCheck || {
|
|
221
|
-
};
|
|
222
|
+
return objectToCheck || {};
|
|
222
223
|
}
|
|
223
224
|
/**
|
|
224
225
|
* datarestructor namespace and module declaration.
|
|
@@ -233,12 +234,11 @@ function datarestructorInternalCreateIfNotExists(objectToCheck) {
|
|
|
233
234
|
* - group
|
|
234
235
|
* - flatten again
|
|
235
236
|
* @module datarestructor
|
|
236
|
-
*/ var datarestructor = module.exports = {
|
|
237
|
-
}; // Export module for npm...
|
|
237
|
+
*/ var datarestructor = module.exports = {}; // Export module for npm...
|
|
238
238
|
datarestructor.internalCreateIfNotExists = datarestructorInternalCreateIfNotExists;
|
|
239
|
-
var internal_object_tools = internal_object_tools || require("
|
|
240
|
-
var template_resolver = template_resolver || require("
|
|
241
|
-
var described_field = described_field || require("
|
|
239
|
+
var internal_object_tools = internal_object_tools || require("403576eaef4c3d50"); // supports vanilla js & npm
|
|
240
|
+
var template_resolver = template_resolver || require("f62fb3394fa418f2"); // supports vanilla js & npm
|
|
241
|
+
var described_field = described_field || require("4388868734c1e0a7"); // supports vanilla js & npm
|
|
242
242
|
/**
|
|
243
243
|
* Takes the full qualified original property name and extracts a simple name out of it.
|
|
244
244
|
*
|
|
@@ -264,7 +264,8 @@ var described_field = described_field || require("../../src/js/describedfield");
|
|
|
264
264
|
* @property {string} groupDestinationPattern - Pattern that describes where the group should be moved to. Default=""=Group will not be moved. A pattern may contain variables in double curly brackets {{variable}}.
|
|
265
265
|
* @property {string} groupDestinationName - (default=groupName) Name of the group when it had been moved to the destination.
|
|
266
266
|
* @property {string} deduplicationPattern - Pattern to use to remove duplicate entries. A pattern may contain variables in double curly brackets {{variable}}.
|
|
267
|
-
*/ datarestructor.PropertyStructureDescriptionBuilder =
|
|
267
|
+
*/ datarestructor.PropertyStructureDescriptionBuilder = function() {
|
|
268
|
+
"use strict";
|
|
268
269
|
/**
|
|
269
270
|
* Builder for a {@link PropertyStructureDescription}.
|
|
270
271
|
* @constructs PropertyStructureDescriptionBuilder
|
|
@@ -589,7 +590,7 @@ var described_field = described_field || require("../../src/js/describedfield");
|
|
|
589
590
|
return typeof value === "string" && value != null && value != "";
|
|
590
591
|
}
|
|
591
592
|
return PropertyStructureDescription;
|
|
592
|
-
}
|
|
593
|
+
}();
|
|
593
594
|
/**
|
|
594
595
|
* Adds a group item/entry to the {@link module:datarestructor.DescribedEntry}.
|
|
595
596
|
*
|
|
@@ -631,7 +632,8 @@ var described_field = described_field || require("../../src/js/describedfield");
|
|
|
631
632
|
* @callback module:datarestructor.stringFieldOfDescribedEntryFunction
|
|
632
633
|
* @param {module:datarestructor.DescribedEntry} entry described entry that contains the field that should be returned
|
|
633
634
|
* @returns {String} field value
|
|
634
|
-
*/ datarestructor.DescribedEntryCreator =
|
|
635
|
+
*/ datarestructor.DescribedEntryCreator = function() {
|
|
636
|
+
"use strict";
|
|
635
637
|
var removeArrayBracketsRegEx = new RegExp("\\[\\d+\\]", "gi");
|
|
636
638
|
/**
|
|
637
639
|
* Creates a {@link module:datarestructor.DescribedEntry}.
|
|
@@ -728,20 +730,21 @@ var described_field = described_field || require("../../src/js/describedfield");
|
|
|
728
730
|
pointDelimited += match[1];
|
|
729
731
|
numberArray.push(parseInt(match[1]));
|
|
730
732
|
}
|
|
731
|
-
}while (match)
|
|
733
|
+
}while (match);
|
|
732
734
|
return {
|
|
733
735
|
pointDelimited: pointDelimited,
|
|
734
736
|
numberArray: numberArray
|
|
735
737
|
};
|
|
736
738
|
}
|
|
737
739
|
return DescribedEntry;
|
|
738
|
-
}
|
|
740
|
+
}();
|
|
739
741
|
/**
|
|
740
742
|
* @typedef {Object} module:datarestructor.TransformConfig
|
|
741
743
|
* @property {boolean} debugMode enables/disables detailed logging
|
|
742
744
|
* @property {number} [maxRecursionDepth=8] Maximum recursion depth
|
|
743
745
|
* @property {number} [removeDuplicationAboveRecursionDepth=1] Duplications will be removed above the given recursion depth value and remain unchanged below it.
|
|
744
|
-
*/ datarestructor.Transform =
|
|
746
|
+
*/ datarestructor.Transform = function() {
|
|
747
|
+
"use strict";
|
|
745
748
|
/**
|
|
746
749
|
* Main class for the data transformation.
|
|
747
750
|
* @param {module:datarestructor.PropertyStructureDescription[]} descriptions
|
|
@@ -1227,7 +1230,7 @@ var described_field = described_field || require("../../src/js/describedfield");
|
|
|
1227
1230
|
}
|
|
1228
1231
|
}
|
|
1229
1232
|
return Transform;
|
|
1230
|
-
}
|
|
1233
|
+
}();
|
|
1231
1234
|
/**
|
|
1232
1235
|
* Main fassade for the data restructor as static function(s).
|
|
1233
1236
|
*
|
|
@@ -1237,8 +1240,7 @@ var described_field = described_field || require("../../src/js/describedfield");
|
|
|
1237
1240
|
* allDescriptions.push(detailsDescription());
|
|
1238
1241
|
* var result = datarestructor.Restructor.processJsonUsingDescriptions(jsonData, allDescriptions);
|
|
1239
1242
|
* @namespace module:datarestructor.Restructor
|
|
1240
|
-
*/ datarestructor.Restructor = {
|
|
1241
|
-
};
|
|
1243
|
+
*/ datarestructor.Restructor = {};
|
|
1242
1244
|
/**
|
|
1243
1245
|
* Static fassade function for the "Assembly line", that takes the jsonData and processes it using all given descriptions in their given order.
|
|
1244
1246
|
* @param {object} jsonData - parsed JSON data or any other data object
|
|
@@ -1253,19 +1255,17 @@ var described_field = described_field || require("../../src/js/describedfield");
|
|
|
1253
1255
|
return restructor.processJson(jsonData);
|
|
1254
1256
|
};
|
|
1255
1257
|
|
|
1256
|
-
},{"
|
|
1258
|
+
},{"403576eaef4c3d50":"i4dBQ","f62fb3394fa418f2":"5qyN0","4388868734c1e0a7":"g0GVY"}],"i4dBQ":[function(require,module,exports) {
|
|
1257
1259
|
"use strict";
|
|
1258
1260
|
/**
|
|
1259
1261
|
* @fileOverview Modded (compatibility, recursion depth) version of: https://stackoverflow.com/questions/19098797/fastest-way-to-flatten-un-flatten-nested-json-objectss
|
|
1260
1262
|
* @version ${project.version}
|
|
1261
1263
|
* @see {@link https://stackoverflow.com/questions/19098797/fastest-way-to-flatten-un-flatten-nested-json-objectss|stackoverflow flatten nested json objects}
|
|
1262
|
-
*/ var module = module || {
|
|
1263
|
-
}; // Fallback for vanilla js without modules
|
|
1264
|
+
*/ var module = module || {}; // Fallback for vanilla js without modules
|
|
1264
1265
|
/**
|
|
1265
1266
|
* internal_object_tools. Not meant to be used outside this repository.
|
|
1266
1267
|
* @default {}
|
|
1267
|
-
*/ var internal_object_tools = module.exports = {
|
|
1268
|
-
}; // Export module for npm...
|
|
1268
|
+
*/ var internal_object_tools = module.exports = {}; // Export module for npm...
|
|
1269
1269
|
/**
|
|
1270
1270
|
* @typedef {Object} NameValuePair
|
|
1271
1271
|
* @property {string} name - point separated names of the flattened main and sub properties, e.g. "responses[2].hits.hits[4]._source.name".
|
|
@@ -1311,7 +1311,7 @@ var described_field = described_field || require("../../src/js/describedfield");
|
|
|
1311
1311
|
return result;
|
|
1312
1312
|
};
|
|
1313
1313
|
|
|
1314
|
-
},{}],"
|
|
1314
|
+
},{}],"5qyN0":[function(require,module,exports) {
|
|
1315
1315
|
/**
|
|
1316
1316
|
* @file Provides a simple template resolver, that replaces variables in double curly brackets with the values of a given object.
|
|
1317
1317
|
* @version {@link https://github.com/JohT/data-restructor-js/releases/latest latest version}
|
|
@@ -1320,17 +1320,15 @@ var described_field = described_field || require("../../src/js/describedfield");
|
|
|
1320
1320
|
*/ "use strict";
|
|
1321
1321
|
var module = templateResolverInternalCreateIfNotExists(module); // Fallback for vanilla js without modules
|
|
1322
1322
|
function templateResolverInternalCreateIfNotExists(objectToCheck) {
|
|
1323
|
-
return objectToCheck || {
|
|
1324
|
-
};
|
|
1323
|
+
return objectToCheck || {};
|
|
1325
1324
|
}
|
|
1326
1325
|
/**
|
|
1327
1326
|
* Provides a simple template resolver, that replaces variables in double curly brackets with the values of a given object.
|
|
1328
1327
|
* @module template_resolver
|
|
1329
|
-
*/ var template_resolver = module.exports = {
|
|
1330
|
-
}; // Export module for npm...
|
|
1328
|
+
*/ var template_resolver = module.exports = {}; // Export module for npm...
|
|
1331
1329
|
template_resolver.internalCreateIfNotExists = templateResolverInternalCreateIfNotExists;
|
|
1332
|
-
var internal_object_tools = internal_object_tools || require("
|
|
1333
|
-
template_resolver.Resolver =
|
|
1330
|
+
var internal_object_tools = internal_object_tools || require("2bc8fdaaf35dfa57"); // supports vanilla js & npm
|
|
1331
|
+
template_resolver.Resolver = function() {
|
|
1334
1332
|
var removeArrayBracketsRegEx = new RegExp("\\[\\d+\\]", "gi");
|
|
1335
1333
|
/**
|
|
1336
1334
|
* Resolver. Is used inside this repository. It could also be used outside.
|
|
@@ -1368,8 +1366,7 @@ template_resolver.Resolver = (function() {
|
|
|
1368
1366
|
* @returns {object} object with resolvable field names and their values.
|
|
1369
1367
|
* @public
|
|
1370
1368
|
*/ this.resolvableFieldsOfAll = function() {
|
|
1371
|
-
var map = {
|
|
1372
|
-
};
|
|
1369
|
+
var map = {};
|
|
1373
1370
|
var ignoreInternalFields = function(propertyName) {
|
|
1374
1371
|
return propertyName.indexOf("_") !== 0 && propertyName.indexOf("._") < 0;
|
|
1375
1372
|
};
|
|
@@ -1457,9 +1454,9 @@ template_resolver.Resolver = (function() {
|
|
|
1457
1454
|
return mapObject;
|
|
1458
1455
|
}
|
|
1459
1456
|
return Resolver;
|
|
1460
|
-
}
|
|
1457
|
+
}();
|
|
1461
1458
|
|
|
1462
|
-
},{"
|
|
1459
|
+
},{"2bc8fdaaf35dfa57":"i4dBQ"}],"g0GVY":[function(require,module,exports) {
|
|
1463
1460
|
/**
|
|
1464
1461
|
* @file Describes a data field of the restructured data.
|
|
1465
1462
|
* @version {@link https://github.com/JohT/data-restructor-js/releases/latest latest version}
|
|
@@ -1468,14 +1465,12 @@ template_resolver.Resolver = (function() {
|
|
|
1468
1465
|
*/ "use strict";
|
|
1469
1466
|
var module = describedFieldInternalCreateIfNotExists(module); // Fallback for vanilla js without modules
|
|
1470
1467
|
function describedFieldInternalCreateIfNotExists(objectToCheck) {
|
|
1471
|
-
return objectToCheck || {
|
|
1472
|
-
};
|
|
1468
|
+
return objectToCheck || {};
|
|
1473
1469
|
}
|
|
1474
1470
|
/**
|
|
1475
1471
|
* Describes a data field of the restructured data.
|
|
1476
1472
|
* @module described_field
|
|
1477
|
-
*/ var described_field = module.exports = {
|
|
1478
|
-
}; // Export module for npm...
|
|
1473
|
+
*/ var described_field = module.exports = {}; // Export module for npm...
|
|
1479
1474
|
described_field.internalCreateIfNotExists = describedFieldInternalCreateIfNotExists;
|
|
1480
1475
|
/**
|
|
1481
1476
|
* Describes a field of the restructured data.
|
|
@@ -1492,7 +1487,7 @@ described_field.internalCreateIfNotExists = describedFieldInternalCreateIfNotExi
|
|
|
1492
1487
|
* @property {string} fieldName - field name
|
|
1493
1488
|
* @property {{*}} value - content of the field
|
|
1494
1489
|
* @property {module:described_field.DescribedDataField[]} [couldBeAnyCustomGroupName] any number of groups attached to the field each containing multiple fields
|
|
1495
|
-
*/ described_field.DescribedDataFieldBuilder =
|
|
1490
|
+
*/ described_field.DescribedDataFieldBuilder = function() {
|
|
1496
1491
|
/**
|
|
1497
1492
|
* Builds a {@link module:described_field.DescribedDataField}.
|
|
1498
1493
|
* DescribedDataField is the main element of the restructured data and therefore considered "public".
|
|
@@ -1662,7 +1657,7 @@ described_field.internalCreateIfNotExists = describedFieldInternalCreateIfNotExi
|
|
|
1662
1657
|
return value === undefined || value === null ? defaultValue : value;
|
|
1663
1658
|
}
|
|
1664
1659
|
return DescribedDataFieldBuilder;
|
|
1665
|
-
}
|
|
1660
|
+
}();
|
|
1666
1661
|
/**
|
|
1667
1662
|
* Creates a new described data field with all properties of the original one except for dynamically added groups.
|
|
1668
1663
|
* @param {module:described_field.DescribedDataField} describedDataField
|
|
@@ -1671,7 +1666,7 @@ described_field.internalCreateIfNotExists = describedFieldInternalCreateIfNotExi
|
|
|
1671
1666
|
*/ described_field.copyWithoutGroups = function(describedDataField) {
|
|
1672
1667
|
return new described_field.DescribedDataFieldBuilder().fromDescribedDataField(describedDataField).groupNames([]).build();
|
|
1673
1668
|
};
|
|
1674
|
-
described_field.DescribedDataFieldGroup =
|
|
1669
|
+
described_field.DescribedDataFieldGroup = function() {
|
|
1675
1670
|
/**
|
|
1676
1671
|
* Adds groups to {@link module:described_field.DescribedDataField}s. These groups are dynamically added properties
|
|
1677
1672
|
* that contain an array of sub fields of the same type {@link module:described_field.DescribedDataField}s.
|
|
@@ -1717,7 +1712,7 @@ described_field.DescribedDataFieldGroup = (function() {
|
|
|
1717
1712
|
};
|
|
1718
1713
|
}
|
|
1719
1714
|
return DescribedDataFieldGroup;
|
|
1720
|
-
}
|
|
1715
|
+
}();
|
|
1721
1716
|
|
|
1722
|
-
},{}]},["
|
|
1717
|
+
},{}]},["enDbA"], "enDbA", "parcelRequirec1f2")
|
|
1723
1718
|
|