Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

xcoobee-cookie-kit-core

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xcoobee-cookie-kit-core - npm Package Compare versions

Comparing version 1.0.11 to 1.0.12

14

dist/configs.js

@@ -6,3 +6,3 @@ "use strict";

});
exports.xcoobeeCookiesKey = exports.xbApiUrl = exports.tokenKey = exports.requiredFields = exports.positions = exports.locales = exports.localeKey = exports.links = exports.fingerprintConsentKey = exports.expirationTime = exports.euCountries = exports.defaultConfig = exports.cssHref = exports.countryCodeKey = exports.cookieTypes = exports.cookieOptionsKeys = exports.cookieDefns = exports.consentStatuses = exports.consentsSources = exports.configFields = exports.animations = void 0;
exports.xcoobeeCookiesKey = exports.xbApiUrl = exports.tokenKey = exports.themes = exports.requiredFields = exports.positions = exports.locales = exports.localeKey = exports.links = exports.fingerprintConsentKey = exports.expirationTime = exports.euCountries = exports.defaultConfig = exports.cssHrefTheme2 = exports.cssHrefTheme1 = exports.countryCodeKey = exports.cookieTypes = exports.cookieOptionsKeys = exports.cookieDefns = exports.consentStatuses = exports.consentsSources = exports.configFields = exports.animations = void 0;
var xbApiUrl = process.env.XB_API_URL || "https://api.xcoobee.net";

@@ -23,3 +23,3 @@ exports.xbApiUrl = xbApiUrl;

exports.defaultConfig = defaultConfig;
var positions = ["right_bottom", "left_bottom", "right_top", "left_top"];
var positions = ["right_bottom", "left_bottom", "right_top", "left_top", "bottom", "top"];
exports.positions = positions;

@@ -83,4 +83,8 @@ var cookieDefns = [{

exports.animations = animations;
var cssHref = "xcoobee-cookie-kit.min.css";
exports.cssHref = cssHref;
var cssHrefTheme1 = "xcoobee-cookie-kit-theme-popup.min.css";
exports.cssHrefTheme1 = cssHrefTheme1;
var cssHrefTheme2 = "xcoobee-cookie-kit-theme-overlay.min.css";
exports.cssHrefTheme2 = cssHrefTheme2;
var themes = ["popup", "overlay"];
exports.themes = themes;
var euCountries = ["AT", "BE", "BG", "CY", "CZ", "DK", "EE", "ES", "FI", "FR", "DE", "GB", "GR", "HU", "IE", "IT", "LV", "LT", "LU", "MT", "NL", "PL", "PT", "RO", "SK", "SI", "SE"];

@@ -102,3 +106,3 @@ exports.euCountries = euCountries;

exports.cookieOptionsKeys = cookieOptionsKeys;
var configFields = ["displayFingerprint", "campaignReference", "checkByDefaultTypes", "companyLogo", "cookieHandler", "cssAutoLoad", "detectCountry", "displayOnlyForEU", "expirationTime", "hideBrandTag", "hideOnComplete", "position", "privacyUrl", "requestDataTypes", "targetUrl", "termsUrl", "testMode", "textMessage"];
var configFields = ["campaignReference", "checkByDefaultTypes", "companyLogo", "cookieHandler", "cssAutoLoad", "defaultCountryCode", "detectCountry", "displayFingerprint", "displayOnlyForEU", "expirationTime", "hideBrandTag", "hideOnComplete", "position", "privacyUrl", "requestDataTypes", "targetUrl", "termsUrl", "testMode", "textMessage", "theme"];
exports.configFields = configFields;

@@ -105,0 +109,0 @@ var requiredFields = ["privacyUrl", "termsUrl", "textMessage"]; // Expiration time of cookie consents cached locally (in milliseconds)

@@ -15,4 +15,8 @@ "use strict";

var _isomorphicFetch = _interopRequireDefault(require("isomorphic-fetch"));
var _configs = require("./configs");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function clearLocale() {

@@ -46,3 +50,3 @@ localStorage.removeItem(_configs.localeKey);

// console.log("LocaleManager#fetchCountryCode fetching...");
return fetch("http://ip-api.com/json").then(function (res) {
return (0, _isomorphicFetch.default)("http://ip-api.com/json").then(function (res) {
return res.json();

@@ -58,3 +62,3 @@ }).then(function (res) {

// console.log("LocaleManager#fetchCountryCodeForSubscribers fetching...");
return fetch("".concat(_configs.xbApiUrl, "/geoip?reference=").concat(campaignReference)).then(function (res) {
return (0, _isomorphicFetch.default)("".concat(_configs.xbApiUrl, "/geoip?reference=").concat(campaignReference)).then(function (res) {
return res.json();

@@ -61,0 +65,0 @@ }).then(function (res) {

{
"name": "xcoobee-cookie-kit-core",
"version": "1.0.11",
"version": "1.0.12",
"description": "Cookie Consent Management for Websites",

@@ -5,0 +5,0 @@ "keywords": [

@@ -16,3 +16,3 @@ const xbApiUrl = process.env.XB_API_URL || "https://api.xcoobee.net";

const positions = ["right_bottom", "left_bottom", "right_top", "left_top"];
const positions = ["right_bottom", "left_bottom", "right_top", "left_top", "bottom", "top"];

@@ -75,4 +75,7 @@ const cookieDefns = [

const cssHref = "xcoobee-cookie-kit.min.css";
const cssHrefTheme1 = "xcoobee-cookie-kit-theme-popup.min.css";
const cssHrefTheme2 = "xcoobee-cookie-kit-theme-overlay.min.css";
const themes = ["popup", "overlay"];
const euCountries = [

@@ -105,3 +108,2 @@ "AT", "BE", "BG", "CY", "CZ", "DK", "EE", "ES", "FI", "FR", "DE", "GB", "GR", "HU",

const configFields = [
"displayFingerprint",
"campaignReference",

@@ -112,3 +114,5 @@ "checkByDefaultTypes",

"cssAutoLoad",
"defaultCountryCode",
"detectCountry",
"displayFingerprint",
"displayOnlyForEU",

@@ -125,2 +129,3 @@ "expirationTime",

"textMessage",
"theme",
];

@@ -141,3 +146,4 @@ const requiredFields = ["privacyUrl", "termsUrl", "textMessage"];

countryCodeKey,
cssHref,
cssHrefTheme1,
cssHrefTheme2,
defaultConfig,

@@ -152,2 +158,3 @@ euCountries,

requiredFields,
themes,
tokenKey,

@@ -154,0 +161,0 @@ xbApiUrl,

@@ -0,1 +1,3 @@

import fetch from "isomorphic-fetch";
import { localeKey, countryCodeKey, xbApiUrl } from "./configs";

@@ -2,0 +4,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc