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
0
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 5.0.0-beta.3 to 5.0.0-beta.4

8

dist/cam-utils.cjs.js

@@ -82,7 +82,7 @@ 'use strict';

this.environment = environment;
this.cookieDomain = this.parseCookieDomain(hostname);
this.cookieDomain = CAMUtilsClient.parseCookieDomain(hostname);
}
// --- Public
set hostname(hostname) {
this.cookieDomain = this.parseCookieDomain(hostname);
this.cookieDomain = CAMUtilsClient.parseCookieDomain(hostname);
}

@@ -147,3 +147,3 @@ clearAuthCookies() {

}
// --- Private
// --- Static
/**

@@ -159,3 +159,3 @@ * Determine the domain that cookies will be written to. Defaults to ".britannica.com".

*/
parseCookieDomain(hostname) {
static parseCookieDomain(hostname) {
const validDomains = ['.britannica.', '.merriam-webster.'];

@@ -162,0 +162,0 @@ let cookieDomain = hostname;

@@ -80,7 +80,7 @@ // --- Enums

this.environment = environment;
this.cookieDomain = this.parseCookieDomain(hostname);
this.cookieDomain = CAMUtilsClient.parseCookieDomain(hostname);
}
// --- Public
set hostname(hostname) {
this.cookieDomain = this.parseCookieDomain(hostname);
this.cookieDomain = CAMUtilsClient.parseCookieDomain(hostname);
}

@@ -145,3 +145,3 @@ clearAuthCookies() {

}
// --- Private
// --- Static
/**

@@ -157,3 +157,3 @@ * Determine the domain that cookies will be written to. Defaults to ".britannica.com".

*/
parseCookieDomain(hostname) {
static parseCookieDomain(hostname) {
const validDomains = ['.britannica.', '.merriam-webster.'];

@@ -160,0 +160,0 @@ let cookieDomain = hostname;

@@ -86,7 +86,7 @@ (function (global, factory) {

this.environment = environment;
this.cookieDomain = this.parseCookieDomain(hostname);
this.cookieDomain = CAMUtilsClient.parseCookieDomain(hostname);
}
// --- Public
set hostname(hostname) {
this.cookieDomain = this.parseCookieDomain(hostname);
this.cookieDomain = CAMUtilsClient.parseCookieDomain(hostname);
}

@@ -151,3 +151,3 @@ clearAuthCookies() {

}
// --- Private
// --- Static
/**

@@ -163,3 +163,3 @@ * Determine the domain that cookies will be written to. Defaults to ".britannica.com".

*/
parseCookieDomain(hostname) {
static parseCookieDomain(hostname) {
const validDomains = ['.britannica.', '.merriam-webster.'];

@@ -166,0 +166,0 @@ let cookieDomain = hostname;

@@ -84,3 +84,3 @@ import type { CookieSerializeOptions } from 'cookie';

*/
private parseCookieDomain;
static parseCookieDomain(hostname: string): string;
}
{
"name": "@britannica/cam-utils",
"version": "5.0.0-beta.3",
"version": "5.0.0-beta.4",
"description": "Consumer Account Management (CAM) auth configuration and utilities",

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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