type-git 0.5.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 +27 -7
- package/dist/adapters/bun/index.cjs +82 -13348
- package/dist/adapters/bun/index.d.cts +7 -1
- package/dist/adapters/bun/index.d.ts +7 -1
- package/dist/adapters/bun/index.js +49 -13275
- package/dist/adapters/deno/index.cjs +76 -13344
- package/dist/adapters/deno/index.d.cts +7 -1
- package/dist/adapters/deno/index.d.ts +7 -1
- package/dist/adapters/deno/index.js +44 -13272
- package/dist/adapters/node/index.cjs +5 -13617
- package/dist/adapters/node/index.d.cts +44 -6
- package/dist/adapters/node/index.d.ts +44 -6
- package/dist/adapters/node/index.js +8 -13580
- package/dist/chunk-5NI3KM5Z.js +4822 -0
- package/dist/chunk-IAJF67MB.js +392 -0
- package/dist/chunk-MFY7MGIJ.cjs +4822 -0
- package/dist/chunk-NBX6BNQF.cjs +5588 -0
- package/dist/chunk-X3F6MDXQ.cjs +392 -0
- 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/{client-KHa1WMIH.d.cts → git.d-DrhCzWEn.d.cts} +4541 -6876
- package/dist/index.cjs +42 -13717
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +38 -13649
- package/dist/strict/index.cjs +2919 -0
- package/dist/strict/index.d.cts +134022 -0
- package/dist/strict/index.d.ts +1 -0
- package/dist/strict/index.js +2919 -0
- package/docs/adapters.md +168 -0
- package/docs/migrations/0.7.0.md +152 -0
- package/package.json +58 -21
- package/dist/adapters/bun/index.cjs.map +0 -1
- package/dist/adapters/bun/index.js.map +0 -1
- package/dist/adapters/deno/index.cjs.map +0 -1
- package/dist/adapters/deno/index.js.map +0 -1
- package/dist/adapters/node/index.cjs.map +0 -1
- package/dist/adapters/node/index.js.map +0 -1
- package/dist/client-KHa1WMIH.d.ts +0 -12041
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { E as ExecAdapter,
|
|
1
|
+
import { E as ExecAdapter, S as SpawnOptions, a as StreamHandler, b as SpawnResult, c as SpawnHandle, F as FsAdapter, T as TailOptions, d as TailHandle, R as RuntimeAdapters, C as CreateGitOptions, G as GitClient } from '../../client.d-PRQCR2_T.cjs';
|
|
2
|
+
import { C as Capabilities, G as Git } from '../../git.d-DrhCzWEn.cjs';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* Deno ExecAdapter implementation
|
|
@@ -10,6 +11,8 @@ import { E as ExecAdapter, C as Capabilities, S as SpawnOptions, a as StreamHand
|
|
|
10
11
|
declare class DenoExecAdapter implements ExecAdapter {
|
|
11
12
|
getCapabilities(): Capabilities;
|
|
12
13
|
spawn(options: SpawnOptions, handlers?: StreamHandler): Promise<SpawnResult>;
|
|
14
|
+
spawnBytes(options: SpawnOptions, handlers?: Pick<StreamHandler, 'onStderr'>): Promise<SpawnResult<Uint8Array>>;
|
|
15
|
+
private spawnResult;
|
|
13
16
|
spawnStreaming(options: SpawnOptions): SpawnHandle;
|
|
14
17
|
}
|
|
15
18
|
|
|
@@ -21,7 +24,10 @@ declare class DenoExecAdapter implements ExecAdapter {
|
|
|
21
24
|
*/
|
|
22
25
|
|
|
23
26
|
declare class DenoFsAdapter implements FsAdapter {
|
|
27
|
+
/** Private directories created by createTempFile, keyed by the returned file path. */
|
|
28
|
+
private readonly tempFileDirs;
|
|
24
29
|
createTempFile(prefix?: string): Promise<string>;
|
|
30
|
+
createTempDirectory(prefix?: string): Promise<string>;
|
|
25
31
|
tail(options: TailOptions): Promise<void>;
|
|
26
32
|
deleteFile(filePath: string): Promise<void>;
|
|
27
33
|
deleteDirectory(dirPath: string): Promise<void>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { E as ExecAdapter,
|
|
1
|
+
import { E as ExecAdapter, S as SpawnOptions, a as StreamHandler, b as SpawnResult, c as SpawnHandle, F as FsAdapter, T as TailOptions, d as TailHandle, R as RuntimeAdapters, C as CreateGitOptions, G as GitClient } from '../../client.d-Cs32YZX6.js';
|
|
2
|
+
import { C as Capabilities, G as Git } from '../../git.d-DrhCzWEn.cjs';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* Deno ExecAdapter implementation
|
|
@@ -10,6 +11,8 @@ import { E as ExecAdapter, C as Capabilities, S as SpawnOptions, a as StreamHand
|
|
|
10
11
|
declare class DenoExecAdapter implements ExecAdapter {
|
|
11
12
|
getCapabilities(): Capabilities;
|
|
12
13
|
spawn(options: SpawnOptions, handlers?: StreamHandler): Promise<SpawnResult>;
|
|
14
|
+
spawnBytes(options: SpawnOptions, handlers?: Pick<StreamHandler, 'onStderr'>): Promise<SpawnResult<Uint8Array>>;
|
|
15
|
+
private spawnResult;
|
|
13
16
|
spawnStreaming(options: SpawnOptions): SpawnHandle;
|
|
14
17
|
}
|
|
15
18
|
|
|
@@ -21,7 +24,10 @@ declare class DenoExecAdapter implements ExecAdapter {
|
|
|
21
24
|
*/
|
|
22
25
|
|
|
23
26
|
declare class DenoFsAdapter implements FsAdapter {
|
|
27
|
+
/** Private directories created by createTempFile, keyed by the returned file path. */
|
|
28
|
+
private readonly tempFileDirs;
|
|
24
29
|
createTempFile(prefix?: string): Promise<string>;
|
|
30
|
+
createTempDirectory(prefix?: string): Promise<string>;
|
|
25
31
|
tail(options: TailOptions): Promise<void>;
|
|
26
32
|
deleteFile(filePath: string): Promise<void>;
|
|
27
33
|
deleteDirectory(dirPath: string): Promise<void>;
|