@omegup/msync 0.1.5 → 0.1.6

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/index.d.ts CHANGED
@@ -533,7 +533,9 @@ interface SnapshotStreamHKT extends HKT<O2> {
533
533
  interface DeltaHKT extends HKT<O3> {
534
534
  readonly out: DeltaStages<I<O3, this>[0], I<O3, this>[1], I<O3, this>[2]>;
535
535
  }
536
- declare const staging: <V extends Model, KK extends StrKey<V>>(view: View<V, Allowed$1<KK>>, streamName: string, skip?: boolean, after?: () => Promise<void>) => DeltaPipe<AllowedPick$1<V, KK>, AllowedPick$1<V, KK>, SnapshotStreamHKT, DeltaHKT>;
536
+ declare const staging: <V extends Model, KK extends StrKey<V>>(view: View<V, Allowed$1<KK>> & {
537
+ needs?: Partial<Record<KK, 0 | 1>>;
538
+ }, streamName: string, skip?: boolean, after?: () => Promise<void>) => DeltaPipe<AllowedPick$1<V, KK>, AllowedPick$1<V, KK>, SnapshotStreamHKT, DeltaHKT>;
537
539
 
538
540
  type Allowed<K> = Exclude<K, 'deletedAt' | '_id'>;
539
541
  type AllowedPick<V extends Model, K extends StrKey<V>> = OPickD<V, Allowed<K>>;
package/index.esm.js CHANGED
@@ -1824,7 +1824,7 @@ const executes$2 = (view, input, streamName, skip = false, after, needs = {}) =>
1824
1824
  out: run,
1825
1825
  };
1826
1826
  };
1827
- const staging = (view, streamName, skip = false, after) => pipe(input => executes$2(view, input, streamName, skip, after), emptyDelta(), concatDelta, emptyDelta);
1827
+ const staging = (view, streamName, skip = false, after) => pipe(input => executes$2(view, input, streamName, skip, after, view.needs), emptyDelta(), concatDelta, emptyDelta);
1828
1828
 
1829
1829
  const executes$1 = (view, input, streamName, needs) => {
1830
1830
  const hash = crypto$1
package/index.js CHANGED
@@ -1826,7 +1826,7 @@ const executes$2 = (view, input, streamName, skip = false, after, needs = {}) =>
1826
1826
  out: run,
1827
1827
  };
1828
1828
  };
1829
- const staging = (view, streamName, skip = false, after) => pipe(input => executes$2(view, input, streamName, skip, after), emptyDelta(), concatDelta, emptyDelta);
1829
+ const staging = (view, streamName, skip = false, after) => pipe(input => executes$2(view, input, streamName, skip, after, view.needs), emptyDelta(), concatDelta, emptyDelta);
1830
1830
 
1831
1831
  const executes$1 = (view, input, streamName, needs) => {
1832
1832
  const hash = crypto$1
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "module": "index.esm.js",
4
4
  "typings": "index.d.ts",
5
5
  "name": "@omegup/msync",
6
- "version": "0.1.5",
6
+ "version": "0.1.6",
7
7
  "dependencies": {
8
8
  "dayjs": "^1.11.9",
9
9
  "dotenv": "^16.3.1",