Socket
Socket
Sign inDemoInstall

@ast-grep/napi

Package Overview
Dependencies
Maintainers
1
Versions
119
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ast-grep/napi - npm Package Compare versions

Comparing version 0.22.3 to 0.22.4

10

index.d.ts

@@ -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. */

18

package.json
{
"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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc