es-git 0.6.0-next.181 → 0.6.0-next.182
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 +69 -1
- package/index.js +1 -0
- package/package.json +11 -11
package/index.d.ts
CHANGED
|
@@ -2288,7 +2288,8 @@ export declare class Reference {
|
|
|
2288
2288
|
/**
|
|
2289
2289
|
* Return the peeled OID target of this reference.
|
|
2290
2290
|
*
|
|
2291
|
-
* This peeled OID only applies to direct references that point to a hard
|
|
2291
|
+
* This peeled OID only applies to direct references that point to a hard
|
|
2292
|
+
* Tag object: it is the result of peeling such Tag.
|
|
2292
2293
|
*
|
|
2293
2294
|
* @category Reference/Methods
|
|
2294
2295
|
* @signature
|
|
@@ -7636,6 +7637,7 @@ export interface ExtractedSignature {
|
|
|
7636
7637
|
|
|
7637
7638
|
export interface FetchOptions {
|
|
7638
7639
|
credential?: Credential
|
|
7640
|
+
callbacks?: RemoteCallbacks
|
|
7639
7641
|
/** Set the proxy options to use for the fetch operation. */
|
|
7640
7642
|
proxy?: ProxyOptions
|
|
7641
7643
|
/** Set whether to perform a prune after the fetch. */
|
|
@@ -8362,6 +8364,9 @@ export declare function openRepositoryFromWorktree(worktree: Worktree): Reposito
|
|
|
8362
8364
|
*/
|
|
8363
8365
|
export declare function openWorktreeFromRepository(repo: Repository): Worktree
|
|
8364
8366
|
|
|
8367
|
+
export type PackBuilderStage = 'adding_objects'|
|
|
8368
|
+
'deltafication';
|
|
8369
|
+
|
|
8365
8370
|
/**
|
|
8366
8371
|
* Parse a string as a bool.
|
|
8367
8372
|
*
|
|
@@ -8429,6 +8434,7 @@ export interface PruneOptions {
|
|
|
8429
8434
|
/** Options to control the behavior of a git push. */
|
|
8430
8435
|
export interface PushOptions {
|
|
8431
8436
|
credential?: Credential
|
|
8437
|
+
callbacks?: RemoteCallbacks
|
|
8432
8438
|
/** Set the proxy options to use for the push operation. */
|
|
8433
8439
|
proxy?: ProxyOptions
|
|
8434
8440
|
/**
|
|
@@ -8454,6 +8460,17 @@ export interface PushOptions {
|
|
|
8454
8460
|
remoteOptions?: Array<string>
|
|
8455
8461
|
}
|
|
8456
8462
|
|
|
8463
|
+
export interface PushUpdate {
|
|
8464
|
+
/** The source name of the reference, or `null` if it is not valid UTF-8. */
|
|
8465
|
+
srcRefname?: string
|
|
8466
|
+
/** The name of the reference to update on the server, or `null` if it is not valid UTF-8. */
|
|
8467
|
+
dstRefname?: string
|
|
8468
|
+
/** The current target oid of the reference. */
|
|
8469
|
+
src: string
|
|
8470
|
+
/** The new target oid for the reference. */
|
|
8471
|
+
dst: string
|
|
8472
|
+
}
|
|
8473
|
+
|
|
8457
8474
|
export interface RebaseCommitOptions {
|
|
8458
8475
|
/**
|
|
8459
8476
|
* Signature for author.
|
|
@@ -8594,6 +8611,47 @@ export interface Refspec {
|
|
|
8594
8611
|
force: boolean
|
|
8595
8612
|
}
|
|
8596
8613
|
|
|
8614
|
+
export interface RemoteCallbacks {
|
|
8615
|
+
/** Called with transfer progress during fetch. */
|
|
8616
|
+
transferProgress?: (data: RemoteTransferProgress) => void
|
|
8617
|
+
/**
|
|
8618
|
+
* Textual progress from the remote.
|
|
8619
|
+
*
|
|
8620
|
+
* Text sent over the progress side-band will be passed to this function
|
|
8621
|
+
* (this is the 'counting objects' output).
|
|
8622
|
+
*/
|
|
8623
|
+
sidebandProgress?: (data: Uint8Array) => void
|
|
8624
|
+
/**
|
|
8625
|
+
* Each time a reference is updated locally, the callback will be called
|
|
8626
|
+
* with information about it.
|
|
8627
|
+
*/
|
|
8628
|
+
updateTips?: (refname: string, oldId: string, newId: string) => void
|
|
8629
|
+
/**
|
|
8630
|
+
* Set a callback to get invoked for each updated reference on a push.
|
|
8631
|
+
*
|
|
8632
|
+
* The first argument to the callback is the name of the reference and the
|
|
8633
|
+
* second is a status message sent by the server. If the status is not `null`
|
|
8634
|
+
* then the push was rejected.
|
|
8635
|
+
*/
|
|
8636
|
+
pushUpdateReference?: (refname: string, status: string | null) => void
|
|
8637
|
+
/** The callback through which progress of push transfer is monitored */
|
|
8638
|
+
pushTransferProgress?: (current: number, total: number, bytes: number) => void
|
|
8639
|
+
/**
|
|
8640
|
+
* Function to call with progress information during pack building.
|
|
8641
|
+
*
|
|
8642
|
+
* Be aware that this is called inline with pack building operations,
|
|
8643
|
+
* so performance may be affected.
|
|
8644
|
+
*/
|
|
8645
|
+
packProgress?: (stage: PackBuilderStage, current: number, total: number) => void
|
|
8646
|
+
/**
|
|
8647
|
+
* The callback is called once between the negotiation step and the upload.
|
|
8648
|
+
*
|
|
8649
|
+
* The argument to the callback is a slice containing the updates which
|
|
8650
|
+
* will be sent as commands to the destination.
|
|
8651
|
+
*/
|
|
8652
|
+
pushNegotiation?: (update: PushUpdate[]) => void
|
|
8653
|
+
}
|
|
8654
|
+
|
|
8597
8655
|
/**
|
|
8598
8656
|
* - `None` : Do not follow any off-site redirects at any stage of the fetch or push.
|
|
8599
8657
|
* - `Initial` : Allow off-site redirects only upon the initial request. This is the default.
|
|
@@ -8603,6 +8661,16 @@ export type RemoteRedirect = 'None'|
|
|
|
8603
8661
|
'Initial'|
|
|
8604
8662
|
'All';
|
|
8605
8663
|
|
|
8664
|
+
export interface RemoteTransferProgress {
|
|
8665
|
+
totalObjects: number
|
|
8666
|
+
indexedObjects: number
|
|
8667
|
+
receivedObjects: number
|
|
8668
|
+
localObjects: number
|
|
8669
|
+
totalDeltas: number
|
|
8670
|
+
indexedDeltas: number
|
|
8671
|
+
receivedBytes: number
|
|
8672
|
+
}
|
|
8673
|
+
|
|
8606
8674
|
export interface RenameReferenceOptions {
|
|
8607
8675
|
/**
|
|
8608
8676
|
* If the force flag is not enabled, and there's already a reference with
|
package/index.js
CHANGED
|
@@ -650,6 +650,7 @@ module.exports.openDefaultConfig = nativeBinding.openDefaultConfig
|
|
|
650
650
|
module.exports.openRepository = nativeBinding.openRepository
|
|
651
651
|
module.exports.openRepositoryFromWorktree = nativeBinding.openRepositoryFromWorktree
|
|
652
652
|
module.exports.openWorktreeFromRepository = nativeBinding.openWorktreeFromRepository
|
|
653
|
+
module.exports.PackBuilderStage = nativeBinding.PackBuilderStage
|
|
653
654
|
module.exports.parseConfigBool = nativeBinding.parseConfigBool
|
|
654
655
|
module.exports.parseConfigI32 = nativeBinding.parseConfigI32
|
|
655
656
|
module.exports.parseConfigI64 = nativeBinding.parseConfigI64
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "es-git",
|
|
3
|
-
"version": "0.6.0-next.
|
|
3
|
+
"version": "0.6.0-next.182+809802c",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -54,15 +54,15 @@
|
|
|
54
54
|
"vitest": "^3.0.5"
|
|
55
55
|
},
|
|
56
56
|
"optionalDependencies": {
|
|
57
|
-
"es-git-darwin-x64": "0.6.0-next.
|
|
58
|
-
"es-git-darwin-arm64": "0.6.0-next.
|
|
59
|
-
"es-git-win32-x64-msvc": "0.6.0-next.
|
|
60
|
-
"es-git-win32-arm64-msvc": "0.6.0-next.
|
|
61
|
-
"es-git-linux-x64-gnu": "0.6.0-next.
|
|
62
|
-
"es-git-linux-x64-musl": "0.6.0-next.
|
|
63
|
-
"es-git-android-arm64": "0.6.0-next.
|
|
64
|
-
"es-git-linux-arm64-gnu": "0.6.0-next.
|
|
65
|
-
"es-git-linux-arm64-musl": "0.6.0-next.
|
|
66
|
-
"es-git-android-arm-eabi": "0.6.0-next.
|
|
57
|
+
"es-git-darwin-x64": "0.6.0-next.182+809802c",
|
|
58
|
+
"es-git-darwin-arm64": "0.6.0-next.182+809802c",
|
|
59
|
+
"es-git-win32-x64-msvc": "0.6.0-next.182+809802c",
|
|
60
|
+
"es-git-win32-arm64-msvc": "0.6.0-next.182+809802c",
|
|
61
|
+
"es-git-linux-x64-gnu": "0.6.0-next.182+809802c",
|
|
62
|
+
"es-git-linux-x64-musl": "0.6.0-next.182+809802c",
|
|
63
|
+
"es-git-android-arm64": "0.6.0-next.182+809802c",
|
|
64
|
+
"es-git-linux-arm64-gnu": "0.6.0-next.182+809802c",
|
|
65
|
+
"es-git-linux-arm64-musl": "0.6.0-next.182+809802c",
|
|
66
|
+
"es-git-android-arm-eabi": "0.6.0-next.182+809802c"
|
|
67
67
|
}
|
|
68
68
|
}
|