@pod-os/core 0.8.1-e34e3c6.0 → 0.9.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
@@ -44135,7 +44135,6 @@ var Thing = class {
44135
44135
  };
44136
44136
 
44137
44137
  // src/Store.ts
44138
- console.log("PodOS changed 2");
44139
44138
  var Store = class {
44140
44139
  constructor(session4) {
44141
44140
  this.graph = graph2();
@@ -44186,30 +44185,32 @@ var Store = class {
44186
44185
  );
44187
44186
  }
44188
44187
  addNewThing(uri5, name6, type4) {
44189
- return this.updater.update(
44190
- [],
44191
- [
44192
- st2(
44193
- namedNode2(uri5),
44194
- namedNode2("https://www.w3.org/1999/02/22-rdf-syntax-ns#type"),
44195
- namedNode2(type4),
44196
- namedNode2(uri5).doc()
44197
- ),
44198
- st2(
44199
- namedNode2(uri5),
44200
- namedNode2("http://www.w3.org/2000/01/rdf-schema#label"),
44201
- lit2(name6),
44202
- namedNode2(uri5).doc()
44203
- )
44204
- ],
44205
- void 0,
44206
- false,
44207
- {
44208
- // explicitly omit credentials due to
44209
- // https://github.com/pod-os/PodOS/issues/17
44210
- credentials: "omit"
44211
- }
44212
- );
44188
+ return __async(this, null, function* () {
44189
+ yield this.updater.update(
44190
+ [],
44191
+ [
44192
+ st2(
44193
+ namedNode2(uri5),
44194
+ namedNode2("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"),
44195
+ namedNode2(type4),
44196
+ namedNode2(uri5).doc()
44197
+ ),
44198
+ st2(
44199
+ namedNode2(uri5),
44200
+ namedNode2("http://www.w3.org/2000/01/rdf-schema#label"),
44201
+ lit2(name6),
44202
+ namedNode2(uri5).doc()
44203
+ )
44204
+ ],
44205
+ void 0,
44206
+ false,
44207
+ {
44208
+ // explicitly omit credentials due to
44209
+ // https://github.com/pod-os/PodOS/issues/17
44210
+ credentials: "omit"
44211
+ }
44212
+ );
44213
+ });
44213
44214
  }
44214
44215
  };
44215
44216
 
package/lib/index.js CHANGED
@@ -44109,7 +44109,6 @@ ${newlined}
44109
44109
  };
44110
44110
 
44111
44111
  // src/Store.ts
44112
- console.log("PodOS changed 2");
44113
44112
  var Store = class {
44114
44113
  fetcher;
44115
44114
  updater;
@@ -44162,13 +44161,13 @@ ${newlined}
44162
44161
  }
44163
44162
  );
44164
44163
  }
44165
- addNewThing(uri5, name6, type4) {
44166
- return this.updater.update(
44164
+ async addNewThing(uri5, name6, type4) {
44165
+ await this.updater.update(
44167
44166
  [],
44168
44167
  [
44169
44168
  st2(
44170
44169
  namedNode2(uri5),
44171
- namedNode2("https://www.w3.org/1999/02/22-rdf-syntax-ns#type"),
44170
+ namedNode2("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"),
44172
44171
  namedNode2(type4),
44173
44172
  namedNode2(uri5).doc()
44174
44173
  ),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pod-os/core",
3
- "version": "0.8.1-e34e3c6.0",
3
+ "version": "0.9.0",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./types/index.d.ts",
6
6
  "files": [
package/types/Store.d.ts CHANGED
@@ -27,5 +27,5 @@ export declare class Store {
27
27
  * @param value
28
28
  */
29
29
  addPropertyValue(thing: Thing, property: string, value: string): Promise<void>;
30
- addNewThing(uri: string, name: string, type: string): void | Promise<void>;
30
+ addNewThing(uri: string, name: string, type: string): Promise<void>;
31
31
  }
package/types/index.d.ts CHANGED
@@ -20,7 +20,7 @@ export declare class PodOS {
20
20
  fetchFile(url: string): Promise<SolidFile>;
21
21
  addPropertyValue(thing: Thing, property: string, value: string): Promise<void>;
22
22
  listKnownTerms(): Term[];
23
- addNewThing(uri: string, name: string, type: string): void | Promise<void>;
23
+ addNewThing(uri: string, name: string, type: string): Promise<void>;
24
24
  proposeUriForNewThing(referenceUri: string, name: string): string;
25
25
  trackSession(callback: (session: ISessionInfo) => unknown): void;
26
26
  logout(): Promise<void>;