@ramme-io/create-app 1.2.7 → 1.2.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ramme-io/create-app",
3
- "version": "1.2.7",
3
+ "version": "1.2.8",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "create-ramme-app": "./index.js"
@@ -1,5 +1,4 @@
1
- // Match the export from your new mockData.ts
2
- import { DATA_REGISTRY } from '../../data/mockData';
1
+ import { DATA_REGISTRY } from '../../data/mockData';
3
2
 
4
3
  /**
5
4
  * @file data-seeder.ts
@@ -10,16 +9,15 @@ import { DATA_REGISTRY } from '../../data/mockData';
10
9
  * from `mockData.ts` into the browser's storage.
11
10
  */
12
11
 
13
- // 🔒 SHARED CONSTANT: Ensure everyone uses the same key format
14
- const DB_PREFIX = 'ramme_mock_';
12
+ // 🔒 CRITICAL FIX: Changed from 'ramme_mock_' to 'ramme_db_' to match AuthContext
13
+ const DB_PREFIX = 'ramme_db_';
15
14
 
16
15
  export const initializeDataLake = () => {
17
16
  if (typeof window === 'undefined') return;
18
17
 
19
18
  console.groupCollapsed('🌊 [Data Lake] Initialization');
20
-
21
19
  Object.entries(DATA_REGISTRY).forEach(([key, seedData]) => {
22
- // FIX: Use the prefix so getMockData() can find it
20
+ // This now generates 'ramme_db_users', matching AuthContext
23
21
  const storageKey = `${DB_PREFIX}${key}`;
24
22
  const existing = localStorage.getItem(storageKey);
25
23
 
@@ -30,7 +28,6 @@ export const initializeDataLake = () => {
30
28
  console.log(`✅ Collection exists: ${key}`);
31
29
  }
32
30
  });
33
-
34
31
  console.groupEnd();
35
32
  };
36
33