isomorphic-git 1.36.0 → 1.36.1
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 -0
- package/index.cjs +6 -4
- package/index.js +6 -4
- package/index.umd.min.js +1 -1
- package/index.umd.min.js.map +1 -1
- package/models/index.cjs +4 -2
- package/models/index.js +4 -2
- package/models/index.umd.min.js +1 -1
- package/models/index.umd.min.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -248,6 +248,8 @@ npm install
|
|
|
248
248
|
npm test
|
|
249
249
|
```
|
|
250
250
|
|
|
251
|
+
The new relase happen automatically after every PR merge. We use [sematic release](https://github.com/semantic-release/semantic-release).
|
|
252
|
+
|
|
251
253
|
Check out the [`CONTRIBUTING`](./CONTRIBUTING.md) document for more instructions.
|
|
252
254
|
|
|
253
255
|
## Who is using isomorphic-git?
|
package/index.cjs
CHANGED
|
@@ -4829,8 +4829,8 @@ function isPromiseFs(fs) {
|
|
|
4829
4829
|
|
|
4830
4830
|
// List of commands all filesystems are expected to provide. `rm` is not
|
|
4831
4831
|
// included since it may not exist and must be handled as a special case
|
|
4832
|
+
// Likewise with `cp`.
|
|
4832
4833
|
const commands = [
|
|
4833
|
-
'cp',
|
|
4834
4834
|
'readFile',
|
|
4835
4835
|
'writeFile',
|
|
4836
4836
|
'mkdir',
|
|
@@ -4854,12 +4854,14 @@ function bindFs(target, fs) {
|
|
|
4854
4854
|
}
|
|
4855
4855
|
}
|
|
4856
4856
|
|
|
4857
|
-
// Handle the special
|
|
4857
|
+
// Handle the special cases of `rm` and `cp`
|
|
4858
4858
|
if (isPromiseFs(fs)) {
|
|
4859
|
+
if (fs.cp) target._cp = fs.cp.bind(fs);
|
|
4859
4860
|
if (fs.rm) target._rm = fs.rm.bind(fs);
|
|
4860
4861
|
else if (fs.rmdir.length > 1) target._rm = fs.rmdir.bind(fs);
|
|
4861
4862
|
else target._rm = rmRecursive.bind(null, target);
|
|
4862
4863
|
} else {
|
|
4864
|
+
if (fs.cp) target._cp = pify(fs.cp.bind(fs));
|
|
4863
4865
|
if (fs.rm) target._rm = pify(fs.rm.bind(fs));
|
|
4864
4866
|
else if (fs.rmdir.length > 2) target._rm = pify(fs.rmdir.bind(fs));
|
|
4865
4867
|
else target._rm = rmRecursive.bind(null, target);
|
|
@@ -8254,8 +8256,8 @@ function filterCapabilities(server, client) {
|
|
|
8254
8256
|
|
|
8255
8257
|
const pkg = {
|
|
8256
8258
|
name: 'isomorphic-git',
|
|
8257
|
-
version: '1.36.
|
|
8258
|
-
agent: 'git/isomorphic-git@1.36.
|
|
8259
|
+
version: '1.36.1',
|
|
8260
|
+
agent: 'git/isomorphic-git@1.36.1',
|
|
8259
8261
|
};
|
|
8260
8262
|
|
|
8261
8263
|
class FIFO {
|
package/index.js
CHANGED
|
@@ -4823,8 +4823,8 @@ function isPromiseFs(fs) {
|
|
|
4823
4823
|
|
|
4824
4824
|
// List of commands all filesystems are expected to provide. `rm` is not
|
|
4825
4825
|
// included since it may not exist and must be handled as a special case
|
|
4826
|
+
// Likewise with `cp`.
|
|
4826
4827
|
const commands = [
|
|
4827
|
-
'cp',
|
|
4828
4828
|
'readFile',
|
|
4829
4829
|
'writeFile',
|
|
4830
4830
|
'mkdir',
|
|
@@ -4848,12 +4848,14 @@ function bindFs(target, fs) {
|
|
|
4848
4848
|
}
|
|
4849
4849
|
}
|
|
4850
4850
|
|
|
4851
|
-
// Handle the special
|
|
4851
|
+
// Handle the special cases of `rm` and `cp`
|
|
4852
4852
|
if (isPromiseFs(fs)) {
|
|
4853
|
+
if (fs.cp) target._cp = fs.cp.bind(fs);
|
|
4853
4854
|
if (fs.rm) target._rm = fs.rm.bind(fs);
|
|
4854
4855
|
else if (fs.rmdir.length > 1) target._rm = fs.rmdir.bind(fs);
|
|
4855
4856
|
else target._rm = rmRecursive.bind(null, target);
|
|
4856
4857
|
} else {
|
|
4858
|
+
if (fs.cp) target._cp = pify(fs.cp.bind(fs));
|
|
4857
4859
|
if (fs.rm) target._rm = pify(fs.rm.bind(fs));
|
|
4858
4860
|
else if (fs.rmdir.length > 2) target._rm = pify(fs.rmdir.bind(fs));
|
|
4859
4861
|
else target._rm = rmRecursive.bind(null, target);
|
|
@@ -8248,8 +8250,8 @@ function filterCapabilities(server, client) {
|
|
|
8248
8250
|
|
|
8249
8251
|
const pkg = {
|
|
8250
8252
|
name: 'isomorphic-git',
|
|
8251
|
-
version: '1.36.
|
|
8252
|
-
agent: 'git/isomorphic-git@1.36.
|
|
8253
|
+
version: '1.36.1',
|
|
8254
|
+
agent: 'git/isomorphic-git@1.36.1',
|
|
8253
8255
|
};
|
|
8254
8256
|
|
|
8255
8257
|
class FIFO {
|