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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "document-drive",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "license": "AGPL-3.0-only",
5
5
  "type": "module",
6
6
  "module": "./src/index.ts",
@@ -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;