Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

code-block-writer

Package Overview
Dependencies
Maintainers
1
Versions
86
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 9.0.0 to 9.1.0

9

CHANGELOG.md

@@ -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.

1

dist/code-block-writer.js

@@ -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.

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