isomorphic-git 1.38.9 → 1.39.0
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 +30 -2
- package/index.d.cts +70 -57
- package/index.d.ts +70 -57
- package/index.js +30 -2
- package/index.umd.min.d.ts +70 -57
- package/index.umd.min.js +1 -1
- package/index.umd.min.js.map +1 -1
- package/managers/index.cjs +11 -0
- package/managers/index.js +11 -0
- package/package.json +1 -1
package/managers/index.cjs
CHANGED
|
@@ -5133,6 +5133,16 @@ class CommitNotFetchedError extends BaseError {
|
|
|
5133
5133
|
/** @type {'CommitNotFetchedError'} */
|
|
5134
5134
|
CommitNotFetchedError.code = 'CommitNotFetchedError';
|
|
5135
5135
|
|
|
5136
|
+
class EmptyCommitError extends BaseError {
|
|
5137
|
+
constructor() {
|
|
5138
|
+
super('Cannot create an empty commit when disallowEmpty is true.');
|
|
5139
|
+
this.code = this.name = EmptyCommitError.code;
|
|
5140
|
+
this.data = {};
|
|
5141
|
+
}
|
|
5142
|
+
}
|
|
5143
|
+
/** @type {'EmptyCommitError'} */
|
|
5144
|
+
EmptyCommitError.code = 'EmptyCommitError';
|
|
5145
|
+
|
|
5136
5146
|
class FastForwardError extends BaseError {
|
|
5137
5147
|
constructor() {
|
|
5138
5148
|
super(`A simple fast-forward merge was not possible.`);
|
|
@@ -5522,6 +5532,7 @@ class GitWalkerFs {
|
|
|
5522
5532
|
}
|
|
5523
5533
|
|
|
5524
5534
|
async readdir(entry) {
|
|
5535
|
+
if ((await entry.type()) !== 'tree') return null
|
|
5525
5536
|
const filepath = entry._fullpath;
|
|
5526
5537
|
const { fs, dir } = this;
|
|
5527
5538
|
const names = await fs.readdir(join(dir, filepath));
|
package/managers/index.js
CHANGED
|
@@ -5120,6 +5120,16 @@ class CommitNotFetchedError extends BaseError {
|
|
|
5120
5120
|
/** @type {'CommitNotFetchedError'} */
|
|
5121
5121
|
CommitNotFetchedError.code = 'CommitNotFetchedError';
|
|
5122
5122
|
|
|
5123
|
+
class EmptyCommitError extends BaseError {
|
|
5124
|
+
constructor() {
|
|
5125
|
+
super('Cannot create an empty commit when disallowEmpty is true.');
|
|
5126
|
+
this.code = this.name = EmptyCommitError.code;
|
|
5127
|
+
this.data = {};
|
|
5128
|
+
}
|
|
5129
|
+
}
|
|
5130
|
+
/** @type {'EmptyCommitError'} */
|
|
5131
|
+
EmptyCommitError.code = 'EmptyCommitError';
|
|
5132
|
+
|
|
5123
5133
|
class FastForwardError extends BaseError {
|
|
5124
5134
|
constructor() {
|
|
5125
5135
|
super(`A simple fast-forward merge was not possible.`);
|
|
@@ -5509,6 +5519,7 @@ class GitWalkerFs {
|
|
|
5509
5519
|
}
|
|
5510
5520
|
|
|
5511
5521
|
async readdir(entry) {
|
|
5522
|
+
if ((await entry.type()) !== 'tree') return null
|
|
5512
5523
|
const filepath = entry._fullpath;
|
|
5513
5524
|
const { fs, dir } = this;
|
|
5514
5525
|
const names = await fs.readdir(join(dir, filepath));
|