@pod-os/core 0.21.1-rc.0fc2066.0 → 0.21.1-rc.650bacd.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.
package/dist/index.js CHANGED
@@ -4339,6 +4339,12 @@ var Store = class {
4339
4339
  isOnline: onlineStatus.isOnline
4340
4340
  });
4341
4341
  this.updater = new UpdateManager(this.internalStore);
4342
+ this.additions$ = new Subject();
4343
+ this.removals$ = new Subject();
4344
+ this.internalStore.addDataCallback((quad) => this.additions$.next(quad));
4345
+ this.internalStore.addDataRemovalCallback(
4346
+ (quad) => this.removals$.next(quad)
4347
+ );
4342
4348
  }
4343
4349
  /**
4344
4350
  * Fetch data for the given URI to the internalStore
package/lib/index.js CHANGED
@@ -37324,6 +37324,12 @@ _:patch
37324
37324
  isOnline: onlineStatus.isOnline
37325
37325
  });
37326
37326
  this.updater = new UpdateManager(this.internalStore);
37327
+ this.additions$ = new Subject();
37328
+ this.removals$ = new Subject();
37329
+ this.internalStore.addDataCallback((quad3) => this.additions$.next(quad3));
37330
+ this.internalStore.addDataRemovalCallback(
37331
+ (quad3) => this.removals$.next(quad3)
37332
+ );
37327
37333
  }
37328
37334
  /**
37329
37335
  * Fetch data for the given URI to the internalStore
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pod-os/core",
3
- "version": "0.21.1-rc.0fc2066.0",
3
+ "version": "0.21.1-rc.650bacd.0",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./types/index.d.ts",
6
6
  "files": [
package/types/Store.d.ts CHANGED
@@ -3,14 +3,18 @@ import { PodOsSession } from "./authentication";
3
3
  import { Thing } from "./thing";
4
4
  import { ModuleConfig, UpdateOperation } from "@solid-data-modules/rdflib-utils";
5
5
  import { OfflineCache, OnlineStatus } from "./offline-cache";
6
+ import { Subject } from "rxjs";
7
+ import { Quad } from "rdflib/lib/tf-types";
6
8
  /**
7
- * The internalStore contains all data that is known locally.
9
+ * The Store contains all data that is known locally.
8
10
  * It can be used to fetch additional data from the web and also update data and sync it back to editable resources.
9
11
  */
10
12
  export declare class Store {
11
13
  private readonly internalStore;
12
14
  private readonly fetcher;
13
15
  private readonly updater;
16
+ additions$: Subject<Quad>;
17
+ removals$: Subject<Quad>;
14
18
  constructor(session: PodOsSession, offlineCache?: OfflineCache, onlineStatus?: OnlineStatus, internalStore?: IndexedFormula);
15
19
  /**
16
20
  * Fetch data for the given URI to the internalStore