@emulsify/cli 1.11.4 → 1.12.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.
Files changed (147) hide show
  1. package/dist/node_modules/.package-lock.json +34 -24
  2. package/dist/node_modules/@types/node/README.md +2 -2
  3. package/dist/node_modules/@types/node/assert.d.ts +23 -1
  4. package/dist/node_modules/@types/node/async_hooks.d.ts +64 -0
  5. package/dist/node_modules/@types/node/buffer.buffer.d.ts +124 -38
  6. package/dist/node_modules/@types/node/buffer.d.ts +19 -17
  7. package/dist/node_modules/@types/node/child_process.d.ts +88 -161
  8. package/dist/node_modules/@types/node/cluster.d.ts +5 -6
  9. package/dist/node_modules/@types/node/constants.d.ts +14 -12
  10. package/dist/node_modules/@types/node/crypto.d.ts +237 -166
  11. package/dist/node_modules/@types/node/dgram.d.ts +15 -14
  12. package/dist/node_modules/@types/node/diagnostics_channel.d.ts +39 -15
  13. package/dist/node_modules/@types/node/dns/promises.d.ts +11 -9
  14. package/dist/node_modules/@types/node/dns.d.ts +28 -21
  15. package/dist/node_modules/@types/node/events.d.ts +81 -35
  16. package/dist/node_modules/@types/node/fs/promises.d.ts +61 -36
  17. package/dist/node_modules/@types/node/fs.d.ts +251 -193
  18. package/dist/node_modules/@types/node/globals.d.ts +146 -442
  19. package/dist/node_modules/@types/node/globals.typedarray.d.ts +17 -0
  20. package/dist/node_modules/@types/node/http.d.ts +136 -31
  21. package/dist/node_modules/@types/node/http2.d.ts +102 -26
  22. package/dist/node_modules/@types/node/https.d.ts +94 -60
  23. package/dist/node_modules/@types/node/index.d.ts +5 -3
  24. package/dist/node_modules/@types/node/{inspector.d.ts → inspector.generated.d.ts} +272 -2
  25. package/dist/node_modules/@types/node/module.d.ts +362 -138
  26. package/dist/node_modules/@types/node/net.d.ts +27 -20
  27. package/dist/node_modules/@types/node/os.d.ts +14 -3
  28. package/dist/node_modules/@types/node/package.json +4 -89
  29. package/dist/node_modules/@types/node/perf_hooks.d.ts +37 -10
  30. package/dist/node_modules/@types/node/process.d.ts +108 -35
  31. package/dist/node_modules/@types/node/querystring.d.ts +2 -3
  32. package/dist/node_modules/@types/node/readline/promises.d.ts +1 -1
  33. package/dist/node_modules/@types/node/stream/consumers.d.ts +33 -7
  34. package/dist/node_modules/@types/node/stream/web.d.ts +13 -4
  35. package/dist/node_modules/@types/node/stream.d.ts +963 -1014
  36. package/dist/node_modules/@types/node/string_decoder.d.ts +2 -2
  37. package/dist/node_modules/@types/node/test.d.ts +1504 -1655
  38. package/dist/node_modules/@types/node/timers/promises.d.ts +28 -17
  39. package/dist/node_modules/@types/node/timers.d.ts +157 -111
  40. package/dist/node_modules/@types/node/tls.d.ts +105 -67
  41. package/dist/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +120 -37
  42. package/dist/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +15 -0
  43. package/dist/node_modules/@types/node/ts5.6/index.d.ts +5 -3
  44. package/dist/node_modules/@types/node/url.d.ts +10 -1
  45. package/dist/node_modules/@types/node/util.d.ts +28 -3
  46. package/dist/node_modules/@types/node/v8.d.ts +6 -5
  47. package/dist/node_modules/@types/node/vm.d.ts +147 -68
  48. package/dist/node_modules/@types/node/wasi.d.ts +1 -1
  49. package/dist/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
  50. package/dist/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
  51. package/dist/node_modules/@types/node/web-globals/events.d.ts +97 -0
  52. package/dist/node_modules/@types/node/web-globals/fetch.d.ts +46 -0
  53. package/dist/node_modules/@types/node/worker_threads.d.ts +60 -39
  54. package/dist/node_modules/@types/node/zlib.d.ts +21 -20
  55. package/dist/node_modules/debug/package.json +7 -3
  56. package/dist/node_modules/debug/src/browser.js +2 -1
  57. package/dist/node_modules/debug/src/common.js +57 -39
  58. package/dist/node_modules/fast-uri/.github/dependabot.yml +1 -1
  59. package/dist/node_modules/fast-uri/.github/workflows/ci.yml +81 -3
  60. package/dist/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +6 -2
  61. package/dist/node_modules/fast-uri/LICENSE +3 -1
  62. package/dist/node_modules/fast-uri/README.md +55 -37
  63. package/dist/node_modules/fast-uri/benchmark/benchmark.mjs +159 -0
  64. package/dist/node_modules/fast-uri/benchmark/equal.mjs +51 -0
  65. package/dist/node_modules/fast-uri/benchmark/non-simple-domain.mjs +22 -0
  66. package/dist/node_modules/fast-uri/benchmark/package.json +17 -0
  67. package/dist/node_modules/fast-uri/benchmark/string-array-to-hex-stripped.mjs +24 -0
  68. package/dist/node_modules/fast-uri/benchmark/ws-is-secure.mjs +65 -0
  69. package/dist/node_modules/fast-uri/eslint.config.js +6 -0
  70. package/dist/node_modules/fast-uri/index.js +98 -61
  71. package/dist/node_modules/fast-uri/lib/schemes.js +160 -81
  72. package/dist/node_modules/fast-uri/lib/utils.js +217 -123
  73. package/dist/node_modules/fast-uri/package.json +44 -14
  74. package/dist/node_modules/fast-uri/test/ajv.test.js +7 -3
  75. package/dist/node_modules/fast-uri/test/equal.test.js +7 -2
  76. package/dist/node_modules/fast-uri/test/fixtures/uri-js-parse.json +501 -0
  77. package/dist/node_modules/fast-uri/test/fixtures/uri-js-serialize.json +120 -0
  78. package/dist/node_modules/fast-uri/test/parse.test.js +31 -31
  79. package/dist/node_modules/fast-uri/test/resolve.test.js +52 -49
  80. package/dist/node_modules/fast-uri/test/rfc-3986.test.js +90 -0
  81. package/dist/node_modules/fast-uri/test/serialize.test.js +55 -47
  82. package/dist/node_modules/fast-uri/test/uri-js-compatibility.test.js +33 -0
  83. package/dist/node_modules/fast-uri/test/uri-js.test.js +230 -230
  84. package/dist/node_modules/fast-uri/test/util.test.js +23 -8
  85. package/dist/node_modules/fast-uri/tsconfig.json +9 -0
  86. package/dist/node_modules/fast-uri/types/index.d.ts +16 -9
  87. package/dist/node_modules/fast-uri/types/index.test-d.ts +9 -9
  88. package/dist/node_modules/fs-extra/LICENSE +1 -1
  89. package/dist/node_modules/fs-extra/README.md +3 -1
  90. package/dist/node_modules/fs-extra/lib/copy/copy-sync.js +11 -1
  91. package/dist/node_modules/fs-extra/lib/copy/copy.js +13 -15
  92. package/dist/node_modules/fs-extra/lib/fs/index.js +6 -0
  93. package/dist/node_modules/fs-extra/lib/util/async.js +29 -0
  94. package/dist/node_modules/fs-extra/lib/util/stat.js +2 -1
  95. package/dist/node_modules/fs-extra/package.json +1 -1
  96. package/dist/node_modules/jsonfile/README.md +1 -1
  97. package/dist/node_modules/jsonfile/index.js +3 -3
  98. package/dist/node_modules/jsonfile/package.json +1 -1
  99. package/dist/node_modules/simple-git/dist/cjs/index.js +235 -235
  100. package/dist/node_modules/simple-git/dist/cjs/index.js.map +3 -3
  101. package/dist/node_modules/simple-git/dist/esm/index.js +229 -233
  102. package/dist/node_modules/simple-git/dist/esm/index.js.map +3 -3
  103. package/dist/node_modules/simple-git/dist/src/lib/git-logger.d.ts +1 -1
  104. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-branch.d.ts +1 -1
  105. package/dist/node_modules/simple-git/dist/src/lib/plugins/error-detection.plugin.d.ts +2 -3
  106. package/dist/node_modules/simple-git/dist/src/lib/plugins/simple-git-plugin.d.ts +2 -3
  107. package/dist/node_modules/simple-git/dist/src/lib/plugins/spawn-options-plugin.d.ts +0 -1
  108. package/dist/node_modules/simple-git/dist/src/lib/runners/scheduler.d.ts +1 -1
  109. package/dist/node_modules/simple-git/dist/src/lib/runners/tasks-pending-queue.d.ts +2 -2
  110. package/dist/node_modules/simple-git/dist/src/lib/tasks/apply-patch.d.ts +1 -1
  111. package/dist/node_modules/simple-git/dist/src/lib/tasks/clean.d.ts +1 -1
  112. package/dist/node_modules/simple-git/dist/src/lib/tasks/clone.d.ts +1 -1
  113. package/dist/node_modules/simple-git/dist/src/lib/tasks/log.d.ts +3 -3
  114. package/dist/node_modules/simple-git/dist/src/lib/tasks/push.d.ts +1 -1
  115. package/dist/node_modules/simple-git/dist/src/lib/tasks/remote.d.ts +4 -2
  116. package/dist/node_modules/simple-git/dist/src/lib/tasks/reset.d.ts +3 -3
  117. package/dist/node_modules/simple-git/dist/src/lib/tasks/stash-list.d.ts +1 -1
  118. package/dist/node_modules/simple-git/dist/src/lib/tasks/task.d.ts +2 -2
  119. package/dist/node_modules/simple-git/dist/src/lib/types/handlers.d.ts +1 -1
  120. package/dist/node_modules/simple-git/dist/src/lib/types/index.d.ts +9 -13
  121. package/dist/node_modules/simple-git/dist/src/lib/types/tasks.d.ts +5 -6
  122. package/dist/node_modules/simple-git/dist/src/lib/utils/argument-filters.d.ts +5 -7
  123. package/dist/node_modules/simple-git/dist/src/lib/utils/git-output-streams.d.ts +0 -1
  124. package/dist/node_modules/simple-git/dist/src/lib/utils/line-parser.d.ts +1 -1
  125. package/dist/node_modules/simple-git/dist/src/lib/utils/task-options.d.ts +1 -1
  126. package/dist/node_modules/simple-git/dist/src/lib/utils/util.d.ts +11 -10
  127. package/dist/node_modules/simple-git/package.json +6 -6
  128. package/dist/node_modules/simple-git/readme.md +8 -0
  129. package/dist/node_modules/undici-types/dispatcher.d.ts +1 -0
  130. package/dist/node_modules/undici-types/eventsource.d.ts +0 -2
  131. package/dist/node_modules/undici-types/filereader.d.ts +1 -1
  132. package/dist/node_modules/undici-types/interceptors.d.ts +3 -1
  133. package/dist/node_modules/undici-types/package.json +1 -1
  134. package/dist/node_modules/undici-types/patch.d.ts +0 -38
  135. package/dist/node_modules/undici-types/readable.d.ts +5 -0
  136. package/dist/node_modules/undici-types/webidl.d.ts +6 -0
  137. package/dist/node_modules/undici-types/websocket.d.ts +0 -2
  138. package/dist/package-lock.json +911 -812
  139. package/dist/package.json +1 -1
  140. package/dist/util/getAvailableStarters.js +2 -2
  141. package/package.json +1 -1
  142. package/dist/node_modules/@types/node/dom-events.d.ts +0 -124
  143. package/dist/node_modules/fast-uri/benchmark.js +0 -105
  144. package/dist/node_modules/fast-uri/lib/scopedChars.js +0 -30
  145. package/dist/node_modules/fast-uri/test/.gitkeep +0 -0
  146. package/dist/node_modules/fast-uri/test/compatibility.test.js +0 -131
  147. package/dist/node_modules/jsonfile/CHANGELOG.md +0 -171
@@ -1,5 +1,5 @@
1
1
  import { Debugger } from 'debug';
2
- declare type OutputLoggingHandler = (message: string, ...args: any[]) => void;
2
+ type OutputLoggingHandler = (message: string, ...args: any[]) => void;
3
3
  export interface OutputLogger extends OutputLoggingHandler {
4
4
  readonly label: string;
5
5
  info: OutputLoggingHandler;
@@ -1,2 +1,2 @@
1
1
  import type { BranchSummary } from '../../../typings';
2
- export declare function parseBranchSummary(stdOut: string): BranchSummary;
2
+ export declare function parseBranchSummary(stdOut: string, currentOnly?: boolean): BranchSummary;
@@ -1,8 +1,7 @@
1
- /// <reference types="node" />
2
1
  import { GitExecutorResult, SimpleGitPluginConfig } from '../types';
3
2
  import { SimpleGitPlugin } from './simple-git-plugin';
4
- declare type TaskResult = Omit<GitExecutorResult, 'rejection'>;
3
+ type TaskResult = Omit<GitExecutorResult, 'rejection'>;
5
4
  declare function isTaskError(result: TaskResult): boolean;
6
- export declare function errorDetectionHandler(overwrite?: boolean, isError?: typeof isTaskError, errorMessage?: (result: TaskResult) => Buffer | Error): (error: Buffer | Error | undefined, result: TaskResult) => Error | Buffer | undefined;
5
+ export declare function errorDetectionHandler(overwrite?: boolean, isError?: typeof isTaskError, errorMessage?: (result: TaskResult) => Buffer | Error): (error: Buffer | Error | undefined, result: TaskResult) => Error | Buffer<ArrayBufferLike> | undefined;
7
6
  export declare function errorDetectionPlugin(config: SimpleGitPluginConfig['errors']): SimpleGitPlugin<'task.error'>;
8
7
  export {};
@@ -1,7 +1,6 @@
1
- /// <reference types="node" />
2
1
  import { ChildProcess, SpawnOptions } from 'child_process';
3
2
  import { GitExecutorResult } from '../types';
4
- declare type SimpleGitTaskPluginContext = {
3
+ type SimpleGitTaskPluginContext = {
5
4
  readonly method: string;
6
5
  readonly commands: string[];
7
6
  };
@@ -39,7 +38,7 @@ export interface SimpleGitPluginTypes {
39
38
  context: SimpleGitTaskPluginContext & GitExecutorResult;
40
39
  };
41
40
  }
42
- export declare type SimpleGitPluginType = keyof SimpleGitPluginTypes;
41
+ export type SimpleGitPluginType = keyof SimpleGitPluginTypes;
43
42
  export interface SimpleGitPlugin<T extends SimpleGitPluginType> {
44
43
  action(data: SimpleGitPluginTypes[T]['data'], context: SimpleGitPluginTypes[T]['context']): typeof data;
45
44
  type: T;
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { SpawnOptions } from 'child_process';
3
2
  import { SimpleGitPlugin } from './simple-git-plugin';
4
3
  export declare function spawnOptionsPlugin(spawnOptions: Partial<SpawnOptions>): SimpleGitPlugin<'spawn.options'>;
@@ -1,4 +1,4 @@
1
- declare type ScheduleCompleteCallback = () => void;
1
+ type ScheduleCompleteCallback = () => void;
2
2
  export declare class Scheduler {
3
3
  private concurrency;
4
4
  private logger;
@@ -1,8 +1,8 @@
1
1
  import { SimpleGitTask } from '../types';
2
2
  import { GitError } from '../errors/git-error';
3
3
  import { OutputLogger } from '../git-logger';
4
- declare type AnySimpleGitTask = SimpleGitTask<any>;
5
- declare type TaskInProgress = {
4
+ type AnySimpleGitTask = SimpleGitTask<any>;
5
+ type TaskInProgress = {
6
6
  name: string;
7
7
  logger: OutputLogger;
8
8
  task: AnySimpleGitTask;
@@ -1,3 +1,3 @@
1
1
  import { OptionFlags, Options, StringTask } from '../types';
2
- export declare type ApplyOptions = Options & OptionFlags<'--stat' | '--numstat' | '--summary' | '--check' | '--index' | '--intent-to-add' | '--3way' | '--apply' | '--no-add' | '-R' | '--reverse' | '--allow-binary-replacement' | '--binary' | '--reject' | '-z' | '--inaccurate-eof' | '--recount' | '--cached' | '--ignore-space-change' | '--ignore-whitespace' | '--verbose' | '--unsafe-paths'> & OptionFlags<'--whitespace', 'nowarn' | 'warn' | 'fix' | 'error' | 'error-all'> & OptionFlags<'--build-fake-ancestor' | '--exclude' | '--include' | '--directory', string> & OptionFlags<'-p' | '-C', number>;
2
+ export type ApplyOptions = Options & OptionFlags<'--stat' | '--numstat' | '--summary' | '--check' | '--index' | '--intent-to-add' | '--3way' | '--apply' | '--no-add' | '-R' | '--reverse' | '--allow-binary-replacement' | '--binary' | '--reject' | '-z' | '--inaccurate-eof' | '--recount' | '--cached' | '--ignore-space-change' | '--ignore-whitespace' | '--verbose' | '--unsafe-paths'> & OptionFlags<'--whitespace', 'nowarn' | 'warn' | 'fix' | 'error' | 'error-all'> & OptionFlags<'--build-fake-ancestor' | '--exclude' | '--include' | '--directory', string> & OptionFlags<'-p' | '-C', number>;
3
3
  export declare function applyPatchTask(patches: string[], customArgs: string[]): StringTask<string>;
@@ -19,7 +19,7 @@ export declare enum CleanOptions {
19
19
  * The two modes `git.clean` can run in - one of these must be supplied in order
20
20
  * for the command to not throw a `TaskConfigurationError`
21
21
  */
22
- export declare type CleanMode = CleanOptions.FORCE | CleanOptions.DRY_RUN;
22
+ export type CleanMode = CleanOptions.FORCE | CleanOptions.DRY_RUN;
23
23
  export declare function cleanWithOptionsTask(mode: CleanMode | string, customArgs: string[]): import("./task").EmptyTask | StringTask<CleanSummary>;
24
24
  export declare function cleanTask(mode: CleanMode, customArgs: string[]): StringTask<CleanSummary>;
25
25
  export declare function isCleanOptionsArray(input: string[]): input is CleanOptions[];
@@ -1,5 +1,5 @@
1
1
  import { EmptyTask } from './task';
2
2
  import { OptionFlags, Options, StringTask } from '../types';
3
- export declare type CloneOptions = Options & OptionFlags<'--bare' | '--dissociate' | '--mirror' | '--no-checkout' | '--no-remote-submodules' | '--no-shallow-submodules' | '--no-single-branch' | '--no-tags' | '--remote-submodules' | '--single-branch' | '--shallow-submodules' | '--verbose'> & OptionFlags<'--depth' | '-j' | '--jobs', number> & OptionFlags<'--branch' | '--origin' | '--recurse-submodules' | '--separate-git-dir' | '--shallow-exclude' | '--shallow-since' | '--template', string>;
3
+ export type CloneOptions = Options & OptionFlags<'--bare' | '--dissociate' | '--mirror' | '--no-checkout' | '--no-remote-submodules' | '--no-shallow-submodules' | '--no-single-branch' | '--no-tags' | '--remote-submodules' | '--single-branch' | '--shallow-submodules' | '--verbose'> & OptionFlags<'--depth' | '-j' | '--jobs', number> & OptionFlags<'--branch' | '--origin' | '--recurse-submodules' | '--separate-git-dir' | '--shallow-exclude' | '--shallow-since' | '--template', string>;
4
4
  export declare function cloneTask(repo: string | undefined, directory: string | undefined, customArgs: string[]): StringTask<string> | EmptyTask;
5
5
  export declare function cloneMirrorTask(repo: string | undefined, directory: string | undefined, customArgs: string[]): EmptyTask | StringTask<string>;
@@ -1,5 +1,5 @@
1
- import type { Options, StringTask } from '../types';
2
- import type { LogResult, SimpleGit } from '../../../typings';
1
+ import type { LogResult, Options, SimpleGit } from '../../../typings';
2
+ import { StringTask } from '../types';
3
3
  export interface DefaultLogFields {
4
4
  hash: string;
5
5
  date: string;
@@ -9,7 +9,7 @@ export interface DefaultLogFields {
9
9
  author_name: string;
10
10
  author_email: string;
11
11
  }
12
- export declare type LogOptions<T = DefaultLogFields> = {
12
+ export type LogOptions<T = DefaultLogFields> = {
13
13
  file?: string;
14
14
  format?: T;
15
15
  from?: string;
@@ -1,6 +1,6 @@
1
1
  import { PushResult } from '../../../typings';
2
2
  import { StringTask } from '../types';
3
- declare type PushRef = {
3
+ type PushRef = {
4
4
  remote?: string;
5
5
  branch?: string;
6
6
  };
@@ -1,6 +1,8 @@
1
- import { StringTask } from '../types';
1
+ import { type RemoteWithoutRefs, type RemoteWithRefs } from '../responses/GetRemoteSummary';
2
+ import type { StringTask } from '../types';
2
3
  export declare function addRemoteTask(remoteName: string, remoteRepo: string, customArgs: string[]): StringTask<string>;
3
- export declare function getRemotesTask(verbose: boolean): StringTask<any>;
4
+ export declare function getRemotesTask(verbose: true): StringTask<RemoteWithRefs[]>;
5
+ export declare function getRemotesTask(verbose: false): StringTask<RemoteWithoutRefs[]>;
4
6
  export declare function listRemotesTask(customArgs: string[]): StringTask<string>;
5
7
  export declare function remoteTask(customArgs: string[]): StringTask<string>;
6
8
  export declare function removeRemoteTask(remoteName: string): StringTask<string>;
@@ -1,4 +1,4 @@
1
- import { Maybe, OptionFlags, Options } from '../types';
1
+ import type { Maybe, OptionFlags, Options } from '../types';
2
2
  export declare enum ResetMode {
3
3
  MIXED = "mixed",
4
4
  SOFT = "soft",
@@ -6,6 +6,6 @@ export declare enum ResetMode {
6
6
  MERGE = "merge",
7
7
  KEEP = "keep"
8
8
  }
9
- export declare type ResetOptions = Options & OptionFlags<'-q' | '--quiet' | '--no-quiet' | '--pathspec-from-nul'> & OptionFlags<'--pathspec-from-file', string>;
9
+ export type ResetOptions = Options & OptionFlags<'-q' | '--quiet' | '--no-quiet' | '--pathspec-from-nul'> & OptionFlags<'--pathspec-from-file', string>;
10
10
  export declare function resetTask(mode: Maybe<ResetMode>, customArgs: string[]): import("../types").StringTask<string>;
11
- export declare function getResetMode(mode: ResetMode | any): Maybe<ResetMode>;
11
+ export declare function getResetMode(mode: ResetMode | unknown): Maybe<ResetMode>;
@@ -1,4 +1,4 @@
1
1
  import { LogOptions, LogResult } from '../../../typings';
2
2
  import type { StringTask } from '../types';
3
3
  import type { EmptyTask } from './task';
4
- export declare function stashListTask(opt: LogOptions<import("./log").DefaultLogFields> | undefined, customArgs: string[]): EmptyTask | StringTask<LogResult>;
4
+ export declare function stashListTask(opt: LogOptions | undefined, customArgs: string[]): EmptyTask | StringTask<LogResult>;
@@ -1,6 +1,6 @@
1
1
  import type { BufferTask, EmptyTaskParser, SimpleGitTask, StringTask } from '../types';
2
2
  export declare const EMPTY_COMMANDS: [];
3
- export declare type EmptyTask = {
3
+ export type EmptyTask = {
4
4
  commands: typeof EMPTY_COMMANDS;
5
5
  format: 'empty';
6
6
  parser: EmptyTaskParser;
@@ -9,6 +9,6 @@ export declare type EmptyTask = {
9
9
  export declare function adhocExecTask(parser: EmptyTaskParser): EmptyTask;
10
10
  export declare function configurationErrorTask(error: Error | string): EmptyTask;
11
11
  export declare function straightThroughStringTask(commands: string[], trimmed?: boolean): StringTask<string>;
12
- export declare function straightThroughBufferTask(commands: string[]): BufferTask<any>;
12
+ export declare function straightThroughBufferTask(commands: string[]): BufferTask<Buffer>;
13
13
  export declare function isBufferTask<R>(task: SimpleGitTask<R>): task is BufferTask<R>;
14
14
  export declare function isEmptyTask<R>(task: SimpleGitTask<R>): task is EmptyTask;
@@ -3,7 +3,7 @@ import { GitError } from '../errors/git-error';
3
3
  * The node-style callback to a task accepts either two arguments with the first as a null
4
4
  * and the second as the data, or just one argument which is an error.
5
5
  */
6
- export declare type SimpleGitTaskCallback<T = string, E extends GitError = GitError> = (err: E | null, data: T) => void;
6
+ export type SimpleGitTaskCallback<T = string, E extends GitError = GitError> = (err: E | null, data: T) => void;
7
7
  /**
8
8
  * The event data emitted to the progress handler whenever progress detail is received.
9
9
  */
@@ -1,7 +1,3 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
- /// <reference types="node" />
4
- /// <reference types="node" />
5
1
  import type { SpawnOptions } from 'child_process';
6
2
  import type { SimpleGitTask } from './tasks';
7
3
  import type { SimpleGitProgressEvent } from './handlers';
@@ -13,23 +9,23 @@ export * from './tasks';
13
9
  * tasks will not accept both formats at the same time, preferring whichever
14
10
  * appears last in the arguments.
15
11
  */
16
- export declare type TaskOptions<O extends Options = Options> = string[] | O;
12
+ export type TaskOptions<O extends Options = Options> = string[] | O;
17
13
  /**
18
14
  * Options supplied in most tasks as an optional trailing object
19
15
  */
20
- export declare type OptionsValues = null | string | number;
21
- export declare type Options = Record<string, OptionsValues>;
22
- export declare type OptionFlags<FLAGS extends string, VALUE = null> = Partial<Record<FLAGS, VALUE>>;
16
+ export type OptionsValues = null | string | number | (string | number)[];
17
+ export type Options = Record<string, OptionsValues>;
18
+ export type OptionFlags<FLAGS extends string, VALUE = null> = Partial<Record<FLAGS, VALUE>>;
23
19
  /**
24
20
  * A function called by the executor immediately after creating a child
25
21
  * process. Allows the calling application to implement custom handling of
26
22
  * the incoming stream of data from the `git`.
27
23
  */
28
- export declare type outputHandler = (command: string, stdout: NodeJS.ReadableStream, stderr: NodeJS.ReadableStream, args: string[]) => void;
24
+ export type outputHandler = (command: string, stdout: NodeJS.ReadableStream, stderr: NodeJS.ReadableStream, args: string[]) => void;
29
25
  /**
30
26
  * Environment variables to be passed into the child process.
31
27
  */
32
- export declare type GitExecutorEnv = NodeJS.ProcessEnv | undefined;
28
+ export type GitExecutorEnv = NodeJS.ProcessEnv | undefined;
33
29
  /**
34
30
  * Public interface of the Executor
35
31
  */
@@ -153,6 +149,6 @@ export interface SimpleGitOptions extends Partial<SimpleGitPluginConfig> {
153
149
  */
154
150
  trimmed: boolean;
155
151
  }
156
- export declare type Maybe<T> = T | undefined;
157
- export declare type MaybeArray<T> = T | T[];
158
- export declare type Primitives = string | number | boolean;
152
+ export type Maybe<T> = T | undefined;
153
+ export type MaybeArray<T> = T | T[];
154
+ export type Primitives = string | number | boolean;
@@ -1,7 +1,6 @@
1
- /// <reference types="node" />
2
1
  import { GitExecutorResult, SimpleGitExecutor } from './index';
3
2
  import { EmptyTask } from '../tasks/task';
4
- export declare type TaskResponseFormat = Buffer | string;
3
+ export type TaskResponseFormat = Buffer | string;
5
4
  export interface TaskParser<INPUT extends TaskResponseFormat, RESPONSE> {
6
5
  (stdOut: INPUT, stdErr: INPUT): RESPONSE;
7
6
  }
@@ -14,7 +13,7 @@ export interface SimpleGitTaskConfiguration<RESPONSE, FORMAT, INPUT extends Task
14
13
  parser: TaskParser<INPUT, RESPONSE>;
15
14
  onError?: (result: GitExecutorResult, error: Error, done: (result: Buffer | Buffer[]) => void, fail: (error: string | Error) => void) => void;
16
15
  }
17
- export declare type StringTask<R> = SimpleGitTaskConfiguration<R, 'utf-8', string>;
18
- export declare type BufferTask<R> = SimpleGitTaskConfiguration<R, 'buffer', Buffer>;
19
- export declare type RunnableTask<R> = StringTask<R> | BufferTask<R>;
20
- export declare type SimpleGitTask<R> = RunnableTask<R> | EmptyTask;
16
+ export type StringTask<R> = SimpleGitTaskConfiguration<R, 'utf-8', string>;
17
+ export type BufferTask<R> = SimpleGitTaskConfiguration<R, 'buffer', Buffer>;
18
+ export type RunnableTask<R> = StringTask<R> | BufferTask<R>;
19
+ export type SimpleGitTask<R> = RunnableTask<R> | EmptyTask;
@@ -1,16 +1,14 @@
1
- import { Options, Primitives } from '../types';
2
- export interface ArgumentFilterPredicate<T> {
3
- (input: any): input is T;
4
- }
1
+ import type { Options, Primitives } from '../types';
2
+ export type ArgumentFilterPredicate<T> = (input: T | unknown) => input is T;
5
3
  export declare function filterType<T, K>(input: K, filter: ArgumentFilterPredicate<T>): K extends T ? T : undefined;
6
4
  export declare function filterType<T, K>(input: K, filter: ArgumentFilterPredicate<T>, def: T): T;
7
- export declare const filterArray: ArgumentFilterPredicate<Array<any>>;
5
+ export declare const filterArray: ArgumentFilterPredicate<Array<unknown>>;
8
6
  export declare function filterPrimitives(input: unknown, omit?: Array<'boolean' | 'string' | 'number'>): input is Primitives;
7
+ export declare const filterNumber: ArgumentFilterPredicate<number>;
9
8
  export declare const filterString: ArgumentFilterPredicate<string>;
10
- export declare const filterStringArray: ArgumentFilterPredicate<string[]>;
11
9
  export declare const filterStringOrStringArray: ArgumentFilterPredicate<string | string[]>;
12
10
  export declare function filterPlainObject<T extends Options>(input: T | unknown): input is T;
13
- export declare function filterFunction(input: unknown): input is Function;
11
+ export declare function filterFunction(input: unknown): input is (...args: unknown[]) => unknown;
14
12
  export declare const filterHasLength: ArgumentFilterPredicate<{
15
13
  length: number;
16
14
  }>;
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { TaskResponseFormat } from '../types';
3
2
  export declare class GitOutputStreams<T extends TaskResponseFormat = Buffer> {
4
3
  readonly stdOut: T;
@@ -1,9 +1,9 @@
1
1
  export declare class LineParser<T> {
2
2
  protected matches: string[];
3
+ protected useMatches: (target: T, match: string[]) => boolean | void;
3
4
  private _regExp;
4
5
  constructor(regExp: RegExp | RegExp[], useMatches?: (target: T, match: string[]) => boolean | void);
5
6
  parse: (line: (offset: number) => string | undefined, target: T) => boolean;
6
- protected useMatches(target: T, match: string[]): boolean | void;
7
7
  protected resetMatches(): void;
8
8
  protected prepareMatches(): string[];
9
9
  protected addMatch(reg: RegExp, index: number, line?: string): boolean;
@@ -10,4 +10,4 @@ export declare function trailingOptionsArgument(args: IArguments): Maybe<Options
10
10
  * Returns either the source argument when it is a `Function`, or the default
11
11
  * `NOOP` function constant
12
12
  */
13
- export declare function trailingFunctionArgument(args: unknown[] | IArguments | unknown, includeNoop?: boolean): Maybe<(...args: any[]) => unknown>;
13
+ export declare function trailingFunctionArgument(args: unknown[] | IArguments | unknown, includeNoop?: boolean): Maybe<(...args: unknown[]) => unknown>;
@@ -1,25 +1,26 @@
1
- /// <reference types="node" />
2
- import { Maybe } from '../types';
1
+ import { Buffer } from 'node:buffer';
2
+ import type { Maybe } from '../types';
3
+ type Callable = (...args: unknown[]) => unknown;
3
4
  export declare const NULL = "\0";
4
- export declare const NOOP: (...args: any[]) => void;
5
+ export declare const NOOP: Callable;
5
6
  /**
6
7
  * Returns either the source argument when it is a `Function`, or the default
7
8
  * `NOOP` function constant
8
9
  */
9
- export declare function asFunction<T extends () => any>(source: T | any): T;
10
+ export declare function asFunction<T>(source: T | unknown): Callable;
10
11
  /**
11
12
  * Determines whether the supplied argument is both a function, and is not
12
13
  * the `NOOP` function.
13
14
  */
14
- export declare function isUserFunction<T extends Function>(source: T | any): source is T;
15
+ export declare function isUserFunction<T extends Function>(source: T | unknown): source is T;
15
16
  export declare function splitOn(input: string, char: string): [string, string];
16
- export declare function first<T extends any[]>(input: T, offset?: number): Maybe<T[number]>;
17
+ export declare function first<T extends unknown[]>(input: T, offset?: number): Maybe<T[number]>;
17
18
  export declare function first<T extends IArguments>(input: T, offset?: number): Maybe<unknown>;
18
- export declare function last<T extends any[]>(input: T, offset?: number): Maybe<T[number]>;
19
+ export declare function last<T extends unknown[]>(input: T, offset?: number): Maybe<T[number]>;
19
20
  export declare function last<T extends IArguments>(input: T, offset?: number): Maybe<unknown>;
20
21
  export declare function last<T>(input: T, offset?: number): Maybe<unknown>;
21
22
  export declare function toLinesWithContent(input?: string, trimmed?: boolean, separator?: string): string[];
22
- declare type LineWithContentCallback<T = void> = (line: string) => T;
23
+ type LineWithContentCallback<T = void> = (line: string) => T;
23
24
  export declare function forEachLineWithContent<T>(input: string, callback: LineWithContentCallback<T>): T[];
24
25
  export declare function folderExists(path: string): boolean;
25
26
  /**
@@ -31,7 +32,7 @@ export declare function append<T>(target: T[] | Set<T>, item: T): typeof item;
31
32
  */
32
33
  export declare function including<T>(target: T[], item: T): typeof target;
33
34
  export declare function remove<T>(target: Set<T> | T[], item: T): T;
34
- export declare const objectToString: (input: any) => string;
35
+ export declare const objectToString: (input: unknown) => string;
35
36
  export declare function asArray<T>(source: T | T[]): T[];
36
37
  export declare function asCamelCase(str: string): string;
37
38
  export declare function asStringArray<T>(source: T | T[]): string[];
@@ -41,7 +42,7 @@ export declare function bufferToString(input: Buffer | Buffer[]): string;
41
42
  /**
42
43
  * Get a new object from a source object with only the listed properties.
43
44
  */
44
- export declare function pick(source: Record<string, any>, properties: string[]): any;
45
+ export declare function pick<T, K extends keyof T>(source: T, properties: readonly K[]): Partial<Pick<T, K>>;
45
46
  export declare function delay(duration?: number): Promise<void>;
46
47
  export declare function orVoid<T>(input: T | false): T | undefined;
47
48
  export {};
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "simple-git",
3
3
  "description": "Simple GIT interface for node.js",
4
- "version": "3.27.0",
4
+ "version": "3.30.0",
5
5
  "author": "Steve King <steve@mydev.co>",
6
6
  "contributors": [
7
7
  {
@@ -16,19 +16,19 @@
16
16
  "dependencies": {
17
17
  "@kwsites/file-exists": "^1.1.1",
18
18
  "@kwsites/promise-deferred": "^1.1.1",
19
- "debug": "^4.3.5"
19
+ "debug": "^4.4.0"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@kwsites/promise-result": "^1.1.0",
23
23
  "@simple-git/babel-config": "^1.0.0",
24
24
  "@types/debug": "^4.1.12",
25
25
  "@types/jest": "^29.2.2",
26
- "@types/node": "^22.5.1",
27
- "esbuild": "^0.14.10",
28
- "esbuild-node-externals": "^1.4.1",
26
+ "@types/node": "^22.15.30",
27
+ "esbuild": "^0.25.0",
28
+ "esbuild-node-externals": "^1.18.0",
29
29
  "jest": "^29.7.0",
30
30
  "ts-node": "^10.9.2",
31
- "typescript": "^5.5.4"
31
+ "typescript": "^5.7.3"
32
32
  },
33
33
  "keywords": [
34
34
  "git",
@@ -436,6 +436,14 @@ git.pull('origin', 'master', { '--no-rebase': null });
436
436
  git.pull('origin', 'master', { '--rebase': 'true' });
437
437
  ```
438
438
 
439
+ When the value of the property is an array of `string`s or `number`s, each element will be
440
+ included as separate `name=value` pairs:
441
+
442
+ ```javascript
443
+ // results in 'git log --grep=bug --grep=fix --grep=feature'
444
+ git.log({ '--grep': ['bug', 'fix', 'feature'] });
445
+ ```
446
+
439
447
  ### Options as an Array
440
448
 
441
449
  Options can also be supplied as an array of strings to be merged into the task's commands
@@ -244,6 +244,7 @@ declare namespace Dispatcher {
244
244
  readonly bodyUsed: boolean;
245
245
  arrayBuffer(): Promise<ArrayBuffer>;
246
246
  blob(): Promise<Blob>;
247
+ bytes(): Promise<Uint8Array>;
247
248
  formData(): Promise<never>;
248
249
  json(): Promise<unknown>;
249
250
  text(): Promise<string>;
@@ -2,8 +2,6 @@ import { MessageEvent, ErrorEvent } from './websocket'
2
2
  import Dispatcher from './dispatcher'
3
3
 
4
4
  import {
5
- EventTarget,
6
- Event,
7
5
  EventListenerOptions,
8
6
  AddEventListenerOptions,
9
7
  EventListenerOrEventListenerObject
@@ -1,7 +1,7 @@
1
1
  /// <reference types="node" />
2
2
 
3
3
  import { Blob } from 'buffer'
4
- import { DOMException, Event, EventInit, EventTarget } from './patch'
4
+ import { DOMException, EventInit } from './patch'
5
5
 
6
6
  export declare class FileReader {
7
7
  __proto__: EventTarget & FileReader
@@ -7,9 +7,11 @@ declare namespace Interceptors {
7
7
  export type DumpInterceptorOpts = { maxSize?: number }
8
8
  export type RetryInterceptorOpts = RetryHandler.RetryOptions
9
9
  export type RedirectInterceptorOpts = { maxRedirections?: number }
10
-
10
+ export type ResponseErrorInterceptorOpts = { throwOnError: boolean }
11
+
11
12
  export function createRedirectInterceptor(opts: RedirectInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
12
13
  export function dump(opts?: DumpInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
13
14
  export function retry(opts?: RetryInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
14
15
  export function redirect(opts?: RedirectInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
16
+ export function responseError(opts?: ResponseErrorInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
15
17
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "undici-types",
3
- "version": "6.19.8",
3
+ "version": "6.21.0",
4
4
  "description": "A stand-alone types package for Undici",
5
5
  "homepage": "https://undici.nodejs.org",
6
6
  "bugs": {
@@ -6,44 +6,6 @@ export type DOMException = typeof globalThis extends { DOMException: infer T }
6
6
  ? T
7
7
  : any
8
8
 
9
- export type EventTarget = typeof globalThis extends { EventTarget: infer T }
10
- ? T
11
- : {
12
- addEventListener(
13
- type: string,
14
- listener: any,
15
- options?: any,
16
- ): void
17
- dispatchEvent(event: Event): boolean
18
- removeEventListener(
19
- type: string,
20
- listener: any,
21
- options?: any | boolean,
22
- ): void
23
- }
24
-
25
- export type Event = typeof globalThis extends { Event: infer T }
26
- ? T
27
- : {
28
- readonly bubbles: boolean
29
- cancelBubble: () => void
30
- readonly cancelable: boolean
31
- readonly composed: boolean
32
- composedPath(): [EventTarget?]
33
- readonly currentTarget: EventTarget | null
34
- readonly defaultPrevented: boolean
35
- readonly eventPhase: 0 | 2
36
- readonly isTrusted: boolean
37
- preventDefault(): void
38
- returnValue: boolean
39
- readonly srcElement: EventTarget | null
40
- stopImmediatePropagation(): void
41
- stopPropagation(): void
42
- readonly target: EventTarget | null
43
- readonly timeStamp: number
44
- readonly type: string
45
- }
46
-
47
9
  export interface EventInit {
48
10
  bubbles?: boolean
49
11
  cancelable?: boolean
@@ -25,6 +25,11 @@ declare class BodyReadable extends Readable {
25
25
  */
26
26
  blob(): Promise<Blob>
27
27
 
28
+ /** Consumes and returns the body as an Uint8Array
29
+ * https://fetch.spec.whatwg.org/#dom-body-bytes
30
+ */
31
+ bytes(): Promise<Uint8Array>
32
+
28
33
  /** Consumes and returns the body as an ArrayBuffer
29
34
  * https://fetch.spec.whatwg.org/#dom-body-arraybuffer
30
35
  */
@@ -67,6 +67,12 @@ interface WebidlUtil {
67
67
  * Stringifies {@param V}
68
68
  */
69
69
  Stringify (V: any): string
70
+
71
+ /**
72
+ * Mark a value as uncloneable for Node.js.
73
+ * This is only effective in some newer Node.js versions.
74
+ */
75
+ markAsUncloneable (V: any): void
70
76
  }
71
77
 
72
78
  interface WebidlConverters {
@@ -3,8 +3,6 @@
3
3
  import type { Blob } from 'buffer'
4
4
  import type { MessagePort } from 'worker_threads'
5
5
  import {
6
- EventTarget,
7
- Event,
8
6
  EventInit,
9
7
  EventListenerOptions,
10
8
  AddEventListenerOptions,