@shopgate/pwa-tracking 7.30.0-alpha.10 → 7.30.0-alpha.12
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 -3
- package/package.json +5 -5
- package/subscriptions/favorites.js +0 -3
package/helpers/index.js
CHANGED
|
@@ -338,7 +338,6 @@ export const buildScannerUtmUrl = ({
|
|
|
338
338
|
location
|
|
339
339
|
} = scannerRoute;
|
|
340
340
|
const newPath = new URL(location, 'http://scanner.com');
|
|
341
|
-
/* eslint-disable camelcase */
|
|
342
341
|
const utms = {
|
|
343
342
|
utm_source: source,
|
|
344
343
|
utm_medium: medium,
|
|
@@ -346,8 +345,6 @@ export const buildScannerUtmUrl = ({
|
|
|
346
345
|
utm_term: term,
|
|
347
346
|
utm_content: utmContent || referer
|
|
348
347
|
};
|
|
349
|
-
/* eslint-enable camelcase */
|
|
350
|
-
|
|
351
348
|
Object.keys(utms).forEach(utm => {
|
|
352
349
|
if (!newPath.searchParams.has(utm) && utms[utm]) {
|
|
353
350
|
newPath.searchParams.set(utm, utms[utm]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopgate/pwa-tracking",
|
|
3
|
-
"version": "7.30.0-alpha.
|
|
3
|
+
"version": "7.30.0-alpha.12",
|
|
4
4
|
"description": "Tracking library for the Shopgate Connect PWA.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Shopgate <support@shopgate.com>",
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
"connect"
|
|
16
16
|
],
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@shopgate/pwa-common": "7.30.0-alpha.
|
|
19
|
-
"@shopgate/pwa-common-commerce": "7.30.0-alpha.
|
|
20
|
-
"@shopgate/pwa-core": "7.30.0-alpha.
|
|
21
|
-
"@shopgate/tracking-core": "7.30.0-alpha.
|
|
18
|
+
"@shopgate/pwa-common": "7.30.0-alpha.12",
|
|
19
|
+
"@shopgate/pwa-common-commerce": "7.30.0-alpha.12",
|
|
20
|
+
"@shopgate/pwa-core": "7.30.0-alpha.12",
|
|
21
|
+
"@shopgate/tracking-core": "7.30.0-alpha.12",
|
|
22
22
|
"reselect": "^4.1.8",
|
|
23
23
|
"rxjs": "~5.5.12"
|
|
24
24
|
}
|
|
@@ -25,11 +25,8 @@ export default function favorites(subscribe) {
|
|
|
25
25
|
});
|
|
26
26
|
return {
|
|
27
27
|
...product,
|
|
28
|
-
// eslint-disable-next-line camelcase
|
|
29
28
|
unit_amount_net: product.amount.net * 100,
|
|
30
|
-
// eslint-disable-next-line camelcase
|
|
31
29
|
unit_amount_with_tax: product.amount.gross * 100,
|
|
32
|
-
// eslint-disable-next-line camelcase
|
|
33
30
|
currency_id: product.amount.currency
|
|
34
31
|
};
|
|
35
32
|
});
|