Socket
Socket
Sign inDemoInstall

@vuepress/shared

Package Overview
Dependencies
1
Maintainers
2
Versions
74
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0-rc.4 to 2.0.0-rc.5

16

dist/index.js

@@ -82,4 +82,16 @@ // src/utils/resolveHeadIdentifier.ts

var normalizeRoutePath = (path) => {
const convertedMdPath = path.endsWith("README.md") ? path.substring(0, path.length - 9) : path.endsWith(".md") ? path.substring(0, path.length - 3) + ".html" : path;
return convertedMdPath.endsWith("/index.html") ? convertedMdPath.substring(0, convertedMdPath.length - 10) : convertedMdPath.endsWith(".html") || convertedMdPath.endsWith("/") ? convertedMdPath : convertedMdPath + ".html";
if (!path || path.endsWith("/")) {
return path;
}
let routePath = path.replace(/(^|\/)README.md$/i, "$1index.html");
if (routePath.endsWith(".md")) {
routePath = routePath.substring(0, routePath.length - 3) + ".html";
}
if (!routePath.endsWith(".html")) {
routePath = routePath + ".html";
}
if (routePath.endsWith("/index.html")) {
return routePath.substring(0, routePath.length - 10);
}
return routePath;
};

@@ -86,0 +98,0 @@

2

package.json
{
"name": "@vuepress/shared",
"version": "2.0.0-rc.4",
"version": "2.0.0-rc.5",
"description": "Utils that shared between VuePress node and client",

@@ -5,0 +5,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc