chefcookie 2.8.7 → 2.8.9

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/CHANGELOG.md CHANGED
@@ -4,7 +4,21 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
- #### [2.8.6](https://github.com/vielhuber/chefcookie/compare/2.8.6...2.8.6)
7
+ #### [2.8.8](https://github.com/vielhuber/chefcookie/compare/2.8.8...2.8.8)
8
+
9
+ #### [2.8.8](https://github.com/vielhuber/chefcookie/compare/2.8.7...2.8.8)
10
+
11
+ > 18 November 2023
12
+
13
+ - Update linked in tracking. [`d9ef7fc`](https://github.com/vielhuber/chefcookie/commit/d9ef7fc3efc7bc7681146bf3a1f915604b48b581)
14
+ - Update changelog. [`2384e7a`](https://github.com/vielhuber/chefcookie/commit/2384e7abc219bbc7db59f78ef9aa261ffa283682)
15
+
16
+ #### [2.8.7](https://github.com/vielhuber/chefcookie/compare/2.8.6...2.8.7)
17
+
18
+ > 15 November 2023
19
+
20
+ - Update readme for new GA4 tag. [`c5ba88e`](https://github.com/vielhuber/chefcookie/commit/c5ba88e79d1b40fcd2e537d1a5866b156d63e219)
21
+ - Update changelog. [`800e2f0`](https://github.com/vielhuber/chefcookie/commit/800e2f08197d7d527866697b9e1ce1de8f09bfff)
8
22
 
9
23
  #### [2.8.6](https://github.com/vielhuber/chefcookie/compare/2.8.5...2.8.6)
10
24
 
package/README.md CHANGED
@@ -526,7 +526,7 @@ window.addEventListener('load', () => {
526
526
  cc.eventTwitter('conversion_id');
527
527
  cc.eventTaboola('custom_event_name');
528
528
  cc.eventMatch2one('id=xxxxxx&seg=xxxxxx');
529
- cc.eventLinkedin('id', 'conversion_id');
529
+ cc.eventLinkedin('conversion_id');
530
530
  cc.eventEtracker('custom_category', 'custom_action');
531
531
  cc.eventEtracker('custom_action');
532
532
  e.preventDefault();
package/_build/_helper.js CHANGED
@@ -1,49 +1,37 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
7
6
  exports.default = void 0;
8
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
- var helper = /*#__PURE__*/function () {
11
- function helper() {
12
- (0, _classCallCheck2.default)(this, helper);
13
- }
14
- (0, _createClass2.default)(helper, null, [{
15
- key: "getParam",
16
- value: function getParam(variable) {
17
- var url = window.location.search;
18
- if (url == '') {
19
- return null;
20
- }
21
- var query = url.substring(1),
22
- vars = query.split('&');
23
- for (var i = 0; i < vars.length; i++) {
24
- var pair = vars[i].split('=');
25
- if (pair[0] == variable && pair[1] != '') {
26
- return pair[1];
27
- }
28
- }
7
+ class helper {
8
+ static getParam(variable) {
9
+ let url = window.location.search;
10
+ if (url == '') {
29
11
  return null;
30
12
  }
31
- }, {
32
- key: "urlHostTopLevel",
33
- value: function urlHostTopLevel() {
34
- var host = window.location.hostname;
35
- // ipv4
36
- if (host.match(/^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$/)) {
37
- return host;
38
- }
39
- host = host.split('.');
40
- while (host.length > 2) {
41
- host.shift();
13
+ let query = url.substring(1),
14
+ vars = query.split('&');
15
+ for (var i = 0; i < vars.length; i++) {
16
+ var pair = vars[i].split('=');
17
+ if (pair[0] == variable && pair[1] != '') {
18
+ return pair[1];
42
19
  }
43
- host = host.join('.');
20
+ }
21
+ return null;
22
+ }
23
+ static urlHostTopLevel() {
24
+ let host = window.location.hostname;
25
+ // ipv4
26
+ if (host.match(/^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$/)) {
44
27
  return host;
45
28
  }
46
- }]);
47
- return helper;
48
- }();
29
+ host = host.split('.');
30
+ while (host.length > 2) {
31
+ host.shift();
32
+ }
33
+ host = host.join('.');
34
+ return host;
35
+ }
36
+ }
49
37
  exports.default = helper;