web-manager 3.2.21 → 3.2.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/account.js +7 -1
  2. package/package.json +2 -2
package/lib/account.js CHANGED
@@ -180,6 +180,12 @@ function handlePlanVisibility(planId) {
180
180
  });
181
181
  }
182
182
 
183
+ function splitDashesAndUppercase(str) {
184
+ return str.split('-').map(function (word) {
185
+ return uppercase(word);
186
+ }).join(' ');
187
+ }
188
+
183
189
  function uppercase(str) {
184
190
  return str.charAt(0).toUpperCase() + str.slice(1);
185
191
  }
@@ -464,7 +470,7 @@ Account.prototype._resolveAccount = function (firebaseUser, account, options) {
464
470
  }
465
471
 
466
472
  // Update billing UI
467
- billingPlanId.setInnerHTML(uppercase(account.plan.id));
473
+ billingPlanId.setInnerHTML(splitDashesAndUppercase(account.plan.id));
468
474
  billingFrequencyEl.setInnerHTML(account.plan.id !== defaultPlanId ? ' (billed ' + uppercase(account.plan.payment.frequency) + ')' : '');
469
475
  billingStartDateEl.setInnerHTML(account.plan.id !== defaultPlanId ? ' - Purchased ' + getMonth(startDate) + ' ' + startDate.getDate() + ', ' + startDate.getFullYear() : '');
470
476
  billingExpirationDateEl.setInnerHTML(account.plan.id !== defaultPlanId && daysTillExpire < 366
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-manager",
3
- "version": "3.2.21",
3
+ "version": "3.2.22",
4
4
  "description": "Easily access important variables such as the query string, current domain, and current page in a single object.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -36,4 +36,4 @@
36
36
  "firebase": "^9.23.0",
37
37
  "lazysizes": "^5.3.2"
38
38
  }
39
- }
39
+ }