solid-logic 4.0.4-5074310 → 4.0.4-ce0bf33

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.
@@ -6957,7 +6957,7 @@ function createTypeIndexLogic(store, authn, profileLogic, utilityLogic) {
6957
6957
  return []; // No communities
6958
6958
  }
6959
6959
  async function loadAllTypeIndexes(user) {
6960
- return (await loadTypeIndexesFor(user)).concat((await loadCommunityTypeIndexes(user)).flat());
6960
+ return (await loadTypeIndexesFor(user)).concat(await loadCommunityTypeIndexes(user));
6961
6961
  }
6962
6962
  async function getScopedAppInstances(klass, user) {
6963
6963
  const scopes = await loadAllTypeIndexes(user);
@@ -6985,7 +6985,7 @@ function createTypeIndexLogic(store, authn, profileLogic, utilityLogic) {
6985
6985
  return dir.uri;
6986
6986
  const docUri = doc.uri;
6987
6987
  if (!docUri || !isAbsoluteHttpUri(docUri)) {
6988
- log(`docDirUri: missing doc uri for ${node === null || node === void 0 ? void 0 : node.uri}`);
6988
+ log(`docDirUri: missing or non-http(s) doc uri for ${node === null || node === void 0 ? void 0 : node.uri}`);
6989
6989
  return null;
6990
6990
  }
6991
6991
  const withoutFragment = docUri.split('#')[0];
@@ -6998,14 +6998,14 @@ function createTypeIndexLogic(store, authn, profileLogic, utilityLogic) {
6998
6998
  }
6999
6999
  function suggestPublicTypeIndex(me) {
7000
7000
  const dirUri = docDirUri(me);
7001
- if (!dirUri || !isAbsoluteHttpUri(dirUri))
7001
+ if (!dirUri)
7002
7002
  throw new Error(`suggestPublicTypeIndex: Cannot derive directory for ${me.uri}`);
7003
7003
  return (0,external_rdflib_namespaceObject.sym)(dirUri + 'publicTypeIndex.ttl');
7004
7004
  }
7005
7005
  // Note this one is based off the pref file not the profile
7006
7006
  function suggestPrivateTypeIndex(preferencesFile) {
7007
7007
  const dirUri = docDirUri(preferencesFile);
7008
- if (!dirUri || !isAbsoluteHttpUri(dirUri))
7008
+ if (!dirUri)
7009
7009
  throw new Error(`suggestPrivateTypeIndex: Cannot derive directory for ${preferencesFile.uri}`);
7010
7010
  return (0,external_rdflib_namespaceObject.sym)(dirUri + 'privateTypeIndex.ttl');
7011
7011
  }