authscape 1.0.688 → 1.0.690

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.
package/index.js CHANGED
@@ -16,7 +16,6 @@ var _router = _interopRequireDefault(require("next/router"));
16
16
  var _ga4React = _interopRequireDefault(require("ga-4-react"));
17
17
  var _zustand = require("zustand");
18
18
  var _reactMicrosoftClarity = require("react-microsoft-clarity");
19
- var _authService = require("../services/authService");
20
19
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
21
20
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
22
21
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
@@ -29,10 +28,7 @@ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructur
29
28
  function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
30
29
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
31
30
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
32
- function _arrayWithHoles(r) { if (Array.isArray(r)) return r; } // import Cookies from 'js-cookie';
33
- // comment this out
34
- // import { authService, apiService, setupOEMProps, OEMStyleSheet } from 'authscape';
35
-
31
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
36
32
  function AuthScapeApp(_ref) {
37
33
  var Component = _ref.Component,
38
34
  layout = _ref.layout,
@@ -334,7 +330,7 @@ function AuthScapeApp(_ref) {
334
330
  }
335
331
  (0, _react.useEffect)(function () {
336
332
  if (signedInUserState == null && enforceLoggedIn && pathname != "/signin-oidc" && frontEndLoadedState == true) {
337
- (0, _authService.authService)().login();
333
+ authService().login();
338
334
  }
339
335
  }, [signedInUserState, enforceLoggedIn, frontEndLoadedState]);
340
336
  var setIsLoading = function setIsLoading(isLoading) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "authscape",
3
- "version": "1.0.688",
3
+ "version": "1.0.690",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -5,15 +5,10 @@ import Head from "next/head";
5
5
  import { useSearchParams, usePathname } from 'next/navigation';
6
6
  import axios from 'axios';
7
7
  import querystring from "query-string";
8
- // import Cookies from 'js-cookie';
9
8
  import Router from 'next/router';
10
9
  import GA4React from 'ga-4-react';
11
10
  import { create } from 'zustand'
12
11
  import { clarity } from 'react-microsoft-clarity';
13
- import { authService } from '../services/authService';
14
-
15
- // comment this out
16
- // import { authService, apiService, setupOEMProps, OEMStyleSheet } from 'authscape';
17
12
 
18
13
  export function AuthScapeApp ({Component, layout, loadingLayout, pageProps, muiTheme = {}, store={}, enforceLoggedIn = false, enableAuth = true}) {
19
14