Skip to content

Commit f401bc0

Browse files
author
Amine
committed
fix: update import paths in attachment-related files to use local modules
1 parent d179b9c commit f401bc0

File tree

5 files changed

+15
-11
lines changed

5 files changed

+15
-11
lines changed

packages/common/src/attachments/AttachmentContext.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
import { AbstractPowerSyncDatabase, ILogger, Transaction } from '@powersync/common';
1+
import { AbstractPowerSyncDatabase } from '../client/AbstractPowerSyncDatabase.js';
2+
import { ILogger } from '../utils/Logger.js';
3+
import { Transaction } from '../db/DBAdapter.js';
24
import { AttachmentRecord, AttachmentState, attachmentFromSql } from './Schema.js';
35

46
/**

packages/common/src/attachments/AttachmentQueue.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
import {
2-
AbstractPowerSyncDatabase,
3-
DEFAULT_WATCH_THROTTLE_MS,
4-
DifferentialWatchedQuery,
5-
ILogger,
6-
Transaction
7-
} from '@powersync/common';
1+
import { AbstractPowerSyncDatabase } from '../client/AbstractPowerSyncDatabase.js';
2+
import { DEFAULT_WATCH_THROTTLE_MS } from '../client/watched/WatchedQuery.js';
3+
import { DifferentialWatchedQuery } from '../client/watched/processors/DifferentialQueryProcessor.js';
4+
import { ILogger } from '../utils/Logger.js';
5+
import { Transaction } from '../db/DBAdapter.js';
86
import { AttachmentContext } from './AttachmentContext.js';
97
import { AttachmentData, LocalStorageAdapter } from './LocalStorageAdapter.js';
108
import { RemoteStorageAdapter } from './RemoteStorageAdapter.js';

packages/common/src/attachments/AttachmentService.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
import { AbstractPowerSyncDatabase, DifferentialWatchedQuery, ILogger } from '@powersync/common';
1+
import { AbstractPowerSyncDatabase } from '../client/AbstractPowerSyncDatabase.js';
2+
import { DifferentialWatchedQuery } from '../client/watched/processors/DifferentialQueryProcessor.js';
3+
import { ILogger } from '../utils/Logger.js';
24
import { AttachmentRecord, AttachmentState } from './Schema.js';
35

46
/**

packages/common/src/attachments/Schema.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
import { column, Table, TableV2Options } from '@powersync/common';
1+
import { column } from '../db/schema/Column.js';
2+
import { Table } from '../db/schema/Table.js';
3+
import { TableV2Options } from '../db/schema/Table.js';
24

35
export const ATTACHMENT_TABLE = 'attachments';
46

packages/common/src/attachments/SyncingService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ILogger } from '@powersync/common';
1+
import { ILogger } from '../utils/Logger.js';
22
import { AttachmentContext } from './AttachmentContext.js';
33
import { LocalStorageAdapter } from './LocalStorageAdapter.js';
44
import { RemoteStorageAdapter } from './RemoteStorageAdapter.js';

0 commit comments

Comments
 (0)