solid-logic 4.0.3-bc34281 → 4.0.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.
@@ -6901,9 +6901,6 @@ function createProfileLogic(store, authn, utilityLogic) {
6901
6901
 
6902
6902
  function createTypeIndexLogic(store, authn, profileLogic, utilityLogic) {
6903
6903
  const ns = ns_ns;
6904
- function isAbsoluteHttpUri(uri) {
6905
- return !!uri && (uri.startsWith('https://') || uri.startsWith('http://'));
6906
- }
6907
6904
  function getRegistrations(instance, theClass) {
6908
6905
  return store
6909
6906
  .each(undefined, ns.solid('instance'), instance)
@@ -6996,16 +6993,7 @@ function createTypeIndexLogic(store, authn, profileLogic, utilityLogic) {
6996
6993
  const communities = store.each(user, ns.solid('community'), undefined, preferencesFile).concat(store.each(user, ns.solid('community'), undefined, user.doc()));
6997
6994
  let result = [];
6998
6995
  for (const org of communities) {
6999
- if (org.termType !== 'NamedNode' || !isAbsoluteHttpUri(org.uri)) {
7000
- warn(`Skipping malformed community node for ${user}: ${org}`);
7001
- continue;
7002
- }
7003
- try {
7004
- result = result.concat(await loadTypeIndexesFor(org));
7005
- }
7006
- catch (err) {
7007
- warn(`Skipping community type indexes for ${org.uri}: ${err}`);
7008
- }
6996
+ result = result.concat(await loadTypeIndexesFor(org));
7009
6997
  }
7010
6998
  return result;
7011
6999
  }
@@ -7036,10 +7024,10 @@ function createTypeIndexLogic(store, authn, profileLogic, utilityLogic) {
7036
7024
  function docDirUri(node) {
7037
7025
  const doc = node.doc();
7038
7026
  const dir = doc.dir();
7039
- if ((dir === null || dir === void 0 ? void 0 : dir.uri) && isAbsoluteHttpUri(dir.uri))
7027
+ if (dir === null || dir === void 0 ? void 0 : dir.uri)
7040
7028
  return dir.uri;
7041
7029
  const docUri = doc.uri;
7042
- if (!docUri || !isAbsoluteHttpUri(docUri)) {
7030
+ if (!docUri) {
7043
7031
  log(`docDirUri: missing doc uri for ${node === null || node === void 0 ? void 0 : node.uri}`);
7044
7032
  return null;
7045
7033
  }
@@ -7053,14 +7041,14 @@ function createTypeIndexLogic(store, authn, profileLogic, utilityLogic) {
7053
7041
  }
7054
7042
  function suggestPublicTypeIndex(me) {
7055
7043
  const dirUri = docDirUri(me);
7056
- if (!dirUri || !isAbsoluteHttpUri(dirUri))
7044
+ if (!dirUri)
7057
7045
  throw new Error(`suggestPublicTypeIndex: Cannot derive directory for ${me.uri}`);
7058
7046
  return (0,external_$rdf_.sym)(dirUri + 'publicTypeIndex.ttl');
7059
7047
  }
7060
7048
  // Note this one is based off the pref file not the profile
7061
7049
  function suggestPrivateTypeIndex(preferencesFile) {
7062
7050
  const dirUri = docDirUri(preferencesFile);
7063
- if (!dirUri || !isAbsoluteHttpUri(dirUri))
7051
+ if (!dirUri)
7064
7052
  throw new Error(`suggestPrivateTypeIndex: Cannot derive directory for ${preferencesFile.uri}`);
7065
7053
  return (0,external_$rdf_.sym)(dirUri + 'privateTypeIndex.ttl');
7066
7054
  }