xcoobee-cookie-kit-core
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.xcoobeeCookiesKey = exports.xbApiUrl = exports.tokenKey = exports.requiredFields = exports.positions = exports.locales = exports.links = exports.expirationTime = exports.euCountries = exports.defaultConfig = exports.cssHref = exports.cookieTypes = exports.cookieDefns = exports.consentStatuses = exports.consentsSources = exports.configFields = exports.animations = void 0; | ||
exports.xcoobeeCookiesKey = exports.xbApiUrl = exports.tokenKey = exports.requiredFields = exports.positions = exports.locales = exports.localeKey = exports.links = exports.expirationTime = exports.euCountries = exports.defaultConfig = exports.cssHref = exports.countryCodeKey = exports.cookieTypes = exports.cookieDefns = exports.consentStatuses = exports.consentsSources = exports.configFields = exports.animations = void 0; | ||
var xbApiUrl = process.env.XB_API_URL || "https://api.xcoobee.net"; | ||
@@ -61,2 +61,6 @@ exports.xbApiUrl = xbApiUrl; | ||
exports.xcoobeeCookiesKey = xcoobeeCookiesKey; | ||
var localeKey = "xcoobeeLocale"; | ||
exports.localeKey = localeKey; | ||
var countryCodeKey = "xcoobeeCountryCode"; | ||
exports.countryCodeKey = countryCodeKey; | ||
var links = { | ||
@@ -63,0 +67,0 @@ poweredBy: "https://www.xcoobee.com", |
{ | ||
"name": "xcoobee-cookie-kit-core", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "Cookie Consent Management for Websites", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -17,2 +17,6 @@ # XcooBee Cookie Kit Core | ||
## Video | ||
[Cookie Kit Tutorial](https://www.youtube.com/watch?v=X2DNrckHLBI) | ||
## What is the difference | ||
@@ -19,0 +23,0 @@ |
@@ -55,2 +55,4 @@ const xbApiUrl = process.env.XB_API_URL || "https://api.xcoobee.net"; | ||
const xcoobeeCookiesKey = "xcoobeeCookies"; | ||
const localeKey = "xcoobeeLocale"; | ||
const countryCodeKey = "xcoobeeCountryCode"; | ||
@@ -125,2 +127,3 @@ const links = { | ||
cookieTypes, | ||
countryCodeKey, | ||
cssHref, | ||
@@ -131,2 +134,3 @@ defaultConfig, | ||
links, | ||
localeKey, | ||
locales, | ||
@@ -133,0 +137,0 @@ positions, |
@@ -26,3 +26,3 @@ /** | ||
function xckEraseCookie(name) { | ||
document.cookie = name + '=; Max-Age=-99999999;'; | ||
document.cookie = name + "=; Max-Age=-99999999; path=/"; | ||
} | ||
@@ -36,4 +36,4 @@ | ||
function xckGetCookieNames() { | ||
let ca = document.cookie.split(';'); | ||
let ra = []; | ||
const ca = document.cookie.split(";"); | ||
const ra = []; | ||
@@ -256,3 +256,3 @@ for (let i = 0; i < ca.length; i++) { | ||
// Set cookie | ||
xckSetCookie(cookieName,cookieValue,cookieDays); | ||
xckSetCookie(cookieName, cookieValue, cookieDays); | ||
} else { | ||
@@ -277,2 +277,2 @@ // Erase cookie | ||
xckHandleXbeeCookieTags, | ||
} | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
77964
31
1586
34