ng-miam 8.8.0 → 8.8.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.
@@ -561,7 +561,7 @@
561
561
  env: 'prod',
562
562
  miamAPI: 'https://api.miam.tech',
563
563
  miamWeb: 'https://miam.tech',
564
- mealzComponents: 'https://unpkg.com/mealz-components@0.5/dist',
564
+ mealzComponents: 'https://unpkg.com/mealz-components@0.6/dist',
565
565
  lang: 'fr',
566
566
  tagsWhitelist: [
567
567
  'diet_sans-gluten',
@@ -5937,11 +5937,12 @@
5937
5937
  };
5938
5938
  ContextService.prototype.generateAuthlessIdIfNecessary = function () {
5939
5939
  var _this = this;
5940
- return this.userService.generatingAuthlessId$.pipe(operators.take(1), operators.switchMap(function (isGenerating) { return isGenerating
5941
- || _this.loggedOnSession
5942
- || !!localStorage.getItem('_miam/authlessId')
5943
- ? rxjs.of(null)
5944
- : _this.userService.generateAnonymousUserId(); }));
5940
+ return this.userService.generatingAuthlessId$.pipe(operators.debounceTime(800), operators.take(1), operators.switchMap(function (isGenerating) {
5941
+ if (isGenerating || _this.loggedOnSession || !!localStorage.getItem('_miam/authlessId')) {
5942
+ return rxjs.of(null);
5943
+ }
5944
+ return _this.userService.generateAnonymousUserId();
5945
+ }));
5945
5946
  };
5946
5947
  return ContextService;
5947
5948
  }());
@@ -8750,7 +8751,7 @@
8750
8751
  env: 'prod',
8751
8752
  miamAPI: 'https://api.miam.tech',
8752
8753
  miamWeb: 'https://miam.tech',
8753
- mealzComponents: 'https://unpkg.com/mealz-components@0.5/dist',
8754
+ mealzComponents: 'https://unpkg.com/mealz-components@0.6/dist',
8754
8755
  lang: 'fr',
8755
8756
  tagsWhitelist: [
8756
8757
  'diet_sans-gluten',
@@ -8813,7 +8814,7 @@
8813
8814
  MiamInterceptor.prototype.setMiamHeaders = function (request) {
8814
8815
  var headersToAdd = {
8815
8816
  'miam-origin': this.context.origin.value,
8816
- 'miam-front-version': '8.8.0',
8817
+ 'miam-front-version': '8.8.1',
8817
8818
  'miam-front-type': 'web',
8818
8819
  'miam-api-version': '4.7.0'
8819
8820
  };