@pod-os/core 0.17.1-rc.2988a4e.0 → 0.17.1-rc.2cc1e61.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
@@ -13705,17 +13705,17 @@ var Thing = class {
13705
13705
  uris: values2[predicate5]
13706
13706
  }));
13707
13707
  }
13708
- reverseRelations() {
13708
+ reverseRelations(predicate4) {
13709
13709
  const statements = this.store.statementsMatching(
13710
13710
  void 0,
13711
- void 0,
13711
+ predicate4 ? namedNode(predicate4) : null,
13712
13712
  namedNode(this.uri)
13713
13713
  );
13714
13714
  const values2 = statements.reduce(accumulateSubjects, {});
13715
- return Object.keys(values2).map((predicate4) => ({
13716
- predicate: predicate4,
13717
- label: labelFromUri(predicate4),
13718
- uris: values2[predicate4]
13715
+ return Object.keys(values2).map((predicate5) => ({
13716
+ predicate: predicate5,
13717
+ label: labelFromUri(predicate5),
13718
+ uris: values2[predicate5]
13719
13719
  }));
13720
13720
  }
13721
13721
  anyValue(...predicateUris) {
package/lib/index.js CHANGED
@@ -46672,17 +46672,17 @@ _:patch
46672
46672
  uris: values2[predicate5]
46673
46673
  }));
46674
46674
  }
46675
- reverseRelations() {
46675
+ reverseRelations(predicate4) {
46676
46676
  const statements = this.store.statementsMatching(
46677
46677
  void 0,
46678
- void 0,
46678
+ predicate4 ? namedNode(predicate4) : null,
46679
46679
  namedNode(this.uri)
46680
46680
  );
46681
46681
  const values2 = statements.reduce(accumulateSubjects, {});
46682
- return Object.keys(values2).map((predicate4) => ({
46683
- predicate: predicate4,
46684
- label: labelFromUri(predicate4),
46685
- uris: values2[predicate4]
46682
+ return Object.keys(values2).map((predicate5) => ({
46683
+ predicate: predicate5,
46684
+ label: labelFromUri(predicate5),
46685
+ uris: values2[predicate5]
46686
46686
  }));
46687
46687
  }
46688
46688
  anyValue(...predicateUris) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pod-os/core",
3
- "version": "0.17.1-rc.2988a4e.0",
3
+ "version": "0.17.1-rc.2cc1e61.0",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./types/index.d.ts",
6
6
  "files": [
@@ -28,7 +28,7 @@ export declare class Thing {
28
28
  label(): string;
29
29
  literals(): Literal[];
30
30
  relations(predicate?: string): Relation[];
31
- reverseRelations(): Relation[];
31
+ reverseRelations(predicate?: string): Relation[];
32
32
  anyValue(...predicateUris: string[]): undefined;
33
33
  description(): undefined;
34
34
  picture(): {