@opencode-ai/util 0.0.0-dev-17853 → 0.0.0-dev-17860

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/fs-util.js CHANGED
@@ -118,7 +118,7 @@ export var FSUtil;
118
118
  const result = [];
119
119
  let current = start;
120
120
  while (true) {
121
- const matches = yield* scan(pattern, { cwd: current, absolute: true, include: "file", dot: true }).pipe(Effect.catch(() => Effect.succeed([])));
121
+ const matches = yield* scan(pattern, { cwd: current, absolute: true, include: "file", dot: true }).pipe(Effect.orElseSucceed(() => []));
122
122
  result.push(...matches);
123
123
  if (stop === current)
124
124
  break;
package/dist/npm.js CHANGED
@@ -129,7 +129,7 @@ const layer = Layer.effect(Service, Effect.gen(function* () {
129
129
  const dir = directory(pkg);
130
130
  const binDir = path.join(dir, "node_modules", ".bin");
131
131
  const pick = Effect.fnUntraced(function* () {
132
- const files = yield* fs.readDirectory(binDir).pipe(Effect.catch(() => Effect.succeed([])));
132
+ const files = yield* fs.readDirectory(binDir).pipe(Effect.orElseSucceed(() => []));
133
133
  if (files.length === 0)
134
134
  return Option.none();
135
135
  // Caller picked a specific bin (e.g. pyright exposes both `pyright` and
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-17853",
4
+ "version": "0.0.0-dev-17860",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {