@shopgate/pwa-tracking 7.32.2-alpha.1 → 7.32.2-alpha.10
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/helpers/index.js +0 -4
- package/package.json +5 -5
- package/selectors/user.js +0 -1
- package/streams/category.js +0 -1
- package/streams/checkout.js +0 -1
- package/streams/page.js +0 -1
- package/subscriptions/setup.js +9 -8
package/helpers/index.js
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import "core-js/modules/es.array.includes.js";
|
|
2
|
-
import "core-js/modules/web.url.js";
|
|
3
|
-
import "core-js/modules/web.url.to-json.js";
|
|
4
|
-
import "core-js/modules/web.url-search-params.js";
|
|
5
1
|
import get from 'lodash/get';
|
|
6
2
|
import find from 'lodash/find';
|
|
7
3
|
import queryString from 'query-string';
|
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.10",
|
|
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.10",
|
|
23
|
+
"@shopgate/pwa-common-commerce": "7.32.2-alpha.10",
|
|
24
|
+
"@shopgate/pwa-core": "7.32.2-alpha.10",
|
|
25
|
+
"@shopgate/tracking-core": "7.32.2-alpha.10",
|
|
26
26
|
"reselect": "^4.1.8",
|
|
27
27
|
"rxjs": "~5.5.12"
|
|
28
28
|
}
|
package/selectors/user.js
CHANGED
package/streams/category.js
CHANGED
package/streams/checkout.js
CHANGED
package/streams/page.js
CHANGED
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();
|