isomorphic-git 1.10.3 → 1.10.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.
@@ -1,8 +1,8 @@
1
1
  [
2
2
  "HeadlessChrome 0.0.0 (Linux 0.0.0)",
3
3
  "Firefox 95.0.0 (Ubuntu 0.0.0)",
4
- "Chrome Mobile 94.0.4606 (Android 0.0.0)",
5
4
  "Chrome 79.0.3945 (Windows 10 0.0.0)",
5
+ "Chrome Mobile 94.0.4606 (Android 0.0.0)",
6
6
  "Safari 13.1.0 (Mac OS X 10.15.4)",
7
7
  "Mobile Safari 13.0.0 (iOS 13.0.0)"
8
8
  ]
package/index.cjs CHANGED
@@ -4042,7 +4042,7 @@ class GitIgnoreManager {
4042
4042
  filepath,
4043
4043
  },
4044
4044
  ];
4045
- const pieces = filepath.split('/');
4045
+ const pieces = filepath.split('/').filter(Boolean);
4046
4046
  for (let i = 1; i < pieces.length; i++) {
4047
4047
  const folder = pieces.slice(0, i).join('/');
4048
4048
  const file = pieces.slice(i).join('/');
@@ -6865,8 +6865,8 @@ function filterCapabilities(server, client) {
6865
6865
 
6866
6866
  const pkg = {
6867
6867
  name: 'isomorphic-git',
6868
- version: '1.10.3',
6869
- agent: 'git/isomorphic-git@1.10.3',
6868
+ version: '1.10.4',
6869
+ agent: 'git/isomorphic-git@1.10.4',
6870
6870
  };
6871
6871
 
6872
6872
  class FIFO {
package/index.js CHANGED
@@ -4036,7 +4036,7 @@ class GitIgnoreManager {
4036
4036
  filepath,
4037
4037
  },
4038
4038
  ];
4039
- const pieces = filepath.split('/');
4039
+ const pieces = filepath.split('/').filter(Boolean);
4040
4040
  for (let i = 1; i < pieces.length; i++) {
4041
4041
  const folder = pieces.slice(0, i).join('/');
4042
4042
  const file = pieces.slice(i).join('/');
@@ -6859,8 +6859,8 @@ function filterCapabilities(server, client) {
6859
6859
 
6860
6860
  const pkg = {
6861
6861
  name: 'isomorphic-git',
6862
- version: '1.10.3',
6863
- agent: 'git/isomorphic-git@1.10.3',
6862
+ version: '1.10.4',
6863
+ agent: 'git/isomorphic-git@1.10.4',
6864
6864
  };
6865
6865
 
6866
6866
  class FIFO {