es-git 0.3.0-next.131 → 0.3.0-next.132

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.
Files changed (2) hide show
  1. package/index.d.ts +19 -0
  2. package/package.json +11 -11
package/index.d.ts CHANGED
@@ -5204,6 +5204,25 @@ export declare class Repository {
5204
5204
  * @param {string} oid - Object ID (SHA1) of the signed object to extract the signature from.
5205
5205
  * @returns An ExtractedSignature object containing the signature and signed data if the object is signed,
5206
5206
  * or null if the object is not signed.
5207
+ *
5208
+ * @example
5209
+ * ```ts
5210
+ * import { openRepository } from 'es-git';
5211
+ *
5212
+ * const repo = await openRepository('.');
5213
+ * const commit = repo.getCommit('a01e9888e46729ef4aa68953ba19b02a7a64eb82');
5214
+ *
5215
+ * // Extract the signature from a commit
5216
+ * const signatureInfo = repo.extractSignature(commit.id());
5217
+ *
5218
+ * if (signatureInfo) {
5219
+ * console.log('Object is signed!');
5220
+ * console.log('Signature:', signatureInfo.signature);
5221
+ * console.log('Signed data:', signatureInfo.signedData);
5222
+ * } else {
5223
+ * console.log('Object is not signed');
5224
+ * }
5225
+ * ```
5207
5226
  */
5208
5227
  extractSignature(oid: string): ExtractedSignature | null
5209
5228
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "es-git",
3
- "version": "0.3.0-next.131+28f3abd",
3
+ "version": "0.3.0-next.132+c4acdb5",
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.3.0-next.131+28f3abd",
61
- "es-git-darwin-arm64": "0.3.0-next.131+28f3abd",
62
- "es-git-win32-x64-msvc": "0.3.0-next.131+28f3abd",
63
- "es-git-win32-arm64-msvc": "0.3.0-next.131+28f3abd",
64
- "es-git-linux-x64-gnu": "0.3.0-next.131+28f3abd",
65
- "es-git-linux-x64-musl": "0.3.0-next.131+28f3abd",
66
- "es-git-android-arm64": "0.3.0-next.131+28f3abd",
67
- "es-git-linux-arm64-gnu": "0.3.0-next.131+28f3abd",
68
- "es-git-linux-arm64-musl": "0.3.0-next.131+28f3abd",
69
- "es-git-android-arm-eabi": "0.3.0-next.131+28f3abd"
60
+ "es-git-darwin-x64": "0.3.0-next.132+c4acdb5",
61
+ "es-git-darwin-arm64": "0.3.0-next.132+c4acdb5",
62
+ "es-git-win32-x64-msvc": "0.3.0-next.132+c4acdb5",
63
+ "es-git-win32-arm64-msvc": "0.3.0-next.132+c4acdb5",
64
+ "es-git-linux-x64-gnu": "0.3.0-next.132+c4acdb5",
65
+ "es-git-linux-x64-musl": "0.3.0-next.132+c4acdb5",
66
+ "es-git-android-arm64": "0.3.0-next.132+c4acdb5",
67
+ "es-git-linux-arm64-gnu": "0.3.0-next.132+c4acdb5",
68
+ "es-git-linux-arm64-musl": "0.3.0-next.132+c4acdb5",
69
+ "es-git-android-arm-eabi": "0.3.0-next.132+c4acdb5"
70
70
  }
71
71
  }