@pod-os/core 0.11.2-e490428.0 → 0.11.2-e654d19.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
@@ -7,9 +7,8 @@ import {
7
7
  isNamedNode,
8
8
  lit,
9
9
  namedNode,
10
- st,
11
- v4_default
12
- } from "./chunk-NJZBRQIY.js";
10
+ st
11
+ } from "./chunk-K3YKITD7.js";
13
12
  import {
14
13
  __commonJS,
15
14
  __export,
@@ -10594,6 +10593,54 @@ async function generateKeyPair2(alg, options) {
10594
10593
  return generateKeyPair(alg, options);
10595
10594
  }
10596
10595
 
10596
+ // ../node_modules/uuid/dist/esm-browser/rng.js
10597
+ var getRandomValues;
10598
+ var rnds8 = new Uint8Array(16);
10599
+ function rng() {
10600
+ if (!getRandomValues) {
10601
+ getRandomValues = typeof crypto !== "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
10602
+ if (!getRandomValues) {
10603
+ throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
10604
+ }
10605
+ }
10606
+ return getRandomValues(rnds8);
10607
+ }
10608
+
10609
+ // ../node_modules/uuid/dist/esm-browser/stringify.js
10610
+ var byteToHex = [];
10611
+ for (let i = 0; i < 256; ++i) {
10612
+ byteToHex.push((i + 256).toString(16).slice(1));
10613
+ }
10614
+ function unsafeStringify(arr, offset3 = 0) {
10615
+ return byteToHex[arr[offset3 + 0]] + byteToHex[arr[offset3 + 1]] + byteToHex[arr[offset3 + 2]] + byteToHex[arr[offset3 + 3]] + "-" + byteToHex[arr[offset3 + 4]] + byteToHex[arr[offset3 + 5]] + "-" + byteToHex[arr[offset3 + 6]] + byteToHex[arr[offset3 + 7]] + "-" + byteToHex[arr[offset3 + 8]] + byteToHex[arr[offset3 + 9]] + "-" + byteToHex[arr[offset3 + 10]] + byteToHex[arr[offset3 + 11]] + byteToHex[arr[offset3 + 12]] + byteToHex[arr[offset3 + 13]] + byteToHex[arr[offset3 + 14]] + byteToHex[arr[offset3 + 15]];
10616
+ }
10617
+
10618
+ // ../node_modules/uuid/dist/esm-browser/native.js
10619
+ var randomUUID = typeof crypto !== "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
10620
+ var native_default = {
10621
+ randomUUID
10622
+ };
10623
+
10624
+ // ../node_modules/uuid/dist/esm-browser/v4.js
10625
+ function v4(options, buf, offset3) {
10626
+ if (native_default.randomUUID && !buf && !options) {
10627
+ return native_default.randomUUID();
10628
+ }
10629
+ options = options || {};
10630
+ const rnds = options.random || (options.rng || rng)();
10631
+ rnds[6] = rnds[6] & 15 | 64;
10632
+ rnds[8] = rnds[8] & 63 | 128;
10633
+ if (buf) {
10634
+ offset3 = offset3 || 0;
10635
+ for (let i = 0; i < 16; ++i) {
10636
+ buf[offset3 + i] = rnds[i];
10637
+ }
10638
+ return buf;
10639
+ }
10640
+ return unsafeStringify(rnds);
10641
+ }
10642
+ var v4_default = v4;
10643
+
10597
10644
  // ../node_modules/@inrupt/solid-client-authn-core/dist/index.mjs
10598
10645
  var SOLID_CLIENT_AUTHN_KEY_PREFIX = "solidClientAuthn:";
10599
10646
  var PREFERRED_SIGNING_ALG = ["ES256", "RS256"];
@@ -12367,9 +12414,9 @@ var BrowserSession = class {
12367
12414
  return this.session.logout();
12368
12415
  }
12369
12416
  trackSession(callback) {
12370
- this.session.onLogin(() => callback(this.session.info));
12371
- this.session.onLogout(() => callback(this.session.info));
12372
- this.session.onSessionRestore(() => callback(this.session.info));
12417
+ this.session.on(EVENTS.LOGIN, () => callback(this.session.info));
12418
+ this.session.on(EVENTS.LOGOUT, () => callback(this.session.info));
12419
+ this.session.on(EVENTS.SESSION_RESTORED, () => callback(this.session.info));
12373
12420
  callback(this.session.info);
12374
12421
  }
12375
12422
  };
@@ -12431,7 +12478,7 @@ var FileFetcher = class {
12431
12478
 
12432
12479
  // src/modules/contacts.ts
12433
12480
  async function loadContactsModule(store) {
12434
- const module2 = await import("./dist-D3HKZNEN.js");
12481
+ const module2 = await import("./dist-L3AA3UET.js");
12435
12482
  return new module2.default({
12436
12483
  store: store.graph,
12437
12484
  fetcher: store.fetcher,
@@ -33203,9 +33250,9 @@ var PodOS = class {
33203
33250
  return this.uriService.proposeUriForNewThing(referenceUri, name7);
33204
33251
  }
33205
33252
  trackSession(callback) {
33206
- return this.session.trackSession((session4) => {
33253
+ return this.session.trackSession((sessionInfo) => {
33207
33254
  this.store.updater.flagAuthorizationMetadata();
33208
- callback(session4);
33255
+ callback(sessionInfo, this.session.authenticatedFetch);
33209
33256
  });
33210
33257
  }
33211
33258
  /**