document-drive 0.0.9 → 0.0.11

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.11",
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;
@@ -78,7 +78,8 @@ export class FilesystemStorage implements IDriveStorage {
78
78
  { encoding: 'utf-8' }
79
79
  );
80
80
  return JSON.parse(content);
81
- } catch {
81
+ } catch (error) {
82
+ console.error(error);
82
83
  throw new Error(`Document with id ${id} not found`);
83
84
  }
84
85
  }