Skip to content

Commit f3f7db6

Browse files
committed
Remove dependency
1 parent 6d1ca1e commit f3f7db6

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
* @property {Array.<string>} source
2727
*/
2828

29-
import repeat from 'repeat-string'
3029
import {toString} from 'nlcst-to-string'
3130
import {pointStart, pointEnd} from 'unist-util-position'
3231
import {location} from 'vfile-location'
@@ -154,7 +153,7 @@ function all(config, parent) {
154153

155154
if (end && start.line !== end.line) {
156155
const lineEnding = config.parser.tokenizeWhiteSpace(
157-
repeat('\n', start.line - end.line)
156+
'\n'.repeat(start.line - end.line)
158157
)
159158
patch(config, [lineEnding], end.offset)
160159

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,8 @@
3535
],
3636
"dependencies": {
3737
"@types/mdast": "^3.0.0",
38-
"@types/repeat-string": "^1.0.0",
3938
"@types/unist": "^2.0.0",
4039
"nlcst-to-string": "^3.0.0",
41-
"repeat-string": "^1.0.0",
4240
"unist-util-position": "^4.0.0",
4341
"vfile": "^5.0.0",
4442
"vfile-location": "^4.0.0"

0 commit comments

Comments
 (0)