2 Commits

Author SHA1 Message Date
0e7d416048 1.4.2
Some checks failed
CI / Type Check & Lint (push) Successful in 41s
Publish to npm / npm-publish (push) Failing after 1m5s
CI / Build Test (Current Platform) (push) Successful in 1m13s
CI / Build All Platforms (push) Successful in 2m2s
Release / build-and-release (push) Successful in 2m6s
2025-10-28 22:05:50 +00:00
23f41cc152 fix(scriptindex): Handle missing script metadata fields in ScriptIndex.search to prevent crashes 2025-10-28 22:05:50 +00:00
5 changed files with 12 additions and 6 deletions

View File

@@ -1,5 +1,11 @@
# Changelog # Changelog
## 2025-10-28 - 1.4.2 - fix(scriptindex)
Handle missing script metadata fields in ScriptIndex.search to prevent crashes
- Add null/undefined checks for name, slug, and description in ScriptIndex.search to avoid runtime exceptions when script metadata is incomplete
- Improves robustness of scripts search against partially populated or malformed cached metadata
## 2025-10-28 - 1.4.1 - fix(cli) ## 2025-10-28 - 1.4.1 - fix(cli)
Fallback to 'unknown' when script.slug is missing in scripts list Fallback to 'unknown' when script.slug is missing in scripts list

View File

@@ -1,6 +1,6 @@
{ {
"name": "@serve.zone/moxytool", "name": "@serve.zone/moxytool",
"version": "1.4.1", "version": "1.4.2",
"exports": "./mod.ts", "exports": "./mod.ts",
"nodeModulesDir": "auto", "nodeModulesDir": "auto",
"tasks": { "tasks": {

View File

@@ -1,6 +1,6 @@
{ {
"name": "@serve.zone/moxytool", "name": "@serve.zone/moxytool",
"version": "1.4.1", "version": "1.4.2",
"description": "Proxmox administration tool for vGPU setup, VM management, and cluster configuration", "description": "Proxmox administration tool for vGPU setup, VM management, and cluster configuration",
"keywords": [ "keywords": [
"proxmox", "proxmox",

View File

@@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@serve.zone/moxytool', name: '@serve.zone/moxytool',
version: '1.4.1', version: '1.4.2',
description: 'Proxmox administration tool for vGPU setup, VM management, and cluster configuration' description: 'Proxmox administration tool for vGPU setup, VM management, and cluster configuration'
} }

View File

@@ -263,9 +263,9 @@ export class ScriptIndex {
return this.cache.scripts.filter((script) => { return this.cache.scripts.filter((script) => {
// Search in name, description, and slug // Search in name, description, and slug
return ( return (
script.name.toLowerCase().includes(lowerQuery) || (script.name && script.name.toLowerCase().includes(lowerQuery)) ||
script.slug.toLowerCase().includes(lowerQuery) || (script.slug && script.slug.toLowerCase().includes(lowerQuery)) ||
script.description.toLowerCase().includes(lowerQuery) (script.description && script.description.toLowerCase().includes(lowerQuery))
); );
}); });
} }