isomorphic-git 1.41.8 → 1.41.9
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/index.cjs +12 -6
- package/index.js +12 -6
- package/index.umd.min.js +1 -1
- package/index.umd.min.js.map +1 -1
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -7123,11 +7123,17 @@ const worthWalking = (filepath, root) => {
|
|
|
7123
7123
|
if (filepath === '.' || root == null || root.length === 0 || root === '.') {
|
|
7124
7124
|
return true
|
|
7125
7125
|
}
|
|
7126
|
-
|
|
7127
|
-
|
|
7128
|
-
|
|
7129
|
-
|
|
7126
|
+
// A shared prefix only counts when it lands on a path component boundary,
|
|
7127
|
+
// otherwise the root 'src' would also pull in 'src2/a.js' and 'srcfoo.txt'.
|
|
7128
|
+
const base = root.endsWith('/') ? root.slice(0, -1) : root;
|
|
7129
|
+
if (base === '.') {
|
|
7130
|
+
return true
|
|
7131
|
+
}
|
|
7132
|
+
if (base.length >= filepath.length) {
|
|
7133
|
+
// Keep walking while filepath is still an ancestor of the wanted root.
|
|
7134
|
+
return base === filepath || base.startsWith(`${filepath}/`)
|
|
7130
7135
|
}
|
|
7136
|
+
return filepath.startsWith(`${base}/`)
|
|
7131
7137
|
};
|
|
7132
7138
|
|
|
7133
7139
|
// @ts-check
|
|
@@ -9767,8 +9773,8 @@ function filterCapabilities(server, client) {
|
|
|
9767
9773
|
|
|
9768
9774
|
const pkg = {
|
|
9769
9775
|
name: 'isomorphic-git',
|
|
9770
|
-
version: '1.41.
|
|
9771
|
-
agent: 'git/isomorphic-git@1.41.
|
|
9776
|
+
version: '1.41.9',
|
|
9777
|
+
agent: 'git/isomorphic-git@1.41.9',
|
|
9772
9778
|
};
|
|
9773
9779
|
|
|
9774
9780
|
class FIFO {
|
package/index.js
CHANGED
|
@@ -7110,11 +7110,17 @@ const worthWalking = (filepath, root) => {
|
|
|
7110
7110
|
if (filepath === '.' || root == null || root.length === 0 || root === '.') {
|
|
7111
7111
|
return true
|
|
7112
7112
|
}
|
|
7113
|
-
|
|
7114
|
-
|
|
7115
|
-
|
|
7116
|
-
|
|
7113
|
+
// A shared prefix only counts when it lands on a path component boundary,
|
|
7114
|
+
// otherwise the root 'src' would also pull in 'src2/a.js' and 'srcfoo.txt'.
|
|
7115
|
+
const base = root.endsWith('/') ? root.slice(0, -1) : root;
|
|
7116
|
+
if (base === '.') {
|
|
7117
|
+
return true
|
|
7118
|
+
}
|
|
7119
|
+
if (base.length >= filepath.length) {
|
|
7120
|
+
// Keep walking while filepath is still an ancestor of the wanted root.
|
|
7121
|
+
return base === filepath || base.startsWith(`${filepath}/`)
|
|
7117
7122
|
}
|
|
7123
|
+
return filepath.startsWith(`${base}/`)
|
|
7118
7124
|
};
|
|
7119
7125
|
|
|
7120
7126
|
// @ts-check
|
|
@@ -9754,8 +9760,8 @@ function filterCapabilities(server, client) {
|
|
|
9754
9760
|
|
|
9755
9761
|
const pkg = {
|
|
9756
9762
|
name: 'isomorphic-git',
|
|
9757
|
-
version: '1.41.
|
|
9758
|
-
agent: 'git/isomorphic-git@1.41.
|
|
9763
|
+
version: '1.41.9',
|
|
9764
|
+
agent: 'git/isomorphic-git@1.41.9',
|
|
9759
9765
|
};
|
|
9760
9766
|
|
|
9761
9767
|
class FIFO {
|