code-block-writer
Advanced tools
Comparing version 9.0.0 to 9.1.0
@@ -5,2 +5,11 @@ # Changelog | ||
## [9.1.0](https://github.com/dsherret/code-block-writer/compare/v9.0.0...v9.1.0) (2019-05-10) | ||
### Features | ||
* Add back `#queueIndentationLevel`. ([13044cf](https://github.com/dsherret/code-block-writer/commit/13044cf)) | ||
## [9.0.0](https://github.com/dsherret/code-block-writer/compare/v7.3.0...v9.0.0) (2019-05-10) | ||
@@ -7,0 +16,0 @@ |
@@ -40,2 +40,12 @@ /** | ||
/** | ||
* Queues the indentation level for the next lines written. | ||
* @param indentationLevel - Indentation level to queue. | ||
*/ | ||
queueIndentationLevel(indentationLevel: number): this; | ||
/** | ||
* Queues the indentation level for the next lines written using the provided indentation text. | ||
* @param whitespaceText - Gets the indentation level from the indentation text. | ||
*/ | ||
queueIndentationLevel(whitespaceText: string): this; | ||
/** | ||
* Writes the text within the provided action with hanging indentation. | ||
@@ -42,0 +52,0 @@ * @param action - Action to perform with hanging indentation. |
@@ -49,3 +49,2 @@ "use strict"; | ||
} | ||
/** @internal */ | ||
queueIndentationLevel(countOrText) { | ||
@@ -52,0 +51,0 @@ this._queuedIndentation = this._getIndentationLevelFromArg(countOrText); |
{ | ||
"name": "code-block-writer", | ||
"version": "9.0.0", | ||
"version": "9.1.0", | ||
"description": "A simple code writer that assists with formatting and visualizing blocks of code.", | ||
@@ -5,0 +5,0 @@ "main": "dist/code-block-writer.js", |
@@ -80,2 +80,4 @@ code-block-writer | ||
* `getIndentationLevel()` - Gets the current indentation level. | ||
* `queueIndentationLevel(indentationLevel: number)` - Queues an indentation level to be used once a new line is written. | ||
* `queueIndentationLevel(whitespaceText: string)` - Queues an indentation level to be used once a new line is written based on the provided whitespace text. | ||
* `withHangingIndentation(action: () => void)` - Writes the code within the action with hanging indentation. | ||
@@ -82,0 +84,0 @@ * `closeComment()` - Writes text to exit a comment if in a comment. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
49790
832
104