yuku-codegen 0.5.18 → 0.5.19
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 +2 -2
- package/index.d.ts +3 -3
- package/package.json +12 -12
package/README.md
CHANGED
|
@@ -50,7 +50,7 @@ interface CodegenResult {
|
|
|
50
50
|
const out = print(program, {
|
|
51
51
|
format: "pretty",
|
|
52
52
|
indent: 2,
|
|
53
|
-
quotes: "
|
|
53
|
+
quotes: "preserve",
|
|
54
54
|
comments: "some",
|
|
55
55
|
sourceMaps: { lineStarts },
|
|
56
56
|
});
|
|
@@ -60,7 +60,7 @@ const out = print(program, {
|
|
|
60
60
|
| ------------ | ---------------------------------------- | ---------- | ---------------------------------------------------------------------------- |
|
|
61
61
|
| `format` | `"pretty" \| "compact"` | `"pretty"` | Whitespace mode. `"compact"` emits only the separators the grammar requires. |
|
|
62
62
|
| `indent` | `number` | `2` | Spaces per indentation level. Applies in pretty mode only. |
|
|
63
|
-
| `quotes` | `"double" \| "single"`
|
|
63
|
+
| `quotes` | `"preserve" \| "double" \| "single"` | `"preserve"` | Quote style for string literals. `"preserve"` keeps each literal's source quote style (re-escaping the content); `"double"` / `"single"` force one. |
|
|
64
64
|
| `comments` | `boolean \| "some" \| "line" \| "block"` | `"some"` | Comment passthrough filter. See [Comments](#comments). |
|
|
65
65
|
| `sourceMaps` | `SourceMapOptions` | `undefined` | Pass an object to emit a Source Map V3. Its `lineStarts` is required, the rest of the metadata is optional. See [Source maps](#source-maps). |
|
|
66
66
|
|
package/index.d.ts
CHANGED
|
@@ -6,9 +6,9 @@ export type Format = "pretty" | "compact";
|
|
|
6
6
|
/**
|
|
7
7
|
* Quote style for emitted string literals.
|
|
8
8
|
*
|
|
9
|
-
* - `"preserve"`:
|
|
10
|
-
*
|
|
11
|
-
* - `"double"` / `"single"`:
|
|
9
|
+
* - `"preserve"`: keep each literal's original quote style (single vs double);
|
|
10
|
+
* synthetic nodes default to double.
|
|
11
|
+
* - `"double"` / `"single"`: force that quote.
|
|
12
12
|
*/
|
|
13
13
|
export type Quotes = "preserve" | "double" | "single";
|
|
14
14
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yuku-codegen",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.19",
|
|
4
4
|
"description": "High-performance JavaScript/TypeScript code generator written in Zig",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -17,17 +17,17 @@
|
|
|
17
17
|
"encode.js"
|
|
18
18
|
],
|
|
19
19
|
"optionalDependencies": {
|
|
20
|
-
"@yuku-codegen/binding-linux-x64-gnu": "0.5.
|
|
21
|
-
"@yuku-codegen/binding-linux-arm64-gnu": "0.5.
|
|
22
|
-
"@yuku-codegen/binding-linux-arm-gnu": "0.5.
|
|
23
|
-
"@yuku-codegen/binding-linux-x64-musl": "0.5.
|
|
24
|
-
"@yuku-codegen/binding-linux-arm64-musl": "0.5.
|
|
25
|
-
"@yuku-codegen/binding-linux-arm-musl": "0.5.
|
|
26
|
-
"@yuku-codegen/binding-darwin-x64": "0.5.
|
|
27
|
-
"@yuku-codegen/binding-darwin-arm64": "0.5.
|
|
28
|
-
"@yuku-codegen/binding-win32-x64": "0.5.
|
|
29
|
-
"@yuku-codegen/binding-win32-arm64": "0.5.
|
|
30
|
-
"@yuku-codegen/binding-freebsd-x64": "0.5.
|
|
20
|
+
"@yuku-codegen/binding-linux-x64-gnu": "0.5.19",
|
|
21
|
+
"@yuku-codegen/binding-linux-arm64-gnu": "0.5.19",
|
|
22
|
+
"@yuku-codegen/binding-linux-arm-gnu": "0.5.19",
|
|
23
|
+
"@yuku-codegen/binding-linux-x64-musl": "0.5.19",
|
|
24
|
+
"@yuku-codegen/binding-linux-arm64-musl": "0.5.19",
|
|
25
|
+
"@yuku-codegen/binding-linux-arm-musl": "0.5.19",
|
|
26
|
+
"@yuku-codegen/binding-darwin-x64": "0.5.19",
|
|
27
|
+
"@yuku-codegen/binding-darwin-arm64": "0.5.19",
|
|
28
|
+
"@yuku-codegen/binding-win32-x64": "0.5.19",
|
|
29
|
+
"@yuku-codegen/binding-win32-arm64": "0.5.19",
|
|
30
|
+
"@yuku-codegen/binding-freebsd-x64": "0.5.19"
|
|
31
31
|
},
|
|
32
32
|
"keywords": [
|
|
33
33
|
"ast",
|