@naylence/runtime 0.3.5-test.8 → 0.3.5-test.901

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.
@@ -3333,8 +3333,6 @@ 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
3335
  const PROFILE_NAME_INDEXEDDB = 'indexeddb';
3336
- const PROFILE_NAME_SQLITE = 'sqlite';
3337
- const PROFILE_NAME_ENCRYPTED_SQLITE = 'encrypted-sqlite';
3338
3336
  const storageProfileSchema = z
3339
3337
  .object({
3340
3338
  type: z.literal('StorageProfile').default('StorageProfile'),
@@ -3350,20 +3348,13 @@ const MEMORY_PROFILE_CONFIG = {
3350
3348
  const INDEXEDDB_PROFILE_CONFIG = {
3351
3349
  type: 'IndexedDBStorageProvider',
3352
3350
  };
3353
- const SQLITE_PROFILE_CONFIG = {
3354
- type: 'SQLiteStorageProvider',
3351
+ ({
3355
3352
  dbDirectory: Expressions.env(ENV_VAR_STORAGE_DB_DIRECTORY, './data/sqlite'),
3356
3353
  isEncrypted: Expressions.env(ENV_VAR_STORAGE_ENCRYPTED, 'false'),
3357
- masterKey: Expressions.env(ENV_VAR_STORAGE_MASTER_KEY, ''),
3358
- isCached: true,
3359
- };
3360
- const ENCRYPTED_SQLITE_PROFILE_CONFIG = {
3361
- type: 'SQLiteStorageProvider',
3354
+ masterKey: Expressions.env(ENV_VAR_STORAGE_MASTER_KEY, '')});
3355
+ ({
3362
3356
  dbDirectory: Expressions.env(ENV_VAR_STORAGE_DB_DIRECTORY, './data/sqlite'),
3363
- isEncrypted: 'true',
3364
- masterKey: Expressions.env(ENV_VAR_STORAGE_MASTER_KEY),
3365
- isCached: true,
3366
- };
3357
+ masterKey: Expressions.env(ENV_VAR_STORAGE_MASTER_KEY)});
3367
3358
  // Base profile map with browser-safe options
3368
3359
  const BASE_PROFILE_MAP = {
3369
3360
  [PROFILE_NAME_MEMORY]: MEMORY_PROFILE_CONFIG,
@@ -3373,12 +3364,6 @@ const BASE_PROFILE_MAP = {
3373
3364
  const PROFILE_MAP$1 = {
3374
3365
  ...BASE_PROFILE_MAP,
3375
3366
  };
3376
- // Register SQLite profiles if we're in Node.js environment
3377
- // This check allows the code to work in both browser and Node.js
3378
- if (typeof process !== 'undefined' && process.versions?.node) {
3379
- PROFILE_MAP$1[PROFILE_NAME_SQLITE] = SQLITE_PROFILE_CONFIG;
3380
- PROFILE_MAP$1[PROFILE_NAME_ENCRYPTED_SQLITE] = ENCRYPTED_SQLITE_PROFILE_CONFIG;
3381
- }
3382
3367
  class StorageProfileFactory extends StorageProviderFactory {
3383
3368
  constructor() {
3384
3369
  super(...arguments);