@oneblink/release-cli 1.2.0-beta.2 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/node_modules/changelog-parser/.DS_Store +0 -0
  2. package/node_modules/changelog-parser/.travis.yml +7 -0
  3. package/node_modules/changelog-parser/CHANGELOG.md +128 -0
  4. package/node_modules/changelog-parser/CONTRIBUTING.md +55 -0
  5. package/node_modules/changelog-parser/LICENSE.md +15 -0
  6. package/node_modules/changelog-parser/README.md +247 -0
  7. package/node_modules/changelog-parser/bin/cli.js +19 -0
  8. package/node_modules/changelog-parser/index.js +201 -0
  9. package/node_modules/changelog-parser/package.json +54 -0
  10. package/node_modules/changelog-parser/test/fixtures/CHANGELOG.md +44 -0
  11. package/node_modules/changelog-parser/test/fixtures/expected.js +113 -0
  12. package/node_modules/changelog-parser/test/fixtures/remove-markdown-expected.js +113 -0
  13. package/node_modules/changelog-parser/test/index.js +105 -0
  14. package/node_modules/line-reader/LICENSE +20 -0
  15. package/node_modules/line-reader/README.md +75 -0
  16. package/node_modules/line-reader/lib/line_reader.js +174 -0
  17. package/node_modules/line-reader/package.json +18 -0
  18. package/node_modules/line-reader/test/data/empty_file.txt +0 -0
  19. package/node_modules/line-reader/test/data/multi_separator_file.txt +2 -0
  20. package/node_modules/line-reader/test/data/multibyte_file.txt +2 -0
  21. package/node_modules/line-reader/test/data/normal_file.txt +6 -0
  22. package/node_modules/line-reader/test/data/one_line_file.txt +1 -0
  23. package/node_modules/line-reader/test/data/separator_file.txt +2 -0
  24. package/node_modules/line-reader/test/data/three_line_file.txt +3 -0
  25. package/node_modules/line-reader/test/line_reader.js +222 -0
  26. package/node_modules/remove-markdown/.npmignore +1 -0
  27. package/node_modules/remove-markdown/LICENSE +21 -0
  28. package/node_modules/remove-markdown/README.md +44 -0
  29. package/node_modules/remove-markdown/index.js +60 -0
  30. package/node_modules/remove-markdown/package.json +31 -0
  31. package/node_modules/remove-markdown/test/remove-markdown.js +139 -0
  32. package/package.json +4 -1
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "line-reader",
3
+ "version": "0.2.4",
4
+ "description": "Asynchronous line-by-line file reader",
5
+ "url": "https://github.com/nickewing/line-reader",
6
+ "keywords": ["file", "line", "reader", "scanner"],
7
+ "author": "Nick Ewing <nick@nickewing.net>",
8
+ "directories": {"lib" : "./lib"},
9
+ "main": "./lib/line_reader",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "https://nickewing@github.com/nickewing/line-reader.git"
13
+ }
14
+
15
+ ,"_resolved": "https://registry.npmjs.org/line-reader/-/line-reader-0.2.4.tgz"
16
+ ,"_integrity": "sha1-xDkrWH3qOFgMlnhXDm6OSfzlJiI="
17
+ ,"_from": "line-reader@0.2.4"
18
+ }
@@ -0,0 +1,2 @@
1
+ ふうりうの初やおくの田植うた
2
+
@@ -0,0 +1,6 @@
1
+ Jabberwocky
2
+
3
+ ’Twas brillig, and the slithy toves
4
+ Did gyre and gimble in the wabe;
5
+
6
+
@@ -0,0 +1 @@
1
+ one line file
@@ -0,0 +1,2 @@
1
+ foo;bar
2
+ ;baz
@@ -0,0 +1,3 @@
1
+ This is line one.
2
+ This is line two.
3
+ This is line three.
@@ -0,0 +1,222 @@
1
+ var lineReader = require('../lib/line_reader'),
2
+ assert = require('assert'),
3
+ testFilePath = __dirname + '/data/normal_file.txt',
4
+ separatorFilePath = __dirname + '/data/separator_file.txt',
5
+ multiSeparatorFilePath = __dirname + '/data/multi_separator_file.txt',
6
+ multibyteFilePath = __dirname + '/data/multibyte_file.txt',
7
+ emptyFilePath = __dirname + '/data/empty_file.txt',
8
+ oneLineFilePath = __dirname + '/data/one_line_file.txt',
9
+ threeLineFilePath = __dirname + '/data/three_line_file.txt',
10
+ testSeparatorFile = ['foo', 'bar\n', 'baz\n'],
11
+ testFile = [
12
+ 'Jabberwocky',
13
+ '',
14
+ '’Twas brillig, and the slithy toves',
15
+ 'Did gyre and gimble in the wabe;',
16
+ '',
17
+ ''
18
+ ];
19
+
20
+ describe("lineReader", function() {
21
+ describe("eachLine", function() {
22
+ it("should read lines using the defalut separator", function(done) {
23
+ var i = 0;
24
+
25
+ lineReader.eachLine(testFilePath, function(line, last) {
26
+ assert.equal(testFile[i], line, 'Each line should be what we expect');
27
+ i += 1;
28
+
29
+ if (i === 6) {
30
+ assert.ok(last);
31
+ } else {
32
+ assert.ok(!last);
33
+ }
34
+ }).then(function() {
35
+ assert.equal(6, i);
36
+ done();
37
+ });
38
+ });
39
+
40
+ it("should allow continuation of line reading via a callback", function(done) {
41
+ var i = 0;
42
+
43
+ lineReader.eachLine(testFilePath, function(line, last, cb) {
44
+ assert.equal(testFile[i], line, 'Each line should be what we expect');
45
+ i += 1;
46
+
47
+ if (i === 6) {
48
+ assert.ok(last);
49
+ } else {
50
+ assert.ok(!last);
51
+ }
52
+
53
+ process.nextTick(cb);
54
+ }).then(function() {
55
+ assert.equal(6, i);
56
+ done();
57
+ });
58
+ });
59
+
60
+ it("should separate files using given separator", function(done) {
61
+ var i = 0;
62
+ lineReader.eachLine(separatorFilePath, function(line, last) {
63
+ assert.equal(testSeparatorFile[i], line);
64
+ i += 1;
65
+
66
+ if (i === 3) {
67
+ assert.ok(last);
68
+ } else {
69
+ assert.ok(!last);
70
+ }
71
+ }, ';').then(function() {
72
+ assert.equal(3, i);
73
+ done();
74
+ });
75
+ });
76
+
77
+ it("should separate files using given separator with more than one character", function(done) {
78
+ var i = 0;
79
+ lineReader.eachLine(multiSeparatorFilePath, function(line, last) {
80
+ assert.equal(testSeparatorFile[i], line);
81
+ i += 1;
82
+
83
+ if (i === 3) {
84
+ assert.ok(last);
85
+ } else {
86
+ assert.ok(!last);
87
+ }
88
+ }, '||').then(function() {
89
+ assert.equal(3, i);
90
+ done();
91
+ });
92
+ });
93
+
94
+ it("should allow early termination of line reading", function(done) {
95
+ var i = 0;
96
+ lineReader.eachLine(testFilePath, function(line, last) {
97
+ assert.equal(testFile[i], line, 'Each line should be what we expect');
98
+ i += 1;
99
+
100
+ if (i === 2) {
101
+ return false;
102
+ }
103
+ }).then(function() {
104
+ assert.equal(2, i);
105
+ done();
106
+ });
107
+ });
108
+
109
+ it("should allow early termination of line reading via a callback", function(done) {
110
+ var i = 0;
111
+ lineReader.eachLine(testFilePath, function(line, last, cb) {
112
+ assert.equal(testFile[i], line, 'Each line should be what we expect');
113
+ i += 1;
114
+
115
+ if (i === 2) {
116
+ cb(false);
117
+ } else {
118
+ cb();
119
+ }
120
+
121
+ }).then(function() {
122
+ assert.equal(2, i);
123
+ done();
124
+ });
125
+ });
126
+
127
+ it("should not call callback on empty file", function(done) {
128
+ lineReader.eachLine(emptyFilePath, function(line) {
129
+ assert.ok(false, "Empty file should not cause any callbacks");
130
+ }).then(function() {
131
+ done()
132
+ });
133
+ });
134
+
135
+ it("should work with a file containing only one line", function(done) {
136
+ lineReader.eachLine(oneLineFilePath, function(line, last) {
137
+ done();
138
+ return false;
139
+ });
140
+ });
141
+
142
+ });
143
+
144
+ describe("open", function() {
145
+ it("should return a reader object and allow calls to nextLine", function(done) {
146
+ lineReader.open(testFilePath, function(reader) {
147
+ assert.ok(reader.hasNextLine());
148
+
149
+ assert.ok(reader.hasNextLine(), 'Calling hasNextLine multiple times should be ok');
150
+
151
+ reader.nextLine(function(line) {
152
+ assert.equal('Jabberwocky', line);
153
+ assert.ok(reader.hasNextLine());
154
+ reader.nextLine(function(line) {
155
+ assert.equal('', line);
156
+ assert.ok(reader.hasNextLine());
157
+ reader.nextLine(function(line) {
158
+ assert.equal('’Twas brillig, and the slithy toves', line);
159
+ assert.ok(reader.hasNextLine());
160
+ reader.nextLine(function(line) {
161
+ assert.equal('Did gyre and gimble in the wabe;', line);
162
+ assert.ok(reader.hasNextLine());
163
+ reader.nextLine(function(line) {
164
+ assert.equal('', line);
165
+ assert.ok(reader.hasNextLine());
166
+ reader.nextLine(function(line) {
167
+ assert.equal('', line);
168
+ assert.ok(!reader.hasNextLine());
169
+
170
+ assert.throws(function() {
171
+ reader.nextLine(function() {
172
+ });
173
+ }, Error, "Should be able to read next line at EOF");
174
+
175
+ done();
176
+ });
177
+ });
178
+ });
179
+ });
180
+ });
181
+ });
182
+ });
183
+ });
184
+
185
+ it("should work with a file containing only one line", function(done) {
186
+ lineReader.open(oneLineFilePath, function(reader) {
187
+ done();
188
+ });
189
+ });
190
+
191
+ it("should read multibyte characters on the buffer boundary", function(done) {
192
+ lineReader.open(multibyteFilePath, function(reader) {
193
+ assert.ok(reader.hasNextLine());
194
+ reader.nextLine(function(line) {
195
+ assert.equal('ふうりうの初やおくの田植うた', line,
196
+ "Should read multibyte characters on buffer boundary");
197
+ done();
198
+ });
199
+ }, '\n', 'utf8', 2);
200
+ });
201
+
202
+ describe("hasNextLine", function() {
203
+ it("should return true when buffer is empty but not at EOF", function(done) {
204
+ lineReader.open(threeLineFilePath, function(reader) {
205
+ reader.nextLine(function(line) {
206
+ assert.equal("This is line one.", line);
207
+ assert.ok(reader.hasNextLine());
208
+ reader.nextLine(function(line) {
209
+ assert.equal("This is line two.", line);
210
+ assert.ok(reader.hasNextLine());
211
+ reader.nextLine(function(line) {
212
+ assert.equal("This is line three.", line);
213
+ assert.ok(!reader.hasNextLine());
214
+ done();
215
+ });
216
+ });
217
+ });
218
+ }, '\n', 'utf-8', 36);
219
+ });
220
+ });
221
+ });
222
+ });
@@ -0,0 +1 @@
1
+ node_modules/
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Stian Grytøyr
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,44 @@
1
+ [![CircleCI](https://circleci.com/gh/stiang/remove-markdown.svg?style=svg&circle-token=cac2feef7dc90e6b8578aec361be369412be1c6a)](https://circleci.com/gh/stiang/remove-markdown)
2
+
3
+ ## What is it?
4
+ **remove-markdown** is a node.js module that will remove (strip) Markdown formatting from a text. "Markdown formatting" means pretty much anything that doesn’t look like regular text, like square brackets, asterisks etc.
5
+
6
+ ## When do I need it?
7
+ The typical use case is to display an excerpt of a Markdown text, without the actual Markdown (or rendered HTML, for that matter), for example in a list of posts.
8
+
9
+ ## Installation
10
+
11
+ ```
12
+ npm install remove-markdown
13
+ ```
14
+
15
+ ## Usage
16
+ ```js
17
+ const removeMd = require('remove-markdown');
18
+ const markdown = '# This is a heading\n\nThis is a paragraph with [a link](http://www.disney.com/) in it.';
19
+ const plainText = removeMd(markdown); // plainText is now 'This is a heading\n\nThis is a paragraph with a link in it.'
20
+ ```
21
+
22
+ You can also supply an options object to the function. Currently, the following options are supported:
23
+
24
+ ```js
25
+ var plainText = removeMd(markdown, {
26
+ stripListLeaders: true , // strip list leaders (default: true)
27
+ listUnicodeChar: '', // char to insert instead of stripped list leaders (default: '')
28
+ gfm: true // support GitHub-Flavored Markdown (default: true)
29
+ });
30
+ ```
31
+
32
+ Setting `stripListLeaders` to false will retain any list characters (`*, -, +, (digit).`).
33
+
34
+ ## TODO
35
+ PRs are very much welcome.
36
+ * Allow the RegEx expressions to be customized per rule
37
+ * Make the rules more robust, support more edge cases
38
+ * Add more (comprehensive) tests
39
+
40
+ ## Credits
41
+ The code is based on [Markdown Service Tools - Strip Markdown](http://brettterpstra.com/2013/10/18/a-markdown-service-to-strip-markdown/) by Brett Terpstra.
42
+
43
+ ## Author
44
+ Stian Grytøyr
@@ -0,0 +1,60 @@
1
+ module.exports = function(md, options) {
2
+ options = options || {};
3
+ options.listUnicodeChar = options.hasOwnProperty('listUnicodeChar') ? options.listUnicodeChar : false;
4
+ options.stripListLeaders = options.hasOwnProperty('stripListLeaders') ? options.stripListLeaders : true;
5
+ options.gfm = options.hasOwnProperty('gfm') ? options.gfm : true;
6
+
7
+ var output = md || '';
8
+
9
+ // Remove horizontal rules (stripListHeaders conflict with this rule, which is why it has been moved to the top)
10
+ output = output.replace(/^(-\s*?|\*\s*?|_\s*?){3,}\s*$/gm, '');
11
+
12
+ try {
13
+ if (options.stripListLeaders) {
14
+ if (options.listUnicodeChar)
15
+ output = output.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm, options.listUnicodeChar + ' $1');
16
+ else
17
+ output = output.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm, '$1');
18
+ }
19
+ if (options.gfm) {
20
+ output = output
21
+ // Header
22
+ .replace(/\n={2,}/g, '\n')
23
+ // Strikethrough
24
+ .replace(/~~/g, '')
25
+ // Fenced codeblocks
26
+ .replace(/`{3}.*\n/g, '');
27
+ }
28
+ output = output
29
+ // Remove HTML tags
30
+ .replace(/<[^>]*>/g, '')
31
+ // Remove setext-style headers
32
+ .replace(/^[=\-]{2,}\s*$/g, '')
33
+ // Remove footnotes?
34
+ .replace(/\[\^.+?\](\: .*?$)?/g, '')
35
+ .replace(/\s{0,2}\[.*?\]: .*?$/g, '')
36
+ // Remove images
37
+ .replace(/\!\[.*?\][\[\(].*?[\]\)]/g, '')
38
+ // Remove inline links
39
+ .replace(/\[(.*?)\][\[\(].*?[\]\)]/g, '$1')
40
+ // Remove blockquotes
41
+ .replace(/^\s{0,3}>\s?/g, '')
42
+ // Remove reference-style links?
43
+ .replace(/^\s{1,2}\[(.*?)\]: (\S+)( ".*?")?\s*$/g, '')
44
+ // Remove atx-style headers
45
+ .replace(/^(\n)?\s{0,}#{1,6}\s+| {0,}(\n)?\s{0,}#{0,} {0,}(\n)?\s{0,}$/gm, '$1$2$3')
46
+ // Remove emphasis (repeat the line to remove double emphasis)
47
+ .replace(/([\*_]{1,3})(\S.*?\S{0,1})\1/g, '$2')
48
+ .replace(/([\*_]{1,3})(\S.*?\S{0,1})\1/g, '$2')
49
+ // Remove code blocks
50
+ .replace(/(`{3,})(.*?)\1/gm, '$2')
51
+ // Remove inline code
52
+ .replace(/`(.+?)`/g, '$1')
53
+ // Replace two or more newlines with exactly two? Not entirely sure this belongs here...
54
+ .replace(/\n{2,}/g, '\n\n');
55
+ } catch(e) {
56
+ console.error(e);
57
+ return md;
58
+ }
59
+ return output;
60
+ };
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "remove-markdown",
3
+ "version": "0.2.2",
4
+ "description": "Remove Markdown formatting from text",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "./node_modules/.bin/mocha -R spec test/remove-markdown.js"
8
+ },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/stiang/remove-markdown.git"
12
+ },
13
+ "keywords": [
14
+ "markdown"
15
+ ],
16
+ "author": "Stian Grytøyr",
17
+ "license": "MIT",
18
+ "bugs": {
19
+ "url": "https://github.com/stiang/remove-markdown/issues"
20
+ },
21
+ "homepage": "https://github.com/stiang/remove-markdown",
22
+ "devDependencies": {
23
+ "chai": "^4.0.2",
24
+ "mocha": "^2.1.0",
25
+ "should": "^5.0.0"
26
+ }
27
+
28
+ ,"_resolved": "https://registry.npmjs.org/remove-markdown/-/remove-markdown-0.2.2.tgz"
29
+ ,"_integrity": "sha1-ZrDO66n7d8qWNrsbAwfOIaMqEqY="
30
+ ,"_from": "remove-markdown@0.2.2"
31
+ }
@@ -0,0 +1,139 @@
1
+ 'use strict';
2
+ const expect = require('chai').expect;
3
+ const removeMd = require('../');
4
+
5
+ describe('remove Markdown', function () {
6
+ describe('removeMd', function () {
7
+ it('should leave a string alone without markdown', function () {
8
+ const string = 'Javascript Developers are the best.';
9
+ expect(removeMd(string)).to.equal(string);
10
+ });
11
+
12
+ it('should strip out remaining markdown', function () {
13
+ const string = '*Javascript* developers are the _best_.';
14
+ const expected = 'Javascript developers are the best.';
15
+ expect(removeMd(string)).to.equal(expected);
16
+ });
17
+
18
+ it('should leave non-matching markdown markdown', function () {
19
+ const string = '*Javascript* developers* are the _best_.';
20
+ const expected = 'Javascript developers* are the best.';
21
+ expect(removeMd(string)).to.equal(expected);
22
+ });
23
+
24
+ it('should leave non-matching markdown, but strip empty anchors', function () {
25
+ const string = '*Javascript* [developers]()* are the _best_.';
26
+ const expected = 'Javascript developers* are the best.';
27
+ expect(removeMd(string)).to.equal(expected);
28
+ });
29
+
30
+ it('should strip HTML', function () {
31
+ const string = '<p>Hello World</p>';
32
+ const expected = 'Hello World';
33
+ expect(removeMd(string)).to.equal(expected);
34
+ });
35
+
36
+ it('should strip anchors', function () {
37
+ const string = '*Javascript* [developers](https://engineering.condenast.io/)* are the _best_.';
38
+ const expected = 'Javascript developers* are the best.';
39
+ expect(removeMd(string)).to.equal(expected);
40
+ });
41
+
42
+ it('should strip img tags', function () {
43
+ const string = '![bear](https://placebear.com/640/480)*Javascript* developers are the _best_.';
44
+ const expected = 'Javascript developers are the best.';
45
+ expect(removeMd(string)).to.equal(expected);
46
+ });
47
+
48
+ it('should strip code tags', function () {
49
+ const string = 'In `Getting Started` we set up `something` foo.';
50
+ const expected = 'In Getting Started we set up something foo.';
51
+ expect(removeMd(string)).to.equal(expected);
52
+ });
53
+
54
+ it('should leave hashtags in headings', function () {
55
+ const string = '## This #heading contains #hashtags';
56
+ const expected = 'This #heading contains #hashtags';
57
+ expect(removeMd(string)).to.equal(expected);
58
+ });
59
+
60
+ it('should remove emphasis', function () {
61
+ const string = 'I italicized an *I* and it _made_ me *sad*.';
62
+ const expected = 'I italicized an I and it made me sad.';
63
+ expect(removeMd(string)).to.equal(expected);
64
+ });
65
+
66
+ it('should remove double emphasis', function () {
67
+ const string = '**this sentence has __double styling__**';
68
+ const expected = 'this sentence has double styling';
69
+ expect(removeMd(string)).to.equal(expected);
70
+ });
71
+
72
+ it('should remove horizontal rules', function () {
73
+ const string = 'Some text on a line\n\n---\n\nA line below';
74
+ const expected = 'Some text on a line\n\nA line below';
75
+ expect(removeMd(string)).to.equal(expected);
76
+ });
77
+
78
+ it('should remove horizontal rules with space-separated asterisks', function () {
79
+ const string = 'Some text on a line\n\n* * *\n\nA line below';
80
+ const expected = 'Some text on a line\n\nA line below';
81
+ expect(removeMd(string)).to.equal(expected);
82
+ });
83
+
84
+ it('should remove blockquotes', function () {
85
+ const string = '>I am a blockquote';
86
+ const expected = 'I am a blockquote';
87
+ expect(removeMd(string)).to.equal(expected);
88
+ });
89
+
90
+ it('should remove blockquotes with spaces', function () {
91
+ const string = '> I am a blockquote';
92
+ const expected = 'I am a blockquote';
93
+ expect(removeMd(string)).to.equal(expected);
94
+ });
95
+
96
+ it('should remove indented blockquotes', function () {
97
+ var tests = [
98
+ { string: ' > I am a blockquote', expected: 'I am a blockquote' },
99
+ { string: ' > I am a blockquote', expected: 'I am a blockquote' },
100
+ { string: ' > I am a blockquote', expected: 'I am a blockquote' },
101
+ ];
102
+ tests.forEach(function (test) {
103
+ expect(removeMd(test.string)).to.equal(test.expected);
104
+ });
105
+ });
106
+
107
+ it('should not remove greater than signs', function () {
108
+ var tests = [
109
+ { string: '100 > 0', expected: '100 > 0' },
110
+ { string: '100 >= 0', expected: '100 >= 0' },
111
+ { string: '100>0', expected: '100>0' },
112
+ { string: '> 100 > 0', expected: '100 > 0' },
113
+ { string: '1 < 100', expected: '1 < 100' },
114
+ { string: '1 <= 100', expected: '1 <= 100' },
115
+ ];
116
+ tests.forEach(function (test) {
117
+ expect(removeMd(test.string)).to.equal(test.expected);
118
+ });
119
+ });
120
+
121
+ it('should strip unordered list leaders', function () {
122
+ const string = 'Some text on a line\n\n* A list Item\n* Another list item';
123
+ const expected = 'Some text on a line\n\nA list Item\nAnother list item';
124
+ expect(removeMd(string)).to.equal(expected);
125
+ });
126
+
127
+ it('should strip ordered list leaders', function () {
128
+ const string = 'Some text on a line\n\n9. A list Item\n10. Another list item';
129
+ const expected = 'Some text on a line\n\nA list Item\nAnother list item';
130
+ expect(removeMd(string)).to.equal(expected);
131
+ });
132
+
133
+ it('should handle paragraphs with markdown', function () {
134
+ const paragraph = '\n## This is a heading ##\n\nThis is a paragraph with [a link](http://www.disney.com/).\n\n### This is another heading\n\nIn `Getting Started` we set up `something` foo.\n\n * Some list\n * With items\n * Even indented';
135
+ const expected = '\nThis is a heading\n\nThis is a paragraph with a link.\n\nThis is another heading\n\nIn Getting Started we set up something foo.\n\n Some list\n With items\n Even indented';
136
+ expect(removeMd(paragraph)).to.equal(expected);
137
+ });
138
+ });
139
+ });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oneblink/release-cli",
3
3
  "description": "Used internally by OneBlink to release code bases quickly and consistently",
4
- "version": "1.2.0-beta.2",
4
+ "version": "1.2.0",
5
5
  "author": "OneBlink <developers@oneblink> (https://github.com/oneblink)",
6
6
  "bin": {
7
7
  "oneblink-release": "dist/bin.js"
@@ -22,6 +22,9 @@
22
22
  "semver": "^7.3.5",
23
23
  "update-notifier": "^5.1.0"
24
24
  },
25
+ "bundleDependencies": [
26
+ "changelog-parser"
27
+ ],
25
28
  "devDependencies": {
26
29
  "@types/changelog-parser": "^2.7.1",
27
30
  "@types/jest": "^26.0.22",