@codecademy/tracking 0.23.0 → 0.23.4

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.
Files changed (46) hide show
  1. package/.eslintrc.json +30 -0
  2. package/CHANGELOG.md +77 -206
  3. package/babel.config.js +9 -3
  4. package/dist/events/__tests__/track.test.d.js +1 -0
  5. package/dist/events/__tests__/track.test.js +13 -14
  6. package/dist/events/__tests__/user.test.d.js +1 -0
  7. package/dist/events/__tests__/user.test.js +3 -7
  8. package/dist/events/track.js +27 -37
  9. package/dist/events/types.js +2 -0
  10. package/dist/events/user.js +5 -7
  11. package/dist/integrations/__tests__/conditionallyLoadAnalytics.test.js +97 -0
  12. package/dist/integrations/__tests__/fetchDestinationsForWriteKey.test.js +112 -0
  13. package/dist/integrations/__tests__/mapDestinations.test.js +120 -0
  14. package/dist/integrations/device.js +2 -0
  15. package/dist/integrations/fetchDestinationsForWriteKey.js +27 -24
  16. package/dist/integrations/index.js +4 -6
  17. package/dist/integrations/mapDestinations.js +19 -20
  18. package/dist/integrations/onetrust.js +7 -9
  19. package/dist/integrations/runSegmentSnippet.js +0 -1
  20. package/dist/integrations/types.js +2 -0
  21. package/dist/{events → libs/tracking/src/events}/index.d.ts +0 -0
  22. package/dist/{events → libs/tracking/src/events}/track.d.ts +0 -0
  23. package/dist/{events → libs/tracking/src/events}/types.d.ts +0 -0
  24. package/dist/{events → libs/tracking/src/events}/user.d.ts +0 -0
  25. package/dist/{index.d.ts → libs/tracking/src/index.d.ts} +0 -0
  26. package/dist/{integrations → libs/tracking/src/integrations}/conditionallyLoadAnalytics.d.ts +0 -0
  27. package/dist/{integrations → libs/tracking/src/integrations}/consent.d.ts +0 -0
  28. package/dist/{integrations → libs/tracking/src/integrations}/device.d.ts +0 -0
  29. package/dist/{integrations → libs/tracking/src/integrations}/fetchDestinationsForWriteKey.d.ts +0 -0
  30. package/dist/{integrations → libs/tracking/src/integrations}/index.d.ts +0 -0
  31. package/dist/{integrations → libs/tracking/src/integrations}/mapDestinations.d.ts +0 -0
  32. package/dist/{integrations → libs/tracking/src/integrations}/onetrust.d.ts +0 -0
  33. package/dist/{integrations → libs/tracking/src/integrations}/runSegmentSnippet.d.ts +0 -0
  34. package/dist/{integrations → libs/tracking/src/integrations}/types.d.ts +0 -0
  35. package/package.json +5 -27
  36. package/project.json +45 -0
  37. package/tsconfig.json +13 -4
  38. package/tsconfig.lib.json +10 -0
  39. package/tsconfig.spec.json +9 -0
  40. package/.turbo/turbo-build.log +0 -11
  41. package/dist/events/__tests__/track.test.d.ts +0 -1
  42. package/dist/events/__tests__/user.test.d.ts +0 -1
  43. package/dist/integrations/__tests__/conditionallyLoadAnalytics-test.d.ts +0 -1
  44. package/dist/integrations/__tests__/fetchDestinationsForWriteKey-test.d.ts +0 -1
  45. package/dist/integrations/__tests__/mapDestinations-test.d.ts +0 -1
  46. package/jest.config.js +0 -1
package/.eslintrc.json ADDED
@@ -0,0 +1,30 @@
1
+ {
2
+ "extends": ["../../.eslintrc.json"],
3
+ "ignorePatterns": ["!**/*"],
4
+ "overrides": [
5
+ {
6
+ "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
7
+ "rules": {}
8
+ },
9
+ {
10
+ "files": ["*.ts", "*.tsx"],
11
+ "rules": {}
12
+ },
13
+ {
14
+ "files": ["*.js", "*.jsx"],
15
+ "rules": {}
16
+ }
17
+ ],
18
+ "rules": {
19
+ // // These rules could be useful, but we haven"t gotten around to enabling them here
20
+ // // See WEB-2 for general tracking.
21
+ "@typescript-eslint/no-explicit-any": "off",
22
+ "@typescript-eslint/no-unsafe-call": "off",
23
+ "@typescript-eslint/no-non-null-assertion": "off",
24
+ "@typescript-eslint/no-unsafe-assignment": "off",
25
+ "@typescript-eslint/no-unsafe-member-access": "off",
26
+ "@typescript-eslint/no-unsafe-return": "off",
27
+ "@typescript-eslint/restrict-plus-operands": "off",
28
+ "@typescript-eslint/restrict-template-expressions": "off"
29
+ }
30
+ }
package/CHANGELOG.md CHANGED
@@ -3,447 +3,318 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [0.23.0](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.22.0...@codecademy/tracking@0.23.0) (2022-05-24)
6
+ ## 0.23.4 (2022-09-09)
7
7
 
8
8
 
9
- ### Features
9
+ ### Reverts
10
10
 
11
- * **tracking:** :sparkles: Including field to track business seat data ([#46](https://github.com/Codecademy/client-modules/issues/46)) ([331893d](https://github.com/Codecademy/client-modules/commit/331893dd50b5bdbe861330b16744ae9f58d719be))
11
+ * Revert "remove codebytes and tracking" ([c3fa53f](https://github.com/Codecademy/client-modules/commit/c3fa53f3d8a316274e19be7f779ee02cbe9013e4))
12
+ * Revert "remove extra eslint file" ([0696878](https://github.com/Codecademy/client-modules/commit/0696878705a56d28d49694b3114dc824e6fe1a9f))
12
13
 
13
14
 
14
15
 
15
- ## [0.22.0](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.21.1...@codecademy/tracking@0.22.0) (2022-05-16)
16
+ ## [0.23.3](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.23.0...@codecademy/tracking@0.23.3) (2022-09-02)
16
17
 
18
+ ### Reverts
17
19
 
18
- ### Features
20
+ - Revert "remove codebytes and tracking" ([c3fa53f](https://github.com/Codecademy/client-modules/commit/c3fa53f3d8a316274e19be7f779ee02cbe9013e4))
21
+ - Revert "remove extra eslint file" ([0696878](https://github.com/Codecademy/client-modules/commit/0696878705a56d28d49694b3114dc824e6fe1a9f))
19
22
 
20
- * **tracking:** Adding misc field for click and visit events ([57ae584](https://github.com/Codecademy/client-modules/commit/57ae584d3519db2d40b9a4c021fbee309df59d75))
23
+ ## [0.23.0](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.22.0...@codecademy/tracking@0.23.0) (2022-05-24)
21
24
 
25
+ ### Features
22
26
 
27
+ - **tracking:** :sparkles: Including field to track business seat data ([#46](https://github.com/Codecademy/client-modules/issues/46)) ([331893d](https://github.com/Codecademy/client-modules/commit/331893dd50b5bdbe861330b16744ae9f58d719be))
23
28
 
24
- ### [0.21.1](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.21.0...@codecademy/tracking@0.21.1) (2022-05-13)
29
+ ## [0.22.0](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.21.1...@codecademy/tracking@0.22.0) (2022-05-16)
25
30
 
31
+ ### Features
26
32
 
27
- ### Bug Fixes
33
+ - **tracking:** Adding misc field for click and visit events ([57ae584](https://github.com/Codecademy/client-modules/commit/57ae584d3519db2d40b9a4c021fbee309df59d75))
28
34
 
29
- * **tracking:** pick content_ids ([bd8b0a6](https://github.com/Codecademy/client-modules/commit/bd8b0a63eb6d8cfda2c0471fddcb7954898fbc75))
35
+ ### [0.21.1](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.21.0...@codecademy/tracking@0.21.1) (2022-05-13)
30
36
 
37
+ ### Bug Fixes
31
38
 
39
+ - **tracking:** pick content_ids ([bd8b0a6](https://github.com/Codecademy/client-modules/commit/bd8b0a63eb6d8cfda2c0471fddcb7954898fbc75))
32
40
 
33
41
  ## [0.21.0](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.20.0...@codecademy/tracking@0.21.0) (2022-05-13)
34
42
 
35
-
36
43
  ### Features
37
44
 
38
- * **tracking:** add UserSharedData to user impressions ([6378ec2](https://github.com/Codecademy/client-modules/commit/6378ec2cb4f076210fa842dcfb07b43717afd1f9))
39
-
40
-
45
+ - **tracking:** add UserSharedData to user impressions ([6378ec2](https://github.com/Codecademy/client-modules/commit/6378ec2cb4f076210fa842dcfb07b43717afd1f9))
41
46
 
42
47
  ## [0.20.0](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.19.0...@codecademy/tracking@0.20.0) (2022-04-11)
43
48
 
44
-
45
49
  ### Features
46
50
 
47
- * **tracking:** add experiment category to tracking types ([4fa1528](https://github.com/Codecademy/client-modules/commit/4fa1528e719df904b88953edb8a625aa06610206))
48
-
49
-
51
+ - **tracking:** add experiment category to tracking types ([4fa1528](https://github.com/Codecademy/client-modules/commit/4fa1528e719df904b88953edb8a625aa06610206))
50
52
 
51
53
  ## [0.19.0](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.18.1...@codecademy/tracking@0.19.0) (2022-03-10)
52
54
 
53
-
54
55
  ### Features
55
56
 
56
- * **Tracking:** add is_ugc attribute to tracking types ([2fe9c08](https://github.com/Codecademy/client-modules/commit/2fe9c083d0205e6af8dd928e9c291ebbeeeb6cbb))
57
-
58
-
57
+ - **Tracking:** add is_ugc attribute to tracking types ([2fe9c08](https://github.com/Codecademy/client-modules/commit/2fe9c083d0205e6af8dd928e9c291ebbeeeb6cbb))
59
58
 
60
59
  ### [0.18.1](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.18.0...@codecademy/tracking@0.18.1) (2022-02-02)
61
60
 
62
61
  **Note:** Version bump only for package @codecademy/tracking
63
62
 
64
-
65
-
66
-
67
-
68
63
  ## [0.18.0](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.17.1...@codecademy/tracking@0.18.0) (2021-12-20)
69
64
 
70
-
71
65
  ### Features
72
66
 
73
- * **Tracking:** add search id param to userclick data ([7150c44](https://github.com/Codecademy/client-modules/commit/7150c44d665624502cfd95ac0020130b5ab8c26a))
74
-
75
-
67
+ - **Tracking:** add search id param to userclick data ([7150c44](https://github.com/Codecademy/client-modules/commit/7150c44d665624502cfd95ac0020130b5ab8c26a))
76
68
 
77
69
  ### [0.17.1](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.17.0...@codecademy/tracking@0.17.1) (2021-12-17)
78
70
 
79
-
80
71
  ### Bug Fixes
81
72
 
82
- * **tracking:** remove navigator.sendBeacon .bind and add try/catch ([b924d7e](https://github.com/Codecademy/client-modules/commit/b924d7e1ffd22d75adcaf15c9726d10f19b2924e))
83
-
84
-
73
+ - **tracking:** remove navigator.sendBeacon .bind and add try/catch ([b924d7e](https://github.com/Codecademy/client-modules/commit/b924d7e1ffd22d75adcaf15c9726d10f19b2924e))
85
74
 
86
75
  ## [0.17.0](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.16.1...@codecademy/tracking@0.17.0) (2021-11-30)
87
76
 
88
-
89
77
  ### ⚠ BREAKING CHANGES
90
78
 
91
- * **eslint-config:** bump ESLint to 8 and typescript-eslint to 5 (#4)
79
+ - **eslint-config:** bump ESLint to 8 and typescript-eslint to 5 (#4)
92
80
 
93
81
  ### Features
94
82
 
95
- * **eslint-config:** bump ESLint to 8 and typescript-eslint to 5 ([#4](https://github.com/Codecademy/client-modules/issues/4)) ([64423d6](https://github.com/Codecademy/client-modules/commit/64423d69ad0f90f2e717373db6b1988b715681cc))
96
-
97
-
83
+ - **eslint-config:** bump ESLint to 8 and typescript-eslint to 5 ([#4](https://github.com/Codecademy/client-modules/issues/4)) ([64423d6](https://github.com/Codecademy/client-modules/commit/64423d69ad0f90f2e717373db6b1988b715681cc))
98
84
 
99
85
  ### [0.16.1](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.16.0...@codecademy/tracking@0.16.1) (2021-11-12)
100
86
 
101
-
102
87
  ### Bug Fixes
103
88
 
104
- * **tracking:** super-bind the sendBeacon to navigator ([b32a8ec](https://github.com/Codecademy/client-modules/commit/b32a8ece14b2c2d62abf98f762f1be17690406f8))
105
-
106
-
89
+ - **tracking:** super-bind the sendBeacon to navigator ([b32a8ec](https://github.com/Codecademy/client-modules/commit/b32a8ece14b2c2d62abf98f762f1be17690406f8))
107
90
 
108
91
  ## 0.16.0 (2021-11-10)
109
92
 
110
-
111
93
  ### ⚠ BREAKING CHANGES
112
94
 
113
- * prepended OneTrust to tracking integrations loads
114
- * clean up tracker and remove auth token
95
+ - prepended OneTrust to tracking integrations loads
96
+ - clean up tracker and remove auth token
115
97
 
116
98
  ### Features
117
99
 
118
- * **tracking:** Add source tracking for PWA ([32321cc](https://github.com/Codecademy/client-modules/commit/32321cc489dfd2ada1d967ad6630e849ddebd6e6))
119
- * **tracking:** ignore known client failures in fetching destinations ([#2](https://github.com/Codecademy/client-modules/issues/2)) ([432549d](https://github.com/Codecademy/client-modules/commit/432549df9b556672eb9b3a321a90d37dd1009b09))
120
- * add user impression to tracking ([3ec4f61](https://github.com/Codecademy/client-modules/commit/3ec4f6113350859b9d792467ca29b01e0855b4a4))
121
- * bump ESLint configs to latest ([3a403c0](https://github.com/Codecademy/client-modules/commit/3a403c01358f8b4a0d10d99f8d57e1979ebce189))
122
- * **event type:** adding business reporting types ([d4a0243](https://github.com/Codecademy/client-modules/commit/d4a0243b6380666850ef0f4bcfcd3c80a065d011)), closes [/github.com/codecademy-engineering/business-reporting/blob/develop/src/util/eventTracking/index.tsx#L104-L110](https://github.com/Codecademy//github.com/codecademy-engineering/business-reporting/blob/develop/src/util/eventTracking/index.tsx/issues/L104-L110)
123
- * **tracking:** Add a fullstory boolean to TrackingOptions type ([4433669](https://github.com/Codecademy/client-modules/commit/443366955e8beb6aca3337841bf70c583df89f5f))
124
- * **tracking:** Add a new page_career_path_visited event ([#1283](https://github.com/Codecademy/client-modules/issues/1283)) ([1228399](https://github.com/Codecademy/client-modules/commit/12283990e0bfa0d8d03fb78c83c84cab318e68b1))
125
- * **tracking:** Added repo-tracking to user events ([d8a72f1](https://github.com/Codecademy/client-modules/commit/d8a72f19afbb02ba6d0aeef7a6b4b2b55820f111))
126
- * **tracking:** Record the page referrer for every event. ([da11524](https://github.com/Codecademy/client-modules/commit/da11524588571f2ce44bd9af4486b9b64b66408c))
127
- * **tracking:** Update business event name ([8babbf9](https://github.com/Codecademy/client-modules/commit/8babbf98dad5deb25782aa5b72229c2fea1a6c88))
128
- * add container_slugs to UserClickData tracking type ([0a70fec](https://github.com/Codecademy/client-modules/commit/0a70fec80c88833bfad73728ae4a52cd54dc659e))
129
- * added useTrackingIntegrations to tracking package ([b93ca89](https://github.com/Codecademy/client-modules/commit/b93ca897634c62a8d6defb6f6b426395d2daf9f0))
130
- * clean up tracker and remove auth token ([7d98f82](https://github.com/Codecademy/client-modules/commit/7d98f82f64e48984e0913de83aea0635e93b21d9))
131
- * Creating the @codecademy/tracking pachage. ([eb2cdca](https://github.com/Codecademy/client-modules/commit/eb2cdca0f1ecf2f77035ffac39e4c7cbe956bed2))
132
- * onboarded eslint-plugin-simple-import-sort into ESLint plugin ([5eac76b](https://github.com/Codecademy/client-modules/commit/5eac76b95f547f0457360c8f7428af17152d1d67))
133
- * prepended OneTrust to tracking integrations loads ([9c2e18e](https://github.com/Codecademy/client-modules/commit/9c2e18e35f3f3f538dc3727f4efdde3521708b6c))
134
-
100
+ - **tracking:** Add source tracking for PWA ([32321cc](https://github.com/Codecademy/client-modules/commit/32321cc489dfd2ada1d967ad6630e849ddebd6e6))
101
+ - **tracking:** ignore known client failures in fetching destinations ([#2](https://github.com/Codecademy/client-modules/issues/2)) ([432549d](https://github.com/Codecademy/client-modules/commit/432549df9b556672eb9b3a321a90d37dd1009b09))
102
+ - add user impression to tracking ([3ec4f61](https://github.com/Codecademy/client-modules/commit/3ec4f6113350859b9d792467ca29b01e0855b4a4))
103
+ - bump ESLint configs to latest ([3a403c0](https://github.com/Codecademy/client-modules/commit/3a403c01358f8b4a0d10d99f8d57e1979ebce189))
104
+ - **event type:** adding business reporting types ([d4a0243](https://github.com/Codecademy/client-modules/commit/d4a0243b6380666850ef0f4bcfcd3c80a065d011)), closes [/github.com/codecademy-engineering/business-reporting/blob/develop/src/util/eventTracking/index.tsx#L104-L110](https://github.com/Codecademy//github.com/codecademy-engineering/business-reporting/blob/develop/src/util/eventTracking/index.tsx/issues/L104-L110)
105
+ - **tracking:** Add a fullstory boolean to TrackingOptions type ([4433669](https://github.com/Codecademy/client-modules/commit/443366955e8beb6aca3337841bf70c583df89f5f))
106
+ - **tracking:** Add a new page_career_path_visited event ([#1283](https://github.com/Codecademy/client-modules/issues/1283)) ([1228399](https://github.com/Codecademy/client-modules/commit/12283990e0bfa0d8d03fb78c83c84cab318e68b1))
107
+ - **tracking:** Added repo-tracking to user events ([d8a72f1](https://github.com/Codecademy/client-modules/commit/d8a72f19afbb02ba6d0aeef7a6b4b2b55820f111))
108
+ - **tracking:** Record the page referrer for every event. ([da11524](https://github.com/Codecademy/client-modules/commit/da11524588571f2ce44bd9af4486b9b64b66408c))
109
+ - **tracking:** Update business event name ([8babbf9](https://github.com/Codecademy/client-modules/commit/8babbf98dad5deb25782aa5b72229c2fea1a6c88))
110
+ - add container_slugs to UserClickData tracking type ([0a70fec](https://github.com/Codecademy/client-modules/commit/0a70fec80c88833bfad73728ae4a52cd54dc659e))
111
+ - added useTrackingIntegrations to tracking package ([b93ca89](https://github.com/Codecademy/client-modules/commit/b93ca897634c62a8d6defb6f6b426395d2daf9f0))
112
+ - clean up tracker and remove auth token ([7d98f82](https://github.com/Codecademy/client-modules/commit/7d98f82f64e48984e0913de83aea0635e93b21d9))
113
+ - Creating the @codecademy/tracking pachage. ([eb2cdca](https://github.com/Codecademy/client-modules/commit/eb2cdca0f1ecf2f77035ffac39e4c7cbe956bed2))
114
+ - onboarded eslint-plugin-simple-import-sort into ESLint plugin ([5eac76b](https://github.com/Codecademy/client-modules/commit/5eac76b95f547f0457360c8f7428af17152d1d67))
115
+ - prepended OneTrust to tracking integrations loads ([9c2e18e](https://github.com/Codecademy/client-modules/commit/9c2e18e35f3f3f538dc3727f4efdde3521708b6c))
135
116
 
136
117
  ### Bug Fixes
137
118
 
138
- * Add a runtime dependency ([436c3fb](https://github.com/Codecademy/client-modules/commit/436c3fba8812d6f74181de57dca9e8750e371760))
139
- * Add query params to tracking calls ([#1189](https://github.com/Codecademy/client-modules/issues/1189)) ([6611839](https://github.com/Codecademy/client-modules/commit/661183985d81ca4f75cdfb39a4514f4d7f287d8d))
140
- * allow no user for tracking integrations ([#1726](https://github.com/Codecademy/client-modules/issues/1726)) ([fa31842](https://github.com/Codecademy/client-modules/commit/fa318421ea2396497bf80fe69ba56063330dd0ed))
141
- * bump tracking package babel-preset-codecademy to latest ([5c66f67](https://github.com/Codecademy/client-modules/commit/5c66f67c2833993a0dbd6b2e9441b3e590225437))
142
- * business reporting event types ([2d9fb8e](https://github.com/Codecademy/client-modules/commit/2d9fb8e62d078aed0721df4afae775de2832733f))
143
- * support navigator.sendBeacon not existing ([79b94cc](https://github.com/Codecademy/client-modules/commit/79b94cc0c140da083a770527a7cf4622c6578a97))
144
- * switch tracking 'verbose' type back to boolean ([913c870](https://github.com/Codecademy/client-modules/commit/913c8703fb6a06363b324940d7ee406f839e4b53))
145
- * use old style existence check for navigator.sendBeacon ([f0bf309](https://github.com/Codecademy/client-modules/commit/f0bf30947aa6edb767cab500480a0a71ca147d39))
146
-
119
+ - Add a runtime dependency ([436c3fb](https://github.com/Codecademy/client-modules/commit/436c3fba8812d6f74181de57dca9e8750e371760))
120
+ - Add query params to tracking calls ([#1189](https://github.com/Codecademy/client-modules/issues/1189)) ([6611839](https://github.com/Codecademy/client-modules/commit/661183985d81ca4f75cdfb39a4514f4d7f287d8d))
121
+ - allow no user for tracking integrations ([#1726](https://github.com/Codecademy/client-modules/issues/1726)) ([fa31842](https://github.com/Codecademy/client-modules/commit/fa318421ea2396497bf80fe69ba56063330dd0ed))
122
+ - bump tracking package babel-preset-codecademy to latest ([5c66f67](https://github.com/Codecademy/client-modules/commit/5c66f67c2833993a0dbd6b2e9441b3e590225437))
123
+ - business reporting event types ([2d9fb8e](https://github.com/Codecademy/client-modules/commit/2d9fb8e62d078aed0721df4afae775de2832733f))
124
+ - support navigator.sendBeacon not existing ([79b94cc](https://github.com/Codecademy/client-modules/commit/79b94cc0c140da083a770527a7cf4622c6578a97))
125
+ - switch tracking 'verbose' type back to boolean ([913c870](https://github.com/Codecademy/client-modules/commit/913c8703fb6a06363b324940d7ee406f839e4b53))
126
+ - use old style existence check for navigator.sendBeacon ([f0bf309](https://github.com/Codecademy/client-modules/commit/f0bf30947aa6edb767cab500480a0a71ca147d39))
147
127
 
148
128
  ### Reverts
149
129
 
150
- * Revert "feat(tracking): Add a fullstory boolean to TrackingOptions type" (#1381) ([376df52](https://github.com/Codecademy/client-modules/commit/376df52daec85208bbaf28760c5fd6bfa5e52810)), closes [#1381](https://github.com/Codecademy/client-modules/issues/1381)
151
-
152
-
130
+ - Revert "feat(tracking): Add a fullstory boolean to TrackingOptions type" (#1381) ([376df52](https://github.com/Codecademy/client-modules/commit/376df52daec85208bbaf28760c5fd6bfa5e52810)), closes [#1381](https://github.com/Codecademy/client-modules/issues/1381)
153
131
 
154
132
  ## [0.15.0](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.14.2...@codecademy/tracking@0.15.0) (2021-10-20)
155
133
 
156
-
157
134
  ### Features
158
135
 
159
- * **tracking:** Add source tracking for PWA ([84a555f](https://github.com/Codecademy/client-modules/commit/84a555fcc8ce5f2b15c20fd7421757e18749514f))
160
-
161
-
136
+ - **tracking:** Add source tracking for PWA ([84a555f](https://github.com/Codecademy/client-modules/commit/84a555fcc8ce5f2b15c20fd7421757e18749514f))
162
137
 
163
138
  ### [0.14.2](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.14.1...@codecademy/tracking@0.14.2) (2021-09-13)
164
139
 
165
140
  **Note:** Version bump only for package @codecademy/tracking
166
141
 
167
-
168
-
169
-
170
-
171
142
  ### [0.14.1](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.14.0...@codecademy/tracking@0.14.1) (2021-09-10)
172
143
 
173
144
  **Note:** Version bump only for package @codecademy/tracking
174
145
 
175
-
176
-
177
-
178
-
179
146
  ## [0.14.0](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.13.1...@codecademy/tracking@0.14.0) (2021-09-10)
180
147
 
181
-
182
148
  ### Features
183
149
 
184
- * bump ESLint configs to latest ([e0a201a](https://github.com/Codecademy/client-modules/commit/e0a201abcc5f49718538d3d91af21cb37db4470e))
185
-
186
-
150
+ - bump ESLint configs to latest ([e0a201a](https://github.com/Codecademy/client-modules/commit/e0a201abcc5f49718538d3d91af21cb37db4470e))
187
151
 
188
152
  ### [0.13.1](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.13.0...@codecademy/tracking@0.13.1) (2021-08-13)
189
153
 
190
154
  **Note:** Version bump only for package @codecademy/tracking
191
155
 
192
-
193
-
194
-
195
-
196
156
  ## [0.13.0](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.12.1...@codecademy/tracking@0.13.0) (2021-07-20)
197
157
 
198
-
199
158
  ### Features
200
159
 
201
- * **tracking:** Update business event name ([5bfde22](https://github.com/Codecademy/client-modules/commit/5bfde22e22fa76ab000369cf6598b9e0cfec5d63))
202
-
203
-
160
+ - **tracking:** Update business event name ([5bfde22](https://github.com/Codecademy/client-modules/commit/5bfde22e22fa76ab000369cf6598b9e0cfec5d63))
204
161
 
205
162
  ### [0.12.1](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.12.0...@codecademy/tracking@0.12.1) (2021-07-13)
206
163
 
207
-
208
164
  ### Bug Fixes
209
165
 
210
- * business reporting event types ([b480487](https://github.com/Codecademy/client-modules/commit/b480487125ec85aa8466b0225730a2772c88452a))
211
-
212
-
166
+ - business reporting event types ([b480487](https://github.com/Codecademy/client-modules/commit/b480487125ec85aa8466b0225730a2772c88452a))
213
167
 
214
168
  ## [0.12.0](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.11.1...@codecademy/tracking@0.12.0) (2021-07-13)
215
169
 
216
-
217
170
  ### Features
218
171
 
219
- * **event type:** adding business reporting types ([5c8b6c5](https://github.com/Codecademy/client-modules/commit/5c8b6c5fe60b2d415436c56d485d092e6e94f68f)), closes [/github.com/codecademy-engineering/business-reporting/blob/develop/src/util/eventTracking/index.tsx#L104-L110](https://github.com/Codecademy//github.com/codecademy-engineering/business-reporting/blob/develop/src/util/eventTracking/index.tsx/issues/L104-L110)
220
-
221
-
172
+ - **event type:** adding business reporting types ([5c8b6c5](https://github.com/Codecademy/client-modules/commit/5c8b6c5fe60b2d415436c56d485d092e6e94f68f)), closes [/github.com/codecademy-engineering/business-reporting/blob/develop/src/util/eventTracking/index.tsx#L104-L110](https://github.com/Codecademy//github.com/codecademy-engineering/business-reporting/blob/develop/src/util/eventTracking/index.tsx/issues/L104-L110)
222
173
 
223
174
  ### [0.11.1](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.11.0...@codecademy/tracking@0.11.1) (2021-06-30)
224
175
 
225
-
226
176
  ### Bug Fixes
227
177
 
228
- * support navigator.sendBeacon not existing ([ab442ef](https://github.com/Codecademy/client-modules/commit/ab442efb8e097015b5cca2ca34c869e83bb53d44))
229
-
230
-
178
+ - support navigator.sendBeacon not existing ([ab442ef](https://github.com/Codecademy/client-modules/commit/ab442efb8e097015b5cca2ca34c869e83bb53d44))
231
179
 
232
180
  ## [0.11.0](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.10.0...@codecademy/tracking@0.11.0) (2021-06-30)
233
181
 
234
-
235
182
  ### Features
236
183
 
237
- * add user impression to tracking ([a5960aa](https://github.com/Codecademy/client-modules/commit/a5960aa034a1725bbcb119a2cf193557bfacd386))
238
-
239
-
184
+ - add user impression to tracking ([a5960aa](https://github.com/Codecademy/client-modules/commit/a5960aa034a1725bbcb119a2cf193557bfacd386))
240
185
 
241
186
  ## [0.10.0](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.9.0...@codecademy/tracking@0.10.0) (2021-06-21)
242
187
 
243
-
244
188
  ### Features
245
189
 
246
- * **tracking:** Added repo-tracking to user events ([22d0d7f](https://github.com/Codecademy/client-modules/commit/22d0d7feb37beb6642ab8fdf09f83480e5919bdf))
247
-
248
-
190
+ - **tracking:** Added repo-tracking to user events ([22d0d7f](https://github.com/Codecademy/client-modules/commit/22d0d7feb37beb6642ab8fdf09f83480e5919bdf))
249
191
 
250
192
  ## [0.9.0](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.8.0...@codecademy/tracking@0.9.0) (2021-06-10)
251
193
 
252
-
253
194
  ### Features
254
195
 
255
- * **tracking:** Record the page referrer for every event. ([5ae6357](https://github.com/Codecademy/client-modules/commit/5ae63574671e79e956afdebe8bcf62d81364feae))
256
-
257
-
196
+ - **tracking:** Record the page referrer for every event. ([5ae6357](https://github.com/Codecademy/client-modules/commit/5ae63574671e79e956afdebe8bcf62d81364feae))
258
197
 
259
198
  ## [0.8.0](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.7.3...@codecademy/tracking@0.8.0) (2021-05-24)
260
199
 
261
-
262
200
  ### ⚠ BREAKING CHANGES
263
201
 
264
- * prepended OneTrust to tracking integrations loads
202
+ - prepended OneTrust to tracking integrations loads
265
203
 
266
204
  ### Features
267
205
 
268
- * prepended OneTrust to tracking integrations loads ([3d8ce05](https://github.com/Codecademy/client-modules/commit/3d8ce05f1669728261f496b604fa8cc5906434e5))
269
-
270
-
206
+ - prepended OneTrust to tracking integrations loads ([3d8ce05](https://github.com/Codecademy/client-modules/commit/3d8ce05f1669728261f496b604fa8cc5906434e5))
271
207
 
272
208
  ### [0.7.3](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.7.2...@codecademy/tracking@0.7.3) (2021-05-10)
273
209
 
274
-
275
210
  ### Bug Fixes
276
211
 
277
- * allow no user for tracking integrations ([#1726](https://github.com/Codecademy/client-modules/issues/1726)) ([66fdf89](https://github.com/Codecademy/client-modules/commit/66fdf89834d2eae53172cd6254d936c182281f0c))
278
-
279
-
212
+ - allow no user for tracking integrations ([#1726](https://github.com/Codecademy/client-modules/issues/1726)) ([66fdf89](https://github.com/Codecademy/client-modules/commit/66fdf89834d2eae53172cd6254d936c182281f0c))
280
213
 
281
214
  ### [0.7.2](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.7.1...@codecademy/tracking@0.7.2) (2021-05-03)
282
215
 
283
216
  **Note:** Version bump only for package @codecademy/tracking
284
217
 
285
-
286
-
287
-
288
-
289
218
  ### [0.7.1](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.7.0...@codecademy/tracking@0.7.1) (2021-05-03)
290
219
 
291
-
292
220
  ### Bug Fixes
293
221
 
294
- * switch tracking 'verbose' type back to boolean ([8aae870](https://github.com/Codecademy/client-modules/commit/8aae8709b5e755f386f7c9f350ee7a4b86c19bcb))
295
-
296
-
222
+ - switch tracking 'verbose' type back to boolean ([8aae870](https://github.com/Codecademy/client-modules/commit/8aae8709b5e755f386f7c9f350ee7a4b86c19bcb))
297
223
 
298
224
  ## [0.7.0](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.6.0...@codecademy/tracking@0.7.0) (2021-05-03)
299
225
 
300
-
301
226
  ### ⚠ BREAKING CHANGES
302
227
 
303
- * clean up tracker and remove auth token
228
+ - clean up tracker and remove auth token
304
229
 
305
230
  ### Features
306
231
 
307
- * clean up tracker and remove auth token ([d2088e9](https://github.com/Codecademy/client-modules/commit/d2088e9741ffaa3e568bf182fb7bb6156ed5bf18))
308
-
309
-
232
+ - clean up tracker and remove auth token ([d2088e9](https://github.com/Codecademy/client-modules/commit/d2088e9741ffaa3e568bf182fb7bb6156ed5bf18))
310
233
 
311
234
  ## [0.6.0](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.5.4...@codecademy/tracking@0.6.0) (2021-05-03)
312
235
 
313
-
314
236
  ### Features
315
237
 
316
- * added useTrackingIntegrations to tracking package ([2d508e2](https://github.com/Codecademy/client-modules/commit/2d508e2efbcb47968a543d7b54363707301ef351))
317
-
318
-
238
+ - added useTrackingIntegrations to tracking package ([2d508e2](https://github.com/Codecademy/client-modules/commit/2d508e2efbcb47968a543d7b54363707301ef351))
319
239
 
320
240
  ### [0.5.4](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.5.3...@codecademy/tracking@0.5.4) (2021-05-03)
321
241
 
322
-
323
242
  ### Bug Fixes
324
243
 
325
- * bump tracking package babel-preset-codecademy to latest ([e809566](https://github.com/Codecademy/client-modules/commit/e80956648e76c3e0b439d4d3a63b3baafd818064))
326
-
327
-
244
+ - bump tracking package babel-preset-codecademy to latest ([e809566](https://github.com/Codecademy/client-modules/commit/e80956648e76c3e0b439d4d3a63b3baafd818064))
328
245
 
329
246
  ### [0.5.3](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.5.2...@codecademy/tracking@0.5.3) (2021-04-21)
330
247
 
331
248
  **Note:** Version bump only for package @codecademy/tracking
332
249
 
333
-
334
-
335
-
336
-
337
250
  ### [0.5.2](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.5.1...@codecademy/tracking@0.5.2) (2021-03-19)
338
251
 
339
252
  **Note:** Version bump only for package @codecademy/tracking
340
253
 
341
-
342
-
343
-
344
-
345
254
  ### [0.5.1](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.5.0...@codecademy/tracking@0.5.1) (2021-03-04)
346
255
 
347
256
  **Note:** Version bump only for package @codecademy/tracking
348
257
 
349
-
350
-
351
-
352
-
353
258
  ## [0.5.0](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.4.3...@codecademy/tracking@0.5.0) (2021-02-18)
354
259
 
355
-
356
260
  ### Features
357
261
 
358
- * add container_slugs to UserClickData tracking type ([ebb2d18](https://github.com/Codecademy/client-modules/commit/ebb2d1873505d7c09e14a0f714e5661914e8dd4a))
359
-
360
-
262
+ - add container_slugs to UserClickData tracking type ([ebb2d18](https://github.com/Codecademy/client-modules/commit/ebb2d1873505d7c09e14a0f714e5661914e8dd4a))
361
263
 
362
264
  ### [0.4.3](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.4.2...@codecademy/tracking@0.4.3) (2021-02-10)
363
265
 
364
-
365
266
  ### Reverts
366
267
 
367
- * Revert "feat(tracking): Add a fullstory boolean to TrackingOptions type" (#1381) ([f04d8b5](https://github.com/Codecademy/client-modules/commit/f04d8b57cac13dfffc8951641e52c2593827aba9)), closes [#1381](https://github.com/Codecademy/client-modules/issues/1381)
368
-
369
-
268
+ - Revert "feat(tracking): Add a fullstory boolean to TrackingOptions type" (#1381) ([f04d8b5](https://github.com/Codecademy/client-modules/commit/f04d8b57cac13dfffc8951641e52c2593827aba9)), closes [#1381](https://github.com/Codecademy/client-modules/issues/1381)
370
269
 
371
270
  ### [0.4.2](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.4.1...@codecademy/tracking@0.4.2) (2021-02-04)
372
271
 
373
272
  **Note:** Version bump only for package @codecademy/tracking
374
273
 
375
-
376
-
377
-
378
-
379
274
  ### [0.4.1](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.4.0...@codecademy/tracking@0.4.1) (2021-02-02)
380
275
 
381
276
  **Note:** Version bump only for package @codecademy/tracking
382
277
 
383
-
384
-
385
-
386
-
387
278
  ## [0.4.0](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.3.0...@codecademy/tracking@0.4.0) (2021-01-14)
388
279
 
389
-
390
280
  ### Features
391
281
 
392
- * **tracking:** Add a new page_career_path_visited event ([#1283](https://github.com/Codecademy/client-modules/issues/1283)) ([398e863](https://github.com/Codecademy/client-modules/commit/398e8636ed1ae5dc602f8ed103583b73aa0d6abc))
393
-
394
-
282
+ - **tracking:** Add a new page_career_path_visited event ([#1283](https://github.com/Codecademy/client-modules/issues/1283)) ([398e863](https://github.com/Codecademy/client-modules/commit/398e8636ed1ae5dc602f8ed103583b73aa0d6abc))
395
283
 
396
284
  ## [0.3.0](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.2.1...@codecademy/tracking@0.3.0) (2021-01-12)
397
285
 
398
-
399
286
  ### Features
400
287
 
401
- * **tracking:** Add a fullstory boolean to TrackingOptions type ([8e58696](https://github.com/Codecademy/client-modules/commit/8e58696cda506c8b9fed5a6b58eadcf0d9ebcfab))
402
-
403
-
288
+ - **tracking:** Add a fullstory boolean to TrackingOptions type ([8e58696](https://github.com/Codecademy/client-modules/commit/8e58696cda506c8b9fed5a6b58eadcf0d9ebcfab))
404
289
 
405
290
  ### [0.2.1](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.2.0...@codecademy/tracking@0.2.1) (2020-12-14)
406
291
 
407
292
  **Note:** Version bump only for package @codecademy/tracking
408
293
 
409
-
410
-
411
-
412
-
413
294
  ## [0.2.0](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.1.3...@codecademy/tracking@0.2.0) (2020-12-11)
414
295
 
415
-
416
296
  ### Features
417
297
 
418
- * onboarded eslint-plugin-simple-import-sort into ESLint plugin ([59d6fe5](https://github.com/Codecademy/client-modules/commit/59d6fe54d9af4b3ba2a88f7c234f65fc63506c0c))
419
-
420
-
298
+ - onboarded eslint-plugin-simple-import-sort into ESLint plugin ([59d6fe5](https://github.com/Codecademy/client-modules/commit/59d6fe54d9af4b3ba2a88f7c234f65fc63506c0c))
421
299
 
422
300
  ### [0.1.3](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.1.2...@codecademy/tracking@0.1.3) (2020-12-07)
423
301
 
424
302
  **Note:** Version bump only for package @codecademy/tracking
425
303
 
426
-
427
-
428
-
429
-
430
304
  ### [0.1.2](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.1.1...@codecademy/tracking@0.1.2) (2020-11-25)
431
305
 
432
-
433
306
  ### 🐛 Bug Fixes
434
307
 
435
- * Add query params to tracking calls ([#1189](https://github.com/Codecademy/client-modules/issues/1189)) ([02438ae](https://github.com/Codecademy/client-modules/commit/02438ae4fbad0130b8ef3e8de3a22f07922c9eed))
308
+ - Add query params to tracking calls ([#1189](https://github.com/Codecademy/client-modules/issues/1189)) ([02438ae](https://github.com/Codecademy/client-modules/commit/02438ae4fbad0130b8ef3e8de3a22f07922c9eed))
436
309
 
437
310
  ### [0.1.1](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.1.0...@codecademy/tracking@0.1.1) (2020-10-23)
438
311
 
439
-
440
312
  ### 🐛 Bug Fixes
441
313
 
442
- * Add a runtime dependency ([524d37b](https://github.com/Codecademy/client-modules/commit/524d37b08586903bc6a9d2b7a060752521bfc748))
314
+ - Add a runtime dependency ([524d37b](https://github.com/Codecademy/client-modules/commit/524d37b08586903bc6a9d2b7a060752521bfc748))
443
315
 
444
316
  ## [0.1.0](https://github.com/Codecademy/client-modules/compare/1a91e7e41e9a30e3cabb3b736c1b686c43e9570e...@codecademy/tracking@0.1.0) (2020-10-23)
445
317
 
446
-
447
318
  ### ✨ Features
448
319
 
449
- * Creating the @codecademy/tracking pachage. ([1a91e7e](https://github.com/Codecademy/client-modules/commit/1a91e7e41e9a30e3cabb3b736c1b686c43e9570e))
320
+ - Creating the @codecademy/tracking pachage. ([1a91e7e](https://github.com/Codecademy/client-modules/commit/1a91e7e41e9a30e3cabb3b736c1b686c43e9570e))
package/babel.config.js CHANGED
@@ -1,5 +1,11 @@
1
1
  module.exports = {
2
- presets: ['codecademy', '@babel/preset-typescript'],
3
- include: ['./src/**/*'],
4
- ignore: ['__tests__', './**/*(.spec|-test).(ts|tsx|js)', './**/*.d.ts'],
2
+ presets: [
3
+ [
4
+ '@nrwl/web/babel',
5
+ {
6
+ useBuiltIns: 'usage',
7
+ },
8
+ ],
9
+ '@babel/preset-typescript',
10
+ ],
5
11
  };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,13 +1,14 @@
1
- var _class, _temp;
2
-
3
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
4
-
5
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
6
-
7
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
8
-
9
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1
+ var _class;
10
2
 
3
+ import "core-js/modules/es.object.define-properties.js";
4
+ import "core-js/modules/es.object.define-property.js";
5
+ import "core-js/modules/es.array.iterator.js";
6
+ import "core-js/modules/es.object.from-entries.js";
7
+ import "core-js/modules/es.object.assign.js";
8
+ import "core-js/modules/es.regexp.exec.js";
9
+ import "core-js/modules/es.string.search.js";
10
+ import "core-js/modules/es.object.to-string.js";
11
+ import "core-js/modules/es.promise.js";
11
12
  import { createTracker } from '../track';
12
13
  var apiBaseUrl = 'https://www.codecademy.com';
13
14
  var fakeWindow = {
@@ -29,9 +30,7 @@ Object.defineProperties(window, {
29
30
  value: fakeWindow.location
30
31
  },
31
32
  Request: {
32
- value: (_temp = _class = function MockRequest() {
33
- _classCallCheck(this, MockRequest);
34
- }, _defineProperty(_class, "keepalive", true), _temp)
33
+ value: (_class = function MockRequest() {}, _class.keepalive = true, _class)
35
34
  }
36
35
  });
37
36
  Object.defineProperty(window.document, 'title', {
@@ -72,14 +71,14 @@ describe('createTracker', function () {
72
71
  });
73
72
  tracker[event](expectedProps);
74
73
  expect(mockBeacon).toHaveBeenCalledTimes(1);
75
- expect(mockBeacon).toHaveBeenCalledWith("".concat(apiBaseUrl, "/analytics/user?utm_source=twitter"), expect.any(FormData));
74
+ expect(mockBeacon).toHaveBeenCalledWith(apiBaseUrl + "/analytics/user?utm_source=twitter", expect.any(FormData));
76
75
  var formData = mockBeacon.mock.calls[0][1];
77
76
  expect(Object.fromEntries(formData)).toEqual(expect.objectContaining({
78
77
  category: 'user',
79
78
  event: event,
80
79
  gdpr_safe: 'undefined'
81
80
  }));
82
- expect(JSON.parse(formData.get('properties'))).toEqual(_objectSpread(_objectSpread({}, expectedProps), {}, {
81
+ expect(JSON.parse(formData.get('properties'))).toEqual(Object.assign({}, expectedProps, {
83
82
  fullpath: window.location.pathname + window.location.search,
84
83
  path: window.location.pathname,
85
84
  referrer: '',
@@ -0,0 +1 @@
1
+ export {};