Socket
Socket
Sign inDemoInstall

simple-git

Package Overview
Dependencies
Maintainers
2
Versions
259
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.15.1 to 3.16.0

dist/src/lib/tasks/checkout.d.ts

2

dist/src/lib/plugins/block-unsafe-operations-plugin.d.ts
import type { SimpleGitPlugin } from './simple-git-plugin';
import type { SimpleGitPluginConfig } from '../types';
export declare function blockUnsafeOperationsPlugin({ allowUnsafeProtocolOverride, }?: SimpleGitPluginConfig['unsafe']): SimpleGitPlugin<'spawn.args'>;
export declare function blockUnsafeOperationsPlugin({ allowUnsafeProtocolOverride, allowUnsafePack, }?: SimpleGitPluginConfig['unsafe']): SimpleGitPlugin<'spawn.args'>;

@@ -100,6 +100,12 @@ /// <reference types="node" />

* [git-scm.com](https://git-scm.com/docs/git-remote-ext#_examples)).
*/
allowUnsafeProtocolOverride?: boolean;
/**
* Given the possibility of using `--upload-pack` and `--receive-pack` as
* attack vectors, the use of these in any command (or the shorthand
* `-u` option in a `clone` operation) are blocked by default.
*
* See documentation for use in
* Enable this override to permit the use of these arguments.
*/
allowUnsafeProtocolOverride?: boolean;
allowUnsafePack?: boolean;
};

@@ -106,0 +112,0 @@ }

@@ -322,3 +322,3 @@ import * as resp from './response';

/**
* Checkout a remote branch.
* Checkout a remote branch - equivalent to `git checkout -b ${branchName} ${startPoint}`
*

@@ -334,2 +334,9 @@ * - branchName name of branch.

checkoutBranch(
branchName: string,
startPoint: string,
options?: types.TaskOptions,
callback?: types.SimpleGitTaskCallback<void>
): Response<void>;
/**

@@ -345,3 +352,3 @@ * Internally uses pull and tags to get the list of tags then checks out the latest tag.

/**
* Checkout a local branch
* Checkout a local branch - equivalent to `git checkout -b ${branchName}`
*/

@@ -353,2 +360,8 @@ checkoutLocalBranch(

checkoutLocalBranch(
branchName: string,
options?: types.TaskOptions,
callback?: types.SimpleGitTaskCallback<void>
): Response<void>;
/**

@@ -355,0 +368,0 @@ * Deletes unwanted content from the local repo - when supplying the first argument as

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

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

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

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

@@ -239,3 +239,3 @@ # Simple Git

- `.checkout(options)` - uses the checks out the supplied [options](#how-to-specify-options) object/array to check out.
- `.checkout(options)` - check out a tag or revision using the supplied [options](#how-to-specify-options)

@@ -242,0 +242,0 @@ - `.checkoutBranch(branchName, startPoint)` - checks out a new branch from the supplied start point.

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc