@decimalturn/toml-patch 3.0.3 → 3.0.5
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 +27 -641
- package/dist/toml-patch.d.ts +5 -0
- package/dist/toml-patch.js +34 -23
- package/package.json +5 -4
- package/CHANGELOG.md +0 -400
package/dist/toml-patch.d.ts
CHANGED
|
@@ -344,6 +344,10 @@ type Value<TInlineArrayItem = TreeNode> = String | Integer | Float | Boolean | D
|
|
|
344
344
|
interface TreeNode {
|
|
345
345
|
type: NodeType;
|
|
346
346
|
loc: Location;
|
|
347
|
+
/** Absolute UTF-16 offsets into the source that produced this node. */
|
|
348
|
+
readonly range?: readonly [number, number];
|
|
349
|
+
/** Set on generated or mutated nodes and propagated to their ancestors. */
|
|
350
|
+
dirty?: boolean;
|
|
347
351
|
}
|
|
348
352
|
//#endregion
|
|
349
353
|
//#region src/toml-document.d.ts
|
|
@@ -381,6 +385,7 @@ declare class TomlDocument {
|
|
|
381
385
|
/**
|
|
382
386
|
* Applies a patch to the current CST using a modified JS object.
|
|
383
387
|
* Updates the internal CST. Use toTomlString getter to retrieve the updated TOML string.
|
|
388
|
+
*
|
|
384
389
|
* @param updatedObject - The modified JS object to patch with
|
|
385
390
|
* @param format - Optional formatting options
|
|
386
391
|
*/
|