@kubb/parser-ts 5.0.0-beta.40 → 5.0.0-beta.42
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/README.md +12 -12
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
|
|
6
6
|
[![npm version][npm-version-src]][npm-version-href]
|
|
7
7
|
[![npm downloads][npm-downloads-src]][npm-downloads-href]
|
|
8
|
-
[![
|
|
8
|
+
[![Stars][stars-src]][stars-href]
|
|
9
9
|
[![License][license-src]][license-href]
|
|
10
|
-
[![
|
|
10
|
+
[![Node][node-src]][node-href]
|
|
11
11
|
|
|
12
12
|
<h4>
|
|
13
13
|
<a href="https://kubb.dev" target="_blank">Documentation</a>
|
|
@@ -73,7 +73,7 @@ const source = parserTs.print(
|
|
|
73
73
|
|
|
74
74
|
Parser instance for `.ts` and `.js` files. Pass to `defineConfig({ parsers: [...] })` to emit TypeScript source files.
|
|
75
75
|
|
|
76
|
-
- `parserTs.parse(file, options?)` —
|
|
76
|
+
- `parserTs.parse(file, options?)` — serialize a `FileNode` to TypeScript source.
|
|
77
77
|
- `parserTs.print(...nodes)` — convert TypeScript compiler `Node` instances to a formatted source string.
|
|
78
78
|
|
|
79
79
|
### `parserTsx`
|
|
@@ -99,13 +99,13 @@ Kubb is an open source project, and its development is funded entirely by sponso
|
|
|
99
99
|
|
|
100
100
|
<!-- Badges -->
|
|
101
101
|
|
|
102
|
-
[npm-version-src]: https://
|
|
103
|
-
[npm-version-href]: https://
|
|
104
|
-
[npm-downloads-src]: https://
|
|
105
|
-
[npm-downloads-href]: https://
|
|
106
|
-
[
|
|
102
|
+
[npm-version-src]: https://shieldcn.dev/npm/v/@kubb/parser-ts.svg?variant=secondary&size=xs&theme=zinc&mode=dark
|
|
103
|
+
[npm-version-href]: https://npmx.dev/package/@kubb/parser-ts
|
|
104
|
+
[npm-downloads-src]: https://shieldcn.dev/npm/dm/@kubb/parser-ts.svg?variant=secondary&size=xs&theme=zinc&mode=dark
|
|
105
|
+
[npm-downloads-href]: https://npmx.dev/package/@kubb/parser-ts
|
|
106
|
+
[stars-src]: https://shieldcn.dev/github/stars/kubb-labs/kubb.svg?variant=secondary&size=xs&theme=zinc&mode=dark
|
|
107
|
+
[stars-href]: https://github.com/kubb-labs/kubb
|
|
108
|
+
[license-src]: https://shieldcn.dev/npm/license/@kubb/parser-ts.svg?variant=secondary&size=xs&theme=zinc
|
|
107
109
|
[license-href]: https://github.com/kubb-labs/kubb/blob/main/LICENSE
|
|
108
|
-
[
|
|
109
|
-
[
|
|
110
|
-
[sponsors-src]: https://img.shields.io/github/sponsors/stijnvanhulle?style=flat&colorA=18181B&colorB=f58517
|
|
111
|
-
[sponsors-href]: https://github.com/sponsors/stijnvanhulle/
|
|
110
|
+
[node-src]: https://shieldcn.dev/npm/node/@kubb/parser-ts.svg?variant=secondary&size=xs&theme=zinc&mode=dark
|
|
111
|
+
[node-href]: https://npmx.dev/package/@kubb/parser-ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/parser-ts",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.42",
|
|
4
4
|
"description": "TypeScript and TSX source file parser for Kubb. Converts AST nodes and raw TypeScript code into formatted source strings using the TypeScript compiler API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"codegen",
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"typescript": "^6.0.3",
|
|
45
|
-
"@kubb/core": "5.0.0-beta.
|
|
45
|
+
"@kubb/core": "5.0.0-beta.42"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@internals/utils": "0.0.0",
|
|
49
|
-
"@kubb/ast": "5.0.0-beta.
|
|
49
|
+
"@kubb/ast": "5.0.0-beta.42"
|
|
50
50
|
},
|
|
51
51
|
"engines": {
|
|
52
52
|
"node": ">=22"
|