Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ast-kit

Package Overview
Dependencies
Maintainers
1
Versions
42
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 0.11.2 to 0.11.3

4

dist/index.d.ts

@@ -10,3 +10,3 @@ import * as t from '@babel/types';

}>;
declare function isTypeOf<K extends NodeType>(node: t.Node | undefined | null, types: Readonly<K[]>): node is GetNode<K>;
declare function isTypeOf<K extends NodeType>(node: t.Node | undefined | null, types: K | Readonly<K[]>): node is GetNode<K>;
declare function isCallOf(node: t.Node | null | undefined, test: string | string[] | ((id: string) => boolean)): node is t.CallExpression;

@@ -95,2 +95,2 @@ declare function isIdentifierOf(node: t.Node | undefined | null, test: string | string[]): node is t.Identifier;

export { GetNode, ImportBinding, LiteralUnion, NodeType, ObjectPropertyLike, ParseResult, REGEX_DTS, REGEX_LANG_JSX, REGEX_LANG_TS, TS_NODE_TYPES, WithScope, attachScopes, babelParse, babelParseExpression, createStringLiteral, createTSLiteralType, createTSUnionType, escapeKey, getLang, isCallOf, isDts, isFunctionType, isIdentifierOf, isLiteralType, isReferenced, isTs, isTypeOf, locateTrailingComma, resolveIdentifier, resolveLiteral, resolveObjectKey, resolveString, resolveTemplateLiteral, unwrapTSNode, walkAST, walkASTAsync, walkASTSetup, walkImportDeclaration };
export { type GetNode, type ImportBinding, type LiteralUnion, type NodeType, type ObjectPropertyLike, type ParseResult, REGEX_DTS, REGEX_LANG_JSX, REGEX_LANG_TS, TS_NODE_TYPES, type WithScope, attachScopes, babelParse, babelParseExpression, createStringLiteral, createTSLiteralType, createTSUnionType, escapeKey, getLang, isCallOf, isDts, isFunctionType, isIdentifierOf, isLiteralType, isReferenced, isTs, isTypeOf, locateTrailingComma, resolveIdentifier, resolveLiteral, resolveObjectKey, resolveString, resolveTemplateLiteral, unwrapTSNode, walkAST, walkASTAsync, walkASTSetup, walkImportDeclaration };

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

return false;
return types.some((type) => {
return [].concat(types).some((type) => {
if (type === "Function") {

@@ -166,3 +166,6 @@ return isFunctionType(node);

}
if (code[i] === ",")
const char = code[i];
if (["}", ")"].includes(char))
return -1;
if (char === ",")
return i;

@@ -169,0 +172,0 @@ i++;

{
"name": "ast-kit",
"version": "0.11.2",
"packageManager": "pnpm@8.7.1",
"version": "0.11.3",
"packageManager": "pnpm@8.11.0",
"description": "AST Toolkit.",

@@ -33,22 +33,22 @@ "type": "module",

"dependencies": {
"@babel/parser": "^7.22.14",
"@rollup/pluginutils": "^5.0.4",
"@babel/parser": "^7.23.5",
"@rollup/pluginutils": "^5.1.0",
"pathe": "^1.1.1"
},
"devDependencies": {
"@babel/types": "^7.22.11",
"@sxzz/eslint-config": "^3.5.1",
"@sxzz/prettier-config": "^1.0.4",
"@types/node": "^20.5.9",
"@vitest/coverage-v8": "^0.34.3",
"@vitest/ui": "^0.34.3",
"@babel/types": "^7.23.5",
"@sxzz/eslint-config": "^3.7.5",
"@sxzz/prettier-config": "^2.0.0",
"@types/node": "^20.10.3",
"@vitest/coverage-v8": "^0.34.6",
"@vitest/ui": "^0.34.7",
"bumpp": "^9.2.0",
"eslint": "^8.48.0",
"eslint": "^8.55.0",
"estree-walker": "^3.0.3",
"fast-glob": "^3.3.1",
"prettier": "^3.0.3",
"tsup": "^7.2.0",
"tsx": "^3.12.8",
"typescript": "^5.2.2",
"vitest": "^0.34.3"
"fast-glob": "^3.3.2",
"prettier": "^3.1.0",
"tsup": "^8.0.1",
"tsx": "^4.6.2",
"typescript": "^5.3.2",
"vitest": "^0.34.6"
},

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

Sorry, the diff of this file is not supported yet

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