code-block-writer
Advanced tools
Comparing version 9.1.2 to 9.1.3
@@ -5,62 +5,17 @@ # Change Log | ||
### [9.1.2](https://github.com/dsherret/code-block-writer/compare/v9.1.1...v9.1.2) (2019-05-15) | ||
<a name="9.1.3"></a> | ||
## [9.1.3](https://github.com/dsherret/code-block-writer/compare/v9.1.1...v9.1.3) (2019-05-20) | ||
### Bug Fixes | ||
* Fix indentation when using a block within a hanging indent. ([b931952](https://github.com/dsherret/code-block-writer/commit/b931952)) | ||
### [9.1.1](https://github.com/dsherret/code-block-writer/compare/v9.1.0...v9.1.1) (2019-05-10) | ||
### Bug Fixes | ||
* Fix queued indentation so it is only dequeued after a newline. ([9f3298d](https://github.com/dsherret/code-block-writer/commit/9f3298d)) | ||
* Fix incorrect jsdoc in `withIndentationLevel` ([8e26c5f](https://github.com/dsherret/code-block-writer/commit/8e26c5f)) | ||
### Performance Improvements | ||
## [9.1.0](https://github.com/dsherret/code-block-writer/compare/v9.0.0...v9.1.0) (2019-05-10) | ||
* No longer pushes empty strings onto internal array. ([4d46a72](https://github.com/dsherret/code-block-writer/commit/4d46a72)) | ||
### 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) | ||
### Bug Fixes | ||
* `isInString()` was not handling escaped string characters. ([a357278](https://github.com/dsherret/code-block-writer/commit/a357278)) | ||
* Hide remaining private methods/properties from declaration file. ([5e7aaef](https://github.com/dsherret/code-block-writer/commit/5e7aaef)) | ||
* Restrict `newLine` to "\n" | "\r\n". ([699a41f](https://github.com/dsherret/code-block-writer/commit/699a41f)) | ||
### Features | ||
* [#24](https://github.com/dsherret/code-block-writer/issues/24) - Add `indent(times)`. ([0108dab](https://github.com/dsherret/code-block-writer/commit/0108dab)) | ||
* Add `#withHangingIndentation` ([2c77357](https://github.com/dsherret/code-block-writer/commit/2c77357)) | ||
* Add `#withQueuedIndentationLevel` and `#withIndentationLevel`. ([1bcf7c8](https://github.com/dsherret/code-block-writer/commit/1bcf7c8)) | ||
### perf | ||
* [#25](https://github.com/dsherret/code-block-writer/issues/25) Improve performance. ([6061b25](https://github.com/dsherret/code-block-writer/commit/6061b25)) | ||
### refactor | ||
* Fix spelling mistake in withHangingIdentation and withIdentationLevel method names. ([38d2bf1](https://github.com/dsherret/code-block-writer/commit/38d2bf1)) | ||
* Remove `queueIndentationLevel` and `withQueuedIndentationLevel`. Use `withHangingIndentation`. ([ffa2e0f](https://github.com/dsherret/code-block-writer/commit/ffa2e0f)) | ||
### BREAKING CHANGES | ||
* Removed `queueIndentationLevel` and `withQueuedIndentationLevel`. Use `withHangingIndentation`. | ||
* Fixed spelling mistake in withHangingIdentation and withIdentationLevel method names. | ||
* Library now targets ES2015 instead of ES5. | ||
<a name="8.3.0"></a> | ||
@@ -67,0 +22,0 @@ # [8.3.0](https://github.com/dsherret/code-block-writer/compare/v8.2.0...v8.3.0) (2019-05-05) |
@@ -68,3 +68,3 @@ /** | ||
* @remarks Restores the writer's state after the action. | ||
* @param indentationLevel - Indentation level to queue. | ||
* @param indentationLevel - Indentation level to set. | ||
* @param action - Action to perform with the indentation. | ||
@@ -71,0 +71,0 @@ */ |
@@ -394,6 +394,4 @@ "use strict"; | ||
items.forEach((s, i) => { | ||
if (i > 0) { | ||
if (i > 0) | ||
this._baseWriteNewline(); | ||
this.dequeueQueuedIndentation(); | ||
} | ||
if (s.length === 0) | ||
@@ -500,2 +498,4 @@ return; | ||
_internalWrite(text) { | ||
if (text.length === 0) | ||
return; | ||
this._texts.push(text); | ||
@@ -502,0 +502,0 @@ this._length += text.length; |
{ | ||
"name": "code-block-writer", | ||
"version": "9.1.2", | ||
"version": "9.1.3", | ||
"description": "A simple code writer that assists with formatting and visualizing blocks of code.", | ||
@@ -5,0 +5,0 @@ "main": "dist/code-block-writer.js", |
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
103541