New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

documentation-website

Package Overview
Dependencies
Maintainers
1
Versions
328
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

documentation-website - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

9

package.json
{
"name": "documentation-website",
"version": "1.0.8",
"version": "1.0.9",
"keywords": [

@@ -26,3 +26,2 @@ "documentation",

"dependencies": {
"bootstrap": "3.3.6",
"website-utilities": "latest"

@@ -84,5 +83,5 @@ },

"DISTRIBUTION_BUNDLE_FILE_PATH": "dummyDistributionBundle.zip",
"LANGUAGES": [
"enUS"
],
"LANGUAGES": {
"__evaluate__": "self.name === 'documentation-website' ? ['enUS', 'deDE', 'frFR'] : ['enUS']"
},
"NAME": "documentationWebsite",

@@ -89,0 +88,0 @@ "RENDER_CONTENT": true,

@@ -116,9 +116,9 @@ // @flow

domNode: {
tableOfContentLinks: 'div.toc > ul > li a[href^="#"]',
tableOfContentLinks: '.toc ul li a[href^="#"]',
aboutThisWebsiteLink: 'a[href="#about-this-website"]',
homeLink: 'a[href="#home"]',
aboutThisWebsiteSection: 'section.about-this-website',
mainSection: 'section.main-content',
codeWrapper: 'div.codehilite',
code: 'div.codehilite > pre, code'
aboutThisWebsiteSection: '.about-this-website',
mainSection: '.main-content',
codeWrapper: '.codehilite',
code: '.codehilite pre, code'
},

@@ -153,7 +153,12 @@ section: {

*/
this._showExamples()._makeCodeEllipsis()
this.on(this.$domNodes.tableOfContentLinks, 'click', function(
):void {
$.scrollTo($(this).attr('href'), 'slow')
})
this._showExamples()._makeCodeEllipsis().on(
this.$domNodes.tableOfContentLinks, 'click', (
event:Object
):void => {
const hashReference:?string = $(event.target).attr('href')
if (hashReference && hashReference !== '#')
$.scrollTo(hashReference, 'slow')
else
this.scrollToTop()
})
// Handle section switch between documentation and legal notes section.

@@ -167,6 +172,6 @@ this._options.section.aboutThisWebsite.fadeOut.always = ():$DomNode =>

this.on(this.$domNodes.aboutThisWebsiteLink, 'click', ():$DomNode =>
this._scrollToTop().$domNodes.mainSection.fadeOut(
this.scrollToTop().$domNodes.mainSection.fadeOut(
this._options.section.main.fadeOut))
this.on(this.$domNodes.homeLink, 'click', ():$DomNode =>
this._scrollToTop().$domNodes.aboutThisWebsiteSection.fadeOut(
this.scrollToTop().$domNodes.aboutThisWebsiteSection.fadeOut(
this._options.section.aboutThisWebsite.fadeOut))

@@ -273,3 +278,2 @@ return this

let $content:$DomNode
let wrapped:boolean = false
$content = $(`<wrapper>${content}</wrapper>`)

@@ -276,0 +280,0 @@ for (const domNode:DomNode of $content.contents().get().reverse()) {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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