document-drive 0.0.9 → 0.0.10
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.
- package/package.json +1 -1
- package/src/server/types.ts +1 -4
- package/src/storage/filesystem.ts +2 -2
package/package.json
CHANGED
package/src/server/types.ts
CHANGED
|
@@ -10,10 +10,7 @@ import type {
|
|
|
10
10
|
Signal
|
|
11
11
|
} from 'document-model/document';
|
|
12
12
|
|
|
13
|
-
export type DriveInput = Omit<
|
|
14
|
-
DocumentDriveState,
|
|
15
|
-
'__typename' | 'remoteUrl' | 'nodes'
|
|
16
|
-
>;
|
|
13
|
+
export type DriveInput = Omit<DocumentDriveState, '__typename' | 'nodes'>;
|
|
17
14
|
|
|
18
15
|
export type CreateDocumentInput = {
|
|
19
16
|
id: string;
|
|
@@ -120,8 +120,8 @@ export class FilesystemStorage implements IDriveStorage {
|
|
|
120
120
|
let document: Document;
|
|
121
121
|
try {
|
|
122
122
|
document = await this.getDocument(FilesystemStorage.DRIVES_DIR, id);
|
|
123
|
-
} catch {
|
|
124
|
-
throw new Error(`Drive with id ${id} not found`);
|
|
123
|
+
} catch (error) {
|
|
124
|
+
throw new Error(`Drive with id ${id} not found: ${error}`);
|
|
125
125
|
}
|
|
126
126
|
if (isDocumentDrive(document)) {
|
|
127
127
|
return document;
|