@ast-grep/napi 0.39.4 → 0.39.5
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/JavaScript.d.ts +33 -53
- package/package.json +14 -14
package/lang/JavaScript.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Auto-generated from tree-sitter JavaScript v0.
|
|
1
|
+
// Auto-generated from tree-sitter JavaScript v0.25.0
|
|
2
2
|
type JavaScriptTypes = {
|
|
3
3
|
"declaration": {
|
|
4
4
|
"type": "declaration",
|
|
@@ -20,6 +20,10 @@ type JavaScriptTypes = {
|
|
|
20
20
|
"type": "lexical_declaration",
|
|
21
21
|
"named": true
|
|
22
22
|
},
|
|
23
|
+
{
|
|
24
|
+
"type": "using_declaration",
|
|
25
|
+
"named": true
|
|
26
|
+
},
|
|
23
27
|
{
|
|
24
28
|
"type": "variable_declaration",
|
|
25
29
|
"named": true
|
|
@@ -46,10 +50,6 @@ type JavaScriptTypes = {
|
|
|
46
50
|
"type": "binary_expression",
|
|
47
51
|
"named": true
|
|
48
52
|
},
|
|
49
|
-
{
|
|
50
|
-
"type": "glimmer_template",
|
|
51
|
-
"named": true
|
|
52
|
-
},
|
|
53
53
|
{
|
|
54
54
|
"type": "jsx_element",
|
|
55
55
|
"named": true
|
|
@@ -725,16 +725,6 @@ type JavaScriptTypes = {
|
|
|
725
725
|
"named": true
|
|
726
726
|
}
|
|
727
727
|
]
|
|
728
|
-
},
|
|
729
|
-
"template": {
|
|
730
|
-
"multiple": true,
|
|
731
|
-
"required": false,
|
|
732
|
-
"types": [
|
|
733
|
-
{
|
|
734
|
-
"type": "glimmer_template",
|
|
735
|
-
"named": true
|
|
736
|
-
}
|
|
737
|
-
]
|
|
738
728
|
}
|
|
739
729
|
}
|
|
740
730
|
},
|
|
@@ -1131,7 +1121,7 @@ type JavaScriptTypes = {
|
|
|
1131
1121
|
]
|
|
1132
1122
|
},
|
|
1133
1123
|
"kind": {
|
|
1134
|
-
"multiple":
|
|
1124
|
+
"multiple": true,
|
|
1135
1125
|
"required": false,
|
|
1136
1126
|
"types": []
|
|
1137
1127
|
},
|
|
@@ -1437,32 +1427,6 @@ type JavaScriptTypes = {
|
|
|
1437
1427
|
}
|
|
1438
1428
|
}
|
|
1439
1429
|
},
|
|
1440
|
-
"glimmer_template": {
|
|
1441
|
-
"type": "glimmer_template",
|
|
1442
|
-
"named": true,
|
|
1443
|
-
"fields": {
|
|
1444
|
-
"close_tag": {
|
|
1445
|
-
"multiple": false,
|
|
1446
|
-
"required": true,
|
|
1447
|
-
"types": [
|
|
1448
|
-
{
|
|
1449
|
-
"type": "glimmer_closing_tag",
|
|
1450
|
-
"named": true
|
|
1451
|
-
}
|
|
1452
|
-
]
|
|
1453
|
-
},
|
|
1454
|
-
"open_tag": {
|
|
1455
|
-
"multiple": false,
|
|
1456
|
-
"required": true,
|
|
1457
|
-
"types": [
|
|
1458
|
-
{
|
|
1459
|
-
"type": "glimmer_opening_tag",
|
|
1460
|
-
"named": true
|
|
1461
|
-
}
|
|
1462
|
-
]
|
|
1463
|
-
}
|
|
1464
|
-
}
|
|
1465
|
-
},
|
|
1466
1430
|
"if_statement": {
|
|
1467
1431
|
"type": "if_statement",
|
|
1468
1432
|
"named": true,
|
|
@@ -2006,7 +1970,7 @@ type JavaScriptTypes = {
|
|
|
2006
1970
|
"fields": {},
|
|
2007
1971
|
"children": {
|
|
2008
1972
|
"multiple": false,
|
|
2009
|
-
"required":
|
|
1973
|
+
"required": false,
|
|
2010
1974
|
"types": [
|
|
2011
1975
|
{
|
|
2012
1976
|
"type": "identifier",
|
|
@@ -2262,6 +2226,7 @@ type JavaScriptTypes = {
|
|
|
2262
2226
|
"program": {
|
|
2263
2227
|
"type": "program",
|
|
2264
2228
|
"named": true,
|
|
2229
|
+
"root": true,
|
|
2265
2230
|
"fields": {},
|
|
2266
2231
|
"children": {
|
|
2267
2232
|
"multiple": true,
|
|
@@ -2732,6 +2697,27 @@ type JavaScriptTypes = {
|
|
|
2732
2697
|
}
|
|
2733
2698
|
}
|
|
2734
2699
|
},
|
|
2700
|
+
"using_declaration": {
|
|
2701
|
+
"type": "using_declaration",
|
|
2702
|
+
"named": true,
|
|
2703
|
+
"fields": {
|
|
2704
|
+
"kind": {
|
|
2705
|
+
"multiple": true,
|
|
2706
|
+
"required": true,
|
|
2707
|
+
"types": []
|
|
2708
|
+
}
|
|
2709
|
+
},
|
|
2710
|
+
"children": {
|
|
2711
|
+
"multiple": true,
|
|
2712
|
+
"required": true,
|
|
2713
|
+
"types": [
|
|
2714
|
+
{
|
|
2715
|
+
"type": "variable_declarator",
|
|
2716
|
+
"named": true
|
|
2717
|
+
}
|
|
2718
|
+
]
|
|
2719
|
+
}
|
|
2720
|
+
},
|
|
2735
2721
|
"variable_declaration": {
|
|
2736
2722
|
"type": "variable_declaration",
|
|
2737
2723
|
"named": true,
|
|
@@ -2850,7 +2836,8 @@ type JavaScriptTypes = {
|
|
|
2850
2836
|
},
|
|
2851
2837
|
"comment": {
|
|
2852
2838
|
"type": "comment",
|
|
2853
|
-
"named": true
|
|
2839
|
+
"named": true,
|
|
2840
|
+
"extra": true
|
|
2854
2841
|
},
|
|
2855
2842
|
"escape_sequence": {
|
|
2856
2843
|
"type": "escape_sequence",
|
|
@@ -2860,14 +2847,6 @@ type JavaScriptTypes = {
|
|
|
2860
2847
|
"type": "false",
|
|
2861
2848
|
"named": true
|
|
2862
2849
|
},
|
|
2863
|
-
"glimmer_closing_tag": {
|
|
2864
|
-
"type": "glimmer_closing_tag",
|
|
2865
|
-
"named": true
|
|
2866
|
-
},
|
|
2867
|
-
"glimmer_opening_tag": {
|
|
2868
|
-
"type": "glimmer_opening_tag",
|
|
2869
|
-
"named": true
|
|
2870
|
-
},
|
|
2871
2850
|
"hash_bang_line": {
|
|
2872
2851
|
"type": "hash_bang_line",
|
|
2873
2852
|
"named": true
|
|
@@ -2878,7 +2857,8 @@ type JavaScriptTypes = {
|
|
|
2878
2857
|
},
|
|
2879
2858
|
"html_comment": {
|
|
2880
2859
|
"type": "html_comment",
|
|
2881
|
-
"named": true
|
|
2860
|
+
"named": true,
|
|
2861
|
+
"extra": true
|
|
2882
2862
|
},
|
|
2883
2863
|
"identifier": {
|
|
2884
2864
|
"type": "identifier",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ast-grep/napi",
|
|
3
|
-
"version": "0.39.
|
|
3
|
+
"version": "0.39.5",
|
|
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",
|
|
@@ -54,12 +54,12 @@
|
|
|
54
54
|
"typegen": "ts-node scripts/generateTypes.ts"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@ast-grep/napi": "0.39.
|
|
58
|
-
"@napi-rs/cli": "3.1.
|
|
57
|
+
"@ast-grep/napi": "0.39.4",
|
|
58
|
+
"@napi-rs/cli": "3.1.5",
|
|
59
59
|
"@types/node": "^22.10.2",
|
|
60
|
-
"oxlint": "1.
|
|
60
|
+
"oxlint": "1.14.0",
|
|
61
61
|
"ava": "6.4.1",
|
|
62
|
-
"chalk": "5.
|
|
62
|
+
"chalk": "5.6.0",
|
|
63
63
|
"dprint": "0.50.1",
|
|
64
64
|
"smol-toml": "^1.3.1",
|
|
65
65
|
"ts-node": "10.9.2",
|
|
@@ -79,14 +79,14 @@
|
|
|
79
79
|
}
|
|
80
80
|
},
|
|
81
81
|
"optionalDependencies": {
|
|
82
|
-
"@ast-grep/napi-linux-x64-gnu": "0.39.
|
|
83
|
-
"@ast-grep/napi-win32-x64-msvc": "0.39.
|
|
84
|
-
"@ast-grep/napi-darwin-x64": "0.39.
|
|
85
|
-
"@ast-grep/napi-win32-ia32-msvc": "0.39.
|
|
86
|
-
"@ast-grep/napi-darwin-arm64": "0.39.
|
|
87
|
-
"@ast-grep/napi-win32-arm64-msvc": "0.39.
|
|
88
|
-
"@ast-grep/napi-linux-arm64-gnu": "0.39.
|
|
89
|
-
"@ast-grep/napi-linux-arm64-musl": "0.39.
|
|
90
|
-
"@ast-grep/napi-linux-x64-musl": "0.39.
|
|
82
|
+
"@ast-grep/napi-linux-x64-gnu": "0.39.5",
|
|
83
|
+
"@ast-grep/napi-win32-x64-msvc": "0.39.5",
|
|
84
|
+
"@ast-grep/napi-darwin-x64": "0.39.5",
|
|
85
|
+
"@ast-grep/napi-win32-ia32-msvc": "0.39.5",
|
|
86
|
+
"@ast-grep/napi-darwin-arm64": "0.39.5",
|
|
87
|
+
"@ast-grep/napi-win32-arm64-msvc": "0.39.5",
|
|
88
|
+
"@ast-grep/napi-linux-arm64-gnu": "0.39.5",
|
|
89
|
+
"@ast-grep/napi-linux-arm64-musl": "0.39.5",
|
|
90
|
+
"@ast-grep/napi-linux-x64-musl": "0.39.5"
|
|
91
91
|
}
|
|
92
92
|
}
|