+2
-13
| import { extname } from "pathe"; | ||
| import { parse, parseExpression } from "@babel/parser"; | ||
| import { asyncWalk, walk } from "estree-walker"; | ||
| //#region src/check.ts | ||
@@ -251,3 +250,2 @@ /** | ||
| } | ||
| //#endregion | ||
@@ -295,3 +293,2 @@ //#region src/create.ts | ||
| } | ||
| //#endregion | ||
@@ -336,3 +333,2 @@ //#region src/extract.ts | ||
| } | ||
| //#endregion | ||
@@ -368,3 +364,2 @@ //#region src/lang.ts | ||
| } | ||
| //#endregion | ||
@@ -395,3 +390,2 @@ //#region src/loc.ts | ||
| } | ||
| //#endregion | ||
@@ -456,3 +450,2 @@ //#region src/parse.ts | ||
| } | ||
| //#endregion | ||
@@ -561,3 +554,2 @@ //#region src/resolve.ts | ||
| } | ||
| //#endregion | ||
@@ -594,3 +586,2 @@ //#region src/utils.ts | ||
| } | ||
| //#endregion | ||
@@ -666,3 +657,3 @@ //#region src/walk.ts | ||
| source = node.source ? node.source.value : null; | ||
| exported = isExportSpecifier ? resolveString(s.exported) : s.exported.name; | ||
| exported = resolveString(s.exported); | ||
| declaration = null; | ||
@@ -782,3 +773,2 @@ specifier = s; | ||
| } | ||
| //#endregion | ||
@@ -898,4 +888,3 @@ //#region src/scope.ts | ||
| } | ||
| //#endregion | ||
| export { REGEX_DTS, REGEX_LANG_JSX, REGEX_LANG_TS, Scope, TS_NODE_TYPES, attachScopes, babelParse, babelParseExpression, parse as babelParseFile, createStringLiteral, createTSLiteralType, createTSUnionType, escapeKey, extractIdentifiers, getBabelParserOptions, getLang, isCallOf, isDeclarationType, isDts, isExpressionType, isForStatement, isFunctionType, isIdentifier, isIdentifierOf, isInDestructureAssignment, isInNewExpression, isLiteralType, isReferenced, isReferencedIdentifier, isStaticProperty, isStaticPropertyKey, isTaggedFunctionCallOf, isTs, isTypeOf, locateTrailingComma, parseCache, resolveIdentifier, resolveLiteral, resolveObjectKey, resolveString, resolveTemplateLiteral, tryResolveIdentifier, unwrapTSNode, walkAST, walkASTAsync, walkBlockDeclarations, walkExportDeclaration, walkFunctionParams, walkIdentifiers, walkImportDeclaration }; | ||
| export { REGEX_DTS, REGEX_LANG_JSX, REGEX_LANG_TS, Scope, TS_NODE_TYPES, attachScopes, babelParse, babelParseExpression, parse as babelParseFile, createStringLiteral, createTSLiteralType, createTSUnionType, escapeKey, extractIdentifiers, getBabelParserOptions, getLang, isCallOf, isDeclarationType, isDts, isExpressionType, isForStatement, isFunctionType, isIdentifier, isIdentifierOf, isInDestructureAssignment, isInNewExpression, isLiteralType, isReferenced, isReferencedIdentifier, isStaticProperty, isStaticPropertyKey, isTaggedFunctionCallOf, isTs, isTypeOf, locateTrailingComma, parseCache, resolveIdentifier, resolveLiteral, resolveObjectKey, resolveString, resolveTemplateLiteral, tryResolveIdentifier, unwrapTSNode, walkAST, walkASTAsync, walkBlockDeclarations, walkExportDeclaration, walkFunctionParams, walkIdentifiers, walkImportDeclaration }; |
+18
-18
| { | ||
| "name": "ast-kit", | ||
| "type": "module", | ||
| "version": "3.0.0-beta.1", | ||
| "version": "3.0.0", | ||
| "description": "A toolkit for easy Babel AST generation and manipulation.", | ||
@@ -29,6 +29,6 @@ "author": "Kevin Deng <sxzz@sxzz.moe>", | ||
| "engines": { | ||
| "node": ">=20.19.0" | ||
| "node": "^22.18.0 || >=24.11.0" | ||
| }, | ||
| "dependencies": { | ||
| "@babel/parser": "^8.0.0-beta.4", | ||
| "@babel/parser": "^8.0.0", | ||
| "estree-walker": "^3.0.3", | ||
@@ -38,19 +38,19 @@ "pathe": "^2.0.3" | ||
| "devDependencies": { | ||
| "@babel/types": "^8.0.0-beta.4", | ||
| "@sxzz/eslint-config": "^7.5.0", | ||
| "@sxzz/prettier-config": "^2.2.6", | ||
| "@types/node": "^25.0.9", | ||
| "@typescript/native-preview": "7.0.0-dev.20260119.1", | ||
| "@vitest/coverage-v8": "^4.0.17", | ||
| "@vitest/ui": "^4.0.17", | ||
| "bumpp": "^10.4.0", | ||
| "eslint": "^9.39.2", | ||
| "prettier": "^3.8.0", | ||
| "tsdown": "^0.20.0-beta.3", | ||
| "tsdown-preset-sxzz": "^0.3.0", | ||
| "typescript": "5.9.3", | ||
| "vitest": "^4.0.17" | ||
| "@babel/types": "^8.0.0", | ||
| "@sxzz/eslint-config": "^8.2.0", | ||
| "@sxzz/prettier-config": "^2.3.1", | ||
| "@types/node": "^25.9.3", | ||
| "@typescript/native-preview": "7.0.0-dev.20260616.1", | ||
| "@vitest/coverage-v8": "^4.1.9", | ||
| "@vitest/ui": "^4.1.9", | ||
| "bumpp": "^11.1.0", | ||
| "eslint": "^10.5.0", | ||
| "prettier": "^3.8.4", | ||
| "tsdown": "^0.22.2", | ||
| "tsdown-preset-sxzz": "^0.6.0", | ||
| "typescript": "6.0.3", | ||
| "vitest": "^4.1.9" | ||
| }, | ||
| "resolutions": { | ||
| "vite": "^8.0.0-beta.7" | ||
| "vite": "^8.0.16" | ||
| }, | ||
@@ -57,0 +57,0 @@ "prettier": "@sxzz/prettier-config", |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
1260
0.32%0
-100%51457
-0.14%Updated