fastyaml-rs 0.1.10 → 0.2.0
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 +5 -5
- package/package.json +8 -7
package/README.md
CHANGED
|
@@ -92,12 +92,12 @@ const multiDoc = safeDumpAll([{ a: 1 }, { b: 2 }]);
|
|
|
92
92
|
|
|
93
93
|
```typescript
|
|
94
94
|
interface DumpOptions {
|
|
95
|
-
sortKeys?: boolean;
|
|
96
|
-
allowUnicode?: boolean;
|
|
97
|
-
indent?: number;
|
|
98
|
-
width?: number;
|
|
95
|
+
sortKeys?: boolean; // Sort object keys alphabetically (default: false)
|
|
96
|
+
allowUnicode?: boolean; // Allow unicode characters (default: true)
|
|
97
|
+
indent?: number; // Indentation width 1-9 (default: 2)
|
|
98
|
+
width?: number; // Line width 20-1000 (default: 80)
|
|
99
99
|
defaultFlowStyle?: boolean; // Force flow style [...], {...} (default: null/block)
|
|
100
|
-
explicitStart?: boolean;
|
|
100
|
+
explicitStart?: boolean; // Add '---' document marker (default: false)
|
|
101
101
|
}
|
|
102
102
|
```
|
|
103
103
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fastyaml-rs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Fast YAML 1.2.2 parser, linter, and parallel processor for Node.js",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -56,11 +56,12 @@
|
|
|
56
56
|
"version": "napi version"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@napi-rs/cli": "
|
|
60
|
-
"@types/node": "^25.0",
|
|
61
|
-
"@vitest/coverage-v8": "^4.0",
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
59
|
+
"@napi-rs/cli": "~3.5.0",
|
|
60
|
+
"@types/node": "^25.0.3",
|
|
61
|
+
"@vitest/coverage-v8": "^4.0.16",
|
|
62
|
+
"fastyaml-rs": "0.1.11",
|
|
63
|
+
"prettier": "^3.7.4",
|
|
64
|
+
"typescript": "^5.9.3",
|
|
65
|
+
"vitest": "^4.0.16"
|
|
65
66
|
}
|
|
66
67
|
}
|