type-git 0.6.0 → 0.8.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/README.md +116 -7
- package/dist/adapters/bun/index.cjs +19 -7
- package/dist/adapters/bun/index.d.cts +3 -1
- package/dist/adapters/bun/index.d.ts +3 -1
- package/dist/adapters/bun/index.js +14 -2
- package/dist/adapters/deno/index.cjs +23 -7
- package/dist/adapters/deno/index.d.cts +3 -1
- package/dist/adapters/deno/index.d.ts +3 -1
- package/dist/adapters/deno/index.js +17 -1
- package/dist/adapters/node/index.cjs +4 -3
- package/dist/adapters/node/index.d.cts +3 -1
- package/dist/adapters/node/index.d.ts +3 -1
- package/dist/adapters/node/index.js +3 -2
- package/dist/chunk-6HDMSFY7.cjs +6081 -0
- package/dist/chunk-ADC26634.js +6028 -0
- package/dist/{chunk-DDWWKTAE.cjs → chunk-JDCCYWIX.cjs} +18 -7
- package/dist/{chunk-FHV2WOQG.js → chunk-S3EFBFVP.js} +13 -2
- package/dist/chunk-UAKOSACD.js +6081 -0
- package/dist/chunk-UHZWPYTF.cjs +6028 -0
- package/dist/client.d-Cg5wWJnY.d.cts +584 -0
- package/dist/client.d-DCiFA_CK.d.ts +584 -0
- package/dist/git.d-DqAvRXEf.d.cts +10515 -0
- package/dist/index.cjs +9 -3
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +12 -6
- package/dist/strict/index.cjs +2948 -0
- package/dist/{client.d-D9Lqi1a2.d.cts → strict/index.d.cts} +44017 -47797
- package/dist/strict/index.d.ts +1 -0
- package/dist/strict/index.js +2948 -0
- package/docs/adapters.md +7 -7
- package/docs/migrations/0.7.0.md +152 -0
- package/package.json +12 -1
- package/dist/chunk-BRFWPLJ7.cjs +0 -13025
- package/dist/chunk-IYOGHATP.js +0 -13025
package/dist/index.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkJDCCYWIXcjs = require('./chunk-JDCCYWIX.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -11,6 +11,7 @@ var _chunkDDWWKTAEcjs = require('./chunk-DDWWKTAE.cjs');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
+
var _chunkUHZWPYTFcjs = require('./chunk-UHZWPYTF.cjs');
|
|
14
15
|
|
|
15
16
|
|
|
16
17
|
|
|
@@ -29,10 +30,10 @@ var _chunkDDWWKTAEcjs = require('./chunk-DDWWKTAE.cjs');
|
|
|
29
30
|
|
|
30
31
|
|
|
31
32
|
|
|
32
|
-
var _chunkBRFWPLJ7cjs = require('./chunk-BRFWPLJ7.cjs');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
|
+
var _chunk6HDMSFY7cjs = require('./chunk-6HDMSFY7.cjs');
|
|
36
37
|
|
|
37
38
|
|
|
38
39
|
|
|
@@ -59,4 +60,9 @@ var _chunkBRFWPLJ7cjs = require('./chunk-BRFWPLJ7.cjs');
|
|
|
59
60
|
|
|
60
61
|
|
|
61
62
|
|
|
62
|
-
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
exports.CliRunner = _chunk6HDMSFY7cjs.CliRunner; exports.DEFAULT_ENV_ALLOWLIST = _chunk6HDMSFY7cjs.DEFAULT_ENV_ALLOWLIST; exports.GIT_LOG_FORMAT = _chunk6HDMSFY7cjs.GIT_LOG_FORMAT; exports.GitArgumentError = _chunk6HDMSFY7cjs.GitArgumentError; exports.GitError = _chunk6HDMSFY7cjs.GitError; exports.LEGACY_GIT_VERSION = _chunkUHZWPYTFcjs.LEGACY_GIT_VERSION; exports.MIN_GIT_VERSION = _chunkUHZWPYTFcjs.MIN_GIT_VERSION; exports.NodeExecAdapter = _chunkJDCCYWIXcjs.NodeExecAdapter; exports.NodeFsAdapter = _chunkJDCCYWIXcjs.NodeFsAdapter; exports.TypeGit = _chunkJDCCYWIXcjs.TypeGit; exports.cloneConfigArgs = _chunkUHZWPYTFcjs.cloneConfigArgs; exports.createGit = _chunkUHZWPYTFcjs.createGit; exports.createGitSync = _chunkUHZWPYTFcjs.createGitSync; exports.createNodeAdapters = _chunkJDCCYWIXcjs.createNodeAdapters; exports.detectErrorCategory = _chunk6HDMSFY7cjs.detectErrorCategory; exports.isCloneConfigKey = _chunkUHZWPYTFcjs.isCloneConfigKey; exports.isNonEmpty = _chunk6HDMSFY7cjs.isNonEmpty; exports.nonEmpty = _chunk6HDMSFY7cjs.nonEmpty; exports.parseGitLog = _chunk6HDMSFY7cjs.parseGitLog; exports.parseGitProgress = _chunk6HDMSFY7cjs.parseGitProgress; exports.parseJson = _chunk6HDMSFY7cjs.parseJson; exports.parseKeyValue = _chunk6HDMSFY7cjs.parseKeyValue; exports.parseLfsProgress = _chunk6HDMSFY7cjs.parseLfsProgress; exports.parseLines = _chunk6HDMSFY7cjs.parseLines; exports.parseLsRemote = _chunk6HDMSFY7cjs.parseLsRemote; exports.parseLsTree = _chunk6HDMSFY7cjs.parseLsTree; exports.parsePorcelainV2 = _chunk6HDMSFY7cjs.parsePorcelainV2; exports.parseRecords = _chunk6HDMSFY7cjs.parseRecords; exports.parseWorktreeList = _chunk6HDMSFY7cjs.parseWorktreeList; exports.resolveInheritedEnv = _chunk6HDMSFY7cjs.resolveInheritedEnv;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export { NodeAdaptersOptions, NodeExecAdapter, NodeExecAdapterOptions, NodeFsAdapter, TypeGit, TypeGitOptions, createNodeAdapters } from './adapters/node/index.cjs';
|
|
2
|
-
export {
|
|
2
|
+
export { A as AdapterFactory, g as CliRunner, h as CliRunnerOptions, C as CreateGitOptions, E as ExecAdapter, F as FsAdapter, L as LEGACY_GIT_VERSION, M as MIN_GIT_VERSION, R as RuntimeAdapters, c as SpawnHandle, S as SpawnOptions, b as SpawnResult, a as StreamHandler, d as TailHandle, T as TailOptions, e as createGit, f as createGitSync } from './client.d-Cg5wWJnY.cjs';
|
|
3
|
+
export { aQ as AddOpts, A as AuditConfig, cN as AuditEvent, cM as AuditEventEnd, cL as AuditEventStart, B as BareRepo, aT as BranchCreateOpts, aU as BranchDeleteOpts, aR as BranchInfo, cb as BranchOperations, aS as BranchOpts, C as Capabilities, aV as CheckoutBranchOpts, aX as CheckoutOpts, aW as CheckoutPathOpts, bd as CherryPickOpts, be as CleanOpts, at as CloneConfig, as as CloneConfigKey, aq as CloneConfigSchema, ar as CloneHttpVariable, f as CloneOpts, h as CommandExecOpts, cH as CommandSpec, aL as Commit, aY as CommitOpts, aZ as CommitResult, a as CompanionExecutable, cn as ConfigEntry, co as ConfigGetOpts, cs as ConfigKey, cq as ConfigListOpts, ct as ConfigOperations, cr as ConfigSchema, cp as ConfigSetOpts, cJ as Credential, cK as CredentialConfig, cI as CredentialRequest, ay as DEFAULT_ENV_ALLOWLIST, a$ as DiffEntry, a_ as DiffOpts, b0 as DiffResult, aw as EnvAllowlistAdjustment, E as EnvInheritance, ax as EnvInheritancePredicate, c as ExecOpts, b as ExecutionContext, aN as FetchOpts, aO as ForceWithLeaseOpts, a6 as GIT_LOG_FORMAT, G as Git, cD as GitArgumentError, d as GitError, cC as GitErrorCategory, cB as GitErrorKind, e as GitOpenOptions, cA as GitOutput, a4 as GitOutputMode, cy as GitProgress, a7 as GitProgressInfo, aC as GlobalConfigListOpts, i as GlobalConfigOperations, aA as GlobalLfsInstallOpts, j as GlobalLfsOperations, aB as GlobalLfsUninstallOpts, I as InitOpts, bU as LfsCheckoutOpts, bY as LfsEnvInfo, ca as LfsExtraOperations, bJ as LfsFetchOpts, bM as LfsFileEntry, bQ as LfsLockEntry, bR as LfsLockOpts, bT as LfsLocksOpts, bN as LfsLsFilesOpts, bX as LfsMigrateExportOpts, bW as LfsMigrateImportOpts, bV as LfsMigrateInfoOpts, cF as LfsMode, c9 as LfsOperations, b$ as LfsPreDownloadOpts, c0 as LfsPreDownloadResult, bZ as LfsPreUploadOpts, b_ as LfsPreUploadResult, cz as LfsProgress, a8 as LfsProgressInfo, bI as LfsPruneOpts, bF as LfsPullOpts, bG as LfsPushOpts, bE as LfsStatus, bH as LfsStatusOpts, bO as LfsTrackEntry, bP as LfsTrackOpts, bS as LfsUnlockOpts, aM as LogOpts, L as LsRemoteOpts, a9 as LsRemoteRef, g as LsRemoteResult, aG as LsTreeEntry, aa as LsTreeObjectType, aH as LsTreeOpts, b1 as MergeOpts, b2 as MergeResult, bf as MvOpts, cv as NonEmptyString, cG as OutputContract, ab as ParsedCommit, ac as ParsedLsTreeEntry, ad as ParsedWorktree, ae as PorcelainV2Entry, b3 as PullOpts, aP as PushOpts, R as RawResult, bg as RebaseOpts, cf as RemoteAddOpts, ce as RemoteInfo, cm as RemoteOperations, ci as RemotePruneOpts, ck as RemoteSetBranchesOpts, cg as RemoteSetHeadOpts, ch as RemoteShowOpts, cj as RemoteUpdateOpts, cl as RemoteUrlOpts, aD as RepoBase, bK as RepoLfsInstallOpts, bL as RepoLfsUninstallOpts, aE as RepoLsRemoteOpts, aF as RepoLsRemoteResult, b4 as ResetOpts, bh as RestoreOpts, br as RevParseAnyRefOpts, bl as RevParseBooleanQuery, bm as RevParseListOpts, bn as RevParseListQuery, bs as RevParseOtherQuery, bt as RevParsePathFormat, bu as RevParsePathOpts, bk as RevParsePathQuery, bq as RevParseQuietRefOpts, bo as RevParseRefBaseOpts, bp as RevParseRefOpts, bi as RevertOpts, b5 as RmOpts, cE as Runtime, bj as ShowOpts, b8 as StashApplyOpts, b6 as StashEntry, cc as StashOperations, b7 as StashPushOpts, aI as StatusEntry, aK as StatusOpts, aJ as StatusPorcelain, bw as SubmoduleAddOpts, bx as SubmoduleDeinitOpts, bA as SubmoduleForeachOpts, bD as SubmoduleInfo, cu as SubmoduleOperations, bv as SubmoduleOpts, bC as SubmoduleSetBranchOpts, by as SubmoduleStatusOpts, bz as SubmoduleSummaryOpts, bB as SubmoduleSyncOpts, b9 as SwitchOpts, bc as TagCreateOpts, ba as TagInfo, bb as TagListOpts, cd as TagOperations, cO as TraceEvent, c1 as Worktree, c2 as WorktreeAddOpts, c7 as WorktreeLockOpts, c5 as WorktreeMoveOpts, c8 as WorktreeOperations, c4 as WorktreePruneOpts, c3 as WorktreeRemoveOpts, c6 as WorktreeRepairOpts, W as WorktreeRepo, av as cloneConfigArgs, a5 as detectErrorCategory, au as isCloneConfigKey, cx as isNonEmpty, cw as nonEmpty, af as parseGitLog, ag as parseGitProgress, ah as parseJson, ai as parseKeyValue, aj as parseLfsProgress, ak as parseLines, al as parseLsRemote, am as parseLsTree, an as parsePorcelainV2, ao as parseRecords, ap as parseWorktreeList, az as resolveInheritedEnv } from './git.d-DqAvRXEf.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export { NodeAdaptersOptions, NodeExecAdapter, NodeExecAdapterOptions, NodeFsAdapter, TypeGit, TypeGitOptions, createNodeAdapters } from './adapters/node/index.js';
|
|
2
|
-
export {
|
|
2
|
+
export { A as AdapterFactory, g as CliRunner, h as CliRunnerOptions, C as CreateGitOptions, E as ExecAdapter, F as FsAdapter, L as LEGACY_GIT_VERSION, M as MIN_GIT_VERSION, R as RuntimeAdapters, c as SpawnHandle, S as SpawnOptions, b as SpawnResult, a as StreamHandler, d as TailHandle, T as TailOptions, e as createGit, f as createGitSync } from './client.d-DCiFA_CK.js';
|
|
3
|
+
export { aQ as AddOpts, A as AuditConfig, cN as AuditEvent, cM as AuditEventEnd, cL as AuditEventStart, B as BareRepo, aT as BranchCreateOpts, aU as BranchDeleteOpts, aR as BranchInfo, cb as BranchOperations, aS as BranchOpts, C as Capabilities, aV as CheckoutBranchOpts, aX as CheckoutOpts, aW as CheckoutPathOpts, bd as CherryPickOpts, be as CleanOpts, at as CloneConfig, as as CloneConfigKey, aq as CloneConfigSchema, ar as CloneHttpVariable, f as CloneOpts, h as CommandExecOpts, cH as CommandSpec, aL as Commit, aY as CommitOpts, aZ as CommitResult, a as CompanionExecutable, cn as ConfigEntry, co as ConfigGetOpts, cs as ConfigKey, cq as ConfigListOpts, ct as ConfigOperations, cr as ConfigSchema, cp as ConfigSetOpts, cJ as Credential, cK as CredentialConfig, cI as CredentialRequest, ay as DEFAULT_ENV_ALLOWLIST, a$ as DiffEntry, a_ as DiffOpts, b0 as DiffResult, aw as EnvAllowlistAdjustment, E as EnvInheritance, ax as EnvInheritancePredicate, c as ExecOpts, b as ExecutionContext, aN as FetchOpts, aO as ForceWithLeaseOpts, a6 as GIT_LOG_FORMAT, G as Git, cD as GitArgumentError, d as GitError, cC as GitErrorCategory, cB as GitErrorKind, e as GitOpenOptions, cA as GitOutput, a4 as GitOutputMode, cy as GitProgress, a7 as GitProgressInfo, aC as GlobalConfigListOpts, i as GlobalConfigOperations, aA as GlobalLfsInstallOpts, j as GlobalLfsOperations, aB as GlobalLfsUninstallOpts, I as InitOpts, bU as LfsCheckoutOpts, bY as LfsEnvInfo, ca as LfsExtraOperations, bJ as LfsFetchOpts, bM as LfsFileEntry, bQ as LfsLockEntry, bR as LfsLockOpts, bT as LfsLocksOpts, bN as LfsLsFilesOpts, bX as LfsMigrateExportOpts, bW as LfsMigrateImportOpts, bV as LfsMigrateInfoOpts, cF as LfsMode, c9 as LfsOperations, b$ as LfsPreDownloadOpts, c0 as LfsPreDownloadResult, bZ as LfsPreUploadOpts, b_ as LfsPreUploadResult, cz as LfsProgress, a8 as LfsProgressInfo, bI as LfsPruneOpts, bF as LfsPullOpts, bG as LfsPushOpts, bE as LfsStatus, bH as LfsStatusOpts, bO as LfsTrackEntry, bP as LfsTrackOpts, bS as LfsUnlockOpts, aM as LogOpts, L as LsRemoteOpts, a9 as LsRemoteRef, g as LsRemoteResult, aG as LsTreeEntry, aa as LsTreeObjectType, aH as LsTreeOpts, b1 as MergeOpts, b2 as MergeResult, bf as MvOpts, cv as NonEmptyString, cG as OutputContract, ab as ParsedCommit, ac as ParsedLsTreeEntry, ad as ParsedWorktree, ae as PorcelainV2Entry, b3 as PullOpts, aP as PushOpts, R as RawResult, bg as RebaseOpts, cf as RemoteAddOpts, ce as RemoteInfo, cm as RemoteOperations, ci as RemotePruneOpts, ck as RemoteSetBranchesOpts, cg as RemoteSetHeadOpts, ch as RemoteShowOpts, cj as RemoteUpdateOpts, cl as RemoteUrlOpts, aD as RepoBase, bK as RepoLfsInstallOpts, bL as RepoLfsUninstallOpts, aE as RepoLsRemoteOpts, aF as RepoLsRemoteResult, b4 as ResetOpts, bh as RestoreOpts, br as RevParseAnyRefOpts, bl as RevParseBooleanQuery, bm as RevParseListOpts, bn as RevParseListQuery, bs as RevParseOtherQuery, bt as RevParsePathFormat, bu as RevParsePathOpts, bk as RevParsePathQuery, bq as RevParseQuietRefOpts, bo as RevParseRefBaseOpts, bp as RevParseRefOpts, bi as RevertOpts, b5 as RmOpts, cE as Runtime, bj as ShowOpts, b8 as StashApplyOpts, b6 as StashEntry, cc as StashOperations, b7 as StashPushOpts, aI as StatusEntry, aK as StatusOpts, aJ as StatusPorcelain, bw as SubmoduleAddOpts, bx as SubmoduleDeinitOpts, bA as SubmoduleForeachOpts, bD as SubmoduleInfo, cu as SubmoduleOperations, bv as SubmoduleOpts, bC as SubmoduleSetBranchOpts, by as SubmoduleStatusOpts, bz as SubmoduleSummaryOpts, bB as SubmoduleSyncOpts, b9 as SwitchOpts, bc as TagCreateOpts, ba as TagInfo, bb as TagListOpts, cd as TagOperations, cO as TraceEvent, c1 as Worktree, c2 as WorktreeAddOpts, c7 as WorktreeLockOpts, c5 as WorktreeMoveOpts, c8 as WorktreeOperations, c4 as WorktreePruneOpts, c3 as WorktreeRemoveOpts, c6 as WorktreeRepairOpts, W as WorktreeRepo, av as cloneConfigArgs, a5 as detectErrorCategory, au as isCloneConfigKey, cx as isNonEmpty, cw as nonEmpty, af as parseGitLog, ag as parseGitProgress, ah as parseJson, ai as parseKeyValue, aj as parseLfsProgress, ak as parseLines, al as parseLsRemote, am as parseLsTree, an as parsePorcelainV2, ao as parseRecords, ap as parseWorktreeList, az as resolveInheritedEnv } from './git.d-DqAvRXEf.cjs';
|
package/dist/index.js
CHANGED
|
@@ -3,17 +3,21 @@ import {
|
|
|
3
3
|
NodeFsAdapter,
|
|
4
4
|
TypeGit,
|
|
5
5
|
createNodeAdapters
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-S3EFBFVP.js";
|
|
7
|
+
import {
|
|
8
|
+
LEGACY_GIT_VERSION,
|
|
9
|
+
MIN_GIT_VERSION,
|
|
10
|
+
cloneConfigArgs,
|
|
11
|
+
createGit,
|
|
12
|
+
createGitSync,
|
|
13
|
+
isCloneConfigKey
|
|
14
|
+
} from "./chunk-ADC26634.js";
|
|
7
15
|
import {
|
|
8
16
|
CliRunner,
|
|
9
17
|
DEFAULT_ENV_ALLOWLIST,
|
|
10
18
|
GIT_LOG_FORMAT,
|
|
11
19
|
GitArgumentError,
|
|
12
20
|
GitError,
|
|
13
|
-
LEGACY_GIT_VERSION,
|
|
14
|
-
MIN_GIT_VERSION,
|
|
15
|
-
createGit,
|
|
16
|
-
createGitSync,
|
|
17
21
|
detectErrorCategory,
|
|
18
22
|
isNonEmpty,
|
|
19
23
|
nonEmpty,
|
|
@@ -29,7 +33,7 @@ import {
|
|
|
29
33
|
parseRecords,
|
|
30
34
|
parseWorktreeList,
|
|
31
35
|
resolveInheritedEnv
|
|
32
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-UAKOSACD.js";
|
|
33
37
|
export {
|
|
34
38
|
CliRunner,
|
|
35
39
|
DEFAULT_ENV_ALLOWLIST,
|
|
@@ -41,10 +45,12 @@ export {
|
|
|
41
45
|
NodeExecAdapter,
|
|
42
46
|
NodeFsAdapter,
|
|
43
47
|
TypeGit,
|
|
48
|
+
cloneConfigArgs,
|
|
44
49
|
createGit,
|
|
45
50
|
createGitSync,
|
|
46
51
|
createNodeAdapters,
|
|
47
52
|
detectErrorCategory,
|
|
53
|
+
isCloneConfigKey,
|
|
48
54
|
isNonEmpty,
|
|
49
55
|
nonEmpty,
|
|
50
56
|
parseGitLog,
|