simple-git
Advanced tools
Comparing version 3.24.0 to 3.25.0
@@ -36,2 +36,3 @@ /// <reference types="node" /> | ||
export declare function asArray<T>(source: T | T[]): T[]; | ||
export declare function asCamelCase(str: string): string; | ||
export declare function asStringArray<T>(source: T | T[]): string[]; | ||
@@ -38,0 +39,0 @@ export declare function asNumber(source: string | null | undefined, onNaN?: number): number; |
@@ -452,2 +452,9 @@ import * as resp from './response'; | ||
/** | ||
* Retrieves `git` disk usage information, see https://git-scm.com/docs/git-count-objects | ||
*/ | ||
countObjects( | ||
callback?: types.SimpleGitTaskCallback<types.VersionResult> | ||
): Response<types.CountObjectsResult>; | ||
/** | ||
* Sets the path to a custom git binary, should either be `git` when there is an installation of git available on | ||
@@ -454,0 +461,0 @@ * the system path, or a fully qualified path to the executable. |
@@ -19,2 +19,3 @@ export type { RemoteWithoutRefs, RemoteWithRefs } from '../src/lib/responses/GetRemoteSummary'; | ||
export { GitConfigScope } from '../src/lib/tasks/config'; | ||
export type { CountObjectsResult } from '../src/lib/tasks/count-objects'; | ||
export { DiffNameStatus } from '../src/lib/tasks/diff-name-status'; | ||
@@ -21,0 +22,0 @@ export { GitGrepQuery, grepQueryBuilder } from '../src/lib/tasks/grep'; |
{ | ||
"name": "simple-git", | ||
"description": "Simple GIT interface for node.js", | ||
"version": "3.24.0", | ||
"version": "3.25.0", | ||
"author": "Steve King <steve@mydev.co>", | ||
@@ -19,3 +19,3 @@ "contributors": [ | ||
"@kwsites/promise-deferred": "^1.1.1", | ||
"debug": "^4.3.4" | ||
"debug": "^4.3.5" | ||
}, | ||
@@ -25,3 +25,3 @@ "devDependencies": { | ||
"@simple-git/babel-config": "^1.0.0", | ||
"@types/debug": "^4.1.5", | ||
"@types/debug": "^4.1.12", | ||
"@types/jest": "^29.2.2", | ||
@@ -28,0 +28,0 @@ "@types/node": "^16", |
@@ -268,2 +268,6 @@ # Simple Git | ||
## git count-objects | ||
- `.countObjects()` queries the pack and disk usage properties of the local repository and returns a [CountObjectsResult](https://github.com/steveukx/git-js/blob/main/simple-git/src/lib/tasks/count-objects.ts). All disk sizes are reported in Kb, see https://git-scm.com/docs/git-count-objects for full description of properties. | ||
## git diff | ||
@@ -270,0 +274,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
955106
112
12112
843
Updateddebug@^4.3.5