Merge pull request #22061 from atom/focus-trap-6.3.0

⬆️ focus-trap@6.3.0
This commit is contained in:
Musa Ibrahim 2021-04-06 07:46:11 -07:00 committed by GitHub
commit c4eb9be83d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 5 deletions

8
package-lock.json generated
View File

@ -3511,11 +3511,11 @@
"integrity": "sha512-r5wGx7YeOwNWNlCA0wQ86zKyDLMQr+/RB8xy74M4hTphfmjlijTSSXGuH8rnvKZnfT9i+75zmd8jcKdMR4O6jA=="
},
"focus-trap": {
"version": "6.1.4",
"resolved": "https://registry.npmjs.org/focus-trap/-/focus-trap-6.1.4.tgz",
"integrity": "sha512-jgNc+O8UkGsUpdhNXkyonwlw4i707+ESAWv1vCbyd8+29db5/Wv1BkJImDczfEWMu9O635FvM5ABOjeyqNQpEQ==",
"version": "6.3.0",
"resolved": "https://registry.npmjs.org/focus-trap/-/focus-trap-6.3.0.tgz",
"integrity": "sha512-BBzvFfkPg5PqrVVCdQ1YOIVNKGvqG9YNVkiAUQFuDM66N8J9uADhs6mlYKrd30ofDJIzEniBnBKM7GO45iCzKQ==",
"requires": {
"tabbable": "^5.1.3"
"tabbable": "^5.1.5"
}
},
"forever-agent": {

View File

@ -60,7 +60,7 @@
"find-and-replace": "https://www.atom.io/api/packages/find-and-replace/versions/0.219.7/tarball",
"find-parent-dir": "^0.3.0",
"first-mate": "7.4.1",
"focus-trap": "6.1.4",
"focus-trap": "6.3.0",
"fs-admin": "0.15.0",
"fs-plus": "^3.1.1",
"fstream": "1.0.12",

View File

@ -19,6 +19,7 @@ const git = (git, repositoryRootPath) => {
}
async function createOrCheckoutBranch(newBranch) {
await git.fetch();
const { branches } = await git.branch();
const found = Object.keys(branches).find(
branch => branch.indexOf(newBranch) > -1