isomorphic-git 1.15.2 → 1.17.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 +3 -0
- package/browser-tests.json +4 -3
- package/index.cjs +43 -34
- package/index.d.ts +46 -24
- package/index.js +43 -34
- package/index.umd.min.d.ts +46 -24
- package/index.umd.min.js +2 -2
- package/index.umd.min.js.map +1 -1
- package/package.json +3 -3
- package/size_report.html +1 -1
package/index.umd.min.d.ts
CHANGED
|
@@ -717,6 +717,7 @@ export var Errors: Readonly<{
|
|
|
717
717
|
MergeNotSupportedError: typeof MergeNotSupportedError;
|
|
718
718
|
MissingNameError: typeof MissingNameError;
|
|
719
719
|
MissingParameterError: typeof MissingParameterError;
|
|
720
|
+
MultipleGitError: typeof MultipleGitError;
|
|
720
721
|
NoRefspecError: typeof NoRefspecError;
|
|
721
722
|
NotFoundError: typeof NotFoundError;
|
|
722
723
|
ObjectTypeError: typeof ObjectTypeError;
|
|
@@ -754,6 +755,7 @@ export function WORKDIR(): Walker;
|
|
|
754
755
|
* @param {string} [args.gitdir=join(dir, '.git')] - [required] The [git directory](dir-vs-gitdir.md) path
|
|
755
756
|
* @param {string|string[]} args.filepath - The path to the file to add to the index
|
|
756
757
|
* @param {object} [args.cache] - a [cache](cache.md) object
|
|
758
|
+
* @param {boolean} [args.force=false] - add to index even if matches gitignore. Think `git add --force`
|
|
757
759
|
*
|
|
758
760
|
* @returns {Promise<void>} Resolves successfully once the git index has been updated
|
|
759
761
|
*
|
|
@@ -763,12 +765,13 @@ export function WORKDIR(): Walker;
|
|
|
763
765
|
* console.log('done')
|
|
764
766
|
*
|
|
765
767
|
*/
|
|
766
|
-
export function add({ fs: _fs, dir, gitdir, filepath, cache, }: {
|
|
768
|
+
export function add({ fs: _fs, dir, gitdir, filepath, cache, force, }: {
|
|
767
769
|
fs: CallbackFsClient | PromiseFsClient;
|
|
768
770
|
dir: string;
|
|
769
771
|
gitdir?: string;
|
|
770
772
|
filepath: string | string[];
|
|
771
773
|
cache?: any;
|
|
774
|
+
force?: boolean;
|
|
772
775
|
}): Promise<void>;
|
|
773
776
|
/**
|
|
774
777
|
* Add or update an object note
|
|
@@ -3069,11 +3072,12 @@ export function status({ fs: _fs, dir, gitdir, filepath, cache, }: {
|
|
|
3069
3072
|
* @param {string[]} [args.filepaths = ['.']] - Limit the query to the given files and directories
|
|
3070
3073
|
* @param {function(string): boolean} [args.filter] - Filter the results to only those whose filepath matches a function.
|
|
3071
3074
|
* @param {object} [args.cache] - a [cache](cache.md) object
|
|
3075
|
+
* @param {boolean} [args.ignored = false] - include ignored files in the result
|
|
3072
3076
|
*
|
|
3073
3077
|
* @returns {Promise<Array<StatusRow>>} Resolves with a status matrix, described below.
|
|
3074
3078
|
* @see StatusRow
|
|
3075
3079
|
*/
|
|
3076
|
-
export function statusMatrix({ fs: _fs, dir, gitdir, ref, filepaths, filter, cache, }: {
|
|
3080
|
+
export function statusMatrix({ fs: _fs, dir, gitdir, ref, filepaths, filter, cache, ignored: shouldIgnore, }: {
|
|
3077
3081
|
fs: CallbackFsClient | PromiseFsClient;
|
|
3078
3082
|
dir: string;
|
|
3079
3083
|
gitdir?: string;
|
|
@@ -3081,6 +3085,7 @@ export function statusMatrix({ fs: _fs, dir, gitdir, ref, filepaths, filter, cac
|
|
|
3081
3085
|
filepaths?: string[];
|
|
3082
3086
|
filter?: (arg0: string) => boolean;
|
|
3083
3087
|
cache?: any;
|
|
3088
|
+
ignored?: boolean;
|
|
3084
3089
|
}): Promise<[string, 0 | 1, 0 | 1 | 2, 0 | 1 | 2 | 3][]>;
|
|
3085
3090
|
/**
|
|
3086
3091
|
* Create a lightweight tag
|
|
@@ -3889,6 +3894,23 @@ declare namespace MissingParameterError {
|
|
|
3889
3894
|
const code_15: 'MissingParameterError';
|
|
3890
3895
|
export { code_15 as code };
|
|
3891
3896
|
}
|
|
3897
|
+
declare class MultipleGitError extends BaseError {
|
|
3898
|
+
/**
|
|
3899
|
+
* @param {Error[]} errors
|
|
3900
|
+
* @param {string} message
|
|
3901
|
+
*/
|
|
3902
|
+
constructor(errors: Error[]);
|
|
3903
|
+
code: "MultipleGitError";
|
|
3904
|
+
name: "MultipleGitError";
|
|
3905
|
+
data: {
|
|
3906
|
+
errors: Error[];
|
|
3907
|
+
};
|
|
3908
|
+
errors: Error[];
|
|
3909
|
+
}
|
|
3910
|
+
declare namespace MultipleGitError {
|
|
3911
|
+
const code_16: 'MultipleGitError';
|
|
3912
|
+
export { code_16 as code };
|
|
3913
|
+
}
|
|
3892
3914
|
declare class NoRefspecError extends BaseError {
|
|
3893
3915
|
/**
|
|
3894
3916
|
* @param {string} remote
|
|
@@ -3901,8 +3923,8 @@ declare class NoRefspecError extends BaseError {
|
|
|
3901
3923
|
};
|
|
3902
3924
|
}
|
|
3903
3925
|
declare namespace NoRefspecError {
|
|
3904
|
-
const
|
|
3905
|
-
export {
|
|
3926
|
+
const code_17: 'NoRefspecError';
|
|
3927
|
+
export { code_17 as code };
|
|
3906
3928
|
}
|
|
3907
3929
|
declare class NotFoundError extends BaseError {
|
|
3908
3930
|
/**
|
|
@@ -3916,8 +3938,8 @@ declare class NotFoundError extends BaseError {
|
|
|
3916
3938
|
};
|
|
3917
3939
|
}
|
|
3918
3940
|
declare namespace NotFoundError {
|
|
3919
|
-
const
|
|
3920
|
-
export {
|
|
3941
|
+
const code_18: 'NotFoundError';
|
|
3942
|
+
export { code_18 as code };
|
|
3921
3943
|
}
|
|
3922
3944
|
declare class ObjectTypeError extends BaseError {
|
|
3923
3945
|
/**
|
|
@@ -3937,8 +3959,8 @@ declare class ObjectTypeError extends BaseError {
|
|
|
3937
3959
|
};
|
|
3938
3960
|
}
|
|
3939
3961
|
declare namespace ObjectTypeError {
|
|
3940
|
-
const
|
|
3941
|
-
export {
|
|
3962
|
+
const code_19: 'ObjectTypeError';
|
|
3963
|
+
export { code_19 as code };
|
|
3942
3964
|
}
|
|
3943
3965
|
declare class ParseError extends BaseError {
|
|
3944
3966
|
/**
|
|
@@ -3954,8 +3976,8 @@ declare class ParseError extends BaseError {
|
|
|
3954
3976
|
};
|
|
3955
3977
|
}
|
|
3956
3978
|
declare namespace ParseError {
|
|
3957
|
-
const
|
|
3958
|
-
export {
|
|
3979
|
+
const code_20: 'ParseError';
|
|
3980
|
+
export { code_20 as code };
|
|
3959
3981
|
}
|
|
3960
3982
|
declare class PushRejectedError extends BaseError {
|
|
3961
3983
|
/**
|
|
@@ -3969,8 +3991,8 @@ declare class PushRejectedError extends BaseError {
|
|
|
3969
3991
|
};
|
|
3970
3992
|
}
|
|
3971
3993
|
declare namespace PushRejectedError {
|
|
3972
|
-
const
|
|
3973
|
-
export {
|
|
3994
|
+
const code_21: 'PushRejectedError';
|
|
3995
|
+
export { code_21 as code };
|
|
3974
3996
|
}
|
|
3975
3997
|
declare class RemoteCapabilityError extends BaseError {
|
|
3976
3998
|
/**
|
|
@@ -3986,8 +4008,8 @@ declare class RemoteCapabilityError extends BaseError {
|
|
|
3986
4008
|
};
|
|
3987
4009
|
}
|
|
3988
4010
|
declare namespace RemoteCapabilityError {
|
|
3989
|
-
const
|
|
3990
|
-
export {
|
|
4011
|
+
const code_22: 'RemoteCapabilityError';
|
|
4012
|
+
export { code_22 as code };
|
|
3991
4013
|
}
|
|
3992
4014
|
declare class SmartHttpError extends BaseError {
|
|
3993
4015
|
/**
|
|
@@ -4003,8 +4025,8 @@ declare class SmartHttpError extends BaseError {
|
|
|
4003
4025
|
};
|
|
4004
4026
|
}
|
|
4005
4027
|
declare namespace SmartHttpError {
|
|
4006
|
-
const
|
|
4007
|
-
export {
|
|
4028
|
+
const code_23: 'SmartHttpError';
|
|
4029
|
+
export { code_23 as code };
|
|
4008
4030
|
}
|
|
4009
4031
|
declare class UnknownTransportError extends BaseError {
|
|
4010
4032
|
/**
|
|
@@ -4022,8 +4044,8 @@ declare class UnknownTransportError extends BaseError {
|
|
|
4022
4044
|
};
|
|
4023
4045
|
}
|
|
4024
4046
|
declare namespace UnknownTransportError {
|
|
4025
|
-
const
|
|
4026
|
-
export {
|
|
4047
|
+
const code_24: 'UnknownTransportError';
|
|
4048
|
+
export { code_24 as code };
|
|
4027
4049
|
}
|
|
4028
4050
|
declare class UnsafeFilepathError extends BaseError {
|
|
4029
4051
|
/**
|
|
@@ -4037,8 +4059,8 @@ declare class UnsafeFilepathError extends BaseError {
|
|
|
4037
4059
|
};
|
|
4038
4060
|
}
|
|
4039
4061
|
declare namespace UnsafeFilepathError {
|
|
4040
|
-
const
|
|
4041
|
-
export {
|
|
4062
|
+
const code_25: 'UnsafeFilepathError';
|
|
4063
|
+
export { code_25 as code };
|
|
4042
4064
|
}
|
|
4043
4065
|
declare class UrlParseError extends BaseError {
|
|
4044
4066
|
/**
|
|
@@ -4052,8 +4074,8 @@ declare class UrlParseError extends BaseError {
|
|
|
4052
4074
|
};
|
|
4053
4075
|
}
|
|
4054
4076
|
declare namespace UrlParseError {
|
|
4055
|
-
const
|
|
4056
|
-
export {
|
|
4077
|
+
const code_26: 'UrlParseError';
|
|
4078
|
+
export { code_26 as code };
|
|
4057
4079
|
}
|
|
4058
4080
|
declare class UserCanceledError extends BaseError {
|
|
4059
4081
|
code: "UserCanceledError";
|
|
@@ -4061,8 +4083,8 @@ declare class UserCanceledError extends BaseError {
|
|
|
4061
4083
|
data: {};
|
|
4062
4084
|
}
|
|
4063
4085
|
declare namespace UserCanceledError {
|
|
4064
|
-
const
|
|
4065
|
-
export {
|
|
4086
|
+
const code_27: 'UserCanceledError';
|
|
4087
|
+
export { code_27 as code };
|
|
4066
4088
|
}
|
|
4067
4089
|
/**
|
|
4068
4090
|
* @typedef {Object} GitProgressEvent
|