isomorphic-git 1.15.1 → 1.15.2
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/browser-tests.json +3 -3
- package/index.cjs +13 -6
- package/index.js +13 -6
- package/index.umd.min.js +1 -1
- package/index.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/size_report.html +1 -1
package/browser-tests.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
[
|
|
2
2
|
"HeadlessChrome 0.0.0 (Linux 0.0.0)",
|
|
3
|
-
"Firefox
|
|
3
|
+
"Firefox 98.0.0 (Ubuntu 0.0.0)",
|
|
4
|
+
"Chrome Mobile 96.0.4664 (Android 0.0.0)",
|
|
4
5
|
"Chrome 79.0.3945 (Windows 10 0.0.0)",
|
|
5
6
|
"Mobile Safari 13.0.0 (iOS 13.0.0)",
|
|
6
|
-
"Safari 13.1.0 (Mac OS X 10.15.4)"
|
|
7
|
-
"Chrome Mobile 96.0.4664 (Android 0.0.0)"
|
|
7
|
+
"Safari 13.1.0 (Mac OS X 10.15.4)"
|
|
8
8
|
]
|
package/index.cjs
CHANGED
|
@@ -6918,8 +6918,8 @@ function filterCapabilities(server, client) {
|
|
|
6918
6918
|
|
|
6919
6919
|
const pkg = {
|
|
6920
6920
|
name: 'isomorphic-git',
|
|
6921
|
-
version: '1.15.
|
|
6922
|
-
agent: 'git/isomorphic-git@1.15.
|
|
6921
|
+
version: '1.15.2',
|
|
6922
|
+
agent: 'git/isomorphic-git@1.15.2',
|
|
6923
6923
|
};
|
|
6924
6924
|
|
|
6925
6925
|
class FIFO {
|
|
@@ -13566,15 +13566,22 @@ async function updateIndex({
|
|
|
13566
13566
|
fileStats = await fs.lstat(join(dir, filepath));
|
|
13567
13567
|
|
|
13568
13568
|
if (fileStats) {
|
|
13569
|
+
if (fileStats.isDirectory()) {
|
|
13570
|
+
// Removing directories should not work
|
|
13571
|
+
throw new InvalidFilepathError('directory')
|
|
13572
|
+
}
|
|
13573
|
+
|
|
13569
13574
|
// Do nothing if we don't force and the file still exists in the workdir
|
|
13570
13575
|
return
|
|
13571
13576
|
}
|
|
13572
13577
|
}
|
|
13573
13578
|
|
|
13574
|
-
//
|
|
13575
|
-
index.
|
|
13576
|
-
|
|
13577
|
-
|
|
13579
|
+
// Directories are not allowed, so we make sure the provided filepath exists in the index
|
|
13580
|
+
if (index.has({ filepath })) {
|
|
13581
|
+
index.delete({
|
|
13582
|
+
filepath,
|
|
13583
|
+
});
|
|
13584
|
+
}
|
|
13578
13585
|
}
|
|
13579
13586
|
)
|
|
13580
13587
|
}
|
package/index.js
CHANGED
|
@@ -6912,8 +6912,8 @@ function filterCapabilities(server, client) {
|
|
|
6912
6912
|
|
|
6913
6913
|
const pkg = {
|
|
6914
6914
|
name: 'isomorphic-git',
|
|
6915
|
-
version: '1.15.
|
|
6916
|
-
agent: 'git/isomorphic-git@1.15.
|
|
6915
|
+
version: '1.15.2',
|
|
6916
|
+
agent: 'git/isomorphic-git@1.15.2',
|
|
6917
6917
|
};
|
|
6918
6918
|
|
|
6919
6919
|
class FIFO {
|
|
@@ -13560,15 +13560,22 @@ async function updateIndex({
|
|
|
13560
13560
|
fileStats = await fs.lstat(join(dir, filepath));
|
|
13561
13561
|
|
|
13562
13562
|
if (fileStats) {
|
|
13563
|
+
if (fileStats.isDirectory()) {
|
|
13564
|
+
// Removing directories should not work
|
|
13565
|
+
throw new InvalidFilepathError('directory')
|
|
13566
|
+
}
|
|
13567
|
+
|
|
13563
13568
|
// Do nothing if we don't force and the file still exists in the workdir
|
|
13564
13569
|
return
|
|
13565
13570
|
}
|
|
13566
13571
|
}
|
|
13567
13572
|
|
|
13568
|
-
//
|
|
13569
|
-
index.
|
|
13570
|
-
|
|
13571
|
-
|
|
13573
|
+
// Directories are not allowed, so we make sure the provided filepath exists in the index
|
|
13574
|
+
if (index.has({ filepath })) {
|
|
13575
|
+
index.delete({
|
|
13576
|
+
filepath,
|
|
13577
|
+
});
|
|
13578
|
+
}
|
|
13572
13579
|
}
|
|
13573
13580
|
)
|
|
13574
13581
|
}
|