Fix dependabot issues
This commit is contained in:
parent
c89d9bd8b0
commit
531c6ba7c8
705 changed files with 53406 additions and 20466 deletions
8
node_modules/string-width/index.js
generated
vendored
8
node_modules/string-width/index.js
generated
vendored
|
|
@ -4,14 +4,18 @@ const isFullwidthCodePoint = require('is-fullwidth-code-point');
|
|||
const emojiRegex = require('emoji-regex');
|
||||
|
||||
const stringWidth = string => {
|
||||
string = string.replace(emojiRegex(), ' ');
|
||||
|
||||
if (typeof string !== 'string' || string.length === 0) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
string = stripAnsi(string);
|
||||
|
||||
if (string.length === 0) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
string = string.replace(emojiRegex(), ' ');
|
||||
|
||||
let width = 0;
|
||||
|
||||
for (let i = 0; i < string.length; i++) {
|
||||
|
|
|
|||
4
node_modules/string-width/package.json
generated
vendored
4
node_modules/string-width/package.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "string-width",
|
||||
"version": "4.2.0",
|
||||
"version": "4.2.3",
|
||||
"description": "Get the visual width of a string - the number of columns required to display it",
|
||||
"license": "MIT",
|
||||
"repository": "sindresorhus/string-width",
|
||||
|
|
@ -46,7 +46,7 @@
|
|||
"dependencies": {
|
||||
"emoji-regex": "^8.0.0",
|
||||
"is-fullwidth-code-point": "^3.0.0",
|
||||
"strip-ansi": "^6.0.0"
|
||||
"strip-ansi": "^6.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"ava": "^1.4.1",
|
||||
|
|
|
|||
2
node_modules/string-width/readme.md
generated
vendored
2
node_modules/string-width/readme.md
generated
vendored
|
|
@ -1,4 +1,4 @@
|
|||
# string-width [](https://travis-ci.org/sindresorhus/string-width)
|
||||
# string-width
|
||||
|
||||
> Get the visual width of a string - the number of columns required to display it
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue