@mjhls/mjh-framework 1.0.939-segment-test-v8 → 1.0.939-segment-test-v9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/View.js +11 -8
- package/dist/esm/View.js +11 -8
- package/package.json +1 -1
package/dist/cjs/View.js
CHANGED
|
@@ -528,8 +528,11 @@ var Recommended = function Recommended(props) {
|
|
|
528
528
|
case 6:
|
|
529
529
|
data = _context.sent;
|
|
530
530
|
|
|
531
|
+
|
|
532
|
+
console.log('persona result:', data);
|
|
533
|
+
|
|
531
534
|
if (!(data && data.traits && data.traits.favorite_article_category)) {
|
|
532
|
-
_context.next =
|
|
535
|
+
_context.next = 27;
|
|
533
536
|
break;
|
|
534
537
|
}
|
|
535
538
|
|
|
@@ -575,16 +578,16 @@ var Recommended = function Recommended(props) {
|
|
|
575
578
|
params = {
|
|
576
579
|
id: article._id
|
|
577
580
|
};
|
|
578
|
-
_context.next =
|
|
581
|
+
_context.next = 18;
|
|
579
582
|
return asyncToGenerator._Promise.all([fetchWithTimeout(1000, function () {
|
|
580
583
|
return client.fetch(articlesQuery, params);
|
|
581
|
-
}), fetchWithTimeout(
|
|
584
|
+
}), fetchWithTimeout(800, function () {
|
|
582
585
|
return client.fetch(videosQuery, params);
|
|
583
|
-
}), fetchWithTimeout(
|
|
586
|
+
}), fetchWithTimeout(800, function () {
|
|
584
587
|
return client.fetch(podcastQuery, params);
|
|
585
588
|
})]);
|
|
586
589
|
|
|
587
|
-
case
|
|
590
|
+
case 18:
|
|
588
591
|
_ref2 = _context.sent;
|
|
589
592
|
_ref3 = slicedToArray._slicedToArray(_ref2, 3);
|
|
590
593
|
_articles = _ref3[0];
|
|
@@ -604,13 +607,13 @@ var Recommended = function Recommended(props) {
|
|
|
604
607
|
}
|
|
605
608
|
setArticles(_articles);
|
|
606
609
|
}
|
|
607
|
-
_context.next =
|
|
610
|
+
_context.next = 28;
|
|
608
611
|
break;
|
|
609
612
|
|
|
610
|
-
case
|
|
613
|
+
case 27:
|
|
611
614
|
setLoaded('failed');
|
|
612
615
|
|
|
613
|
-
case
|
|
616
|
+
case 28:
|
|
614
617
|
case 'end':
|
|
615
618
|
return _context.stop();
|
|
616
619
|
}
|
package/dist/esm/View.js
CHANGED
|
@@ -517,8 +517,11 @@ var Recommended = function Recommended(props) {
|
|
|
517
517
|
case 6:
|
|
518
518
|
data = _context.sent;
|
|
519
519
|
|
|
520
|
+
|
|
521
|
+
console.log('persona result:', data);
|
|
522
|
+
|
|
520
523
|
if (!(data && data.traits && data.traits.favorite_article_category)) {
|
|
521
|
-
_context.next =
|
|
524
|
+
_context.next = 27;
|
|
522
525
|
break;
|
|
523
526
|
}
|
|
524
527
|
|
|
@@ -564,16 +567,16 @@ var Recommended = function Recommended(props) {
|
|
|
564
567
|
params = {
|
|
565
568
|
id: article._id
|
|
566
569
|
};
|
|
567
|
-
_context.next =
|
|
570
|
+
_context.next = 18;
|
|
568
571
|
return _Promise.all([fetchWithTimeout(1000, function () {
|
|
569
572
|
return client.fetch(articlesQuery, params);
|
|
570
|
-
}), fetchWithTimeout(
|
|
573
|
+
}), fetchWithTimeout(800, function () {
|
|
571
574
|
return client.fetch(videosQuery, params);
|
|
572
|
-
}), fetchWithTimeout(
|
|
575
|
+
}), fetchWithTimeout(800, function () {
|
|
573
576
|
return client.fetch(podcastQuery, params);
|
|
574
577
|
})]);
|
|
575
578
|
|
|
576
|
-
case
|
|
579
|
+
case 18:
|
|
577
580
|
_ref2 = _context.sent;
|
|
578
581
|
_ref3 = _slicedToArray(_ref2, 3);
|
|
579
582
|
_articles = _ref3[0];
|
|
@@ -593,13 +596,13 @@ var Recommended = function Recommended(props) {
|
|
|
593
596
|
}
|
|
594
597
|
setArticles(_articles);
|
|
595
598
|
}
|
|
596
|
-
_context.next =
|
|
599
|
+
_context.next = 28;
|
|
597
600
|
break;
|
|
598
601
|
|
|
599
|
-
case
|
|
602
|
+
case 27:
|
|
600
603
|
setLoaded('failed');
|
|
601
604
|
|
|
602
|
-
case
|
|
605
|
+
case 28:
|
|
603
606
|
case 'end':
|
|
604
607
|
return _context.stop();
|
|
605
608
|
}
|