isomorphic-git 1.24.2 โ 1.24.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/browser-tests.json +8 -4
- package/index.cjs +23 -4
- package/index.js +23 -4
- package/index.umd.min.js +2 -2
- package/index.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/size_report.html +1 -1
package/README.md
CHANGED
|
@@ -298,7 +298,7 @@ Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds
|
|
|
298
298
|
<td align="center"><a href="https://daniel-ruf.de"><img src="https://avatars1.githubusercontent.com/u/827205?v=4&s=60?s=60" width="60px;" alt=""/><br /><sub><b>Daniel Ruf</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=DanielRuf" title="Code">๐ป</a></td>
|
|
299
299
|
<td align="center"><a href="http://blog.bokuweb.me/"><img src="https://avatars0.githubusercontent.com/u/10220449?v=4&s=60?s=60" width="60px;" alt=""/><br /><sub><b>bokuweb</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=bokuweb" title="Code">๐ป</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=bokuweb" title="Documentation">๐</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=bokuweb" title="Tests">โ ๏ธ</a></td>
|
|
300
300
|
<td align="center"><a href="https://github.com/hirokiosame"><img src="https://avatars0.githubusercontent.com/u/1075694?v=4&s=60?s=60" width="60px;" alt=""/><br /><sub><b>Hiroki Osame</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=hirokiosame" title="Code">๐ป</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=hirokiosame" title="Documentation">๐</a></td>
|
|
301
|
-
<td align="center"><a href="
|
|
301
|
+
<td align="center"><a href="http://jcubic.pl/me"><img src="https://avatars1.githubusercontent.com/u/280241?v=4&s=60?s=60" width="60px;" alt=""/><br /><sub><b>Jakub Jankiewicz</b></sub></a><br /><a href="#question-jcubic" title="Answering Questions">๐ฌ</a> <a href="https://github.com/isomorphic-git/isomorphic-git/issues?q=author%3Ajcubic" title="Bug reports">๐</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=jcubic" title="Code">๐ป</a> <a href="#example-jcubic" title="Examples">๐ก</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=jcubic" title="Tests">โ ๏ธ</a></td>
|
|
302
302
|
</tr>
|
|
303
303
|
<tr>
|
|
304
304
|
<td align="center"><a href="https://github.com/howardgod"><img src="https://avatars1.githubusercontent.com/u/10459637?v=4&s=60?s=60" width="60px;" alt=""/><br /><sub><b>howardgod</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/issues?q=author%3Ahowardgod" title="Bug reports">๐</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=howardgod" title="Code">๐ป</a></td>
|
|
@@ -361,6 +361,7 @@ Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds
|
|
|
361
361
|
<td align="center"><a href="https://gitlab.com/CoalZombik/"><img src="https://avatars.githubusercontent.com/u/49895741?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Lukรกลก Cezner</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/issues?q=author%3ACoalZombik" title="Bug reports">๐</a></td>
|
|
362
362
|
<td align="center"><a href="https://github.com/dead-end"><img src="https://avatars.githubusercontent.com/u/30635084?v=4?s=60" width="60px;" alt=""/><br /><sub><b>dead-end</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=dead-end" title="Code">๐ป</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=dead-end" title="Documentation">๐</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=dead-end" title="Tests">โ ๏ธ</a></td>
|
|
363
363
|
<td align="center"><a href="https://github.com/barry963"><img src="https://avatars.githubusercontent.com/u/5289896?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Barry</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=barry963" title="Code">๐ป</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=barry963" title="Documentation">๐</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=barry963" title="Tests">โ ๏ธ</a></td>
|
|
364
|
+
<td align="center"><a href="https://stackoverflow.com/users/1493081/alireza-mirian"><img src="https://avatars.githubusercontent.com/u/3150694?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Alireza Mirian</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=alirezamirian" title="Code">๐ป</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=alirezamirian" title="Documentation">๐</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=alirezamirian" title="Tests">โ ๏ธ</a> <a href="https://github.com/isomorphic-git/isomorphic-git/issues?q=author%3Aalirezamirian" title="Bug reports">๐</a></td>
|
|
364
365
|
</tr>
|
|
365
366
|
</table>
|
|
366
367
|
|
package/browser-tests.json
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
[
|
|
2
2
|
"Chrome Headless 79.0.3945.0 (Linux x86_64)",
|
|
3
|
-
"Firefox
|
|
4
|
-
"Chrome
|
|
5
|
-
"Edge 79.0.309.65 (Windows 10)",
|
|
3
|
+
"Firefox 115.0 (Ubuntu 0.0.0)",
|
|
4
|
+
"X Chrome 114.0.0.0 (Android 10)",
|
|
6
5
|
"Safari 13.1 (Mac OS 10.15.4)",
|
|
7
|
-
"Mobile Safari 13.0 (iOS 13.0)"
|
|
6
|
+
"Mobile Safari 13.0 (iOS 13.0)",
|
|
7
|
+
"Edge 79.0.309.65 (Windows 10)",
|
|
8
|
+
"Chrome Headless 79.0.3945.0 (Linux x86_64)",
|
|
9
|
+
"X Chrome 114.0.0.0 (Android 10)",
|
|
10
|
+
"Chrome Headless 79.0.3945.0 (Linux x86_64)",
|
|
11
|
+
"Chrome 114.0.0.0 (Android 10)"
|
|
8
12
|
]
|
package/index.cjs
CHANGED
|
@@ -4400,6 +4400,18 @@ async function rmRecursive(fs, filepath) {
|
|
|
4400
4400
|
}
|
|
4401
4401
|
}
|
|
4402
4402
|
|
|
4403
|
+
function isPromiseLike(obj) {
|
|
4404
|
+
return isObject(obj) && isFunction(obj.then) && isFunction(obj.catch)
|
|
4405
|
+
}
|
|
4406
|
+
|
|
4407
|
+
function isObject(obj) {
|
|
4408
|
+
return obj && typeof obj === 'object'
|
|
4409
|
+
}
|
|
4410
|
+
|
|
4411
|
+
function isFunction(obj) {
|
|
4412
|
+
return typeof obj === 'function'
|
|
4413
|
+
}
|
|
4414
|
+
|
|
4403
4415
|
function isPromiseFs(fs) {
|
|
4404
4416
|
const test = targetFs => {
|
|
4405
4417
|
try {
|
|
@@ -4410,7 +4422,7 @@ function isPromiseFs(fs) {
|
|
|
4410
4422
|
return e
|
|
4411
4423
|
}
|
|
4412
4424
|
};
|
|
4413
|
-
return test(fs)
|
|
4425
|
+
return isPromiseLike(test(fs))
|
|
4414
4426
|
}
|
|
4415
4427
|
|
|
4416
4428
|
// List of commands all filesystems are expected to provide. `rm` is not
|
|
@@ -7301,8 +7313,8 @@ function filterCapabilities(server, client) {
|
|
|
7301
7313
|
|
|
7302
7314
|
const pkg = {
|
|
7303
7315
|
name: 'isomorphic-git',
|
|
7304
|
-
version: '1.24.
|
|
7305
|
-
agent: 'git/isomorphic-git@1.24.
|
|
7316
|
+
version: '1.24.4',
|
|
7317
|
+
agent: 'git/isomorphic-git@1.24.4',
|
|
7306
7318
|
};
|
|
7307
7319
|
|
|
7308
7320
|
class FIFO {
|
|
@@ -13225,7 +13237,14 @@ async function _renameBranch({
|
|
|
13225
13237
|
await GitRefManager.writeRef({ fs, gitdir, ref: fullnewref, value });
|
|
13226
13238
|
await GitRefManager.deleteRef({ fs, gitdir, ref: fulloldref });
|
|
13227
13239
|
|
|
13228
|
-
|
|
13240
|
+
const fullCurrentBranchRef = await _currentBranch({
|
|
13241
|
+
fs,
|
|
13242
|
+
gitdir,
|
|
13243
|
+
fullname: true,
|
|
13244
|
+
});
|
|
13245
|
+
const isCurrentBranch = fullCurrentBranchRef === fulloldref;
|
|
13246
|
+
|
|
13247
|
+
if (checkout || isCurrentBranch) {
|
|
13229
13248
|
// Update HEAD
|
|
13230
13249
|
await GitRefManager.writeSymbolicRef({
|
|
13231
13250
|
fs,
|
package/index.js
CHANGED
|
@@ -4394,6 +4394,18 @@ async function rmRecursive(fs, filepath) {
|
|
|
4394
4394
|
}
|
|
4395
4395
|
}
|
|
4396
4396
|
|
|
4397
|
+
function isPromiseLike(obj) {
|
|
4398
|
+
return isObject(obj) && isFunction(obj.then) && isFunction(obj.catch)
|
|
4399
|
+
}
|
|
4400
|
+
|
|
4401
|
+
function isObject(obj) {
|
|
4402
|
+
return obj && typeof obj === 'object'
|
|
4403
|
+
}
|
|
4404
|
+
|
|
4405
|
+
function isFunction(obj) {
|
|
4406
|
+
return typeof obj === 'function'
|
|
4407
|
+
}
|
|
4408
|
+
|
|
4397
4409
|
function isPromiseFs(fs) {
|
|
4398
4410
|
const test = targetFs => {
|
|
4399
4411
|
try {
|
|
@@ -4404,7 +4416,7 @@ function isPromiseFs(fs) {
|
|
|
4404
4416
|
return e
|
|
4405
4417
|
}
|
|
4406
4418
|
};
|
|
4407
|
-
return test(fs)
|
|
4419
|
+
return isPromiseLike(test(fs))
|
|
4408
4420
|
}
|
|
4409
4421
|
|
|
4410
4422
|
// List of commands all filesystems are expected to provide. `rm` is not
|
|
@@ -7295,8 +7307,8 @@ function filterCapabilities(server, client) {
|
|
|
7295
7307
|
|
|
7296
7308
|
const pkg = {
|
|
7297
7309
|
name: 'isomorphic-git',
|
|
7298
|
-
version: '1.24.
|
|
7299
|
-
agent: 'git/isomorphic-git@1.24.
|
|
7310
|
+
version: '1.24.4',
|
|
7311
|
+
agent: 'git/isomorphic-git@1.24.4',
|
|
7300
7312
|
};
|
|
7301
7313
|
|
|
7302
7314
|
class FIFO {
|
|
@@ -13219,7 +13231,14 @@ async function _renameBranch({
|
|
|
13219
13231
|
await GitRefManager.writeRef({ fs, gitdir, ref: fullnewref, value });
|
|
13220
13232
|
await GitRefManager.deleteRef({ fs, gitdir, ref: fulloldref });
|
|
13221
13233
|
|
|
13222
|
-
|
|
13234
|
+
const fullCurrentBranchRef = await _currentBranch({
|
|
13235
|
+
fs,
|
|
13236
|
+
gitdir,
|
|
13237
|
+
fullname: true,
|
|
13238
|
+
});
|
|
13239
|
+
const isCurrentBranch = fullCurrentBranchRef === fulloldref;
|
|
13240
|
+
|
|
13241
|
+
if (checkout || isCurrentBranch) {
|
|
13223
13242
|
// Update HEAD
|
|
13224
13243
|
await GitRefManager.writeSymbolicRef({
|
|
13225
13244
|
fs,
|