@frontegg/react-hooks 6.188.0-alpha.18 → 6.188.0-alpha.19
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/entitlements.js +0 -11
- package/index.js +1 -1
- package/node/auth/entitlements.js +0 -11
- package/node/index.js +1 -1
- package/package.json +3 -3
package/auth/entitlements.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/* ts-ignore */
|
|
2
|
-
|
|
3
1
|
import { getPermissionEntitlements, getFeatureEntitlements, getEntitlements } from '@frontegg/redux-store';
|
|
4
2
|
import { useAuth } from './hooks';
|
|
5
3
|
import { useMemo } from 'react';
|
|
@@ -47,15 +45,6 @@ export const useFeatureEntitlements = (key, customAttributes) => {
|
|
|
47
45
|
entitlements,
|
|
48
46
|
attributes
|
|
49
47
|
} = useEntitlementsQueryData(customAttributes);
|
|
50
|
-
if (key === 'multi-apps') {
|
|
51
|
-
console.log('~~~~~~~~~~~~~~~~~~~~~');
|
|
52
|
-
console.log('multi-apps');
|
|
53
|
-
console.log(getFeatureEntitlements(entitlements, key, attributes));
|
|
54
|
-
console.log(entitlements);
|
|
55
|
-
console.log(attributes);
|
|
56
|
-
console.log(JSON.stringify(entitlements));
|
|
57
|
-
console.log(JSON.stringify(attributes));
|
|
58
|
-
}
|
|
59
48
|
return getFeatureEntitlements(entitlements, key, attributes);
|
|
60
49
|
};
|
|
61
50
|
|
package/index.js
CHANGED
|
@@ -9,8 +9,6 @@ var _hooks = require("./hooks");
|
|
|
9
9
|
var _react = require("react");
|
|
10
10
|
var _common = require("../common");
|
|
11
11
|
var _flags = require("../flags");
|
|
12
|
-
/* ts-ignore */
|
|
13
|
-
|
|
14
12
|
/**
|
|
15
13
|
* @returns entitlemenets state as stored in the user
|
|
16
14
|
*/
|
|
@@ -52,15 +50,6 @@ const useFeatureEntitlements = (key, customAttributes) => {
|
|
|
52
50
|
entitlements,
|
|
53
51
|
attributes
|
|
54
52
|
} = useEntitlementsQueryData(customAttributes);
|
|
55
|
-
if (key === 'multi-apps') {
|
|
56
|
-
console.log('~~~~~~~~~~~~~~~~~~~~~');
|
|
57
|
-
console.log('multi-apps');
|
|
58
|
-
console.log((0, _reduxStore.getFeatureEntitlements)(entitlements, key, attributes));
|
|
59
|
-
console.log(entitlements);
|
|
60
|
-
console.log(attributes);
|
|
61
|
-
console.log(JSON.stringify(entitlements));
|
|
62
|
-
console.log(JSON.stringify(attributes));
|
|
63
|
-
}
|
|
64
53
|
return (0, _reduxStore.getFeatureEntitlements)(entitlements, key, attributes);
|
|
65
54
|
};
|
|
66
55
|
|
package/node/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontegg/react-hooks",
|
|
3
|
-
"version": "6.188.0-alpha.
|
|
3
|
+
"version": "6.188.0-alpha.19",
|
|
4
4
|
"main": "./node/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Frontegg LTD",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@babel/runtime": "^7.18.6",
|
|
9
|
-
"@frontegg/redux-store": "6.188.0-alpha.
|
|
10
|
-
"@frontegg/types": "6.188.0-alpha.
|
|
9
|
+
"@frontegg/redux-store": "6.188.0-alpha.19",
|
|
10
|
+
"@frontegg/types": "6.188.0-alpha.19",
|
|
11
11
|
"@types/react": "*",
|
|
12
12
|
"get-value": "^3.0.1",
|
|
13
13
|
"react-redux": "^7.x"
|