@pod-os/core 0.8.0 → 0.8.1-d2a5854.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 +19 -2
- package/lib/index.js +19 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -44082,6 +44082,7 @@ var Thing = class {
|
|
|
44082
44082
|
};
|
|
44083
44083
|
|
|
44084
44084
|
// src/Store.ts
|
|
44085
|
+
console.log("PodOS changed 2");
|
|
44085
44086
|
var Store = class {
|
|
44086
44087
|
constructor(session4) {
|
|
44087
44088
|
this.graph = graph2();
|
|
@@ -44093,7 +44094,16 @@ var Store = class {
|
|
|
44093
44094
|
* @param uri
|
|
44094
44095
|
*/
|
|
44095
44096
|
fetch(uri5) {
|
|
44096
|
-
return this.fetcher.load(namedNode2(uri5), {
|
|
44097
|
+
return this.fetcher.load(namedNode2(uri5), {
|
|
44098
|
+
// force fetching due to
|
|
44099
|
+
// https://github.com/linkeddata/rdflib.js/issues/247
|
|
44100
|
+
// and
|
|
44101
|
+
// https://github.com/linkeddata/rdflib.js/issues/441
|
|
44102
|
+
force: true,
|
|
44103
|
+
// explicitly omit credentials due to
|
|
44104
|
+
// https://github.com/pod-os/PodOS/issues/17
|
|
44105
|
+
credentials: "omit"
|
|
44106
|
+
});
|
|
44097
44107
|
}
|
|
44098
44108
|
/**
|
|
44099
44109
|
* Retrieve the thing identified by the given URI from the store
|
|
@@ -44112,7 +44122,14 @@ var Store = class {
|
|
|
44112
44122
|
addPropertyValue(thing, property2, value5) {
|
|
44113
44123
|
return this.updater.update(
|
|
44114
44124
|
[],
|
|
44115
|
-
[st2(namedNode2(thing.uri), namedNode2(property2), lit2(value5), namedNode2(thing.uri).doc())]
|
|
44125
|
+
[st2(namedNode2(thing.uri), namedNode2(property2), lit2(value5), namedNode2(thing.uri).doc())],
|
|
44126
|
+
void 0,
|
|
44127
|
+
false,
|
|
44128
|
+
{
|
|
44129
|
+
// explicitly omit credentials due to
|
|
44130
|
+
// https://github.com/pod-os/PodOS/issues/17
|
|
44131
|
+
credentials: "omit"
|
|
44132
|
+
}
|
|
44116
44133
|
);
|
|
44117
44134
|
}
|
|
44118
44135
|
};
|
package/lib/index.js
CHANGED
|
@@ -44056,6 +44056,7 @@ ${newlined}
|
|
|
44056
44056
|
};
|
|
44057
44057
|
|
|
44058
44058
|
// src/Store.ts
|
|
44059
|
+
console.log("PodOS changed 2");
|
|
44059
44060
|
var Store = class {
|
|
44060
44061
|
fetcher;
|
|
44061
44062
|
updater;
|
|
@@ -44070,7 +44071,16 @@ ${newlined}
|
|
|
44070
44071
|
* @param uri
|
|
44071
44072
|
*/
|
|
44072
44073
|
fetch(uri5) {
|
|
44073
|
-
return this.fetcher.load(namedNode2(uri5), {
|
|
44074
|
+
return this.fetcher.load(namedNode2(uri5), {
|
|
44075
|
+
// force fetching due to
|
|
44076
|
+
// https://github.com/linkeddata/rdflib.js/issues/247
|
|
44077
|
+
// and
|
|
44078
|
+
// https://github.com/linkeddata/rdflib.js/issues/441
|
|
44079
|
+
force: true,
|
|
44080
|
+
// explicitly omit credentials due to
|
|
44081
|
+
// https://github.com/pod-os/PodOS/issues/17
|
|
44082
|
+
credentials: "omit"
|
|
44083
|
+
});
|
|
44074
44084
|
}
|
|
44075
44085
|
/**
|
|
44076
44086
|
* Retrieve the thing identified by the given URI from the store
|
|
@@ -44089,7 +44099,14 @@ ${newlined}
|
|
|
44089
44099
|
addPropertyValue(thing, property2, value5) {
|
|
44090
44100
|
return this.updater.update(
|
|
44091
44101
|
[],
|
|
44092
|
-
[st2(namedNode2(thing.uri), namedNode2(property2), lit2(value5), namedNode2(thing.uri).doc())]
|
|
44102
|
+
[st2(namedNode2(thing.uri), namedNode2(property2), lit2(value5), namedNode2(thing.uri).doc())],
|
|
44103
|
+
void 0,
|
|
44104
|
+
false,
|
|
44105
|
+
{
|
|
44106
|
+
// explicitly omit credentials due to
|
|
44107
|
+
// https://github.com/pod-os/PodOS/issues/17
|
|
44108
|
+
credentials: "omit"
|
|
44109
|
+
}
|
|
44093
44110
|
);
|
|
44094
44111
|
}
|
|
44095
44112
|
};
|