New:Socket for Asana Is Now Available.Learn more โ†’
Sign In

isomorphic-git

Package Overview
Dependencies
Maintainers
3
Versions
475
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

isomorphic-git - npm Package Compare versions

Comparing version
1.41.7
to
1.41.8
+20
-0
managers/index.d.cts

@@ -586,2 +586,22 @@ export const __esModule: boolean;

/**
* Checks whether a ref names the branch HEAD points at in a repository where
* that branch has no commits yet.
*
* A repository created by `git init` has a HEAD pointing at a branch that
* does not exist on disk. Resolving that branch fails the same way resolving
* a misspelled ref does, so callers that want to treat the two differently
* need this to tell them apart.
*
* @param {Object} args
* @param {FSClient} args.fs - A file system implementation.
* @param {string} [args.gitdir=join(dir, '.git')] - [required] The [git directory](dir-vs-gitdir.md) path
* @param {string} args.ref - The ref to check.
* @returns {Promise<boolean>} - True if the ref names an unborn branch.
*/
static isUnbornBranch({ fs, gitdir, ref }: {
fs: FSClient;
gitdir?: string | undefined;
ref: string;
}): Promise<boolean>;
/**
* Checks if a ref exists.

@@ -588,0 +608,0 @@ *

@@ -585,2 +585,22 @@ export type TreeEntry = {

/**
* Checks whether a ref names the branch HEAD points at in a repository where
* that branch has no commits yet.
*
* A repository created by `git init` has a HEAD pointing at a branch that
* does not exist on disk. Resolving that branch fails the same way resolving
* a misspelled ref does, so callers that want to treat the two differently
* need this to tell them apart.
*
* @param {Object} args
* @param {FSClient} args.fs - A file system implementation.
* @param {string} [args.gitdir=join(dir, '.git')] - [required] The [git directory](dir-vs-gitdir.md) path
* @param {string} args.ref - The ref to check.
* @returns {Promise<boolean>} - True if the ref names an unborn branch.
*/
static isUnbornBranch({ fs, gitdir, ref }: {
fs: FSClient;
gitdir?: string | undefined;
ref: string;
}): Promise<boolean>;
/**
* Checks if a ref exists.

@@ -587,0 +607,0 @@ *

+1
-1
{
"name": "isomorphic-git",
"version": "1.41.7",
"version": "1.41.8",
"description": "A pure JavaScript reimplementation of git for node and browsers",

@@ -5,0 +5,0 @@ "type": "module",

@@ -112,3 +112,3 @@ <p align="center">

// or
import {plugins, clone, commit, push} from 'isomorphic-git'
import {add, clone, commit, push} from 'isomorphic-git'
```

@@ -115,0 +115,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display