@posiwise/common-services 0.2.20 → 0.2.23
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.
|
@@ -29,7 +29,8 @@ import { NgbDateParserFormatter } from '@ng-bootstrap/ng-bootstrap';
|
|
|
29
29
|
import { webSocket } from 'rxjs/webSocket';
|
|
30
30
|
import { StatusCodes } from 'http-status-codes';
|
|
31
31
|
import { fromError } from 'stacktrace-js';
|
|
32
|
-
import { createErrorHandler, init
|
|
32
|
+
import { createErrorHandler, init } from '@sentry/angular';
|
|
33
|
+
import { withScope, captureException } from '@sentry/core';
|
|
33
34
|
|
|
34
35
|
class ScriptLoaderService {
|
|
35
36
|
constructor(document) {
|
|
@@ -1239,7 +1240,9 @@ class AuthService {
|
|
|
1239
1240
|
window.$crisp.push(['set', 'user:nickname', firstName]);
|
|
1240
1241
|
}
|
|
1241
1242
|
if (userId) {
|
|
1242
|
-
|
|
1243
|
+
// Crisp expects args array, with first item being the list of pairs:
|
|
1244
|
+
// $crisp.push(["set","session:data",[[["key","value"]]]])
|
|
1245
|
+
window.$crisp.push(['set', 'session:data', [[['user_id', String(userId)]]]]);
|
|
1243
1246
|
}
|
|
1244
1247
|
}
|
|
1245
1248
|
this.notifyHubSpot(email, firstName, userId);
|