chefcookie 2.6.2 → 2.6.5
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 +22 -1
- package/_build/script.js +3 -2
- package/chefcookie.min.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,28 @@ 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.6.
|
|
7
|
+
#### [2.6.4](https://github.com/vielhuber/chefcookie/compare/2.6.4...2.6.4)
|
|
8
|
+
|
|
9
|
+
#### [2.6.4](https://github.com/vielhuber/chefcookie/compare/2.6.3...2.6.4)
|
|
10
|
+
|
|
11
|
+
> 23 May 2022
|
|
12
|
+
|
|
13
|
+
- Update changelog. [`ba39b13`](https://github.com/vielhuber/chefcookie/commit/ba39b13aee815bd841f1b5fa6f8348ecc34b41be)
|
|
14
|
+
- Improve gtm debug preview mode. [`471d4cc`](https://github.com/vielhuber/chefcookie/commit/471d4ccccc774d1a70e56fb6dd8977920cfe96e7)
|
|
15
|
+
|
|
16
|
+
#### [2.6.3](https://github.com/vielhuber/chefcookie/compare/2.6.2...2.6.3)
|
|
17
|
+
|
|
18
|
+
> 21 April 2022
|
|
19
|
+
|
|
20
|
+
- Update changelog. [`b110975`](https://github.com/vielhuber/chefcookie/commit/b11097544dd2e5f66ec6afbe5ff1148ea447d049)
|
|
21
|
+
- Fix bug in cookie set. [`70fc30a`](https://github.com/vielhuber/chefcookie/commit/70fc30ab3504de14b8f681f88cb1897ce371c8e7)
|
|
22
|
+
|
|
23
|
+
#### [2.6.2](https://github.com/vielhuber/chefcookie/compare/2.6.1...2.6.2)
|
|
24
|
+
|
|
25
|
+
> 20 April 2022
|
|
26
|
+
|
|
27
|
+
- Reset styles. [`77951ab`](https://github.com/vielhuber/chefcookie/commit/77951abaa2bd0a8c0545c7272ac1af907b4b7b7a)
|
|
28
|
+
- Update changelog. [`80f129e`](https://github.com/vielhuber/chefcookie/commit/80f129e8590a1575e4071fc526ae2573616bfd15)
|
|
8
29
|
|
|
9
30
|
#### [2.6.1](https://github.com/vielhuber/chefcookie/compare/2.6.0...2.6.1)
|
|
10
31
|
|
package/_build/script.js
CHANGED
|
@@ -263,7 +263,7 @@ var chefcookie = /*#__PURE__*/function () {
|
|
|
263
263
|
}, {
|
|
264
264
|
key: "forceAccept",
|
|
265
265
|
value: function forceAccept() {
|
|
266
|
-
return _helper.default.getParam('accept') === '1';
|
|
266
|
+
return _helper.default.getParam('accept') === '1' || _helper.default.getParam('gtm_debug') !== null;
|
|
267
267
|
}
|
|
268
268
|
}, {
|
|
269
269
|
key: "bindOptOutOptIn",
|
|
@@ -375,7 +375,7 @@ var chefcookie = /*#__PURE__*/function () {
|
|
|
375
375
|
excluded = true;
|
|
376
376
|
}
|
|
377
377
|
|
|
378
|
-
if (typeof exclude__value === 'string' && (exclude__value.indexOf('http') === 0 && exclude__value === window.location.protocol + '//' + window.location.host + window.location.pathname || exclude__value.indexOf('http') !== 0 && exclude__value === window.location.pathname || exclude__value.indexOf('http') !== 0 && exclude__value + '/' === window.location.pathname)) {
|
|
378
|
+
if (typeof exclude__value === 'string' && (exclude__value.indexOf('http') === 0 && exclude__value === window.location.protocol + '//' + window.location.host + window.location.pathname || exclude__value.indexOf('http') !== 0 && exclude__value === window.location.pathname || exclude__value.indexOf('http') !== 0 && exclude__value === decodeURI(window.location.pathname) || exclude__value.indexOf('http') !== 0 && exclude__value + '/' === window.location.pathname || exclude__value.indexOf('http') !== 0 && exclude__value + '/' === decodeURI(window.location.pathname))) {
|
|
379
379
|
excluded = true;
|
|
380
380
|
}
|
|
381
381
|
});
|
|
@@ -665,6 +665,7 @@ var chefcookie = /*#__PURE__*/function () {
|
|
|
665
665
|
document.cookie = _cookie.default.serialize(cookie_name, value, _objectSpread({
|
|
666
666
|
httpOnly: false,
|
|
667
667
|
maxAge: 60 * 60 * 24 * days,
|
|
668
|
+
path: '/',
|
|
668
669
|
domain: cookie_domain && window.location.hostname.endsWith(cookie_domain) ? cookie_domain : undefined
|
|
669
670
|
}, options));
|
|
670
671
|
}
|