type-git 0.6.0 → 0.7.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 +23 -7
- package/dist/adapters/bun/index.cjs +8 -7
- package/dist/adapters/bun/index.d.cts +2 -1
- package/dist/adapters/bun/index.d.ts +2 -1
- package/dist/adapters/bun/index.js +2 -1
- package/dist/adapters/deno/index.cjs +8 -7
- package/dist/adapters/deno/index.d.cts +2 -1
- package/dist/adapters/deno/index.d.ts +2 -1
- package/dist/adapters/deno/index.js +2 -1
- package/dist/adapters/node/index.cjs +4 -3
- package/dist/adapters/node/index.d.cts +2 -1
- package/dist/adapters/node/index.d.ts +2 -1
- package/dist/adapters/node/index.js +3 -2
- package/dist/chunk-5NI3KM5Z.js +4822 -0
- package/dist/{chunk-FHV2WOQG.js → chunk-IAJF67MB.js} +1 -1
- package/dist/chunk-MFY7MGIJ.cjs +4822 -0
- package/dist/chunk-NBX6BNQF.cjs +5588 -0
- package/dist/{chunk-DDWWKTAE.cjs → chunk-X3F6MDXQ.cjs} +7 -7
- package/dist/chunk-YIWTIIXH.js +5588 -0
- package/dist/client.d-Cs32YZX6.d.ts +566 -0
- package/dist/client.d-PRQCR2_T.d.cts +566 -0
- package/dist/git.d-DrhCzWEn.d.cts +9706 -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 +2919 -0
- package/dist/{client.d-D9Lqi1a2.d.cts → strict/index.d.cts} +22052 -28366
- package/dist/strict/index.d.ts +1 -0
- package/dist/strict/index.js +2919 -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 _chunkX3F6MDXQcjs = require('./chunk-X3F6MDXQ.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 _chunkNBX6BNQFcjs = require('./chunk-NBX6BNQF.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 _chunkMFY7MGIJcjs = require('./chunk-MFY7MGIJ.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 = _chunkMFY7MGIJcjs.CliRunner; exports.DEFAULT_ENV_ALLOWLIST = _chunkMFY7MGIJcjs.DEFAULT_ENV_ALLOWLIST; exports.GIT_LOG_FORMAT = _chunkMFY7MGIJcjs.GIT_LOG_FORMAT; exports.GitArgumentError = _chunkMFY7MGIJcjs.GitArgumentError; exports.GitError = _chunkMFY7MGIJcjs.GitError; exports.LEGACY_GIT_VERSION = _chunkNBX6BNQFcjs.LEGACY_GIT_VERSION; exports.MIN_GIT_VERSION = _chunkNBX6BNQFcjs.MIN_GIT_VERSION; exports.NodeExecAdapter = _chunkX3F6MDXQcjs.NodeExecAdapter; exports.NodeFsAdapter = _chunkX3F6MDXQcjs.NodeFsAdapter; exports.TypeGit = _chunkX3F6MDXQcjs.TypeGit; exports.cloneConfigArgs = _chunkNBX6BNQFcjs.cloneConfigArgs; exports.createGit = _chunkNBX6BNQFcjs.createGit; exports.createGitSync = _chunkNBX6BNQFcjs.createGitSync; exports.createNodeAdapters = _chunkX3F6MDXQcjs.createNodeAdapters; exports.detectErrorCategory = _chunkMFY7MGIJcjs.detectErrorCategory; exports.isCloneConfigKey = _chunkNBX6BNQFcjs.isCloneConfigKey; exports.isNonEmpty = _chunkMFY7MGIJcjs.isNonEmpty; exports.nonEmpty = _chunkMFY7MGIJcjs.nonEmpty; exports.parseGitLog = _chunkMFY7MGIJcjs.parseGitLog; exports.parseGitProgress = _chunkMFY7MGIJcjs.parseGitProgress; exports.parseJson = _chunkMFY7MGIJcjs.parseJson; exports.parseKeyValue = _chunkMFY7MGIJcjs.parseKeyValue; exports.parseLfsProgress = _chunkMFY7MGIJcjs.parseLfsProgress; exports.parseLines = _chunkMFY7MGIJcjs.parseLines; exports.parseLsRemote = _chunkMFY7MGIJcjs.parseLsRemote; exports.parseLsTree = _chunkMFY7MGIJcjs.parseLsTree; exports.parsePorcelainV2 = _chunkMFY7MGIJcjs.parsePorcelainV2; exports.parseRecords = _chunkMFY7MGIJcjs.parseRecords; exports.parseWorktreeList = _chunkMFY7MGIJcjs.parseWorktreeList; exports.resolveInheritedEnv = _chunkMFY7MGIJcjs.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-PRQCR2_T.cjs';
|
|
3
|
+
export { aP as AddOpts, A as AuditConfig, cM as AuditEvent, cL as AuditEventEnd, cK as AuditEventStart, B as BareRepo, aS as BranchCreateOpts, aT as BranchDeleteOpts, aQ as BranchInfo, ca as BranchOperations, aR as BranchOpts, C as Capabilities, aU as CheckoutBranchOpts, aW as CheckoutOpts, aV as CheckoutPathOpts, bc as CherryPickOpts, bd as CleanOpts, as as CloneConfig, ar as CloneConfigKey, ap as CloneConfigSchema, aq as CloneHttpVariable, f as CloneOpts, h as CommandExecOpts, cG as CommandSpec, aK as Commit, aX as CommitOpts, aY as CommitResult, a as CompanionExecutable, cm as ConfigEntry, cn as ConfigGetOpts, cr as ConfigKey, cp as ConfigListOpts, cs as ConfigOperations, cq as ConfigSchema, co as ConfigSetOpts, cI as Credential, cJ as CredentialConfig, cH as CredentialRequest, ax as DEFAULT_ENV_ALLOWLIST, a_ as DiffEntry, aZ as DiffOpts, a$ as DiffResult, av as EnvAllowlistAdjustment, E as EnvInheritance, aw as EnvInheritancePredicate, c as ExecOpts, b as ExecutionContext, aM as FetchOpts, aN as ForceWithLeaseOpts, a5 as GIT_LOG_FORMAT, G as Git, cC as GitArgumentError, d as GitError, cB as GitErrorCategory, cA as GitErrorKind, e as GitOpenOptions, cz as GitOutput, a3 as GitOutputMode, cx as GitProgress, a6 as GitProgressInfo, aB as GlobalConfigListOpts, i as GlobalConfigOperations, az as GlobalLfsInstallOpts, j as GlobalLfsOperations, aA as GlobalLfsUninstallOpts, I as InitOpts, bT as LfsCheckoutOpts, bX as LfsEnvInfo, c9 as LfsExtraOperations, bI as LfsFetchOpts, bL as LfsFileEntry, bP as LfsLockEntry, bQ as LfsLockOpts, bS as LfsLocksOpts, bM as LfsLsFilesOpts, bW as LfsMigrateExportOpts, bV as LfsMigrateImportOpts, bU as LfsMigrateInfoOpts, cE as LfsMode, c8 as LfsOperations, b_ as LfsPreDownloadOpts, b$ as LfsPreDownloadResult, bY as LfsPreUploadOpts, bZ as LfsPreUploadResult, cy as LfsProgress, a7 as LfsProgressInfo, bH as LfsPruneOpts, bE as LfsPullOpts, bF as LfsPushOpts, bD as LfsStatus, bG as LfsStatusOpts, bN as LfsTrackEntry, bO as LfsTrackOpts, bR as LfsUnlockOpts, aL as LogOpts, L as LsRemoteOpts, a8 as LsRemoteRef, g as LsRemoteResult, aF as LsTreeEntry, a9 as LsTreeObjectType, aG as LsTreeOpts, b0 as MergeOpts, b1 as MergeResult, be as MvOpts, cu as NonEmptyString, cF as OutputContract, aa as ParsedCommit, ab as ParsedLsTreeEntry, ac as ParsedWorktree, ad as PorcelainV2Entry, b2 as PullOpts, aO as PushOpts, R as RawResult, bf as RebaseOpts, ce as RemoteAddOpts, cd as RemoteInfo, cl as RemoteOperations, ch as RemotePruneOpts, cj as RemoteSetBranchesOpts, cf as RemoteSetHeadOpts, cg as RemoteShowOpts, ci as RemoteUpdateOpts, ck as RemoteUrlOpts, aC as RepoBase, bJ as RepoLfsInstallOpts, bK as RepoLfsUninstallOpts, aD as RepoLsRemoteOpts, aE as RepoLsRemoteResult, b3 as ResetOpts, bg as RestoreOpts, bq as RevParseAnyRefOpts, bk as RevParseBooleanQuery, bl as RevParseListOpts, bm as RevParseListQuery, br as RevParseOtherQuery, bs as RevParsePathFormat, bt as RevParsePathOpts, bj as RevParsePathQuery, bp as RevParseQuietRefOpts, bn as RevParseRefBaseOpts, bo as RevParseRefOpts, bh as RevertOpts, b4 as RmOpts, cD as Runtime, bi as ShowOpts, b7 as StashApplyOpts, b5 as StashEntry, cb as StashOperations, b6 as StashPushOpts, aH as StatusEntry, aJ as StatusOpts, aI as StatusPorcelain, bv as SubmoduleAddOpts, bw as SubmoduleDeinitOpts, bz as SubmoduleForeachOpts, bC as SubmoduleInfo, ct as SubmoduleOperations, bu as SubmoduleOpts, bB as SubmoduleSetBranchOpts, bx as SubmoduleStatusOpts, by as SubmoduleSummaryOpts, bA as SubmoduleSyncOpts, b8 as SwitchOpts, bb as TagCreateOpts, b9 as TagInfo, ba as TagListOpts, cc as TagOperations, cN as TraceEvent, c0 as Worktree, c1 as WorktreeAddOpts, c6 as WorktreeLockOpts, c4 as WorktreeMoveOpts, c7 as WorktreeOperations, c3 as WorktreePruneOpts, c2 as WorktreeRemoveOpts, c5 as WorktreeRepairOpts, W as WorktreeRepo, au as cloneConfigArgs, a4 as detectErrorCategory, at as isCloneConfigKey, cw as isNonEmpty, cv as nonEmpty, ae as parseGitLog, af as parseGitProgress, ag as parseJson, ah as parseKeyValue, ai as parseLfsProgress, aj as parseLines, ak as parseLsRemote, al as parseLsTree, am as parsePorcelainV2, an as parseRecords, ao as parseWorktreeList, ay as resolveInheritedEnv } from './git.d-DrhCzWEn.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-Cs32YZX6.js';
|
|
3
|
+
export { aP as AddOpts, A as AuditConfig, cM as AuditEvent, cL as AuditEventEnd, cK as AuditEventStart, B as BareRepo, aS as BranchCreateOpts, aT as BranchDeleteOpts, aQ as BranchInfo, ca as BranchOperations, aR as BranchOpts, C as Capabilities, aU as CheckoutBranchOpts, aW as CheckoutOpts, aV as CheckoutPathOpts, bc as CherryPickOpts, bd as CleanOpts, as as CloneConfig, ar as CloneConfigKey, ap as CloneConfigSchema, aq as CloneHttpVariable, f as CloneOpts, h as CommandExecOpts, cG as CommandSpec, aK as Commit, aX as CommitOpts, aY as CommitResult, a as CompanionExecutable, cm as ConfigEntry, cn as ConfigGetOpts, cr as ConfigKey, cp as ConfigListOpts, cs as ConfigOperations, cq as ConfigSchema, co as ConfigSetOpts, cI as Credential, cJ as CredentialConfig, cH as CredentialRequest, ax as DEFAULT_ENV_ALLOWLIST, a_ as DiffEntry, aZ as DiffOpts, a$ as DiffResult, av as EnvAllowlistAdjustment, E as EnvInheritance, aw as EnvInheritancePredicate, c as ExecOpts, b as ExecutionContext, aM as FetchOpts, aN as ForceWithLeaseOpts, a5 as GIT_LOG_FORMAT, G as Git, cC as GitArgumentError, d as GitError, cB as GitErrorCategory, cA as GitErrorKind, e as GitOpenOptions, cz as GitOutput, a3 as GitOutputMode, cx as GitProgress, a6 as GitProgressInfo, aB as GlobalConfigListOpts, i as GlobalConfigOperations, az as GlobalLfsInstallOpts, j as GlobalLfsOperations, aA as GlobalLfsUninstallOpts, I as InitOpts, bT as LfsCheckoutOpts, bX as LfsEnvInfo, c9 as LfsExtraOperations, bI as LfsFetchOpts, bL as LfsFileEntry, bP as LfsLockEntry, bQ as LfsLockOpts, bS as LfsLocksOpts, bM as LfsLsFilesOpts, bW as LfsMigrateExportOpts, bV as LfsMigrateImportOpts, bU as LfsMigrateInfoOpts, cE as LfsMode, c8 as LfsOperations, b_ as LfsPreDownloadOpts, b$ as LfsPreDownloadResult, bY as LfsPreUploadOpts, bZ as LfsPreUploadResult, cy as LfsProgress, a7 as LfsProgressInfo, bH as LfsPruneOpts, bE as LfsPullOpts, bF as LfsPushOpts, bD as LfsStatus, bG as LfsStatusOpts, bN as LfsTrackEntry, bO as LfsTrackOpts, bR as LfsUnlockOpts, aL as LogOpts, L as LsRemoteOpts, a8 as LsRemoteRef, g as LsRemoteResult, aF as LsTreeEntry, a9 as LsTreeObjectType, aG as LsTreeOpts, b0 as MergeOpts, b1 as MergeResult, be as MvOpts, cu as NonEmptyString, cF as OutputContract, aa as ParsedCommit, ab as ParsedLsTreeEntry, ac as ParsedWorktree, ad as PorcelainV2Entry, b2 as PullOpts, aO as PushOpts, R as RawResult, bf as RebaseOpts, ce as RemoteAddOpts, cd as RemoteInfo, cl as RemoteOperations, ch as RemotePruneOpts, cj as RemoteSetBranchesOpts, cf as RemoteSetHeadOpts, cg as RemoteShowOpts, ci as RemoteUpdateOpts, ck as RemoteUrlOpts, aC as RepoBase, bJ as RepoLfsInstallOpts, bK as RepoLfsUninstallOpts, aD as RepoLsRemoteOpts, aE as RepoLsRemoteResult, b3 as ResetOpts, bg as RestoreOpts, bq as RevParseAnyRefOpts, bk as RevParseBooleanQuery, bl as RevParseListOpts, bm as RevParseListQuery, br as RevParseOtherQuery, bs as RevParsePathFormat, bt as RevParsePathOpts, bj as RevParsePathQuery, bp as RevParseQuietRefOpts, bn as RevParseRefBaseOpts, bo as RevParseRefOpts, bh as RevertOpts, b4 as RmOpts, cD as Runtime, bi as ShowOpts, b7 as StashApplyOpts, b5 as StashEntry, cb as StashOperations, b6 as StashPushOpts, aH as StatusEntry, aJ as StatusOpts, aI as StatusPorcelain, bv as SubmoduleAddOpts, bw as SubmoduleDeinitOpts, bz as SubmoduleForeachOpts, bC as SubmoduleInfo, ct as SubmoduleOperations, bu as SubmoduleOpts, bB as SubmoduleSetBranchOpts, bx as SubmoduleStatusOpts, by as SubmoduleSummaryOpts, bA as SubmoduleSyncOpts, b8 as SwitchOpts, bb as TagCreateOpts, b9 as TagInfo, ba as TagListOpts, cc as TagOperations, cN as TraceEvent, c0 as Worktree, c1 as WorktreeAddOpts, c6 as WorktreeLockOpts, c4 as WorktreeMoveOpts, c7 as WorktreeOperations, c3 as WorktreePruneOpts, c2 as WorktreeRemoveOpts, c5 as WorktreeRepairOpts, W as WorktreeRepo, au as cloneConfigArgs, a4 as detectErrorCategory, at as isCloneConfigKey, cw as isNonEmpty, cv as nonEmpty, ae as parseGitLog, af as parseGitProgress, ag as parseJson, ah as parseKeyValue, ai as parseLfsProgress, aj as parseLines, ak as parseLsRemote, al as parseLsTree, am as parsePorcelainV2, an as parseRecords, ao as parseWorktreeList, ay as resolveInheritedEnv } from './git.d-DrhCzWEn.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-IAJF67MB.js";
|
|
7
|
+
import {
|
|
8
|
+
LEGACY_GIT_VERSION,
|
|
9
|
+
MIN_GIT_VERSION,
|
|
10
|
+
cloneConfigArgs,
|
|
11
|
+
createGit,
|
|
12
|
+
createGitSync,
|
|
13
|
+
isCloneConfigKey
|
|
14
|
+
} from "./chunk-YIWTIIXH.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-5NI3KM5Z.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,
|