@react-analyzer/ast 0.0.5 → 0.0.8

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/dist/index.d.ts CHANGED
@@ -1,13 +1,7 @@
1
1
  import { SyntaxKind } from "typescript";
2
2
  import { AST } from "tsl";
3
3
 
4
- //#region src/ast-node-format.d.ts
5
- /**
6
- * @internal
7
- */
8
- declare function toStringFormat(node: AST.AnyNode): string;
9
- //#endregion
10
- //#region src/ast-node-is.d.ts
4
+ //#region src/is.d.ts
11
5
  declare function is<T extends AST.AnyNode>(kind: T["kind"]): (node: AST.AnyNode) => node is T;
12
6
  declare function isOneOf<T extends AST.AnyNode>(kinds: T["kind"][]): (node: AST.AnyNode) => node is T;
13
7
  declare const isFunction: (node: AST.AnyNode) => node is AST.AnyNode;
@@ -29,4 +23,10 @@ declare const isJSX: (node: AST.AnyNode) => node is AST.AnyNode;
29
23
  declare const isTypeExpression: (node: AST.AnyNode) => node is AST.AnyNode;
30
24
  declare const isTypeAssertionExpressionLoose: (node: AST.AnyNode) => node is AST.AnyNode;
31
25
  //#endregion
26
+ //#region src/misc.d.ts
27
+ /**
28
+ * @internal
29
+ */
30
+ declare function toStringFormat(node: AST.AnyNode): string;
31
+ //#endregion
32
32
  export { is, isClass, isControlFlow, isFunction, isJSX, isJSXElement, isJSXFragment, isLogicalExpression, isLogicalNegationExpression, isLoop, isMemberExpressionStrict, isMethodOrProperty, isOneOf, isProperty, isTypeAssertionExpressionLoose, isTypeExpression, toStringFormat };
package/dist/index.js CHANGED
@@ -1,8 +1,7 @@
1
- import "string-ts";
2
- import { SyntaxKind } from "typescript";
3
1
  import { or } from "@let/eff";
2
+ import { SyntaxKind } from "typescript";
4
3
 
5
- //#region src/ast-node-is.ts
4
+ //#region src/is.ts
6
5
  function is(kind) {
7
6
  return (node) => node.kind === kind;
8
7
  }
@@ -69,7 +68,7 @@ const isTypeAssertionExpressionLoose = isOneOf([
69
68
  ]);
70
69
 
71
70
  //#endregion
72
- //#region src/ast-node-format.ts
71
+ //#region src/misc.ts
73
72
  /**
74
73
  * @internal
75
74
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-analyzer/ast",
3
- "version": "0.0.5",
3
+ "version": "0.0.8",
4
4
  "description": "React Analyzer TSESTree AST utility module.",
5
5
  "homepage": "https://github.com/Rel1cx/react-analyzer",
6
6
  "bugs": {
@@ -32,11 +32,11 @@
32
32
  "ts-pattern": "^5.9.0"
33
33
  },
34
34
  "devDependencies": {
35
- "tsdown": "^0.18.3",
35
+ "tsdown": "^0.20.0-beta.4",
36
36
  "@local/configs": "0.0.0"
37
37
  },
38
38
  "peerDependencies": {
39
- "tsl": "^1.0.27",
39
+ "tsl": "^1.0.28",
40
40
  "typescript": "^5.9.3"
41
41
  },
42
42
  "engines": {