bulltrackers-module 1.0.606 → 1.0.607

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.
@@ -20,10 +20,12 @@ const PUBLIC_ROUTES = [
20
20
  '/popular-investors/categories',
21
21
  '/popular-investors/master-list',
22
22
  '/popular-investors/search',
23
+ '/popular-investors/profile', // Public PI profiles - userCid optional for personalization
23
24
  '/verification/lookup', // Uses Firebase Auth token instead of userCid
24
25
  '/alerts/types', // Static data - doesn't need userCid
25
26
  '/alerts/dynamic-watchlist-computations', // Static data - doesn't need userCid
26
- '/popular-investors/track-view' // Optional userCid - can track views anonymously
27
+ '/popular-investors/track-view', // Optional userCid - can track views anonymously
28
+ '/reviews' // Public reviews - userCid optional (for showing current user's review)
27
29
  ];
28
30
 
29
31
  const isPublicRoute = (path, originalUrl) => {
@@ -36,10 +38,21 @@ const isPublicRoute = (path, originalUrl) => {
36
38
  if (fullPath === route || fullPath.includes(route)) {
37
39
  return true;
38
40
  }
39
- // Pattern match for routes with parameters (e.g., /popular-investors/:piId/track-view)
41
+ // Pattern match for routes with parameters
42
+ // /popular-investors/:piId/profile or /popular-investors/:piId/track-view
43
+ if (route.includes('/profile') && fullPath.includes('/profile')) {
44
+ return true;
45
+ }
40
46
  if (route.includes('/track-view') && fullPath.includes('/track-view')) {
41
47
  return true;
42
48
  }
49
+ // /reviews/:piId (but not /reviews/me or /reviews/:piId/eligibility)
50
+ if (route === '/reviews' && fullPath.startsWith('/reviews/')) {
51
+ // Exclude /reviews/me (requires auth) and /reviews/:piId/eligibility (requires auth)
52
+ if (!fullPath.startsWith('/reviews/me') && !fullPath.includes('/eligibility')) {
53
+ return true;
54
+ }
55
+ }
43
56
  }
44
57
 
45
58
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bulltrackers-module",
3
- "version": "1.0.606",
3
+ "version": "1.0.607",
4
4
  "description": "Helper Functions for Bulltrackers.",
5
5
  "main": "index.js",
6
6
  "files": [