@ast-grep/napi 0.23.0 → 0.24.0

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 +4 -4
  2. package/package.json +10 -10
package/index.d.ts CHANGED
@@ -62,10 +62,10 @@ export const enum Lang {
62
62
  Swift = 'Swift'
63
63
  }
64
64
  export interface Edit {
65
- /** The position of the edit */
66
- position: number
67
- /** The length of the text to be deleted */
68
- deletedLength: number
65
+ /** The start position of the edit */
66
+ startPos: number
67
+ /** The end position of the edit */
68
+ endPos: number
69
69
  /** The text to be inserted */
70
70
  insertedText: string
71
71
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ast-grep/napi",
3
- "version": "0.23.0",
3
+ "version": "0.24.0",
4
4
  "description": "Search and Rewrite code at large scale using precise AST pattern",
5
5
  "homepage": "https://ast-grep.github.io",
6
6
  "main": "index.js",
@@ -50,7 +50,7 @@
50
50
  "ava": "6.1.3",
51
51
  "chalk": "5.3.0",
52
52
  "ts-node": "10.9.2",
53
- "typescript": "5.4.5"
53
+ "typescript": "5.5.2"
54
54
  },
55
55
  "ava": {
56
56
  "require": [
@@ -66,13 +66,13 @@
66
66
  }
67
67
  },
68
68
  "optionalDependencies": {
69
- "@ast-grep/napi-win32-x64-msvc": "0.23.0",
70
- "@ast-grep/napi-darwin-x64": "0.23.0",
71
- "@ast-grep/napi-linux-x64-gnu": "0.23.0",
72
- "@ast-grep/napi-win32-ia32-msvc": "0.23.0",
73
- "@ast-grep/napi-darwin-arm64": "0.23.0",
74
- "@ast-grep/napi-win32-arm64-msvc": "0.23.0",
75
- "@ast-grep/napi-linux-arm64-gnu": "0.23.0",
76
- "@ast-grep/napi-linux-x64-musl": "0.23.0"
69
+ "@ast-grep/napi-win32-x64-msvc": "0.24.0",
70
+ "@ast-grep/napi-darwin-x64": "0.24.0",
71
+ "@ast-grep/napi-linux-x64-gnu": "0.24.0",
72
+ "@ast-grep/napi-win32-ia32-msvc": "0.24.0",
73
+ "@ast-grep/napi-darwin-arm64": "0.24.0",
74
+ "@ast-grep/napi-win32-arm64-msvc": "0.24.0",
75
+ "@ast-grep/napi-linux-arm64-gnu": "0.24.0",
76
+ "@ast-grep/napi-linux-x64-musl": "0.24.0"
77
77
  }
78
78
  }