@shopgate/pwa-tracking 7.32.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 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,10 +1,14 @@
1
1
  {
2
2
  "name": "@shopgate/pwa-tracking",
3
- "version": "7.32.1",
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>",
7
- "repository": "shopgate/pwa",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/shopgate/pwa.git",
10
+ "directory": "libraries/tracking"
11
+ },
8
12
  "bugs": "https://github.com/shopgate/pwa/issues",
9
13
  "homepage": "https://github.com/shopgate/pwa/tree/master/libraries/tracking",
10
14
  "keywords": [
@@ -15,10 +19,10 @@
15
19
  "connect"
16
20
  ],
17
21
  "devDependencies": {
18
- "@shopgate/pwa-common": "7.32.1",
19
- "@shopgate/pwa-common-commerce": "7.32.1",
20
- "@shopgate/pwa-core": "7.32.1",
21
- "@shopgate/tracking-core": "7.32.1",
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",
22
26
  "reselect": "^4.1.8",
23
27
  "rxjs": "~5.5.12"
24
28
  }
package/selectors/user.js CHANGED
@@ -1,4 +1,3 @@
1
- import "core-js/modules/es.array.includes.js";
2
1
  import { createSelector } from 'reselect';
3
2
  import { DEFAULT_LOGIN_STRATEGY, isUserLoggedIn, getUserData, makeGetLoginStrategy } from '@shopgate/engage/user';
4
3
 
@@ -1,4 +1,3 @@
1
- import "core-js/modules/es.array.includes.js";
2
1
  import 'rxjs/add/operator/switchMap';
3
2
  import 'rxjs/add/observable/of';
4
3
  import { Observable } from 'rxjs/Observable';
@@ -1,4 +1,3 @@
1
- import "core-js/modules/es.array.includes.js";
2
1
  import { ACTION_REPLACE, ACTION_PUSH } from '@virtuous/conductor';
3
2
  import { navigate$ } from '@shopgate/pwa-common/streams/router';
4
3
  import { isUserLoggedIn } from '@shopgate/pwa-common/selectors/user';
package/streams/page.js CHANGED
@@ -1,4 +1,3 @@
1
- import "core-js/modules/es.array.includes.js";
2
1
  import 'rxjs/add/operator/switchMap';
3
2
  import 'rxjs/add/observable/of';
4
3
  import { Observable } from 'rxjs/Observable';
@@ -1,5 +1,6 @@
1
1
  import get from 'lodash/get';
2
- import { logGroup, getWebStorageEntry, useBrowserConnector, errorManager, SOURCE_TRACKING, CODE_TRACKING, defaultClientInformation } from '@shopgate/pwa-core';
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 (error) {
93
- logGroup('Tracking %c: Could not setup plugins', {
94
- error
95
- }, '#ED0422');
96
- error.code = CODE_TRACKING;
97
- error.source = SOURCE_TRACKING;
98
- error.context = 'trackingPlugins';
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();