mirror of
https://github.com/github/codeql-action.git
synced 2026-01-06 14:40:10 +08:00
Fix dependabot issues
This commit is contained in:
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user