Socket
Socket
Sign inDemoInstall

code-block-writer

Package Overview
Dependencies
Maintainers
1
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

code-block-writer - npm Package Compare versions

Comparing version 7.2.0 to 7.2.1

10

CHANGELOG.md

@@ -5,2 +5,12 @@ # Change Log

<a name="7.2.1"></a>
## [7.2.1](https://github.com/dsherret/code-block-writer/compare/v7.2.0...v7.2.1) (2018-07-14)
### Bug Fixes
* Queued indentation would not by applied when not writing anything and doing a .newline(). ([2d33d46](https://github.com/dsherret/code-block-writer/commit/2d33d46))
<a name="7.2.0"></a>

@@ -7,0 +17,0 @@ # [7.2.0](https://github.com/dsherret/code-block-writer/compare/v7.1.0...v7.2.0) (2018-05-28)

1

dist/code-block-writer.d.ts

@@ -202,2 +202,3 @@ export interface Options {

private _baseWriteNewline();
private dequeueQueuedIndentation();
private _updateInternalState(str);

@@ -204,0 +205,0 @@ private _writeIndentation();

12

dist/code-block-writer.js

@@ -318,9 +318,6 @@ "use strict";

this._writeIndentation();
if (this._queuedIndentation != null) {
this._currentIndentation = this._queuedIndentation;
this._queuedIndentation = undefined;
}
}
this._updateInternalState(s);
this._text += s;
this.dequeueQueuedIndentation();
}

@@ -333,3 +330,10 @@ };

this._isOnFirstLineOfBlock = false;
this.dequeueQueuedIndentation();
};
CodeBlockWriter.prototype.dequeueQueuedIndentation = function () {
if (this._queuedIndentation == null)
return;
this._currentIndentation = this._queuedIndentation;
this._queuedIndentation = undefined;
};
CodeBlockWriter.prototype._updateInternalState = function (str) {

@@ -336,0 +340,0 @@ for (var i = 0; i < str.length; i++) {

{
"name": "code-block-writer",
"version": "7.2.0",
"version": "7.2.1",
"description": "A simple code writer that assists with formatting and visualizing blocks of code.",

@@ -5,0 +5,0 @@ "main": "dist/code-block-writer.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc