From dc90df17b67a4fe30e35b01bc37ed783ef031b11 Mon Sep 17 00:00:00 2001
From: Benoit Alessandroni <benoit@happy-dev.fr>
Date: Sat, 25 Apr 2020 23:30:59 +0200
Subject: [PATCH] Fixing the librairies version for now and adding Sentry

---
 src/includes/head.pug                | 6 ++++--
 src/scripts/coopstarter.js           | 2 ++
 src/scripts/dispatch-space-n-user.js | 2 +-
 3 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/includes/head.pug b/src/includes/head.pug
index 2d4fc5c0..11241e4f 100644
--- a/src/includes/head.pug
+++ b/src/includes/head.pug
@@ -3,16 +3,18 @@ head
     meta(charset="utf-8")
     script(src="https://unpkg.com/@webcomponents/webcomponentsjs@1.2.7/webcomponents-loader.js")
     //- script(type="module" src="/scripts/sib-core/dist/index.js")
-    script(type="module" src="https://unpkg.com/@startinblox/core@0.9")
+    script(type="module" src="https://unpkg.com/@startinblox/core@0.9.27")
     script(type="module" src="https://unpkg.com/@startinblox/router@0.7")
     //- script(type="module" src="/scripts/sib-auth/index.js")
-    script(type="module" src="https://unpkg.com/@startinblox/oidc@0.8")
+    script(type="module" src="https://unpkg.com/@startinblox/oidc@0.8.4")
     script(type="module" src="https://unpkg.com/@startinblox/component-conversation@0.4")
     script(src="https://kit.fontawesome.com/48014d2af3.js")
     script(src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous")
     script(src="/scripts/coopstarter.js")
     script(async src="https://platform.twitter.com/widgets.js" charset="utf-8")
+    script(src="https://browser.sentry-cdn.com/5.15.5/bundle.min.js" integrity="sha384-wF7Jc4ZlWVxe/L8Ji3hOIBeTgo/HwFuaeEfjGmS3EXAG7Y+7Kjjr91gJpJtr+PAT" crossorigin="anonymous")
     link(rel="stylesheet" href="/styles/index.css")
+
     script(data-default-context type="application/ld+json" ).
         
             {
diff --git a/src/scripts/coopstarter.js b/src/scripts/coopstarter.js
index 6fa6facf..364cef05 100644
--- a/src/scripts/coopstarter.js
+++ b/src/scripts/coopstarter.js
@@ -605,6 +605,8 @@ XXXXXXXXXXXXXXXXXXXXXXXXXXXX ON LOAD XXXXXXXXXXXXXXXXXXXXXXX
 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*/
 
 jQuery(document).ready(function($) {
+  Sentry.init({ dsn: 'https://a95ca890079d4602a2096a64ca56c9d3@o383270.ingest.sentry.io/5213278' });
+
   window.addEventListener('requestNavigation', function(e) {
     setTimeout(function() {
       let loader = document.getElementById('main-loader');
diff --git a/src/scripts/dispatch-space-n-user.js b/src/scripts/dispatch-space-n-user.js
index 4af132f5..4ccb9829 100644
--- a/src/scripts/dispatch-space-n-user.js
+++ b/src/scripts/dispatch-space-n-user.js
@@ -1,4 +1,4 @@
-import { store } from 'https://unpkg.com/@startinblox/core@0.9';
+import { store } from 'https://unpkg.com/@startinblox/core@0.9.27';
 const sibAuth = document.querySelector('sib-auth');
 
 const context = {
-- 
GitLab