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.18.0 to 3.19.0

dist/src/lib/args/pathspec.d.ts

3

dist/src/lib/api.d.ts

@@ -0,1 +1,2 @@

import { pathspec } from './args/pathspec';
import { GitConstructError } from './errors/git-construct-error';

@@ -11,2 +12,2 @@ import { GitError } from './errors/git-error';

import { ResetMode } from './tasks/reset';
export { CheckRepoActions, CleanOptions, GitConfigScope, GitConstructError, GitError, GitPluginError, GitResponseError, ResetMode, TaskConfigurationError, grepQueryBuilder, };
export { CheckRepoActions, CleanOptions, GitConfigScope, GitConstructError, GitError, GitPluginError, GitResponseError, ResetMode, TaskConfigurationError, grepQueryBuilder, pathspec, };

@@ -13,2 +13,3 @@ export type { RemoteWithoutRefs, RemoteWithRefs } from '../src/lib/responses/GetRemoteSummary';

export { pathspec } from '../src/lib/args/pathspec';
export type { ApplyOptions } from '../src/lib/tasks/apply-patch';

@@ -15,0 +16,0 @@ export { CheckRepoActions } from '../src/lib/tasks/check-is-repo';

{
"name": "simple-git",
"description": "Simple GIT interface for node.js",
"version": "3.18.0",
"version": "3.19.0",
"author": "Steve King <steve@mydev.co>",

@@ -24,3 +24,2 @@ "contributors": [

"@simple-git/babel-config": "^1.0.0",
"@simple-git/test-utils": "^4.0.0",
"@types/debug": "^4.1.5",

@@ -27,0 +26,0 @@ "@types/jest": "^29.2.2",

@@ -691,6 +691,8 @@ # Simple Git

```typescript
import { simpleGit, pathspec } from "simple-git";
const git = simpleGit();
const wholeRepoStatus = await git.status();
const subDirStatusUsingOptArray = await git.status(['--', 'sub-dir']);
const subDirStatusUsingOptObject = await git.status({ '--': null, 'sub-dir': null });
const subDirStatusUsingOptArray = await git.status([pathspec('sub-dir')]);
const subDirStatusUsingOptObject = await git.status({ 'sub-dir': pathspec('sub-dir') });
```

@@ -697,0 +699,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