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.
@@ -7012,7 +7012,7 @@ function createTypeIndexLogic(store, authn, profileLogic, utilityLogic) {
7012
7012
  return []; // No communities
7013
7013
  }
7014
7014
  async function loadAllTypeIndexes(user) {
7015
- return (await loadTypeIndexesFor(user)).concat((await loadCommunityTypeIndexes(user)).flat());
7015
+ return (await loadTypeIndexesFor(user)).concat(await loadCommunityTypeIndexes(user));
7016
7016
  }
7017
7017
  async function getScopedAppInstances(klass, user) {
7018
7018
  const scopes = await loadAllTypeIndexes(user);
@@ -7040,7 +7040,7 @@ function createTypeIndexLogic(store, authn, profileLogic, utilityLogic) {
7040
7040
  return dir.uri;
7041
7041
  const docUri = doc.uri;
7042
7042
  if (!docUri || !isAbsoluteHttpUri(docUri)) {
7043
- log(`docDirUri: missing doc uri for ${node === null || node === void 0 ? void 0 : node.uri}`);
7043
+ log(`docDirUri: missing or non-http(s) doc uri for ${node === null || node === void 0 ? void 0 : node.uri}`);
7044
7044
  return null;
7045
7045
  }
7046
7046
  const withoutFragment = docUri.split('#')[0];
@@ -7053,14 +7053,14 @@ function createTypeIndexLogic(store, authn, profileLogic, utilityLogic) {
7053
7053
  }
7054
7054
  function suggestPublicTypeIndex(me) {
7055
7055
  const dirUri = docDirUri(me);
7056
- if (!dirUri || !isAbsoluteHttpUri(dirUri))
7056
+ if (!dirUri)
7057
7057
  throw new Error(`suggestPublicTypeIndex: Cannot derive directory for ${me.uri}`);
7058
7058
  return (0,external_$rdf_.sym)(dirUri + 'publicTypeIndex.ttl');
7059
7059
  }
7060
7060
  // Note this one is based off the pref file not the profile
7061
7061
  function suggestPrivateTypeIndex(preferencesFile) {
7062
7062
  const dirUri = docDirUri(preferencesFile);
7063
- if (!dirUri || !isAbsoluteHttpUri(dirUri))
7063
+ if (!dirUri)
7064
7064
  throw new Error(`suggestPrivateTypeIndex: Cannot derive directory for ${preferencesFile.uri}`);
7065
7065
  return (0,external_$rdf_.sym)(dirUri + 'privateTypeIndex.ttl');
7066
7066
  }