Skip to content

Commit 4c18b5e

Browse files
committed
Remove unneeded dependency
1 parent adf9c0c commit 4c18b5e

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

lib/handlers/input.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
*/
77

88
import {convertElement} from 'hast-util-is-element'
9-
import repeat from 'repeat-string'
109
import {findSelectedOptions} from '../util/find-selected-options.js'
1110
import {own} from '../util/own.js'
1211
import {resolve} from '../util/resolve.js'
@@ -81,7 +80,7 @@ export function input(h, node) {
8180
// Hide password value.
8281
if (props.type === 'password') {
8382
// Passwords don’t support `list`.
84-
values[0] = [repeat('•', values[0][0].length), null]
83+
values[0] = ['•'.repeat(values[0][0].length), null]
8584
}
8685

8786
if (props.type === 'url' || props.type === 'email') {

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
"mdast-util-phrasing": "^3.0.0",
4848
"mdast-util-to-string": "^3.0.0",
4949
"rehype-minify-whitespace": "^5.0.0",
50-
"repeat-string": "^1.0.0",
5150
"trim-trailing-lines": "^2.0.0",
5251
"unist-util-is": "^5.0.0",
5352
"unist-util-visit": "^4.0.0"

0 commit comments

Comments
 (0)