@snowplow/browser-plugin-ga-cookies
Advanced tools
Comparing version 3.0.0-beta.1 to 3.0.0-beta.2
/*! | ||
* Attaches GA cookie data to Snowplow events v3.0.0-beta.1 (http://bit.ly/sp-js) | ||
* Attaches GA cookie data to Snowplow events v3.0.0-beta.2 (http://bit.ly/sp-js) | ||
* Copyright 2021 Snowplow Analytics Ltd, 2010 Anthon Pang | ||
@@ -4,0 +4,0 @@ * Licensed under BSD-3-Clause |
/*! | ||
* Attaches GA cookie data to Snowplow events v3.0.0-beta.1 (http://bit.ly/sp-js) | ||
* Attaches GA cookie data to Snowplow events v3.0.0-beta.2 (http://bit.ly/sp-js) | ||
* Copyright 2021 Snowplow Analytics Ltd, 2010 Anthon Pang | ||
@@ -14,37 +14,6 @@ * Licensed under BSD-3-Clause | ||
/*! | ||
* Core functionality for Snowplow Browser trackers v3.0.0-beta.1 (http://bit.ly/sp-js) | ||
* Core functionality for Snowplow Browser trackers v3.0.0-beta.2 (http://bit.ly/sp-js) | ||
* Copyright 2021 Snowplow Analytics Ltd, 2010 Anthon Pang | ||
* Licensed under BSD-3-Clause | ||
*/ | ||
/* | ||
* Copyright (c) 2021 Snowplow Analytics Ltd, 2010 Anthon Pang | ||
* All rights reserved. | ||
* | ||
* Redistribution and use in source and binary forms, with or without | ||
* modification, are permitted provided that the following conditions are met: | ||
* | ||
* 1. Redistributions of source code must retain the above copyright notice, this | ||
* list of conditions and the following disclaimer. | ||
* | ||
* 2. Redistributions in binary form must reproduce the above copyright notice, | ||
* this list of conditions and the following disclaimer in the documentation | ||
* and/or other materials provided with the distribution. | ||
* | ||
* 3. Neither the name of the copyright holder nor the names of its | ||
* contributors may be used to endorse or promote products derived from | ||
* this software without specific prior written permission. | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE | ||
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | ||
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | ||
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
*/ | ||
var documentAlias$2 = document; | ||
/** | ||
@@ -65,3 +34,3 @@ * Get and set the cookies associated with the current document in browser | ||
if (arguments.length > 1) { | ||
return (documentAlias$2.cookie = | ||
return (document.cookie = | ||
name + | ||
@@ -76,3 +45,3 @@ '=' + | ||
} | ||
return decodeURIComponent((('; ' + documentAlias$2.cookie).split('; ' + name + '=')[1] || '').split(';')[0]); | ||
return decodeURIComponent((('; ' + document.cookie).split('; ' + name + '=')[1] || '').split(';')[0]); | ||
} | ||
@@ -79,0 +48,0 @@ |
/*! | ||
* Attaches GA cookie data to Snowplow events v3.0.0-beta.1 (http://bit.ly/sp-js) | ||
* Attaches GA cookie data to Snowplow events v3.0.0-beta.2 (http://bit.ly/sp-js) | ||
* Copyright 2021 Snowplow Analytics Ltd, 2010 Anthon Pang | ||
@@ -7,3 +7,3 @@ * Licensed under BSD-3-Clause | ||
"use strict";!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports):"function"==typeof define&&define.amd?define(["exports"],o):o((e="undefined"!=typeof globalThis?globalThis:e||self).snowplowGaCookies={})}(this,(function(e){function o(e,o,n,i,u,a,c){return 1<arguments.length?t.cookie=e+"="+encodeURIComponent(null!=o?o:"")+(n?"; Expires="+new Date(+new Date+1e3*n).toUTCString():"")+(i?"; Path="+i:"")+(u?"; Domain="+u:"")+(a?"; SameSite="+a:"")+(c?"; Secure":""):decodeURIComponent((("; "+t.cookie).split("; "+e+"=")[1]||"").split(";")[0])}var t=document;e.GaCookiesPlugin=function(){return{contexts:function(){var e={schema:"iglu:com.google.analytics/cookies/jsonschema/1-0-0",data:{}};return"__utma __utmb __utmc __utmv __utmz _ga".split(" ").forEach((function(t){var n=o(t);n&&(e.data[t]=n)})),[e]}}},Object.defineProperty(e,"__esModule",{value:!0})})); | ||
"use strict";!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports):"function"==typeof define&&define.amd?define(["exports"],o):o((e="undefined"!=typeof globalThis?globalThis:e||self).snowplowGaCookies={})}(this,(function(e){e.GaCookiesPlugin=function(){return{contexts:function(){var e={schema:"iglu:com.google.analytics/cookies/jsonschema/1-0-0",data:{}};return"__utma __utmb __utmc __utmv __utmz _ga".split(" ").forEach((function(o){var t=function(e,o,t,n,i,u,c){return 1<arguments.length?document.cookie=e+"="+encodeURIComponent(null!=o?o:"")+(t?"; Expires="+new Date(+new Date+1e3*t).toUTCString():"")+(n?"; Path="+n:"")+(i?"; Domain="+i:"")+(u?"; SameSite="+u:"")+(c?"; Secure":""):decodeURIComponent((("; "+document.cookie).split("; "+e+"=")[1]||"").split(";")[0])}(o);t&&(e.data[o]=t)})),[e]}}},Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=index.umd.min.js.map |
{ | ||
"name": "@snowplow/browser-plugin-ga-cookies", | ||
"version": "3.0.0-beta.1", | ||
"version": "3.0.0-beta.2", | ||
"description": "Attaches GA cookie data to Snowplow events", | ||
@@ -24,4 +24,4 @@ "homepage": "http://bit.ly/sp-js", | ||
"dependencies": { | ||
"@snowplow/browser-tracker-core": "3.0.0-beta.1", | ||
"@snowplow/tracker-core": "3.0.0-beta.1", | ||
"@snowplow/browser-tracker-core": "3.0.0-beta.2", | ||
"@snowplow/tracker-core": "3.0.0-beta.2", | ||
"tslib": "^2.1.0" | ||
@@ -28,0 +28,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
224843
180
+ Added@snowplow/browser-tracker-core@3.0.0-beta.2(transitive)
+ Added@snowplow/tracker-core@3.0.0-beta.2(transitive)
- Removed@snowplow/browser-tracker-core@3.0.0-beta.1(transitive)
- Removed@snowplow/tracker-core@3.0.0-beta.1(transitive)