Socket
Socket
Sign inDemoInstall

@ast-grep/napi

Package Overview
Dependencies
Maintainers
0
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 Versions

1
1012

0.2.1

Diff

Changelog

Source

0.2.1

24 January 2023

herringtondarkholme
published 0.2.0 •

Changelog

Source

0.2.0

24 January 2023

  • feat: support multi node pattern #199
  • [refactor] Extract a match node iterator function in matcher_tree #199
  • feat: print out serialized rule message #200
  • fix: fix nested leaf match crash in non-entrant traversal #197
  • feat: add Dart support #172
  • fix: fix wrong line number in diff #192
  • feat: support inclusive until #191
  • feat: allow shorthands to combine all rule kinds 51f72db
  • refactor: refactor deser for better error message f28f964
  • 0.2.0 bump version e580932
herringtondarkholme
published 0.1.18 •

Changelog

Source

0.1.18

16 January 2023

  • fix: revert write env for unmatched pattern #190
  • fix: fix Has relation #188
  • feat: add rule info to config fixer #122
  • refactor: deduplicate json printer code #185
  • feat: add regex matcher 0a40ed2
  • 0.1.18 bump version bfdde22
  • feat: add debugging assert 5b17e8b
herringtondarkholme
published 0.1.17 •

Changelog

Source

0.1.17

15 January 2023

  • feat: add error handling for parsing RuleConfig #182
  • feat: better error handling in constraints config #181
  • feat: improve error handling in config #181
  • 0.1.17 bump version 0a638f1
  • feat: add try_new for pattern creation a9510d2
  • refactor: cleanup public API 875ef1e
herringtondarkholme
published 0.1.16 •

Changelog

Source

0.1.16

14 January 2023

  • fix(deps): update rust crate ignore to 0.4.19 #165
  • fix(deps): update rust crate globset to 0.4.10 #164
  • feat: support --no-ignore for scan/test #162
  • fix: fix two adjacent sticking but not overlapping matches #171
  • feat: add source 1a23b6a
  • 0.1.16 bump version 8cc6765
  • feat: add adopt method to safely create Node 6ea01ae
herringtondarkholme
published 0.1.15 •

Changelog

Source

0.1.15

8 January 2023

  • feat: make tree-sitter-* parsers optional dependencies #160
  • 0.1.15 bump version fa56cf1
  • refactor: use macro to abstract away repetitive lang method impl fb58b15
  • feat: edit cargo toml 1611af5
herringtondarkholme
published 0.1.14 •

Changelog

Source

0.1.14

4 January 2023

  • chore(deps): update dependency @napi-rs/cli to v2.14.0 #149
  • fix(deps): update rust crate num_cpus to 1.15.0 #147
  • fix(deps): update rust crate clap to 4.0.32 #145
  • chore(deps): update robinraju/release-downloader action to v1.7 #146
  • fix(deps): update rust crate serde_json to 1.0.91 #136
  • fix(deps): update rust crate serde_yaml to 0.9.16 #137
  • fix(deps): update rust crate serde_yaml to 0.9.15 #116
  • feat: merge adjacent matches in match printing #134
  • feat: refactor printers to accept output destination #153
  • feat: add traversal mod for sg-core #152
  • [refactor] simplify Matcher trait #151
  • feat: move interactive printer #135
  • feat: implement better heading show #150
  • test: add test for command arg parsing #128
  • feat: support run only one rule for scanning #139
  • feat: support color control on run/scan output #131
  • fix: fix stackoverflow in find_node_impl #148
  • feat: add labels and env info to json output #121
  • refactor: abstract out scan as worker #138
  • refactor: use mpsc for non-interactive output #125
  • feature: extract out a language crate #126
  • refactor: remove some inner call #3
  • refactor: extract out two printers 9328cd7
  • feat: fix interactive print rule 17fbaf0
  • feat: migrate run with specific lang ea46263
herringtondarkholme
published 0.1.13 •

Changelog

Source

0.1.13

18 December 2022

  • fix(deps): update rust crate serde_json to 1.0.90 #115
  • Update dependency @napi-rs/cli to v2.13.3 #114
  • feat: implement proper json output 0c031c1
  • chore: add changelog d6fc114
  • feat: add json output support f33e39f
herringtondarkholme
published 0.1.12 •

Changelog

Source

0.1.12

15 December 2022

  • Update dependency @napi-rs/cli to v2.13.2 #103
  • Update dependency typescript to v4.9.4 #104
  • Update Rust crate tree-sitter-java to 0.20.0 #105
  • Update dependency chalk to v5.2.0 #106
  • feat: use better color output for readability #111
  • feat: support version and help argument #110
  • fix: skip extremely large file #109
  • 0.1.12 bump version 5ea05eb
  • fix: use get_matcher instead of get_rule in verify 4b4ea8e
  • fix: better large file detection 293a5c8
herringtondarkholme
published 0.1.11 •

Changelog

Source

0.1.11

11 December 2022

  • 0.1.11 bump version 1ba3c13
  • feat: add get all keys in meta var env 8203945
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