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.
@@ -6846,9 +6846,6 @@ function createProfileLogic(store, authn, utilityLogic) {
6846
6846
 
6847
6847
  function createTypeIndexLogic(store, authn, profileLogic, utilityLogic) {
6848
6848
  const ns = ns_ns;
6849
- function isAbsoluteHttpUri(uri) {
6850
- return !!uri && (uri.startsWith('https://') || uri.startsWith('http://'));
6851
- }
6852
6849
  function getRegistrations(instance, theClass) {
6853
6850
  return store
6854
6851
  .each(undefined, ns.solid('instance'), instance)
@@ -6941,16 +6938,7 @@ function createTypeIndexLogic(store, authn, profileLogic, utilityLogic) {
6941
6938
  const communities = store.each(user, ns.solid('community'), undefined, preferencesFile).concat(store.each(user, ns.solid('community'), undefined, user.doc()));
6942
6939
  let result = [];
6943
6940
  for (const org of communities) {
6944
- if (org.termType !== 'NamedNode' || !isAbsoluteHttpUri(org.uri)) {
6945
- warn(`Skipping malformed community node for ${user}: ${org}`);
6946
- continue;
6947
- }
6948
- try {
6949
- result = result.concat(await loadTypeIndexesFor(org));
6950
- }
6951
- catch (err) {
6952
- warn(`Skipping community type indexes for ${org.uri}: ${err}`);
6953
- }
6941
+ result = result.concat(await loadTypeIndexesFor(org));
6954
6942
  }
6955
6943
  return result;
6956
6944
  }
@@ -6981,10 +6969,10 @@ function createTypeIndexLogic(store, authn, profileLogic, utilityLogic) {
6981
6969
  function docDirUri(node) {
6982
6970
  const doc = node.doc();
6983
6971
  const dir = doc.dir();
6984
- if ((dir === null || dir === void 0 ? void 0 : dir.uri) && isAbsoluteHttpUri(dir.uri))
6972
+ if (dir === null || dir === void 0 ? void 0 : dir.uri)
6985
6973
  return dir.uri;
6986
6974
  const docUri = doc.uri;
6987
- if (!docUri || !isAbsoluteHttpUri(docUri)) {
6975
+ if (!docUri) {
6988
6976
  log(`docDirUri: missing doc uri for ${node === null || node === void 0 ? void 0 : node.uri}`);
6989
6977
  return null;
6990
6978
  }
@@ -6998,14 +6986,14 @@ function createTypeIndexLogic(store, authn, profileLogic, utilityLogic) {
6998
6986
  }
6999
6987
  function suggestPublicTypeIndex(me) {
7000
6988
  const dirUri = docDirUri(me);
7001
- if (!dirUri || !isAbsoluteHttpUri(dirUri))
6989
+ if (!dirUri)
7002
6990
  throw new Error(`suggestPublicTypeIndex: Cannot derive directory for ${me.uri}`);
7003
6991
  return (0,external_rdflib_namespaceObject.sym)(dirUri + 'publicTypeIndex.ttl');
7004
6992
  }
7005
6993
  // Note this one is based off the pref file not the profile
7006
6994
  function suggestPrivateTypeIndex(preferencesFile) {
7007
6995
  const dirUri = docDirUri(preferencesFile);
7008
- if (!dirUri || !isAbsoluteHttpUri(dirUri))
6996
+ if (!dirUri)
7009
6997
  throw new Error(`suggestPrivateTypeIndex: Cannot derive directory for ${preferencesFile.uri}`);
7010
6998
  return (0,external_rdflib_namespaceObject.sym)(dirUri + 'privateTypeIndex.ttl');
7011
6999
  }