@ast-grep/napi
Advanced tools
Comparing version 0.13.1 to 0.13.2
@@ -14,5 +14,5 @@ /* tslint:disable */ | ||
export interface Pos { | ||
/** line number starting from 1 */ | ||
/** line number starting from 0 */ | ||
line: number | ||
/** column number starting from 1 */ | ||
/** column number starting from 0 */ | ||
column: number | ||
@@ -94,2 +94,10 @@ /** byte offset of the position */ | ||
export function parse(src: string): SgRoot | ||
/** | ||
* Parse a string to an ast-grep instance asynchronously in threads. | ||
* It utlizes multiple CPU cores when **concurrent processing sources**. | ||
* However, spawning excessive many threads may backfire. | ||
* Please refer to libuv doc, nodejs' underlying runtime | ||
* for its default behavior and performance tuning tricks. | ||
*/ | ||
export function parseAsync(src: string): Promise<SgRoot> | ||
/** Get the `kind` number from its string name. */ | ||
@@ -109,2 +117,10 @@ export function kind(kindName: string): number | ||
export function parse(src: string): SgRoot | ||
/** | ||
* Parse a string to an ast-grep instance asynchronously in threads. | ||
* It utlizes multiple CPU cores when **concurrent processing sources**. | ||
* However, spawning excessive many threads may backfire. | ||
* Please refer to libuv doc, nodejs' underlying runtime | ||
* for its default behavior and performance tuning tricks. | ||
*/ | ||
export function parseAsync(src: string): Promise<SgRoot> | ||
/** Get the `kind` number from its string name. */ | ||
@@ -124,2 +140,10 @@ export function kind(kindName: string): number | ||
export function parse(src: string): SgRoot | ||
/** | ||
* Parse a string to an ast-grep instance asynchronously in threads. | ||
* It utlizes multiple CPU cores when **concurrent processing sources**. | ||
* However, spawning excessive many threads may backfire. | ||
* Please refer to libuv doc, nodejs' underlying runtime | ||
* for its default behavior and performance tuning tricks. | ||
*/ | ||
export function parseAsync(src: string): Promise<SgRoot> | ||
/** Get the `kind` number from its string name. */ | ||
@@ -139,2 +163,10 @@ export function kind(kindName: string): number | ||
export function parse(src: string): SgRoot | ||
/** | ||
* Parse a string to an ast-grep instance asynchronously in threads. | ||
* It utlizes multiple CPU cores when **concurrent processing sources**. | ||
* However, spawning excessive many threads may backfire. | ||
* Please refer to libuv doc, nodejs' underlying runtime | ||
* for its default behavior and performance tuning tricks. | ||
*/ | ||
export function parseAsync(src: string): Promise<SgRoot> | ||
/** Get the `kind` number from its string name. */ | ||
@@ -154,2 +186,10 @@ export function kind(kindName: string): number | ||
export function parse(src: string): SgRoot | ||
/** | ||
* Parse a string to an ast-grep instance asynchronously in threads. | ||
* It utlizes multiple CPU cores when **concurrent processing sources**. | ||
* However, spawning excessive many threads may backfire. | ||
* Please refer to libuv doc, nodejs' underlying runtime | ||
* for its default behavior and performance tuning tricks. | ||
*/ | ||
export function parseAsync(src: string): Promise<SgRoot> | ||
/** Get the `kind` number from its string name. */ | ||
@@ -169,2 +209,10 @@ export function kind(kindName: string): number | ||
export function parse(src: string): SgRoot | ||
/** | ||
* Parse a string to an ast-grep instance asynchronously in threads. | ||
* It utlizes multiple CPU cores when **concurrent processing sources**. | ||
* However, spawning excessive many threads may backfire. | ||
* Please refer to libuv doc, nodejs' underlying runtime | ||
* for its default behavior and performance tuning tricks. | ||
*/ | ||
export function parseAsync(src: string): Promise<SgRoot> | ||
/** Get the `kind` number from its string name. */ | ||
@@ -171,0 +219,0 @@ export function kind(kindName: string): number |
{ | ||
"name": "@ast-grep/napi", | ||
"version": "0.13.1", | ||
"version": "0.13.2", | ||
"description": "Search and Rewrite code at large scale using precise AST pattern", | ||
@@ -66,11 +66,11 @@ "homepage": "https://ast-grep.github.io", | ||
}, | ||
"packageManager": "yarn@4.0.1", | ||
"packageManager": "yarn@4.0.2", | ||
"optionalDependencies": { | ||
"@ast-grep/napi-win32-x64-msvc": "0.13.1", | ||
"@ast-grep/napi-darwin-x64": "0.13.1", | ||
"@ast-grep/napi-linux-x64-gnu": "0.13.1", | ||
"@ast-grep/napi-win32-ia32-msvc": "0.13.1", | ||
"@ast-grep/napi-darwin-arm64": "0.13.1", | ||
"@ast-grep/napi-win32-arm64-msvc": "0.13.1" | ||
"@ast-grep/napi-win32-x64-msvc": "0.13.2", | ||
"@ast-grep/napi-darwin-x64": "0.13.2", | ||
"@ast-grep/napi-linux-x64-gnu": "0.13.2", | ||
"@ast-grep/napi-win32-ia32-msvc": "0.13.2", | ||
"@ast-grep/napi-darwin-arm64": "0.13.2", | ||
"@ast-grep/napi-win32-arm64-msvc": "0.13.2" | ||
} | ||
} |
20847
476