Socket
Socket
Sign inDemoInstall

tocbot

Package Overview
Dependencies
Maintainers
1
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tocbot - npm Package Compare versions

Comparing version 4.27.20 to 4.28.0

src/js/server-render.js

2

package.json
{
"name": "tocbot",
"version": "4.27.20",
"version": "4.28.0",
"description": "Generate a table of contents based on the heading structure of a html document.",

@@ -5,0 +5,0 @@ "main": "./dist/tocbot.js",

@@ -12,3 +12,4 @@ /* eslint no-var: off */

var some = [].some
var body = document.body
// if (typeof window === 'undefined') return
var body = typeof window !== 'undefined' && document.body
var tocElement

@@ -15,0 +16,0 @@ var currentlyHighlighting = true

@@ -9,2 +9,3 @@ /* eslint no-var: off */

var offset = options.offset
if (typeof window === 'undefined' || typeof location === 'undefined') return

@@ -11,0 +12,0 @@ var pageUrl = location.hash

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