@muze-nl/jsfs-solid 0.3.1 → 0.3.3

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/browser.js CHANGED
@@ -10538,11 +10538,11 @@
10538
10538
  let response2 = await options.client.post(options.registration_endpoint, {
10539
10539
  body: options.client_info
10540
10540
  });
10541
- let info2 = response2.data;
10542
- if (!info2.client_id || !info2.client_secret) {
10541
+ let info = response2.data;
10542
+ if (!info.client_id || !info.client_secret) {
10543
10543
  throw everything_default.metroError("metro.oidc: Error: dynamic registration of client failed, no client_id or client_secret returned", response2);
10544
10544
  }
10545
- options.client_info = Object.assign(options.client_info, info2);
10545
+ options.client_info = Object.assign(options.client_info, info);
10546
10546
  return options.client_info;
10547
10547
  }
10548
10548
 
@@ -10984,8 +10984,8 @@
10984
10984
  // node_modules/@muze-nl/oldm/src/oldm-n3.mjs
10985
10985
  var oldm_n3_exports = {};
10986
10986
  __export(oldm_n3_exports, {
10987
- n3Parser: () => n3Parser2,
10988
- n3Writer: () => n3Writer2
10987
+ n3Parser: () => n3Parser,
10988
+ n3Writer: () => n3Writer
10989
10989
  });
10990
10990
 
10991
10991
  // node_modules/n3/src/N3Lexer.js
@@ -14622,7 +14622,7 @@
14622
14622
  };
14623
14623
 
14624
14624
  // node_modules/@muze-nl/oldm/src/oldm-n3.mjs
14625
- var n3Parser2 = (input, uri, type) => {
14625
+ var n3Parser = (input, uri, type) => {
14626
14626
  const parser = new src_default.Parser({
14627
14627
  baseIRI: uri,
14628
14628
  blankNodePrefix: "",
@@ -14634,7 +14634,7 @@
14634
14634
  });
14635
14635
  return { quads, prefixes: prefixes3 };
14636
14636
  };
14637
- var n3Writer2 = (source) => {
14637
+ var n3Writer = (source) => {
14638
14638
  return new Promise((resolve, reject) => {
14639
14639
  const writer = new src_default.Writer({
14640
14640
  format: source.type,
@@ -15398,23 +15398,23 @@
15398
15398
  "vcard": "http://www.w3.org/2006/vcard/ns#",
15399
15399
  "foaf": "http://xmlns.com/foaf/0.1/"
15400
15400
  },
15401
- parser: n3Parser,
15402
- writer: n3Writer
15401
+ parser: oldm.n3Parser,
15402
+ writer: oldm.n3Writer
15403
15403
  };
15404
15404
  const options = Object.assign({}, defaults, solidOptions);
15405
15405
  for (const prefix2 in defaults.prefixes) {
15406
- if (!info.prefixes[prefix2]) {
15407
- info.prefixes[prefix2] = defaults.prefixes[prefix2];
15406
+ if (!options.prefixes[prefix2]) {
15407
+ options.prefixes[prefix2] = defaults.prefixes[prefix2];
15408
15408
  }
15409
15409
  }
15410
- const profile = await metro.client().with(oldmmw(info), getdatamw()).get(webid)?.primary;
15410
+ const profile = await metro.client().with(oldmmw(options), getdatamw()).get(webid)?.primary;
15411
15411
  if (!profile || !profile.solid$oidcIssuer) {
15412
15412
  throw new Error("solidClient: " + webid + " did not return valid solid profile");
15413
15413
  }
15414
- info.issuer = profile.solid$oidcIssuer;
15415
- const storage = oldm.many(profile.space$storage).map((s) => new jsfs.fs(new SolidAdapter(s, "/", info)));
15414
+ options.issuer = profile.solid$oidcIssuer;
15415
+ const storage = oldm.many(profile.space$storage).map((s) => new jsfs.fs(new SolidAdapter(s, "/", options)));
15416
15416
  return metro.api(
15417
- metro.client(oidcmw(info), oldmmw(info)),
15417
+ metro.client(oidcmw(options), oldmmw(options)),
15418
15418
  {
15419
15419
  profile,
15420
15420
  issuer: profile.solid$oidcIssuer,