Socket
Book a DemoInstallSign in
Socket

@dolthub/gitgraph-core

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dolthub/gitgraph-core

Core of gitgraph, a JavaScript library to draw pretty git graphs

1.6.4
latest
Source
npmnpm
Version published
Weekly downloads
1
-94.74%
Maintainers
2
Weekly downloads
 
Created
Source

This is the fork of package of GitGraph.js.

This package makes changes to take commit info from DoltHub in order to render the commit graph.

Changes are:

  • Reversed the commit list order in packages/gitgraph-core/src/branches-order.ts, so that the branches set are ordered by oldest to newest:
[...commits].reverse().forEach((commit, i) => {
  this.branches.add(commit.branchToDisplay);
});
  • in packages/gitgraph-core/src/branches-paths.ts, change the branch path from a curved line to a straight line.

  • in packages/gitgraph-core/src/gitgraph.ts, add all branch names of the current hash to the branches array.

  • in packages/gitgraph-core/src/template.ts, changed the commit nodes spacing and branch label border style.

  • in packages/gitgraph-core/src/user-api/gitgraph-user-api.ts, reversed the commitOptionsList so that it gets the right branch to show.

Keywords

git

FAQs

Package last updated on 03 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.