@frontegg/redux-store 6.86.0 → 6.88.0
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/auth/Helpers/index.d.ts +1 -0
- package/auth/Helpers/index.js +1 -0
- package/auth/Helpers/isAuthRoute.d.ts +2 -0
- package/auth/Helpers/isAuthRoute.js +9 -0
- package/auth/index.d.ts +1 -0
- package/auth/index.js +1 -0
- package/index.js +1 -1
- package/node/auth/Helpers/index.js +16 -0
- package/node/auth/Helpers/isAuthRoute.js +17 -0
- package/node/auth/index.js +12 -0
- package/node/index.js +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './isAuthRoute';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './isAuthRoute';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
+
const _excluded = ["authenticatedUrl"];
|
|
4
|
+
import { authInitialState } from '../..';
|
|
5
|
+
export const isAuthRoute = (path, routes) => {
|
|
6
|
+
const _authInitialState$rou = _extends({}, authInitialState.routes, routes),
|
|
7
|
+
authRoutes = _objectWithoutPropertiesLoose(_authInitialState$rou, _excluded);
|
|
8
|
+
return Object.values(authRoutes).includes(path);
|
|
9
|
+
};
|
package/auth/index.d.ts
CHANGED
|
@@ -50,6 +50,7 @@ export * from './Provisioning';
|
|
|
50
50
|
export * from './Provisioning/interfaces';
|
|
51
51
|
export * from './PasskeysState';
|
|
52
52
|
export * from './PasskeysState/interfaces';
|
|
53
|
+
export * from './Helpers';
|
|
53
54
|
export type { AuthActions } from './reducer';
|
|
54
55
|
export { sagas as authSagas, mockSagas as authMockSagas, reducer as authReducers, actions as authActions, initialState as authInitialState, storeName as authStoreName, };
|
|
55
56
|
declare const _default: {
|
package/auth/index.js
CHANGED
|
@@ -52,6 +52,7 @@ export * from './Provisioning';
|
|
|
52
52
|
export * from './Provisioning/interfaces';
|
|
53
53
|
export * from './PasskeysState';
|
|
54
54
|
export * from './PasskeysState/interfaces';
|
|
55
|
+
export * from './Helpers';
|
|
55
56
|
export { sagas as authSagas, mockSagas as authMockSagas, reducer as authReducers, actions as authActions, initialState as authInitialState, storeName as authStoreName };
|
|
56
57
|
// export store
|
|
57
58
|
export default {
|
package/index.js
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _isAuthRoute = require("./isAuthRoute");
|
|
7
|
+
Object.keys(_isAuthRoute).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _isAuthRoute[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _isAuthRoute[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.isAuthRoute = void 0;
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
+
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
10
|
+
var _ = require("../..");
|
|
11
|
+
const _excluded = ["authenticatedUrl"];
|
|
12
|
+
const isAuthRoute = (path, routes) => {
|
|
13
|
+
const _authInitialState$rou = (0, _extends2.default)({}, _.authInitialState.routes, routes),
|
|
14
|
+
authRoutes = (0, _objectWithoutPropertiesLoose2.default)(_authInitialState$rou, _excluded);
|
|
15
|
+
return Object.values(authRoutes).includes(path);
|
|
16
|
+
};
|
|
17
|
+
exports.isAuthRoute = isAuthRoute;
|
package/node/auth/index.js
CHANGED
|
@@ -628,6 +628,18 @@ Object.keys(_interfaces24).forEach(function (key) {
|
|
|
628
628
|
}
|
|
629
629
|
});
|
|
630
630
|
});
|
|
631
|
+
var _Helpers = require("./Helpers");
|
|
632
|
+
Object.keys(_Helpers).forEach(function (key) {
|
|
633
|
+
if (key === "default" || key === "__esModule") return;
|
|
634
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
635
|
+
if (key in exports && exports[key] === _Helpers[key]) return;
|
|
636
|
+
Object.defineProperty(exports, key, {
|
|
637
|
+
enumerable: true,
|
|
638
|
+
get: function () {
|
|
639
|
+
return _Helpers[key];
|
|
640
|
+
}
|
|
641
|
+
});
|
|
642
|
+
});
|
|
631
643
|
// export types
|
|
632
644
|
// export store
|
|
633
645
|
var _default = {
|
package/node/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontegg/redux-store",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.88.0",
|
|
4
4
|
"main": "./node/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Frontegg LTD",
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
"@babel/runtime": "^7.18.6",
|
|
9
9
|
"@frontegg/rest-api": "^3.0.95",
|
|
10
10
|
"@reduxjs/toolkit": "^1.8.5",
|
|
11
|
+
"js-sha256": "0.9.0",
|
|
11
12
|
"redux-saga": "^1.2.1",
|
|
12
|
-
"uuid": "^8.3.2"
|
|
13
|
-
"js-sha256": "0.9.0"
|
|
13
|
+
"uuid": "^8.3.2"
|
|
14
14
|
},
|
|
15
15
|
"sideEffects": false,
|
|
16
16
|
"private": false,
|