@naylence/runtime 0.3.5-test.7 → 0.3.5-test.900

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.
@@ -3332,38 +3332,37 @@ const ENV_VAR_STORAGE_DB_DIRECTORY = 'FAME_STORAGE_DB_DIRECTORY';
3332
3332
  const ENV_VAR_STORAGE_MASTER_KEY = 'FAME_STORAGE_MASTER_KEY';
3333
3333
  const ENV_VAR_STORAGE_ENCRYPTED = 'FAME_STORAGE_ENCRYPTED';
3334
3334
  const PROFILE_NAME_MEMORY = 'memory';
3335
- const PROFILE_NAME_SQLITE = 'sqlite';
3336
- const PROFILE_NAME_ENCRYPTED_SQLITE = 'encrypted-sqlite';
3335
+ const PROFILE_NAME_INDEXEDDB = 'indexeddb';
3337
3336
  const storageProfileSchema = z
3338
3337
  .object({
3339
3338
  type: z.literal('StorageProfile').default('StorageProfile'),
3340
3339
  profile: z
3341
3340
  .string()
3342
3341
  .optional()
3343
- .describe('Storage profile name (memory | sqlite | encrypted-sqlite)'),
3342
+ .describe('Storage profile name (memory | indexeddb | sqlite | encrypted-sqlite)'),
3344
3343
  })
3345
3344
  .passthrough();
3346
3345
  const MEMORY_PROFILE_CONFIG = {
3347
3346
  type: 'InMemoryStorageProvider',
3348
3347
  };
3349
- const SQLITE_PROFILE_CONFIG = {
3350
- type: 'SQLiteStorageProvider',
3348
+ const INDEXEDDB_PROFILE_CONFIG = {
3349
+ type: 'IndexedDBStorageProvider',
3350
+ };
3351
+ ({
3351
3352
  dbDirectory: Expressions.env(ENV_VAR_STORAGE_DB_DIRECTORY, './data/sqlite'),
3352
3353
  isEncrypted: Expressions.env(ENV_VAR_STORAGE_ENCRYPTED, 'false'),
3353
- masterKey: Expressions.env(ENV_VAR_STORAGE_MASTER_KEY, ''),
3354
- isCached: true,
3355
- };
3356
- const ENCRYPTED_SQLITE_PROFILE_CONFIG = {
3357
- type: 'SQLiteStorageProvider',
3354
+ masterKey: Expressions.env(ENV_VAR_STORAGE_MASTER_KEY, '')});
3355
+ ({
3358
3356
  dbDirectory: Expressions.env(ENV_VAR_STORAGE_DB_DIRECTORY, './data/sqlite'),
3359
- isEncrypted: 'true',
3360
- masterKey: Expressions.env(ENV_VAR_STORAGE_MASTER_KEY),
3361
- isCached: true,
3357
+ masterKey: Expressions.env(ENV_VAR_STORAGE_MASTER_KEY)});
3358
+ // Base profile map with browser-safe options
3359
+ const BASE_PROFILE_MAP = {
3360
+ [PROFILE_NAME_MEMORY]: MEMORY_PROFILE_CONFIG,
3361
+ [PROFILE_NAME_INDEXEDDB]: INDEXEDDB_PROFILE_CONFIG,
3362
3362
  };
3363
+ // Extended profile map - can be augmented by Node.js environment
3363
3364
  const PROFILE_MAP$1 = {
3364
- [PROFILE_NAME_MEMORY]: MEMORY_PROFILE_CONFIG,
3365
- [PROFILE_NAME_SQLITE]: SQLITE_PROFILE_CONFIG,
3366
- [PROFILE_NAME_ENCRYPTED_SQLITE]: ENCRYPTED_SQLITE_PROFILE_CONFIG,
3365
+ ...BASE_PROFILE_MAP,
3367
3366
  };
3368
3367
  class StorageProfileFactory extends StorageProviderFactory {
3369
3368
  constructor() {