@opencode-ai/util 0.0.0-dev-18464 → 0.0.0-dev-18470

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.
@@ -64,14 +64,14 @@ function walk(root, visit, options = {}) {
64
64
  const cached = cache.get(target);
65
65
  if (cached !== undefined || cache.has(target))
66
66
  return cached;
67
- if (options.detectCycles !== false && visiting.has(target)) {
67
+ if (visiting.has(target)) {
68
68
  const start = stack.indexOf(target);
69
69
  throw new Error(`Cycle detected in layer tree: ${[...stack.slice(start), target].map((item) => item.name).join(" -> ")}`);
70
70
  }
71
71
  visiting.add(target);
72
72
  stack.push(target);
73
73
  try {
74
- const result = visit(target, { cache, visit: recur });
74
+ const result = visit(target, { visit: recur });
75
75
  if (!cache.has(target))
76
76
  cache.set(target, result);
77
77
  return result;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode-ai/util",
4
- "version": "0.0.0-dev-18464",
4
+ "version": "0.0.0-dev-18470",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {