Update dependency get-east-asian-width to v1.7.0 (#20094)
Co-authored-by: fisker <lionkay@gmail.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
3 files changed
+8
-8
No files matched your search
+1
-1
@@ -77,7 +77,7 @@
|
||||
"file-entry-cache": "11.1.5",
|
||||
"find-cache-directory": "6.0.0",
|
||||
"flow-parser": "0.331.0",
|
||||
"get-east-asian-width": "1.6.0",
|
||||
"get-east-asian-width": "1.7.0",
|
||||
"get-stdin": "9.0.0",
|
||||
"graphql": "17.0.2",
|
||||
"hermes-parser": "0.37.0",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import emojiRegex from "emoji-regex";
|
||||
import {
|
||||
// @ts-expect-error -- Private
|
||||
_isFullWidth as isFullWidth,
|
||||
_isFullwidth as isFullwidth,
|
||||
// @ts-expect-error -- Private
|
||||
_isWide as isWide,
|
||||
} from "get-east-asian-width";
|
||||
@@ -49,7 +49,7 @@ function getStringWidth(text) {
|
||||
continue;
|
||||
}
|
||||
|
||||
width += isFullWidth(codePoint) || isWide(codePoint) ? 2 : 1;
|
||||
width += isFullwidth(codePoint) || isWide(codePoint) ? 2 : 1;
|
||||
}
|
||||
|
||||
return width;
|
||||
|
||||
@@ -5303,10 +5303,10 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"get-east-asian-width@npm:1.6.0, get-east-asian-width@npm:^1.0.0, get-east-asian-width@npm:^1.5.0":
|
||||
version: 1.6.0
|
||||
resolution: "get-east-asian-width@npm:1.6.0"
|
||||
checksum: 10/3e5370b5df1f0020db711d8a3f9ee2cbfc9c7542daa99a699e9d7b9acf66e7868b89084741565a45d30d80afedf6e1218e0fb8bef7a583924a449c2816777380
|
||||
"get-east-asian-width@npm:1.7.0, get-east-asian-width@npm:^1.0.0, get-east-asian-width@npm:^1.5.0":
|
||||
version: 1.7.0
|
||||
resolution: "get-east-asian-width@npm:1.7.0"
|
||||
checksum: 10/8d8d96b54d1cfb6510f1b6dce51c4a6000b4d122757780d519d0147d968a6f5401421dbeff2e6bd3dc742e9b502fbcdbb98a50bf7f62730a6a8d6749a632279c
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -8292,7 +8292,7 @@ __metadata:
|
||||
find-cache-directory: "npm:6.0.0"
|
||||
flow-estree: "npm:0.331.0"
|
||||
flow-parser: "npm:0.331.0"
|
||||
get-east-asian-width: "npm:1.6.0"
|
||||
get-east-asian-width: "npm:1.7.0"
|
||||
get-port: "npm:7.2.0"
|
||||
get-stdin: "npm:9.0.0"
|
||||
gfm-test-suite: "npm:0.0.2"
|
||||
|
||||
Reference in new issue
Block a user