@veripass/react-sdk 1.0.17 → 1.0.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/dist/react-sdk.cjs.js
CHANGED
|
@@ -597,7 +597,7 @@ var AuthProvider = function AuthProvider(_ref) {
|
|
|
597
597
|
var extractPublicPaths = function extractPublicPaths(child) {
|
|
598
598
|
var parentPath = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
599
599
|
if (/*#__PURE__*/React.isValidElement(child)) {
|
|
600
|
-
var currentPath = "".concat(parentPath).concat(child.props.path
|
|
600
|
+
var currentPath = "".concat(parentPath).concat(child.props.path ? "/".concat(child.props.path) : '').replace(/\/+/g, '/');
|
|
601
601
|
if (child.props.isPublic) {
|
|
602
602
|
publicPaths.add(currentPath);
|
|
603
603
|
}
|
|
@@ -611,8 +611,7 @@ var AuthProvider = function AuthProvider(_ref) {
|
|
|
611
611
|
React.Children.forEach(children, function (child) {
|
|
612
612
|
return extractPublicPaths(child);
|
|
613
613
|
});
|
|
614
|
-
|
|
615
|
-
setPublicPathSet(publicPaths);
|
|
614
|
+
setPublicUrlsList(publicPaths);
|
|
616
615
|
}, [children]);
|
|
617
616
|
|
|
618
617
|
/**
|