authscape 1.0.560 → 1.0.562

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
@@ -350,11 +350,11 @@ function AuthScapeApp(_ref) {
350
350
  }
351
351
  };
352
352
  var GetSignedInUser = function GetSignedInUser() {
353
- var signedInUser = signedInUser.current;
353
+ var _signedInUser = signedInUser.current;
354
354
 
355
355
  // create the prototype for reading role and permission
356
356
 
357
- signedInUser.HasRole = function (name) {
357
+ _signedInUser.HasRole = function (name) {
358
358
  if (currentUser.roles.find(function (r) {
359
359
  return r.name === name;
360
360
  }) != null) {
@@ -363,7 +363,7 @@ function AuthScapeApp(_ref) {
363
363
  return false;
364
364
  }
365
365
  };
366
- signedInUser.HasPermission = function (name) {
366
+ _signedInUser.HasPermission = function (name) {
367
367
  if (currentUser.Permissions.find(function (r) {
368
368
  return r === name;
369
369
  }) != null) {
@@ -372,7 +372,7 @@ function AuthScapeApp(_ref) {
372
372
  return false;
373
373
  }
374
374
  };
375
- return signedInUser;
375
+ return _signedInUser;
376
376
  };
377
377
  var useStore = (0, _zustand.create)(function (set) {
378
378
  return store;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "authscape",
3
- "version": "1.0.560",
3
+ "version": "1.0.562",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -337,11 +337,11 @@ export function AuthScapeApp ({Component, layout, loadingLayout, pageProps, muiT
337
337
 
338
338
  const GetSignedInUser = () => {
339
339
 
340
- let signedInUser = signedInUser.current;
340
+ let _signedInUser = signedInUser.current;
341
341
 
342
342
  // create the prototype for reading role and permission
343
343
 
344
- signedInUser.HasRole = function(name) {
344
+ _signedInUser.HasRole = function(name) {
345
345
 
346
346
  if (currentUser.roles.find(r => r.name === name) != null)
347
347
  {
@@ -354,7 +354,7 @@ export function AuthScapeApp ({Component, layout, loadingLayout, pageProps, muiT
354
354
 
355
355
  };
356
356
 
357
- signedInUser.HasPermission = function(name) {
357
+ _signedInUser.HasPermission = function(name) {
358
358
 
359
359
  if (currentUser.Permissions.find(r => r === name) != null)
360
360
  {
@@ -367,7 +367,7 @@ export function AuthScapeApp ({Component, layout, loadingLayout, pageProps, muiT
367
367
 
368
368
  };
369
369
 
370
- return signedInUser;
370
+ return _signedInUser;
371
371
  }
372
372
 
373
373