@britannica/cam-utils
Advanced tools
Comparing version 5.0.0-beta.8 to 5.0.0-beta.9
@@ -116,9 +116,8 @@ 'use strict'; | ||
// todo: which MW subdomains should be included? | ||
// todo: how should we handle games, which live under a path? (e.g. www.britannica.com/games/octordle) | ||
// todo: how should we handle games, which live under a path? (e.g. www.britannica.com/games/octordle) can we do something like `href.includes('games/octordle')` rather than `hostname.includes()`? | ||
const productNameMap = { | ||
kids: 'Britannica Kids', | ||
money: 'Britannica Money', | ||
myaccount: 'Billing Preferences', | ||
premium: 'Britannica Premium', | ||
subscription: 'Britannica Premium', | ||
unabridged: 'Merriam-Webster Unabridged', | ||
}; | ||
@@ -125,0 +124,0 @@ // Match the hostname to a key within "productNameMap", otherwise default to "Britannica.com" or "Merriam-Webster" |
@@ -114,9 +114,8 @@ // --- Enums | ||
// todo: which MW subdomains should be included? | ||
// todo: how should we handle games, which live under a path? (e.g. www.britannica.com/games/octordle) | ||
// todo: how should we handle games, which live under a path? (e.g. www.britannica.com/games/octordle) can we do something like `href.includes('games/octordle')` rather than `hostname.includes()`? | ||
const productNameMap = { | ||
kids: 'Britannica Kids', | ||
money: 'Britannica Money', | ||
myaccount: 'Billing Preferences', | ||
premium: 'Britannica Premium', | ||
subscription: 'Britannica Premium', | ||
unabridged: 'Merriam-Webster Unabridged', | ||
}; | ||
@@ -123,0 +122,0 @@ // Match the hostname to a key within "productNameMap", otherwise default to "Britannica.com" or "Merriam-Webster" |
@@ -120,9 +120,8 @@ (function (global, factory) { | ||
// todo: which MW subdomains should be included? | ||
// todo: how should we handle games, which live under a path? (e.g. www.britannica.com/games/octordle) | ||
// todo: how should we handle games, which live under a path? (e.g. www.britannica.com/games/octordle) can we do something like `href.includes('games/octordle')` rather than `hostname.includes()`? | ||
const productNameMap = { | ||
kids: 'Britannica Kids', | ||
money: 'Britannica Money', | ||
myaccount: 'Billing Preferences', | ||
premium: 'Britannica Premium', | ||
subscription: 'Britannica Premium', | ||
unabridged: 'Merriam-Webster Unabridged', | ||
}; | ||
@@ -129,0 +128,0 @@ // Match the hostname to a key within "productNameMap", otherwise default to "Britannica.com" or "Merriam-Webster" |
{ | ||
"name": "@britannica/cam-utils", | ||
"version": "5.0.0-beta.8", | ||
"version": "5.0.0-beta.9", | ||
"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
60893
570