@britannica/cam-utils
Advanced tools
Comparing version 5.0.0-beta.3 to 5.0.0-beta.4
@@ -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
61773