@pol-studios/db 1.0.63 → 1.0.64

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.
@@ -4288,13 +4288,35 @@ function generatePowerSyncAlias(tableName) {
4288
4288
  return `${pascalSchema}${table}`;
4289
4289
  }
4290
4290
  function getPowerSyncAlias(tableName, strategy) {
4291
+ if (typeof __DEV__ !== "undefined" && __DEV__) {
4292
+ console.log("[registry.getPowerSyncAlias] Input:", {
4293
+ tableName,
4294
+ hasStrategy: !!strategy,
4295
+ strategyType: strategy?.strategy,
4296
+ strategyObject: strategy
4297
+ });
4298
+ }
4291
4299
  if (strategy && (strategy.strategy === "powersync" || strategy.strategy === "hybrid")) {
4292
4300
  const typedStrategy = strategy;
4301
+ if (typeof __DEV__ !== "undefined" && __DEV__) {
4302
+ console.log("[registry.getPowerSyncAlias] Checking alias branch:", {
4303
+ isPowerSyncOrHybrid: true,
4304
+ hasAliasProperty: "alias" in typedStrategy,
4305
+ aliasValue: typedStrategy.alias
4306
+ });
4307
+ }
4293
4308
  if (typedStrategy.alias) {
4309
+ if (typeof __DEV__ !== "undefined" && __DEV__) {
4310
+ console.log("[registry.getPowerSyncAlias] Returning explicit alias:", typedStrategy.alias);
4311
+ }
4294
4312
  return typedStrategy.alias;
4295
4313
  }
4296
4314
  }
4297
- return stripSchemaPrefix(tableName);
4315
+ const result = stripSchemaPrefix(tableName);
4316
+ if (typeof __DEV__ !== "undefined" && __DEV__) {
4317
+ console.log("[registry.getPowerSyncAlias] Returning stripped name:", result);
4318
+ }
4319
+ return result;
4298
4320
  }
4299
4321
  var AdapterRegistry = class {
4300
4322
  /**
@@ -7944,4 +7966,4 @@ moment/moment.js:
7944
7966
  (*! license : MIT *)
7945
7967
  (*! momentjs.com *)
7946
7968
  */
7947
- //# sourceMappingURL=chunk-FWCHS5NN.js.map
7969
+ //# sourceMappingURL=chunk-SNZDLVVQ.js.map