Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

doctoc

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

doctoc - npm Package Compare versions

Comparing version 0.9.1 to 0.10.0

5

lib/transform.js

@@ -139,2 +139,5 @@ 'use strict';

// 4 spaces required for proper indention on Bitbucket
var indentation = mode === 'bitbucket.org' ? ' ' : ' ';
var toc =

@@ -146,3 +149,3 @@ '**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*'

var indent = _(_.range(x.rank - lowestRank))
.reduce(function (acc, x) { return acc + ' '; }, '');
.reduce(function (acc, x) { return acc + indentation; }, '');

@@ -149,0 +152,0 @@ return indent + '- ' + x.anchor;

2

package.json

@@ -5,3 +5,3 @@ {

"description": "Generates TOC for markdown files of local git repo.",
"version": "0.9.1",
"version": "0.10.0",
"repository": {

@@ -8,0 +8,0 @@ "type": "git",

@@ -240,8 +240,8 @@ 'use strict';

, '- [My Module](#markdown-header-my-module)\n'
, ' - [API](#markdown-header-api)\n'
, ' - [Method One](#markdown-header-method-one)\n'
, ' - [Method Two](#markdown-header-method-two)\n'
, ' - [Main Usage](#markdown-header-main-usage)\n\n\n'
, ' - [API](#markdown-header-api)\n'
, ' - [Method One](#markdown-header-method-one)\n'
, ' - [Method Two](#markdown-header-method-two)\n'
, ' - [Main Usage](#markdown-header-main-usage)\n\n\n'
].join('')
, 'bitbucket.org'
)
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