@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.esm.js
CHANGED
|
@@ -577,7 +577,7 @@ var AuthProvider = function AuthProvider(_ref) {
|
|
|
577
577
|
var extractPublicPaths = function extractPublicPaths(child) {
|
|
578
578
|
var parentPath = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
579
579
|
if (/*#__PURE__*/React__default.isValidElement(child)) {
|
|
580
|
-
var currentPath = "".concat(parentPath).concat(child.props.path
|
|
580
|
+
var currentPath = "".concat(parentPath).concat(child.props.path ? "/".concat(child.props.path) : '').replace(/\/+/g, '/');
|
|
581
581
|
if (child.props.isPublic) {
|
|
582
582
|
publicPaths.add(currentPath);
|
|
583
583
|
}
|
|
@@ -591,8 +591,7 @@ var AuthProvider = function AuthProvider(_ref) {
|
|
|
591
591
|
React__default.Children.forEach(children, function (child) {
|
|
592
592
|
return extractPublicPaths(child);
|
|
593
593
|
});
|
|
594
|
-
|
|
595
|
-
setPublicPathSet(publicPaths);
|
|
594
|
+
setPublicUrlsList(publicPaths);
|
|
596
595
|
}, [children]);
|
|
597
596
|
|
|
598
597
|
/**
|