@ast-grep/napi
Advanced tools
+13
-13
| { | ||
| "name": "@ast-grep/napi", | ||
| "version": "0.41.1", | ||
| "version": "0.42.0", | ||
| "description": "Search and Rewrite code at large scale using precise AST pattern", | ||
@@ -57,9 +57,9 @@ "homepage": "https://ast-grep.github.io", | ||
| "devDependencies": { | ||
| "@ast-grep/napi": "0.41.0", | ||
| "@ast-grep/napi": "0.41.1", | ||
| "@napi-rs/cli": "3.5.1", | ||
| "@types/node": "^24.0.0", | ||
| "oxlint": "1.51.0", | ||
| "oxlint": "1.55.0", | ||
| "ava": "7.0.0", | ||
| "chalk": "5.6.2", | ||
| "dprint": "0.52.0", | ||
| "dprint": "0.53.0", | ||
| "smol-toml": "^1.3.1", | ||
@@ -83,12 +83,12 @@ "ts-node": "10.9.2", | ||
| "optionalDependencies": { | ||
| "@ast-grep/napi-linux-x64-gnu": "0.41.1", | ||
| "@ast-grep/napi-win32-x64-msvc": "0.41.1", | ||
| "@ast-grep/napi-darwin-x64": "0.41.1", | ||
| "@ast-grep/napi-win32-ia32-msvc": "0.41.1", | ||
| "@ast-grep/napi-darwin-arm64": "0.41.1", | ||
| "@ast-grep/napi-win32-arm64-msvc": "0.41.1", | ||
| "@ast-grep/napi-linux-arm64-gnu": "0.41.1", | ||
| "@ast-grep/napi-linux-arm64-musl": "0.41.1", | ||
| "@ast-grep/napi-linux-x64-musl": "0.41.1" | ||
| "@ast-grep/napi-linux-x64-gnu": "0.42.0", | ||
| "@ast-grep/napi-win32-x64-msvc": "0.42.0", | ||
| "@ast-grep/napi-darwin-x64": "0.42.0", | ||
| "@ast-grep/napi-win32-ia32-msvc": "0.42.0", | ||
| "@ast-grep/napi-darwin-arm64": "0.42.0", | ||
| "@ast-grep/napi-win32-arm64-msvc": "0.42.0", | ||
| "@ast-grep/napi-linux-arm64-gnu": "0.42.0", | ||
| "@ast-grep/napi-linux-arm64-musl": "0.42.0", | ||
| "@ast-grep/napi-linux-x64-musl": "0.42.0" | ||
| } | ||
| } |
+9
-2
@@ -54,2 +54,9 @@ import type { NamedKinds, TypesMap } from './staticTypes' | ||
| export type UtilityCall<M extends TypesMap = TypesMap> = Record< | ||
| string, | ||
| Record<string, Rule<M>> | ||
| > | ||
| export type Matches<M extends TypesMap = TypesMap> = string | UtilityCall<M> | ||
| export interface Rule<M extends TypesMap = TypesMap> { | ||
@@ -97,4 +104,4 @@ /** A pattern string or a pattern object. */ | ||
| not?: Rule<M> | ||
| /** A utility rule id and matches a node if the utility rule matches. */ | ||
| matches?: string | ||
| /** A utility rule id or parameterized utility call and matches a node if that utility matches. */ | ||
| matches?: Matches<M> | ||
| } |
347005
0.06%17034
0.03%