Socket
Socket
Sign inDemoInstall

ast-kit

Package Overview
Dependencies
Maintainers
0
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ast-kit - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

dist/index.js

@@ -26,3 +26,3 @@ // src/check.ts

function isFunctionType(node) {
return !!node && /Function(?:Expression|Declaration)$|Method$/.test(node.type);
return !!node && !node.type.startsWith("TS") && /Function(?:Expression|Declaration)$|Method$/.test(node.type);
}

@@ -29,0 +29,0 @@ function isExpressionType(node) {

{
"name": "ast-kit",
"version": "1.0.0",
"version": "1.0.1",
"description": "A toolkit for easy Babel AST generation and manipulation.",

@@ -32,21 +32,21 @@ "type": "module",

"dependencies": {
"@babel/parser": "^7.24.7",
"@babel/parser": "^7.24.8",
"pathe": "^1.1.2"
},
"devDependencies": {
"@babel/types": "^7.24.7",
"@sxzz/eslint-config": "^3.13.0",
"@babel/types": "^7.24.9",
"@sxzz/eslint-config": "^3.15.0",
"@sxzz/prettier-config": "^2.0.2",
"@types/node": "^20.14.8",
"@vitest/coverage-v8": "^1.6.0",
"@vitest/ui": "^1.6.0",
"@types/node": "^20.14.11",
"@vitest/coverage-v8": "^2.0.4",
"@vitest/ui": "^2.0.4",
"bumpp": "^9.4.1",
"eslint": "^9.5.0",
"eslint": "^9.7.0",
"estree-walker": "^3.0.3",
"fast-glob": "^3.3.2",
"prettier": "^3.3.2",
"tsup": "^8.1.0",
"tsx": "^4.15.7",
"typescript": "5.5.2",
"vitest": "^1.6.0"
"prettier": "^3.3.3",
"tsup": "^8.2.2",
"tsx": "^4.16.2",
"typescript": "5.5.3",
"vitest": "^2.0.4"
},

@@ -53,0 +53,0 @@ "engines": {

@@ -11,3 +11,3 @@ # ast-kit [![npm](https://img.shields.io/npm/v/ast-kit.svg)](https://npmjs.com/package/ast-kit) [![JSR](https://jsr.io/badges/@sxzz/ast-kit)](https://jsr.io/@sxzz/ast-kit) [![Unit Test](https://github.com/sxzz/ast-kit/actions/workflows/unit-test.yml/badge.svg)](https://github.com/sxzz/ast-kit/actions/workflows/unit-test.yml) [![codecov](https://codecov.io/gh/sxzz/ast-kit/graph/badge.svg?token=MHTCPNMZAK)](https://codecov.io/gh/sxzz/ast-kit)

- **🦾 Type-Friendly**: Built in TypeScript with complete type definitions.
- **🧪 Thoroughly Tested**: 95% test coverage.
- **💯 Coverage**: 100% test coverage.
- **🪶 Lightweight**: Tree-shakable with only two dependencies.

@@ -14,0 +14,0 @@

Sorry, the diff of this file is not supported yet

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