New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@britannica/cam-utils

Package Overview
Dependencies
Maintainers
5
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@britannica/cam-utils - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

7

dist/cam-utils.cjs.js

@@ -53,2 +53,6 @@ 'use strict';

// The default domain to use when writing cookies, uses hostname if available otherwise defaults to "britannica.com"
let defaultDomain = (typeof window !== 'undefined' && window.location.hostname) || 'britannica.com';
/**

@@ -61,3 +65,3 @@ * Extract the TLD and SLD of a given hostname. Only works with "britannica.*" domains

function parseDomain(hostname = window.location.hostname) {
function parseDomain(hostname = defaultDomain) {
if (hostname.indexOf('britannica') === -1) {

@@ -75,3 +79,2 @@ throw new Error(`Unsupported domain: "${hostname}"`);

* @param {number} expires
* @param {string} domain
* @returns {object}

@@ -78,0 +81,0 @@ */

@@ -45,2 +45,6 @@ import Cookies from 'js-cookie';

// The default domain to use when writing cookies, uses hostname if available otherwise defaults to "britannica.com"
let defaultDomain = (typeof window !== 'undefined' && window.location.hostname) || 'britannica.com';
/**

@@ -53,3 +57,3 @@ * Extract the TLD and SLD of a given hostname. Only works with "britannica.*" domains

function parseDomain(hostname = window.location.hostname) {
function parseDomain(hostname = defaultDomain) {
if (hostname.indexOf('britannica') === -1) {

@@ -67,3 +71,2 @@ throw new Error(`Unsupported domain: "${hostname}"`);

* @param {number} expires
* @param {string} domain
* @returns {object}

@@ -70,0 +73,0 @@ */

@@ -217,2 +217,6 @@ (function (global, factory) {

// The default domain to use when writing cookies, uses hostname if available otherwise defaults to "britannica.com"
let defaultDomain = (typeof window !== 'undefined' && window.location.hostname) || 'britannica.com';
/**

@@ -225,3 +229,3 @@ * Extract the TLD and SLD of a given hostname. Only works with "britannica.*" domains

function parseDomain(hostname = window.location.hostname) {
function parseDomain(hostname = defaultDomain) {
if (hostname.indexOf('britannica') === -1) {

@@ -239,3 +243,2 @@ throw new Error(`Unsupported domain: "${hostname}"`);

* @param {number} expires
* @param {string} domain
* @returns {object}

@@ -242,0 +245,0 @@ */

{
"name": "@britannica/cam-utils",
"version": "3.0.0",
"version": "3.0.1",
"description": "Consumer Account Management (CAM) auth configuration and utilities",

@@ -5,0 +5,0 @@ "repository": "git://github.com/britannica/cam-utils.git",

@@ -45,2 +45,6 @@ import Cookies from 'js-cookie';

// The default domain to use when writing cookies, uses hostname if available otherwise defaults to "britannica.com"
let defaultDomain = (typeof window !== 'undefined' && window.location.hostname) || 'britannica.com';
/**

@@ -53,3 +57,3 @@ * Extract the TLD and SLD of a given hostname. Only works with "britannica.*" domains

export function parseDomain(hostname = window.location.hostname) {
export function parseDomain(hostname = defaultDomain) {
if (hostname.indexOf('britannica') === -1) {

@@ -67,3 +71,2 @@ throw new Error(`Unsupported domain: "${hostname}"`);

* @param {number} expires
* @param {string} domain
* @returns {object}

@@ -70,0 +73,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