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

@salesforcedevs/sfdocs-no-relative-link

Package Overview
Dependencies
Maintainers
0
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@salesforcedevs/sfdocs-no-relative-link - npm Package Compare versions

Comparing version 0.0.1-alphav3 to 0.0.1-alphav4

2

dist/index.js

@@ -32,3 +32,3 @@ "use strict";

if (isInternalPath(node.url) && denyInternalLinkInFile) {
const errorMessage = new vfile_message_1.default(`Using relative links is not allowed in ${folder.replace('/', '')} files. Please use absolute links (/docs/..) instead of ${node.url}.`, node, "relative-link-not-allowed");
const errorMessage = new vfile_message_1.default(`Using relative links is not allowed in ${folder.replace('/\//g', '')} files. Please use absolute links (/docs/..) instead of ${node.url}.`, node, "relative-link-not-allowed");
errorMessage.fatal = true;

@@ -35,0 +35,0 @@ file.messages.push(errorMessage);

{
"name": "@salesforcedevs/sfdocs-no-relative-link",
"version": "0.0.1-alphav3",
"version": "0.0.1-alphav4",
"description": "Validate the relative links in any folder and throw error/warning after check",

@@ -5,0 +5,0 @@ "author": "SFDocs Team",

@@ -34,3 +34,3 @@ /**

if (isInternalPath(node.url) && denyInternalLinkInFile) {
const errorMessage: VFileMessage = new VMessage(`Using relative links is not allowed in ${folder.replace('/','')} files. Please use absolute links (/docs/..) instead of ${node.url}.`, node, "relative-link-not-allowed");
const errorMessage: VFileMessage = new VMessage(`Using relative links is not allowed in ${folder.replace('/\//g','')} files. Please use absolute links (/docs/..) instead of ${node.url}.`, node, "relative-link-not-allowed");
errorMessage.fatal = true;

@@ -37,0 +37,0 @@ file.messages.push(errorMessage);

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