es-git 0.2.0-next.105 → 0.2.0-next.107
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.d.ts +37 -0
- package/package.json +11 -11
package/index.d.ts
CHANGED
|
@@ -20,6 +20,18 @@ export interface CommitOptions {
|
|
|
20
20
|
*/
|
|
21
21
|
committer?: SignaturePayload
|
|
22
22
|
parents?: Array<string>
|
|
23
|
+
/**
|
|
24
|
+
* GPG signature string for signed commits.
|
|
25
|
+
*
|
|
26
|
+
* If provided, this will create a signed commit.
|
|
27
|
+
*/
|
|
28
|
+
signature?: string
|
|
29
|
+
/**
|
|
30
|
+
* Custom signature field name.
|
|
31
|
+
*
|
|
32
|
+
* If not provided, the default signature field (gpgsig) will be used.
|
|
33
|
+
*/
|
|
34
|
+
signatureField?: string
|
|
23
35
|
}
|
|
24
36
|
/**
|
|
25
37
|
* - `ProgramData` : System-wide on Windows, for compatibility with portable git.
|
|
@@ -1048,6 +1060,12 @@ export interface RepositoryCloneOptions {
|
|
|
1048
1060
|
/** Options which can be specified to various fetch operations. */
|
|
1049
1061
|
fetch?: FetchOptions
|
|
1050
1062
|
}
|
|
1063
|
+
export interface ExtractedSignature {
|
|
1064
|
+
/** GPG signature of the commit, or null if the commit is not signed. */
|
|
1065
|
+
signature: string
|
|
1066
|
+
/** Signed data of the commit. */
|
|
1067
|
+
signedData: string
|
|
1068
|
+
}
|
|
1051
1069
|
/**
|
|
1052
1070
|
* Creates a new repository in the specified folder.
|
|
1053
1071
|
*
|
|
@@ -3730,6 +3748,25 @@ export declare class Repository {
|
|
|
3730
3748
|
* @param {string} refname - Specified reference to point into `HEAD`.
|
|
3731
3749
|
*/
|
|
3732
3750
|
setHead(refname: string): void
|
|
3751
|
+
/**
|
|
3752
|
+
* Extract a signature from an object identified by its ID.
|
|
3753
|
+
*
|
|
3754
|
+
* This method can be used for any object that may be signed, such as commits or tags.
|
|
3755
|
+
*
|
|
3756
|
+
* @category Repository/Methods
|
|
3757
|
+
*
|
|
3758
|
+
* @signature
|
|
3759
|
+
* ```ts
|
|
3760
|
+
* class Repository {
|
|
3761
|
+
* extractSignature(oid: string): ExtractedSignature | null;
|
|
3762
|
+
* }
|
|
3763
|
+
* ```
|
|
3764
|
+
*
|
|
3765
|
+
* @param {string} oid - Object ID (SHA1) of the signed object to extract the signature from.
|
|
3766
|
+
* @returns An ExtractedSignature object containing the signature and signed data if the object is signed,
|
|
3767
|
+
* or null if the object is not signed.
|
|
3768
|
+
*/
|
|
3769
|
+
extractSignature(oid: string): ExtractedSignature | null
|
|
3733
3770
|
/**
|
|
3734
3771
|
* Execute a rev-parse operation against the `spec` listed.
|
|
3735
3772
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "es-git",
|
|
3
|
-
"version": "0.2.0-next.
|
|
3
|
+
"version": "0.2.0-next.107+c48aae5",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -57,15 +57,15 @@
|
|
|
57
57
|
"vitest": "^3.0.5"
|
|
58
58
|
},
|
|
59
59
|
"optionalDependencies": {
|
|
60
|
-
"es-git-darwin-x64": "0.2.0-next.
|
|
61
|
-
"es-git-darwin-arm64": "0.2.0-next.
|
|
62
|
-
"es-git-win32-x64-msvc": "0.2.0-next.
|
|
63
|
-
"es-git-win32-arm64-msvc": "0.2.0-next.
|
|
64
|
-
"es-git-linux-x64-gnu": "0.2.0-next.
|
|
65
|
-
"es-git-linux-x64-musl": "0.2.0-next.
|
|
66
|
-
"es-git-android-arm64": "0.2.0-next.
|
|
67
|
-
"es-git-linux-arm64-gnu": "0.2.0-next.
|
|
68
|
-
"es-git-linux-arm64-musl": "0.2.0-next.
|
|
69
|
-
"es-git-android-arm-eabi": "0.2.0-next.
|
|
60
|
+
"es-git-darwin-x64": "0.2.0-next.107+c48aae5",
|
|
61
|
+
"es-git-darwin-arm64": "0.2.0-next.107+c48aae5",
|
|
62
|
+
"es-git-win32-x64-msvc": "0.2.0-next.107+c48aae5",
|
|
63
|
+
"es-git-win32-arm64-msvc": "0.2.0-next.107+c48aae5",
|
|
64
|
+
"es-git-linux-x64-gnu": "0.2.0-next.107+c48aae5",
|
|
65
|
+
"es-git-linux-x64-musl": "0.2.0-next.107+c48aae5",
|
|
66
|
+
"es-git-android-arm64": "0.2.0-next.107+c48aae5",
|
|
67
|
+
"es-git-linux-arm64-gnu": "0.2.0-next.107+c48aae5",
|
|
68
|
+
"es-git-linux-arm64-musl": "0.2.0-next.107+c48aae5",
|
|
69
|
+
"es-git-android-arm-eabi": "0.2.0-next.107+c48aae5"
|
|
70
70
|
}
|
|
71
71
|
}
|