@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.js CHANGED
@@ -2570,7 +2570,7 @@ function extractFrontmatter(raw) {
2570
2570
  if (line.trim().length === 0) continue;
2571
2571
  if (line.trim().startsWith("#")) continue;
2572
2572
  const kv = line.match(/^([a-zA-Z_][\w-]*)\s*:\s*(.*)$/);
2573
- if (!kv || !kv[1]) continue;
2573
+ if (!kv?.[1]) continue;
2574
2574
  let value = (kv[2] ?? "").trim();
2575
2575
  if (typeof value === "string") {
2576
2576
  if (value.startsWith('"') && value.endsWith('"') || value.startsWith("'") && value.endsWith("'")) {
@@ -5665,7 +5665,7 @@ var TaskConfigManager = class {
5665
5665
  return this.readConfig().tasks.find((t) => t.name === name);
5666
5666
  }
5667
5667
  createTask(input) {
5668
- if (!input.workspace || !input.workspace.path || !input.workspace.name) {
5668
+ if (!input.workspace?.path || !input.workspace.name) {
5669
5669
  throw (0, import_devtools_protocol8.createServicemeError)(
5670
5670
  "invalid_params",
5671
5671
  "createTask: workspace with path and name is required (v2 schema)"