@shopgate/pwa-tracking 7.32.2-alpha.5 → 7.32.2-alpha.8
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/package.json +5 -5
- package/subscriptions/setup.js +9 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopgate/pwa-tracking",
|
|
3
|
-
"version": "7.32.2-alpha.
|
|
3
|
+
"version": "7.32.2-alpha.8",
|
|
4
4
|
"description": "Tracking library for the Shopgate Connect PWA.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Shopgate <support@shopgate.com>",
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"connect"
|
|
20
20
|
],
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@shopgate/pwa-common": "7.32.2-alpha.
|
|
23
|
-
"@shopgate/pwa-common-commerce": "7.32.2-alpha.
|
|
24
|
-
"@shopgate/pwa-core": "7.32.2-alpha.
|
|
25
|
-
"@shopgate/tracking-core": "7.32.2-alpha.
|
|
22
|
+
"@shopgate/pwa-common": "7.32.2-alpha.8",
|
|
23
|
+
"@shopgate/pwa-common-commerce": "7.32.2-alpha.8",
|
|
24
|
+
"@shopgate/pwa-core": "7.32.2-alpha.8",
|
|
25
|
+
"@shopgate/tracking-core": "7.32.2-alpha.8",
|
|
26
26
|
"reselect": "^4.1.8",
|
|
27
27
|
"rxjs": "~5.5.12"
|
|
28
28
|
}
|
package/subscriptions/setup.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import get from 'lodash/get';
|
|
2
|
-
import {
|
|
2
|
+
import { logger, getWebStorageEntry, useBrowserConnector, errorManager, SOURCE_TRACKING, CODE_TRACKING, defaultClientInformation } from '@shopgate/pwa-core';
|
|
3
|
+
import { toError } from '@shopgate/pwa-core/helpers/error';
|
|
3
4
|
import { registerEvents } from '@shopgate/engage/core/commands';
|
|
4
5
|
import { appWillStart$ } from '@shopgate/engage/core/streams';
|
|
5
6
|
import { event } from '@shopgate/engage/core/classes';
|
|
@@ -89,13 +90,13 @@ export default function setup(subscribe) {
|
|
|
89
90
|
pluginInit(clientInformation);
|
|
90
91
|
}
|
|
91
92
|
});
|
|
92
|
-
} catch (
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
error
|
|
93
|
+
} catch (thrown) {
|
|
94
|
+
const error = toError(thrown, {
|
|
95
|
+
code: CODE_TRACKING,
|
|
96
|
+
source: SOURCE_TRACKING,
|
|
97
|
+
context: 'trackingPlugins'
|
|
98
|
+
});
|
|
99
|
+
logger.error('Tracking: Could not setup plugins', error);
|
|
99
100
|
errorManager.queue(error);
|
|
100
101
|
}
|
|
101
102
|
core.registerFinished();
|