@novasamatech/storage-adapter 0.5.0-9 → 0.5.0

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.
@@ -14,7 +14,7 @@ export declare function fieldView<T>({ storage, initial, key, from, to, autosync
14
14
  clear(): ResultAsync<void, Error>;
15
15
  subscribe(fn: (value: T) => void): VoidFunction;
16
16
  };
17
- export declare function fieldListView<T>(params: Params<T[]>): {
17
+ export declare function fieldListView<T>(params: Omit<Params<T[]>, 'initial'>): {
18
18
  add(value: T): ResultAsync<T, Error>;
19
19
  filter(fn: (value: T) => boolean): ResultAsync<T[], Error>;
20
20
  mutate(fn: (value: T[]) => T[]): ResultAsync<T[], Error>;
package/dist/fieldView.js CHANGED
@@ -28,7 +28,7 @@ export function fieldView({ storage, initial, key, from, to, autosync = true })
28
28
  return enhancedStorage;
29
29
  }
30
30
  export function fieldListView(params) {
31
- const view = fieldView(params);
31
+ const view = fieldView({ ...params, initial: [] });
32
32
  const listView = {
33
33
  ...view,
34
34
  add(value) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@novasamatech/storage-adapter",
3
3
  "type": "module",
4
- "version": "0.5.0-9",
4
+ "version": "0.5.0",
5
5
  "description": "Statement store integration",
6
6
  "license": "Apache-2.0",
7
7
  "repository": {