File tree Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 11{
2- "parser" : " babel-eslint" ,
32 "parserOptions" : {
43 "ecmaVersion" : 9 ,
54 "sourceType" : " module"
Original file line number Diff line number Diff line change 11{
2- "parser" : " babel-eslint" ,
32 "parserOptions" : {
43 "ecmaVersion" : 9 ,
54 "sourceType" : " module" ,
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ const regionMatchingLangs = [
5252] ;
5353
5454export function getLikelySubtagsMin ( loc : string ) : Locale | null {
55- if ( likelySubtagsMin . hasOwnProperty ( loc ) ) {
55+ if ( Object . prototype . hasOwnProperty . call ( likelySubtagsMin , loc ) ) {
5656 return new Locale ( likelySubtagsMin [ loc ] ) ;
5757 }
5858 const locale = new Locale ( loc ) ;
Original file line number Diff line number Diff line change @@ -155,7 +155,10 @@ export function Localized(props: LocalizedProps): ReactElement {
155155 const childName = childNode . nodeName . toLowerCase ( ) ;
156156
157157 // If the child is not expected just take its textContent.
158- if ( ! elemsLower || ! elemsLower . hasOwnProperty ( childName ) ) {
158+ if (
159+ ! elemsLower ||
160+ ! Object . prototype . hasOwnProperty . call ( elemsLower , childName )
161+ ) {
159162 return childNode . textContent ;
160163 }
161164
Original file line number Diff line number Diff line change 1010 "@babel/preset-env" : " ^7.4.3" ,
1111 "@typescript-eslint/eslint-plugin" : " ^2.10.0" ,
1212 "@typescript-eslint/parser" : " ^2.10.0" ,
13- "babel-eslint" : " ^10.0.1" ,
1413 "colors" : " ^1.3.3" ,
1514 "commander" : " ^2.20" ,
16- "eslint" : " ^5.16.0 " ,
17- "eslint-plugin-mocha" : " ^5 .3.0 " ,
15+ "eslint" : " 6.8.x " ,
16+ "eslint-plugin-mocha" : " 6 .3.x " ,
1817 "esm" : " ^3.2.22" ,
1918 "fuzzer" : " ^0.2.1" ,
2019 "gh-pages" : " ^2.0.1" ,
You can’t perform that action at this time.
0 commit comments