@ast-grep/napi
Advanced tools
Comparing version 0.22.3 to 0.22.4
@@ -29,2 +29,10 @@ /* tslint:disable */ | ||
} | ||
export interface Edit { | ||
/** The position of the edit */ | ||
position: number | ||
/** The length of the text to be deleted */ | ||
deletedLength: number | ||
/** The text to be inserted */ | ||
insertedText: string | ||
} | ||
export interface Pos { | ||
@@ -91,2 +99,4 @@ /** line number starting from 0 */ | ||
prevAll(): Array<SgNode> | ||
replace(text: string): Edit | ||
commitEdits(edits: Array<Edit>): string | ||
} | ||
@@ -93,0 +103,0 @@ /** Represents the parsed tree of code. */ |
{ | ||
"name": "@ast-grep/napi", | ||
"version": "0.22.3", | ||
"version": "0.22.4", | ||
"description": "Search and Rewrite code at large scale using precise AST pattern", | ||
@@ -69,11 +69,11 @@ "homepage": "https://ast-grep.github.io", | ||
"optionalDependencies": { | ||
"@ast-grep/napi-win32-x64-msvc": "0.22.3", | ||
"@ast-grep/napi-darwin-x64": "0.22.3", | ||
"@ast-grep/napi-linux-x64-gnu": "0.22.3", | ||
"@ast-grep/napi-win32-ia32-msvc": "0.22.3", | ||
"@ast-grep/napi-darwin-arm64": "0.22.3", | ||
"@ast-grep/napi-win32-arm64-msvc": "0.22.3", | ||
"@ast-grep/napi-linux-arm64-gnu": "0.22.3", | ||
"@ast-grep/napi-linux-x64-musl": "0.22.3" | ||
"@ast-grep/napi-win32-x64-msvc": "0.22.4", | ||
"@ast-grep/napi-darwin-x64": "0.22.4", | ||
"@ast-grep/napi-linux-x64-gnu": "0.22.4", | ||
"@ast-grep/napi-win32-ia32-msvc": "0.22.4", | ||
"@ast-grep/napi-darwin-arm64": "0.22.4", | ||
"@ast-grep/napi-win32-arm64-msvc": "0.22.4", | ||
"@ast-grep/napi-linux-arm64-gnu": "0.22.4", | ||
"@ast-grep/napi-linux-x64-musl": "0.22.4" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22666
526