web-manager 3.2.11 → 3.2.13

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.
@@ -21,29 +21,4 @@ function AuthPages() {
21
21
  })
22
22
  }
23
23
 
24
- // function AuthPages() {
25
- // var self = this;
26
- // dom = window.Manager.dom();
27
- // var authRegex = /\/(signin|signup|forgot)/;
28
- // var pageQueryString = window.Manager.properties.page.queryString;
29
- // var pageAuthRedirect = pageQueryString.get('auth_redirect')
30
- //
31
- // if (pageAuthRedirect) {
32
- // dom.select('a').each(function (el) {
33
- // var href = el.getAttribute('href');
34
- // if (href && href.match(authRegex)) {
35
- // try {
36
- // var newURL = new URL(href);
37
- // if (newURL.pathname.match(authRegex)) {
38
- // newURL.searchParams.set('auth_redirect', pageAuthRedirect)
39
- // el.setAttribute('href', newURL.toString())
40
- // }
41
- // } catch (e) {
42
- // // console.warn('Failed to set auth URL', e);
43
- // }
44
- // }
45
- // })
46
- // }
47
- // }
48
-
49
24
  module.exports = AuthPages;
package/index.js CHANGED
@@ -580,7 +580,7 @@ function Manager() {
580
580
  return window.location.href = redirect;
581
581
  }
582
582
 
583
- if (pagePathname.match(/\/(signin|signup|forgot)\//)) {
583
+ if (pagePathname.match(/\/(authentication-required|authentication-success|authentication-token|forgot|oauth2|signin|signout|signup)/)) {
584
584
  import('./helpers/auth-pages.js')
585
585
  .then(function(mod) {
586
586
  mod.default()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-manager",
3
- "version": "3.2.11",
3
+ "version": "3.2.13",
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": {