@naylence/runtime 0.3.5-test.8 → 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.
@@ -4895,8 +4895,6 @@ const ENV_VAR_STORAGE_MASTER_KEY = 'FAME_STORAGE_MASTER_KEY';
4895
4895
  const ENV_VAR_STORAGE_ENCRYPTED = 'FAME_STORAGE_ENCRYPTED';
4896
4896
  const PROFILE_NAME_MEMORY = 'memory';
4897
4897
  const PROFILE_NAME_INDEXEDDB = 'indexeddb';
4898
- const PROFILE_NAME_SQLITE = 'sqlite';
4899
- const PROFILE_NAME_ENCRYPTED_SQLITE = 'encrypted-sqlite';
4900
4898
  const storageProfileSchema = zod.z
4901
4899
  .object({
4902
4900
  type: zod.z.literal('StorageProfile').default('StorageProfile'),
@@ -4912,20 +4910,13 @@ const MEMORY_PROFILE_CONFIG = {
4912
4910
  const INDEXEDDB_PROFILE_CONFIG = {
4913
4911
  type: 'IndexedDBStorageProvider',
4914
4912
  };
4915
- const SQLITE_PROFILE_CONFIG = {
4916
- type: 'SQLiteStorageProvider',
4913
+ ({
4917
4914
  dbDirectory: factory.Expressions.env(ENV_VAR_STORAGE_DB_DIRECTORY, './data/sqlite'),
4918
4915
  isEncrypted: factory.Expressions.env(ENV_VAR_STORAGE_ENCRYPTED, 'false'),
4919
- masterKey: factory.Expressions.env(ENV_VAR_STORAGE_MASTER_KEY, ''),
4920
- isCached: true,
4921
- };
4922
- const ENCRYPTED_SQLITE_PROFILE_CONFIG = {
4923
- type: 'SQLiteStorageProvider',
4916
+ masterKey: factory.Expressions.env(ENV_VAR_STORAGE_MASTER_KEY, '')});
4917
+ ({
4924
4918
  dbDirectory: factory.Expressions.env(ENV_VAR_STORAGE_DB_DIRECTORY, './data/sqlite'),
4925
- isEncrypted: 'true',
4926
- masterKey: factory.Expressions.env(ENV_VAR_STORAGE_MASTER_KEY),
4927
- isCached: true,
4928
- };
4919
+ masterKey: factory.Expressions.env(ENV_VAR_STORAGE_MASTER_KEY)});
4929
4920
  // Base profile map with browser-safe options
4930
4921
  const BASE_PROFILE_MAP = {
4931
4922
  [PROFILE_NAME_MEMORY]: MEMORY_PROFILE_CONFIG,
@@ -4935,12 +4926,6 @@ const BASE_PROFILE_MAP = {
4935
4926
  const PROFILE_MAP$1 = {
4936
4927
  ...BASE_PROFILE_MAP,
4937
4928
  };
4938
- // Register SQLite profiles if we're in Node.js environment
4939
- // This check allows the code to work in both browser and Node.js
4940
- if (typeof process !== 'undefined' && process.versions?.node) {
4941
- PROFILE_MAP$1[PROFILE_NAME_SQLITE] = SQLITE_PROFILE_CONFIG;
4942
- PROFILE_MAP$1[PROFILE_NAME_ENCRYPTED_SQLITE] = ENCRYPTED_SQLITE_PROFILE_CONFIG;
4943
- }
4944
4929
  class StorageProfileFactory extends StorageProviderFactory {
4945
4930
  constructor() {
4946
4931
  super(...arguments);