solid-logic 1.3.13-85106da8 → 1.3.13-911117d1
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"solidLogicSingleton.d.ts","sourceRoot":"","sources":["../../src/logic/solidLogicSingleton.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAWzC,QAAA,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"solidLogicSingleton.d.ts","sourceRoot":"","sources":["../../src/logic/solidLogicSingleton.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAWzC,QAAA,MAAM,mBAAmB,YAAiD,CAAA;AAI1E,OAAO,EAAE,mBAAmB,EAAE,CAAA"}
|
|
@@ -59,7 +59,7 @@ exports.solidLogicSingleton = void 0;
|
|
|
59
59
|
var debug = __importStar(require("../util/debug"));
|
|
60
60
|
var authSession_1 = require("../authSession/authSession");
|
|
61
61
|
var SolidLogic_1 = require("./SolidLogic");
|
|
62
|
-
var
|
|
62
|
+
var _fetch = function (url, requestInit) { return __awaiter(void 0, void 0, void 0, function () {
|
|
63
63
|
return __generator(this, function (_a) {
|
|
64
64
|
if (authSession_1.authSession.info.webId) {
|
|
65
65
|
return [2 /*return*/, authSession_1.authSession.fetch(url, requestInit)];
|
|
@@ -71,7 +71,7 @@ var fetcher = function (url, requestInit) { return __awaiter(void 0, void 0, voi
|
|
|
71
71
|
});
|
|
72
72
|
}); };
|
|
73
73
|
//this const makes solidLogicSingleton global accessible in mashlib
|
|
74
|
-
var solidLogicSingleton = new SolidLogic_1.SolidLogic({ fetch:
|
|
74
|
+
var solidLogicSingleton = new SolidLogic_1.SolidLogic({ fetch: _fetch }, authSession_1.authSession);
|
|
75
75
|
exports.solidLogicSingleton = solidLogicSingleton;
|
|
76
76
|
debug.log('Unique quadstore initialized.');
|
|
77
77
|
//# sourceMappingURL=solidLogicSingleton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"solidLogicSingleton.js","sourceRoot":"","sources":["../../src/logic/solidLogicSingleton.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAAsC;AACtC,0DAAwD;AACxD,2CAAyC;AAEzC,IAAM,
|
|
1
|
+
{"version":3,"file":"solidLogicSingleton.js","sourceRoot":"","sources":["../../src/logic/solidLogicSingleton.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAAsC;AACtC,0DAAwD;AACxD,2CAAyC;AAEzC,IAAM,MAAM,GAAG,UAAO,GAAG,EAAE,WAAW;;QAClC,IAAI,yBAAW,CAAC,IAAI,CAAC,KAAK,EAAE;YACxB,sBAAO,yBAAW,CAAC,KAAK,CAAC,GAAG,EAAE,WAAW,CAAC,EAAA;SAC7C;aAAM;YACH,sBAAO,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,WAAW,CAAC,EAAA;SACxC;;;KACJ,CAAA;AAED,mEAAmE;AACnE,IAAM,mBAAmB,GAAG,IAAI,uBAAU,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,yBAAW,CAAC,CAAA;AAIjE,kDAAmB;AAF5B,KAAK,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@ import * as debug from "../util/debug"
|
|
|
2
2
|
import { authSession } from "../authSession/authSession"
|
|
3
3
|
import { SolidLogic } from "./SolidLogic"
|
|
4
4
|
|
|
5
|
-
const
|
|
5
|
+
const _fetch = async (url, requestInit) => {
|
|
6
6
|
if (authSession.info.webId) {
|
|
7
7
|
return authSession.fetch(url, requestInit)
|
|
8
8
|
} else {
|
|
@@ -11,7 +11,7 @@ const fetcher = async (url, requestInit) => {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
//this const makes solidLogicSingleton global accessible in mashlib
|
|
14
|
-
const solidLogicSingleton = new SolidLogic({ fetch:
|
|
14
|
+
const solidLogicSingleton = new SolidLogic({ fetch: _fetch }, authSession)
|
|
15
15
|
|
|
16
16
|
debug.log('Unique quadstore initialized.')
|
|
17
17
|
|