solid-ui 2.4.14-bbf45639-dab44b6c → 2.4.14-bbf45639-aade069c

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":"logic.d.ts","sourceRoot":"","sources":["../src/logic.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAUxC,eAAO,MAAM,mBAAmB,YAAkD,CAAA;AAGlF,eAAO,MAAM,KAAK,4BAA4B,CAAA;AAC9C,eAAO,MAAM,EAAE,4BAAQ,CAAA;AAEvB,eAAO,MAAM,KAAK,4CAA4B,CAAA;AAC9C,eAAO,MAAM,IAAI,oDAA2B,CAAA;AAI5C,eAAO,MAAM,OAAO,6DAA8B,CAAA"}
1
+ {"version":3,"file":"logic.d.ts","sourceRoot":"","sources":["../src/logic.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAYxC,eAAO,MAAM,mBAAmB,YAAoD,CAAA;AAGpF,eAAO,MAAM,KAAK,4BAA4B,CAAA;AAC9C,eAAO,MAAM,EAAE,4BAAQ,CAAA;AAEvB,eAAO,MAAM,KAAK,4CAA4B,CAAA;AAC9C,eAAO,MAAM,IAAI,oDAA2B,CAAA;AAI5C,eAAO,MAAM,OAAO,6DAA8B,CAAA"}
package/lib/logic.js CHANGED
@@ -25,37 +25,41 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
25
25
 
26
26
  // This module of solid-ui has a main quadstore for the app to use
27
27
  //
28
- var fetcher = /*#__PURE__*/function () {
29
- var _ref = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(url, requestInit) {
28
+ function thisFetch(_x, _x2) {
29
+ return _thisFetch.apply(this, arguments);
30
+ }
31
+
32
+ function _thisFetch() {
33
+ _thisFetch = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(url, requestInit) {
34
+ var omitCreds;
30
35
  return _regenerator["default"].wrap(function _callee$(_context) {
31
36
  while (1) {
32
37
  switch (_context.prev = _context.next) {
33
38
  case 0:
34
- if (!_authSession["default"].info.webId) {
35
- _context.next = 4;
39
+ omitCreds = requestInit && requestInit.credentials && requestInit.credentials === 'omit';
40
+
41
+ if (!(_authSession["default"].info.webId && !omitCreds)) {
42
+ _context.next = 5;
36
43
  break;
37
44
  }
38
45
 
39
46
  return _context.abrupt("return", _authSession["default"].fetch(url, requestInit));
40
47
 
41
- case 4:
48
+ case 5:
42
49
  return _context.abrupt("return", window.fetch(url, requestInit));
43
50
 
44
- case 5:
51
+ case 6:
45
52
  case "end":
46
53
  return _context.stop();
47
54
  }
48
55
  }
49
56
  }, _callee);
50
57
  }));
51
-
52
- return function fetcher(_x, _x2) {
53
- return _ref.apply(this, arguments);
54
- };
55
- }();
58
+ return _thisFetch.apply(this, arguments);
59
+ }
56
60
 
57
61
  var solidLogicSingleton = new _solidLogic.SolidLogic({
58
- fetch: fetcher
62
+ fetch: thisFetch
59
63
  }, _authSession["default"]); // Make this directly accessible as it is what you need most of the time
60
64
 
61
65
  exports.solidLogicSingleton = solidLogicSingleton;
package/lib/logic.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/logic.ts"],"names":["fetcher","url","requestInit","authSession","info","webId","fetch","window","solidLogicSingleton","SolidLogic","store","kb","authn","chat","profile","debug","log"],"mappings":";;;;;;;;;;;;;;;AAGA;;AACA;;AACA;;;;;;AALA;AACA;AAMA,IAAMA,OAAO;AAAA,2FAAG,iBAAOC,GAAP,EAAYC,WAAZ;AAAA;AAAA;AAAA;AAAA;AAAA,iBACVC,wBAAYC,IAAZ,CAAiBC,KADP;AAAA;AAAA;AAAA;;AAAA,6CAELF,wBAAYG,KAAZ,CAAkBL,GAAlB,EAAuBC,WAAvB,CAFK;;AAAA;AAAA,6CAILK,MAAM,CAACD,KAAP,CAAaL,GAAb,EAAkBC,WAAlB,CAJK;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAAH;;AAAA,kBAAPF,OAAO;AAAA;AAAA;AAAA,GAAb;;AAQO,IAAMQ,mBAAmB,GAAG,IAAIC,sBAAJ,CAAe;AAAEH,EAAAA,KAAK,EAAEN;AAAT,CAAf,EAAmCG,uBAAnC,CAA5B,C,CAEP;;;AACO,IAAMO,KAAK,GAAGF,mBAAmB,CAACE,KAAlC;;AACA,IAAMC,EAAE,GAAGD,KAAX,C,CAAiB;;;AAEjB,IAAME,KAAK,GAAGJ,mBAAmB,CAACI,KAAlC;;AACA,IAAMC,IAAI,GAAGL,mBAAmB,CAACK,IAAjC,C,CAEP;;;AAEO,IAAMC,OAAO,GAAGN,mBAAmB,CAACM,OAApC;;AAEPC,KAAK,CAACC,GAAN,CAAU,+BAAV,E,CAEA","sourcesContent":["// This module of solid-ui has a main quadstore for the app to use\n//\n\nimport * as debug from './debug'\nimport authSession from './authn/authSession'\nimport { SolidLogic } from 'solid-logic'\n\nconst fetcher = async (url, requestInit) => {\n if (authSession.info.webId) {\n return authSession.fetch(url, requestInit)\n } else {\n return window.fetch(url, requestInit)\n }\n}\n\nexport const solidLogicSingleton = new SolidLogic({ fetch: fetcher }, authSession)\n\n// Make this directly accessible as it is what you need most of the time\nexport const store = solidLogicSingleton.store\nexport const kb = store // Very commonly used synonym of store - Knowledge Base\n\nexport const authn = solidLogicSingleton.authn\nexport const chat = solidLogicSingleton.chat\n\n// export const language = solidLogicSingleton.language // Does not work\n\nexport const profile = solidLogicSingleton.profile\n\ndebug.log('Unique quadstore initialized.')\n\n// ends\n"],"file":"logic.js"}
1
+ {"version":3,"sources":["../src/logic.ts"],"names":["thisFetch","url","requestInit","omitCreds","credentials","authSession","info","webId","fetch","window","solidLogicSingleton","SolidLogic","store","kb","authn","chat","profile","debug","log"],"mappings":";;;;;;;;;;;;;;;AAGA;;AACA;;AACA;;;;;;AALA;AACA;SAMeA,S;;;;;6FAAf,iBAA0BC,GAA1B,EAA+BC,WAA/B;AAAA;AAAA;AAAA;AAAA;AAAA;AACQC,YAAAA,SADR,GACoBD,WAAW,IAAIA,WAAW,CAACE,WAA3B,IAA0CF,WAAW,CAACE,WAAZ,KAA4B,MAD1F;;AAAA,kBAEMC,wBAAYC,IAAZ,CAAiBC,KAAjB,IAA0B,CAACJ,SAFjC;AAAA;AAAA;AAAA;;AAAA,6CAIWE,wBAAYG,KAAZ,CAAkBP,GAAlB,EAAuBC,WAAvB,CAJX;;AAAA;AAAA,6CAMWO,MAAM,CAACD,KAAP,CAAaP,GAAb,EAAkBC,WAAlB,CANX;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,G;;;;AAUO,IAAMQ,mBAAmB,GAAG,IAAIC,sBAAJ,CAAe;AAAEH,EAAAA,KAAK,EAAER;AAAT,CAAf,EAAqCK,uBAArC,CAA5B,C,CAEP;;;AACO,IAAMO,KAAK,GAAGF,mBAAmB,CAACE,KAAlC;;AACA,IAAMC,EAAE,GAAGD,KAAX,C,CAAiB;;;AAEjB,IAAME,KAAK,GAAGJ,mBAAmB,CAACI,KAAlC;;AACA,IAAMC,IAAI,GAAGL,mBAAmB,CAACK,IAAjC,C,CAEP;;;AAEO,IAAMC,OAAO,GAAGN,mBAAmB,CAACM,OAApC;;AAEPC,KAAK,CAACC,GAAN,CAAU,+BAAV,E,CAEA","sourcesContent":["// This module of solid-ui has a main quadstore for the app to use\n//\n\nimport * as debug from './debug'\nimport authSession from './authn/authSession'\nimport { SolidLogic } from 'solid-logic'\n\nasync function thisFetch (url, requestInit) {\n const omitCreds = requestInit && requestInit.credentials && requestInit.credentials === 'omit'\n if (authSession.info.webId && !omitCreds) { // see https://github.com/solid/solidos/issues/114\n // In fact ftech should respect crentials omit itself\n return authSession.fetch(url, requestInit)\n } else {\n return window.fetch(url, requestInit)\n }\n}\n\nexport const solidLogicSingleton = new SolidLogic({ fetch: thisFetch }, authSession)\n\n// Make this directly accessible as it is what you need most of the time\nexport const store = solidLogicSingleton.store\nexport const kb = store // Very commonly used synonym of store - Knowledge Base\n\nexport const authn = solidLogicSingleton.authn\nexport const chat = solidLogicSingleton.chat\n\n// export const language = solidLogicSingleton.language // Does not work\n\nexport const profile = solidLogicSingleton.profile\n\ndebug.log('Unique quadstore initialized.')\n\n// ends\n"],"file":"logic.js"}
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _default = {
8
- buildTime: '2022-01-27T10:30:04Z',
9
- commit: 'dab44b6c698e35505509e6c68b3dec679d69aaf9',
8
+ buildTime: '2022-01-27T18:08:55Z',
9
+ commit: 'aade069c17f3aaa69c949b51d249c762c0ce4381',
10
10
  npmInfo: {
11
11
  'solid-ui': '2.4.14-bbf45639',
12
12
  npm: '6.14.15',
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/versionInfo.ts"],"names":["buildTime","commit","npmInfo","npm","ares","brotli","cldr","icu","llhttp","modules","napi","nghttp2","node","openssl","tz","unicode","uv","v8","zlib"],"mappings":";;;;;;eAAe;AACbA,EAAAA,SAAS,EAAE,sBADE;AAEbC,EAAAA,MAAM,EAAE,0CAFK;AAGbC,EAAAA,OAAO,EACT;AACE,gBAAY,iBADd;AAEEC,IAAAA,GAAG,EAAE,SAFP;AAGEC,IAAAA,IAAI,EAAE,QAHR;AAIEC,IAAAA,MAAM,EAAE,OAJV;AAKEC,IAAAA,IAAI,EAAE,MALR;AAMEC,IAAAA,GAAG,EAAE,MANP;AAOEC,IAAAA,MAAM,EAAE,OAPV;AAQEC,IAAAA,OAAO,EAAE,IARX;AASEC,IAAAA,IAAI,EAAE,GATR;AAUEC,IAAAA,OAAO,EAAE,QAVX;AAWEC,IAAAA,IAAI,EAAE,SAXR;AAYEC,IAAAA,OAAO,EAAE,QAZX;AAaEC,IAAAA,EAAE,EAAE,OAbN;AAcEC,IAAAA,OAAO,EAAE,MAdX;AAeEC,IAAAA,EAAE,EAAE,QAfN;AAgBEC,IAAAA,EAAE,EAAE,oBAhBN;AAiBEC,IAAAA,IAAI,EAAE;AAjBR;AAJe,C","sourcesContent":["export default {\n buildTime: '2022-01-27T10:30:04Z',\n commit: 'dab44b6c698e35505509e6c68b3dec679d69aaf9',\n npmInfo:\n{\n 'solid-ui': '2.4.14-bbf45639',\n npm: '6.14.15',\n ares: '1.18.1',\n brotli: '1.0.9',\n cldr: '39.0',\n icu: '69.1',\n llhttp: '2.1.4',\n modules: '83',\n napi: '8',\n nghttp2: '1.42.0',\n node: '14.18.3',\n openssl: '1.1.1l',\n tz: '2021a',\n unicode: '13.0',\n uv: '1.42.0',\n v8: '8.4.371.23-node.85',\n zlib: '1.2.11'\n}\n}\n"],"file":"versionInfo.js"}
1
+ {"version":3,"sources":["../src/versionInfo.ts"],"names":["buildTime","commit","npmInfo","npm","ares","brotli","cldr","icu","llhttp","modules","napi","nghttp2","node","openssl","tz","unicode","uv","v8","zlib"],"mappings":";;;;;;eAAe;AACbA,EAAAA,SAAS,EAAE,sBADE;AAEbC,EAAAA,MAAM,EAAE,0CAFK;AAGbC,EAAAA,OAAO,EACT;AACE,gBAAY,iBADd;AAEEC,IAAAA,GAAG,EAAE,SAFP;AAGEC,IAAAA,IAAI,EAAE,QAHR;AAIEC,IAAAA,MAAM,EAAE,OAJV;AAKEC,IAAAA,IAAI,EAAE,MALR;AAMEC,IAAAA,GAAG,EAAE,MANP;AAOEC,IAAAA,MAAM,EAAE,OAPV;AAQEC,IAAAA,OAAO,EAAE,IARX;AASEC,IAAAA,IAAI,EAAE,GATR;AAUEC,IAAAA,OAAO,EAAE,QAVX;AAWEC,IAAAA,IAAI,EAAE,SAXR;AAYEC,IAAAA,OAAO,EAAE,QAZX;AAaEC,IAAAA,EAAE,EAAE,OAbN;AAcEC,IAAAA,OAAO,EAAE,MAdX;AAeEC,IAAAA,EAAE,EAAE,QAfN;AAgBEC,IAAAA,EAAE,EAAE,oBAhBN;AAiBEC,IAAAA,IAAI,EAAE;AAjBR;AAJe,C","sourcesContent":["export default {\n buildTime: '2022-01-27T18:08:55Z',\n commit: 'aade069c17f3aaa69c949b51d249c762c0ce4381',\n npmInfo:\n{\n 'solid-ui': '2.4.14-bbf45639',\n npm: '6.14.15',\n ares: '1.18.1',\n brotli: '1.0.9',\n cldr: '39.0',\n icu: '69.1',\n llhttp: '2.1.4',\n modules: '83',\n napi: '8',\n nghttp2: '1.42.0',\n node: '14.18.3',\n openssl: '1.1.1l',\n tz: '2021a',\n unicode: '13.0',\n uv: '1.42.0',\n v8: '8.4.371.23-node.85',\n zlib: '1.2.11'\n}\n}\n"],"file":"versionInfo.js"}
@@ -9956,37 +9956,41 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
9956
9956
 
9957
9957
  // This module of solid-ui has a main quadstore for the app to use
9958
9958
  //
9959
- var fetcher = /*#__PURE__*/function () {
9960
- var _ref = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(url, requestInit) {
9959
+ function thisFetch(_x, _x2) {
9960
+ return _thisFetch.apply(this, arguments);
9961
+ }
9962
+
9963
+ function _thisFetch() {
9964
+ _thisFetch = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(url, requestInit) {
9965
+ var omitCreds;
9961
9966
  return _regenerator["default"].wrap(function _callee$(_context) {
9962
9967
  while (1) {
9963
9968
  switch (_context.prev = _context.next) {
9964
9969
  case 0:
9965
- if (!_authSession["default"].info.webId) {
9966
- _context.next = 4;
9970
+ omitCreds = requestInit && requestInit.credentials && requestInit.credentials === 'omit';
9971
+
9972
+ if (!(_authSession["default"].info.webId && !omitCreds)) {
9973
+ _context.next = 5;
9967
9974
  break;
9968
9975
  }
9969
9976
 
9970
9977
  return _context.abrupt("return", _authSession["default"].fetch(url, requestInit));
9971
9978
 
9972
- case 4:
9979
+ case 5:
9973
9980
  return _context.abrupt("return", window.fetch(url, requestInit));
9974
9981
 
9975
- case 5:
9982
+ case 6:
9976
9983
  case "end":
9977
9984
  return _context.stop();
9978
9985
  }
9979
9986
  }
9980
9987
  }, _callee);
9981
9988
  }));
9982
-
9983
- return function fetcher(_x, _x2) {
9984
- return _ref.apply(this, arguments);
9985
- };
9986
- }();
9989
+ return _thisFetch.apply(this, arguments);
9990
+ }
9987
9991
 
9988
9992
  var solidLogicSingleton = new _solidLogic.SolidLogic({
9989
- fetch: fetcher
9993
+ fetch: thisFetch
9990
9994
  }, _authSession["default"]); // Make this directly accessible as it is what you need most of the time
9991
9995
 
9992
9996
  exports.solidLogicSingleton = solidLogicSingleton;
@@ -15729,8 +15733,8 @@ Object.defineProperty(exports, "__esModule", {
15729
15733
  });
15730
15734
  exports["default"] = void 0;
15731
15735
  var _default = {
15732
- buildTime: '2022-01-27T10:30:04Z',
15733
- commit: 'dab44b6c698e35505509e6c68b3dec679d69aaf9',
15736
+ buildTime: '2022-01-27T18:08:55Z',
15737
+ commit: 'aade069c17f3aaa69c949b51d249c762c0ce4381',
15734
15738
  npmInfo: {
15735
15739
  'solid-ui': '2.4.14-bbf45639',
15736
15740
  npm: '6.14.15',