dsh-mnemon-source-memory-spaces 0.5.17 → 0.5.18
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/lib/index.js +10 -0
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -3800,7 +3800,17 @@ async function installMemorySpaces(ctx, entries, options = {}) {
|
|
|
3800
3800
|
throw error;
|
|
3801
3801
|
}
|
|
3802
3802
|
}
|
|
3803
|
+
/**
|
|
3804
|
+
* dshmarket's client-only mount of a Memory Spaces package installed on its own
|
|
3805
|
+
* in a profile, `include:dsh-market:mkt-client-<package>`: it is meant to run no
|
|
3806
|
+
* host code, and the Starter's own Entry composes the Source with its Providers (#359).
|
|
3807
|
+
*/
|
|
3808
|
+
function isMarketClientShim(ctx) {
|
|
3809
|
+
const loader = ctx.get("loader", false);
|
|
3810
|
+
return /(?:^|:)mkt-client-[^:]*$/u.test(loader?.locate(ctx.fiber)?.trim() ?? "");
|
|
3811
|
+
}
|
|
3803
3812
|
async function apply(ctx, config = { providers: [] }) {
|
|
3813
|
+
if (isMarketClientShim(ctx)) return;
|
|
3804
3814
|
const { providers, ...sourceConfig } = config;
|
|
3805
3815
|
await installMemorySpaces(ctx, await resolveMemorySpaceProviderEntries(ctx, providers), { config: sourceConfig });
|
|
3806
3816
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-mnemon-source-memory-spaces",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.18",
|
|
4
4
|
"description": "Memory Spaces Source and its private Provider SDK.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@types/node": "^22.0.0",
|
|
66
66
|
"@types/react": "^18.3.0",
|
|
67
67
|
"@types/react-dom": "^18.3.0",
|
|
68
|
-
"dsh-mnemon": "^0.5.
|
|
68
|
+
"dsh-mnemon": "^0.5.27",
|
|
69
69
|
"dsh-mnemon-provider-byterover": "^0.5.5",
|
|
70
70
|
"dsh-mnemon-provider-hindsight": "^0.5.5",
|
|
71
71
|
"dsh-mnemon-provider-holographic": "^0.5.6",
|