Socket
Socket
Sign inDemoInstall

simple-git

Package Overview
Dependencies
Maintainers
2
Versions
260
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-git - npm Package Compare versions

Comparing version 3.24.0 to 3.25.0

dist/src/lib/tasks/count-objects.d.ts

1

dist/src/lib/utils/util.d.ts

@@ -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';

6

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc