@serviceme/devtools-core 0.4.7 → 0.4.9

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/dist/index.mjs CHANGED
@@ -2380,7 +2380,7 @@ function extractFrontmatter(raw) {
2380
2380
  if (line.trim().length === 0) continue;
2381
2381
  if (line.trim().startsWith("#")) continue;
2382
2382
  const kv = line.match(/^([a-zA-Z_][\w-]*)\s*:\s*(.*)$/);
2383
- if (!kv || !kv[1]) continue;
2383
+ if (!kv?.[1]) continue;
2384
2384
  let value = (kv[2] ?? "").trim();
2385
2385
  if (typeof value === "string") {
2386
2386
  if (value.startsWith('"') && value.endsWith('"') || value.startsWith("'") && value.endsWith("'")) {
@@ -5491,7 +5491,7 @@ var TaskConfigManager = class {
5491
5491
  return this.readConfig().tasks.find((t) => t.name === name);
5492
5492
  }
5493
5493
  createTask(input) {
5494
- if (!input.workspace || !input.workspace.path || !input.workspace.name) {
5494
+ if (!input.workspace?.path || !input.workspace.name) {
5495
5495
  throw createServicemeError8(
5496
5496
  "invalid_params",
5497
5497
  "createTask: workspace with path and name is required (v2 schema)"