isomorphic-git 1.38.10 → 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 +29 -2
- package/index.d.cts +70 -57
- package/index.d.ts +70 -57
- package/index.js +29 -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 +10 -0
- package/managers/index.js +10 -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.`);
|
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.`);
|