isomorphic-git 1.38.10 → 1.40.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 +83 -3
- package/index.d.cts +78 -58
- package/index.d.ts +78 -58
- package/index.js +83 -3
- package/index.umd.min.d.ts +78 -58
- package/index.umd.min.js +1 -1
- package/index.umd.min.js.map +1 -1
- package/managers/index.cjs +11 -0
- package/managers/index.d.cts +4 -0
- package/managers/index.d.ts +4 -0
- package/managers/index.js +11 -0
- package/package.json +1 -1
package/managers/index.cjs
CHANGED
|
@@ -63,6 +63,7 @@ var crypto$1 = require('crypto');
|
|
|
63
63
|
* @property {string} message Commit message
|
|
64
64
|
* @property {string} tree SHA-1 object id of corresponding file tree
|
|
65
65
|
* @property {string[]} parent an array of zero or more SHA-1 object ids
|
|
66
|
+
* @property {Array.<Array.<string|null>>} [changes] Changed files as `[newOid, oldOid, filepath]`; present when `log` is called with `includeChanges: true`.
|
|
66
67
|
* @property {Object} author
|
|
67
68
|
* @property {string} author.name The author's name
|
|
68
69
|
* @property {string} author.email The author's email
|
|
@@ -5133,6 +5134,16 @@ class CommitNotFetchedError extends BaseError {
|
|
|
5133
5134
|
/** @type {'CommitNotFetchedError'} */
|
|
5134
5135
|
CommitNotFetchedError.code = 'CommitNotFetchedError';
|
|
5135
5136
|
|
|
5137
|
+
class EmptyCommitError extends BaseError {
|
|
5138
|
+
constructor() {
|
|
5139
|
+
super('Cannot create an empty commit when disallowEmpty is true.');
|
|
5140
|
+
this.code = this.name = EmptyCommitError.code;
|
|
5141
|
+
this.data = {};
|
|
5142
|
+
}
|
|
5143
|
+
}
|
|
5144
|
+
/** @type {'EmptyCommitError'} */
|
|
5145
|
+
EmptyCommitError.code = 'EmptyCommitError';
|
|
5146
|
+
|
|
5136
5147
|
class FastForwardError extends BaseError {
|
|
5137
5148
|
constructor() {
|
|
5138
5149
|
super(`A simple fast-forward merge was not possible.`);
|
package/managers/index.d.cts
CHANGED
|
@@ -103,6 +103,10 @@ export type CommitObject = {
|
|
|
103
103
|
* an array of zero or more SHA-1 object ids
|
|
104
104
|
*/
|
|
105
105
|
parent: string[];
|
|
106
|
+
/**
|
|
107
|
+
* Changed files as `[newOid, oldOid, filepath]`; present when `log` is called with `includeChanges: true`.
|
|
108
|
+
*/
|
|
109
|
+
changes?: (string | null)[][] | undefined;
|
|
106
110
|
author: {
|
|
107
111
|
name: string;
|
|
108
112
|
email: string;
|
package/managers/index.d.ts
CHANGED
|
@@ -102,6 +102,10 @@ export type CommitObject = {
|
|
|
102
102
|
* an array of zero or more SHA-1 object ids
|
|
103
103
|
*/
|
|
104
104
|
parent: string[];
|
|
105
|
+
/**
|
|
106
|
+
* Changed files as `[newOid, oldOid, filepath]`; present when `log` is called with `includeChanges: true`.
|
|
107
|
+
*/
|
|
108
|
+
changes?: (string | null)[][] | undefined;
|
|
105
109
|
author: {
|
|
106
110
|
name: string;
|
|
107
111
|
email: string;
|
package/managers/index.js
CHANGED
|
@@ -56,6 +56,7 @@ import pako from 'pako';
|
|
|
56
56
|
* @property {string} message Commit message
|
|
57
57
|
* @property {string} tree SHA-1 object id of corresponding file tree
|
|
58
58
|
* @property {string[]} parent an array of zero or more SHA-1 object ids
|
|
59
|
+
* @property {Array.<Array.<string|null>>} [changes] Changed files as `[newOid, oldOid, filepath]`; present when `log` is called with `includeChanges: true`.
|
|
59
60
|
* @property {Object} author
|
|
60
61
|
* @property {string} author.name The author's name
|
|
61
62
|
* @property {string} author.email The author's email
|
|
@@ -5120,6 +5121,16 @@ class CommitNotFetchedError extends BaseError {
|
|
|
5120
5121
|
/** @type {'CommitNotFetchedError'} */
|
|
5121
5122
|
CommitNotFetchedError.code = 'CommitNotFetchedError';
|
|
5122
5123
|
|
|
5124
|
+
class EmptyCommitError extends BaseError {
|
|
5125
|
+
constructor() {
|
|
5126
|
+
super('Cannot create an empty commit when disallowEmpty is true.');
|
|
5127
|
+
this.code = this.name = EmptyCommitError.code;
|
|
5128
|
+
this.data = {};
|
|
5129
|
+
}
|
|
5130
|
+
}
|
|
5131
|
+
/** @type {'EmptyCommitError'} */
|
|
5132
|
+
EmptyCommitError.code = 'EmptyCommitError';
|
|
5133
|
+
|
|
5123
5134
|
class FastForwardError extends BaseError {
|
|
5124
5135
|
constructor() {
|
|
5125
5136
|
super(`A simple fast-forward merge was not possible.`);
|