File tree 4 files changed +7
-9
lines changed
4 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 1
1
// not an airtight indicator, but a good gut-check to even bother trying
2
- const { promisify } = require ( 'util' )
3
- const fs = require ( 'fs' )
4
- const stat = promisify ( fs . stat )
2
+ const { stat } = require ( 'fs/promises' )
5
3
module . exports = ( { cwd = process . cwd ( ) } = { } ) =>
6
4
stat ( cwd + '/.git' ) . then ( ( ) => true , ( ) => false )
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @npmcli/git" ,
3
- "version" : " 5.0.4 " ,
3
+ "version" : " 5.0.5 " ,
4
4
"main" : " lib/index.js" ,
5
5
"files" : [
6
6
" bin/" ,
Original file line number Diff line number Diff line change 168
168
"devDependencies": {
169
169
"@npmcli/docs": "^1.0.0",
170
170
"@npmcli/eslint-config": "^4.0.2",
171
- "@npmcli/git": "^5.0.4 ",
171
+ "@npmcli/git": "^5.0.5 ",
172
172
"@npmcli/mock-globals": "^1.0.0",
173
173
"@npmcli/mock-registry": "^1.0.0",
174
174
"@npmcli/template-oss": "4.21.3",
1762
1762
}
1763
1763
},
1764
1764
"node_modules/@npmcli/git": {
1765
- "version": "5.0.4 ",
1766
- "resolved": "https://registry.npmjs.org/@npmcli/git/-/git-5.0.4 .tgz",
1767
- "integrity": "sha512-nr6/WezNzuYUppzXRaYu/W4aT5rLxdXqEFupbh6e/ovlYFQ8hpu1UUPV3Ir/YTl+74iXl2ZOMlGzudh9ZPUchQ ==",
1765
+ "version": "5.0.5 ",
1766
+ "resolved": "https://registry.npmjs.org/@npmcli/git/-/git-5.0.5 .tgz",
1767
+ "integrity": "sha512-x8hXItC8OFOwdgERzRIxg0ic1lQqW6kSZFFQtZTCNYOeGb9UqzVcod02TYljI9UBl4RtfcyQ0A7ygmcGFvEqWw ==",
1768
1768
"inBundle": true,
1769
1769
"dependencies": {
1770
1770
"@npmcli/promise-spawn": "^7.0.0",
Original file line number Diff line number Diff line change 199
199
"devDependencies" : {
200
200
"@npmcli/docs" : " ^1.0.0" ,
201
201
"@npmcli/eslint-config" : " ^4.0.2" ,
202
- "@npmcli/git" : " ^5.0.4 " ,
202
+ "@npmcli/git" : " ^5.0.5 " ,
203
203
"@npmcli/mock-globals" : " ^1.0.0" ,
204
204
"@npmcli/mock-registry" : " ^1.0.0" ,
205
205
"@npmcli/template-oss" : " 4.21.3" ,
You can’t perform that action at this time.
0 commit comments