@builder.io/sdk 2.2.0 → 2.2.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/coverage/clover.xml +605 -675
- package/coverage/coverage-final.json +5 -5
- package/coverage/lcov-report/index.html +35 -35
- package/coverage/lcov-report/src/builder.class.ts.html +42 -258
- package/coverage/lcov-report/src/classes/animator.class.ts.html +1 -1
- package/coverage/lcov-report/src/classes/cookies.class.ts.html +1 -1
- package/coverage/lcov-report/src/classes/index.html +20 -20
- package/coverage/lcov-report/src/classes/observable.class.ts.html +39 -51
- package/coverage/lcov-report/src/classes/promise.class.ts.html +1 -1
- package/coverage/lcov-report/src/classes/query-string.class.ts.html +46 -46
- package/coverage/lcov-report/src/functions/assign.function.ts.html +1 -1
- package/coverage/lcov-report/src/functions/fetch.function.ts.html +1 -1
- package/coverage/lcov-report/src/functions/get-top-level-domain.ts.html +1 -1
- package/coverage/lcov-report/src/functions/index.html +11 -11
- package/coverage/lcov-report/src/functions/next-tick.function.ts.html +25 -7
- package/coverage/lcov-report/src/functions/omit.function.ts.html +1 -1
- package/coverage/lcov-report/src/functions/server-only-require.function.ts.html +1 -1
- package/coverage/lcov-report/src/functions/throttle.function.ts.html +1 -1
- package/coverage/lcov-report/src/functions/to-error.ts.html +1 -1
- package/coverage/lcov-report/src/functions/uuid.ts.html +1 -1
- package/coverage/lcov-report/src/index.html +20 -20
- package/coverage/lcov-report/src/polyfills/custom-event-polyfill.js.html +1 -1
- package/coverage/lcov-report/src/polyfills/index.html +1 -1
- package/coverage/lcov-report/src/types/api-version.ts.html +2 -2
- package/coverage/lcov-report/src/types/index.html +1 -1
- package/coverage/lcov-report/src/url.ts.html +61 -61
- package/coverage/lcov.info +714 -823
- package/dist/index.browser.js +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">40.
|
|
26
|
+
<span class="strong">40.05% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>1071/2674</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
@@ -37,16 +37,16 @@
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">4.
|
|
40
|
+
<span class="strong">4.7% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>4/
|
|
42
|
+
<span class='fraction'>4/85</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">40.
|
|
47
|
+
<span class="strong">40.05% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>1071/2674</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -2737,79 +2737,8 @@
|
|
|
2737
2737
|
<a name='L2672'></a><a href='#L2672'>2672</a>
|
|
2738
2738
|
<a name='L2673'></a><a href='#L2673'>2673</a>
|
|
2739
2739
|
<a name='L2674'></a><a href='#L2674'>2674</a>
|
|
2740
|
-
<a name='L2675'></a><a href='#L2675'>2675</a>
|
|
2741
|
-
<
|
|
2742
|
-
<a name='L2677'></a><a href='#L2677'>2677</a>
|
|
2743
|
-
<a name='L2678'></a><a href='#L2678'>2678</a>
|
|
2744
|
-
<a name='L2679'></a><a href='#L2679'>2679</a>
|
|
2745
|
-
<a name='L2680'></a><a href='#L2680'>2680</a>
|
|
2746
|
-
<a name='L2681'></a><a href='#L2681'>2681</a>
|
|
2747
|
-
<a name='L2682'></a><a href='#L2682'>2682</a>
|
|
2748
|
-
<a name='L2683'></a><a href='#L2683'>2683</a>
|
|
2749
|
-
<a name='L2684'></a><a href='#L2684'>2684</a>
|
|
2750
|
-
<a name='L2685'></a><a href='#L2685'>2685</a>
|
|
2751
|
-
<a name='L2686'></a><a href='#L2686'>2686</a>
|
|
2752
|
-
<a name='L2687'></a><a href='#L2687'>2687</a>
|
|
2753
|
-
<a name='L2688'></a><a href='#L2688'>2688</a>
|
|
2754
|
-
<a name='L2689'></a><a href='#L2689'>2689</a>
|
|
2755
|
-
<a name='L2690'></a><a href='#L2690'>2690</a>
|
|
2756
|
-
<a name='L2691'></a><a href='#L2691'>2691</a>
|
|
2757
|
-
<a name='L2692'></a><a href='#L2692'>2692</a>
|
|
2758
|
-
<a name='L2693'></a><a href='#L2693'>2693</a>
|
|
2759
|
-
<a name='L2694'></a><a href='#L2694'>2694</a>
|
|
2760
|
-
<a name='L2695'></a><a href='#L2695'>2695</a>
|
|
2761
|
-
<a name='L2696'></a><a href='#L2696'>2696</a>
|
|
2762
|
-
<a name='L2697'></a><a href='#L2697'>2697</a>
|
|
2763
|
-
<a name='L2698'></a><a href='#L2698'>2698</a>
|
|
2764
|
-
<a name='L2699'></a><a href='#L2699'>2699</a>
|
|
2765
|
-
<a name='L2700'></a><a href='#L2700'>2700</a>
|
|
2766
|
-
<a name='L2701'></a><a href='#L2701'>2701</a>
|
|
2767
|
-
<a name='L2702'></a><a href='#L2702'>2702</a>
|
|
2768
|
-
<a name='L2703'></a><a href='#L2703'>2703</a>
|
|
2769
|
-
<a name='L2704'></a><a href='#L2704'>2704</a>
|
|
2770
|
-
<a name='L2705'></a><a href='#L2705'>2705</a>
|
|
2771
|
-
<a name='L2706'></a><a href='#L2706'>2706</a>
|
|
2772
|
-
<a name='L2707'></a><a href='#L2707'>2707</a>
|
|
2773
|
-
<a name='L2708'></a><a href='#L2708'>2708</a>
|
|
2774
|
-
<a name='L2709'></a><a href='#L2709'>2709</a>
|
|
2775
|
-
<a name='L2710'></a><a href='#L2710'>2710</a>
|
|
2776
|
-
<a name='L2711'></a><a href='#L2711'>2711</a>
|
|
2777
|
-
<a name='L2712'></a><a href='#L2712'>2712</a>
|
|
2778
|
-
<a name='L2713'></a><a href='#L2713'>2713</a>
|
|
2779
|
-
<a name='L2714'></a><a href='#L2714'>2714</a>
|
|
2780
|
-
<a name='L2715'></a><a href='#L2715'>2715</a>
|
|
2781
|
-
<a name='L2716'></a><a href='#L2716'>2716</a>
|
|
2782
|
-
<a name='L2717'></a><a href='#L2717'>2717</a>
|
|
2783
|
-
<a name='L2718'></a><a href='#L2718'>2718</a>
|
|
2784
|
-
<a name='L2719'></a><a href='#L2719'>2719</a>
|
|
2785
|
-
<a name='L2720'></a><a href='#L2720'>2720</a>
|
|
2786
|
-
<a name='L2721'></a><a href='#L2721'>2721</a>
|
|
2787
|
-
<a name='L2722'></a><a href='#L2722'>2722</a>
|
|
2788
|
-
<a name='L2723'></a><a href='#L2723'>2723</a>
|
|
2789
|
-
<a name='L2724'></a><a href='#L2724'>2724</a>
|
|
2790
|
-
<a name='L2725'></a><a href='#L2725'>2725</a>
|
|
2791
|
-
<a name='L2726'></a><a href='#L2726'>2726</a>
|
|
2792
|
-
<a name='L2727'></a><a href='#L2727'>2727</a>
|
|
2793
|
-
<a name='L2728'></a><a href='#L2728'>2728</a>
|
|
2794
|
-
<a name='L2729'></a><a href='#L2729'>2729</a>
|
|
2795
|
-
<a name='L2730'></a><a href='#L2730'>2730</a>
|
|
2796
|
-
<a name='L2731'></a><a href='#L2731'>2731</a>
|
|
2797
|
-
<a name='L2732'></a><a href='#L2732'>2732</a>
|
|
2798
|
-
<a name='L2733'></a><a href='#L2733'>2733</a>
|
|
2799
|
-
<a name='L2734'></a><a href='#L2734'>2734</a>
|
|
2800
|
-
<a name='L2735'></a><a href='#L2735'>2735</a>
|
|
2801
|
-
<a name='L2736'></a><a href='#L2736'>2736</a>
|
|
2802
|
-
<a name='L2737'></a><a href='#L2737'>2737</a>
|
|
2803
|
-
<a name='L2738'></a><a href='#L2738'>2738</a>
|
|
2804
|
-
<a name='L2739'></a><a href='#L2739'>2739</a>
|
|
2805
|
-
<a name='L2740'></a><a href='#L2740'>2740</a>
|
|
2806
|
-
<a name='L2741'></a><a href='#L2741'>2741</a>
|
|
2807
|
-
<a name='L2742'></a><a href='#L2742'>2742</a>
|
|
2808
|
-
<a name='L2743'></a><a href='#L2743'>2743</a>
|
|
2809
|
-
<a name='L2744'></a><a href='#L2744'>2744</a>
|
|
2810
|
-
<a name='L2745'></a><a href='#L2745'>2745</a>
|
|
2811
|
-
<a name='L2746'></a><a href='#L2746'>2746</a>
|
|
2812
|
-
<a name='L2747'></a><a href='#L2747'>2747</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
|
|
2740
|
+
<a name='L2675'></a><a href='#L2675'>2675</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
|
|
2741
|
+
<span class="cline-any cline-yes">1x</span>
|
|
2813
2742
|
<span class="cline-any cline-yes">1x</span>
|
|
2814
2743
|
<span class="cline-any cline-yes">1x</span>
|
|
2815
2744
|
<span class="cline-any cline-yes">1x</span>
|
|
@@ -3616,47 +3545,6 @@
|
|
|
3616
3545
|
<span class="cline-any cline-yes">1x</span>
|
|
3617
3546
|
<span class="cline-any cline-yes">1x</span>
|
|
3618
3547
|
<span class="cline-any cline-yes">1x</span>
|
|
3619
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3620
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3621
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3622
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3623
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3624
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3625
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3626
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3627
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3628
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3629
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3630
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3631
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3632
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3633
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3634
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3635
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3636
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3637
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3638
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3639
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3640
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3641
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3642
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3643
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3644
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3645
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3646
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3647
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3648
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3649
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3650
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3651
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3652
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3653
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3654
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3655
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3656
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3657
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3658
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3659
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3660
3548
|
<span class="cline-any cline-no"> </span>
|
|
3661
3549
|
<span class="cline-any cline-yes">1x</span>
|
|
3662
3550
|
<span class="cline-any cline-yes">1x</span>
|
|
@@ -3775,24 +3663,12 @@
|
|
|
3775
3663
|
<span class="cline-any cline-yes">1x</span>
|
|
3776
3664
|
<span class="cline-any cline-yes">1x</span>
|
|
3777
3665
|
<span class="cline-any cline-yes">1x</span>
|
|
3778
|
-
<span class="cline-any cline-yes">
|
|
3779
|
-
<span class="cline-any cline-yes">
|
|
3780
|
-
<span class="cline-any cline-yes">
|
|
3781
|
-
<span class="cline-any cline-yes">
|
|
3782
|
-
<span class="cline-any cline-yes">
|
|
3783
|
-
<span class="cline-any cline-yes">
|
|
3784
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3785
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3786
|
-
<span class="cline-any cline-no"> </span>
|
|
3787
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3788
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3789
|
-
<span class="cline-any cline-yes">1x</span>
|
|
3790
|
-
<span class="cline-any cline-yes">11x</span>
|
|
3791
|
-
<span class="cline-any cline-yes">11x</span>
|
|
3792
|
-
<span class="cline-any cline-yes">46x</span>
|
|
3793
|
-
<span class="cline-any cline-yes">11x</span>
|
|
3794
|
-
<span class="cline-any cline-yes">35x</span>
|
|
3795
|
-
<span class="cline-any cline-yes">11x</span>
|
|
3666
|
+
<span class="cline-any cline-yes">10x</span>
|
|
3667
|
+
<span class="cline-any cline-yes">10x</span>
|
|
3668
|
+
<span class="cline-any cline-yes">41x</span>
|
|
3669
|
+
<span class="cline-any cline-yes">10x</span>
|
|
3670
|
+
<span class="cline-any cline-yes">31x</span>
|
|
3671
|
+
<span class="cline-any cline-yes">10x</span>
|
|
3796
3672
|
<span class="cline-any cline-yes">1x</span>
|
|
3797
3673
|
<span class="cline-any cline-yes">1x</span>
|
|
3798
3674
|
<span class="cline-any cline-yes">1x</span>
|
|
@@ -4616,7 +4492,6 @@
|
|
|
4616
4492
|
<span class="cline-any cline-no"> </span>
|
|
4617
4493
|
<span class="cline-any cline-no"> </span>
|
|
4618
4494
|
<span class="cline-any cline-no"> </span>
|
|
4619
|
-
<span class="cline-any cline-no"> </span>
|
|
4620
4495
|
<span class="cline-any cline-yes">1x</span>
|
|
4621
4496
|
<span class="cline-any cline-yes">1x</span>
|
|
4622
4497
|
<span class="cline-any cline-yes">1x</span>
|
|
@@ -5143,9 +5018,6 @@
|
|
|
5143
5018
|
<span class="cline-any cline-no"> </span>
|
|
5144
5019
|
<span class="cline-any cline-no"> </span>
|
|
5145
5020
|
<span class="cline-any cline-no"> </span>
|
|
5146
|
-
<span class="cline-any cline-no"> </span>
|
|
5147
|
-
<span class="cline-any cline-no"> </span>
|
|
5148
|
-
<span class="cline-any cline-no"> </span>
|
|
5149
5021
|
<span class="cline-any cline-yes">1x</span>
|
|
5150
5022
|
<span class="cline-any cline-yes">1x</span>
|
|
5151
5023
|
<span class="cline-any cline-yes">1x</span>
|
|
@@ -5385,13 +5257,6 @@
|
|
|
5385
5257
|
<span class="cline-any cline-no"> </span>
|
|
5386
5258
|
<span class="cline-any cline-no"> </span>
|
|
5387
5259
|
<span class="cline-any cline-no"> </span>
|
|
5388
|
-
<span class="cline-any cline-no"> </span>
|
|
5389
|
-
<span class="cline-any cline-no"> </span>
|
|
5390
|
-
<span class="cline-any cline-no"> </span>
|
|
5391
|
-
<span class="cline-any cline-no"> </span>
|
|
5392
|
-
<span class="cline-any cline-no"> </span>
|
|
5393
|
-
<span class="cline-any cline-no"> </span>
|
|
5394
|
-
<span class="cline-any cline-no"> </span>
|
|
5395
5260
|
<span class="cline-any cline-yes">1x</span>
|
|
5396
5261
|
<span class="cline-any cline-yes">1x</span>
|
|
5397
5262
|
<span class="cline-any cline-yes">1x</span>
|
|
@@ -5544,15 +5409,6 @@
|
|
|
5544
5409
|
<span class="cline-any cline-no"> </span>
|
|
5545
5410
|
<span class="cline-any cline-no"> </span>
|
|
5546
5411
|
<span class="cline-any cline-no"> </span>
|
|
5547
|
-
<span class="cline-any cline-no"> </span>
|
|
5548
|
-
<span class="cline-any cline-no"> </span>
|
|
5549
|
-
<span class="cline-any cline-no"> </span>
|
|
5550
|
-
<span class="cline-any cline-no"> </span>
|
|
5551
|
-
<span class="cline-any cline-no"> </span>
|
|
5552
|
-
<span class="cline-any cline-no"> </span>
|
|
5553
|
-
<span class="cline-any cline-no"> </span>
|
|
5554
|
-
<span class="cline-any cline-no"> </span>
|
|
5555
|
-
<span class="cline-any cline-no"> </span>
|
|
5556
5412
|
<span class="cline-any cline-yes">1x</span>
|
|
5557
5413
|
<span class="cline-any cline-yes">1x</span>
|
|
5558
5414
|
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js"><span class="fstat-no" title="function not covered" ><span class="fstat-no" title="function not covered" ><span class="fstat-no" title="function not covered" ><span class="fstat-no" title="function not covered" ><span class="fstat-no" title="function not covered" >import '</span></span></span></span></span>./polyfills/custom-event-polyfill';
|
|
@@ -5578,7 +5434,8 @@ import { parse as urlParse } from './url';
|
|
|
5578
5434
|
import hash from 'hash-sum';
|
|
5579
5435
|
import { toError } from './functions/to-error';
|
|
5580
5436
|
import { emptyUrl, UrlLike } from './url';
|
|
5581
|
-
import {
|
|
5437
|
+
import type { ApiVersion } from './types/api-version';
|
|
5438
|
+
import { DEFAULT_API_VERSION } from './types/api-version';
|
|
5582
5439
|
|
|
5583
5440
|
export type Url = any;
|
|
5584
5441
|
|
|
@@ -5676,7 +5533,7 @@ const parse: (url: string) => UrlLike = <span class="branch-0 cbranch-no" tit
|
|
|
5676
5533
|
<span class="cstat-no" title="statement not covered" > expiresString +</span>
|
|
5677
5534
|
<span class="cstat-no" title="statement not covered" > '; path=/' +</span>
|
|
5678
5535
|
<span class="cstat-no" title="statement not covered" > `; domain=${getTopLevelDomain(location.hostname)}` +</span>
|
|
5679
|
-
<span class="cstat-no" title="statement not covered" > (secure ? ';
|
|
5536
|
+
<span class="cstat-no" title="statement not covered" > (secure ? ';secure ; SameSite=None' : '');</span>
|
|
5680
5537
|
<span class="cstat-no" title="statement not covered" > } catch (err) {</span>
|
|
5681
5538
|
<span class="cstat-no" title="statement not covered" > console.warn('Could not set cookie', err);</span>
|
|
5682
5539
|
}
|
|
@@ -5828,12 +5685,7 @@ export interface UserAttributes {
|
|
|
5828
5685
|
operatingSystem?: string;
|
|
5829
5686
|
}
|
|
5830
5687
|
|
|
5831
|
-
|
|
5832
|
-
| { apiVersion?: Extract<ApiVersion, 'v1'> }
|
|
5833
|
-
| { apiVersion?: Extract<ApiVersion, 'v3'>; enrich?: boolean }
|
|
5834
|
-
| { apiVersion?: never; enrich?: boolean };
|
|
5835
|
-
|
|
5836
|
-
export type GetContentOptions = AllowEnrich & {
|
|
5688
|
+
export interface GetContentOptions {
|
|
5837
5689
|
/**
|
|
5838
5690
|
* User attribute key value pairs to be used for targeting
|
|
5839
5691
|
* https://www.builder.io/c/docs/custom-targeting-attributes
|
|
@@ -5857,14 +5709,12 @@ export type GetContentOptions = AllowEnrich & {
|
|
|
5857
5709
|
*/
|
|
5858
5710
|
includeUrl?: boolean;
|
|
5859
5711
|
/**
|
|
5860
|
-
*
|
|
5861
|
-
* If you use the `reference` field to pull in other content without this
|
|
5712
|
+
* Follow references. If you use the `reference` field to pull in other content without this
|
|
5862
5713
|
* enabled we will not fetch that content for the final response.
|
|
5863
|
-
* @deprecated use `enrich` instead
|
|
5864
5714
|
*/
|
|
5865
5715
|
includeRefs?: boolean;
|
|
5866
5716
|
/**
|
|
5867
|
-
*
|
|
5717
|
+
* How long in seconds content should be cached for. Sets the max-age of the cache-control header
|
|
5868
5718
|
* response header.
|
|
5869
5719
|
*
|
|
5870
5720
|
* Use a higher value for better performance, lower for content that will change more frequently
|
|
@@ -5887,10 +5737,6 @@ export type GetContentOptions = AllowEnrich & {
|
|
|
5887
5737
|
* Maximum number of results to return. Defaults to `1`.
|
|
5888
5738
|
*/
|
|
5889
5739
|
limit?: number;
|
|
5890
|
-
/**
|
|
5891
|
-
* Use to specify an offset for pagination of results. The default is 0.
|
|
5892
|
-
*/
|
|
5893
|
-
offset?: number;
|
|
5894
5740
|
/**
|
|
5895
5741
|
* Mongodb style query of your data. E.g.:
|
|
5896
5742
|
*
|
|
@@ -5924,6 +5770,10 @@ export type GetContentOptions = AllowEnrich & {
|
|
|
5924
5770
|
* Extract any styles to a separate css property when generating HTML.
|
|
5925
5771
|
*/
|
|
5926
5772
|
extractCss?: boolean;
|
|
5773
|
+
/**
|
|
5774
|
+
* Pagination results offset. Defaults to zero.
|
|
5775
|
+
*/
|
|
5776
|
+
offset?: number;
|
|
5927
5777
|
/**
|
|
5928
5778
|
* @package
|
|
5929
5779
|
*
|
|
@@ -5959,23 +5809,13 @@ export type GetContentOptions = AllowEnrich & {
|
|
|
5959
5809
|
* @hidden
|
|
5960
5810
|
*/
|
|
5961
5811
|
alias?: string;
|
|
5962
|
-
/**
|
|
5963
|
-
* Only include these fields.
|
|
5964
|
-
* Note: 'omit' takes precedence over 'fields'
|
|
5965
|
-
*
|
|
5966
|
-
* @example
|
|
5967
|
-
* ```
|
|
5968
|
-
* fields: 'id, name, data.customField'
|
|
5969
|
-
* ```
|
|
5970
|
-
*/
|
|
5971
5812
|
fields?: string;
|
|
5972
5813
|
/**
|
|
5973
5814
|
* Omit only these fields.
|
|
5974
|
-
* Note: 'omit' takes precedence over 'fields'
|
|
5975
5815
|
*
|
|
5976
5816
|
* @example
|
|
5977
5817
|
* ```
|
|
5978
|
-
* omit
|
|
5818
|
+
* &omit=data.bigField,data.blocks
|
|
5979
5819
|
* ```
|
|
5980
5820
|
*/
|
|
5981
5821
|
omit?: string;
|
|
@@ -6022,33 +5862,8 @@ export type GetContentOptions = AllowEnrich & {
|
|
|
6022
5862
|
*/
|
|
6023
5863
|
noEditorUpdates?: boolean;
|
|
6024
5864
|
|
|
6025
|
-
|
|
6026
|
-
|
|
6027
|
-
* If set to `false`, it will render the entire content tree eagerly.
|
|
6028
|
-
* @deprecated use `enrich` instead
|
|
6029
|
-
*/
|
|
6030
|
-
noTraverse?: boolean;
|
|
6031
|
-
|
|
6032
|
-
/**
|
|
6033
|
-
* Property to order results by.
|
|
6034
|
-
* Use 1 for ascending and -1 for descending.
|
|
6035
|
-
*
|
|
6036
|
-
* The key is what you're sorting on, so the following example sorts by createdDate
|
|
6037
|
-
* and because the value is 1, the sort is ascending.
|
|
6038
|
-
*
|
|
6039
|
-
* @example
|
|
6040
|
-
* ```
|
|
6041
|
-
* createdDate: 1
|
|
6042
|
-
* ```
|
|
6043
|
-
*/
|
|
6044
|
-
sort?: { [key: string]: 1 | -1 };
|
|
6045
|
-
|
|
6046
|
-
/**
|
|
6047
|
-
* Include content entries in a response that are still in
|
|
6048
|
-
* draft mode and un-archived. Default is false.
|
|
6049
|
-
*/
|
|
6050
|
-
includeUnpublished?: boolean;
|
|
6051
|
-
};
|
|
5865
|
+
apiVersion?: ApiVersion;
|
|
5866
|
+
}
|
|
6052
5867
|
|
|
6053
5868
|
export type Class = {
|
|
6054
5869
|
name?: string;
|
|
@@ -6345,6 +6160,7 @@ export interface Component {
|
|
|
6345
6160
|
query?: any;
|
|
6346
6161
|
};
|
|
6347
6162
|
|
|
6163
|
+
/** @hidden @deprecated */
|
|
6348
6164
|
friendlyName?: string;
|
|
6349
6165
|
|
|
6350
6166
|
/**
|
|
@@ -6519,18 +6335,6 @@ export class Builder {
|
|
|
6519
6335
|
static registerTrustedHost(host: string) {
|
|
6520
6336
|
this.trustedHosts.push(host);
|
|
6521
6337
|
}
|
|
6522
|
-
|
|
6523
|
-
/**
|
|
6524
|
-
* @param context @type {import('isolated-vm').Context}
|
|
6525
|
-
* Use this function to control the execution context of custom code on the server.
|
|
6526
|
-
* const ivm = require('isolated-vm');
|
|
6527
|
-
* const isolate = new ivm.Isolate({ memoryLimit: 128 });
|
|
6528
|
-
* const context = isolate.createContextSync();
|
|
6529
|
-
* Builder.setServerContext(context);
|
|
6530
|
-
*/
|
|
6531
|
-
static <span class="fstat-no" title="function not covered" >setServerContext(context: any) {</span>
|
|
6532
|
-
<span class="cstat-no" title="statement not covered" > this.serverContext = context;</span>
|
|
6533
|
-
}
|
|
6534
6338
|
|
|
6535
6339
|
static isTrustedHost(hostname: string) {
|
|
6536
6340
|
return (
|
|
@@ -7326,11 +7130,10 @@ export class Builder {
|
|
|
7326
7130
|
<span class="cstat-no" title="statement not covered" > }</span>
|
|
7327
7131
|
<span class="cstat-no" title="statement not covered" ></span>
|
|
7328
7132
|
<span class="cstat-no" title="statement not covered" > if (options) {</span>
|
|
7329
|
-
<span class="cstat-no" title="statement not covered" > // picking only locale
|
|
7133
|
+
<span class="cstat-no" title="statement not covered" > // picking only locale and includeRefs</span>
|
|
7330
7134
|
<span class="cstat-no" title="statement not covered" > this.queryOptions = {</span>
|
|
7331
7135
|
<span class="cstat-no" title="statement not covered" > ...(options.locale && { locale: options.locale }),</span>
|
|
7332
7136
|
<span class="cstat-no" title="statement not covered" > ...(options.includeRefs && { includeRefs: options.includeRefs }),</span>
|
|
7333
|
-
<span class="cstat-no" title="statement not covered" > ...(options.enrich && { enrich: options.enrich }),</span>
|
|
7334
7137
|
<span class="cstat-no" title="statement not covered" > };</span>
|
|
7335
7138
|
<span class="cstat-no" title="statement not covered" > }</span>
|
|
7336
7139
|
<span class="cstat-no" title="statement not covered" ></span>
|
|
@@ -7863,12 +7666,9 @@ export class Builder {
|
|
|
7863
7666
|
// the core SDK for consistency
|
|
7864
7667
|
<span class="fstat-no" title="function not covered" > requestUrl(</span>
|
|
7865
7668
|
<span class="cstat-no" title="statement not covered" > url: string,</span>
|
|
7866
|
-
<span class="cstat-no" title="statement not covered" > options?: { headers: { [header: string]: number | string | string[] | undefined }
|
|
7669
|
+
<span class="cstat-no" title="statement not covered" > options?: { headers: { [header: string]: number | string | string[] | undefined } }</span>
|
|
7867
7670
|
<span class="cstat-no" title="statement not covered" > ) {</span>
|
|
7868
|
-
<span class="cstat-no" title="statement not covered" > return getFetch()(url,
|
|
7869
|
-
<span class="cstat-no" title="statement not covered" > next: { revalidate: 1, ...options?.next },</span>
|
|
7870
|
-
<span class="cstat-no" title="statement not covered" > ...options,</span>
|
|
7871
|
-
<span class="cstat-no" title="statement not covered" > } as SimplifiedFetchOptions).then(res => res.<span class="fstat-no" title="function not covered" >json());</span></span>
|
|
7671
|
+
<span class="cstat-no" title="statement not covered" > return getFetch()(url, options as SimplifiedFetchOptions).then(res => res.<span class="fstat-no" title="function not covered" >json());</span></span>
|
|
7872
7672
|
<span class="cstat-no" title="statement not covered" > }</span>
|
|
7873
7673
|
<span class="cstat-no" title="statement not covered" ></span>
|
|
7874
7674
|
<span class="cstat-no" title="statement not covered" > get host() {</span>
|
|
@@ -7926,30 +7726,17 @@ export class Builder {
|
|
|
7926
7726
|
<span class="cstat-no" title="statement not covered" > ...queue[0].options,</span>
|
|
7927
7727
|
<span class="cstat-no" title="statement not covered" > ...this.queryOptions,</span>
|
|
7928
7728
|
<span class="cstat-no" title="statement not covered" > };</span>
|
|
7929
|
-
<span class="cstat-no" title="statement not covered" ></span>
|
|
7930
|
-
<span class="cstat-no" title="statement not covered" > if (queue[0].locale) {</span>
|
|
7931
|
-
<span class="cstat-no" title="statement not covered" > queryParams.locale = queue[0].locale;</span>
|
|
7932
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
7933
7729
|
<span class="cstat-no" title="statement not covered" > if (queue[0].fields) {</span>
|
|
7934
7730
|
<span class="cstat-no" title="statement not covered" > queryParams.fields = queue[0].fields;</span>
|
|
7935
7731
|
<span class="cstat-no" title="statement not covered" > }</span>
|
|
7936
7732
|
<span class="cstat-no" title="statement not covered" > if (queue[0].format) {</span>
|
|
7937
7733
|
<span class="cstat-no" title="statement not covered" > queryParams.format = queue[0].format;</span>
|
|
7938
7734
|
<span class="cstat-no" title="statement not covered" > }</span>
|
|
7939
|
-
<span class="cstat-no" title="statement not covered" > if ('noTraverse' in queue[0]) {</span>
|
|
7940
|
-
<span class="cstat-no" title="statement not covered" > queryParams.noTraverse = queue[0].noTraverse;</span>
|
|
7941
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
7942
|
-
<span class="cstat-no" title="statement not covered" > if ('includeUnpublished' in queue[0]) {</span>
|
|
7943
|
-
<span class="cstat-no" title="statement not covered" > queryParams.includeUnpublished = queue[0].includeUnpublished;</span>
|
|
7944
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
7945
|
-
<span class="cstat-no" title="statement not covered" > if (queue[0].sort) {</span>
|
|
7946
|
-
<span class="cstat-no" title="statement not covered" > queryParams.sort = queue[0].sort;</span>
|
|
7947
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
7948
7735
|
<span class="cstat-no" title="statement not covered" ></span>
|
|
7949
7736
|
<span class="cstat-no" title="statement not covered" > const pageQueryParams: ParamsMap =</span>
|
|
7950
7737
|
<span class="cstat-no" title="statement not covered" > typeof location !== 'undefined'</span>
|
|
7951
7738
|
<span class="cstat-no" title="statement not covered" > ? QueryString.parseDeep(location.search.substr(1))</span>
|
|
7952
|
-
<span class="cstat-no" title="statement not covered" > : undefined || {}
|
|
7739
|
+
<span class="cstat-no" title="statement not covered" > : undefined || {};</span>
|
|
7953
7740
|
<span class="cstat-no" title="statement not covered" ></span>
|
|
7954
7741
|
<span class="cstat-no" title="statement not covered" > const userAttributes =</span>
|
|
7955
7742
|
<span class="cstat-no" title="statement not covered" > // FIXME: HACK: only checks first in queue for user attributes overrides, should check all</span>
|
|
@@ -8009,6 +7796,12 @@ export class Builder {
|
|
|
8009
7796
|
<span class="cstat-no" title="statement not covered" > }</span>
|
|
8010
7797
|
<span class="cstat-no" title="statement not covered" > }</span>
|
|
8011
7798
|
<span class="cstat-no" title="statement not covered" ></span>
|
|
7799
|
+
<span class="cstat-no" title="statement not covered" > if (!Builder.isReact) {</span>
|
|
7800
|
+
<span class="cstat-no" title="statement not covered" > // TODO: remove me once v1 page editors converted to v2</span>
|
|
7801
|
+
<span class="cstat-no" title="statement not covered" > // queryParams.extractCss = true;</span>
|
|
7802
|
+
<span class="cstat-no" title="statement not covered" > queryParams.prerender = true;</span>
|
|
7803
|
+
<span class="cstat-no" title="statement not covered" > }</span>
|
|
7804
|
+
<span class="cstat-no" title="statement not covered" ></span>
|
|
8012
7805
|
<span class="cstat-no" title="statement not covered" > for (const options of queue) {</span>
|
|
8013
7806
|
<span class="cstat-no" title="statement not covered" > if (options.format) {</span>
|
|
8014
7807
|
<span class="cstat-no" title="statement not covered" > queryParams.format = options.format;</span>
|
|
@@ -8070,7 +7863,7 @@ export class Builder {
|
|
|
8070
7863
|
<span class="cstat-no" title="statement not covered" ></span>
|
|
8071
7864
|
<span class="cstat-no" title="statement not covered" > const format = queryParams.format;</span>
|
|
8072
7865
|
<span class="cstat-no" title="statement not covered" ></span>
|
|
8073
|
-
<span class="cstat-no" title="statement not covered" > const requestOptions = { headers: {}
|
|
7866
|
+
<span class="cstat-no" title="statement not covered" > const requestOptions = { headers: {} };</span>
|
|
8074
7867
|
<span class="cstat-no" title="statement not covered" > if (this.authToken) {</span>
|
|
8075
7868
|
<span class="cstat-no" title="statement not covered" > requestOptions.headers = {</span>
|
|
8076
7869
|
<span class="cstat-no" title="statement not covered" > ...requestOptions.headers,</span>
|
|
@@ -8253,7 +8046,6 @@ export class Builder {
|
|
|
8253
8046
|
<span class="cstat-no" title="statement not covered" > req?: IncomingMessage;</span>
|
|
8254
8047
|
<span class="cstat-no" title="statement not covered" > res?: ServerResponse;</span>
|
|
8255
8048
|
<span class="cstat-no" title="statement not covered" > apiKey?: string;</span>
|
|
8256
|
-
<span class="cstat-no" title="statement not covered" > authToken?: string;</span>
|
|
8257
8049
|
<span class="cstat-no" title="statement not covered" > } = {}</span>
|
|
8258
8050
|
<span class="cstat-no" title="statement not covered" > ): Promise<BuilderContent[]> {</span>
|
|
8259
8051
|
<span class="cstat-no" title="statement not covered" > let instance: Builder = this;</span>
|
|
@@ -8263,8 +8055,8 @@ export class Builder {
|
|
|
8263
8055
|
<span class="cstat-no" title="statement not covered" > options.req,</span>
|
|
8264
8056
|
<span class="cstat-no" title="statement not covered" > options.res,</span>
|
|
8265
8057
|
<span class="cstat-no" title="statement not covered" > false,</span>
|
|
8266
|
-
<span class="cstat-no" title="statement not covered" >
|
|
8267
|
-
<span class="cstat-no" title="statement not covered" > options.apiVersion
|
|
8058
|
+
<span class="cstat-no" title="statement not covered" > null,</span>
|
|
8059
|
+
<span class="cstat-no" title="statement not covered" > options.apiVersion</span>
|
|
8268
8060
|
<span class="cstat-no" title="statement not covered" > );</span>
|
|
8269
8061
|
<span class="cstat-no" title="statement not covered" > instance.setUserAttributes(this.getUserAttributes());</span>
|
|
8270
8062
|
<span class="cstat-no" title="statement not covered" > } else {</span>
|
|
@@ -8273,19 +8065,11 @@ export class Builder {
|
|
|
8273
8065
|
<span class="cstat-no" title="statement not covered" > if (options.apiKey && !this.apiKey) {</span>
|
|
8274
8066
|
<span class="cstat-no" title="statement not covered" > this.apiKey = options.apiKey;</span>
|
|
8275
8067
|
<span class="cstat-no" title="statement not covered" > }</span>
|
|
8276
|
-
<span class="cstat-no" title="statement not covered" > if (options.authToken && !this.authToken) {</span>
|
|
8277
|
-
<span class="cstat-no" title="statement not covered" > this.authToken = options.authToken;</span>
|
|
8278
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
8279
8068
|
<span class="cstat-no" title="statement not covered" > if (options.apiVersion && !this.apiVersion) {</span>
|
|
8280
8069
|
<span class="cstat-no" title="statement not covered" > this.apiVersion = options.apiVersion;</span>
|
|
8281
8070
|
<span class="cstat-no" title="statement not covered" > }</span>
|
|
8282
8071
|
<span class="cstat-no" title="statement not covered" > }</span>
|
|
8283
8072
|
<span class="cstat-no" title="statement not covered" ></span>
|
|
8284
|
-
<span class="cstat-no" title="statement not covered" > // Set noTraverse=true if NOT already passed by user, for query performance</span>
|
|
8285
|
-
<span class="cstat-no" title="statement not covered" > if (!('noTraverse' in options)) {</span>
|
|
8286
|
-
<span class="cstat-no" title="statement not covered" > options.noTraverse = true;</span>
|
|
8287
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
8288
|
-
<span class="cstat-no" title="statement not covered" ></span>
|
|
8289
8073
|
<span class="cstat-no" title="statement not covered" > return instance</span>
|
|
8290
8074
|
<span class="cstat-no" title="statement not covered" > .getContent(modelName, {</span>
|
|
8291
8075
|
<span class="cstat-no" title="statement not covered" > limit: 30,</span>
|
|
@@ -8308,7 +8092,7 @@ export class Builder {
|
|
|
8308
8092
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
8309
8093
|
Code coverage generated by
|
|
8310
8094
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
8311
|
-
at 2024-01-
|
|
8095
|
+
at 2024-01-24T20:06:14.775Z
|
|
8312
8096
|
</div>
|
|
8313
8097
|
<script src="../prettify.js"></script>
|
|
8314
8098
|
<script>
|
|
@@ -832,7 +832,7 @@ export class Animator {
|
|
|
832
832
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
833
833
|
Code coverage generated by
|
|
834
834
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
835
|
-
at 2024-01-
|
|
835
|
+
at 2024-01-24T20:06:14.775Z
|
|
836
836
|
</div>
|
|
837
837
|
<script src="../../prettify.js"></script>
|
|
838
838
|
<script>
|
|
@@ -544,7 +544,7 @@ export default Cookies;
|
|
|
544
544
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
545
545
|
Code coverage generated by
|
|
546
546
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
547
|
-
at 2024-01-
|
|
547
|
+
at 2024-01-24T20:06:14.775Z
|
|
548
548
|
</div>
|
|
549
549
|
<script src="../../prettify.js"></script>
|
|
550
550
|
<script>
|