@nsnanocat/preference-panes 1.1.2 → 1.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.
@@ -76,7 +76,7 @@ export class ModuleStatus extends EventTarget {
76
76
  const response = await probeModule(url, { ...options, signal: controller.signal });
77
77
  if (controller !== this.#controller) return response;
78
78
  const version = response.status === 200 ? response.headers.get("X-PreferencePanes-Version")?.trim() || null : null;
79
- this.#render(response.status === 200 ? "installed" : "missing", version);
79
+ this.#render(version ? "installed" : "missing", version);
80
80
  return response;
81
81
  } catch (error) {
82
82
  if (controller !== this.#controller) return;
@@ -25,6 +25,7 @@ export function normalizeBoxJs(config, module) {
25
25
  if (!storageKey || storageKey.startsWith("@") || parts.length < 2) throw new TypeError("A BoxJS setting must be below a literal storage root and module");
26
26
  validatePathParts(parts);
27
27
  const name = parts[0];
28
+ if (["get", "set", "delete"].includes(name)) throw new TypeError(`Reserved API module name: ${name}`);
28
29
  let target = modules.get(name);
29
30
  if (!target) {
30
31
  target = { module: name, storageKey, entries: [], owners: new Set() };