@ast-grep/napi 0.33.0 → 0.33.1
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.
- package/lang/Css.d.ts +48 -6
- package/package.json +12 -12
- package/types/sgnode.d.ts +5 -5
package/lang/Css.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Auto-generated from tree-sitter Css v0.23.
|
|
1
|
+
// Auto-generated from tree-sitter Css v0.23.2
|
|
2
2
|
type CssTypes = {
|
|
3
3
|
"adjacent_sibling_selector": {
|
|
4
4
|
"type": "adjacent_sibling_selector",
|
|
@@ -661,6 +661,25 @@ type CssTypes = {
|
|
|
661
661
|
]
|
|
662
662
|
}
|
|
663
663
|
},
|
|
664
|
+
"class_name": {
|
|
665
|
+
"type": "class_name",
|
|
666
|
+
"named": true,
|
|
667
|
+
"fields": {},
|
|
668
|
+
"children": {
|
|
669
|
+
"multiple": true,
|
|
670
|
+
"required": false,
|
|
671
|
+
"types": [
|
|
672
|
+
{
|
|
673
|
+
"type": "escape_sequence",
|
|
674
|
+
"named": true
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
"type": "identifier",
|
|
678
|
+
"named": true
|
|
679
|
+
}
|
|
680
|
+
]
|
|
681
|
+
}
|
|
682
|
+
},
|
|
664
683
|
"class_selector": {
|
|
665
684
|
"type": "class_selector",
|
|
666
685
|
"named": true,
|
|
@@ -1845,11 +1864,26 @@ type CssTypes = {
|
|
|
1845
1864
|
"string_value": {
|
|
1846
1865
|
"type": "string_value",
|
|
1847
1866
|
"named": true,
|
|
1848
|
-
"fields": {}
|
|
1867
|
+
"fields": {},
|
|
1868
|
+
"children": {
|
|
1869
|
+
"multiple": true,
|
|
1870
|
+
"required": false,
|
|
1871
|
+
"types": [
|
|
1872
|
+
{
|
|
1873
|
+
"type": "escape_sequence",
|
|
1874
|
+
"named": true
|
|
1875
|
+
},
|
|
1876
|
+
{
|
|
1877
|
+
"type": "string_content",
|
|
1878
|
+
"named": true
|
|
1879
|
+
}
|
|
1880
|
+
]
|
|
1881
|
+
}
|
|
1849
1882
|
},
|
|
1850
1883
|
"stylesheet": {
|
|
1851
1884
|
"type": "stylesheet",
|
|
1852
1885
|
"named": true,
|
|
1886
|
+
"root": true,
|
|
1853
1887
|
"fields": {},
|
|
1854
1888
|
"children": {
|
|
1855
1889
|
"multiple": true,
|
|
@@ -1977,14 +2011,14 @@ type CssTypes = {
|
|
|
1977
2011
|
"type": "at_keyword",
|
|
1978
2012
|
"named": true
|
|
1979
2013
|
},
|
|
1980
|
-
"class_name": {
|
|
1981
|
-
"type": "class_name",
|
|
1982
|
-
"named": true
|
|
1983
|
-
},
|
|
1984
2014
|
"comment": {
|
|
1985
2015
|
"type": "comment",
|
|
1986
2016
|
"named": true
|
|
1987
2017
|
},
|
|
2018
|
+
"escape_sequence": {
|
|
2019
|
+
"type": "escape_sequence",
|
|
2020
|
+
"named": true
|
|
2021
|
+
},
|
|
1988
2022
|
"feature_name": {
|
|
1989
2023
|
"type": "feature_name",
|
|
1990
2024
|
"named": true
|
|
@@ -2001,6 +2035,10 @@ type CssTypes = {
|
|
|
2001
2035
|
"type": "id_name",
|
|
2002
2036
|
"named": true
|
|
2003
2037
|
},
|
|
2038
|
+
"identifier": {
|
|
2039
|
+
"type": "identifier",
|
|
2040
|
+
"named": true
|
|
2041
|
+
},
|
|
2004
2042
|
"important": {
|
|
2005
2043
|
"type": "important",
|
|
2006
2044
|
"named": true
|
|
@@ -2033,6 +2071,10 @@ type CssTypes = {
|
|
|
2033
2071
|
"type": "property_name",
|
|
2034
2072
|
"named": true
|
|
2035
2073
|
},
|
|
2074
|
+
"string_content": {
|
|
2075
|
+
"type": "string_content",
|
|
2076
|
+
"named": true
|
|
2077
|
+
},
|
|
2036
2078
|
"tag_name": {
|
|
2037
2079
|
"type": "tag_name",
|
|
2038
2080
|
"named": true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ast-grep/napi",
|
|
3
|
-
"version": "0.33.
|
|
3
|
+
"version": "0.33.1",
|
|
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",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"typegen": "ts-node scripts/generateTypes.ts"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@ast-grep/napi": "0.
|
|
55
|
+
"@ast-grep/napi": "0.33.0",
|
|
56
56
|
"@biomejs/biome": "1.9.4",
|
|
57
57
|
"@napi-rs/cli": "2.18.4",
|
|
58
58
|
"@types/node": "^22.10.2",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"chalk": "5.4.1",
|
|
61
61
|
"smol-toml": "^1.3.1",
|
|
62
62
|
"ts-node": "10.9.2",
|
|
63
|
-
"typescript": "5.7.
|
|
63
|
+
"typescript": "5.7.3"
|
|
64
64
|
},
|
|
65
65
|
"ava": {
|
|
66
66
|
"require": [
|
|
@@ -76,14 +76,14 @@
|
|
|
76
76
|
}
|
|
77
77
|
},
|
|
78
78
|
"optionalDependencies": {
|
|
79
|
-
"@ast-grep/napi-win32-x64-msvc": "0.33.
|
|
80
|
-
"@ast-grep/napi-darwin-x64": "0.33.
|
|
81
|
-
"@ast-grep/napi-linux-x64-gnu": "0.33.
|
|
82
|
-
"@ast-grep/napi-win32-ia32-msvc": "0.33.
|
|
83
|
-
"@ast-grep/napi-darwin-arm64": "0.33.
|
|
84
|
-
"@ast-grep/napi-win32-arm64-msvc": "0.33.
|
|
85
|
-
"@ast-grep/napi-linux-arm64-gnu": "0.33.
|
|
86
|
-
"@ast-grep/napi-linux-arm64-musl": "0.33.
|
|
87
|
-
"@ast-grep/napi-linux-x64-musl": "0.33.
|
|
79
|
+
"@ast-grep/napi-win32-x64-msvc": "0.33.1",
|
|
80
|
+
"@ast-grep/napi-darwin-x64": "0.33.1",
|
|
81
|
+
"@ast-grep/napi-linux-x64-gnu": "0.33.1",
|
|
82
|
+
"@ast-grep/napi-win32-ia32-msvc": "0.33.1",
|
|
83
|
+
"@ast-grep/napi-darwin-arm64": "0.33.1",
|
|
84
|
+
"@ast-grep/napi-win32-arm64-msvc": "0.33.1",
|
|
85
|
+
"@ast-grep/napi-linux-arm64-gnu": "0.33.1",
|
|
86
|
+
"@ast-grep/napi-linux-arm64-musl": "0.33.1",
|
|
87
|
+
"@ast-grep/napi-linux-x64-musl": "0.33.1"
|
|
88
88
|
}
|
|
89
89
|
}
|
package/types/sgnode.d.ts
CHANGED
|
@@ -46,11 +46,11 @@ export declare class SgNode<
|
|
|
46
46
|
isNamed(): boolean
|
|
47
47
|
isNamedLeaf(): boolean
|
|
48
48
|
text(): string
|
|
49
|
-
matches(m: string): boolean
|
|
50
|
-
inside(m: string): boolean
|
|
51
|
-
has(m: string): boolean
|
|
52
|
-
precedes(m: string): boolean
|
|
53
|
-
follows(m: string): boolean
|
|
49
|
+
matches(m: string | number | NapiConfig<M>): boolean
|
|
50
|
+
inside(m: string | number | NapiConfig<M>): boolean
|
|
51
|
+
has(m: string | number | NapiConfig<M>): boolean
|
|
52
|
+
precedes(m: string | number | NapiConfig<M>): boolean
|
|
53
|
+
follows(m: string | number | NapiConfig<M>): boolean
|
|
54
54
|
/** Returns the string name of the node kind */
|
|
55
55
|
kind(): T
|
|
56
56
|
readonly kindToRefine: T
|