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 6.14.0 to 7.0.0

20

CHANGELOG.md

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

<a name="7.0.0"></a>
# [7.0.0](https://github.com/dsherret/code-block-writer/compare/v6.13.0...v7.0.0) (2018-04-29)
### Code Refactoring
* Remove deprecated methods. ([e7fca86](https://github.com/dsherret/code-block-writer/commit/e7fca86))
### Features
* allow passing a function into conditional write methods ([d299c84](https://github.com/dsherret/code-block-writer/commit/d299c84))
### BREAKING CHANGES
* `newLineIfLastNotNewLine`, `blankLineIfLastNotBlankLine`, `spaceIfLastNotSpace` are removed. Use the shorter method names like `spaceIfLastNot`.
<a name="6.14.0"></a>

@@ -7,0 +27,0 @@ # [6.14.0](https://github.com/dsherret/code-block-writer/compare/v6.13.0...v6.14.0) (2018-04-10)

15

dist/code-block-writer.d.ts

@@ -84,17 +84,7 @@ export interface Options {

* Writes a newline if the last line was not a newline.
* @deprecated Use `newLineIfLastNot()`.
*/
newLineIfLastNotNewLine(): this;
/**
* Writes a newline if the last line was not a newline.
*/
newLineIfLastNot(): this;
/**
* Writes a blank line if the last written text was not a blank line.
* @deprecated Use `blankLineIfLastNot()`
*/
blankLineIfLastNotBlankLine(): this;
/**
* Writes a blank line if the last written text was not a blank line.
*/
blankLineIfLastNot(): this;

@@ -134,8 +124,3 @@ /**

* Writes a space if the last character was not a space.
* @deprecated Use `spaceIfLastNot()`.
*/
spaceIfLastNotSpace(): this;
/**
* Writes a space if the last character was not a space.
*/
spaceIfLastNot(): this;

@@ -142,0 +127,0 @@ /**

@@ -108,10 +108,3 @@ "use strict";

* Writes a newline if the last line was not a newline.
* @deprecated Use `newLineIfLastNot()`.
*/
CodeBlockWriter.prototype.newLineIfLastNotNewLine = function () {
return this.newLineIfLastNot();
};
/**
* Writes a newline if the last line was not a newline.
*/
CodeBlockWriter.prototype.newLineIfLastNot = function () {

@@ -125,10 +118,3 @@ this._newLineIfNewLineOnNextWrite();

* Writes a blank line if the last written text was not a blank line.
* @deprecated Use `blankLineIfLastNot()`
*/
CodeBlockWriter.prototype.blankLineIfLastNotBlankLine = function () {
return this.blankLineIfLastNot();
};
/**
* Writes a blank line if the last written text was not a blank line.
*/
CodeBlockWriter.prototype.blankLineIfLastNot = function () {

@@ -185,10 +171,3 @@ if (!this.isLastBlankLine())

* Writes a space if the last character was not a space.
* @deprecated Use `spaceIfLastNot()`.
*/
CodeBlockWriter.prototype.spaceIfLastNotSpace = function () {
return this.spaceIfLastNot();
};
/**
* Writes a space if the last character was not a space.
*/
CodeBlockWriter.prototype.spaceIfLastNot = function () {

@@ -195,0 +174,0 @@ this._newLineIfNewLineOnNextWrite();

4

package.json
{
"name": "code-block-writer",
"version": "6.14.0",
"version": "7.0.0",
"description": "A simple code writer that assists with formatting and visualizing blocks of code.",

@@ -51,4 +51,2 @@ "main": "dist/code-block-writer.js",

"coveralls": "^2.13.1",
"del": "^2.0.2",
"merge2": "^1.2.0",
"mocha": "^3.3.0",

@@ -55,0 +53,0 @@ "nyc": "^11.6.0",

@@ -171,11 +171,3 @@ import { stringRepeat, escapeForWithinString, getStringFromStrOrFunc } from "./utils/stringUtils";

* Writes a newline if the last line was not a newline.
* @deprecated Use `newLineIfLastNot()`.
*/
newLineIfLastNotNewLine() {
return this.newLineIfLastNot();
}
/**
* Writes a newline if the last line was not a newline.
*/
newLineIfLastNot() {

@@ -192,11 +184,3 @@ this._newLineIfNewLineOnNextWrite();

* Writes a blank line if the last written text was not a blank line.
* @deprecated Use `blankLineIfLastNot()`
*/
blankLineIfLastNotBlankLine() {
return this.blankLineIfLastNot();
}
/**
* Writes a blank line if the last written text was not a blank line.
*/
blankLineIfLastNot() {

@@ -269,11 +253,3 @@ if (!this.isLastBlankLine())

* Writes a space if the last character was not a space.
* @deprecated Use `spaceIfLastNot()`.
*/
spaceIfLastNotSpace() {
return this.spaceIfLastNot();
}
/**
* Writes a space if the last character was not a space.
*/
spaceIfLastNot() {

@@ -280,0 +256,0 @@ this._newLineIfNewLineOnNextWrite();

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