solid-logic 3.1.1-d15d525 → 3.1.1-dbb83f7

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/README.md CHANGED
@@ -23,14 +23,10 @@ import { someFunction } from 'solid-logic';
23
23
  ```
24
24
 
25
25
  ## Use directly in a browser
26
-
27
- There are a few differences to mention:
28
- * the UMD bundles come in 2 flavours, with rdflib bundled together and without;
29
- * the ESM bundles do not contain rdflib, so it must be imported separately.
26
+ Both UMD and ESM bundles take rdflib as external, this means you need to install it yourself, separately.
30
27
 
31
28
  ## Files
32
- - For browser UMD, bundled with rdflib: `dist/solid-logic.js` (global `window.SolidLogic`)
33
- - For browser UMD, without rdflib: `dist/solid-logic.external.js` (global `window.SolidLogic`)
29
+ - For browser UMD, without rdflib: `dist/solid-logic.js` (global `window.SolidLogic`)
34
30
  - For browser ESM, without rdflib: `dist/solid-logic.esm.external.js` (import as module)
35
31
  - UMD have also chunked files.
36
32
  - both version also containe minified versions.
@@ -51,6 +47,7 @@ There are a few differences to mention:
51
47
  <!-- script src="dist/solid-logic.js"></script -->
52
48
  <script>
53
49
  // Access via global variable
50
+ const rdflib = window.$rdf;
54
51
  const logic = window.SolidLogic;
55
52
  // Example usage
56
53
  // logic.someFunction(...)
@@ -3166,10 +3166,10 @@ function getDefaultSession() {
3166
3166
  * @since 1.3.0
3167
3167
  */
3168
3168
  /* eslint-disable-next-line no-shadow */
3169
- const fetch$1 = (...args) => {
3169
+ function fetch$1(...args) {
3170
3170
  const session = getDefaultSession();
3171
3171
  return session.fetch(...args);
3172
- };
3172
+ }
3173
3173
  /**
3174
3174
  * Triggers the login process. Note that this method will redirect the user away from your app.
3175
3175
  *
@@ -3177,10 +3177,10 @@ const fetch$1 = (...args) => {
3177
3177
  * @returns This method should redirect the user away from the app: it does not return anything. The login process is completed by [[handleIncomingRedirect]].
3178
3178
  * @since 1.3.0
3179
3179
  */
3180
- const login = (...args) => {
3180
+ function login(...args) {
3181
3181
  const session = getDefaultSession();
3182
3182
  return session.login(...args);
3183
- };
3183
+ }
3184
3184
  /**
3185
3185
  * Logs the user out of the application.
3186
3186
  *
@@ -3190,28 +3190,28 @@ const login = (...args) => {
3190
3190
  *
3191
3191
  * @since 1.3.0
3192
3192
  */
3193
- const logout = (...args) => {
3193
+ function logout(...args) {
3194
3194
  const session = getDefaultSession();
3195
3195
  return session.logout(...args);
3196
- };
3196
+ }
3197
3197
  /**
3198
3198
  * Completes the login process by processing the information provided by the Solid identity provider through redirect.
3199
3199
  *
3200
3200
  * @param url The URL of the page handling the redirect, including the query parameters — these contain the information to process the login.
3201
3201
  * @since 1.3.0
3202
3202
  */
3203
- const handleIncomingRedirect = (...args) => {
3203
+ function handleIncomingRedirect(...args) {
3204
3204
  const session = getDefaultSession();
3205
3205
  return session.handleIncomingRedirect(...args);
3206
- };
3206
+ }
3207
3207
  /**
3208
3208
  * {@link SessionEventEmitter} instance to subscribe to events by the default session.
3209
3209
  *
3210
3210
  * @since 1.14.0
3211
3211
  */
3212
- const events = () => {
3212
+ function events() {
3213
3213
  return getDefaultSession().events;
3214
- };
3214
+ }
3215
3215
 
3216
3216
  Object.defineProperty(exports, "ConfigurationError", ({
3217
3217
  enumerable: true,
@@ -12671,55 +12671,55 @@ var __webpack_exports__ = {};
12671
12671
  (() => {
12672
12672
  var exports = __webpack_exports__;
12673
12673
 
12674
- Object.defineProperty(exports, "BJ", ({ value: true }));
12675
- exports.lG = exports.jO = exports.M_ = exports.hV = exports.ac = exports.ML = exports.fk = exports.m_ = exports.sN = exports.Un = exports.D_ = exports.T4 = exports.I0 = exports.vu = exports.TX = exports.Oo = void 0;
12674
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
12675
+ exports.authSession = exports.authn = exports.store = exports.solidLogicSingleton = exports.WebOperationError = exports.NotEditableError = exports.FetchError = exports.NotFoundError = exports.SameOriginForbiddenError = exports.CrossOriginForbiddenError = exports.UnauthorizedError = exports.createTypeIndexLogic = exports.getSuggestedIssuers = exports.appContext = exports.offlineTestID = exports.ACL_LINK = void 0;
12676
12676
  // Make these variables directly accessible as it is what you need most of the time
12677
12677
  // This also makes these variable globaly accesible in mashlib
12678
12678
  const solidLogicSingleton_1 = __webpack_require__(1781);
12679
- Object.defineProperty(exports, "hV", ({ enumerable: true, get: function () { return solidLogicSingleton_1.solidLogicSingleton; } }));
12679
+ Object.defineProperty(exports, "solidLogicSingleton", ({ enumerable: true, get: function () { return solidLogicSingleton_1.solidLogicSingleton; } }));
12680
12680
  const authn = solidLogicSingleton_1.solidLogicSingleton.authn;
12681
- exports.jO = authn;
12681
+ exports.authn = authn;
12682
12682
  const authSession = solidLogicSingleton_1.solidLogicSingleton.authn.authSession;
12683
- exports.lG = authSession;
12683
+ exports.authSession = authSession;
12684
12684
  const store = solidLogicSingleton_1.solidLogicSingleton.store;
12685
- exports.M_ = store;
12685
+ exports.store = store;
12686
12686
  var aclLogic_1 = __webpack_require__(6769);
12687
- Object.defineProperty(exports, "Oo", ({ enumerable: true, get: function () { return aclLogic_1.ACL_LINK; } }));
12687
+ Object.defineProperty(exports, "ACL_LINK", ({ enumerable: true, get: function () { return aclLogic_1.ACL_LINK; } }));
12688
12688
  var authUtil_1 = __webpack_require__(2233);
12689
- Object.defineProperty(exports, "TX", ({ enumerable: true, get: function () { return authUtil_1.offlineTestID; } }));
12690
- Object.defineProperty(exports, "vu", ({ enumerable: true, get: function () { return authUtil_1.appContext; } }));
12689
+ Object.defineProperty(exports, "offlineTestID", ({ enumerable: true, get: function () { return authUtil_1.offlineTestID; } }));
12690
+ Object.defineProperty(exports, "appContext", ({ enumerable: true, get: function () { return authUtil_1.appContext; } }));
12691
12691
  var issuerLogic_1 = __webpack_require__(4353);
12692
- Object.defineProperty(exports, "I0", ({ enumerable: true, get: function () { return issuerLogic_1.getSuggestedIssuers; } }));
12692
+ Object.defineProperty(exports, "getSuggestedIssuers", ({ enumerable: true, get: function () { return issuerLogic_1.getSuggestedIssuers; } }));
12693
12693
  var typeIndexLogic_1 = __webpack_require__(1177);
12694
- Object.defineProperty(exports, "T4", ({ enumerable: true, get: function () { return typeIndexLogic_1.createTypeIndexLogic; } }));
12694
+ Object.defineProperty(exports, "createTypeIndexLogic", ({ enumerable: true, get: function () { return typeIndexLogic_1.createTypeIndexLogic; } }));
12695
12695
  var CustomError_1 = __webpack_require__(390);
12696
- Object.defineProperty(exports, "D_", ({ enumerable: true, get: function () { return CustomError_1.UnauthorizedError; } }));
12697
- Object.defineProperty(exports, "Un", ({ enumerable: true, get: function () { return CustomError_1.CrossOriginForbiddenError; } }));
12698
- Object.defineProperty(exports, "sN", ({ enumerable: true, get: function () { return CustomError_1.SameOriginForbiddenError; } }));
12699
- Object.defineProperty(exports, "m_", ({ enumerable: true, get: function () { return CustomError_1.NotFoundError; } }));
12700
- Object.defineProperty(exports, "fk", ({ enumerable: true, get: function () { return CustomError_1.FetchError; } }));
12701
- Object.defineProperty(exports, "ML", ({ enumerable: true, get: function () { return CustomError_1.NotEditableError; } }));
12702
- Object.defineProperty(exports, "ac", ({ enumerable: true, get: function () { return CustomError_1.WebOperationError; } }));
12696
+ Object.defineProperty(exports, "UnauthorizedError", ({ enumerable: true, get: function () { return CustomError_1.UnauthorizedError; } }));
12697
+ Object.defineProperty(exports, "CrossOriginForbiddenError", ({ enumerable: true, get: function () { return CustomError_1.CrossOriginForbiddenError; } }));
12698
+ Object.defineProperty(exports, "SameOriginForbiddenError", ({ enumerable: true, get: function () { return CustomError_1.SameOriginForbiddenError; } }));
12699
+ Object.defineProperty(exports, "NotFoundError", ({ enumerable: true, get: function () { return CustomError_1.NotFoundError; } }));
12700
+ Object.defineProperty(exports, "FetchError", ({ enumerable: true, get: function () { return CustomError_1.FetchError; } }));
12701
+ Object.defineProperty(exports, "NotEditableError", ({ enumerable: true, get: function () { return CustomError_1.NotEditableError; } }));
12702
+ Object.defineProperty(exports, "WebOperationError", ({ enumerable: true, get: function () { return CustomError_1.WebOperationError; } }));
12703
12703
 
12704
12704
  })();
12705
12705
 
12706
- const __webpack_exports__ACL_LINK = __webpack_exports__.Oo;
12707
- const __webpack_exports__CrossOriginForbiddenError = __webpack_exports__.Un;
12708
- const __webpack_exports__FetchError = __webpack_exports__.fk;
12709
- const __webpack_exports__NotEditableError = __webpack_exports__.ML;
12710
- const __webpack_exports__NotFoundError = __webpack_exports__.m_;
12711
- const __webpack_exports__SameOriginForbiddenError = __webpack_exports__.sN;
12712
- const __webpack_exports__UnauthorizedError = __webpack_exports__.D_;
12713
- const __webpack_exports__WebOperationError = __webpack_exports__.ac;
12714
- const __webpack_exports___esModule = __webpack_exports__.BJ;
12715
- const __webpack_exports__appContext = __webpack_exports__.vu;
12716
- const __webpack_exports__authSession = __webpack_exports__.lG;
12717
- const __webpack_exports__authn = __webpack_exports__.jO;
12718
- const __webpack_exports__createTypeIndexLogic = __webpack_exports__.T4;
12719
- const __webpack_exports__getSuggestedIssuers = __webpack_exports__.I0;
12720
- const __webpack_exports__offlineTestID = __webpack_exports__.TX;
12721
- const __webpack_exports__solidLogicSingleton = __webpack_exports__.hV;
12722
- const __webpack_exports__store = __webpack_exports__.M_;
12723
- export { __webpack_exports__ACL_LINK as ACL_LINK, __webpack_exports__CrossOriginForbiddenError as CrossOriginForbiddenError, __webpack_exports__FetchError as FetchError, __webpack_exports__NotEditableError as NotEditableError, __webpack_exports__NotFoundError as NotFoundError, __webpack_exports__SameOriginForbiddenError as SameOriginForbiddenError, __webpack_exports__UnauthorizedError as UnauthorizedError, __webpack_exports__WebOperationError as WebOperationError, __webpack_exports___esModule as __esModule, __webpack_exports__appContext as appContext, __webpack_exports__authSession as authSession, __webpack_exports__authn as authn, __webpack_exports__createTypeIndexLogic as createTypeIndexLogic, __webpack_exports__getSuggestedIssuers as getSuggestedIssuers, __webpack_exports__offlineTestID as offlineTestID, __webpack_exports__solidLogicSingleton as solidLogicSingleton, __webpack_exports__store as store };
12706
+ const __webpack_exports__ACL_LINK = __webpack_exports__.ACL_LINK;
12707
+ const __webpack_exports__CrossOriginForbiddenError = __webpack_exports__.CrossOriginForbiddenError;
12708
+ const __webpack_exports__FetchError = __webpack_exports__.FetchError;
12709
+ const __webpack_exports__NotEditableError = __webpack_exports__.NotEditableError;
12710
+ const __webpack_exports__NotFoundError = __webpack_exports__.NotFoundError;
12711
+ const __webpack_exports__SameOriginForbiddenError = __webpack_exports__.SameOriginForbiddenError;
12712
+ const __webpack_exports__UnauthorizedError = __webpack_exports__.UnauthorizedError;
12713
+ const __webpack_exports__WebOperationError = __webpack_exports__.WebOperationError;
12714
+ const __webpack_exports___esModule = __webpack_exports__.__esModule;
12715
+ const __webpack_exports__appContext = __webpack_exports__.appContext;
12716
+ const __webpack_exports__authSession = __webpack_exports__.authSession;
12717
+ const __webpack_exports__authn = __webpack_exports__.authn;
12718
+ const __webpack_exports__createTypeIndexLogic = __webpack_exports__.createTypeIndexLogic;
12719
+ const __webpack_exports__getSuggestedIssuers = __webpack_exports__.getSuggestedIssuers;
12720
+ const __webpack_exports__offlineTestID = __webpack_exports__.offlineTestID;
12721
+ const __webpack_exports__solidLogicSingleton = __webpack_exports__.solidLogicSingleton;
12722
+ const __webpack_exports__store = __webpack_exports__.store;
12723
+ export { __webpack_exports__ACL_LINK as ACL_LINK, __webpack_exports__CrossOriginForbiddenError as CrossOriginForbiddenError, __webpack_exports__FetchError as FetchError, __webpack_exports__NotEditableError as NotEditableError, __webpack_exports__NotFoundError as NotFoundError, __webpack_exports__SameOriginForbiddenError as SameOriginForbiddenError, __webpack_exports__UnauthorizedError as UnauthorizedError, __webpack_exports__WebOperationError as WebOperationError, __webpack_exports___esModule as __esModule, __webpack_exports__appContext as appContext, __webpack_exports__authSession as authSession, __webpack_exports__authn as authn, __webpack_exports__createTypeIndexLogic as createTypeIndexLogic, __webpack_exports__getSuggestedIssuers as getSuggestedIssuers, __webpack_exports__offlineTestID as offlineTestID, __webpack_exports__solidLogicSingleton as solidLogicSingleton, __webpack_exports__store as store, __webpack_exports__ as default };
12724
12724
 
12725
12725
  //# sourceMappingURL=solid-logic.esm.external.js.map