@webiny/app-security 5.34.0 → 5.34.1-beta.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/Security.js +3 -9
- package/Security.js.map +1 -1
- package/package.json +6 -7
package/Security.js
CHANGED
|
@@ -9,11 +9,11 @@ exports.Security = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _app = require("@webiny/app");
|
|
13
13
|
|
|
14
14
|
var _Security = require("./contexts/Security");
|
|
15
15
|
|
|
16
|
-
// Importing from `app-
|
|
16
|
+
// Importing from `app-core` and NOT from `app-admin`, to avoid circular dependency.
|
|
17
17
|
// This can be resolved in a different way, by changing the location of `AppInstaller` component (currently in `app-admin`).
|
|
18
18
|
// But this is a faster solution, as I'm really short on time :)
|
|
19
19
|
var SecurityProviderHOC = function SecurityProviderHOC(Component) {
|
|
@@ -24,13 +24,7 @@ var SecurityProviderHOC = function SecurityProviderHOC(Component) {
|
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
var Security = function Security() {
|
|
27
|
-
|
|
28
|
-
* TODO @ts-refactor somewhere down the line in Provider.
|
|
29
|
-
* Provider expects ComponentType and we are giving it the React.FC.
|
|
30
|
-
* It works, just the types are wrong.
|
|
31
|
-
*/
|
|
32
|
-
// @ts-ignore
|
|
33
|
-
return /*#__PURE__*/_react.default.createElement(_appAdminCore.Provider, {
|
|
27
|
+
return /*#__PURE__*/_react.default.createElement(_app.Provider, {
|
|
34
28
|
hoc: SecurityProviderHOC
|
|
35
29
|
});
|
|
36
30
|
};
|
package/Security.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["SecurityProviderHOC","Component","SecurityProvider","children","Security"],"sources":["Security.tsx"],"sourcesContent":["// Importing from `app-
|
|
1
|
+
{"version":3,"names":["SecurityProviderHOC","Component","SecurityProvider","children","Security"],"sources":["Security.tsx"],"sourcesContent":["// Importing from `app-core` and NOT from `app-admin`, to avoid circular dependency.\n// This can be resolved in a different way, by changing the location of `AppInstaller` component (currently in `app-admin`).\n// But this is a faster solution, as I'm really short on time :)\nimport React from \"react\";\nimport { Provider } from \"@webiny/app\";\nimport { SecurityProvider as ContextProvider } from \"./contexts/Security\";\n\nconst SecurityProviderHOC = (Component: React.FC<any>): React.FC<any> => {\n return function SecurityProvider({ children }) {\n return (\n <ContextProvider>\n <Component>{children}</Component>\n </ContextProvider>\n );\n };\n};\n\nexport const Security: React.FC = () => {\n return <Provider hoc={SecurityProviderHOC} />;\n};\n"],"mappings":";;;;;;;;;AAGA;;AACA;;AACA;;AALA;AACA;AACA;AAKA,IAAMA,mBAAmB,GAAG,SAAtBA,mBAAsB,CAACC,SAAD,EAA6C;EACrE,OAAO,SAASC,gBAAT,OAAwC;IAAA,IAAZC,QAAY,QAAZA,QAAY;IAC3C,oBACI,6BAAC,0BAAD,qBACI,6BAAC,SAAD,QAAYA,QAAZ,CADJ,CADJ;EAKH,CAND;AAOH,CARD;;AAUO,IAAMC,QAAkB,GAAG,SAArBA,QAAqB,GAAM;EACpC,oBAAO,6BAAC,aAAD;IAAU,GAAG,EAAEJ;EAAf,EAAP;AACH,CAFM"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/app-security",
|
|
3
|
-
"version": "5.34.0",
|
|
3
|
+
"version": "5.34.1-beta.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -13,9 +13,8 @@
|
|
|
13
13
|
],
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@webiny/app": "5.34.0",
|
|
17
|
-
"@webiny/
|
|
18
|
-
"@webiny/plugins": "5.34.0",
|
|
16
|
+
"@webiny/app": "5.34.1-beta.0",
|
|
17
|
+
"@webiny/plugins": "5.34.1-beta.0",
|
|
19
18
|
"minimatch": "3.1.2",
|
|
20
19
|
"react": "17.0.2",
|
|
21
20
|
"react-dom": "17.0.2"
|
|
@@ -27,8 +26,8 @@
|
|
|
27
26
|
"@babel/preset-env": "^7.19.4",
|
|
28
27
|
"@babel/preset-react": "^7.16.0",
|
|
29
28
|
"@babel/preset-typescript": "^7.18.6",
|
|
30
|
-
"@webiny/cli": "^5.34.0",
|
|
31
|
-
"@webiny/project-utils": "^5.34.0",
|
|
29
|
+
"@webiny/cli": "^5.34.1-beta.0",
|
|
30
|
+
"@webiny/project-utils": "^5.34.1-beta.0",
|
|
32
31
|
"babel-plugin-emotion": "^9.2.8",
|
|
33
32
|
"babel-plugin-lodash": "^3.3.4",
|
|
34
33
|
"rimraf": "^3.0.2",
|
|
@@ -50,5 +49,5 @@
|
|
|
50
49
|
]
|
|
51
50
|
}
|
|
52
51
|
},
|
|
53
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "c893b6c771e45d4b2ea13da4f17455abdaef8239"
|
|
54
53
|
}
|