@cgasgarth/opencode-for-rust 1.1.6 → 1.1.7

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import { tool } from "@opencode-ai/plugin";
3
3
 
4
4
  // src/lib/regex-extractor.ts
5
- import * as fs from "fs/promises";
5
+ import * as fs from "fs";
6
6
  var PATTERNS = [
7
7
  {
8
8
  kind: "struct",
@@ -45,7 +45,7 @@ class RegexRustTypeExtractor {
45
45
  this.config = config;
46
46
  }
47
47
  async extract(filePath, content) {
48
- const fileContent = content || await fs.readFile(filePath, "utf-8");
48
+ const fileContent = content || await fs.promises.readFile(filePath, "utf-8");
49
49
  const types = [];
50
50
  for (const { kind, regex, useBodyExtractor } of PATTERNS) {
51
51
  regex.lastIndex = 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cgasgarth/opencode-for-rust",
3
- "version": "1.1.6",
3
+ "version": "1.1.7",
4
4
  "description": "OpenCode plugin for Rust",
5
5
  "author": {
6
6
  "name": "Sisyphus",