Socket
Socket
Sign inDemoInstall

@salesforcedevs/docs-components

Package Overview
Dependencies
Maintainers
29
Versions
636
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@salesforcedevs/docs-components - npm Package Compare versions

Comparing version 0.19.2 to 0.19.4-alpha.1

4

package.json
{
"name": "@salesforcedevs/docs-components",
"version": "0.19.2",
"version": "0.19.4-alpha.01",
"description": "Docs Lightning web components for DSC",

@@ -17,3 +17,3 @@ "license": "MIT",

},
"gitHead": "8bfc13904276093b75868ad2c4d9003d74873fbb"
"gitHead": "4629fdd9ca18a13480044ad43515b91945d16aad"
}

@@ -8,20 +8,3 @@ /* eslint-disable @lwc/lwc/no-inner-html */

import Button from "dx/button";
import { highlightTerms } from "utils/highlight";
const HIGHLIGHTABLE_SELECTOR = [
"p",
".p",
".shortdesc",
"h1",
"h2",
"h3",
"h4",
"h5",
"h6",
"li",
"dl",
"th",
"td"
].join(",");
const LANGUAGE_MAP: { [key: string]: string } = {

@@ -66,16 +49,4 @@ js: "javascript"

);
window.addEventListener(
"highlightedtermchange",
this.updateHighlighted
);
}
disconnectedCallback(): void {
window.removeEventListener(
"highlightedtermchange",
this.updateHighlighted
);
}
updateTheme() {

@@ -175,2 +146,3 @@ this._codeBlockTheme =

templateEl.content.querySelectorAll("a:not([href^='#'])");
anchorEls.forEach((anchorEl) => {

@@ -188,2 +160,6 @@ if (

if (!anchorEl.href.includes("/docs/")) {
anchorEl.href = "/docs/" + anchorEl.href;
}
const href = anchorEl.href.split("/");

@@ -339,8 +315,2 @@ if (

updateHighlighted = (event: any) =>
highlightTerms(
this.template.querySelectorAll(HIGHLIGHTABLE_SELECTOR),
event.detail
);
@api

@@ -347,0 +317,0 @@ public navigateToHash(hash: String) {

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