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.
@@ -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.`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isomorphic-git",
3
- "version": "1.38.10",
3
+ "version": "1.39.0",
4
4
  "description": "A pure JavaScript reimplementation of git for node and browsers",
5
5
  "type": "module",
6
6
  "typings": "./index.d.cts",