@docstack/pouchdb-adapter-googledrive 0.0.6 → 0.0.9

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/jest.config.js CHANGED
@@ -1,8 +1,8 @@
1
- module.exports = {
2
- preset: 'ts-jest',
3
- testEnvironment: 'node',
4
- testMatch: ['**/tests/**/*.test.ts'],
5
- transform: {
6
- '^.+\\.ts$': 'ts-jest',
7
- },
8
- };
1
+ module.exports = {
2
+ preset: 'ts-jest',
3
+ testEnvironment: 'node',
4
+ testMatch: ['**/tests/**/*.test.ts'],
5
+ transform: {
6
+ '^.+\\.ts$': 'ts-jest',
7
+ },
8
+ };
package/lib/adapter.d.ts CHANGED
@@ -5,6 +5,9 @@ interface AdapterOptions extends GoogleDriveAdapterOptions {
5
5
  }
6
6
  /** Callback type for adapter initialization */
7
7
  type AdapterCallback = (err: Error | null, api?: any) => void;
8
+ /**
9
+ * TODO: Implement dynamic method signature, since PouchDB CRUD methods can be called as promise, callback or (?)
10
+ */
8
11
  /**
9
12
  * GoogleDriveAdapter - PouchDB adapter for Google Drive storage.
10
13
  * Updated for Lazy Loading (Async Access).