http-request-manager 18.13.7 → 18.13.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.
@@ -6179,15 +6179,14 @@ class DbService extends Dexie {
6179
6179
  }
6180
6180
  getTable(tableName) {
6181
6181
  try {
6182
- return this.table(this.cleanTableName(tableName));
6182
+ return this.table(tableName);
6183
6183
  }
6184
6184
  catch (error) {
6185
6185
  return undefined;
6186
6186
  }
6187
6187
  }
6188
6188
  tableExists(tableName) {
6189
- const safe = this.cleanTableName(tableName);
6190
- return this.tables.some(t => t.name === safe);
6189
+ return this.tables.some(t => t.name === tableName);
6191
6190
  }
6192
6191
  async updateTable(tableName, find, data) {
6193
6192
  const table = this.getTable(tableName);
@@ -6210,9 +6209,7 @@ class DbService extends Dexie {
6210
6209
  const safeSchema = schema.trim();
6211
6210
  const currentSchema = this.getCurrentSchema();
6212
6211
  const existingSchema = currentSchema[safeTableName]?.trim();
6213
- // No-op only when table already exists and schema is identical.
6214
- const normalize = (s) => (s ?? '').replace(/\s+/g, '');
6215
- if (this.tableExists(safeTableName) && normalize(existingSchema) === normalize(safeSchema)) {
6212
+ if (this.tableExists(safeTableName) && existingSchema === safeSchema) {
6216
6213
  return;
6217
6214
  }
6218
6215
  console.log('Current Schema before update:', currentSchema);
@@ -6429,10 +6426,6 @@ class DatabaseManagerService extends DbService {
6429
6426
  updateTableRecords(table, records) {
6430
6427
  const tableName = this.cleanTableName(table);
6431
6428
  return this.getDatabaseTable(tableName).pipe(switchMap((tableData) => {
6432
- if (!tableData) {
6433
- console.warn(`updateTableRecords: table "${tableName}" not found`);
6434
- return of([]);
6435
- }
6436
6429
  const insertRecords = records.map((record) => {
6437
6430
  const payload = { ...(record || {}) };
6438
6431
  if (payload.id === undefined || payload.id === null || payload.id === '') {