@max-null/dsh-plugin-center 0.1.2 → 0.1.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.
Files changed (2) hide show
  1. package/client.js +2 -1
  2. package/package.json +1 -1
package/client.js CHANGED
@@ -799,7 +799,8 @@ function apply(ctx) {
799
799
  if (result.ok) return result.value;
800
800
  throw new Error(result.error?.message ?? `plugin-center: ${endpoint} failed`);
801
801
  };
802
- const initial = ctx.locale?.getLocale?.()?.active;
802
+ const locale = ctx.get?.("locale");
803
+ const initial = locale?.getLocale?.()?.active;
803
804
  if (typeof initial === "string") adoptLocale(initial);
804
805
  ctx.on?.("locale/change", (snap) => {
805
806
  adoptLocale(snap?.active);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@max-null/dsh-plugin-center",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Plugin center for DeepSeek Harness — installed metadata, community market, update detection, and What's New",
5
5
  "license": "MIT",
6
6
  "publishConfig": {