@ast-grep/napi 0.2.2 → 0.2.4

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/index.d.ts +1 -1
  2. package/package.json +7 -7
package/index.d.ts CHANGED
@@ -27,7 +27,7 @@ export interface NapiConfig {
27
27
  constraints?: any
28
28
  language?: FrontEndLanguage
29
29
  }
30
- export function parseFiles(paths: string[], callback: (err: null | Error, result: SgRoot) => void): Promise<unknown>
30
+ export function parseFiles(paths: string[], callback: (err: null | Error, result: SgRoot) => void): Promise<number>
31
31
  export class SgNode {
32
32
  range(): Range
33
33
  isLeaf(): boolean
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ast-grep/napi",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "Search and Rewrite code at large scale using precise AST pattern",
5
5
  "main": "index.js",
6
6
  "repository": "https://github.com/ast-grep/ast-grep",
@@ -64,11 +64,11 @@
64
64
  },
65
65
  "packageManager": "yarn@3.2.3",
66
66
  "optionalDependencies": {
67
- "@ast-grep/napi-win32-x64-msvc": "0.2.2",
68
- "@ast-grep/napi-darwin-x64": "0.2.2",
69
- "@ast-grep/napi-linux-x64-gnu": "0.2.2",
70
- "@ast-grep/napi-win32-ia32-msvc": "0.2.2",
71
- "@ast-grep/napi-darwin-arm64": "0.2.2",
72
- "@ast-grep/napi-win32-arm64-msvc": "0.2.2"
67
+ "@ast-grep/napi-win32-x64-msvc": "0.2.4",
68
+ "@ast-grep/napi-darwin-x64": "0.2.4",
69
+ "@ast-grep/napi-linux-x64-gnu": "0.2.4",
70
+ "@ast-grep/napi-win32-ia32-msvc": "0.2.4",
71
+ "@ast-grep/napi-darwin-arm64": "0.2.4",
72
+ "@ast-grep/napi-win32-arm64-msvc": "0.2.4"
73
73
  }
74
74
  }